Thomas Gleixner
a636cd6c42
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 4
...
Based on 1 normalized pattern(s):
licensed under gplv2 or later
extracted by the scancode license scanner the SPDX license identifier
GPL-2.0-or-later
has been chosen to replace the boilerplate/reference in 118 file(s).
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Reviewed-by: Jilayne Lovejoy <opensource@jilayne.com >
Reviewed-by: Steve Winslow <swinslow@gmail.com >
Reviewed-by: Allison Randal <allison@lohutok.net >
Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org >
Cc: linux-spdx@vger.kernel.org
Link: https://lkml.kernel.org/r/20190519154040.961286471@linutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-05-21 11:28:40 +02:00
Claudiu Beznea
01c7031cfa
ARM: at91: pm: initial PM support for SAM9X60
...
Add initial PM support for SAM9X60. This include idle, WFI and ULP0.
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com >
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com >
Signed-off-by: Ludovic Desroches <ludovic.desroches@microchip.com >
2019-03-28 11:05:53 +01: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
Alexandre Belloni
1346919285
ARM: at91: pm: Merge all at91sam9*_pm_init
...
The PM initialization is now identical for all at91sam9. Merge the
functions.
Acked-by: Wenyou Yang <wenyou.yang@atmel.com >
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com >
2017-03-31 20:36:09 +02:00
Kefeng Wang
435ebcbc9f
arm: use of_platform_default_populate() to populate
...
Use helper of_platform_default_populate() in linux/of_platform
when possible, instead of calling of_platform_populate() with
the default match table.
Acked-by: Viresh Kumar <viresh.kumar@linaro.org >
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com >
Cc: Nicolas Ferre <nicolas.ferre@atmel.com >
Cc: Krzysztof Halasa <khalasa@piap.pl >
Cc: Sekhar Nori <nsekhar@ti.com >
Cc: Shawn Guo <shawnguo@kernel.org >
Cc: Russell King <linux@arm.linux.org.uk >
Cc: Roland Stigge <stigge@antcom.de >
Cc: Jason Cooper <jason@lakedaemon.net >
Cc: Ray Jui <rjui@broadcom.com >
Cc: Viresh Kumar <vireshk@kernel.org >
Cc: Stephen Warren <swarren@wwwdotorg.org >
Cc: Rob Herring <robh@kernel.org >
Cc: Michal Simek <michal.simek@xilinx.com >
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com >
Signed-off-by: Rob Herring <robh@kernel.org >
2016-06-23 15:00:39 -05:00
Alexandre Belloni
fbc7edca5a
ARM: at91: pm: move idle functions to pm.c
...
Avoid using code from clk/at91 for PM.
This also has the bonus effect of setting arm_pm_idle for sama5 platforms.
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com >
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com >
2016-02-17 17:53:02 +01:00
Nicolas Pitre
19c233b79d
ARM: appropriate __init annotation for const data
...
Init data marked const should be annotated with __initconst for
correctness and not __initdata. In some cases the array gathering
references to that data has to be marked const as well. This fixes
LTO builds that otherwise fail with section mismatch errors.
Signed-off-by: Nicolas Pitre <nico@linaro.org >
Signed-off-by: Olof Johansson <olof@lixom.net >
2015-07-28 13:55:27 +02:00
Alexandre Belloni
d18032d62f
ARM: at91: at91sam9: use SoC detection infrastructure
...
Use the soc detection infrastructure for at91sam9 initialization.
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com >
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com >
2015-03-13 15:11:05 +01:00
Nicolas Ferre
ad3fc3e316
ARM: at91/trivial: unify functions and machine names
...
Remove the string "(Device Tree)" after the machine name because all AT91
machines use the DT nowadays.
Also change some function names to unify following the convention:
- at91sam9xxx aren't named sam9, 9xxx but with the full name
- sama5 are the ones that don't have the at91 prefix anymore.
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com >
2015-02-02 11:01:29 +01:00
Alexandre Belloni
827de1f123
ARM: at91: remove at91_dt_initialize and machine init_early()
...
Move the ramc initialization to pm.c as it is the only user left.
This allows us to get rid of at91_dt_initialize() that was the only one called
by the init_early() function pointer of struct machine_desc.
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com >
[nicolas.ferre@atmel.com: adapt patch to newer series]
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
2015-02-02 11:01:29 +01:00
Nicolas Ferre
cac0172389
ARM: at91: change board files into SoC files
...
As board files are now DT only and can address all aspects of the SoC family,
we can rename them so that the mach-at91 directory looks cleaner.
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com >
2015-02-02 11:01:28 +01:00