aboutsummaryrefslogtreecommitdiffstats
path: root/tools/firmware-utils/src
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2010-05-14 09:20:36 +0000
committerGabor Juhos <juhosg@openwrt.org>2010-05-14 09:20:36 +0000
commit2923f9f5a61f62f459d7242bb147336f4e8416bd (patch)
tree11c79ce814f121db31ea8f0b7d39cb96134453cb /tools/firmware-utils/src
parent3574cdbc0aec21b26e778929a0ffe5c5913497c0 (diff)
downloadmaster-187ad058-2923f9f5a61f62f459d7242bb147336f4e8416bd.tar.gz
master-187ad058-2923f9f5a61f62f459d7242bb147336f4e8416bd.tar.bz2
master-187ad058-2923f9f5a61f62f459d7242bb147336f4e8416bd.zip
firmware-utils/mkzynfw: add support for the NBG460N board
Adding NBG460N/550N/550NH boards to mkzynfw. Signed-off-by: Michael Kurz <michi.kurz@googlemail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21446 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools/firmware-utils/src')
-rw-r--r--tools/firmware-utils/src/mkzynfw.c17
-rw-r--r--tools/firmware-utils/src/zynos.h3
2 files changed, 20 insertions, 0 deletions
diff --git a/tools/firmware-utils/src/mkzynfw.c b/tools/firmware-utils/src/mkzynfw.c
index 9018ea1084..f3343df726 100644
--- a/tools/firmware-utils/src/mkzynfw.c
+++ b/tools/firmware-utils/src/mkzynfw.c
@@ -121,6 +121,9 @@ int num_blocks = 0;
#define ATHEROS_FLASH_BASE 0xBFC00000
#define ATHEROS_CODE_START 0x80e00000
+#define AR71XX_FLASH_BASE 0xBFC00000
+#define AR71XX_CODE_START 0x81E00000
+
#define BOARD(n, d, v, m, fb, fs, cs, fo) { \
.name = (n), .desc=(d), \
.vendor = (v), .model = (m), \
@@ -141,6 +144,15 @@ int num_blocks = 0;
#define ATHEROSBOARD1(n, d, m, fs) BOARD(n, d, ZYNOS_VENDOR_ID_ZYXEL, m, \
ATHEROS_FLASH_BASE, fs, ATHEROS_CODE_START, 0x30000)
+#define AR71XXBOARD1(n, d, m, fs) { \
+ .name = (n), .desc=(d), \
+ .vendor = (ZYNOS_VENDOR_ID_ZYXEL), .model = (m), \
+ .flash_base = (AR71XX_FLASH_BASE), .flash_size = (fs)<<20, \
+ .code_start = (AR71XX_CODE_START), .romio_offs = (0x40000), \
+ .bootext_size = 0x30000 \
+ }
+
+
static struct board_info boards[] = {
/*
* Infineon/ADMtek ADM5120 based boards
@@ -215,6 +227,11 @@ static struct board_info boards[] = {
*/
ATHEROSBOARD1("NBG-318S", "ZyXEL NBG-318S", ZYNOS_MODEL_NBG_318S, 4),
+ /*
+ * Atheros ar71xx based boards
+ */
+ AR71XXBOARD1("NBG-460N", "ZyXEL NBG-460N", ZYNOS_MODEL_NBG_460N, 4),
+
{.name = NULL}
};
diff --git a/tools/firmware-utils/src/zynos.h b/tools/firmware-utils/src/zynos.h
index e68ddefbd2..aaf0fc8a73 100644
--- a/tools/firmware-utils/src/zynos.h
+++ b/tools/firmware-utils/src/zynos.h
@@ -219,4 +219,7 @@ struct zyn_mmt_item {
/* Atheros AR2318 based boards */
#define ZYNOS_MODEL_NBG_318S MID(59392)
+/* Atheros AR71xx based boards */
+#define ZYNOS_MODEL_NBG_460N MID(61441)
+
#endif /* _ZYNOS_H */