19 #include <linux/kernel.h>
20 #include <linux/list.h>
24 #include <linux/serial_core.h>
25 #include <linux/types.h>
33 #include <mach/regs-gpio.h>
50 #define UCON S3C2410_UCON_DEFAULT
51 #define ULCON (S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB)
52 #define UFCON (S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE)
87 static struct resource mini6410_dm9k_resource[] = {
101 .num_resources =
ARRAY_SIZE(mini6410_dm9k_resource),
102 .resource = mini6410_dm9k_resource,
104 .platform_data = &mini6410_dm9k_pdata,
130 .nr_partitions =
ARRAY_SIZE(mini6410_nand_part),
131 .partitions = mini6410_nand_part,
140 .sets = mini6410_nand_sets,
150 static struct fb_videomode mini6410_lcd_type0_timing = {
169 static struct fb_videomode mini6410_lcd_type1_timing = {
184 .vtiming = &mini6410_lcd_type0_timing,
185 .win[0] = &mini6410_lcd_type0_fb_win,
190 .vtiming = &mini6410_lcd_type1_timing,
191 .win[0] = &mini6410_lcd_type1_fb_win,
208 .set_power = mini6410_lcd_power_set,
212 .name =
"platform-lcd",
214 .dev.platform_data = &mini6410_lcd_power_data,
218 &mini6410_device_eth,
224 &mini6410_lcd_powerdev,
229 static void __init mini6410_map_io(
void)
255 static char mini6410_features_str[12] __initdata =
"0";
257 static int __init mini6410_features_setup(
char *
str)
260 strlcpy(mini6410_features_str, str,
261 sizeof(mini6410_features_str));
265 __setup(
"mini6410=", mini6410_features_setup);
267 #define FEATURE_SCREEN (1 << 0)
274 static void mini6410_parse_features(
276 const char *features_str)
278 const char *
fp = features_str;
290 "screen type already set\n", f);
295 "of range LCD mode\n", f);
306 static void __init mini6410_machine_init(
void)
312 mini6410_features_str);
315 mini6410_parse_features(&features, mini6410_features_str);
318 mini6410_lcd_pdata[features.
lcd_index].win[0]->xres,
319 mini6410_lcd_pdata[features.
lcd_index].win[0]->yres);
353 .atag_offset = 0x100,
356 .map_io = mini6410_map_io,
357 .init_machine = mini6410_machine_init,