17 #include <linux/module.h>
19 #include <linux/types.h>
20 #include <linux/kernel.h>
25 #include <linux/errno.h>
37 #define FLASH_BASE_ADDR 0xf0000000
38 #define FLASH_BANK_SIZE (128*1024*1024)
44 static struct map_info svme182_map = {
45 .name =
"Dy4 SVME182",
47 .size = 128 * 1024 * 1024
50 #define BOOTIMAGE_PART_SIZE ((6*1024*1024)-RESERVED_PART_SIZE)
53 #define NEW_BOOTIMAGE_PART_SIZE (6 * 1024 * 1024)
55 #define NEW_BOOTLOADER_PART_SIZE (1024 * 1024)
57 #define NEW_RFS_PART_SIZE (0x01000000 - NEW_BOOTLOADER_PART_SIZE - \
58 NEW_BOOTIMAGE_PART_SIZE)
67 name:
"Lower PABS and CPU 0 bootloader or kernel",
72 name:
"Root Filesystem",
77 name:
"CPU1 Bootloader",
87 name:
"Foundation Firmware and Upper PABS",
96 static int __init init_svme182(
void)
99 int num_parts =
ARRAY_SIZE(svme182_partitions);
101 partitions = svme182_partitions;
105 if (svme182_map.
virt == 0) {
106 printk(
"Failed to ioremap FLASH memory area.\n");
128 static void __exit cleanup_svme182(
void)
136 if (svme182_map.
virt)
139 svme182_map.
virt = 0;