diff options
Diffstat (limited to 'arch/arm/mach-kirkwood/board-goflexnet.c')
-rw-r--r-- | arch/arm/mach-kirkwood/board-goflexnet.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/arch/arm/mach-kirkwood/board-goflexnet.c b/arch/arm/mach-kirkwood/board-goflexnet.c index 001ca8c96980..3b9661802f8c 100644 --- a/arch/arm/mach-kirkwood/board-goflexnet.c +++ b/arch/arm/mach-kirkwood/board-goflexnet.c | |||
@@ -26,7 +26,6 @@ | |||
26 | #include <linux/of_fdt.h> | 26 | #include <linux/of_fdt.h> |
27 | #include <linux/of_irq.h> | 27 | #include <linux/of_irq.h> |
28 | #include <linux/of_platform.h> | 28 | #include <linux/of_platform.h> |
29 | #include <linux/gpio.h> | ||
30 | #include <asm/mach-types.h> | 29 | #include <asm/mach-types.h> |
31 | #include <asm/mach/arch.h> | 30 | #include <asm/mach/arch.h> |
32 | #include <asm/mach/map.h> | 31 | #include <asm/mach/map.h> |
@@ -34,38 +33,15 @@ | |||
34 | #include <mach/bridge-regs.h> | 33 | #include <mach/bridge-regs.h> |
35 | #include <linux/platform_data/mmc-mvsdio.h> | 34 | #include <linux/platform_data/mmc-mvsdio.h> |
36 | #include "common.h" | 35 | #include "common.h" |
37 | #include "mpp.h" | ||
38 | 36 | ||
39 | static struct mv643xx_eth_platform_data goflexnet_ge00_data = { | 37 | static struct mv643xx_eth_platform_data goflexnet_ge00_data = { |
40 | .phy_addr = MV643XX_ETH_PHY_ADDR(0), | 38 | .phy_addr = MV643XX_ETH_PHY_ADDR(0), |
41 | }; | 39 | }; |
42 | 40 | ||
43 | static unsigned int goflexnet_mpp_config[] __initdata = { | ||
44 | MPP29_GPIO, /* USB Power Enable */ | ||
45 | MPP47_GPIO, /* LED Orange */ | ||
46 | MPP46_GPIO, /* LED Green */ | ||
47 | MPP45_GPIO, /* LED Left Capacity 3 */ | ||
48 | MPP44_GPIO, /* LED Left Capacity 2 */ | ||
49 | MPP43_GPIO, /* LED Left Capacity 1 */ | ||
50 | MPP42_GPIO, /* LED Left Capacity 0 */ | ||
51 | MPP41_GPIO, /* LED Right Capacity 3 */ | ||
52 | MPP40_GPIO, /* LED Right Capacity 2 */ | ||
53 | MPP39_GPIO, /* LED Right Capacity 1 */ | ||
54 | MPP38_GPIO, /* LED Right Capacity 0 */ | ||
55 | 0 | ||
56 | }; | ||
57 | |||
58 | void __init goflexnet_init(void) | 41 | void __init goflexnet_init(void) |
59 | { | 42 | { |
60 | /* | 43 | /* |
61 | * Basic setup. Needs to be called early. | 44 | * Basic setup. Needs to be called early. |
62 | */ | 45 | */ |
63 | kirkwood_mpp_conf(goflexnet_mpp_config); | ||
64 | |||
65 | if (gpio_request(29, "USB Power Enable") != 0 || | ||
66 | gpio_direction_output(29, 1) != 0) | ||
67 | pr_err("can't setup GPIO 29 (USB Power Enable)\n"); | ||
68 | kirkwood_ehci_init(); | ||
69 | |||
70 | kirkwood_ge00_init(&goflexnet_ge00_data); | 46 | kirkwood_ge00_init(&goflexnet_ge00_data); |
71 | } | 47 | } |