From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mout.gmx.net ([212.227.17.20]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Ui7RV-0006wH-Gn for barebox@lists.infradead.org; Thu, 30 May 2013 18:19:18 +0000 Received: from mailout-de.gmx.net ([10.1.76.29]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0MSFkr-1UsOKP3zpr-00TRcR for ; Thu, 30 May 2013 20:18:50 +0200 From: Oleksij Rempel Date: Thu, 30 May 2013 20:18:42 +0200 Message-Id: <1369937922-1557-4-git-send-email-linux@rempel-privat.de> In-Reply-To: <1369937922-1557-1-git-send-email-linux@rempel-privat.de> References: <1369937922-1557-1-git-send-email-linux@rempel-privat.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH v3 3/3] MIPS: ar231x: add netgear-wg102 To: barebox@lists.infradead.org Signed-off-by: Antony Pavlov Signed-off-by: Oleksij Rempel --- arch/mips/Makefile | 1 + arch/mips/boards/netgear-wg102/Kconfig | 6 ++++++ arch/mips/boards/netgear-wg102/Makefile | 1 + arch/mips/boards/netgear-wg102/ram.c | 11 +++++++++++ arch/mips/mach-ar231x/Kconfig | 10 ++++++++++ 5 files changed, 29 insertions(+) create mode 100644 arch/mips/boards/netgear-wg102/Kconfig create mode 100644 arch/mips/boards/netgear-wg102/Makefile create mode 100644 arch/mips/boards/netgear-wg102/ram.c diff --git a/arch/mips/Makefile b/arch/mips/Makefile index 135259f..dc0fe56 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile @@ -73,6 +73,7 @@ machine-$(CONFIG_MACH_MIPS_MALTA) := malta board-$(CONFIG_BOARD_QEMU_MALTA) := qemu-malta machine-$(CONFIG_MACH_MIPS_AR231X) := ar231x +board-$(CONFIG_BOARD_NETGEAR_WG102) := netgear-wg102 machine-$(CONFIG_MACH_MIPS_BCM47XX) := bcm47xx board-$(CONFIG_BOARD_DLINK_DIR320) := dlink-dir-320 diff --git a/arch/mips/boards/netgear-wg102/Kconfig b/arch/mips/boards/netgear-wg102/Kconfig new file mode 100644 index 0000000..ceca6de --- /dev/null +++ b/arch/mips/boards/netgear-wg102/Kconfig @@ -0,0 +1,6 @@ +if BOARD_NETGEAR_WG102 + +config BOARDINFO + default "Netgear WG102" + +endif diff --git a/arch/mips/boards/netgear-wg102/Makefile b/arch/mips/boards/netgear-wg102/Makefile new file mode 100644 index 0000000..0899b66 --- /dev/null +++ b/arch/mips/boards/netgear-wg102/Makefile @@ -0,0 +1 @@ +obj-y += ram.o diff --git a/arch/mips/boards/netgear-wg102/ram.c b/arch/mips/boards/netgear-wg102/ram.c new file mode 100644 index 0000000..00a008a --- /dev/null +++ b/arch/mips/boards/netgear-wg102/ram.c @@ -0,0 +1,11 @@ +#include +#include +#include +#include + +static int mem_init(void) +{ + mips_add_ram0(SZ_16M); + return 0; +} +mem_initcall(mem_init); diff --git a/arch/mips/mach-ar231x/Kconfig b/arch/mips/mach-ar231x/Kconfig index 7694fe2..1c6a12f 100644 --- a/arch/mips/mach-ar231x/Kconfig +++ b/arch/mips/mach-ar231x/Kconfig @@ -4,4 +4,14 @@ config ARCH_TEXT_BASE hex default 0xa0800000 +choice + prompt "Board type" + +config BOARD_NETGEAR_WG102 + bool "Netgear WG102" + +endchoice + +source arch/mips/boards/netgear-wg102/Kconfig + endif -- 1.8.1.2 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox