diff options
author | Boris BREZILLON <boris.brezillon@free-electrons.com> | 2014-07-10 15:59:54 -0400 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2014-09-01 13:30:44 -0400 |
commit | 5f8157309624929e05ece846d3ca8a3a64988378 (patch) | |
tree | 69a0dcd1f4e20d4e1027eb9911e2e42ecce8e193 /arch/arm/mach-at91 | |
parent | 71e8a328cb4893cdae88ab7653ede1b3d2605ad8 (diff) |
ARM: at91: remove phy fixup for sama5d3xek boards
These board specific delays are now configured through micrel's specific
DT bindings (see Documentation/devicetree/bindings/net/micrel-ksz9021.txt).
Remove this phy fixup registration from sama5 DT machine file to keep it
as generic as possible.
Signed-off-by: Boris BREZILLON <boris.brezillon@free-electrons.com>
Tested-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'arch/arm/mach-at91')
-rw-r--r-- | arch/arm/mach-at91/board-dt-sama5.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/arch/arm/mach-at91/board-dt-sama5.c b/arch/arm/mach-at91/board-dt-sama5.c index 075ec0576ada..70b2504cd6dc 100644 --- a/arch/arm/mach-at91/board-dt-sama5.c +++ b/arch/arm/mach-at91/board-dt-sama5.c | |||
@@ -46,30 +46,8 @@ static void __init at91_dt_init_irq(void) | |||
46 | of_irq_init(irq_of_match); | 46 | of_irq_init(irq_of_match); |
47 | } | 47 | } |
48 | 48 | ||
49 | static int ksz9021rn_phy_fixup(struct phy_device *phy) | ||
50 | { | ||
51 | int value; | ||
52 | |||
53 | /* Set delay values */ | ||
54 | value = MICREL_KSZ9021_RGMII_CLK_CTRL_PAD_SCEW | 0x8000; | ||
55 | phy_write(phy, MICREL_KSZ9021_EXTREG_CTRL, value); | ||
56 | value = 0xF2F4; | ||
57 | phy_write(phy, MICREL_KSZ9021_EXTREG_DATA_WRITE, value); | ||
58 | value = MICREL_KSZ9021_RGMII_RX_DATA_PAD_SCEW | 0x8000; | ||
59 | phy_write(phy, MICREL_KSZ9021_EXTREG_CTRL, value); | ||
60 | value = 0x2222; | ||
61 | phy_write(phy, MICREL_KSZ9021_EXTREG_DATA_WRITE, value); | ||
62 | |||
63 | return 0; | ||
64 | } | ||
65 | |||
66 | static void __init sama5_dt_device_init(void) | 49 | static void __init sama5_dt_device_init(void) |
67 | { | 50 | { |
68 | if (of_machine_is_compatible("atmel,sama5d3xcm") && | ||
69 | IS_ENABLED(CONFIG_PHYLIB)) | ||
70 | phy_register_fixup_for_uid(PHY_ID_KSZ9021, MICREL_PHY_ID_MASK, | ||
71 | ksz9021rn_phy_fixup); | ||
72 | |||
73 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | 51 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); |
74 | } | 52 | } |
75 | 53 | ||