diff options
author | Felix Fietkau <nbd@nbd.name> | 2018-03-02 21:30:10 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2018-03-04 19:37:20 +0100 |
commit | f62d2b954970d40c577b70c22f522af046f26475 (patch) | |
tree | 06256249844d1aaab6f9041b3075b41f1ac204d0 /target/linux/ar71xx/files/arch | |
parent | 11d70f0600921702af63c10a9482029b072dbf0b (diff) | |
download | upstream-f62d2b954970d40c577b70c22f522af046f26475.tar.gz upstream-f62d2b954970d40c577b70c22f522af046f26475.tar.bz2 upstream-f62d2b954970d40c577b70c22f522af046f26475.zip |
ar71xx: remove pdata->fifo_cfg*
The values are the same for all chipsets that use it
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/ar71xx/files/arch')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c | 49 | ||||
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/include/asm/mach-ath79/ag71xx_platform.h | 4 |
2 files changed, 0 insertions, 53 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c b/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c index 427de6a50d..9e72c41a42 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c @@ -900,13 +900,6 @@ void __init ath79_register_eth(unsigned int id) } pdata->has_gbit = 1; pdata->is_ar724x = 1; - - if (!pdata->fifo_cfg1) - pdata->fifo_cfg1 = 0x0010ffff; - if (!pdata->fifo_cfg2) - pdata->fifo_cfg2 = 0x015500aa; - if (!pdata->fifo_cfg3) - pdata->fifo_cfg3 = 0x01f00140; break; case ATH79_SOC_AR7241: @@ -936,13 +929,6 @@ void __init ath79_register_eth(unsigned int id) pdata->is_ar724x = 1; if (ath79_soc == ATH79_SOC_AR7240) pdata->is_ar7240 = 1; - - if (!pdata->fifo_cfg1) - pdata->fifo_cfg1 = 0x0010ffff; - if (!pdata->fifo_cfg2) - pdata->fifo_cfg2 = 0x015500aa; - if (!pdata->fifo_cfg3) - pdata->fifo_cfg3 = 0x01f00140; break; case ATH79_SOC_AR9132: @@ -979,13 +965,6 @@ void __init ath79_register_eth(unsigned int id) } pdata->is_ar724x = 1; - - if (!pdata->fifo_cfg1) - pdata->fifo_cfg1 = 0x0010ffff; - if (!pdata->fifo_cfg2) - pdata->fifo_cfg2 = 0x015500aa; - if (!pdata->fifo_cfg3) - pdata->fifo_cfg3 = 0x01f00140; break; case ATH79_SOC_AR9341: @@ -1016,13 +995,6 @@ void __init ath79_register_eth(unsigned int id) pdata->max_frame_len = SZ_16K - 1; pdata->desc_pktlen_mask = SZ_16K - 1; - - if (!pdata->fifo_cfg1) - pdata->fifo_cfg1 = 0x0010ffff; - if (!pdata->fifo_cfg2) - pdata->fifo_cfg2 = 0x015500aa; - if (!pdata->fifo_cfg3) - pdata->fifo_cfg3 = 0x01f00140; break; case ATH79_SOC_TP9343: @@ -1048,13 +1020,6 @@ void __init ath79_register_eth(unsigned int id) pdata->has_gbit = 1; pdata->is_ar724x = 1; - - if (!pdata->fifo_cfg1) - pdata->fifo_cfg1 = 0x0010ffff; - if (!pdata->fifo_cfg2) - pdata->fifo_cfg2 = 0x015500aa; - if (!pdata->fifo_cfg3) - pdata->fifo_cfg3 = 0x01f00140; break; case ATH79_SOC_QCA9556: @@ -1082,13 +1047,6 @@ void __init ath79_register_eth(unsigned int id) */ pdata->max_frame_len = SZ_4K - 1; pdata->desc_pktlen_mask = SZ_16K - 1; - - if (!pdata->fifo_cfg1) - pdata->fifo_cfg1 = 0x0010ffff; - if (!pdata->fifo_cfg2) - pdata->fifo_cfg2 = 0x015500aa; - if (!pdata->fifo_cfg3) - pdata->fifo_cfg3 = 0x01f00140; break; case ATH79_SOC_QCA956X: @@ -1121,13 +1079,6 @@ void __init ath79_register_eth(unsigned int id) pdata->has_gbit = 1; pdata->is_ar724x = 1; - - if (!pdata->fifo_cfg1) - pdata->fifo_cfg1 = 0x0010ffff; - if (!pdata->fifo_cfg2) - pdata->fifo_cfg2 = 0x015500aa; - if (!pdata->fifo_cfg3) - pdata->fifo_cfg3 = 0x01f00140; break; default: diff --git a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ath79/ag71xx_platform.h b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ath79/ag71xx_platform.h index 5fdc59c7b7..c4c3a6d44c 100644 --- a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ath79/ag71xx_platform.h +++ b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ath79/ag71xx_platform.h @@ -45,10 +45,6 @@ struct ag71xx_platform_data { void (*set_speed)(int speed); void (*update_pll)(u32 pll_10, u32 pll_100, u32 pll_1000); - u32 fifo_cfg1; - u32 fifo_cfg2; - u32 fifo_cfg3; - unsigned int max_frame_len; unsigned int desc_pktlen_mask; }; |