diff options
author | Florian Fainelli <florian@openwrt.org> | 2008-03-26 13:34:29 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2008-03-26 13:34:29 +0000 |
commit | 838b5385e41a40938158528b945510521ab9c85d (patch) | |
tree | 0c1e21aedbd507f9cf10c04e5c8d23b113cf97ca /tools/firmware-utils/src/mkzynfw.c | |
parent | 98eaccc6d386752bfb81ad52e6cb559329b07740 (diff) | |
download | upstream-838b5385e41a40938158528b945510521ab9c85d.tar.gz upstream-838b5385e41a40938158528b945510521ab9c85d.tar.bz2 upstream-838b5385e41a40938158528b945510521ab9c85d.zip |
Add definitions for the Zyxel NBG-318S
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10662 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools/firmware-utils/src/mkzynfw.c')
-rw-r--r-- | tools/firmware-utils/src/mkzynfw.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/firmware-utils/src/mkzynfw.c b/tools/firmware-utils/src/mkzynfw.c index 690395f89b..55a90dfb60 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} }; |