[PATCH 6/7] ARM: pxa3xx: add generic DT machine code
Arnd Bergmann
arnd at arndb.de
Wed Jul 25 13:34:50 EDT 2012
On Wednesday 25 July 2012, Daniel Mack wrote:
> Add a DT_MACHINE_START entry for PXA3xx machines and a auxdata table for
> some of the devices. This file can be extended to also support pxa2xx
> boards.
>
> Signed-off-by: Daniel Mack <zonque at gmail.com>
> ---
> arch/arm/mach-pxa/Kconfig | 12 +++++++++
> arch/arm/mach-pxa/Makefile | 3 +++
> arch/arm/mach-pxa/pxa-dt.c | 61 ++++++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 76 insertions(+)
The code looks good, but I wonder if it would be better to add it to the pxa3xx.c
file instead. One more comment:
> +static const char *pxa3xx_dt_board_compat[] __initdata = {
> + "mrvl,pxa3xx",
> +};
We should try to avoid wildcards in compatible properties but rather be
more specific. I would use separate values for pxa300/310/320/920/930/935
that you could all list here if they have the same auxdata lookup table.
Arnd
More information about the linux-arm-kernel
mailing list