diff options
author | Simon Horman <horms+renesas@verge.net.au> | 2013-04-02 21:49:18 -0400 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-04-02 21:49:18 -0400 |
commit | eb0ae7280939fda741ad6ae9b108725517652f56 (patch) | |
tree | af0a7387d7f9424a3b7bd2c1a065d4433a76270b /arch/arm/mach-shmobile/board-marzen.c | |
parent | ac22dde76c80a3ffa3c3c24cf16bb8076b20b767 (diff) | |
parent | 202ac6a21a79500ef5aab4cd8665be2597e9345c (diff) |
Merge tag 'renesas-pinmux2-for-v3.10' into boards-base
Second round of Renesas ARM and SH based SoC pinmux updates for v3.10
Highlights:
* Compilation fixes for sh7269 and for when CONFIG_BUG is not set
* sh-pfc Support for r8a73a4 SoC
* Move GPIOs handling from the PFC device to separate GPIO devices on the r8a7779 SoC
This pull request is based on a merge of:
git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas renesas-pinmux-for-v3.10
git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas renesas-soc2-for-v3.10
This merge is made to supply run-time dependencies for the following
patches that will bea added on top:
ARM: shmobile: APE6EVM LAN9220 support
ARM: shmobile: APE6EVM PFC support
Diffstat (limited to 'arch/arm/mach-shmobile/board-marzen.c')
-rw-r--r-- | arch/arm/mach-shmobile/board-marzen.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/board-marzen.c b/arch/arm/mach-shmobile/board-marzen.c index 2333a2d7c937..91052855cc12 100644 --- a/arch/arm/mach-shmobile/board-marzen.c +++ b/arch/arm/mach-shmobile/board-marzen.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <linux/platform_device.h> | 25 | #include <linux/platform_device.h> |
26 | #include <linux/delay.h> | 26 | #include <linux/delay.h> |
27 | #include <linux/io.h> | 27 | #include <linux/io.h> |
28 | #include <linux/leds.h> | ||
28 | #include <linux/dma-mapping.h> | 29 | #include <linux/dma-mapping.h> |
29 | #include <linux/pinctrl/machine.h> | 30 | #include <linux/pinctrl/machine.h> |
30 | #include <linux/regulator/fixed.h> | 31 | #include <linux/regulator/fixed.h> |
@@ -168,12 +169,43 @@ static struct platform_device usb_phy_device = { | |||
168 | .num_resources = ARRAY_SIZE(usb_phy_resources), | 169 | .num_resources = ARRAY_SIZE(usb_phy_resources), |
169 | }; | 170 | }; |
170 | 171 | ||
172 | /* LEDS */ | ||
173 | static struct gpio_led marzen_leds[] = { | ||
174 | { | ||
175 | .name = "led2", | ||
176 | .gpio = 157, | ||
177 | .default_state = LEDS_GPIO_DEFSTATE_ON, | ||
178 | }, { | ||
179 | .name = "led3", | ||
180 | .gpio = 158, | ||
181 | .default_state = LEDS_GPIO_DEFSTATE_ON, | ||
182 | }, { | ||
183 | .name = "led4", | ||
184 | .gpio = 159, | ||
185 | .default_state = LEDS_GPIO_DEFSTATE_ON, | ||
186 | }, | ||
187 | }; | ||
188 | |||
189 | static struct gpio_led_platform_data marzen_leds_pdata = { | ||
190 | .leds = marzen_leds, | ||
191 | .num_leds = ARRAY_SIZE(marzen_leds), | ||
192 | }; | ||
193 | |||
194 | static struct platform_device leds_device = { | ||
195 | .name = "leds-gpio", | ||
196 | .id = 0, | ||
197 | .dev = { | ||
198 | .platform_data = &marzen_leds_pdata, | ||
199 | }, | ||
200 | }; | ||
201 | |||
171 | static struct platform_device *marzen_devices[] __initdata = { | 202 | static struct platform_device *marzen_devices[] __initdata = { |
172 | ð_device, | 203 | ð_device, |
173 | &sdhi0_device, | 204 | &sdhi0_device, |
174 | &thermal_device, | 205 | &thermal_device, |
175 | &hspi_device, | 206 | &hspi_device, |
176 | &usb_phy_device, | 207 | &usb_phy_device, |
208 | &leds_device, | ||
177 | }; | 209 | }; |
178 | 210 | ||
179 | /* USB */ | 211 | /* USB */ |