diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2024-02-12 14:27:52 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2024-02-13 10:11:00 +0100 |
commit | 5f9093be28b4513ffaca923e4e4ab06eaab9da18 (patch) | |
tree | 37d82d29efec90586af1427d65d1d084acfb71ca | |
parent | d25f91d2fa4e302311d6e1608cfc43aee53d2623 (diff) | |
download | barebox-5f9093be28b4.tar.gz barebox-5f9093be28b4.tar.xz |
nvmem: ocotp: use tab for indention only
Replace space+tabs by tabs only for indention.
Fixes: 1c2d1d4e5985 ("ARM: i.MX8MP: enhance support for ocotp driver")
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Link: https://lore.barebox.org/20240212132901.1641599-3-mkl@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | drivers/nvmem/ocotp.c | 56 |
1 files changed, 29 insertions, 27 deletions
diff --git a/drivers/nvmem/ocotp.c b/drivers/nvmem/ocotp.c index 28c121152e..16d2a6be9f 100644 --- a/drivers/nvmem/ocotp.c +++ b/drivers/nvmem/ocotp.c @@ -53,12 +53,12 @@ #define OCOTP_READ_CTRL 0x30 #define OCOTP_READ_FUSE_DATA 0x40 -#define MX7_OCOTP_DATA0 0x20 -#define MX7_OCOTP_DATA1 0x30 -#define MX7_OCOTP_DATA2 0x40 -#define MX7_OCOTP_DATA3 0x50 -#define MX7_OCOTP_READ_CTRL 0x60 -#define MX7_OCOTP_READ_FUSE_DATA0 0x70 +#define MX7_OCOTP_DATA0 0x20 +#define MX7_OCOTP_DATA1 0x30 +#define MX7_OCOTP_DATA2 0x40 +#define MX7_OCOTP_DATA3 0x50 +#define MX7_OCOTP_READ_CTRL 0x60 +#define MX7_OCOTP_READ_FUSE_DATA0 0x70 #define MX7_OCOTP_READ_FUSE_DATA1 0x80 #define MX7_OCOTP_READ_FUSE_DATA2 0x90 #define MX7_OCOTP_READ_FUSE_DATA3 0xA0 @@ -67,27 +67,29 @@ #define DEF_STROBE_PROG 10000 /* IPG clocks */ /* OCOTP Registers bits and masks */ -#define OCOTP_CTRL_ADDR GENMASK(7, 0) -#define OCOTP_CTRL_BUSY BIT(8) -#define OCOTP_CTRL_ERROR BIT(9) -#define OCOTP_CTRL_RELOAD_SHADOWS BIT(10) -#define OCOTP_CTRL_WR_UNLOCK GENMASK(31, 16) -#define OCOTP_CTRL_WR_UNLOCK_KEY 0x3E77 - -/* i.MX8MP OCOTP CTRL has a different layout. See RM Rev.1 06/2021 Section - * 6.3.5.1.2.4 */ -#define OCOTP_CTRL_ADDR_8MP GENMASK(8, 0) -#define OCOTP_CTRL_BUSY_8MP BIT(9) -#define OCOTP_CTRL_ERROR_8MP BIT(10) -#define OCOTP_CTRL_RELOAD_SHADOWS_8MP BIT(11) -#define OCOTP_CTRL_WR_UNLOCK_8MP GENMASK(31, 16) - -#define OCOTP_TIMING_STROBE_READ GENMASK(21, 16) -#define OCOTP_TIMING_RELAX GENMASK(15, 12) -#define OCOTP_TIMING_STROBE_PROG GENMASK(11, 0) -#define OCOTP_TIMING_WAIT GENMASK(27, 22) - -#define OCOTP_READ_CTRL_READ_FUSE BIT(1) +#define OCOTP_CTRL_ADDR GENMASK(7, 0) +#define OCOTP_CTRL_BUSY BIT(8) +#define OCOTP_CTRL_ERROR BIT(9) +#define OCOTP_CTRL_RELOAD_SHADOWS BIT(10) +#define OCOTP_CTRL_WR_UNLOCK GENMASK(31, 16) +#define OCOTP_CTRL_WR_UNLOCK_KEY 0x3E77 + +/* + * i.MX8MP OCOTP CTRL has a different layout. See RM Rev.1 06/2021 + * Section 6.3.5.1.2.4 + */ +#define OCOTP_CTRL_ADDR_8MP GENMASK(8, 0) +#define OCOTP_CTRL_BUSY_8MP BIT(9) +#define OCOTP_CTRL_ERROR_8MP BIT(10) +#define OCOTP_CTRL_RELOAD_SHADOWS_8MP BIT(11) +#define OCOTP_CTRL_WR_UNLOCK_8MP GENMASK(31, 16) + +#define OCOTP_TIMING_STROBE_READ GENMASK(21, 16) +#define OCOTP_TIMING_RELAX GENMASK(15, 12) +#define OCOTP_TIMING_STROBE_PROG GENMASK(11, 0) +#define OCOTP_TIMING_WAIT GENMASK(27, 22) + +#define OCOTP_READ_CTRL_READ_FUSE BIT(1) #define OCOTP_OFFSET_TO_ADDR(o) (OCOTP_OFFSET_TO_INDEX(o) * 4) |