Skip to contentSkip to conversation

ARM: at91: add support in soc driver for new SAMA5D29

PATCH In review [email protected] 2 participants 3 messages Mar 2, 2022 – Mar 4, 2022 Arm/Microchip (AT91) SoC support

lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 1/1 ARM: at91: add support in soc driver for new SAMA5D29

From: Mihai Sain <[email protected]>

Add detection of new SAMA5D29 by the SoC driver.

---
 drivers/soc/atmel/soc.c | 3 +++
 drivers/soc/atmel/soc.h | 1 +
 2 files changed, 4 insertions(+)
drivers/soc/atmel/soc.c +3 -0
index a490ad7e090f..b2d365ae0282 100644
@@ -156,6 +156,9 @@ static const struct at91_soc socs[] __initconst = {
 	AT91_SOC(SAMA5D2_CIDR_MATCH, AT91_CIDR_MATCH_MASK,
 		 AT91_CIDR_VERSION_MASK, SAMA5D28C_LD2G_EXID_MATCH,
 		 "sama5d28c 256MiB LPDDR2 SiP", "sama5d2"),
+	AT91_SOC(SAMA5D2_CIDR_MATCH, AT91_CIDR_MATCH_MASK,
+		 AT91_CIDR_VERSION_MASK, SAMA5D29CN_EXID_MATCH,
+		 "sama5d29", "sama5d2"),
 	AT91_SOC(SAMA5D3_CIDR_MATCH, AT91_CIDR_MATCH_MASK,
 		 AT91_CIDR_VERSION_MASK, SAMA5D31_EXID_MATCH,
 		 "sama5d31", "sama5d3"),
drivers/soc/atmel/soc.h +1 -0
index c3eb3c8f0834..2ecaa75b00f0 100644
@@ -95,6 +95,7 @@ at91_soc_init(const struct at91_soc *socs);
 #define SAMA5D28C_LD2G_EXID_MATCH	0x00000072
 #define SAMA5D28CU_EXID_MATCH		0x00000010
 #define SAMA5D28CN_EXID_MATCH		0x00000020
+#define SAMA5D29CN_EXID_MATCH		0x00000023
 
 #define SAMA5D3_CIDR_MATCH		0x0a5c07c0
 #define SAMA5D31_EXID_MATCH		0x00444300
Signature · 1 line
2.32.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · On 02.03.2022 17:53, [email protected] wrote:

From: Mihai Sain <[email protected]>

Add detection of new SAMA5D29 by the SoC driver.

Quoted 31 lines
---
 drivers/soc/atmel/soc.c | 3 +++
 drivers/soc/atmel/soc.h | 1 +
 2 files changed, 4 insertions(+)
drivers/soc/atmel/soc.c +3 -0
index a490ad7e090f..b2d365ae0282 100644
@@ -156,6 +156,9 @@ static const struct at91_soc socs[] __initconst = {
 	AT91_SOC(SAMA5D2_CIDR_MATCH, AT91_CIDR_MATCH_MASK,
 		 AT91_CIDR_VERSION_MASK, SAMA5D28C_LD2G_EXID_MATCH,
 		 "sama5d28c 256MiB LPDDR2 SiP", "sama5d2"),
+	AT91_SOC(SAMA5D2_CIDR_MATCH, AT91_CIDR_MATCH_MASK,
+		 AT91_CIDR_VERSION_MASK, SAMA5D29CN_EXID_MATCH,
+		 "sama5d29", "sama5d2"),
 	AT91_SOC(SAMA5D3_CIDR_MATCH, AT91_CIDR_MATCH_MASK,
 		 AT91_CIDR_VERSION_MASK, SAMA5D31_EXID_MATCH,
 		 "sama5d31", "sama5d3"),
drivers/soc/atmel/soc.h +1 -0
index c3eb3c8f0834..2ecaa75b00f0 100644
@@ -95,6 +95,7 @@ at91_soc_init(const struct at91_soc *socs);
 #define SAMA5D28C_LD2G_EXID_MATCH	0x00000072
 #define SAMA5D28CU_EXID_MATCH		0x00000010
 #define SAMA5D28CN_EXID_MATCH		0x00000020
+#define SAMA5D29CN_EXID_MATCH		0x00000023
 
 #define SAMA5D3_CIDR_MATCH		0x0a5c07c0
 #define SAMA5D31_EXID_MATCH		0x00444300
author maintainer
#2 lore raw
Quoted 9 lines · On 03/03/2022 at 09:19, Claudiu Beznea - M18063 wrote:
Quoted 6 lines · On 02.03.2022 17:53, [email protected] wrote:

From: Mihai Sain <[email protected]>

Add detection of new SAMA5D29 by the SoC driver.

Queued in at91-soc for 5.18.

Best regards,
Nicolas

Quoted 33 lines
Quoted 32 lines
---
  drivers/soc/atmel/soc.c | 3 +++
  drivers/soc/atmel/soc.h | 1 +
  2 files changed, 4 insertions(+)
drivers/soc/atmel/soc.c +3 -0
index a490ad7e090f..b2d365ae0282 100644
@@ -156,6 +156,9 @@ static const struct at91_soc socs[] __initconst = {
  	AT91_SOC(SAMA5D2_CIDR_MATCH, AT91_CIDR_MATCH_MASK,
  		 AT91_CIDR_VERSION_MASK, SAMA5D28C_LD2G_EXID_MATCH,
  		 "sama5d28c 256MiB LPDDR2 SiP", "sama5d2"),
+	AT91_SOC(SAMA5D2_CIDR_MATCH, AT91_CIDR_MATCH_MASK,
+		 AT91_CIDR_VERSION_MASK, SAMA5D29CN_EXID_MATCH,
+		 "sama5d29", "sama5d2"),
  	AT91_SOC(SAMA5D3_CIDR_MATCH, AT91_CIDR_MATCH_MASK,
  		 AT91_CIDR_VERSION_MASK, SAMA5D31_EXID_MATCH,
  		 "sama5d31", "sama5d3"),
drivers/soc/atmel/soc.h +1 -0
index c3eb3c8f0834..2ecaa75b00f0 100644
@@ -95,6 +95,7 @@ at91_soc_init(const struct at91_soc *socs);
  #define SAMA5D28C_LD2G_EXID_MATCH	0x00000072
  #define SAMA5D28CU_EXID_MATCH		0x00000010
  #define SAMA5D28CN_EXID_MATCH		0x00000020
+#define SAMA5D29CN_EXID_MATCH		0x00000023
 
  #define SAMA5D3_CIDR_MATCH		0x0a5c07c0
  #define SAMA5D31_EXID_MATCH		0x00444300
Signature · 1 line
Nicolas Ferre