mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 00:34:52 +00:00

Only use SOC_AT91SAM9 for all the at91sam9 SoCs. It removes all the empty at91sam9xxx.c SoC files. It also removes the useless at91_init_soc affectation procedure and its "init" function pointer. Only the SoC detection and display are kept for the at91sam9: at91_soc_is_enabled() and at91_boot_soc.map_io() function calls are also removed. It enables HAVE_AT91_SMD and HAVE_AT91_UTMI for all the sam9 SoCs but this only represents 96 bytes of uncompressed kernel code. Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> [nicolas.ferre@atmel.com: different organization of the patches] Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
41 lines
811 B
C
41 lines
811 B
C
/*
|
|
* Copyright (C) 2011 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
|
|
*
|
|
* Under GPLv2
|
|
*/
|
|
|
|
struct at91_init_soc {
|
|
int builtin;
|
|
void (*map_io)(void);
|
|
};
|
|
|
|
extern struct at91_init_soc at91_boot_soc;
|
|
extern struct at91_init_soc at91rm9200_soc;
|
|
extern struct at91_init_soc sama5d3_soc;
|
|
extern struct at91_init_soc sama5d4_soc;
|
|
|
|
#define AT91_SOC_START(_name) \
|
|
struct at91_init_soc __initdata _name##_soc \
|
|
__used \
|
|
= { \
|
|
.builtin = 1, \
|
|
|
|
#define AT91_SOC_END \
|
|
};
|
|
|
|
static inline int at91_soc_is_enabled(void)
|
|
{
|
|
return at91_boot_soc.builtin;
|
|
}
|
|
|
|
#if !defined(CONFIG_SOC_AT91RM9200)
|
|
#define at91rm9200_soc at91_boot_soc
|
|
#endif
|
|
|
|
#if !defined(CONFIG_SOC_SAMA5D3)
|
|
#define sama5d3_soc at91_boot_soc
|
|
#endif
|
|
|
|
#if !defined(CONFIG_SOC_SAMA5D4)
|
|
#define sama5d4_soc at91_boot_soc
|
|
#endif
|