diff options
| -rw-r--r-- | arch/arm/boot/dts/kirkwood-dreamplug.dts | 21 | ||||
| -rw-r--r-- | arch/arm/mach-kirkwood/board-dreamplug.c | 14 |
2 files changed, 21 insertions, 14 deletions
diff --git a/arch/arm/boot/dts/kirkwood-dreamplug.dts b/arch/arm/boot/dts/kirkwood-dreamplug.dts index 26e281fbf6bc..f2d386c95b07 100644 --- a/arch/arm/boot/dts/kirkwood-dreamplug.dts +++ b/arch/arm/boot/dts/kirkwood-dreamplug.dts | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | /dts-v1/; | 1 | /dts-v1/; |
| 2 | 2 | ||
| 3 | /include/ "kirkwood.dtsi" | 3 | /include/ "kirkwood.dtsi" |
| 4 | /include/ "kirkwood-6281.dtsi" | ||
| 4 | 5 | ||
| 5 | / { | 6 | / { |
| 6 | model = "Globalscale Technologies Dreamplug"; | 7 | model = "Globalscale Technologies Dreamplug"; |
| @@ -16,6 +17,26 @@ | |||
| 16 | }; | 17 | }; |
| 17 | 18 | ||
| 18 | ocp@f1000000 { | 19 | ocp@f1000000 { |
| 20 | pinctrl: pinctrl@10000 { | ||
| 21 | |||
| 22 | pinctrl-0 = < &pmx_spi | ||
| 23 | &pmx_led_bluetooth &pmx_led_wifi | ||
| 24 | &pmx_led_wifi_ap >; | ||
| 25 | pinctrl-names = "default"; | ||
| 26 | |||
| 27 | pmx_led_bluetooth: pmx-led-bluetooth { | ||
| 28 | marvell,pins = "mpp47"; | ||
| 29 | marvell,function = "gpio"; | ||
| 30 | }; | ||
| 31 | pmx_led_wifi: pmx-led-wifi { | ||
| 32 | marvell,pins = "mpp48"; | ||
| 33 | marvell,function = "gpio"; | ||
| 34 | }; | ||
| 35 | pmx_led_wifi_ap: pmx-led-wifi-ap { | ||
| 36 | marvell,pins = "mpp49"; | ||
| 37 | marvell,function = "gpio"; | ||
| 38 | }; | ||
| 39 | }; | ||
| 19 | serial@12000 { | 40 | serial@12000 { |
| 20 | clock-frequency = <200000000>; | 41 | clock-frequency = <200000000>; |
| 21 | status = "ok"; | 42 | status = "ok"; |
diff --git a/arch/arm/mach-kirkwood/board-dreamplug.c b/arch/arm/mach-kirkwood/board-dreamplug.c index acdc04a06843..3e2d95d629ee 100644 --- a/arch/arm/mach-kirkwood/board-dreamplug.c +++ b/arch/arm/mach-kirkwood/board-dreamplug.c | |||
| @@ -32,7 +32,6 @@ | |||
| 32 | #include <mach/bridge-regs.h> | 32 | #include <mach/bridge-regs.h> |
| 33 | #include <linux/platform_data/mmc-mvsdio.h> | 33 | #include <linux/platform_data/mmc-mvsdio.h> |
| 34 | #include "common.h" | 34 | #include "common.h" |
| 35 | #include "mpp.h" | ||
| 36 | 35 | ||
| 37 | static struct mv643xx_eth_platform_data dreamplug_ge00_data = { | 36 | static struct mv643xx_eth_platform_data dreamplug_ge00_data = { |
| 38 | .phy_addr = MV643XX_ETH_PHY_ADDR(0), | 37 | .phy_addr = MV643XX_ETH_PHY_ADDR(0), |
| @@ -46,24 +45,11 @@ static struct mvsdio_platform_data dreamplug_mvsdio_data = { | |||
| 46 | /* unfortunately the CD signal has not been connected */ | 45 | /* unfortunately the CD signal has not been connected */ |
| 47 | }; | 46 | }; |
| 48 | 47 | ||
| 49 | static unsigned int dreamplug_mpp_config[] __initdata = { | ||
| 50 | MPP0_SPI_SCn, | ||
| 51 | MPP1_SPI_MOSI, | ||
| 52 | MPP2_SPI_SCK, | ||
| 53 | MPP3_SPI_MISO, | ||
| 54 | MPP47_GPIO, /* Bluetooth LED */ | ||
| 55 | MPP48_GPIO, /* Wifi LED */ | ||
| 56 | MPP49_GPIO, /* Wifi AP LED */ | ||
| 57 | 0 | ||
| 58 | }; | ||
| 59 | |||
| 60 | void __init dreamplug_init(void) | 48 | void __init dreamplug_init(void) |
| 61 | { | 49 | { |
| 62 | /* | 50 | /* |
| 63 | * Basic setup. Needs to be called early. | 51 | * Basic setup. Needs to be called early. |
| 64 | */ | 52 | */ |
| 65 | kirkwood_mpp_conf(dreamplug_mpp_config); | ||
| 66 | |||
| 67 | kirkwood_ge00_init(&dreamplug_ge00_data); | 53 | kirkwood_ge00_init(&dreamplug_ge00_data); |
| 68 | kirkwood_ge01_init(&dreamplug_ge01_data); | 54 | kirkwood_ge01_init(&dreamplug_ge01_data); |
| 69 | kirkwood_sdio_init(&dreamplug_mvsdio_data); | 55 | kirkwood_sdio_init(&dreamplug_mvsdio_data); |
