summaryrefslogtreecommitdiff
path: root/drivers/soc/atmel/soc.h
diff options
context:
space:
mode:
authorClaudiu Beznea <claudiu.beznea@microchip.com>2021-01-22 14:21:35 +0200
committerNicolas Ferre <nicolas.ferre@microchip.com>2021-01-26 10:02:28 +0100
commitaf3a10513cd628269c3207bc50b8a5886c566ec4 (patch)
treeef29451eb27753b66641bb61fc9dc72acfb54e54 /drivers/soc/atmel/soc.h
parent11272a373c44a5bea3a1dd051a7e84e396926c14 (diff)
drivers: soc: atmel: add per soc id and version match masks
SAMA7G5 has different masks for chip ID and chip version on CIDR register compared to previous AT91 SoCs. For this the commit adapts the code for SAMA7G5 addition by introducing 2 new members in struct at91_soc and fill them properly and also preparing the parsing of proper DT binding. Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com> Link: https://lore.kernel.org/r/1611318097-8970-6-git-send-email-claudiu.beznea@microchip.com
Diffstat (limited to 'drivers/soc/atmel/soc.h')
-rw-r--r--drivers/soc/atmel/soc.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/soc/atmel/soc.h b/drivers/soc/atmel/soc.h
index 5849846a69d6..02198a4de22b 100644
--- a/drivers/soc/atmel/soc.h
+++ b/drivers/soc/atmel/soc.h
@@ -16,14 +16,19 @@
struct at91_soc {
u32 cidr_match;
+ u32 cidr_mask;
+ u32 version_mask;
u32 exid_match;
const char *name;
const char *family;
};
-#define AT91_SOC(__cidr, __exid, __name, __family) \
+#define AT91_SOC(__cidr, __cidr_mask, __version_mask, __exid, \
+ __name, __family) \
{ \
.cidr_match = (__cidr), \
+ .cidr_mask = (__cidr_mask), \
+ .version_mask = (__version_mask), \
.exid_match = (__exid), \
.name = (__name), \
.family = (__family), \