diff options
author | Oleksij Rempel <linux@rempel-privat.de> | 2013-05-30 20:18:42 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-05-31 08:56:33 +0200 |
commit | b993cc4a226c145368af1eeb44f3cc002fc0b676 (patch) | |
tree | 2c8375b8993f75fa72eeebd8b8519fa6e3bb5289 /arch | |
parent | 7d27f0db932d2a584409a3c5c85a229638597e65 (diff) | |
download | barebox-b993cc4a226c145368af1eeb44f3cc002fc0b676.tar.gz barebox-b993cc4a226c145368af1eeb44f3cc002fc0b676.tar.xz |
MIPS: ar231x: add netgear-wg102
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/Makefile | 1 | ||||
-rw-r--r-- | arch/mips/boards/netgear-wg102/Kconfig | 6 | ||||
-rw-r--r-- | arch/mips/boards/netgear-wg102/Makefile | 1 | ||||
-rw-r--r-- | arch/mips/boards/netgear-wg102/ram.c | 11 | ||||
-rw-r--r-- | arch/mips/mach-ar231x/Kconfig | 10 |
5 files changed, 29 insertions, 0 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile index 135259f4d4..dc0fe56d68 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 0000000000..ceca6de820 --- /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 0000000000..0899b66c5f --- /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 0000000000..00a008a1ee --- /dev/null +++ b/arch/mips/boards/netgear-wg102/ram.c @@ -0,0 +1,11 @@ +#include <common.h> +#include <init.h> +#include <sizes.h> +#include <asm/memory.h> + +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 7694fe2875..1c6a12f885 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 |