29 #include <linux/kernel.h>
30 #include <linux/types.h>
32 #include <linux/list.h>
36 #include <linux/device.h>
39 #include <linux/serial_core.h>
47 #include <mach/hardware.h>
53 #include <mach/regs-lcd.h>
54 #include <mach/regs-gpio.h>
68 static struct resource amlm5900_nor_resource =
98 .parts = amlm5900_mtd_partitions,
99 .nr_parts =
ARRAY_SIZE(amlm5900_mtd_partitions),
103 .name =
"physmap-flash",
106 .platform_data = &amlm5900_flash_data,
109 .resource = &amlm5900_nor_resource,
115 #define UCON S3C2410_UCON_DEFAULT
116 #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB
117 #define UFCON S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE
145 #ifdef CONFIG_FB_S3C2410
155 &amlm5900_device_nor,
158 static void __init amlm5900_map_io(
void)
165 #ifdef CONFIG_FB_S3C2410
176 .left_margin = 1 << (4 + 3),
187 .displays = &amlm5900_lcd_info,
189 .default_display = 0,
191 .gpccon = 0xaaaaaaaa,
192 .gpccon_mask = 0xffffffff,
194 .gpcup_mask = 0xffffffff,
196 .gpdcon = 0xaaaaaaaa,
197 .gpdcon_mask = 0xffffffff,
199 .gpdup_mask = 0xffffffff,
204 amlm5900_wake_interrupt(
int irq,
void *
ignored)
209 static void amlm5900_init_pm(
void)
215 "amlm5900_wakeup", &amlm5900_wake_interrupt);
225 static void __init amlm5900_init(
void)
228 #ifdef CONFIG_FB_S3C2410
236 .atag_offset = 0x100,
237 .map_io = amlm5900_map_io,
239 .init_machine = amlm5900_init,