/* * arch/arm/mach-orion5x/net2big-setup.c * * LaCie 2Big Network NAS setup * * Copyright (C) 2009 Simon Guinot * * This file is licensed under the terms of the GNU General Public * License version 2. This program is licensed "as is" without any * warranty of any kind, whether express or implied. */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "common.h" #include "mpp.h" /***************************************************************************** * LaCie 2Big Network Info ****************************************************************************/ /* * 512KB NOR flash Device bus boot chip select */ #define NET2BIG_NOR_BOOT_BASE 0xfff80000 #define NET2BIG_NOR_BOOT_SIZE SZ_512K /***************************************************************************** * 512KB NOR Flash on Boot Device ****************************************************************************/ /* * TODO: Check write support on flash MX29LV400CBTC-70G */ static struct mtd_partition net2big_partitions[] = { { .name = "Full512kb", .size = MTDPART_SIZ_FULL, .offset = 0x00000000, .mask_flags = MTD_WRITEABLE, }, }; static struct physmap_flash_data net2big_nor_flash_data = { .width = 1, .parts = net2big_partitions, .nr_parts = ARRAY_SIZE(net2big_partitions), }; static struct resource net2big_nor_flash_resource = { .flags = IORESOURCE_MEM, .start = NET2BIG_NOR_BOOT_BASE, .end = NET2BIG_NOR_BOOT_BASE + NET2BIG_NOR_BOOT_SIZE - 1, }; static struct platform_device net2big_nor_flash = {