diff options
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips/ath79')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c | 12 |
1 files changed, 10 insertions, 2 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 1e6b8b0a17..bc88a44aa7 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c @@ -199,17 +199,25 @@ void __init ath79_register_mdio(unsigned int id, u32 phy_mask) switch (ath79_soc) { case ATH79_SOC_AR7240: + mdio_data->is_ar7240 = 1; + /* fall through */ case ATH79_SOC_AR7241: + mdio_data->builtin_switch = 1; + break; + case ATH79_SOC_AR9330: + mdio_data->is_ar9330 = 1; + /* fall through */ case ATH79_SOC_AR9331: - mdio_data->is_ar7240 = 1; + mdio_data->builtin_switch = 1; break; case ATH79_SOC_AR9341: case ATH79_SOC_AR9342: case ATH79_SOC_AR9344: if (id == 1) - mdio_data->is_ar7240 = 1; + mdio_data->builtin_switch = 1; + mdio_data->is_ar934x = 1; break; default: |