diff options
author | Alex Samorukov <samm@os2.kiev.ua> | 2017-02-21 12:02:51 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-02-26 13:31:43 +0100 |
commit | ffa9f3d74b777be78581f04811ff8df1699c6337 (patch) | |
tree | 6d05b26ef9616477e4e7ee0289cafe8771652b7d /package/boot/rbcfg/src | |
parent | 399cbbd1277fccc12dc73ce96ce637b13c11765c (diff) | |
download | upstream-ffa9f3d74b777be78581f04811ff8df1699c6337.tar.gz upstream-ffa9f3d74b777be78581f04811ff8df1699c6337.tar.bz2 upstream-ffa9f3d74b777be78581f04811ff8df1699c6337.zip |
packge/boot/rbcfg: add new boot constants found in the recent Mikrotik devices
Signed-off-by: Alex Samorukov <samm@os2.kiev.ua>
Diffstat (limited to 'package/boot/rbcfg/src')
-rw-r--r-- | package/boot/rbcfg/src/main.c | 4 | ||||
-rw-r--r-- | package/boot/rbcfg/src/rbcfg.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/package/boot/rbcfg/src/main.c b/package/boot/rbcfg/src/main.c index b7cf79ffae..9aedcc55a8 100644 --- a/package/boot/rbcfg/src/main.c +++ b/package/boot/rbcfg/src/main.c @@ -101,6 +101,10 @@ static const struct rbcfg_value rbcfg_boot_device[] = { RB_BOOT_DEVICE_ETHONCE), CFG_U32("nand", "boot from NAND only", RB_BOOT_DEVICE_NANDONLY), + CFG_U32("flash", "boot in flash configuration mode", + RB_BOOT_DEVICE_FLASHCFG), + CFG_U32("flashnand", "boot in flash configuration mode once, then NAND", + RB_BOOT_DEVICE_FLSHONCE), }; static const struct rbcfg_value rbcfg_boot_key[] = { diff --git a/package/boot/rbcfg/src/rbcfg.h b/package/boot/rbcfg/src/rbcfg.h index 899161a10d..864bc82172 100644 --- a/package/boot/rbcfg/src/rbcfg.h +++ b/package/boot/rbcfg/src/rbcfg.h @@ -59,6 +59,8 @@ #define RB_BOOT_DEVICE_CFCARD 2 #define RB_BOOT_DEVICE_ETHONCE 3 #define RB_BOOT_DEVICE_NANDONLY 5 +#define RB_BOOT_DEVICE_FLASHCFG 7 +#define RB_BOOT_DEVICE_FLSHONCE 8 #define RB_BOOT_KEY_ANY 0 #define RB_BOOT_KEY_DEL 1 |