summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorPeng Fan <[email protected]>2022-04-06 14:30:31 +0800
committerStefano Babic <[email protected]>2022-04-12 19:10:43 +0200
commited6ba46e3b004f58263d3c784b6b5981ebc65348 (patch)
treec3152581d3fffd7aeb3a96011311d0727fd1dcd0 /drivers
parentc41ffaa253aa462e3e60019f430776db9bf4bf3f (diff)
misc: imx8ulp: Update fuse driver
- According to S400 API, the fuse bank 25 (Testconfig2) is able to access. Add it into driver's mapping table. - According to FSB words list, the reserved 48 words are ahead of the bank 5 and bank 6. Fix the wrong position. Signed-off-by: Ye Li <[email protected]> Signed-off-by: Peng Fan <[email protected]>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/misc/imx8ulp/fuse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/misc/imx8ulp/fuse.c b/drivers/misc/imx8ulp/fuse.c
index 01db470e8f1..090e702d9f7 100644
--- a/drivers/misc/imx8ulp/fuse.c
+++ b/drivers/misc/imx8ulp/fuse.c
@@ -34,9 +34,9 @@ struct s400_map_entry {
struct fsb_map_entry fsb_mapping_table[] = {
{ 3, 8 },
{ 4, 8 },
+ { -1, 48 }, /* Reserve 48 words */
{ 5, 8 },
{ 6, 8 },
- { -1, 48 }, /* Reserve 48 words */
{ 8, 4, true },
{ 24, 4, true },
{ 26, 4, true },
@@ -63,6 +63,7 @@ struct s400_map_entry s400_api_mapping_table[] = {
{ 7, 4, 0, 1 }, /* OTP_UNIQ_ID */
{ 15, 8 }, /* OEM SRK HASH */
{ 23, 1, 4, 2 }, /* OTFAD */
+ { 25, 8 }, /* Test config2 */
};
static s32 map_fsb_fuse_index(u32 bank, u32 word, bool *redundancy)