diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-14 16:42:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-14 16:42:43 -0400 |
commit | 2cf4d4514d5b43c1f3b64bd0ec8b9853bde8f1dc (patch) | |
tree | e35a625496acc6ac852846d40b8851186b9d1ac4 /arch/arm/mach-s3c2412 | |
parent | 44b7532b8b464f606053562400719c9c21276037 (diff) | |
parent | ce53895a5d24e0ee19fb92f56c17323fb4c9ab27 (diff) |
Merge branch 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm
* 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm: (417 commits)
MAINTAINERS: EB110ATX is not ebsa110
MAINTAINERS: update Eric Miao's email address and status
fb: add support of LCD display controller on pxa168/910 (base layer)
[ARM] 5552/1: ep93xx get_uart_rate(): use EP93XX_SYSCON_PWRCNT and EP93XX_SYSCON_PWRCN
[ARM] pxa/sharpsl_pm: zaurus needs generic pxa suspend/resume routines
[ARM] 5544/1: Trust PrimeCell resource sizes
[ARM] pxa/sharpsl_pm: cleanup of gpio-related code.
[ARM] pxa/sharpsl_pm: drop set_irq_type calls
[ARM] pxa/sharpsl_pm: merge pxa-specific code into generic one
[ARM] pxa/sharpsl_pm: merge the two sharpsl_pm.c since it's now pxa specific
[ARM] sa1100: remove unused collie_pm.c
[ARM] pxa: fix the conflicting non-static declarations of global_gpios[]
[ARM] 5550/1: Add default configure file for w90p910 platform
[ARM] 5549/1: Add clock api for w90p910 platform.
[ARM] 5548/1: Add gpio api for w90p910 platform
[ARM] 5551/1: Add multi-function pin api for w90p910 platform.
[ARM] Make ARM_VIC_NR depend on ARM_VIC
[ARM] 5546/1: ARM PL022 SSP/SPI driver v3
ARM: OMAP4: SMP: Update defconfig for OMAP4430
ARM: OMAP4: SMP: Enable SMP support for OMAP4430
...
Diffstat (limited to 'arch/arm/mach-s3c2412')
-rw-r--r-- | arch/arm/mach-s3c2412/Kconfig | 3 | ||||
-rw-r--r-- | arch/arm/mach-s3c2412/dma.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-s3c2412/mach-jive.c | 43 | ||||
-rw-r--r-- | arch/arm/mach-s3c2412/mach-smdk2413.c | 9 |
4 files changed, 32 insertions, 26 deletions
diff --git a/arch/arm/mach-s3c2412/Kconfig b/arch/arm/mach-s3c2412/Kconfig index ca99564ae4b5..63586ffd0ae7 100644 --- a/arch/arm/mach-s3c2412/Kconfig +++ b/arch/arm/mach-s3c2412/Kconfig | |||
@@ -38,6 +38,7 @@ menu "S3C2412 Machines" | |||
38 | config MACH_JIVE | 38 | config MACH_JIVE |
39 | bool "Logitech Jive" | 39 | bool "Logitech Jive" |
40 | select CPU_S3C2412 | 40 | select CPU_S3C2412 |
41 | select S3C_DEV_USB_HOST | ||
41 | help | 42 | help |
42 | Say Y here if you are using the Logitech Jive. | 43 | Say Y here if you are using the Logitech Jive. |
43 | 44 | ||
@@ -50,6 +51,7 @@ config MACH_SMDK2413 | |||
50 | select CPU_S3C2412 | 51 | select CPU_S3C2412 |
51 | select MACH_S3C2413 | 52 | select MACH_S3C2413 |
52 | select MACH_SMDK | 53 | select MACH_SMDK |
54 | select S3C_DEV_USB_HOST | ||
53 | help | 55 | help |
54 | Say Y here if you are using an SMDK2413 | 56 | Say Y here if you are using an SMDK2413 |
55 | 57 | ||
@@ -72,6 +74,7 @@ config MACH_SMDK2412 | |||
72 | config MACH_VSTMS | 74 | config MACH_VSTMS |
73 | bool "VMSTMS" | 75 | bool "VMSTMS" |
74 | select CPU_S3C2412 | 76 | select CPU_S3C2412 |
77 | select S3C_DEV_USB_HOST | ||
75 | help | 78 | help |
76 | Say Y here if you are using an VSTMS board | 79 | Say Y here if you are using an VSTMS board |
77 | 80 | ||
diff --git a/arch/arm/mach-s3c2412/dma.c b/arch/arm/mach-s3c2412/dma.c index 9e3478506c6f..f8d16fc10bc6 100644 --- a/arch/arm/mach-s3c2412/dma.c +++ b/arch/arm/mach-s3c2412/dma.c | |||
@@ -20,12 +20,13 @@ | |||
20 | 20 | ||
21 | #include <mach/dma.h> | 21 | #include <mach/dma.h> |
22 | 22 | ||
23 | #include <plat/dma.h> | 23 | #include <plat/dma-plat.h> |
24 | #include <plat/cpu.h> | 24 | #include <plat/cpu.h> |
25 | 25 | ||
26 | #include <plat/regs-serial.h> | 26 | #include <plat/regs-serial.h> |
27 | #include <mach/regs-gpio.h> | 27 | #include <mach/regs-gpio.h> |
28 | #include <plat/regs-ac97.h> | 28 | #include <plat/regs-ac97.h> |
29 | #include <plat/regs-dma.h> | ||
29 | #include <mach/regs-mem.h> | 30 | #include <mach/regs-mem.h> |
30 | #include <mach/regs-lcd.h> | 31 | #include <mach/regs-lcd.h> |
31 | #include <mach/regs-sdi.h> | 32 | #include <mach/regs-sdi.h> |
diff --git a/arch/arm/mach-s3c2412/mach-jive.c b/arch/arm/mach-s3c2412/mach-jive.c index 8f0d37d43b43..8df506eac903 100644 --- a/arch/arm/mach-s3c2412/mach-jive.c +++ b/arch/arm/mach-s3c2412/mach-jive.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/list.h> | 16 | #include <linux/list.h> |
17 | #include <linux/timer.h> | 17 | #include <linux/timer.h> |
18 | #include <linux/init.h> | 18 | #include <linux/init.h> |
19 | #include <linux/gpio.h> | ||
19 | #include <linux/sysdev.h> | 20 | #include <linux/sysdev.h> |
20 | #include <linux/serial_core.h> | 21 | #include <linux/serial_core.h> |
21 | #include <linux/platform_device.h> | 22 | #include <linux/platform_device.h> |
@@ -356,8 +357,8 @@ static void jive_lcm_reset(unsigned int set) | |||
356 | { | 357 | { |
357 | printk(KERN_DEBUG "%s(%d)\n", __func__, set); | 358 | printk(KERN_DEBUG "%s(%d)\n", __func__, set); |
358 | 359 | ||
359 | s3c2410_gpio_setpin(S3C2410_GPG13, set); | 360 | s3c2410_gpio_setpin(S3C2410_GPG(13), set); |
360 | s3c2410_gpio_cfgpin(S3C2410_GPG13, S3C2410_GPIO_OUTPUT); | 361 | s3c2410_gpio_cfgpin(S3C2410_GPG(13), S3C2410_GPIO_OUTPUT); |
361 | } | 362 | } |
362 | 363 | ||
363 | #undef LCD_UPPER_MARGIN | 364 | #undef LCD_UPPER_MARGIN |
@@ -390,13 +391,13 @@ static struct ili9320_platdata jive_lcm_config = { | |||
390 | 391 | ||
391 | static void jive_lcd_spi_chipselect(struct s3c2410_spigpio_info *spi, int cs) | 392 | static void jive_lcd_spi_chipselect(struct s3c2410_spigpio_info *spi, int cs) |
392 | { | 393 | { |
393 | s3c2410_gpio_setpin(S3C2410_GPB7, cs ? 0 : 1); | 394 | s3c2410_gpio_setpin(S3C2410_GPB(7), cs ? 0 : 1); |
394 | } | 395 | } |
395 | 396 | ||
396 | static struct s3c2410_spigpio_info jive_lcd_spi = { | 397 | static struct s3c2410_spigpio_info jive_lcd_spi = { |
397 | .bus_num = 1, | 398 | .bus_num = 1, |
398 | .pin_clk = S3C2410_GPG8, | 399 | .pin_clk = S3C2410_GPG(8), |
399 | .pin_mosi = S3C2410_GPB8, | 400 | .pin_mosi = S3C2410_GPB(8), |
400 | .num_chipselect = 1, | 401 | .num_chipselect = 1, |
401 | .chip_select = jive_lcd_spi_chipselect, | 402 | .chip_select = jive_lcd_spi_chipselect, |
402 | }; | 403 | }; |
@@ -412,13 +413,13 @@ static struct platform_device jive_device_lcdspi = { | |||
412 | 413 | ||
413 | static void jive_wm8750_chipselect(struct s3c2410_spigpio_info *spi, int cs) | 414 | static void jive_wm8750_chipselect(struct s3c2410_spigpio_info *spi, int cs) |
414 | { | 415 | { |
415 | s3c2410_gpio_setpin(S3C2410_GPH10, cs ? 0 : 1); | 416 | s3c2410_gpio_setpin(S3C2410_GPH(10), cs ? 0 : 1); |
416 | } | 417 | } |
417 | 418 | ||
418 | static struct s3c2410_spigpio_info jive_wm8750_spi = { | 419 | static struct s3c2410_spigpio_info jive_wm8750_spi = { |
419 | .bus_num = 2, | 420 | .bus_num = 2, |
420 | .pin_clk = S3C2410_GPB4, | 421 | .pin_clk = S3C2410_GPB(4), |
421 | .pin_mosi = S3C2410_GPB9, | 422 | .pin_mosi = S3C2410_GPB(9), |
422 | .num_chipselect = 1, | 423 | .num_chipselect = 1, |
423 | .chip_select = jive_wm8750_chipselect, | 424 | .chip_select = jive_wm8750_chipselect, |
424 | }; | 425 | }; |
@@ -479,7 +480,7 @@ static struct platform_device *jive_devices[] __initdata = { | |||
479 | }; | 480 | }; |
480 | 481 | ||
481 | static struct s3c2410_udc_mach_info jive_udc_cfg __initdata = { | 482 | static struct s3c2410_udc_mach_info jive_udc_cfg __initdata = { |
482 | .vbus_pin = S3C2410_GPG1, /* detect is on GPG1 */ | 483 | .vbus_pin = S3C2410_GPG(1), /* detect is on GPG1 */ |
483 | }; | 484 | }; |
484 | 485 | ||
485 | /* Jive power management device */ | 486 | /* Jive power management device */ |
@@ -529,8 +530,8 @@ static void jive_power_off(void) | |||
529 | { | 530 | { |
530 | printk(KERN_INFO "powering system down...\n"); | 531 | printk(KERN_INFO "powering system down...\n"); |
531 | 532 | ||
532 | s3c2410_gpio_setpin(S3C2410_GPC5, 1); | 533 | s3c2410_gpio_setpin(S3C2410_GPC(5), 1); |
533 | s3c2410_gpio_cfgpin(S3C2410_GPC5, S3C2410_GPIO_OUTPUT); | 534 | s3c2410_gpio_cfgpin(S3C2410_GPC(5), S3C2410_GPIO_OUTPUT); |
534 | } | 535 | } |
535 | 536 | ||
536 | static void __init jive_machine_init(void) | 537 | static void __init jive_machine_init(void) |
@@ -634,22 +635,22 @@ static void __init jive_machine_init(void) | |||
634 | 635 | ||
635 | /* initialise the spi */ | 636 | /* initialise the spi */ |
636 | 637 | ||
637 | s3c2410_gpio_setpin(S3C2410_GPG13, 0); | 638 | s3c2410_gpio_setpin(S3C2410_GPG(13), 0); |
638 | s3c2410_gpio_cfgpin(S3C2410_GPG13, S3C2410_GPIO_OUTPUT); | 639 | s3c2410_gpio_cfgpin(S3C2410_GPG(13), S3C2410_GPIO_OUTPUT); |
639 | 640 | ||
640 | s3c2410_gpio_setpin(S3C2410_GPB7, 1); | 641 | s3c2410_gpio_setpin(S3C2410_GPB(7), 1); |
641 | s3c2410_gpio_cfgpin(S3C2410_GPB7, S3C2410_GPIO_OUTPUT); | 642 | s3c2410_gpio_cfgpin(S3C2410_GPB(7), S3C2410_GPIO_OUTPUT); |
642 | 643 | ||
643 | s3c2410_gpio_setpin(S3C2410_GPB6, 0); | 644 | s3c2410_gpio_setpin(S3C2410_GPB(6), 0); |
644 | s3c2410_gpio_cfgpin(S3C2410_GPB6, S3C2410_GPIO_OUTPUT); | 645 | s3c2410_gpio_cfgpin(S3C2410_GPB(6), S3C2410_GPIO_OUTPUT); |
645 | 646 | ||
646 | s3c2410_gpio_setpin(S3C2410_GPG8, 1); | 647 | s3c2410_gpio_setpin(S3C2410_GPG(8), 1); |
647 | s3c2410_gpio_cfgpin(S3C2410_GPG8, S3C2410_GPIO_OUTPUT); | 648 | s3c2410_gpio_cfgpin(S3C2410_GPG(8), S3C2410_GPIO_OUTPUT); |
648 | 649 | ||
649 | /* initialise the WM8750 spi */ | 650 | /* initialise the WM8750 spi */ |
650 | 651 | ||
651 | s3c2410_gpio_setpin(S3C2410_GPH10, 1); | 652 | s3c2410_gpio_setpin(S3C2410_GPH(10), 1); |
652 | s3c2410_gpio_cfgpin(S3C2410_GPH10, S3C2410_GPIO_OUTPUT); | 653 | s3c2410_gpio_cfgpin(S3C2410_GPH(10), S3C2410_GPIO_OUTPUT); |
653 | 654 | ||
654 | /* Turn off suspend on both USB ports, and switch the | 655 | /* Turn off suspend on both USB ports, and switch the |
655 | * selectable USB port to USB device mode. */ | 656 | * selectable USB port to USB device mode. */ |
diff --git a/arch/arm/mach-s3c2412/mach-smdk2413.c b/arch/arm/mach-s3c2412/mach-smdk2413.c index eba66aa6bd20..9a5e43419722 100644 --- a/arch/arm/mach-s3c2412/mach-smdk2413.c +++ b/arch/arm/mach-s3c2412/mach-smdk2413.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/list.h> | 17 | #include <linux/list.h> |
18 | #include <linux/timer.h> | 18 | #include <linux/timer.h> |
19 | #include <linux/init.h> | 19 | #include <linux/init.h> |
20 | #include <linux/gpio.h> | ||
20 | #include <linux/serial_core.h> | 21 | #include <linux/serial_core.h> |
21 | #include <linux/platform_device.h> | 22 | #include <linux/platform_device.h> |
22 | #include <linux/io.h> | 23 | #include <linux/io.h> |
@@ -84,10 +85,10 @@ static void smdk2413_udc_pullup(enum s3c2410_udc_cmd_e cmd) | |||
84 | switch (cmd) | 85 | switch (cmd) |
85 | { | 86 | { |
86 | case S3C2410_UDC_P_ENABLE : | 87 | case S3C2410_UDC_P_ENABLE : |
87 | s3c2410_gpio_setpin(S3C2410_GPF2, 1); | 88 | s3c2410_gpio_setpin(S3C2410_GPF(2), 1); |
88 | break; | 89 | break; |
89 | case S3C2410_UDC_P_DISABLE : | 90 | case S3C2410_UDC_P_DISABLE : |
90 | s3c2410_gpio_setpin(S3C2410_GPF2, 0); | 91 | s3c2410_gpio_setpin(S3C2410_GPF(2), 0); |
91 | break; | 92 | break; |
92 | case S3C2410_UDC_P_RESET : | 93 | case S3C2410_UDC_P_RESET : |
93 | break; | 94 | break; |
@@ -134,8 +135,8 @@ static void __init smdk2413_machine_init(void) | |||
134 | { /* Turn off suspend on both USB ports, and switch the | 135 | { /* Turn off suspend on both USB ports, and switch the |
135 | * selectable USB port to USB device mode. */ | 136 | * selectable USB port to USB device mode. */ |
136 | 137 | ||
137 | s3c2410_gpio_setpin(S3C2410_GPF2, 0); | 138 | s3c2410_gpio_setpin(S3C2410_GPF(2), 0); |
138 | s3c2410_gpio_cfgpin(S3C2410_GPF2, S3C2410_GPIO_OUTPUT); | 139 | s3c2410_gpio_cfgpin(S3C2410_GPF(2), S3C2410_GPIO_OUTPUT); |
139 | 140 | ||
140 | s3c2410_modify_misccr(S3C2410_MISCCR_USBHOST | | 141 | s3c2410_modify_misccr(S3C2410_MISCCR_USBHOST | |
141 | S3C2410_MISCCR_USBSUSPND0 | | 142 | S3C2410_MISCCR_USBSUSPND0 | |