diff options
Diffstat (limited to 'arch/arm/mach-s5pv210/mach-goni.c')
-rw-r--r-- | arch/arm/mach-s5pv210/mach-goni.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/arch/arm/mach-s5pv210/mach-goni.c b/arch/arm/mach-s5pv210/mach-goni.c index 15edcae448b..ff915261043 100644 --- a/arch/arm/mach-s5pv210/mach-goni.c +++ b/arch/arm/mach-s5pv210/mach-goni.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <linux/gpio.h> | 27 | #include <linux/gpio.h> |
28 | #include <linux/interrupt.h> | 28 | #include <linux/interrupt.h> |
29 | 29 | ||
30 | #include <asm/hardware/vic.h> | ||
30 | #include <asm/mach/arch.h> | 31 | #include <asm/mach/arch.h> |
31 | #include <asm/mach/map.h> | 32 | #include <asm/mach/map.h> |
32 | #include <asm/setup.h> | 33 | #include <asm/setup.h> |
@@ -37,7 +38,6 @@ | |||
37 | 38 | ||
38 | #include <plat/gpio-cfg.h> | 39 | #include <plat/gpio-cfg.h> |
39 | #include <plat/regs-serial.h> | 40 | #include <plat/regs-serial.h> |
40 | #include <plat/s5pv210.h> | ||
41 | #include <plat/devs.h> | 41 | #include <plat/devs.h> |
42 | #include <plat/cpu.h> | 42 | #include <plat/cpu.h> |
43 | #include <plat/fb.h> | 43 | #include <plat/fb.h> |
@@ -54,6 +54,8 @@ | |||
54 | #include <media/s5p_fimc.h> | 54 | #include <media/s5p_fimc.h> |
55 | #include <media/noon010pc30.h> | 55 | #include <media/noon010pc30.h> |
56 | 56 | ||
57 | #include "common.h" | ||
58 | |||
57 | /* Following are default values for UCON, ULCON and UFCON UART registers */ | 59 | /* Following are default values for UCON, ULCON and UFCON UART registers */ |
58 | #define GONI_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ | 60 | #define GONI_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ |
59 | S3C2410_UCON_RXILEVEL | \ | 61 | S3C2410_UCON_RXILEVEL | \ |
@@ -227,8 +229,7 @@ static void __init goni_radio_init(void) | |||
227 | i2c1_devs[0].irq = gpio_to_irq(gpio); | 229 | i2c1_devs[0].irq = gpio_to_irq(gpio); |
228 | 230 | ||
229 | gpio = S5PV210_GPJ2(5); /* XMSMDATA_5 */ | 231 | gpio = S5PV210_GPJ2(5); /* XMSMDATA_5 */ |
230 | gpio_request(gpio, "FM_RST"); | 232 | gpio_request_one(gpio, GPIOF_OUT_INIT_HIGH, "FM_RST"); |
231 | gpio_direction_output(gpio, 1); | ||
232 | } | 233 | } |
233 | 234 | ||
234 | /* TSP */ | 235 | /* TSP */ |
@@ -264,8 +265,7 @@ static void __init goni_tsp_init(void) | |||
264 | int gpio; | 265 | int gpio; |
265 | 266 | ||
266 | gpio = S5PV210_GPJ1(3); /* XMSMADDR_11 */ | 267 | gpio = S5PV210_GPJ1(3); /* XMSMADDR_11 */ |
267 | gpio_request(gpio, "TSP_LDO_ON"); | 268 | gpio_request_one(gpio, GPIOF_OUT_INIT_HIGH, "TSP_LDO_ON"); |
268 | gpio_direction_output(gpio, 1); | ||
269 | gpio_export(gpio, 0); | 269 | gpio_export(gpio, 0); |
270 | 270 | ||
271 | gpio = S5PV210_GPJ0(5); /* XMSMADDR_5 */ | 271 | gpio = S5PV210_GPJ0(5); /* XMSMADDR_5 */ |
@@ -890,7 +890,7 @@ static void __init goni_sound_init(void) | |||
890 | 890 | ||
891 | static void __init goni_map_io(void) | 891 | static void __init goni_map_io(void) |
892 | { | 892 | { |
893 | s5p_init_io(NULL, 0, S5P_VA_CHIPID); | 893 | s5pv210_init_io(NULL, 0); |
894 | s3c24xx_init_clocks(24000000); | 894 | s3c24xx_init_clocks(24000000); |
895 | s3c24xx_init_uarts(goni_uartcfgs, ARRAY_SIZE(goni_uartcfgs)); | 895 | s3c24xx_init_uarts(goni_uartcfgs, ARRAY_SIZE(goni_uartcfgs)); |
896 | s5p_set_timer_source(S5P_PWM3, S5P_PWM4); | 896 | s5p_set_timer_source(S5P_PWM3, S5P_PWM4); |
@@ -956,8 +956,10 @@ MACHINE_START(GONI, "GONI") | |||
956 | /* Maintainers: Kyungmin Park <kyungmin.park@samsung.com> */ | 956 | /* Maintainers: Kyungmin Park <kyungmin.park@samsung.com> */ |
957 | .atag_offset = 0x100, | 957 | .atag_offset = 0x100, |
958 | .init_irq = s5pv210_init_irq, | 958 | .init_irq = s5pv210_init_irq, |
959 | .handle_irq = vic_handle_irq, | ||
959 | .map_io = goni_map_io, | 960 | .map_io = goni_map_io, |
960 | .init_machine = goni_machine_init, | 961 | .init_machine = goni_machine_init, |
961 | .timer = &s5p_timer, | 962 | .timer = &s5p_timer, |
962 | .reserve = &goni_reserve, | 963 | .reserve = &goni_reserve, |
964 | .restart = s5pv210_restart, | ||
963 | MACHINE_END | 965 | MACHINE_END |