diff options
author | Thibaut VARÈNE <hacks@slashdirt.org> | 2020-06-06 15:46:08 +0200 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2020-07-08 16:07:05 +0200 |
commit | a874c87f4c43438ac700dc68a1a7f750c7ad878f (patch) | |
tree | 3d5ac763fd2856d3e0fa2205ff21a4c117990638 | |
parent | 0217a9be0d84438251401bd4a8d21d3e857c5e91 (diff) | |
download | upstream-a874c87f4c43438ac700dc68a1a7f750c7ad878f.tar.gz upstream-a874c87f4c43438ac700dc68a1a7f750c7ad878f.tar.bz2 upstream-a874c87f4c43438ac700dc68a1a7f750c7ad878f.zip |
generic: platform/mikrotik: add board_revision tag
Tag was discovered exploring the hard_config of a "r2" board.
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
-rw-r--r-- | target/linux/generic/files/drivers/platform/mikrotik/rb_hardconfig.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/target/linux/generic/files/drivers/platform/mikrotik/rb_hardconfig.c b/target/linux/generic/files/drivers/platform/mikrotik/rb_hardconfig.c index 992689605d..4559418de7 100644 --- a/target/linux/generic/files/drivers/platform/mikrotik/rb_hardconfig.c +++ b/target/linux/generic/files/drivers/platform/mikrotik/rb_hardconfig.c @@ -39,7 +39,7 @@ #include "routerboot.h" -#define RB_HARDCONFIG_VER "0.04" +#define RB_HARDCONFIG_VER "0.05" #define RB_HC_PR_PFX "[rb_hardconfig] " /* ID values for hardware settings */ @@ -58,6 +58,7 @@ #define RB_ID_BOARD_IDENTIFIER 0x17 #define RB_ID_PRODUCT_NAME 0x21 #define RB_ID_DEFCONF 0x26 +#define RB_ID_BOARD_REVISION 0x27 /* Bit definitions for hardware options */ #define RB_HW_OPT_NO_UART BIT(0) @@ -415,6 +416,10 @@ static struct hc_attr { .tag_id = RB_ID_DEFCONF, .tshow = routerboot_tag_show_string, .kattr = __ATTR(defconf, S_IRUSR, hc_attr_show, NULL), + }, { + .tag_id = RB_ID_BOARD_REVISION, + .tshow = routerboot_tag_show_string, + .kattr = __ATTR(board_revision, S_IRUSR, hc_attr_show, NULL), } }; |