[RFC PATCH 06/14] platform: add function to initialize OF match table

2010-08-18 Thread Lorenzo Pieralisi
. This patch adds a static inline function that should be used to initialize the match table member for platform drivers. When OF is not enabled, the function is empty and it is just optimized out. Signed-off-by: Lorenzo Pieralisi lorenzo.pieral...@arm.com --- include/linux/platform_device.h | 11

[RFC PATCH 05/14] ARM: vexpress: fix typo in addruart

2010-08-18 Thread Lorenzo Pieralisi
macro for Versatile Express board in order to return the proper uart physical address. Signed-off-by: Lorenzo Pieralisi lorenzo.pieral...@arm.com --- arch/arm/mach-vexpress/include/mach/debug-macro.S |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-vexpress

[RFC PATCH 04/14] ARM: r1 DT mach id init

2010-08-18 Thread Lorenzo Pieralisi
in the dtb stub to automatically generate and move the required DT machine id into r1 before jumping to kernel code. Signed-off-by: Lorenzo Pieralisi lorenzo.pieral...@arm.com --- arch/arm/boot/dt/dtb.S |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dt

[RFC PATCH 02/14] ARM: vexpress: fix clocks definition to comply with new framework

2010-08-18 Thread Lorenzo Pieralisi
errors. Signed-off-by: Lorenzo Pieralisi lorenzo.pieral...@arm.com --- arch/arm/mach-vexpress/include/mach/clkdev.h |2 +- arch/arm/mach-vexpress/v2m.c | 13 - 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-vexpress/include/mach/clkdev.h

[RFC PATCH 11/14] ARM: PMU: add device tree probing

2010-08-18 Thread Lorenzo Pieralisi
. This includes a match table and code to initialize the driver id from the respective device tree node compatible property. Signed-off-by: Lorenzo Pieralisi lorenzo.pieral...@arm.com --- arch/arm/include/asm/pmu.h |6 ++ arch/arm/kernel/Makefile |3 ++- arch/arm/kernel/pmu-of.c | 30

[RFC PATCH 12/14] ARM: vexpress: add board support for DT probing

2010-08-18 Thread Lorenzo Pieralisi
, compiled in accordingly depending on kernel configuration options. Clock look-up for the DT version is still work in progress waiting for a definitive clock binding spec so device names are not really DT compliant at the moment in the dts. Signed-off-by: Lorenzo Pieralisi lorenzo.pieral...@arm.com

[RFC PATCH 01/14] ARM: amba device memory allocation fix

2010-08-18 Thread Lorenzo Pieralisi
When instantiating amba devices dynamically from device tree nodes, the memory allocation should be carried out using the kzalloc function to make sure all the members are zero initialized. This patch replaces the kmalloc call with a kzalloc one. Signed-off-by: Lorenzo Pieralisi lorenzo.pieral

[RFC PATCH 00/14] Versatile Express device tree port

2010-08-18 Thread Lorenzo Pieralisi
especially concerning error codes are arguable and require thorough review. The whole patchset is a request for comments on code and methodology. Cheers. Lorenzo Pieralisi (14): ARM: amba device memory allocation fix ARM: vexpress: fix clocks definition to comply with new framework ARM: fix add

RE: Platform data with function pointers

2010-06-18 Thread Lorenzo Pieralisi
PM To: Lorenzo Pieralisi; devicetree-discuss; linux-arm-ker...@lists.infradead.org; Jeremy Kerr; Nicolas Pitre Subject: Re: Platform data with function pointers [cc'ing devicetree-discuss - this conversation should be kept on-list] Hi Lorenzo, On Mon, Jun 14, 2010 at 4:42 AM, Lorenzo Pieralisi

RE: Platform data with function pointers

2010-06-18 Thread Lorenzo Pieralisi
for your feedback, Lorenzo -Original Message- From: Russell King - ARM Linux [mailto:li...@arm.linux.org.uk] Sent: Friday, June 18, 2010 2:13 PM To: Lorenzo Pieralisi Cc: 'Grant Likely'; devicetree-discuss; linux-arm-ker...@lists.infradead.org; Jeremy Kerr; Nicolas Pitre Subject: Re: Platform

<    1   2   3