]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: at91: move SoC detection to its own driver
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 16 Feb 2017 10:31:06 +0000 (11:31 +0100)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Fri, 31 Mar 2017 18:36:10 +0000 (20:36 +0200)
commitb32de9dd38fcf9063e993dcdd64cc64ad344d3ac
tree366da11875feb5f0ecaf486984493f6f07bcd76d
parent8c9290aee18ef33fd7d6817ef36bb430278e542b
ARM: at91: move SoC detection to its own driver

To simplify machine init and as the soc_device struct is not used as the
parent for on-chip devices anymore, move SoC detection to its own driver.

Change in dmesg:
 - before:
DMA: preallocated 256 KiB pool for atomic coherent allocations
AT91: Detected SoC family: sama5d2
AT91: Detected SoC: sama5d27, revision 0
No ATAGs?
clocksource: tcb_clksrc: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 184217874325 ns
at_xdmac f0010000.dma-controller: 16 channels, mapped at 0xe085b000
SCSI subsystem initialized

 - after:
DMA: preallocated 256 KiB pool for atomic coherent allocations
No ATAGs?
clocksource: tcb_clksrc: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 184217874325 ns
at_xdmac f0010000.dma-controller: 16 channels, mapped at 0xe0859000
AT91: Detected SoC family: sama5d2
AT91: Detected SoC: sama5d27, revision 0
SCSI subsystem initialized

Suggested-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
arch/arm/mach-at91/Makefile
arch/arm/mach-at91/at91rm9200.c
arch/arm/mach-at91/at91sam9.c
arch/arm/mach-at91/sama5.c
arch/arm/mach-at91/soc.c [deleted file]
drivers/soc/Kconfig
drivers/soc/Makefile
drivers/soc/atmel/Kconfig [new file with mode: 0644]
drivers/soc/atmel/Makefile [new file with mode: 0644]
drivers/soc/atmel/soc.c [new file with mode: 0644]
drivers/soc/atmel/soc.h [moved from arch/arm/mach-at91/soc.h with 100% similarity]