Claudiu Beznea
6808965568
drivers: soc: atmel: add null entry at the end of at91_soc_allowed_list[]
...
of_match_node() calls __of_match_node() which loops though the entries of
matches array. It stops when condition:
(matches->name[0] || matches->type[0] || matches->compatible[0]) is
false. Thus, add a null entry at the end of at91_soc_allowed_list[]
array.
Fixes: caab13b496 ("drivers: soc: atmel: Avoid calling at91_soc_init on non AT91 SoCs")
Cc: stable@vger.kernel.org #4.12+
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com >
Signed-off-by: Arnd Bergmann <arnd@arndb.de >
2021-01-22 23:35:14 +01:00
Sudeep Holla
caab13b496
drivers: soc: atmel: Avoid calling at91_soc_init on non AT91 SoCs
...
Since at91_soc_init is called unconditionally from atmel_soc_device_init,
we get the following warning on all non AT91 SoCs:
" AT91: Could not find identification node"
Fix the same by filtering with allowed AT91 SoC list.
Cc: Nicolas Ferre <nicolas.ferre@microchip.com >
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com >
Cc: Ludovic Desroches <ludovic.desroches@microchip.com >
Cc: stable@vger.kernel.org #4.12+
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com >
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com >
Link: https://lore.kernel.org/r/20201211135846.1334322-1-sudeep.holla@arm.com
Signed-off-by: Arnd Bergmann <arnd@arndb.de >
2021-01-22 23:30:12 +01:00
Kai Stuhlemmer
786c395dbe
ARM: at91: sam9x60 SiP types added to soc description
...
Adding SAM9X60 SIP variants to the soc description list.
Signed-off-by: Kai Stuhlemmer <kai.stuhlemmer@ebee.de >
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com >
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com >
Link: https://lore.kernel.org/r/20201008125028.21071-1-nicolas.ferre@microchip.com
2020-10-28 21:27:39 +01:00
Claudiu Beznea
dccf722913
drivers: soc: atmel: move sam9x60 under its own config flag
...
Move SAM9X60 under its own config flag.
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com >
Link: https://lore.kernel.org/r/1575035505-6310-5-git-send-email-claudiu.beznea@microchip.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com >
2019-12-10 00:44:53 +01:00
Sandeep Sheriker Mallikarjun
446e8986a2
ARM: at91: add support in soc driver for new SAM9X60
...
Add detection of new SAM9X60 by this soc.c driver.
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com >
[nicolas.ferre@microchip.com: split patch]
Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2018-12-12 11:55:20 +01:00
Nicolas Ferre
15653dc850
ARM: at91: add support in soc driver for LPDDR2 SiP
...
Add some more SiP components to be detected by this soc.c driver.
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com >
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com >
2018-12-12 11:10:00 +01:00
Cristian Birsan
cd2e9be89a
drivers: soc: atmel: Add basic support for new sama5d2 SiPs
...
Add basic support for new sama5d2 System in a Package chips.
Signed-off-by: Cristian Birsan <cristian.birsan@microchip.com >
[claudiu.beznea@microchip.com: use MiB instead of MB]
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
2017-09-17 19:45:59 +02:00
Szemző András
82208e7568
ARM: at91: add armv7m SoC detection
...
Add SAME70/V71/S70/V70 chip-ids to SoC detection.
Signed-off-by: Szemző András <sza@esh.hu >
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com >
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com >
2017-06-02 10:11:49 +02:00
Alexandre Belloni
b32de9dd38
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 >
2017-03-31 20:36:10 +02:00