1 /* linux/arch/arm/mach-s5pc100/mach-smdkc100.c
3 * Copyright 2009 Samsung Electronics Co.
4 * Author: Byungho Min <bhmin@samsung.com>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
12 #include <linux/kernel.h>
13 #include <linux/types.h>
14 #include <linux/interrupt.h>
15 #include <linux/list.h>
16 #include <linux/timer.h>
17 #include <linux/init.h>
18 #include <linux/serial_core.h>
19 #include <linux/platform_device.h>
21 #include <linux/gpio.h>
22 #include <linux/i2c.h>
24 #include <linux/delay.h>
26 #include <asm/mach/arch.h>
27 #include <asm/mach/map.h>
32 #include <asm/mach-types.h>
34 #include <plat/regs-serial.h>
36 #include <plat/clock.h>
37 #include <plat/devs.h>
39 #include <plat/s5pc100.h>
41 #define UCON (S3C2410_UCON_DEFAULT | S3C2410_UCON_UCLK)
42 #define ULCON (S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB)
43 #define UFCON (S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE)
45 static struct s3c2410_uartcfg smdkc100_uartcfgs
[] __initdata
= {
76 static struct map_desc smdkc100_iodesc
[] = {};
78 static struct platform_device
*smdkc100_devices
[] __initdata
= {
81 static void __init
smdkc100_map_io(void)
83 s5pc1xx_init_io(smdkc100_iodesc
, ARRAY_SIZE(smdkc100_iodesc
));
84 s3c24xx_init_clocks(12000000);
85 s3c24xx_init_uarts(smdkc100_uartcfgs
, ARRAY_SIZE(smdkc100_uartcfgs
));
88 static void __init
smdkc100_machine_init(void)
90 platform_add_devices(smdkc100_devices
, ARRAY_SIZE(smdkc100_devices
));
93 MACHINE_START(SMDKC100
, "SMDKC100")
94 /* Maintainer: Byungho Min <bhmin@samsung.com> */
95 .phys_io
= S5PC1XX_PA_UART
& 0xfff00000,
96 .io_pg_offst
= (((u32
)S5PC1XX_VA_UART
) >> 18) & 0xfffc,
97 .boot_params
= S5PC100_PA_SDRAM
+ 0x100,
99 .init_irq
= s5pc100_init_irq
,
100 .map_io
= smdkc100_map_io
,
101 .init_machine
= smdkc100_machine_init
,
102 .timer
= &s3c24xx_timer
,