aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s5pc100/mach-smdkc100.c
diff options
context:
space:
mode:
authorAbhilash Kesavan <a.kesavan@samsung.com>2010-06-08 04:02:08 -0400
committerKukjin Kim <kgene.kim@samsung.com>2010-08-05 05:30:50 -0400
commit66194a74c290e7e082c276329ee84d54669c82fc (patch)
treee2acb18df8c8ef6701b424ec5cc0b3326fa2c62e /arch/arm/mach-s5pc100/mach-smdkc100.c
parent9fe6206f400646a2322096b56c59891d530e8d51 (diff)
ARM: S5PC100: Add support for Compact Flash driver on SMDKC100
Following is added for the CF-ATA driver: - Platform data strucure instantiation - Platform device enabling code - Platform-specific gpio setup code Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-s5pc100/mach-smdkc100.c')
-rw-r--r--arch/arm/mach-s5pc100/mach-smdkc100.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-s5pc100/mach-smdkc100.c b/arch/arm/mach-s5pc100/mach-smdkc100.c
index af22f8202a07..b97830ab396a 100644
--- a/arch/arm/mach-s5pc100/mach-smdkc100.c
+++ b/arch/arm/mach-s5pc100/mach-smdkc100.c
@@ -42,6 +42,7 @@
42#include <plat/s5pc100.h> 42#include <plat/s5pc100.h>
43#include <plat/fb.h> 43#include <plat/fb.h>
44#include <plat/iic.h> 44#include <plat/iic.h>
45#include <plat/ata.h>
45 46
46/* Following are default values for UCON, ULCON and UFCON UART registers */ 47/* Following are default values for UCON, ULCON and UFCON UART registers */
47#define S5PC100_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ 48#define S5PC100_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \
@@ -149,7 +150,12 @@ static struct s3c_fb_platdata smdkc100_lcd_pdata __initdata = {
149 .setup_gpio = s5pc100_fb_gpio_setup_24bpp, 150 .setup_gpio = s5pc100_fb_gpio_setup_24bpp,
150}; 151};
151 152
153static struct s3c_ide_platdata smdkc100_ide_pdata __initdata = {
154 .setup_gpio = s5pc100_ide_setup_gpio,
155};
156
152static struct platform_device *smdkc100_devices[] __initdata = { 157static struct platform_device *smdkc100_devices[] __initdata = {
158 &s3c_device_cfcon,
153 &s3c_device_i2c0, 159 &s3c_device_i2c0,
154 &s3c_device_i2c1, 160 &s3c_device_i2c1,
155 &s3c_device_fb, 161 &s3c_device_fb,
@@ -177,6 +183,7 @@ static void __init smdkc100_machine_init(void)
177 i2c_register_board_info(1, i2c_devs1, ARRAY_SIZE(i2c_devs1)); 183 i2c_register_board_info(1, i2c_devs1, ARRAY_SIZE(i2c_devs1));
178 184
179 s3c_fb_set_platdata(&smdkc100_lcd_pdata); 185 s3c_fb_set_platdata(&smdkc100_lcd_pdata);
186 s3c_ide_set_platdata(&smdkc100_ide_pdata);
180 187
181 /* LCD init */ 188 /* LCD init */
182 gpio_request(S5PC100_GPD(0), "GPD"); 189 gpio_request(S5PC100_GPD(0), "GPD");