On Mon, Oct 02, 2023 at 11:20:42AM +0200, Ahmad Fatoum wrote: > From: Rouven Czerwinski <r.czerwinski@xxxxxxxxxxxxxx> > > For i.MX8M devices, the security config 1 fuse was moved to 0x470[25]. > Additionally, all devices except the i.MX8MQ have the DIR_BT_DIS fused > within the factory, see [1]. > > [1]: https://community.nxp.com/t5/i-MX-Processors/DIR-BT-DIS-and-others/m-p/1220615/highlight/true#M168363 > > Signed-off-by: Rouven Czerwinski <r.czerwinski@xxxxxxxxxxxxxx> > Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> > --- > include/mach/imx/ocotp-fusemap.h | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/include/mach/imx/ocotp-fusemap.h b/include/mach/imx/ocotp-fusemap.h > index 6ba794c16619..02ac5d8e73bb 100644 > --- a/include/mach/imx/ocotp-fusemap.h > +++ b/include/mach/imx/ocotp-fusemap.h > @@ -53,5 +53,9 @@ > #define OCOTP_GP1 (OCOTP_WORD(0x660) | OCOTP_BIT(0) | OCOTP_WIDTH(32)) > #define OCOTP_GP2 (OCOTP_WORD(0x670) | OCOTP_BIT(0) | OCOTP_WIDTH(32)) > #define OCOTP_PAD_SETTINGS (OCOTP_WORD(0x6d0) | OCOTP_BIT(0) | OCOTP_WIDTH(6)) > +/* i.MX8M moved the security related fuses */ > +#define MX8M_OCOTP_SEC_CONFIG_1 (OCOTP_WORD(0x470) | OCOTP_BIT(25) | OCOTP_WIDTH(1)) > +/* Only MX8MQ requires fusing of DIR_BT_DIS */ > +#define MX8MQ_OCOTP_DIR_BT_DIS (OCOTP_WORD(0x470) | OCOTP_BIT(27) | OCOTP_WIDTH(1)) You can merge this into the patch using the defines. Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |