From a13e98232e0d196ddbb264aa6aafcb21c6bb0bca Mon Sep 17 00:00:00 2001 From: Joel Smith Date: Mon, 24 Jun 2024 15:05:06 -0700 Subject: [PATCH] Add FW bundle attribute to sysfs --- grayskull.c | 1 + wormhole.c | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/grayskull.c b/grayskull.c index c1ecb6f..ada2a50 100644 --- a/grayskull.c +++ b/grayskull.c @@ -144,6 +144,7 @@ static struct tt_attribute_data gs_attributes[] = { { __ATTR(tt_serial, S_IRUGO, tt_show_card_serial, NULL), 0x10, 0x0 }, { __ATTR(tt_arc_fw_ver, S_IRUGO, tt_show_fw_ver, NULL), 0x18, 0xFFFFFF }, { __ATTR(tt_ttflash_ver, S_IRUGO, tt_show_fw_ver, NULL), 0x98, 0x0 }, + { __ATTR(tt_fw_bundle_ver, S_IRUGO, tt_show_fw_ver, NULL), 0x9C, 0x0 }, { __ATTR_NULL, 0, 0 } }; diff --git a/wormhole.c b/wormhole.c index d7d8ebe..7dac8bb 100644 --- a/wormhole.c +++ b/wormhole.c @@ -56,10 +56,11 @@ static struct tt_attribute_data wh_attributes[] = { { __ATTR(tt_card_type, S_IRUGO, tt_show_card_type, NULL), 0x10, 0x0 }, { __ATTR(tt_serial, S_IRUGO, tt_show_card_serial, NULL), 0x10, 0x0 }, { __ATTR(tt_arc_fw_ver, S_IRUGO, tt_show_fw_ver, NULL), 0x18, 0x0 }, - { __ATTR(tt_eth_fw_ver, S_IRUGO, tt_show_eth_fw_ver, NULL), 0x2c, 0x0 }, + { __ATTR(tt_eth_fw_ver, S_IRUGO, tt_show_eth_fw_ver, NULL), 0x2C, 0x0 }, { __ATTR(tt_m3bl_fw_ver, S_IRUGO, tt_show_fw_ver, NULL), 0x30, 0x0 }, { __ATTR(tt_m3app_fw_ver, S_IRUGO, tt_show_fw_ver, NULL), 0x34, 0x0 }, - { __ATTR(tt_ttflash_ver, S_IRUGO, tt_show_fw_ver, NULL), 0xb8, 0x0 }, + { __ATTR(tt_ttflash_ver, S_IRUGO, tt_show_fw_ver, NULL), 0xB8, 0x0 }, + { __ATTR(tt_fw_bundle_ver, S_IRUGO, tt_show_fw_ver, NULL), 0xC4, 0x0 }, { __ATTR_NULL, 0, 0 } };