6 #include <linux/module.h>
7 #include <linux/types.h>
8 #include <linux/kernel.h>
12 #include <mach/hardware.h>
18 #define FLASH_START 0x00000000
19 #define FLASH_SIZE 0x800000
22 #define SRAM_START 0x60000000
23 #define SRAM_SIZE 0xc000
26 #define BOOTROM_START 0x70000000
27 #define BOOTROM_SIZE 0x80
28 #define BOOTROM_WIDTH 4
47 static int __init init_cdb89712_flash (
void)
58 if (!cdb89712_flash_map.
virt) {
64 flash_mtd =
do_map_probe(
"cfi_probe", &cdb89712_flash_map);
66 flash_mtd =
do_map_probe(
"map_rom", &cdb89712_flash_map);
71 printk(
"FLASH probe failed\n");
79 printk(
"FLASH device addition failed\n");
117 static int __init init_cdb89712_sram (
void)
128 if (!cdb89712_sram_map.
virt) {
136 printk(
"SRAM probe failed\n");
145 printk(
"SRAM device addition failed\n");
169 static struct mtd_info *bootrom_mtd;
185 static int __init init_cdb89712_bootrom (
void)
196 if (!cdb89712_bootrom_map.
virt) {
202 bootrom_mtd =
do_map_probe(
"map_rom", &cdb89712_bootrom_map);
204 printk(
"BootROM probe failed\n");
213 printk(
"BootROM device addition failed\n");
235 static int __init init_cdb89712_maps(
void)
238 printk(
KERN_INFO "Cirrus CDB89712 MTD mappings:\n Flash 0x%x at 0x%x\n SRAM 0x%x at 0x%x\n BootROM 0x%x at 0x%x\n",
241 init_cdb89712_flash();
242 init_cdb89712_sram();
243 init_cdb89712_bootrom();
249 static void __exit cleanup_cdb89712_maps(
void)