Skip to content

Commit 9a913a5

Browse files
ryan-wannerclaudiubeznea
authored andcommitted
ARM: at91: Add Support in SoC driver for SAMA7D65
Add support for SAMA7D65 SoC in the SoC driver. Signed-off-by: Ryan Wanner <Ryan.Wanner@microchip.com> Link: https://lore.kernel.org/r/84b4a7ec0025741bc3ab647671fd4e880b2ed1d5.1739555984.git.Ryan.Wanner@microchip.com [claudiu.beznea: add a space after compatibles to comply with the existing format] Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
1 parent 8c1dd80 commit 9a913a5

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

drivers/soc/atmel/soc.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,9 @@ static const struct at91_soc socs[] __initconst = {
246246
"samv70q19", "samv7"),
247247
#endif
248248
#ifdef CONFIG_SOC_SAMA7
249+
AT91_SOC(SAMA7D65_CIDR_MATCH, AT91_CIDR_MASK_SAMA7G5,
250+
AT91_CIDR_VERSION_MASK_SAMA7G5, SAMA7D65_EXID_MATCH,
251+
"sama7d65", "sama7d6"),
249252
AT91_SOC(SAMA7G5_CIDR_MATCH, AT91_CIDR_MATCH_MASK,
250253
AT91_CIDR_VERSION_MASK_SAMA7G5, SAMA7G51_EXID_MATCH,
251254
"sama7g51", "sama7g5"),
@@ -305,6 +308,7 @@ static int __init at91_get_cidr_exid_from_chipid(u32 *cidr, u32 *exid)
305308
void __iomem *regs;
306309
static const struct of_device_id chipids[] = {
307310
{ .compatible = "atmel,sama5d2-chipid" },
311+
{ .compatible = "microchip,sama7d65-chipid" },
308312
{ .compatible = "microchip,sama7g5-chipid" },
309313
{ },
310314
};
@@ -393,6 +397,7 @@ static const struct of_device_id at91_soc_allowed_list[] __initconst = {
393397
{ .compatible = "atmel,at91sam9", },
394398
{ .compatible = "atmel,sama5", },
395399
{ .compatible = "atmel,samv7", },
400+
{ .compatible = "microchip,sama7d65", },
396401
{ .compatible = "microchip,sama7g5", },
397402
{ }
398403
};

drivers/soc/atmel/soc.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ at91_soc_init(const struct at91_soc *socs);
4545
#define AT91SAM9N12_CIDR_MATCH 0x019a07a0
4646
#define SAM9X60_CIDR_MATCH 0x019b35a0
4747
#define SAM9X7_CIDR_MATCH 0x09750020
48+
#define SAMA7D65_CIDR_MATCH 0x00262100
4849
#define SAMA7G5_CIDR_MATCH 0x00162100
4950

5051
#define AT91SAM9M11_EXID_MATCH 0x00000001
@@ -75,6 +76,8 @@ at91_soc_init(const struct at91_soc *socs);
7576
#define SAM9X75_D5M_EXID_MATCH 0x00000010
7677
#define SAM9X75_EXID_MATCH 0x00000000
7778

79+
#define SAMA7D65_EXID_MATCH 0x00000080
80+
7881
#define SAMA7G51_EXID_MATCH 0x3
7982
#define SAMA7G52_EXID_MATCH 0x2
8083
#define SAMA7G53_EXID_MATCH 0x1

0 commit comments

Comments
 (0)