diff options
author | Andrew Lunn <andrew@lunn.ch> | 2012-10-20 07:10:01 -0400 |
---|---|---|
committer | Jason Cooper <jason@lakedaemon.net> | 2012-11-23 21:53:37 -0500 |
commit | b6cf80704d065931f906db61776a1fb8d8609d63 (patch) | |
tree | c23f2a79e32c64e4e39c1309667b6f6984add79a | |
parent | 77dae54ab385033e488d8b07045bc7f8d931740f (diff) |
ARM: Kirkwood: Convert all DT boards to EHCI via DT.
Now that the EHCI driver has DT support, drop old style configuration
of it and add DT in its place. Since all the boards enable the EHCI,
enable it by default in kirkwood.dtsi. Any new boards which don't have
USB can specifically disable it.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
-rw-r--r-- | arch/arm/boot/dts/kirkwood.dtsi | 7 | ||||
-rw-r--r-- | arch/arm/mach-kirkwood/board-dnskw.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-kirkwood/board-dockstar.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-kirkwood/board-dreamplug.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-kirkwood/board-goflexnet.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-kirkwood/board-ib62x0.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-kirkwood/board-iconnect.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-kirkwood/board-iomega_ix2_200.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-kirkwood/board-km_kirkwood.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-kirkwood/board-lsxl.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-kirkwood/board-ts219.c | 1 |
11 files changed, 7 insertions, 11 deletions
diff --git a/arch/arm/boot/dts/kirkwood.dtsi b/arch/arm/boot/dts/kirkwood.dtsi index 4e5b8154a5be..4fc7a8e49168 100644 --- a/arch/arm/boot/dts/kirkwood.dtsi +++ b/arch/arm/boot/dts/kirkwood.dtsi | |||
@@ -77,6 +77,13 @@ | |||
77 | status = "okay"; | 77 | status = "okay"; |
78 | }; | 78 | }; |
79 | 79 | ||
80 | ehci@50000 { | ||
81 | compatible = "marvell,orion-ehci"; | ||
82 | reg = <0x50000 0x1000>; | ||
83 | interrupts = <19>; | ||
84 | status = "okay"; | ||
85 | }; | ||
86 | |||
80 | sata@80000 { | 87 | sata@80000 { |
81 | compatible = "marvell,orion-sata"; | 88 | compatible = "marvell,orion-sata"; |
82 | reg = <0x80000 0x5000>; | 89 | reg = <0x80000 0x5000>; |
diff --git a/arch/arm/mach-kirkwood/board-dnskw.c b/arch/arm/mach-kirkwood/board-dnskw.c index 43d16d6714b8..2ac6c60578f6 100644 --- a/arch/arm/mach-kirkwood/board-dnskw.c +++ b/arch/arm/mach-kirkwood/board-dnskw.c | |||
@@ -78,7 +78,6 @@ void __init dnskw_init(void) | |||
78 | { | 78 | { |
79 | kirkwood_mpp_conf(dnskw_mpp_config); | 79 | kirkwood_mpp_conf(dnskw_mpp_config); |
80 | 80 | ||
81 | kirkwood_ehci_init(); | ||
82 | kirkwood_ge00_init(&dnskw_ge00_data); | 81 | kirkwood_ge00_init(&dnskw_ge00_data); |
83 | 82 | ||
84 | /* Register power-off GPIO. */ | 83 | /* Register power-off GPIO. */ |
diff --git a/arch/arm/mach-kirkwood/board-dockstar.c b/arch/arm/mach-kirkwood/board-dockstar.c index f2fbb023e679..e94782d6a266 100644 --- a/arch/arm/mach-kirkwood/board-dockstar.c +++ b/arch/arm/mach-kirkwood/board-dockstar.c | |||
@@ -55,7 +55,6 @@ void __init dockstar_dt_init(void) | |||
55 | if (gpio_request(29, "USB Power Enable") != 0 || | 55 | if (gpio_request(29, "USB Power Enable") != 0 || |
56 | gpio_direction_output(29, 1) != 0) | 56 | gpio_direction_output(29, 1) != 0) |
57 | pr_err("can't setup GPIO 29 (USB Power Enable)\n"); | 57 | pr_err("can't setup GPIO 29 (USB Power Enable)\n"); |
58 | kirkwood_ehci_init(); | ||
59 | 58 | ||
60 | kirkwood_ge00_init(&dockstar_ge00_data); | 59 | kirkwood_ge00_init(&dockstar_ge00_data); |
61 | } | 60 | } |
diff --git a/arch/arm/mach-kirkwood/board-dreamplug.c b/arch/arm/mach-kirkwood/board-dreamplug.c index 20af53a56c0e..acdc04a06843 100644 --- a/arch/arm/mach-kirkwood/board-dreamplug.c +++ b/arch/arm/mach-kirkwood/board-dreamplug.c | |||
@@ -64,7 +64,6 @@ void __init dreamplug_init(void) | |||
64 | */ | 64 | */ |
65 | kirkwood_mpp_conf(dreamplug_mpp_config); | 65 | kirkwood_mpp_conf(dreamplug_mpp_config); |
66 | 66 | ||
67 | kirkwood_ehci_init(); | ||
68 | kirkwood_ge00_init(&dreamplug_ge00_data); | 67 | kirkwood_ge00_init(&dreamplug_ge00_data); |
69 | kirkwood_ge01_init(&dreamplug_ge01_data); | 68 | kirkwood_ge01_init(&dreamplug_ge01_data); |
70 | kirkwood_sdio_init(&dreamplug_mvsdio_data); | 69 | kirkwood_sdio_init(&dreamplug_mvsdio_data); |
diff --git a/arch/arm/mach-kirkwood/board-goflexnet.c b/arch/arm/mach-kirkwood/board-goflexnet.c index 001ca8c96980..d388bea71360 100644 --- a/arch/arm/mach-kirkwood/board-goflexnet.c +++ b/arch/arm/mach-kirkwood/board-goflexnet.c | |||
@@ -65,7 +65,6 @@ void __init goflexnet_init(void) | |||
65 | if (gpio_request(29, "USB Power Enable") != 0 || | 65 | if (gpio_request(29, "USB Power Enable") != 0 || |
66 | gpio_direction_output(29, 1) != 0) | 66 | gpio_direction_output(29, 1) != 0) |
67 | pr_err("can't setup GPIO 29 (USB Power Enable)\n"); | 67 | pr_err("can't setup GPIO 29 (USB Power Enable)\n"); |
68 | kirkwood_ehci_init(); | ||
69 | 68 | ||
70 | kirkwood_ge00_init(&goflexnet_ge00_data); | 69 | kirkwood_ge00_init(&goflexnet_ge00_data); |
71 | } | 70 | } |
diff --git a/arch/arm/mach-kirkwood/board-ib62x0.c b/arch/arm/mach-kirkwood/board-ib62x0.c index cfc47f80e734..db08e379a40a 100644 --- a/arch/arm/mach-kirkwood/board-ib62x0.c +++ b/arch/arm/mach-kirkwood/board-ib62x0.c | |||
@@ -61,7 +61,6 @@ void __init ib62x0_init(void) | |||
61 | */ | 61 | */ |
62 | kirkwood_mpp_conf(ib62x0_mpp_config); | 62 | kirkwood_mpp_conf(ib62x0_mpp_config); |
63 | 63 | ||
64 | kirkwood_ehci_init(); | ||
65 | kirkwood_ge00_init(&ib62x0_ge00_data); | 64 | kirkwood_ge00_init(&ib62x0_ge00_data); |
66 | if (gpio_request(IB62X0_GPIO_POWER_OFF, "ib62x0:power:off") == 0 && | 65 | if (gpio_request(IB62X0_GPIO_POWER_OFF, "ib62x0:power:off") == 0 && |
67 | gpio_direction_output(IB62X0_GPIO_POWER_OFF, 0) == 0) | 66 | gpio_direction_output(IB62X0_GPIO_POWER_OFF, 0) == 0) |
diff --git a/arch/arm/mach-kirkwood/board-iconnect.c b/arch/arm/mach-kirkwood/board-iconnect.c index d084b1e2943a..8275fb0c3170 100644 --- a/arch/arm/mach-kirkwood/board-iconnect.c +++ b/arch/arm/mach-kirkwood/board-iconnect.c | |||
@@ -45,7 +45,6 @@ void __init iconnect_init(void) | |||
45 | { | 45 | { |
46 | kirkwood_mpp_conf(iconnect_mpp_config); | 46 | kirkwood_mpp_conf(iconnect_mpp_config); |
47 | 47 | ||
48 | kirkwood_ehci_init(); | ||
49 | kirkwood_ge00_init(&iconnect_ge00_data); | 48 | kirkwood_ge00_init(&iconnect_ge00_data); |
50 | } | 49 | } |
51 | 50 | ||
diff --git a/arch/arm/mach-kirkwood/board-iomega_ix2_200.c b/arch/arm/mach-kirkwood/board-iomega_ix2_200.c index 158fb97d0397..a6f3d29e8c8b 100644 --- a/arch/arm/mach-kirkwood/board-iomega_ix2_200.c +++ b/arch/arm/mach-kirkwood/board-iomega_ix2_200.c | |||
@@ -51,7 +51,5 @@ void __init iomega_ix2_200_init(void) | |||
51 | */ | 51 | */ |
52 | kirkwood_mpp_conf(iomega_ix2_200_mpp_config); | 52 | kirkwood_mpp_conf(iomega_ix2_200_mpp_config); |
53 | 53 | ||
54 | kirkwood_ehci_init(); | ||
55 | |||
56 | kirkwood_ge01_init(&iomega_ix2_200_ge00_data); | 54 | kirkwood_ge01_init(&iomega_ix2_200_ge00_data); |
57 | } | 55 | } |
diff --git a/arch/arm/mach-kirkwood/board-km_kirkwood.c b/arch/arm/mach-kirkwood/board-km_kirkwood.c index f7d32834b757..1e9ac4bbfe61 100644 --- a/arch/arm/mach-kirkwood/board-km_kirkwood.c +++ b/arch/arm/mach-kirkwood/board-km_kirkwood.c | |||
@@ -52,6 +52,5 @@ void __init km_kirkwood_init(void) | |||
52 | if (!IS_ERR(sata_clk)) | 52 | if (!IS_ERR(sata_clk)) |
53 | sata_clk->flags |= CLK_IGNORE_UNUSED; | 53 | sata_clk->flags |= CLK_IGNORE_UNUSED; |
54 | 54 | ||
55 | kirkwood_ehci_init(); | ||
56 | kirkwood_ge00_init(&km_kirkwood_ge00_data); | 55 | kirkwood_ge00_init(&km_kirkwood_ge00_data); |
57 | } | 56 | } |
diff --git a/arch/arm/mach-kirkwood/board-lsxl.c b/arch/arm/mach-kirkwood/board-lsxl.c index a29b8bff103d..b6fbdaac3843 100644 --- a/arch/arm/mach-kirkwood/board-lsxl.c +++ b/arch/arm/mach-kirkwood/board-lsxl.c | |||
@@ -75,7 +75,6 @@ void __init lsxl_init(void) | |||
75 | gpio_set_value(LSXL_GPIO_USB_POWER, 1); | 75 | gpio_set_value(LSXL_GPIO_USB_POWER, 1); |
76 | gpio_set_value(LSXL_GPIO_HDD_POWER, 1); | 76 | gpio_set_value(LSXL_GPIO_HDD_POWER, 1); |
77 | 77 | ||
78 | kirkwood_ehci_init(); | ||
79 | kirkwood_ge00_init(&lsxl_ge00_data); | 78 | kirkwood_ge00_init(&lsxl_ge00_data); |
80 | kirkwood_ge01_init(&lsxl_ge01_data); | 79 | kirkwood_ge01_init(&lsxl_ge01_data); |
81 | 80 | ||
diff --git a/arch/arm/mach-kirkwood/board-ts219.c b/arch/arm/mach-kirkwood/board-ts219.c index 1750e68506c1..5a031b931370 100644 --- a/arch/arm/mach-kirkwood/board-ts219.c +++ b/arch/arm/mach-kirkwood/board-ts219.c | |||
@@ -66,7 +66,6 @@ void __init qnap_dt_ts219_init(void) | |||
66 | qnap_ts219_ge00_data.phy_addr = MV643XX_ETH_PHY_ADDR(0); | 66 | qnap_ts219_ge00_data.phy_addr = MV643XX_ETH_PHY_ADDR(0); |
67 | 67 | ||
68 | kirkwood_ge00_init(&qnap_ts219_ge00_data); | 68 | kirkwood_ge00_init(&qnap_ts219_ge00_data); |
69 | kirkwood_ehci_init(); | ||
70 | 69 | ||
71 | pm_power_off = qnap_tsx1x_power_off; | 70 | pm_power_off = qnap_tsx1x_power_off; |
72 | } | 71 | } |