-static struct mtd_partition collie_partitions[] = {
- {
- .name = "bootloader",
- .offset = 0,
- .size = 0x000C0000,
- .mask_flags = MTD_WRITEABLE
- }, {
- .name = "kernel",
- .offset = MTDPART_OFS_APPEND,
- .size = 0x00100000,
- }, {
- .name = "rootfs",
- .offset = MTDPART_OFS_APPEND,
- .size = 0x00e20000,
- }
-};
-
-static void collie_set_vpp(int vpp)
-{
- COLLIE_SCP_REG_GPCR |= COLLIE_SCP_VPEN;
- if (vpp) {
- COLLIE_SCP_REG_GPWR |= COLLIE_SCP_VPEN;
- } else {
- COLLIE_SCP_REG_GPWR &= ~COLLIE_SCP_VPEN;
- }
-}
-
-static struct flash_platform_data collie_flash_data = {
- .map_name = "cfi_probe",
- .set_vpp = collie_set_vpp,
- .parts = collie_partitions,
- .nr_parts = ARRAY_SIZE(collie_partitions),
-};
-
-static struct resource collie_flash_resources[] = {
- {
- .start = SA1100_CS0_PHYS,
- .end = SA1100_CS0_PHYS + SZ_32M - 1,
- .flags = IORESOURCE_MEM,
- }
-};
-