Go to the documentation of this file.
25 #include <linux/module.h>
26 #include <linux/types.h>
27 #include <linux/kernel.h>
42 #define FLASH_PHYS_ADDR 0x40000000
43 #define FLASH_SIZE 0x400000
45 #define FLASH_PARTITION0_ADDR 0x00000000
46 #define FLASH_PARTITION0_SIZE 0x00020000
48 #define FLASH_PARTITION1_ADDR 0x00020000
49 #define FLASH_PARTITION1_SIZE 0x000A0000
51 #define FLASH_PARTITION2_ADDR 0x000C0000
52 #define FLASH_PARTITION2_SIZE 0x00180000
54 #define FLASH_PARTITION3_ADDR 0x00240000
55 #define FLASH_PARTITION3_SIZE 0x001C0000
59 .name =
"FlagaDM flash device",
71 .name =
"Kernel image",
76 .name =
"Initial ramdisk image",
81 .name =
"Persistent storage",
87 #define PARTITION_COUNT ARRAY_SIZE(flagadm_parts)
91 static int __init init_flagadm(
void)
100 if (!flagadm_map.
virt) {
101 printk(
"Failed to ioremap\n");
119 static void __exit cleanup_flagadm(
void)
125 if (flagadm_map.
virt) {
127 flagadm_map.
virt = 0;