[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240821105943.230281-8-ada@thorsis.com>
Date: Wed, 21 Aug 2024 12:59:38 +0200
From: Alexander Dahl <ada@...rsis.com>
To: Claudiu Beznea <claudiu.beznea@...on.dev>
Cc: Christian Melki <christian.melki@...ata.com>,
Srinivas Kandagatla <srinivas.kandagatla@...aro.org>,
linux-arm-kernel@...ts.infradead.org (moderated list:MICROCHIP OTPC DRIVER),
linux-kernel@...r.kernel.org (open list)
Subject: [PATCH v1 07/12] nvmem: microchip-otpc: Add missing register definitions
According to datasheets DS60001765B for SAMA7G5 and DS60001579G for
SAM9X60.
Signed-off-by: Alexander Dahl <ada@...rsis.com>
---
drivers/nvmem/microchip-otpc.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/drivers/nvmem/microchip-otpc.c b/drivers/nvmem/microchip-otpc.c
index b8ed7412dbca..4630e96243ac 100644
--- a/drivers/nvmem/microchip-otpc.c
+++ b/drivers/nvmem/microchip-otpc.c
@@ -21,9 +21,24 @@
#define MCHP_OTPC_AR (0x8)
#define MCHP_OTPC_SR (0xc)
#define MCHP_OTPC_SR_READ BIT(6)
+#define MCHP_OTPC_IER (0x10)
+#define MCHP_OTPC_IDR (0x14)
+#define MCHP_OTPC_IMR (0x18)
+#define MCHP_OTPC_ISR (0x1C)
+#define MCHP_OTPC_ISR_COERR BIT(13)
#define MCHP_OTPC_HR (0x20)
#define MCHP_OTPC_HR_SIZE GENMASK(15, 8)
#define MCHP_OTPC_DR (0x24)
+#define MCHP_OTPC_BAR (0x30)
+#define MCHP_OTPC_CAR (0x34)
+#define MCHP_OTPC_UHC0R (0x50)
+#define MCHP_OTPC_UHC1R (0x54)
+#define MCHP_OTPC_UID0R (0x60)
+#define MCHP_OTPC_UID1R (0x64)
+#define MCHP_OTPC_UID2R (0x68)
+#define MCHP_OTPC_UID3R (0x6C)
+#define MCHP_OTPC_WPMR (0xE4)
+#define MCHP_OTPC_WPSR (0xE8)
#define MCHP_OTPC_NAME "mchp-otpc"
#define MCHP_OTPC_SIZE (11 * 1024)
--
2.39.2
Powered by blists - more mailing lists