summaryrefslogtreecommitdiff
path: root/tools/firmware-utils
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2008-03-26 13:34:29 +0000
committerFlorian Fainelli <florian@openwrt.org>2008-03-26 13:34:29 +0000
commitb2387fc537cdea126aaa7c1d8ca191a5d7b37b9d (patch)
tree9f5795357661a6732c6e552b5bb207bac5470971 /tools/firmware-utils
parent6e8a4f219add9ffbc6bb5a9bc7fafcd301866f27 (diff)
downloadmtk-20170518-b2387fc537cdea126aaa7c1d8ca191a5d7b37b9d.zip
mtk-20170518-b2387fc537cdea126aaa7c1d8ca191a5d7b37b9d.tar.gz
mtk-20170518-b2387fc537cdea126aaa7c1d8ca191a5d7b37b9d.tar.bz2
Add definitions for the Zyxel NBG-318S
SVN-Revision: 10662
Diffstat (limited to 'tools/firmware-utils')
-rw-r--r--tools/firmware-utils/src/mkzynfw.c11
-rw-r--r--tools/firmware-utils/src/zynos.h3
2 files changed, 14 insertions, 0 deletions
diff --git a/tools/firmware-utils/src/mkzynfw.c b/tools/firmware-utils/src/mkzynfw.c
index 690395f..55a90df 100644
--- a/tools/firmware-utils/src/mkzynfw.c
+++ b/tools/firmware-utils/src/mkzynfw.c
@@ -118,6 +118,9 @@ int num_blocks = 0;
#define AR7_FLASH_BASE 0xB0000000
#define AR7_CODE_START 0x94008000
+#define ATHEROS_FLASH_BASE 0xBFC00000
+#define ATHEROS_CODE_START 0x80000800
+
#define BOARD(n, d, v, m, fb, fs, cs, fo) { \
.name = (n), .desc=(d), \
.vendor = (v), .model = (m), \
@@ -134,6 +137,9 @@ int num_blocks = 0;
#define AR7BOARD1(n, d, m, fs) BOARD(n, d, ZYNOS_VENDOR_ID_ZYXEL, m, \
AR7_FLASH_BASE, fs, AR7_CODE_START, 0x8000)
+#define ATHEROSBOARD1(n, d, m, fs) BOARD(n, d, ZYNOS_VENDOR_ID_ZYXEL, m, \
+ ATHEROS_FLASH_BASE, fs, ATHEROS_CODE_START, 0x8000)
+
static struct board_info boards[] = {
/*
* Infineon/ADMtek ADM5120 based boards
@@ -190,6 +196,11 @@ static struct board_info boards[] = {
.fw_offs = 0x40000,
},
+ /*
+:x
+ */
+ ATHEROSBOARD1("NBG-318S", "ZyXEL NBG-318S", ZYNOS_MODEL_NBG_318S, 4),
+
{.name = NULL}
};
diff --git a/tools/firmware-utils/src/zynos.h b/tools/firmware-utils/src/zynos.h
index da8c8fd..23a6549 100644
--- a/tools/firmware-utils/src/zynos.h
+++ b/tools/firmware-utils/src/zynos.h
@@ -215,4 +215,7 @@ struct zyn_mmt_item {
/* OEM boards */
#define ZYNOS_MODEL_O2SURF ZYNOS_MODEL_P_2602HWN_D7A
+/* Atheros AR2318 based boards */
+#define ZYNOS_MODEL_NBG_318S MID( 232)
+
#endif /* _ZYNOS_H */