diff options
author | Cristian Birsan <cristian.birsan@microchip.com> | 2017-07-06 04:35:27 -0400 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2017-09-17 13:45:59 -0400 |
commit | cd2e9be89a246046d42939b8c0e0ea0d08530d30 (patch) | |
tree | 6aa14943eac743bd79f493d4936a477b1e636c52 | |
parent | 2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e (diff) |
drivers: soc: atmel: Add basic support for new sama5d2 SiPs
Add basic support for new sama5d2 System in a Package chips.
Signed-off-by: Cristian Birsan <cristian.birsan@microchip.com>
[claudiu.beznea@microchip.com: use MiB instead of MB]
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
-rw-r--r-- | drivers/soc/atmel/soc.c | 8 | ||||
-rw-r--r-- | drivers/soc/atmel/soc.h | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/drivers/soc/atmel/soc.c b/drivers/soc/atmel/soc.c index c1363c83c352..4dd03b099c89 100644 --- a/drivers/soc/atmel/soc.c +++ b/drivers/soc/atmel/soc.c | |||
@@ -72,6 +72,8 @@ static const struct at91_soc __initconst socs[] = { | |||
72 | "sama5d21", "sama5d2"), | 72 | "sama5d21", "sama5d2"), |
73 | AT91_SOC(SAMA5D2_CIDR_MATCH, SAMA5D22CU_EXID_MATCH, | 73 | AT91_SOC(SAMA5D2_CIDR_MATCH, SAMA5D22CU_EXID_MATCH, |
74 | "sama5d22", "sama5d2"), | 74 | "sama5d22", "sama5d2"), |
75 | AT91_SOC(SAMA5D2_CIDR_MATCH, SAMA5D225C_D1M_EXID_MATCH, | ||
76 | "sama5d225c 16MiB SiP", "sama5d2"), | ||
75 | AT91_SOC(SAMA5D2_CIDR_MATCH, SAMA5D23CU_EXID_MATCH, | 77 | AT91_SOC(SAMA5D2_CIDR_MATCH, SAMA5D23CU_EXID_MATCH, |
76 | "sama5d23", "sama5d2"), | 78 | "sama5d23", "sama5d2"), |
77 | AT91_SOC(SAMA5D2_CIDR_MATCH, SAMA5D24CX_EXID_MATCH, | 79 | AT91_SOC(SAMA5D2_CIDR_MATCH, SAMA5D24CX_EXID_MATCH, |
@@ -84,10 +86,16 @@ static const struct at91_soc __initconst socs[] = { | |||
84 | "sama5d27", "sama5d2"), | 86 | "sama5d27", "sama5d2"), |
85 | AT91_SOC(SAMA5D2_CIDR_MATCH, SAMA5D27CN_EXID_MATCH, | 87 | AT91_SOC(SAMA5D2_CIDR_MATCH, SAMA5D27CN_EXID_MATCH, |
86 | "sama5d27", "sama5d2"), | 88 | "sama5d27", "sama5d2"), |
89 | AT91_SOC(SAMA5D2_CIDR_MATCH, SAMA5D27C_D1G_EXID_MATCH, | ||
90 | "sama5d27c 128MiB SiP", "sama5d2"), | ||
91 | AT91_SOC(SAMA5D2_CIDR_MATCH, SAMA5D27C_D5M_EXID_MATCH, | ||
92 | "sama5d27c 64MiB SiP", "sama5d2"), | ||
87 | AT91_SOC(SAMA5D2_CIDR_MATCH, SAMA5D28CU_EXID_MATCH, | 93 | AT91_SOC(SAMA5D2_CIDR_MATCH, SAMA5D28CU_EXID_MATCH, |
88 | "sama5d28", "sama5d2"), | 94 | "sama5d28", "sama5d2"), |
89 | AT91_SOC(SAMA5D2_CIDR_MATCH, SAMA5D28CN_EXID_MATCH, | 95 | AT91_SOC(SAMA5D2_CIDR_MATCH, SAMA5D28CN_EXID_MATCH, |
90 | "sama5d28", "sama5d2"), | 96 | "sama5d28", "sama5d2"), |
97 | AT91_SOC(SAMA5D2_CIDR_MATCH, SAMA5D28C_D1G_EXID_MATCH, | ||
98 | "sama5d28c 128MiB SiP", "sama5d2"), | ||
91 | AT91_SOC(SAMA5D3_CIDR_MATCH, SAMA5D31_EXID_MATCH, | 99 | AT91_SOC(SAMA5D3_CIDR_MATCH, SAMA5D31_EXID_MATCH, |
92 | "sama5d31", "sama5d3"), | 100 | "sama5d31", "sama5d3"), |
93 | AT91_SOC(SAMA5D3_CIDR_MATCH, SAMA5D33_EXID_MATCH, | 101 | AT91_SOC(SAMA5D3_CIDR_MATCH, SAMA5D33_EXID_MATCH, |
diff --git a/drivers/soc/atmel/soc.h b/drivers/soc/atmel/soc.h index a90bd5b0ef8f..94cd5d1ab502 100644 --- a/drivers/soc/atmel/soc.h +++ b/drivers/soc/atmel/soc.h | |||
@@ -64,14 +64,18 @@ at91_soc_init(const struct at91_soc *socs); | |||
64 | 64 | ||
65 | #define SAMA5D2_CIDR_MATCH 0x0a5c08c0 | 65 | #define SAMA5D2_CIDR_MATCH 0x0a5c08c0 |
66 | #define SAMA5D21CU_EXID_MATCH 0x0000005a | 66 | #define SAMA5D21CU_EXID_MATCH 0x0000005a |
67 | #define SAMA5D225C_D1M_EXID_MATCH 0x00000053 | ||
67 | #define SAMA5D22CU_EXID_MATCH 0x00000059 | 68 | #define SAMA5D22CU_EXID_MATCH 0x00000059 |
68 | #define SAMA5D22CN_EXID_MATCH 0x00000069 | 69 | #define SAMA5D22CN_EXID_MATCH 0x00000069 |
69 | #define SAMA5D23CU_EXID_MATCH 0x00000058 | 70 | #define SAMA5D23CU_EXID_MATCH 0x00000058 |
70 | #define SAMA5D24CX_EXID_MATCH 0x00000004 | 71 | #define SAMA5D24CX_EXID_MATCH 0x00000004 |
71 | #define SAMA5D24CU_EXID_MATCH 0x00000014 | 72 | #define SAMA5D24CU_EXID_MATCH 0x00000014 |
72 | #define SAMA5D26CU_EXID_MATCH 0x00000012 | 73 | #define SAMA5D26CU_EXID_MATCH 0x00000012 |
74 | #define SAMA5D27C_D1G_EXID_MATCH 0x00000033 | ||
75 | #define SAMA5D27C_D5M_EXID_MATCH 0x00000032 | ||
73 | #define SAMA5D27CU_EXID_MATCH 0x00000011 | 76 | #define SAMA5D27CU_EXID_MATCH 0x00000011 |
74 | #define SAMA5D27CN_EXID_MATCH 0x00000021 | 77 | #define SAMA5D27CN_EXID_MATCH 0x00000021 |
78 | #define SAMA5D28C_D1G_EXID_MATCH 0x00000013 | ||
75 | #define SAMA5D28CU_EXID_MATCH 0x00000010 | 79 | #define SAMA5D28CU_EXID_MATCH 0x00000010 |
76 | #define SAMA5D28CN_EXID_MATCH 0x00000020 | 80 | #define SAMA5D28CN_EXID_MATCH 0x00000020 |
77 | 81 | ||