12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- /*
- * arch/arm/mach-orion5x/net2big-setup.c
- *
- * LaCie 2Big Network NAS setup
- *
- * Copyright (C) 2009 Simon Guinot <sguinot@lacie.com>
- *
- * 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 <linux/kernel.h>
- #include <linux/init.h>
- #include <linux/platform_device.h>
- #include <linux/mtd/physmap.h>
- #include <linux/mv643xx_eth.h>
- #include <linux/leds.h>
- #include <linux/gpio_keys.h>
- #include <linux/input.h>
- #include <linux/i2c.h>
- #include <linux/ata_platform.h>
- #include <linux/gpio.h>
- #include <linux/delay.h>
- #include <asm/mach-types.h>
- #include <asm/mach/arch.h>
- #include <mach/orion5x.h>
- #include <plat/orion-gpio.h>
- #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 = {
|