diff options
Diffstat (limited to 'arch/arm/mach-s3c2443')
-rw-r--r-- | arch/arm/mach-s3c2443/Kconfig | 3 | ||||
-rw-r--r-- | arch/arm/mach-s3c2443/clock.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-s3c2443/mach-smdk2443.c | 9 | ||||
-rw-r--r-- | arch/arm/mach-s3c2443/s3c2443.c | 7 |
4 files changed, 19 insertions, 4 deletions
diff --git a/arch/arm/mach-s3c2443/Kconfig b/arch/arm/mach-s3c2443/Kconfig index 31babec90cec..d8eb86823df7 100644 --- a/arch/arm/mach-s3c2443/Kconfig +++ b/arch/arm/mach-s3c2443/Kconfig | |||
@@ -10,6 +10,7 @@ config CPU_S3C2443 | |||
10 | select CPU_LLSERIAL_S3C2440 | 10 | select CPU_LLSERIAL_S3C2440 |
11 | select SAMSUNG_CLKSRC | 11 | select SAMSUNG_CLKSRC |
12 | select S3C2443_CLOCK | 12 | select S3C2443_CLOCK |
13 | select S3C_GPIO_PULL_S3C2443 | ||
13 | help | 14 | help |
14 | Support for the S3C2443 SoC from the S3C24XX line | 15 | Support for the S3C2443 SoC from the S3C24XX line |
15 | 16 | ||
@@ -25,7 +26,7 @@ config MACH_SMDK2443 | |||
25 | bool "SMDK2443" | 26 | bool "SMDK2443" |
26 | select CPU_S3C2443 | 27 | select CPU_S3C2443 |
27 | select MACH_SMDK | 28 | select MACH_SMDK |
28 | select S3C_DEV_HSMMC | 29 | select S3C_DEV_HSMMC1 |
29 | help | 30 | help |
30 | Say Y here if you are using an SMDK2443 | 31 | Say Y here if you are using an SMDK2443 |
31 | 32 | ||
diff --git a/arch/arm/mach-s3c2443/clock.c b/arch/arm/mach-s3c2443/clock.c index 0c3c0c884cd3..f4ec6d5715c8 100644 --- a/arch/arm/mach-s3c2443/clock.c +++ b/arch/arm/mach-s3c2443/clock.c | |||
@@ -196,7 +196,7 @@ static struct clksrc_clk clk_hsspi = { | |||
196 | static struct clksrc_clk clk_hsmmc_div = { | 196 | static struct clksrc_clk clk_hsmmc_div = { |
197 | .clk = { | 197 | .clk = { |
198 | .name = "hsmmc-div", | 198 | .name = "hsmmc-div", |
199 | .id = -1, | 199 | .id = 1, |
200 | .parent = &clk_esysclk.clk, | 200 | .parent = &clk_esysclk.clk, |
201 | }, | 201 | }, |
202 | .reg_div = { .reg = S3C2443_CLKDIV1, .size = 2, .shift = 6 }, | 202 | .reg_div = { .reg = S3C2443_CLKDIV1, .size = 2, .shift = 6 }, |
@@ -231,7 +231,7 @@ static int s3c2443_enable_hsmmc(struct clk *clk, int enable) | |||
231 | 231 | ||
232 | static struct clk clk_hsmmc = { | 232 | static struct clk clk_hsmmc = { |
233 | .name = "hsmmc-if", | 233 | .name = "hsmmc-if", |
234 | .id = -1, | 234 | .id = 1, |
235 | .parent = &clk_hsmmc_div.clk, | 235 | .parent = &clk_hsmmc_div.clk, |
236 | .enable = s3c2443_enable_hsmmc, | 236 | .enable = s3c2443_enable_hsmmc, |
237 | .ops = &(struct clk_ops) { | 237 | .ops = &(struct clk_ops) { |
diff --git a/arch/arm/mach-s3c2443/mach-smdk2443.c b/arch/arm/mach-s3c2443/mach-smdk2443.c index 4337f0a9960d..514275e43ca0 100644 --- a/arch/arm/mach-s3c2443/mach-smdk2443.c +++ b/arch/arm/mach-s3c2443/mach-smdk2443.c | |||
@@ -99,13 +99,20 @@ static struct s3c2410_uartcfg smdk2443_uartcfgs[] __initdata = { | |||
99 | .ucon = 0x3c5, | 99 | .ucon = 0x3c5, |
100 | .ulcon = 0x43, | 100 | .ulcon = 0x43, |
101 | .ufcon = 0x51, | 101 | .ufcon = 0x51, |
102 | }, | ||
103 | [3] = { | ||
104 | .hwport = 3, | ||
105 | .flags = 0, | ||
106 | .ucon = 0x3c5, | ||
107 | .ulcon = 0x03, | ||
108 | .ufcon = 0x51, | ||
102 | } | 109 | } |
103 | }; | 110 | }; |
104 | 111 | ||
105 | static struct platform_device *smdk2443_devices[] __initdata = { | 112 | static struct platform_device *smdk2443_devices[] __initdata = { |
106 | &s3c_device_wdt, | 113 | &s3c_device_wdt, |
107 | &s3c_device_i2c0, | 114 | &s3c_device_i2c0, |
108 | &s3c_device_hsmmc0, | 115 | &s3c_device_hsmmc1, |
109 | #ifdef CONFIG_SND_SOC_SMDK2443_WM9710 | 116 | #ifdef CONFIG_SND_SOC_SMDK2443_WM9710 |
110 | &s3c_device_ac97, | 117 | &s3c_device_ac97, |
111 | #endif | 118 | #endif |
diff --git a/arch/arm/mach-s3c2443/s3c2443.c b/arch/arm/mach-s3c2443/s3c2443.c index 33d18dd1ebd5..e6a28ba52c7d 100644 --- a/arch/arm/mach-s3c2443/s3c2443.c +++ b/arch/arm/mach-s3c2443/s3c2443.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/platform_device.h> | 20 | #include <linux/platform_device.h> |
20 | #include <linux/serial_core.h> | 21 | #include <linux/serial_core.h> |
21 | #include <linux/sysdev.h> | 22 | #include <linux/sysdev.h> |
@@ -32,6 +33,9 @@ | |||
32 | #include <mach/regs-s3c2443-clock.h> | 33 | #include <mach/regs-s3c2443-clock.h> |
33 | #include <mach/reset.h> | 34 | #include <mach/reset.h> |
34 | 35 | ||
36 | #include <plat/gpio-core.h> | ||
37 | #include <plat/gpio-cfg.h> | ||
38 | #include <plat/gpio-cfg-helpers.h> | ||
35 | #include <plat/s3c2443.h> | 39 | #include <plat/s3c2443.h> |
36 | #include <plat/devs.h> | 40 | #include <plat/devs.h> |
37 | #include <plat/cpu.h> | 41 | #include <plat/cpu.h> |
@@ -86,6 +90,9 @@ void __init s3c2443_init_uarts(struct s3c2410_uartcfg *cfg, int no) | |||
86 | 90 | ||
87 | void __init s3c2443_map_io(void) | 91 | void __init s3c2443_map_io(void) |
88 | { | 92 | { |
93 | s3c24xx_gpiocfg_default.set_pull = s3c_gpio_setpull_s3c2443; | ||
94 | s3c24xx_gpiocfg_default.get_pull = s3c_gpio_getpull_s3c2443; | ||
95 | |||
89 | iotable_init(s3c2443_iodesc, ARRAY_SIZE(s3c2443_iodesc)); | 96 | iotable_init(s3c2443_iodesc, ARRAY_SIZE(s3c2443_iodesc)); |
90 | } | 97 | } |
91 | 98 | ||