From ea4abe7f3a3216f5d98dcc7a884e10f20b264429 Mon Sep 17 00:00:00 2001 From: Boris BREZILLON Date: Thu, 12 Mar 2015 15:54:27 +0100 Subject: ARM: at91: add soc detection infrastructure Add new structures and functions to handle AT91 SoC detection. [alexandre.belloni@free-electrons.com: reworked DBGU detection] Signed-off-by: Alexandre Belloni Signed-off-by: Boris BREZILLON Signed-off-by: Nicolas Ferre --- arch/arm/mach-at91/soc.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 arch/arm/mach-at91/soc.h (limited to 'arch/arm/mach-at91/soc.h') diff --git a/arch/arm/mach-at91/soc.h b/arch/arm/mach-at91/soc.h new file mode 100644 index 000000000000..9678a3b2d282 --- /dev/null +++ b/arch/arm/mach-at91/soc.h @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2015 Atmel + * + * Boris Brezillon + +struct at91_soc { + u32 cidr_match; + u32 exid_match; + const char *name; + const char *family; +}; + +#define AT91_SOC(__cidr, __exid, __name, __family) \ + { \ + .cidr_match = (__cidr), \ + .exid_match = (__exid), \ + .name = (__name), \ + .family = (__family), \ + } + +struct soc_device * __init +at91_soc_init(const struct at91_soc *socs); + +#endif /* __AT91_SOC_H */ -- cgit