26 #include <linux/types.h>
32 #include <asm/memory.h>
33 #include <asm/setup.h>
39 #include <mach/common.h>
40 #include <mach/hardware.h>
45 #define KZM_ARM11_IO_ADDRESS(x) (IOMEM( \
46 IMX_IO_P2V_MODULE(x, MX31_CS4) ?: \
47 IMX_IO_P2V_MODULE(x, MX31_CS5)) ?: \
53 #define KZM_ARM11_CTL1 (MX31_CS4_BASE_ADDR + 0x1000)
54 #define KZM_ARM11_CTL2 (MX31_CS4_BASE_ADDR + 0x1001)
55 #define KZM_ARM11_RSW1 (MX31_CS4_BASE_ADDR + 0x1002)
56 #define KZM_ARM11_BACK_LIGHT (MX31_CS4_BASE_ADDR + 0x1004)
57 #define KZM_ARM11_FPGA_REV (MX31_CS4_BASE_ADDR + 0x1008)
58 #define KZM_ARM11_7SEG_LED (MX31_CS4_BASE_ADDR + 0x1010)
59 #define KZM_ARM11_LEDS (MX31_CS4_BASE_ADDR + 0x1020)
60 #define KZM_ARM11_DIPSW2 (MX31_CS4_BASE_ADDR + 0x1003)
65 #define KZM_ARM11_16550 (MX31_CS4_BASE_ADDR + 0x1050)
67 #if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE)
86 static struct resource serial8250_resources[] = {
102 .platform_data = serial_platform_data,
104 .num_resources =
ARRAY_SIZE(serial8250_resources),
105 .resource = serial8250_resources,
108 static int __init kzm_init_ext_uart(
void)
126 serial_platform_data[0].
irq =
128 serial8250_resources[1].
start =
130 serial8250_resources[1].
end =
136 static inline int kzm_init_ext_uart(
void)
145 #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE)
153 static struct resource kzm_smsc9118_resources[] = {
168 .num_resources =
ARRAY_SIZE(kzm_smsc9118_resources),
169 .resource = kzm_smsc9118_resources,
171 .platform_data = &kzm_smsc9118_config,
180 static int __init kzm_init_smsc9118(
void)
191 kzm_smsc9118_resources[1].
start =
193 kzm_smsc9118_resources[1].
end =
199 static inline int kzm_init_smsc9118(
void)
205 #if defined(CONFIG_SERIAL_IMX) || defined(CONFIG_SERIAL_IMX_MODULE)
210 static void __init kzm_init_imx_uart(
void)
216 static inline void kzm_init_imx_uart(
void)
243 static void __init kzm_board_init(
void)
253 pr_info(
"Clock input source is 26MHz\n");
259 static struct map_desc kzm_io_desc[] __initdata = {
277 static void __init kzm_map_io(
void)
283 static void __init kzm_timer_init(
void)
289 .init = kzm_timer_init,
292 MACHINE_START(KZM_ARM11_01,
"Kyoto Microcomputer Co., Ltd. KZM-ARM11-01")
293 .atag_offset = 0x100,
294 .map_io = kzm_map_io,
299 .init_machine = kzm_board_init,