20 #include <linux/kernel.h>
23 #include <linux/i2c.h>
30 #include <mach/hardware.h>
40 #define SNAPPERCL15_NAND_BASE (EP93XX_CS7_PHYS_BASE + SZ_16M)
42 #define SNAPPERCL15_NAND_WPN (1 << 8)
43 #define SNAPPERCL15_NAND_ALE (1 << 9)
44 #define SNAPPERCL15_NAND_CLE (1 << 10)
45 #define SNAPPERCL15_NAND_CEN (1 << 11)
46 #define SNAPPERCL15_NAND_RDY (1 << 14)
48 #define NAND_CTRL_ADDR(chip) (chip->IO_ADDR_W + 0x40)
50 static void snappercl15_nand_cmd_ctrl(
struct mtd_info *mtd,
int cmd,
78 static int snappercl15_nand_dev_ready(
struct mtd_info *mtd)
101 .partitions = snappercl15_nand_parts,
102 .nr_partitions =
ARRAY_SIZE(snappercl15_nand_parts),
106 .dev_ready = snappercl15_nand_dev_ready,
107 .cmd_ctrl = snappercl15_nand_cmd_ctrl,
111 static struct resource snappercl15_nand_resource[] = {
122 .dev.platform_data = &snappercl15_nand_data,
123 .resource = snappercl15_nand_resource,
124 .num_resources =
ARRAY_SIZE(snappercl15_nand_resource),
133 .sda_is_open_drain = 0,
135 .scl_is_open_drain = 0,
153 .name =
"snappercl15-audio",
157 static void __init snappercl15_register_audio(
void)
163 static void __init snappercl15_init_machine(
void)
170 snappercl15_register_audio();
174 MACHINE_START(SNAPPER_CL15,
"Bluewater Systems Snapper CL15")
176 .atag_offset = 0x100,
181 .init_machine = snappercl15_init_machine,