diff options
author | Cyril Chemparathy <cyril@ti.com> | 2010-09-15 10:11:25 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2010-09-24 10:40:30 -0400 |
commit | 782f2d782771484bb951be1c394ca2128ed7774e (patch) | |
tree | 47f621c022942f5f6a1cbbd450219347180de911 /arch | |
parent | 5d69e0076a726588265af040b21ac3f8266856d1 (diff) |
davinci: cleanup mdio arch code and switch to phy_id
This patch removes davinci architecture code that has now been rendered
useless by the previous patches in the MDIO separation series.
In addition, the earlier phy_mask definitions have been replaced with
corresponding phy_id definitions.
Signed-off-by: Cyril Chemparathy <cyril@ti.com>
Tested-by: Michael Williamson <michael.williamson@criticallink.com>
Tested-by: Caglar Akyuz <caglarakyuz@gmail.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-davinci/board-da830-evm.c | 7 | ||||
-rw-r--r-- | arch/arm/mach-davinci/board-da850-evm.c | 7 | ||||
-rw-r--r-- | arch/arm/mach-davinci/board-dm365-evm.c | 7 | ||||
-rw-r--r-- | arch/arm/mach-davinci/board-dm644x-evm.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-davinci/board-dm646x-evm.c | 7 | ||||
-rw-r--r-- | arch/arm/mach-davinci/board-mityomapl138.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-davinci/board-neuros-osd2.c | 7 | ||||
-rw-r--r-- | arch/arm/mach-davinci/board-sffsdr.c | 7 | ||||
-rw-r--r-- | arch/arm/mach-davinci/devices-da8xx.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-davinci/dm365.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-davinci/dm644x.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-davinci/dm646x.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-davinci/include/mach/dm365.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-davinci/include/mach/dm644x.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-davinci/include/mach/dm646x.h | 1 |
15 files changed, 16 insertions, 50 deletions
diff --git a/arch/arm/mach-davinci/board-da830-evm.c b/arch/arm/mach-davinci/board-da830-evm.c index ef1ab0b6576e..1bb89d3f9b1f 100644 --- a/arch/arm/mach-davinci/board-da830-evm.c +++ b/arch/arm/mach-davinci/board-da830-evm.c | |||
@@ -31,9 +31,7 @@ | |||
31 | #include <mach/usb.h> | 31 | #include <mach/usb.h> |
32 | #include <mach/aemif.h> | 32 | #include <mach/aemif.h> |
33 | 33 | ||
34 | #define DA830_EVM_PHY_MASK 0x0 | 34 | #define DA830_EVM_PHY_ID "" |
35 | #define DA830_EVM_MDIO_FREQUENCY 2200000 /* PHY bus frequency */ | ||
36 | |||
37 | /* | 35 | /* |
38 | * USB1 VBUS is controlled by GPIO1[15], over-current is reported on GPIO2[4]. | 36 | * USB1 VBUS is controlled by GPIO1[15], over-current is reported on GPIO2[4]. |
39 | */ | 37 | */ |
@@ -558,9 +556,8 @@ static __init void da830_evm_init(void) | |||
558 | 556 | ||
559 | da830_evm_usb_init(); | 557 | da830_evm_usb_init(); |
560 | 558 | ||
561 | soc_info->emac_pdata->phy_mask = DA830_EVM_PHY_MASK; | ||
562 | soc_info->emac_pdata->mdio_max_freq = DA830_EVM_MDIO_FREQUENCY; | ||
563 | soc_info->emac_pdata->rmii_en = 1; | 559 | soc_info->emac_pdata->rmii_en = 1; |
560 | soc_info->emac_pdata->phy_id = DA830_EVM_PHY_ID; | ||
564 | 561 | ||
565 | ret = davinci_cfg_reg_list(da830_cpgmac_pins); | 562 | ret = davinci_cfg_reg_list(da830_cpgmac_pins); |
566 | if (ret) | 563 | if (ret) |
diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c index ac2297c69a92..5e435b068661 100644 --- a/arch/arm/mach-davinci/board-da850-evm.c +++ b/arch/arm/mach-davinci/board-da850-evm.c | |||
@@ -38,9 +38,7 @@ | |||
38 | #include <mach/mux.h> | 38 | #include <mach/mux.h> |
39 | #include <mach/aemif.h> | 39 | #include <mach/aemif.h> |
40 | 40 | ||
41 | #define DA850_EVM_PHY_MASK 0x1 | 41 | #define DA850_EVM_PHY_ID "0:00" |
42 | #define DA850_EVM_MDIO_FREQUENCY 2200000 /* PHY bus frequency */ | ||
43 | |||
44 | #define DA850_LCD_PWR_PIN GPIO_TO_PIN(2, 8) | 42 | #define DA850_LCD_PWR_PIN GPIO_TO_PIN(2, 8) |
45 | #define DA850_LCD_BL_PIN GPIO_TO_PIN(2, 15) | 43 | #define DA850_LCD_BL_PIN GPIO_TO_PIN(2, 15) |
46 | 44 | ||
@@ -678,8 +676,7 @@ static int __init da850_evm_config_emac(void) | |||
678 | /* Enable/Disable MII MDIO clock */ | 676 | /* Enable/Disable MII MDIO clock */ |
679 | gpio_direction_output(DA850_MII_MDIO_CLKEN_PIN, rmii_en); | 677 | gpio_direction_output(DA850_MII_MDIO_CLKEN_PIN, rmii_en); |
680 | 678 | ||
681 | soc_info->emac_pdata->phy_mask = DA850_EVM_PHY_MASK; | 679 | soc_info->emac_pdata->phy_id = DA850_EVM_PHY_ID; |
682 | soc_info->emac_pdata->mdio_max_freq = DA850_EVM_MDIO_FREQUENCY; | ||
683 | 680 | ||
684 | ret = da8xx_register_emac(); | 681 | ret = da8xx_register_emac(); |
685 | if (ret) | 682 | if (ret) |
diff --git a/arch/arm/mach-davinci/board-dm365-evm.c b/arch/arm/mach-davinci/board-dm365-evm.c index bdea2da0b203..a06b84c1b7d8 100644 --- a/arch/arm/mach-davinci/board-dm365-evm.c +++ b/arch/arm/mach-davinci/board-dm365-evm.c | |||
@@ -54,9 +54,7 @@ static inline int have_tvp7002(void) | |||
54 | return 0; | 54 | return 0; |
55 | } | 55 | } |
56 | 56 | ||
57 | #define DM365_EVM_PHY_MASK (0x2) | 57 | #define DM365_EVM_PHY_ID "0:01" |
58 | #define DM365_EVM_MDIO_FREQUENCY (2200000) /* PHY bus frequency */ | ||
59 | |||
60 | /* | 58 | /* |
61 | * A MAX-II CPLD is used for various board control functions. | 59 | * A MAX-II CPLD is used for various board control functions. |
62 | */ | 60 | */ |
@@ -535,8 +533,7 @@ fail: | |||
535 | 533 | ||
536 | /* ... and ENET ... */ | 534 | /* ... and ENET ... */ |
537 | dm365evm_emac_configure(); | 535 | dm365evm_emac_configure(); |
538 | soc_info->emac_pdata->phy_mask = DM365_EVM_PHY_MASK; | 536 | soc_info->emac_pdata->phy_id = DM365_EVM_PHY_ID; |
539 | soc_info->emac_pdata->mdio_max_freq = DM365_EVM_MDIO_FREQUENCY; | ||
540 | resets &= ~BIT(3); | 537 | resets &= ~BIT(3); |
541 | 538 | ||
542 | /* ... and AIC33 */ | 539 | /* ... and AIC33 */ |
diff --git a/arch/arm/mach-davinci/board-dm644x-evm.c b/arch/arm/mach-davinci/board-dm644x-evm.c index 65bb94064feb..44a2f0a59285 100644 --- a/arch/arm/mach-davinci/board-dm644x-evm.c +++ b/arch/arm/mach-davinci/board-dm644x-evm.c | |||
@@ -39,9 +39,7 @@ | |||
39 | #include <mach/usb.h> | 39 | #include <mach/usb.h> |
40 | #include <mach/aemif.h> | 40 | #include <mach/aemif.h> |
41 | 41 | ||
42 | #define DM644X_EVM_PHY_MASK (0x2) | 42 | #define DM644X_EVM_PHY_ID "0:01" |
43 | #define DM644X_EVM_MDIO_FREQUENCY (2200000) /* PHY bus frequency */ | ||
44 | |||
45 | #define LXT971_PHY_ID (0x001378e2) | 43 | #define LXT971_PHY_ID (0x001378e2) |
46 | #define LXT971_PHY_MASK (0xfffffff0) | 44 | #define LXT971_PHY_MASK (0xfffffff0) |
47 | 45 | ||
@@ -707,9 +705,7 @@ static __init void davinci_evm_init(void) | |||
707 | davinci_serial_init(&uart_config); | 705 | davinci_serial_init(&uart_config); |
708 | dm644x_init_asp(&dm644x_evm_snd_data); | 706 | dm644x_init_asp(&dm644x_evm_snd_data); |
709 | 707 | ||
710 | soc_info->emac_pdata->phy_mask = DM644X_EVM_PHY_MASK; | 708 | soc_info->emac_pdata->phy_id = DM644X_EVM_PHY_ID; |
711 | soc_info->emac_pdata->mdio_max_freq = DM644X_EVM_MDIO_FREQUENCY; | ||
712 | |||
713 | /* Register the fixup for PHY on DaVinci */ | 709 | /* Register the fixup for PHY on DaVinci */ |
714 | phy_register_fixup_for_uid(LXT971_PHY_ID, LXT971_PHY_MASK, | 710 | phy_register_fixup_for_uid(LXT971_PHY_ID, LXT971_PHY_MASK, |
715 | davinci_phy_fixup); | 711 | davinci_phy_fixup); |
diff --git a/arch/arm/mach-davinci/board-dm646x-evm.c b/arch/arm/mach-davinci/board-dm646x-evm.c index 5a29955b2f5c..67669bba922c 100644 --- a/arch/arm/mach-davinci/board-dm646x-evm.c +++ b/arch/arm/mach-davinci/board-dm646x-evm.c | |||
@@ -729,9 +729,7 @@ static struct davinci_uart_config uart_config __initdata = { | |||
729 | .enabled_uarts = (1 << 0), | 729 | .enabled_uarts = (1 << 0), |
730 | }; | 730 | }; |
731 | 731 | ||
732 | #define DM646X_EVM_PHY_MASK (0x2) | 732 | #define DM646X_EVM_PHY_ID "0:01" |
733 | #define DM646X_EVM_MDIO_FREQUENCY (2200000) /* PHY bus frequency */ | ||
734 | |||
735 | /* | 733 | /* |
736 | * The following EDMA channels/slots are not being used by drivers (for | 734 | * The following EDMA channels/slots are not being used by drivers (for |
737 | * example: Timer, GPIO, UART events etc) on dm646x, hence they are being | 735 | * example: Timer, GPIO, UART events etc) on dm646x, hence they are being |
@@ -784,8 +782,7 @@ static __init void evm_init(void) | |||
784 | if (HAS_ATA) | 782 | if (HAS_ATA) |
785 | davinci_init_ide(); | 783 | davinci_init_ide(); |
786 | 784 | ||
787 | soc_info->emac_pdata->phy_mask = DM646X_EVM_PHY_MASK; | 785 | soc_info->emac_pdata->phy_id = DM646X_EVM_PHY_ID; |
788 | soc_info->emac_pdata->mdio_max_freq = DM646X_EVM_MDIO_FREQUENCY; | ||
789 | } | 786 | } |
790 | 787 | ||
791 | #define DM646X_EVM_REF_FREQ 27000000 | 788 | #define DM646X_EVM_REF_FREQ 27000000 |
diff --git a/arch/arm/mach-davinci/board-mityomapl138.c b/arch/arm/mach-davinci/board-mityomapl138.c index 84d5aff50de4..6f12a182333b 100644 --- a/arch/arm/mach-davinci/board-mityomapl138.c +++ b/arch/arm/mach-davinci/board-mityomapl138.c | |||
@@ -24,9 +24,7 @@ | |||
24 | #include <mach/nand.h> | 24 | #include <mach/nand.h> |
25 | #include <mach/mux.h> | 25 | #include <mach/mux.h> |
26 | 26 | ||
27 | #define MITYOMAPL138_PHY_MASK 0x08 /* hardcoded for now */ | 27 | #define MITYOMAPL138_PHY_ID "0:03" |
28 | #define MITYOMAPL138_MDIO_FREQUENCY (2200000) /* PHY bus frequency */ | ||
29 | |||
30 | static struct davinci_i2c_platform_data mityomap_i2c_0_pdata = { | 28 | static struct davinci_i2c_platform_data mityomap_i2c_0_pdata = { |
31 | .bus_freq = 100, /* kHz */ | 29 | .bus_freq = 100, /* kHz */ |
32 | .bus_delay = 0, /* usec */ | 30 | .bus_delay = 0, /* usec */ |
@@ -273,9 +271,7 @@ static void __init mityomapl138_config_emac(void) | |||
273 | /* configure the CFGCHIP3 register for RMII or MII */ | 271 | /* configure the CFGCHIP3 register for RMII or MII */ |
274 | __raw_writel(val, cfg_chip3_base); | 272 | __raw_writel(val, cfg_chip3_base); |
275 | 273 | ||
276 | soc_info->emac_pdata->phy_mask = MITYOMAPL138_PHY_MASK; | 274 | soc_info->emac_pdata->phy_id = MITYOMAPL138_PHY_ID; |
277 | pr_debug("setting phy_mask to %x\n", soc_info->emac_pdata->phy_mask); | ||
278 | soc_info->emac_pdata->mdio_max_freq = MITYOMAPL138_MDIO_FREQUENCY; | ||
279 | 275 | ||
280 | ret = da8xx_register_emac(); | 276 | ret = da8xx_register_emac(); |
281 | if (ret) | 277 | if (ret) |
diff --git a/arch/arm/mach-davinci/board-neuros-osd2.c b/arch/arm/mach-davinci/board-neuros-osd2.c index 4c30e929bbf9..04a8d16f2224 100644 --- a/arch/arm/mach-davinci/board-neuros-osd2.c +++ b/arch/arm/mach-davinci/board-neuros-osd2.c | |||
@@ -39,9 +39,7 @@ | |||
39 | #include <mach/mmc.h> | 39 | #include <mach/mmc.h> |
40 | #include <mach/usb.h> | 40 | #include <mach/usb.h> |
41 | 41 | ||
42 | #define NEUROS_OSD2_PHY_MASK 0x2 | 42 | #define NEUROS_OSD2_PHY_ID "0:01" |
43 | #define NEUROS_OSD2_MDIO_FREQUENCY 2200000 /* PHY bus frequency */ | ||
44 | |||
45 | #define LXT971_PHY_ID 0x001378e2 | 43 | #define LXT971_PHY_ID 0x001378e2 |
46 | #define LXT971_PHY_MASK 0xfffffff0 | 44 | #define LXT971_PHY_MASK 0xfffffff0 |
47 | 45 | ||
@@ -252,8 +250,7 @@ static __init void davinci_ntosd2_init(void) | |||
252 | davinci_serial_init(&uart_config); | 250 | davinci_serial_init(&uart_config); |
253 | dm644x_init_asp(&dm644x_ntosd2_snd_data); | 251 | dm644x_init_asp(&dm644x_ntosd2_snd_data); |
254 | 252 | ||
255 | soc_info->emac_pdata->phy_mask = NEUROS_OSD2_PHY_MASK; | 253 | soc_info->emac_pdata->phy_id = NEUROS_OSD2_PHY_ID; |
256 | soc_info->emac_pdata->mdio_max_freq = NEUROS_OSD2_MDIO_FREQUENCY; | ||
257 | 254 | ||
258 | davinci_setup_usb(1000, 8); | 255 | davinci_setup_usb(1000, 8); |
259 | /* | 256 | /* |
diff --git a/arch/arm/mach-davinci/board-sffsdr.c b/arch/arm/mach-davinci/board-sffsdr.c index 23e664a1a802..ab4292d4f80b 100644 --- a/arch/arm/mach-davinci/board-sffsdr.c +++ b/arch/arm/mach-davinci/board-sffsdr.c | |||
@@ -42,9 +42,7 @@ | |||
42 | #include <mach/mux.h> | 42 | #include <mach/mux.h> |
43 | #include <mach/usb.h> | 43 | #include <mach/usb.h> |
44 | 44 | ||
45 | #define SFFSDR_PHY_MASK (0x2) | 45 | #define SFFSDR_PHY_ID "0:01" |
46 | #define SFFSDR_MDIO_FREQUENCY (2200000) /* PHY bus frequency */ | ||
47 | |||
48 | static struct mtd_partition davinci_sffsdr_nandflash_partition[] = { | 46 | static struct mtd_partition davinci_sffsdr_nandflash_partition[] = { |
49 | /* U-Boot Environment: Block 0 | 47 | /* U-Boot Environment: Block 0 |
50 | * UBL: Block 1 | 48 | * UBL: Block 1 |
@@ -143,8 +141,7 @@ static __init void davinci_sffsdr_init(void) | |||
143 | ARRAY_SIZE(davinci_sffsdr_devices)); | 141 | ARRAY_SIZE(davinci_sffsdr_devices)); |
144 | sffsdr_init_i2c(); | 142 | sffsdr_init_i2c(); |
145 | davinci_serial_init(&uart_config); | 143 | davinci_serial_init(&uart_config); |
146 | soc_info->emac_pdata->phy_mask = SFFSDR_PHY_MASK; | 144 | soc_info->emac_pdata->phy_id = SFFSDR_PHY_ID; |
147 | soc_info->emac_pdata->mdio_max_freq = SFFSDR_MDIO_FREQUENCY; | ||
148 | davinci_setup_usb(0, 0); /* We support only peripheral mode. */ | 145 | davinci_setup_usb(0, 0); /* We support only peripheral mode. */ |
149 | 146 | ||
150 | /* mux VLYNQ pins */ | 147 | /* mux VLYNQ pins */ |
diff --git a/arch/arm/mach-davinci/devices-da8xx.c b/arch/arm/mach-davinci/devices-da8xx.c index 9039221649d4..9eec63070e0c 100644 --- a/arch/arm/mach-davinci/devices-da8xx.c +++ b/arch/arm/mach-davinci/devices-da8xx.c | |||
@@ -42,7 +42,6 @@ | |||
42 | #define DA8XX_EMAC_CTRL_REG_OFFSET 0x3000 | 42 | #define DA8XX_EMAC_CTRL_REG_OFFSET 0x3000 |
43 | #define DA8XX_EMAC_MOD_REG_OFFSET 0x2000 | 43 | #define DA8XX_EMAC_MOD_REG_OFFSET 0x2000 |
44 | #define DA8XX_EMAC_RAM_OFFSET 0x0000 | 44 | #define DA8XX_EMAC_RAM_OFFSET 0x0000 |
45 | #define DA8XX_MDIO_REG_OFFSET 0x4000 | ||
46 | #define DA8XX_EMAC_CTRL_RAM_SIZE SZ_8K | 45 | #define DA8XX_EMAC_CTRL_RAM_SIZE SZ_8K |
47 | 46 | ||
48 | void __iomem *da8xx_syscfg0_base; | 47 | void __iomem *da8xx_syscfg0_base; |
@@ -381,7 +380,6 @@ struct emac_platform_data da8xx_emac_pdata = { | |||
381 | .ctrl_reg_offset = DA8XX_EMAC_CTRL_REG_OFFSET, | 380 | .ctrl_reg_offset = DA8XX_EMAC_CTRL_REG_OFFSET, |
382 | .ctrl_mod_reg_offset = DA8XX_EMAC_MOD_REG_OFFSET, | 381 | .ctrl_mod_reg_offset = DA8XX_EMAC_MOD_REG_OFFSET, |
383 | .ctrl_ram_offset = DA8XX_EMAC_RAM_OFFSET, | 382 | .ctrl_ram_offset = DA8XX_EMAC_RAM_OFFSET, |
384 | .mdio_reg_offset = DA8XX_MDIO_REG_OFFSET, | ||
385 | .ctrl_ram_size = DA8XX_EMAC_CTRL_RAM_SIZE, | 383 | .ctrl_ram_size = DA8XX_EMAC_CTRL_RAM_SIZE, |
386 | .version = EMAC_VERSION_2, | 384 | .version = EMAC_VERSION_2, |
387 | }; | 385 | }; |
diff --git a/arch/arm/mach-davinci/dm365.c b/arch/arm/mach-davinci/dm365.c index 71f0f9d5c56a..240f392e18a8 100644 --- a/arch/arm/mach-davinci/dm365.c +++ b/arch/arm/mach-davinci/dm365.c | |||
@@ -691,7 +691,6 @@ static struct emac_platform_data dm365_emac_pdata = { | |||
691 | .ctrl_reg_offset = DM365_EMAC_CNTRL_OFFSET, | 691 | .ctrl_reg_offset = DM365_EMAC_CNTRL_OFFSET, |
692 | .ctrl_mod_reg_offset = DM365_EMAC_CNTRL_MOD_OFFSET, | 692 | .ctrl_mod_reg_offset = DM365_EMAC_CNTRL_MOD_OFFSET, |
693 | .ctrl_ram_offset = DM365_EMAC_CNTRL_RAM_OFFSET, | 693 | .ctrl_ram_offset = DM365_EMAC_CNTRL_RAM_OFFSET, |
694 | .mdio_reg_offset = DM365_EMAC_MDIO_OFFSET, | ||
695 | .ctrl_ram_size = DM365_EMAC_CNTRL_RAM_SIZE, | 694 | .ctrl_ram_size = DM365_EMAC_CNTRL_RAM_SIZE, |
696 | .version = EMAC_VERSION_2, | 695 | .version = EMAC_VERSION_2, |
697 | }; | 696 | }; |
diff --git a/arch/arm/mach-davinci/dm644x.c b/arch/arm/mach-davinci/dm644x.c index c103b2c8caff..41b7a95f22d3 100644 --- a/arch/arm/mach-davinci/dm644x.c +++ b/arch/arm/mach-davinci/dm644x.c | |||
@@ -322,7 +322,6 @@ static struct emac_platform_data dm644x_emac_pdata = { | |||
322 | .ctrl_reg_offset = DM644X_EMAC_CNTRL_OFFSET, | 322 | .ctrl_reg_offset = DM644X_EMAC_CNTRL_OFFSET, |
323 | .ctrl_mod_reg_offset = DM644X_EMAC_CNTRL_MOD_OFFSET, | 323 | .ctrl_mod_reg_offset = DM644X_EMAC_CNTRL_MOD_OFFSET, |
324 | .ctrl_ram_offset = DM644X_EMAC_CNTRL_RAM_OFFSET, | 324 | .ctrl_ram_offset = DM644X_EMAC_CNTRL_RAM_OFFSET, |
325 | .mdio_reg_offset = DM644X_EMAC_MDIO_OFFSET, | ||
326 | .ctrl_ram_size = DM644X_EMAC_CNTRL_RAM_SIZE, | 325 | .ctrl_ram_size = DM644X_EMAC_CNTRL_RAM_SIZE, |
327 | .version = EMAC_VERSION_1, | 326 | .version = EMAC_VERSION_1, |
328 | }; | 327 | }; |
diff --git a/arch/arm/mach-davinci/dm646x.c b/arch/arm/mach-davinci/dm646x.c index 8da886bc6df5..08db90f14287 100644 --- a/arch/arm/mach-davinci/dm646x.c +++ b/arch/arm/mach-davinci/dm646x.c | |||
@@ -358,7 +358,6 @@ static struct emac_platform_data dm646x_emac_pdata = { | |||
358 | .ctrl_reg_offset = DM646X_EMAC_CNTRL_OFFSET, | 358 | .ctrl_reg_offset = DM646X_EMAC_CNTRL_OFFSET, |
359 | .ctrl_mod_reg_offset = DM646X_EMAC_CNTRL_MOD_OFFSET, | 359 | .ctrl_mod_reg_offset = DM646X_EMAC_CNTRL_MOD_OFFSET, |
360 | .ctrl_ram_offset = DM646X_EMAC_CNTRL_RAM_OFFSET, | 360 | .ctrl_ram_offset = DM646X_EMAC_CNTRL_RAM_OFFSET, |
361 | .mdio_reg_offset = DM646X_EMAC_MDIO_OFFSET, | ||
362 | .ctrl_ram_size = DM646X_EMAC_CNTRL_RAM_SIZE, | 361 | .ctrl_ram_size = DM646X_EMAC_CNTRL_RAM_SIZE, |
363 | .version = EMAC_VERSION_2, | 362 | .version = EMAC_VERSION_2, |
364 | }; | 363 | }; |
diff --git a/arch/arm/mach-davinci/include/mach/dm365.h b/arch/arm/mach-davinci/include/mach/dm365.h index dbb5052b6c85..2563bf4e93a1 100644 --- a/arch/arm/mach-davinci/include/mach/dm365.h +++ b/arch/arm/mach-davinci/include/mach/dm365.h | |||
@@ -25,7 +25,6 @@ | |||
25 | #define DM365_EMAC_CNTRL_OFFSET (0x0000) | 25 | #define DM365_EMAC_CNTRL_OFFSET (0x0000) |
26 | #define DM365_EMAC_CNTRL_MOD_OFFSET (0x3000) | 26 | #define DM365_EMAC_CNTRL_MOD_OFFSET (0x3000) |
27 | #define DM365_EMAC_CNTRL_RAM_OFFSET (0x1000) | 27 | #define DM365_EMAC_CNTRL_RAM_OFFSET (0x1000) |
28 | #define DM365_EMAC_MDIO_OFFSET (0x4000) | ||
29 | #define DM365_EMAC_CNTRL_RAM_SIZE (0x2000) | 28 | #define DM365_EMAC_CNTRL_RAM_SIZE (0x2000) |
30 | 29 | ||
31 | /* Base of key scan register bank */ | 30 | /* Base of key scan register bank */ |
diff --git a/arch/arm/mach-davinci/include/mach/dm644x.h b/arch/arm/mach-davinci/include/mach/dm644x.h index 515911711a29..5a1b26d4e68b 100644 --- a/arch/arm/mach-davinci/include/mach/dm644x.h +++ b/arch/arm/mach-davinci/include/mach/dm644x.h | |||
@@ -32,7 +32,6 @@ | |||
32 | #define DM644X_EMAC_CNTRL_OFFSET (0x0000) | 32 | #define DM644X_EMAC_CNTRL_OFFSET (0x0000) |
33 | #define DM644X_EMAC_CNTRL_MOD_OFFSET (0x1000) | 33 | #define DM644X_EMAC_CNTRL_MOD_OFFSET (0x1000) |
34 | #define DM644X_EMAC_CNTRL_RAM_OFFSET (0x2000) | 34 | #define DM644X_EMAC_CNTRL_RAM_OFFSET (0x2000) |
35 | #define DM644X_EMAC_MDIO_OFFSET (0x4000) | ||
36 | #define DM644X_EMAC_CNTRL_RAM_SIZE (0x2000) | 35 | #define DM644X_EMAC_CNTRL_RAM_SIZE (0x2000) |
37 | 36 | ||
38 | #define DM644X_ASYNC_EMIF_CONTROL_BASE 0x01E00000 | 37 | #define DM644X_ASYNC_EMIF_CONTROL_BASE 0x01E00000 |
diff --git a/arch/arm/mach-davinci/include/mach/dm646x.h b/arch/arm/mach-davinci/include/mach/dm646x.h index 1c4dca924ac0..7a27f3f13913 100644 --- a/arch/arm/mach-davinci/include/mach/dm646x.h +++ b/arch/arm/mach-davinci/include/mach/dm646x.h | |||
@@ -23,7 +23,6 @@ | |||
23 | #define DM646X_EMAC_CNTRL_OFFSET (0x0000) | 23 | #define DM646X_EMAC_CNTRL_OFFSET (0x0000) |
24 | #define DM646X_EMAC_CNTRL_MOD_OFFSET (0x1000) | 24 | #define DM646X_EMAC_CNTRL_MOD_OFFSET (0x1000) |
25 | #define DM646X_EMAC_CNTRL_RAM_OFFSET (0x2000) | 25 | #define DM646X_EMAC_CNTRL_RAM_OFFSET (0x2000) |
26 | #define DM646X_EMAC_MDIO_OFFSET (0x4000) | ||
27 | #define DM646X_EMAC_CNTRL_RAM_SIZE (0x2000) | 26 | #define DM646X_EMAC_CNTRL_RAM_SIZE (0x2000) |
28 | 27 | ||
29 | #define DM646X_ASYNC_EMIF_CONTROL_BASE 0x20008000 | 28 | #define DM646X_ASYNC_EMIF_CONTROL_BASE 0x20008000 |