15 #include <linux/types.h>
17 #include <linux/kernel.h>
24 #include <mach/hardware.h>
29 #include <mach/common.h>
31 #include <asm/setup.h>
37 #define QONG_FPGA_VERSION(major, minor, rev) \
38 (((major & 0xF) << 12) | ((minor & 0xF) << 8) | (rev & 0xFF))
40 #define QONG_FPGA_BASEADDR MX31_CS1_BASE_ADDR
41 #define QONG_FPGA_PERIPH_SIZE (1 << 24)
43 #define QONG_FPGA_CTRL_BASEADDR QONG_FPGA_BASEADDR
44 #define QONG_FPGA_CTRL_SIZE 0x10
46 #define QONG_FPGA_CTRL_VERSION 0x00
48 #define QONG_DNET_ID 1
49 #define QONG_DNET_BASEADDR \
50 (QONG_FPGA_BASEADDR + QONG_DNET_ID * QONG_FPGA_PERIPH_SIZE)
51 #define QONG_DNET_SIZE 0x00001000
57 static int uart_pins[] = {
64 static inline void __init mxc_init_imx_uart(
void)
71 static struct resource dnet_resources[] = {
73 .name =
"dnet-memory",
87 .resource = dnet_resources,
90 static int __init qong_init_dnet(
void)
94 dnet_resources[1].
start =
96 dnet_resources[1].
end =
108 static struct resource qong_flash_resource = {
115 .name =
"physmap-flash",
118 .platform_data = &qong_flash_data,
120 .resource = &qong_flash_resource,
124 static void qong_init_nor_mtd(
void)
132 static void qong_nand_cmd_ctrl(
struct mtd_info *mtd,
int cmd,
unsigned int ctrl)
148 static int qong_nand_device_ready(
struct mtd_info *mtd)
153 static void qong_nand_select_chip(
struct mtd_info *mtd,
int chip)
168 .cmd_ctrl = qong_nand_cmd_ctrl,
169 .dev_ready = qong_nand_device_ready,
170 .select_chip = qong_nand_select_chip,
174 static struct resource qong_nand_resource = {
184 .platform_data = &qong_nand_data,
187 .resource = &qong_nand_resource,
190 static void __init qong_init_nand_mtd(
void)
217 static void __init qong_init_fpga(
void)
232 (fpga_ver & 0xF000) >> 12,
233 (fpga_ver & 0x0F00) >> 8, fpga_ver & 0x00FF);
236 "devices won't be registered!\n");
241 qong_init_nand_mtd();
248 static void __init qong_init(
void)
258 static void __init qong_timer_init(
void)
264 .init = qong_timer_init,
269 .atag_offset = 0x100,
274 .timer = &qong_timer,
275 .init_machine = qong_init,