diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-22 16:32:53 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-22 16:32:53 -0400 |
commit | f6a26ae7699416d86bea8cb68ce413571e9cab3c (patch) | |
tree | e91b7a7c7513151fe583721f7435cc9f5cdc4f42 /arch/arm/mach-orion5x | |
parent | cdd3a354a05b0c33fe33ab11a0fb0838396cad19 (diff) | |
parent | 48a5765e5104f1afd22c75c5030af3a6cf24b4c3 (diff) |
Merge tag 'boards' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull arm-soc board specific changes from Olof Johansson:
"While we generally attempt to get rid of board specific files and
replace them with device tree based descriptions, a lot of platforms
have not come that far:
In shmobile, we add two new board files because their recently started
effort to add DT support has not proceeded enough to use it for all of
the important hardware.
In Kirkwood, we are adding support for new boards with a combination
of DT and board file contents in multiple cases.
pxa/mmp and imx are extending support for existing board files but not
adding new ones."
Fix up trivial conflicts in arch/arm/mach-{mmp/ttc_dkb.c,shmobile/{Kconfig,Makefile}}
* tag 'boards' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (94 commits)
ARM: shmobile: fix smp build
ARM: kirkwood: Add support for RaidSonic IB-NAS6210/6220 using devicetree
kirkwood: Add iconnect support
orion/kirkwood: create a generic function for gpio led blinking
kirkwood/orion: fix orion_gpio_set_blink
ARM: kirkwood: Define DNS-320/DNS-325 NAND in fdt
kirkwood: Allow nand to be configured via. devicetree
mtd: Add orion_nand devicetree bindings
ARM: kirkwood: Basic support for DNS-320 and DNS-325
ARM: mach-shmobile: Use DT_MACHINE for armadillo 800 eva
ARM: mach-shmobile: Use DT_MACHINE for KZM9G
ARM: pxa: hx4700: Add Synaptics NavPoint touchpad
ARM: pxa: Use REGULATOR_SUPPLY macro
ARM: mach-shmobile: kzm9g: enable SMP boot
ARM: mach-shmobile: kzm9g: defconfig update
ARM: mach-shmobile: kzm9g: add PCF8757 gpio-key
ARM: mach-shmobile: kzm9g: add SDHI support
ARM: mach-shmobile: kzm9g: add MMCIF support
ARM: mach-shmobile: kzm9g: correct screen direction
ARM: mach-shmobile: sh73a0.h: add GPIO_NR
...
Diffstat (limited to 'arch/arm/mach-orion5x')
-rw-r--r-- | arch/arm/mach-orion5x/dns323-setup.c | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/arch/arm/mach-orion5x/dns323-setup.c b/arch/arm/mach-orion5x/dns323-setup.c index 8c06ccac44c2..d470864b4e42 100644 --- a/arch/arm/mach-orion5x/dns323-setup.c +++ b/arch/arm/mach-orion5x/dns323-setup.c | |||
@@ -252,27 +252,6 @@ error_fail: | |||
252 | * GPIO LEDs (simple - doesn't use hardware blinking support) | 252 | * GPIO LEDs (simple - doesn't use hardware blinking support) |
253 | */ | 253 | */ |
254 | 254 | ||
255 | #define ORION_BLINK_HALF_PERIOD 100 /* ms */ | ||
256 | |||
257 | static int dns323_gpio_blink_set(unsigned gpio, int state, | ||
258 | unsigned long *delay_on, unsigned long *delay_off) | ||
259 | { | ||
260 | |||
261 | if (delay_on && delay_off && !*delay_on && !*delay_off) | ||
262 | *delay_on = *delay_off = ORION_BLINK_HALF_PERIOD; | ||
263 | |||
264 | switch(state) { | ||
265 | case GPIO_LED_NO_BLINK_LOW: | ||
266 | case GPIO_LED_NO_BLINK_HIGH: | ||
267 | orion_gpio_set_blink(gpio, 0); | ||
268 | gpio_set_value(gpio, state); | ||
269 | break; | ||
270 | case GPIO_LED_BLINK: | ||
271 | orion_gpio_set_blink(gpio, 1); | ||
272 | } | ||
273 | return 0; | ||
274 | } | ||
275 | |||
276 | static struct gpio_led dns323ab_leds[] = { | 255 | static struct gpio_led dns323ab_leds[] = { |
277 | { | 256 | { |
278 | .name = "power:blue", | 257 | .name = "power:blue", |
@@ -311,13 +290,13 @@ static struct gpio_led dns323c_leds[] = { | |||
311 | static struct gpio_led_platform_data dns323ab_led_data = { | 290 | static struct gpio_led_platform_data dns323ab_led_data = { |
312 | .num_leds = ARRAY_SIZE(dns323ab_leds), | 291 | .num_leds = ARRAY_SIZE(dns323ab_leds), |
313 | .leds = dns323ab_leds, | 292 | .leds = dns323ab_leds, |
314 | .gpio_blink_set = dns323_gpio_blink_set, | 293 | .gpio_blink_set = orion_gpio_led_blink_set, |
315 | }; | 294 | }; |
316 | 295 | ||
317 | static struct gpio_led_platform_data dns323c_led_data = { | 296 | static struct gpio_led_platform_data dns323c_led_data = { |
318 | .num_leds = ARRAY_SIZE(dns323c_leds), | 297 | .num_leds = ARRAY_SIZE(dns323c_leds), |
319 | .leds = dns323c_leds, | 298 | .leds = dns323c_leds, |
320 | .gpio_blink_set = dns323_gpio_blink_set, | 299 | .gpio_blink_set = orion_gpio_led_blink_set, |
321 | }; | 300 | }; |
322 | 301 | ||
323 | static struct platform_device dns323_gpio_leds = { | 302 | static struct platform_device dns323_gpio_leds = { |