diff options
author | Abhilash Kesavan <a.kesavan@samsung.com> | 2010-06-08 04:11:43 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2010-08-05 05:31:01 -0400 |
commit | 4b9a5ad567af06d8929f022c71469ada1679a367 (patch) | |
tree | 9eced368d95901463a5565d465a1c3440fa48dc3 /arch/arm/mach-s5pv210/mach-smdkc110.c | |
parent | ba149f3acdbbf143d70a64275917a6297c2373ba (diff) |
ARM: S5PV210: Add support for Compact Flash driver on SMDKV210/C110
Following is added for the CF-ATA driver:
- Platform data strucure instantiation
- Platform device enabling code
- Platform-specific gpio setup code
- Fixed IRQ naming to match across 64xx and v210
Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-s5pv210/mach-smdkc110.c')
-rw-r--r-- | arch/arm/mach-s5pv210/mach-smdkc110.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-s5pv210/mach-smdkc110.c b/arch/arm/mach-s5pv210/mach-smdkc110.c index 4c8903c6d104..723e6078b97a 100644 --- a/arch/arm/mach-s5pv210/mach-smdkc110.c +++ b/arch/arm/mach-s5pv210/mach-smdkc110.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <plat/s5pv210.h> | 25 | #include <plat/s5pv210.h> |
26 | #include <plat/devs.h> | 26 | #include <plat/devs.h> |
27 | #include <plat/cpu.h> | 27 | #include <plat/cpu.h> |
28 | #include <plat/ata.h> | ||
28 | 29 | ||
29 | /* Following are default values for UCON, ULCON and UFCON UART registers */ | 30 | /* Following are default values for UCON, ULCON and UFCON UART registers */ |
30 | #define S5PV210_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ | 31 | #define S5PV210_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ |
@@ -71,9 +72,14 @@ static struct s3c2410_uartcfg smdkv210_uartcfgs[] __initdata = { | |||
71 | }, | 72 | }, |
72 | }; | 73 | }; |
73 | 74 | ||
75 | static struct s3c_ide_platdata smdkv210_ide_pdata __initdata = { | ||
76 | .setup_gpio = s5pv210_ide_setup_gpio, | ||
77 | }; | ||
78 | |||
74 | static struct platform_device *smdkc110_devices[] __initdata = { | 79 | static struct platform_device *smdkc110_devices[] __initdata = { |
75 | &s5pv210_device_iis0, | 80 | &s5pv210_device_iis0, |
76 | &s5pv210_device_ac97, | 81 | &s5pv210_device_ac97, |
82 | &s3c_device_cfcon, | ||
77 | &s3c_device_wdt, | 83 | &s3c_device_wdt, |
78 | }; | 84 | }; |
79 | 85 | ||
@@ -86,6 +92,8 @@ static void __init smdkc110_map_io(void) | |||
86 | 92 | ||
87 | static void __init smdkc110_machine_init(void) | 93 | static void __init smdkc110_machine_init(void) |
88 | { | 94 | { |
95 | s3c_ide_set_platdata(&smdkv210_ide_pdata); | ||
96 | |||
89 | platform_add_devices(smdkc110_devices, ARRAY_SIZE(smdkc110_devices)); | 97 | platform_add_devices(smdkc110_devices, ARRAY_SIZE(smdkc110_devices)); |
90 | } | 98 | } |
91 | 99 | ||