[PATCH v4 08/11] nvmem: imx-ocotp-ele: Remove the FUSE_ELE type
Frieder Schrempf <[email protected]>
| Newsgroups | dev.linux.lists.imx,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <20260727-upstreaming-next-20260609-imx-ocotp-ele-v4-8-1a515de33093@kontron.de> |
From: Frieder Schrempf <[email protected]> There is no use in tracking the fuses that are only accessible via ELE API and the current lists are incomplete. If the ELE API is available it will be used as primary access method anyway, otherwise the fuses not listed as accessible through the FSB can be considered invalid. No functional changes intended. Signed-off-by: Frieder Schrempf <[email protected]> --- drivers/nvmem/imx-ocotp-ele.c | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/drivers/nvmem/imx-ocotp-ele.c b/drivers/nvmem/imx-ocotp-ele.c index 23e91775be5d..f691ad0cd1a1 100644 --- a/drivers/nvmem/imx-ocotp-ele.c +++ b/drivers/nvmem/imx-ocotp-ele.c @@ -19,8 +19,7 @@ enum fuse_type { FUSE_FSB = BIT(0), - FUSE_ELE = BIT(1), - FUSE_ECC = BIT(2), + FUSE_ECC = BIT(1), FUSE_INVALID = -1 }; @@ -209,7 +208,7 @@ static int imx_ocotp_reg_read(void *context, unsigned int offset, void *val, siz } type = imx_ocotp_fuse_type(context, i); - if (type == FUSE_INVALID || type == FUSE_ELE) { + if (type == FUSE_INVALID) { *buf++ = 0; continue; } @@ -352,13 +351,9 @@ static const struct nvmem_keepout imx93_ocotp_keepout[] = { static const struct ocotp_devtype_data imx93_ocotp_data = { .reg_off = 0x8000, .size = 2048, - .num_entry = 6, + .num_entry = 2, .entry = { { 0, 52, FUSE_FSB }, - { 63, 1, FUSE_ELE}, - { 128, 16, FUSE_ELE }, - { 182, 1, FUSE_ELE }, - { 188, 1, FUSE_ELE }, { 312, 200, FUSE_FSB } }, .keepout = imx93_ocotp_keepout, @@ -368,7 +363,7 @@ static const struct ocotp_devtype_data imx93_ocotp_data = { static const struct ocotp_devtype_data imx94_ocotp_data = { .reg_off = 0x8000, .size = 3296, /* 103 Banks */ - .num_entry = 10, + .num_entry = 9, .entry = { { 0, 1, FUSE_FSB | FUSE_ECC }, { 7, 1, FUSE_FSB | FUSE_ECC }, @@ -376,7 +371,6 @@ static const struct ocotp_devtype_data imx94_ocotp_data = { { 12, 24, FUSE_FSB }, { 36, 2, FUSE_FSB | FUSE_ECC }, { 38, 14, FUSE_FSB }, - { 59, 1, FUSE_ELE }, { 525, 2, FUSE_FSB | FUSE_ECC }, { 528, 7, FUSE_FSB }, { 536, 280, FUSE_FSB }, @@ -386,7 +380,7 @@ static const struct ocotp_devtype_data imx94_ocotp_data = { static const struct ocotp_devtype_data imx95_ocotp_data = { .reg_off = 0x8000, .size = 2048, - .num_entry = 12, + .num_entry = 9, .entry = { { 0, 1, FUSE_FSB | FUSE_ECC }, { 7, 1, FUSE_FSB | FUSE_ECC }, @@ -394,9 +388,6 @@ static const struct ocotp_devtype_data imx95_ocotp_data = { { 12, 24, FUSE_FSB }, { 36, 2, FUSE_FSB | FUSE_ECC }, { 38, 14, FUSE_FSB }, - { 63, 1, FUSE_ELE }, - { 128, 16, FUSE_ELE }, - { 188, 1, FUSE_ELE }, { 317, 2, FUSE_FSB | FUSE_ECC }, { 320, 7, FUSE_FSB }, { 328, 184, FUSE_FSB } -- 2.55.0