diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-08-13 22:30:14 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-08-13 22:30:14 +0000 |
commit | 12c84f8eebfa3a336c70c7fb5068ec24bcbda79b (patch) | |
tree | 2c0e15d27ba14233670a8276c0f703938c282196 /target/linux/ar71xx/files/arch | |
parent | 85ccc74e1b939e567e4d013b6ef3a25097e81bf0 (diff) | |
download | mtk-20170518-12c84f8eebfa3a336c70c7fb5068ec24bcbda79b.zip mtk-20170518-12c84f8eebfa3a336c70c7fb5068ec24bcbda79b.tar.gz mtk-20170518-12c84f8eebfa3a336c70c7fb5068ec24bcbda79b.tar.bz2 |
ar71xx: add some code to detect DMA stuck conditions on ar7240
SVN-Revision: 27975
Diffstat (limited to 'target/linux/ar71xx/files/arch')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ar71xx/devices.c | 2 | ||||
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/platform.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/devices.c b/target/linux/ar71xx/files/arch/mips/ar71xx/devices.c index 088d27a..74d9495 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/devices.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/devices.c @@ -589,6 +589,8 @@ void __init ar71xx_add_device_eth(unsigned int id) pdata->set_pll = id ? ar724x_set_pll_ge1 : ar724x_set_pll_ge0; pdata->is_ar724x = 1; + if (ar71xx_soc == AR71XX_SOC_AR7240) + pdata->is_ar7240 = 1; if (!pdata->fifo_cfg1) pdata->fifo_cfg1 = 0x0010ffff; diff --git a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/platform.h b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/platform.h index b0eb228..0d9b5d2 100644 --- a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/platform.h +++ b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/platform.h @@ -29,6 +29,7 @@ struct ag71xx_platform_data { u8 has_gbit:1; u8 is_ar91xx:1; + u8 is_ar7240:1; u8 is_ar724x:1; u8 has_ar8216:1; u8 has_ar7240_switch:1; |