From: Alexandre Belloni <alexandre.belloni@free-electrons.com>
To: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
Boris Brezillon <boris.brezillon@free-electrons.com>,
Alexandre Belloni <alexandre.belloni@free-electrons.com>
Subject: [PATCH 3/5] ARM: at91: add secumod register definitions
Date: Wed, 31 Aug 2016 18:11:06 +0200 [thread overview]
Message-ID: <20160831161108.8780-4-alexandre.belloni@free-electrons.com> (raw)
In-Reply-To: <20160831161108.8780-1-alexandre.belloni@free-electrons.com>
Add registers and bits definitions for the security module found on
sama5d2.
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
---
include/soc/at91/atmel-secumod.h | 46 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
create mode 100644 include/soc/at91/atmel-secumod.h
diff --git a/include/soc/at91/atmel-secumod.h b/include/soc/at91/atmel-secumod.h
new file mode 100644
index 000000000000..7b5c238eb69f
--- /dev/null
+++ b/include/soc/at91/atmel-secumod.h
@@ -0,0 +1,46 @@
+/*
+ * Atmel SFR (Special Function Registers) register offsets and bit definitions.
+ *
+ * Copyright (C) 2016 Atmel
+ *
+ * Author: Alexandre Belloni <alexandre.belloni@free-electrons.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef _LINUX_SOC_AT91_ATMEL_SECUMOD_H
+#define _LINUX_SOC_AT91_ATMEL_SECUMOD_H
+
+#define AT91_SECUMOD_CR 0x00
+#define AT91_SECUMOD_SYSR 0x04
+#define AT91_SECUMOD_SR 0x08
+#define AT91_SECUMOD_ASR 0x0C
+#define AT91_SECUMOD_SCR 0x10
+
+#define AT91_SECUMOD_RAMRDY 0x14
+#define AT91_SECUMOD_RAMRDY_READY BIT(0)
+
+#define AT91_SECUMOD_PIOBU0 0x18
+#define AT91_SECUMOD_PIOBU1 0x1C
+#define AT91_SECUMOD_PIOBU2 0x20
+#define AT91_SECUMOD_PIOBU3 0x24
+#define AT91_SECUMOD_PIOBU4 0x28
+#define AT91_SECUMOD_PIOBU5 0x2C
+#define AT91_SECUMOD_PIOBU6 0x30
+#define AT91_SECUMOD_PIOBU7 0x34
+#define AT91_SECUMOD_JTAGCR 0x68
+#define AT91_SECUMOD_DYSTUNE 0x6C
+#define AT91_SECUMOD_SRCKEY 0x70
+#define AT91_SECUMOD_RAMACC 0x74
+#define AT91_SECUMOD_RAMACCSR 0x78
+#define AT91_SECUMOD_BMPR 0x7C
+#define AT91_SECUMOD_NMPR 0x80
+#define AT91_SECUMOD_NIEPR 0x84
+#define AT91_SECUMOD_NIDPR 0x88
+#define AT91_SECUMOD_NIMPR 0x8C
+#define AT91_SECUMOD_WKPR 0x90
+
+#endif /* _LINUX_SOC_AT91_ATMEL_SECUMOD_H */
+
--
2.9.3
next prev parent reply other threads:[~2016-08-31 16:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-31 16:11 [PATCH 0/5] Atmel sama5d2 security module support Alexandre Belloni
2016-08-31 16:11 ` [PATCH 1/5] Documentation: dt: atmel-at91: Document secumod bindings Alexandre Belloni
2016-09-06 21:43 ` Rob Herring
2016-08-31 16:11 ` [PATCH 2/5] ARM: dts: at91: sama5d2: Add secumod node Alexandre Belloni
2016-08-31 16:11 ` Alexandre Belloni [this message]
2016-08-31 16:11 ` [PATCH 4/5] misc: sram: document new compatible Alexandre Belloni
2016-09-06 21:44 ` Rob Herring
2016-08-31 16:11 ` [PATCH 5/5] misc: sram: add Atmel securam support Alexandre Belloni
2016-08-31 16:45 ` Philipp Zabel
2016-08-31 17:04 ` Alexandre Belloni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160831161108.8780-4-alexandre.belloni@free-electrons.com \
--to=alexandre.belloni@free-electrons.com \
--cc=boris.brezillon@free-electrons.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nicolas.ferre@atmel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®