From 74932eb40a19478fdeab8500afd487f3300bc919 Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Thu, 27 Nov 2008 17:31:22 +0000 Subject: ag71xx driver: introduce new flag for the AR913x SOCs SVN-Revision: 13376 --- target/linux/ar71xx/files/arch/mips/ar71xx/platform.c | 2 ++ target/linux/ar71xx/files/include/asm-mips/mach-ar71xx/platform.h | 1 + 2 files changed, 3 insertions(+) (limited to 'target/linux') diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/platform.c b/target/linux/ar71xx/files/arch/mips/ar71xx/platform.c index b2add194f7..09e6b2b78f 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/platform.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/platform.c @@ -393,6 +393,7 @@ void __init ar71xx_add_device_eth(unsigned int id) : ar91xx_ddr_flush_ge0; pdata->set_pll = id ? ar91xx_set_pll_ge1 : ar91xx_set_pll_ge0; + pdata->is_ar91xx = 1; break; case AR71XX_SOC_AR9132: @@ -400,6 +401,7 @@ void __init ar71xx_add_device_eth(unsigned int id) : ar91xx_ddr_flush_ge0; pdata->set_pll = id ? ar91xx_set_pll_ge1 : ar91xx_set_pll_ge0; + pdata->is_ar91xx = 1; pdata->has_gbit = 1; break; diff --git a/target/linux/ar71xx/files/include/asm-mips/mach-ar71xx/platform.h b/target/linux/ar71xx/files/include/asm-mips/mach-ar71xx/platform.h index 9d567a6c8d..2840c4567a 100644 --- a/target/linux/ar71xx/files/include/asm-mips/mach-ar71xx/platform.h +++ b/target/linux/ar71xx/files/include/asm-mips/mach-ar71xx/platform.h @@ -29,6 +29,7 @@ struct ag71xx_platform_data { u8 mac_addr[ETH_ALEN]; u8 has_gbit:1; + u8 is_ar91xx:1; void (* ddr_flush)(void); void (* set_pll)(u32 pll); -- cgit v1.2.3