Split at91_pm_init() in three variants that are called by the respective SoCs
.init_machine. This allows to remove the of_machine_is_compatible() calls and
move at91_pm_init() out of arch_initcall() which is required for multiplatform.
Signed-off-by: Alexandre Belloni alexandre.bell...@free
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
Move at91rm9200_idle() along with at91sam9_idle() in clk/at91/pmc.c.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
Acked-by: Michael Turquette mturque...@linaro.org
---
arch/arm/mach-at91/at91rm9200.c | 9 -
arch/arm/mach-at91/generic.h| 1 +
drivers/clk/at91
Check UDP and UHP on sam9x5, sam9n12 and the sama5 series.
Check UHP on the sam9g45.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/pm.c | 9 ++---
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/arch/arm/mach-at91/pm.c b/arch/arm
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
to of_machine_is_compatible()
Alexandre Belloni (8):
ARM: at91: pm: rework cpu detection
ARM: at91: pm: use the mmio-sram pool to access SRAM
ARM: at91: pm: add UDP and UHP checks to newer SoCs
ARM: at91: pm: prepare for multiplatform
ARM: at91: remove useless map_io
ARM: at91: sama5d4: remove useless call
mach/system_rev.h is not used, remove it.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/include/mach/system_rev.h | 27 ---
1 file changed, 27 deletions(-)
delete mode 100644 arch/arm/mach-at91/include/mach/system_rev.h
From: Arnd Bergmann a...@arndb.de
The common board-dt-sama5 file no longer contains any shared
code, so we can just move the machine descriptors into the
per-soc files for further cleanup.
Signed-off-by: Arnd Bergmann a...@arndb.de
Signed-off-by: Alexandre Belloni alexandre.bell...@free
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
The SOC_AT91SAM9263 is being removed, stop using it.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/pm_slowclock.S | 9 -
1 file changed, 9 deletions(-)
diff --git a/arch/arm/mach-at91/pm_slowclock.S
b/arch/arm/mach-at91/pm_slowclock.S
.
There is also one fix regarding arm_pm_idle for sam9n12 and sam9g45.
Alexandre Belloni (15):
ARM: at91:remove unused mach/system_rev.h
ARM: at91: fix sam9n12 and sam9x5 arm_pm_idle
ARM: at91: sam9: set arm_pm_idle from sam9_dt_device_init
ARM: at91: remove unused at91_ioremap_matrix and header
From: Arnd Bergmann a...@arndb.de
There is only one board file for the rm9200 soc file left, so
it makes sense to merge the two files into one, which allows
us further cleanup.
Signed-off-by: Arnd Bergmann a...@arndb.de
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
Move the ramc initialization to pm.c as it is the only user left. This allows to
get rid of at91_dt_initialize() and setup.c
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/Makefile | 2 --
arch/arm/mach-at91/at91rm9200.c | 1 -
arch/arm/mach
The old initialization is not used anymore, remove it.
Also remove now unused cpu.h and at91_dbgu.h
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/generic.h | 4 -
arch/arm/mach-at91/include/mach/at91_dbgu.h| 63 --
arch
Removed useless .map_io for sama5d3 and .init_early by moving
at91_dt_initialize() to sama5*_dt_device_init()
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/sama5d3.c | 9 ++---
arch/arm/mach-at91/sama5d4.c | 3 ++-
2 files changed, 4 insertions
and so
cannot contain non-const variables.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/at91rm9200.c | 2 +-
arch/arm/mach-at91/at91sam9.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-at91/at91rm9200.c b/arch/arm
As all sam9 SoCs are setting arm_pm_idle to at91sam9_idle(), do it from
sam9_dt_device_init().
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
Suggested-by: Arnd Bergmann a...@arndb.de
---
arch/arm/mach-at91/at91sam9260.c | 6 --
arch/arm/mach-at91/at91sam9261.c | 6
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
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 | 114 +++-
arch/arm/mach-at91/Makefile | 2 +
3
Only use SOC_AT91SAM9 for all the at91sam9 SoCs.
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.bell...@free-electrons.com
---
arch/arm/configs/at91_dt_defconfig | 10
at91_boot_soc is not used by any SoC, remove its usage. Also remove all the now
empty SoC files.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/Makefile| 7
arch/arm/mach-at91/at91rm9200.c| 17 +
arch/arm/mach-at91
Remove useless .map_io and .init_early by moving at91_dt_initialize() to
sam9*_dt_device_init(). Also rename board-dt-sam9.c to at91sam9.c
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/Makefile| 4 +---
arch/arm/mach-at91
In order to remove SOC_SAM9xxx options, stop using HAVE_AT91_DBGUx.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/Kconfig.debug | 6 +++---
arch/arm/mach-at91/Kconfig | 19 ---
2 files changed, 3 insertions(+), 22 deletions(-)
diff --git
sam9n12 and sam9x5 don't set arm_pm_idle because of an oversight, fix that.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
Suggested-by: Arnd Bergmann a...@arndb.de
---
arch/arm/mach-at91/at91sam9n12.c | 5 +
arch/arm/mach-at91/at91sam9x5.c | 6 ++
2 files changed
The SoC includes are now useless.
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
Following the switch to multiplatform, uncompress.h is not used anymore. Remove
it.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/include/mach/uncompress.h | 218 ---
1 file changed, 218 deletions(-)
delete mode 100644 arch
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 811e72bbe642..2f82bc5bacec 100644
This patch set switches all AT91 SoCs to multiplatform then proceed to further
cleanup.
Alexandre Belloni (5):
ARM: at91: switch to multiplatform
ARM: at91: switch at91_dt_defconfig to multiplatform
ARM: at91: remove unused uncompress.h
ARM: at91: sama5d4: copy defines to SoC file
ARM
Copy the defines to the SoC file to remove the need for the header.
The header has to stay for now because on mach/uncompress.h
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/sama5d4.c | 12 +++-
1 file changed, 11 insertions(+), 1 deletion
Remove useless .map_io and .init_early by moving at91_dt_initialize() to
rm9200_dt_device_init().
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/at91rm9200.c | 15 ++-
1 file changed, 2 insertions(+), 13 deletions(-)
diff --git a/arch
Hi Lee,
On 19/01/2015 at 09:42:24 +, Lee Jones wrote :
On Mon, 12 Jan 2015, Alexandre Belloni wrote:
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
On 20/01/2015 at 11:34:53 +0100, Nicolas Ferre wrote :
Le 15/01/2015 22:58, Alexandre Belloni a écrit :
In order to remove SOC_SAM9xxx options, stop using HAVE_AT91_DBGUx.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/Kconfig.debug | 6
, a watchdog and is also the reset
controller. I think that the DT guidelines requires that the DT
describes the hardware and so use one compatible for that IP;
--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
--
To unsubscribe from this list
On 21/01/2015 at 17:29:42 +0100, Nicolas Ferre wrote :
Le 15/01/2015 22:58, Alexandre Belloni a écrit :
The old initialization is not used anymore, remove it.
Also remove now unused cpu.h and at91_dbgu.h
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch
source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
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
There is no point in calling suspend/resume for unused
clocksources.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
kernel/time/clocksource.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c
in v2:
- removed the check on enable in timekeeping.c to ensure all clocksources are
going through clocksource_enable
- rework clocksource_enable to set CLOCK_SOURCE_USED when enable is successful
if present
Alexandre Belloni (2):
clocksource: track usage
clocksource: don't suspend
Track whether the clocksource is enabled or disabled.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
include/linux/clocksource.h | 4
kernel/time/clocksource.c | 30 ++
kernel/time/timekeeping.c | 8 +++-
3 files changed, 37
or Daniel decide :) But I'm open to that.
--
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
Hi,
On 16/01/2015 at 11:05:46 -0800, John Stultz wrote :
On Fri, Jan 16, 2015 at 8:57 AM, Alexandre Belloni
alexandre.bell...@free-electrons.com wrote:
Track whether the clocksource is enabled or disabled.
So.. this commit message needs work. Why do we care to track the
clocksource
There is no point in calling suspend/resume for unused
clockevents as they are already stopped and disabled.
Furthermore, it can take some time to wait for some IPs to stop counting.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
Reported-by: Sylvain Rochet sylvain.roc
.
Regards,
Alexandre Belloni (2):
clocksource: track usage
clocksource: don't suspend/resume when unused
include/linux/clocksource.h | 4
kernel/time/clocksource.c | 30 --
kernel/time/timekeeping.c | 8 +++-
3 files changed, 35 insertions(+), 7
Track whether the clocksource is enabled or disabled.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
include/linux/clocksource.h | 4
kernel/time/clocksource.c | 26 ++
kernel/time/timekeeping.c | 8 +++-
3 files changed, 33
There is no point in calling suspend/resume for unused
clocksources.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
kernel/time/clocksource.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c
of the
ramc_ids in mach-at91 but I'm not sure how yet.
Maybe we can do what you suggest after
http://lists.infradead.org/pipermail/linux-arm-kernel/2015-January/316771.html
Because then, the ram detection is local to pm.c
--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android
On 16/01/2015 at 11:23:32 +0100, Thomas Gleixner wrote :
On Fri, 16 Jan 2015, Alexandre Belloni wrote:
There is no point in calling suspend/resume for unused
clocksources.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
kernel/time/clocksource.c | 4
() in
timekeeper.c, did I miss some?
--
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
On 16/01/2015 at 11:59:33 +0100, Daniel Lezcano wrote :
On 01/16/2015 11:48 AM, Alexandre Belloni wrote:
Hi,
On 16/01/2015 at 11:39:16 +0100, Daniel Lezcano wrote :
Isn't that already the case?
Right now, if you call clocksource_suspend, it doesn't matter whether
the clocksource has
On 16/01/2015 at 11:23:24 +, Russell King - ARM Linux wrote :
On Fri, Jan 16, 2015 at 11:35:30AM +0100, Alexandre Belloni wrote:
On 16/01/2015 at 11:23:32 +0100, Thomas Gleixner wrote :
On Fri, 16 Jan 2015, Alexandre Belloni wrote:
There is no point in calling suspend/resume
On 16/01/2015 at 12:07:42 +0100, Alexandre Belloni wrote :
On 16/01/2015 at 11:59:33 +0100, Daniel Lezcano wrote :
On 01/16/2015 11:48 AM, Alexandre Belloni wrote:
Hi,
On 16/01/2015 at 11:39:16 +0100, Daniel Lezcano wrote :
Isn't that already the case?
Right now, if you call
I believe it is better if every SRAM user selects SRAM so that when you
don't have any of those, it is not automatically selected and it reduces
the kernel size.
Regards,
--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
From: Boris Brezillon boris.brezil...@free-electrons.com
Three compatible strings have been added to the at91_udc driver.
Update the documentation accordingly.
Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com
---
Documentation/devicetree/bindings/usb/atmel-usb.txt | 6 +-
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 info at http://vger.kernel.org/majordomo-info.html
From: Boris Brezillon boris.brezil...@free-electrons.com
The Matrix registers are provided to configure internal bus behavior on
at91 SoCs.
Some registers might be accessed by several drivers (e.g. to configure
external memory bus timings), hence we declare this register set as a
syscon device.
From: Boris Brezillon boris.brezil...@free-electrons.com
Allocate udc structure instead of relying on the statically declared
object.
Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com
---
drivers/usb/gadget/udc/at91_udc.c | 96 +++
1 file
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: send the line unsubscribe linux-kernel in
the body
From: Boris Brezillon boris.brezil...@free-electrons.com
Now that at91 system clocks forward set_rate request to their parent we
can remove the uclk clock and directly call clk_set_rate on fclk.
Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com
---
From: Boris Brezillon boris.brezil...@free-electrons.com
The at91_udc driver request 2 clocks, and thus need them to be defined in
the device tree.
Document the clocks and clock-names properties so that everybody use the
correct names.
Signed-off-by: Boris Brezillon
From: Boris Brezillon boris.brezil...@free-electrons.com
Since non-DT board support has been removed from the at91 architecture we
can safely remove non-DT handling code.
Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com
---
drivers/usb/gadget/udc/Kconfig| 1 +
From: Boris Brezillon boris.brezil...@free-electrons.com
AT91 SoCs have a memory range reserved for internal bus configuration.
Expose those registers so that drivers can make use of the matrix syscon
declared in at91 DTs.
Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com
From: Boris Brezillon boris.brezil...@free-electrons.com
Make use of devm_ functions to simplify probe and remove code.
Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com
---
drivers/usb/gadget/udc/at91_udc.c | 116 +-
1 file changed, 39
From: Boris Brezillon boris.brezil...@free-electrons.com
Atmel AT91 SoCs have a memory range reserved for SMC (Static Memory
Controller) configuration.
Expose those registers so that drivers can make use of the smc syscon
declared in at91 DTs.
Signed-off-by: Boris Brezillon
From: Boris Brezillon boris.brezil...@free-electrons.com
The SMC registers are used to configure Atmel EBI (External Bus Interface)
to interface with standard memory devices (NAND, NOR, SRAM or specialized
devices like FPGAs).
Declare this memory region as a syscon, so that different drivers can
From: Boris Brezillon boris.brezil...@free-electrons.com
The driver is requesting clock by their global name (those declared in the
clk_lookup list), but this only works with !CCF kernels.
Now that all SoCs have moved to CCF, fix the driver to use local names
(hclk and pclk).
Signed-off-by:
From: Boris Brezillon boris.brezil...@free-electrons.com
cpu_is_at91xxx are a set of macros defined in mach/cpu.h and are here used
to detect the SoC we are booting on.
Use compatible string + a caps structure to replace those cpu_is_xxx tests.
Remove all mach and asm headers (which are now
Hi Felipe,
The following series replace the previous series sent by Boris named:
- [PATCH v5 00/11] memory: add Atmel EBI (External Bus Interface) driver
- [PATCH 00/11] usb: gadget: at91_udc: Rework for multi-platform support
The patches I left out are less urgent and will be resent later,
://www.linaro.org/linaro-blog/ Blog
--
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
Hi,
On 14/01/2015 at 16:21:50 +, Russell King - ARM Linux wrote :
On Wed, Jan 14, 2015 at 04:46:03PM +0100, Alexandre Belloni wrote:
Hi,
This patch set hasn't moved since while. We actually need patch 4 to
properly configure prefetch on sama5d4. What would be needed to come
On 14/01/2015 at 11:38:12 -0600, Felipe Balbi wrote :
On Wed, Jan 14, 2015 at 05:22:00PM +0100, Alexandre Belloni wrote:
From: Boris Brezillon boris.brezil...@free-electrons.com
Since non-DT board support has been removed from the at91 architecture we
can safely remove non-DT handling
On 22/01/2015 at 11:22:21 +0100, Nicolas Ferre wrote :
Le 15/01/2015 22:58, Alexandre Belloni a écrit :
Only use SOC_AT91SAM9 for all the at91sam9 SoCs.
It enables HAVE_AT91_SMD and HAVE_AT91_UTMI for all the sam9 SoCs but this
only
represents 96 bytes of uncompressed kernel code
--
1.7.9.5
--
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://vger.kernel.org
state)
--
1.7.9.5
--
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 12/02/2015 at 10:51:26 +0800, Wenyou Yang wrote :
Add the WFI instruction to make the cpu to the idle state.
In the meanwhile, disable the processor's clock.
Signed-off-by: Wenyou Yang wenyou.y...@atmel.com
Acked-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm
failed to allocate sram for slow_clock, we already fired a message
saying that PM is not available at all in at91_pm_sram_init().
That is done in patch 10/13.
--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
--
To unsubscribe from
just
before so it will necessarily be found in the list.
We need to reintroduce a check for slow_clock != NULL before fncpy()
since it is moved out of its original if block.
--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
On 20/01/2015 at 16:16:58 +0800, Wenyou Yang wrote :
Because the CONFIG_AT91_SLOW_CLOCK will be removed
to simply the PM config, so move select SRAM.
Signed-off-by: Wenyou Yang wenyou.y...@atmel.com
Acked-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91
solution to that is to match the pmc compatible in pm.c
--
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
doesn't
switch to the slow clock, and the main oscillator doesn't
turn off as well.
Signed-off-by: Wenyou Yang wenyou.y...@atmel.com
That looks quite better, thanks.
Acked-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/mach-at91/pm.c | 81
);
at91_sam9x5_pm_init();
}
--
1.7.9.5
--
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
that series submitted recently:
https://lkml.org/lkml/2014/11/26/575
--
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
A mach/ header is included but never used. Simply remove it.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
sound/soc/atmel/sam9g20_wm8731.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/sound/soc/atmel/sam9g20_wm8731.c b/sound/soc/atmel/sam9g20_wm8731.c
index
Atmel based boards can now only be used with device tree. Drop non DT
initialization.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
sound/soc/atmel/sam9g20_wm8731.c | 68 ++--
1 file changed, 31 insertions(+), 37 deletions(-)
diff
Hi Bo,
On 06/01/2015 at 18:14:12 +0800, Bo Shen wrote :
#include asm/mach-types.h
Btw, do you consider to remove this also?
I just sent a patch for that. Feel free to squash both.
-#include mach/hardware.h
#include ../codecs/wm8731.h
#include atmel-pcm.h
--
Alexandre
There is now only on defconfig for the at91rm9200 and at91sam9. Add ethernet
support for the rm9200.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
arch/arm/configs/at91_dt_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/configs/at91_dt_defconfig
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 | 77
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
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
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 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
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 | 22 +-
2 files changed, 10 insertions
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
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
This patch sets cleans up the system timer driver.
The main goal is to get rid of the mach/ headers dependency. At the same time,
it introduces proper probing and locking (using a regmap) for the watchdog
driver.
Alexandre Belloni (8):
ARM: at91/dt: declare atmel,at91rm9200-st as a syscon
Hi,
On 06/01/2015 at 12:00:49 +, Mark Brown wrote :
On Tue, Jan 06, 2015 at 12:14:32PM +0100, Alexandre Belloni wrote:
Atmel based boards can now only be used with device tree. Drop non DT
initialization.
This doesn't apply against current code, please check and resend.
It should
On 09/01/2015 at 16:39:21 -0800, Guenter Roeck wrote :
On 01/09/2015 01:51 AM, Alexandre Belloni wrote:
/*
. */
@@ -204,6 +201,7 @@ static struct miscdevice at91wdt_miscdev = {
static int at91wdt_probe(struct
cpu_is_at91* are not used in any driver outside mach-at91. Remove those useless
definitions.
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
Hans-Christian,
If you want, I guess that one could go through the at91 tree. Unless you have
more material and you want to do
more than once.
--
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://vger.kernel.org
Hi Dave,
This is actually a fix for 3.19, can you take it for the next rc ?
Thanks!
On 08/01/2015 at 11:55:58 +0100, Nicolas Ferre wrote :
Le 07/01/2015 23:59, Alexandre Belloni a écrit :
The clock is enabled without being prepared, this leads to:
WARNING: CPU: 0 PID: 1 at drivers/clk
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
Acked-by: Boris Brezillon boris.brezil...@free-electrons.com
---
arch/arm/mach-at91/at91rm9200.c | 11
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
Acked-by: Boris Brezillon boris.brezil...@free-electrons.com
---
arch/arm/mach-at91/include/mach/at91_st.h | 61
901 - 1000 of 10184 matches
Mail list logo