12 #include <linux/kernel.h>
13 #include <linux/types.h>
15 #include <linux/list.h>
19 #include <linux/device.h>
21 #include <linux/serial_core.h>
23 #include <linux/i2c.h>
35 #include <mach/hardware.h>
41 #include <mach/regs-gpio.h>
42 #include <mach/regs-mem.h>
43 #include <mach/regs-lcd.h>
53 #include <plat/clock.h>
101 #define UCON S3C2410_UCON_DEFAULT | S3C2410_UCON_UCLK
102 #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB
103 #define UFCON S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE
134 static int external_map[] = { 2 };
135 static int chip0_map[] = { 0 };
136 static int chip1_map[] = { 1 };
138 static struct mtd_partition __initdata osiris_default_nand_part[] = {
140 .name =
"Boot Agent",
161 static struct mtd_partition __initdata osiris_default_nand_part_large[] = {
163 .name =
"Boot Agent",
195 .nr_map = external_map,
197 .nr_partitions =
ARRAY_SIZE(osiris_default_nand_part),
198 .partitions = osiris_default_nand_part,
204 .nr_partitions =
ARRAY_SIZE(osiris_default_nand_part),
205 .partitions = osiris_default_nand_part,
212 .nr_partitions =
ARRAY_SIZE(osiris_default_nand_part),
213 .partitions = osiris_default_nand_part,
221 slot =
set->nr_map[
slot] & 3;
223 pr_debug(
"osiris_nand: selecting slot %d (set %p,%p)\n",
224 slot,
set,
set->nr_map);
230 pr_debug(
"osiris_nand: ctrl0 now %02x\n", tmp);
240 .sets = osiris_nand_sets,
241 .select_chip = osiris_nand_select,
246 static struct resource osiris_pcmcia_resource[] = {
252 .name =
"osiris-pcmcia",
254 .num_resources =
ARRAY_SIZE(osiris_pcmcia_resource),
255 .resource = osiris_pcmcia_resource,
261 static unsigned char pm_osiris_ctrl0;
294 #define osiris_pm_suspend NULL
295 #define osiris_pm_resume NULL
298 static struct syscore_ops osiris_pm_syscore_ops = {
305 static void osiris_tps_release(
struct device *
dev)
311 .name =
"osiris-dvs",
313 .dev.release = osiris_tps_release,
318 osiris_tps_device.
dev.parent = &client->
dev;
330 .setup = osiris_tps_setup,
331 .teardown = osiris_tps_remove,
340 .platform_data = &osiris_tps_board,
353 static struct clk *osiris_clocks[] __initdata = {
367 static void __init osiris_map_io(
void)
395 osiris_nand_sets[0].
partitions = osiris_default_nand_part_large;
410 static void __init osiris_init(
void)
427 .atag_offset = 0x100,
428 .map_io = osiris_map_io,
430 .init_machine = osiris_init,