|
@@ -0,0 +1,51 @@
|
|
|
|
+/*
|
|
|
|
+ * 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[] = {
|