The register range from the system timer is also used by the watchdog driver.
Use a regmap to handle concurrent accesses.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
Acked-by: Boris Brezillon boris.brezil...@free-electrons.com
---
drivers/clocksource/timer-atmel-st.c
The Atmel System Timer IP available on the at91rm9200 exposes both a timer and a
watchdog.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
Acked-by: Boris Brezillon boris.brezil...@free-electrons.com
---
drivers/mfd/Kconfig | 7
drivers/mfd/Makefile
Import at91rm9200_time.c from mach-at91 as timer-atmel-st.c. Further cleanup is
required to get rid of the mach-at91 headers.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
Acked-by: Boris Brezillon boris.brezil...@free-electrons.com
---
arch/arm/mach-at91/Makefile
The system timer register range is also used for the watchdog. Declare it as a
syscon to be able to get a regmap early enough in the boot process
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
Acked-by: Boris Brezillon boris.brezil...@free-electrons.com
---
Documentation
Use clocksource_of_init to initialize the system timer instead of relying on a
custom function.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
Acked-by: Boris Brezillon boris.brezil...@free-electrons.com
---
arch/arm/mach-at91/board-dt-rm9200.c | 7 ---
arch/arm/mach
check
- check whether regmap_st is NULL in the watchdog driver
Changes in v2:
- cleaned up more includes in the watchdog driver
- stop using if OF when selecting CLKSRC_OF
- stop initializing .owner
Alexandre Belloni (8):
ARM: at91/dt: declare atmel,at91rm9200-st as a syscon
mfd: Add
The system timer MFD driver is providing a regmap. Use it to access the
registers.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
Acked-by: Boris Brezillon boris.brezil...@free-electrons.com
---
drivers/watchdog/Kconfig | 2 +-
drivers/watchdog/at91rm9200_wdt.c
Add nodes for the SRAM available on atmel SoCs
Remove leftover TODOs in the sam9g45 file
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/boot/dts/at91rm9200.dtsi | 5 +
arch/arm/boot/dts/at91sam9260.dtsi | 5 +
arch/arm/boot/dts/at91sam9261.dtsi
Enable the RTC on the at91rm9200ek.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/boot/dts/at91rm9200ek.dts | 4
1 file changed, 4 insertions(+)
diff --git a/arch/arm/boot/dts/at91rm9200ek.dts
b/arch/arm/boot/dts/at91rm9200ek.dts
index 43eb779dd6f6
The ethernut5 is actually based on an at91sam9xe, use the correct dts include.
Cc: Martin Reimann martin.reim...@egnite.de
Cc: Tim Schendekehl tim.schendek...@egnite.de
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/boot/dts/ethernut5.dts | 2 +-
1 file
Add a node for the RTC available on at91rm9200.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/boot/dts/at91rm9200.dtsi | 7 +++
1 file changed, 7 insertions(+)
diff --git a/arch/arm/boot/dts/at91rm9200.dtsi
b/arch/arm/boot/dts/at91rm9200.dtsi
index
Add node for the RTC available on the at91sam9n12.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/boot/dts/at91sam9n12.dtsi | 7 +++
1 file changed, 7 insertions(+)
diff --git a/arch/arm/boot/dts/at91sam9n12.dtsi
b/arch/arm/boot/dts/at91sam9n12.dtsi
at91sam9xe is slightly different from at91sam9260, in particular it has a
different SRAM size and location.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
.../devicetree/bindings/arm/atmel-at91.txt | 1 +
arch/arm/boot/dts/at91sam9xe.dtsi | 60
This series enables RTC on the at91sam9n12 and at91rm9200.
It also adds nodes for the SRAM availabe on at91 SoCs.
Finally it adds a dtsi for the at91sam9xe and uses it for the ethernut5 dts.
Alexandre Belloni (6):
ARM: at91/dt: at91sam9n12: Add RTC node
ARM: at91/dt: rm9200: add RTC node
Add node for the RTC available on the at91sam9n12.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
Nicolas,
following our discussion, I forgot to change that one, I'm removing the 9x5
errata for the RTC on sam9n12.
arch/arm/boot/dts/at91sam9n12.dtsi | 7 +++
1
Now that the SRAM is part of a genpool, use it to allocate memory to use for the
slowclock implementation.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/Kconfig | 1 +
arch/arm/mach-at91/pm.c| 46
Now that the SRAM is initialized by the mmio-sram driver, .map_io is useless.
remove it.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/at91rm9200.c | 6 --
arch/arm/mach-at91/at91sam9260.c | 27 ---
arch/arm/mach-at91
Move at91rm9200_idle() along with at91sam9_idle() in clk/at91/pmc.c.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
Cc: Mike Turquette mturque...@linaro.org
Mike, Boris,
I guess that one can go through the at91 tree unless you have any objections.
arch/arm/mach-at91
Store SoC differences in a struct to remove cpu_is_* usage.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/pm.c | 54 ++---
1 file changed, 33 insertions(+), 21 deletions(-)
diff --git a/arch/arm/mach-at91
once Atmel System
Timer cleanups is applied).
Alexandre Belloni (6):
ARM: at91: pm: rework cpu detection
ARM: at91: pm: use the mmio-sram pool to access SRAM
ARM: at91: remove useless map_io
ARM: at91: sama5d4: remove useless call to at91_init_sram
ARM: at91: remove unused at91_init_sram
SRAM initialization is now done through the mmio-sram driver and
at91_init_sram() is not called anymore, remove it.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/generic.h | 2 --
arch/arm/mach-at91/setup.c | 20
2 files
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/sama5d4.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm/mach-at91/sama5d4.c b/arch/arm/mach-at91/sama5d4.c
index 7638509639f4..fa127fb79221 100644
--- a/arch/arm/mach-at91/sama5d4.c
+++ b
out of 4 hunks FAILED
please rebase on testing/next which I just pushed.
--
balbi
--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message
The Atmel System Timer IP available on the at91rm9200 exposes both a timer and a
watchdog.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
drivers/mfd/Kconfig | 7
drivers/mfd/Makefile | 1 +
drivers/mfd/atmel-st.c | 76
Import at91rm9200_time.c from mach-at91 as timer-atmel-st.c. Further cleanup is
required to get rid of the mach-at91 headers.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/Makefile | 2 +-
drivers
if OF when selecting CLKSRC_OF
- stop initializing .owner
Alexandre Belloni (8):
ARM: at91/dt: declare atmel,at91rm9200-st as a syscon
mfd: Add atmel-st driver
watchdog: at91rm9200: use the regmap from mfd
ARM: at91: time: move the system timer driver to drivers/clocksource
ARM: at91: move
The register range from the system timer is also used by the watchdog driver.
Use a regmap to handle concurrent accesses.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
drivers/clocksource/timer-atmel-st.c | 103 +--
1 file changed, 39
Both drivers using the system timer are now converted to an MFD. mach/at91_st.h
is now useless.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/include/mach/at91_st.h | 61 ---
1 file changed, 61 deletions(-)
delete mode
The system timer MFD driver is providing a regmap. Use it to access the
registers.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
drivers/watchdog/Kconfig | 2 +-
drivers/watchdog/at91rm9200_wdt.c | 27 +--
2 files changed, 10
Restarting on an at91rm9200 is handled by using the system timer. Move that
function to the system timer driver.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/at91rm9200.c | 11 ---
drivers/clocksource/timer-atmel-st.c | 12
Use clocksource_of_init to initialize the system timer instead of relying on a
custom function.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/board-dt-rm9200.c | 7 ---
arch/arm/mach-at91/generic.h | 3 ---
drivers/clocksource/timer
The system timer register range is also used for the watchdog. Declare it as a
syscon to be able to get a regmap early enough in the boot process
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
Documentation/devicetree/bindings/arm/atmel-at91.txt | 2 +-
arch/arm/boot
at91sam9xe is slightly different from at91sam9260, in particular it has a
different SRAM size and location.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
Acked-by: Boris Brezillon boris.brezil...@free-electrons.com
---
.../devicetree/bindings/arm/atmel-at91.txt
Add nodes for the SRAM available on atmel SoCs
For the at91sam9260 and the at91sam9g20, address mirroring is used to create a
single contiguous SRAM range instead of declaring two separate banks.
Also remove leftover TODOs in the sam9g45 file
Signed-off-by: Alexandre Belloni alexandre.bell
The ethernut5 is actually based on an at91sam9xe, use the correct dts include.
Cc: Martin Reimann martin.reim...@egnite.de
Cc: Tim Schendekehl tim.schendek...@egnite.de
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
Acked-by: Boris Brezillon boris.brezil...@free
Add a node for the RTC available on at91rm9200.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
Acked-by: Boris Brezillon boris.brezil...@free-electrons.com
---
arch/arm/boot/dts/at91rm9200.dtsi | 7 +++
1 file changed, 7 insertions(+)
diff --git a/arch/arm/boot/dts
Add node for the RTC available on the at91sam9n12.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
Acked-by: Boris Brezillon boris.brezil...@free-electrons.com
---
arch/arm/boot/dts/at91sam9n12.dtsi | 7 +++
1 file changed, 7 insertions(+)
diff --git a/arch/arm/boot
the 9x5 errata for the n12 rtc
Alexandre Belloni (6):
ARM: at91/dt: at91sam9n12: Add RTC node
ARM: at91/dt: rm9200: add RTC node
ARM: at91/dt: at91rm9200ek: enable RTC
ARM: at91/dt: add SRAM nodes
ARM: at91/dt: Add a dtsi for at91sam9xe
ARM: at91/dt: ethernut5: use at91sam9xe.dtsi
Enable the RTC on the at91rm9200ek.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
Acked-by: Boris Brezillon boris.brezil...@free-electrons.com
---
arch/arm/boot/dts/at91rm9200ek.dts | 4
1 file changed, 4 insertions(+)
diff --git a/arch/arm/boot/dts/at91rm9200ek.dts
review and ack them? Then they could go through the mfd tree.
--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
Until the driver is corrected to stop including mach/at91_ramc.h and using
mach/io.h, it won't compile in a ARCH_MULTIPLATFORM configuration.
Suggested-by: Arnd Bergmann a...@arndb.de
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
drivers/pcmcia/Kconfig | 1 +
1 file
Until the driver is corrected to stop using mach/at91isam9_smc.h, it won't
compile in a ARCH_MULTIPLATFORM configuration.
Suggested-by: Arnd Bergmann a...@arndb.de
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
drivers/ata/Kconfig | 1 +
1 file changed, 1 insertion
/linux/mfd/syscon/atmel-smc.h
--
1.9.1
--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo
On 13/01/2015 at 09:37:48 +0800, Bo Shen wrote :
Hi Alexandre,
On 01/13/2015 03:01 AM, Alexandre Belloni wrote:
+sram0: sram@002ff000 {
Why here is 002ff000, while not 0020?
+compatible = mmio-sram;
+reg = 0x0020 0x2000;
+};
+
I'll correct
, this set of boards are not the only exception. I will rephrase
the sentence as:
Note that some files are historical exceptions to this rule
(sama5d3[13456]ek.dts, usb_a9g20.dts or animeo_ip.dts for example).
Bye,
--
Nicolas Ferre
--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel
The SOC_AT91SAM9X5 option is going to be removed, only depend on ARCH_AT91 like
for the other drivers.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
sound/soc/atmel/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/atmel/Kconfig b
Move debug-macro.S from include/mach/ to include/debug where all other common
debug macros are.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
MAINTAINERS | 1 +
arch/arm/Kconfig.debug| 9
at91rm9200_dt_initialize() is doing the same as at91_dit_initialize(), use that
one instead.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/board-dt-rm9200.c | 2 +-
arch/arm/mach-at91/generic.h | 1 -
arch/arm/mach-at91/setup.c | 7
Now that rm9200 is only supported through DT, remove CONFIG_MACH_AT91RM9200_DT
and use CONFIG_SOC_AT91RM9200 instead.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/Kconfig | 3 ---
arch/arm/mach-at91/Makefile | 2 +-
2 files changed, 1 insertion
CONFIG_NEED_MACH_MEMORY_H is not set by any at91 platform, remove mach/memory.h
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/include/mach/memory.h | 26 --
1 file changed, 26 deletions(-)
delete mode 100644 arch/arm/mach
Since all rm9200 board files have been removed, there is no user of
at91rm9200_set_type() left. Remove it
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/generic.h | 1 -
arch/arm/mach-at91/setup.c | 11 ---
2 files changed, 12 deletions
Now that at91sam9 SoCs are only supported through DT, remove
CONFIG_MACH_AT91SAM9_DT and use CONFIG_SOC_AT91SAM9 instead.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/Kconfig | 5 -
arch/arm/mach-at91/Makefile | 2 +-
2 files changed, 1
Hi,
This patch set cleans a lot of remaining header, config options and functions
that are not used anymore since the switch to DT only.
Patch 5 is moving mach/debug-macro.S to include/debug/at91.S to prepare the
upcoming switch to multiplatform.
Alexandre Belloni (7):
ARM: at91: remove
The irq fixup from at91_sysirq_mask_rtc and at91_sysirq_mask_rtt is now handled
by aic_common_rtc_irq_fixup and aic_common_rtt_irq_fixup. Remove those useless
functions.
Also remove the now unused mach/at91_rtt.h header.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
/listinfo/linux-arm-kernel
--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at http
as a workaround the warning as
this is exactly what we need for our platform.
--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord
___
linux-arm-kernel mailing list
linux-arm-ker...@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
--
To unsubscribe from this list
The clock is enabled without being prepared, this leads to:
WARNING: CPU: 0 PID: 1 at drivers/clk/clk.c:889 __clk_enable+0x24/0xa8()
and a non working ethernet interface.
Use clk_prepare_enable() and clk_disable_unprepare() to handle the clock.
Signed-off-by: Alexandre Belloni alexandre.bell
Hi,
The whole series looks good to me, you can add my
Acked-by: Alexandre Belloni alexandre.bell...@free-electrons.com
On 06/01/2015 at 14:46:57 +0100, Boris Brezillon wrote :
Hello,
Here is a set of patches porting existing at91sam9rl erratum handling to
DT and adding new code to handle
Enforce REGMAP_MMIO selection as the driver needs it. Else, it will still
compile with some warning about X1, x2 or sr being used uninitialized.
Reported-by: fengguang...@intel.com
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
Daniel,
I think this should go through
The standby functions are now only used in pm.c, move them there.
Also, they are not inlined as a pointer to those functions is passed to the
cpuidle driver.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/pm.c | 89
mach/at91_ramc.h and mach/at91rm9200_mc.h are necessary anymore, remove them.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/Makefile | 3 -
arch/arm/mach-at91/include/mach/at91_ramc.h | 28 --
arch/arm/mach-at91
Use syscon/regmap to configure the smc. This allows to avoid using
at91sam9_smc.h and to compile the driver in a multiplatform configuration.
The driver will still not probe until the proper DT bindings are added.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
drivers
Hi,
This patch set finishes the clean up of the mach-at91 directory.
It fixed the remaining two drivers (at91_cf and pata_at91) so that they compile
in a multiplatform configuration.
Then it removes the uneeded headers.
Alexandre Belloni (9):
ARM: at91/pm: move the standby functions to pm.c
sam9_smc.c has no users anymore, remove it along with both sam9_smc.h and
mach/at91sam9_smc.h
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/Makefile| 2 -
arch/arm/mach-at91/include/mach/at91sam9_smc.h | 98
From: Boris Brezillon boris.brezil...@free-electrons.com
The at91rm9200 SoC embeds a Memory Controller block which is used to
configure several aspects of the platform:
- AHB/APB Bus behavior
- SDRAM Controller
- EBI (External Bus Interface) and SMC (Static Memory Controller) config
Those
Use the defines from atmel-mc.h instead of at91rm9200_sdramc.h
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/include/mach/at91_ramc.h | 2 +-
arch/arm/mach-at91/pm.c | 8
arch/arm/mach-at91/pm_suspend.S | 2
Use syscon/regmap to configure the smc part of the memory controller. This
allows to avoid using mach/at91rm9200_mc.h and mach/at91_ramc.h and to compile
the driver in a multiplatform configuration.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
drivers/pcmcia/Kconfig
the AT91_MEMCTRL_* defines are only used by the pm code, move them to pm.h
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/include/mach/at91_ramc.h | 4
arch/arm/mach-at91/pm.h | 4
2 files changed, 4 insertions(+), 4
The at91rm9200 memory controller is not simply an SDRAM controller. It also
controls the EBI (External Bus Interface), the SMC (Static Memory Controller)and
the Burst Flash Controller.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
Documentation/devicetree/bindings/arm
include/soc/at91/at91rm9200_sdramc.h is replaced by
include/linux/mfd/syscon/atmel-smc.h as this is actually a syscon device.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
include/soc/at91/at91rm9200_sdramc.h | 63
1 file changed
ATMEL_ST
bool
select CLKSRC_OF
+ select REGMAP_MMIO
Shouldn't we select MFD_SYSCON instead.
Indeed, I'll send v2
--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
--
To unsubscribe from this list: send the line
Enforce MFD_SYSCON selection as the driver needs it. Else, it will still
compile with some warning about X1, x2 or sr being used uninitialized.
Reported-by: fengguang...@intel.com
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
Daniel,
I think this should go through
-by: fengguang...@intel.com
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/Makefile | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/mach-at91/Makefile b/arch/arm/mach-at91/Makefile
index 06a4cefd33a0..4fa8b4541e64 100644
--- a/arch/arm/mach-at91
be there if
really needed)?
Regards,
--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at http
On 09/03/2015 at 17:23:37 +, Russell King - ARM Linux wrote :
On Wed, Mar 04, 2015 at 12:29:23PM +0100, Alexandre Belloni wrote:
As the bootloader may not properly configure the L2CC, enforce its
configuration
in the kernel.
Signed-off-by: Alexandre Belloni alexandre.bell...@free
and that it is impossible to stop.
It is actually quite convenient to also ensure that you can actually
wake up from suspend because that can obviously go wrong.
--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
--
To unsubscribe from this list: send the line
From: Boris BREZILLON boris.brezil...@free-electrons.com
Add new structures and functions to handle AT91 SoC detection.
[alexandre.bell...@free-electrons.com: reworked DBGU detection]
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
Signed-off-by: Boris BREZILLON
Use the soc detection infrastructure for at91sam9 initialization.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/at91sam9.c | 86 ---
arch/arm/mach-at91/soc.h | 30 +++
2 files changed, 94
Use the soc detection infrastructure for at91rm9200 initialization.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/at91rm9200.c | 34 --
arch/arm/mach-at91/soc.h| 3 +++
2 files changed, 23 insertions(+), 14
Use the soc detection infrastructure for sama5 initialization.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/sama5.c | 54 +-
arch/arm/mach-at91/soc.h | 14
2 files changed, 53 insertions
at91_ioremap_matrix and the at91_matrix.h header are not used anymore, remove
them.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/generic.h | 4
arch/arm/mach-at91/include/mach/at91_matrix.h | 23 ---
arch
The matrix headers are not used anymore, remove them.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
.../mach-at91/include/mach/at91sam9260_matrix.h| 80 ---
.../mach-at91/include/mach/at91sam9261_matrix.h| 64 -
.../mach-at91/include/mach
are lowercased
- Removed the unused compatible string
- Use name/subname to display the type and subtype
Alexandre Belloni (7):
ARM: at91: remove unused at91_ioremap_matrix and header
ARM: at91: remove unused _matrix.h headers
ARM: at91/dt: introduce atmel,chip-dbgu
ARM: at91: at91rm9200
The old setup is not used anymore, remove it
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/Makefile | 2 +-
arch/arm/mach-at91/setup.c | 320
2 files changed, 1 insertion(+), 321 deletions(-)
delete
-electrons.com: Added PCI dependency]
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
Signed-off-by: Arnd Bergmann a...@arndb.de
---
arch/arm/Kconfig | 1 -
arch/arm/mach-at91/Kconfig | 1 +
arch/arm/mach-at91/include/mach/io.h | 27
The DBGU is not a simple UART and we need to be able to distinguish it from the
other UARTs, in particular to get its address and check the chip id.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
Documentation/devicetree/bindings/serial/atmel-usart.txt | 3 ++-
arch
to select a particular
SoC, because we always get the default selection and the kernel
will build without any one of them being enabled.
Indeed, with multiplatform, the kernel will compile without any of those
being selected.
--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android
Following the switch to multiplatform, uncompress.h is not used anymore. Remove
it.
at91_dbgu.h is also not used anymore
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/include/mach/at91_dbgu.h | 63
arch/arm/mach-at91/include/mach
mach/cpu.h is not used anymore, remove it.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/include/mach/at91sam9_smc.h | 2 -
arch/arm/mach-at91/include/mach/cpu.h | 216 -
arch/arm/mach-at91/pm.c
hardware.h is now mostyl unused, move the remaining declarations to pm.c and
remove it.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/include/mach/hardware.h | 123 -
arch/arm/mach-at91/pm.c| 11
Switch AT91 to multiplatform as all SoCs are properly handled.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/Kconfig| 13 -
arch/arm/mach-at91/Kconfig | 117 +++-
arch/arm/mach-at91/Makefile | 2 +
3
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/configs/at91_dt_defconfig | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/arch/arm/configs/at91_dt_defconfig
b/arch/arm/configs/at91_dt_defconfig
index f2670f638e97..c944fb6e1ece 100644
MACB_CAPS_USRIO_DEFAULT_IS_MII))
+ config = MACB_BIT(MII);
+
+ if (bp-caps MACB_CAPS_USRIO_HAS_CLKEN)
+ config |= MACB_BIT(CLKEN);
+
+ macb_or_gem_writel(bp, USRIO, config);
err = register_netdev(dev);
if (err) {
--
Alexandre Belloni, Free Electrons
On 05/03/2015 at 20:41:33 +0100, Paul Bolle wrote :
On Thu, 2015-03-05 at 16:49 +0100, Alexandre Belloni wrote:
diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
index 1c2506f68122..d1d15985a4ec 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource
in patch 3 but I'm fine with the series
Reviewed-by: Alexandre Belloni alexandre.bell...@free-electrons.com
Best Regards,
Boris
Boris Brezillon (3):
net/macb: Update DT bindings documentation
ARM: at91/dt: fix macb compatible strings
net: macb: remove #if defined(CONFIG_ARCH_AT91
Remove the now useless SoC headers.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/include/mach/at91rm9200.h | 103 ---
arch/arm/mach-at91/include/mach/at91sam9260.h | 129 ---
arch/arm/mach-at91/include/mach
AT91 is now ready to switch to multiplatform. Do it and clean the remaining mach
includes.
Changes in v2:
- moved the bool for ARCH_AT91 to the top
- added a patch to remove the sama5d4 map_io
Alexandre Belloni (7):
ARM: at91: switch to multiplatform
ARM: at91: switch at91_dt_defconfig
All the peripheral remapped at io_map are taken care of by their respective
drivers.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/sama5.c | 33 -
1 file changed, 33 deletions(-)
diff --git a/arch/arm/mach-at91/sama5
On 05/03/2015 at 20:49:14 +0100, Paul Bolle wrote :
On Thu, 2015-03-05 at 16:49 +0100, Alexandre Belloni wrote:
--- a/drivers/power/reset/Kconfig
+++ b/drivers/power/reset/Kconfig
@@ -30,6 +30,13 @@ config POWER_RESET_AT91_RESET
This driver supports restart for Atmel AT91SAM9
1001 - 1100 of 10184 matches
Mail list logo