summaryrefslogtreecommitdiff
path: root/arch/arm/mach-kirkwood/board-readynas.c
diff options
context:
space:
mode:
authorArnaud Ebalard <arno@natisbad.org>2013-03-19 22:28:06 (GMT)
committerJason Cooper <jason@lakedaemon.net>2013-03-28 18:32:40 (GMT)
commitf236f5aabe8ebd7824590ae82d701402ead237e7 (patch)
tree9abbca7870ad56c389449535adb52ff61b23cf40 /arch/arm/mach-kirkwood/board-readynas.c
parent8bb9660418e05bb1845ac1a2428444d78e322cc7 (diff)
downloadlinux-fsl-qoriq-f236f5aabe8ebd7824590ae82d701402ead237e7.tar.xz
ARM: kirkwood: Add support for NETGEAR ReadyNAS Duo v2 using DT
Add support for NETGEAR ReadyNAS Duo v2 (Hardware specs available here: http://natisbad.org/NAS/). Almost everything is supported via provided .dts. A board-readynas.c file is nonetheless required for device not only converted to DT (Gbit controller). Signed-off-by: Arnaud Ebalard <arno@natisbad.org> Tested-By: Arnaud Ebalard <arno@natisbad.org> Acked-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Diffstat (limited to 'arch/arm/mach-kirkwood/board-readynas.c')
-rw-r--r--arch/arm/mach-kirkwood/board-readynas.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/arm/mach-kirkwood/board-readynas.c b/arch/arm/mach-kirkwood/board-readynas.c
new file mode 100644
index 0000000..fb42c20
--- /dev/null
+++ b/arch/arm/mach-kirkwood/board-readynas.c
@@ -0,0 +1,28 @@
+/*
+ * NETGEAR ReadyNAS Duo v2 Board setup for drivers not already
+ * converted to DT.
+ *
+ * Copyright (C) 2013, Arnaud EBALARD <arno@natisbad.org>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version
+ * 2 of the License, or (at your option) any later version.
+ */
+
+#include <linux/kernel.h>
+#include <linux/init.h>
+#include <linux/platform_device.h>
+#include <linux/mv643xx_eth.h>
+#include <mach/kirkwood.h>
+#include "common.h"
+
+static struct mv643xx_eth_platform_data netgear_readynas_ge00_data = {
+ .phy_addr = MV643XX_ETH_PHY_ADDR(0),
+};
+
+void __init netgear_readynas_init(void)
+{
+ kirkwood_ge00_init(&netgear_readynas_ge00_data);
+ kirkwood_pcie_init(KW_PCIE0);
+}