[PATCH v1 07/12] nvmem: microchip-otpc: Add missing register definitions
claudiu beznea
claudiu.beznea at tuxon.dev
Sat Aug 24 08:54:02 PDT 2024
On 21.08.2024 13:59, Alexander Dahl wrote:
> According to datasheets DS60001765B for SAMA7G5 and DS60001579G for
> SAM9X60.
>
> Signed-off-by: Alexander Dahl <ada at thorsis.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)
Are all these used in driver?
>
> #define MCHP_OTPC_NAME "mchp-otpc"
> #define MCHP_OTPC_SIZE (11 * 1024)
More information about the linux-arm-kernel
mailing list