[v3] Add basic address decoding support for Marvell 370/XP
Jason Cooper
jason at lakedaemon.net
Thu Aug 16 14:37:08 EDT 2012
On Thu, Aug 16, 2012 at 09:28:39AM -0400, Jason Cooper wrote:
> On Mon, Aug 06, 2012 at 11:42:16AM +0200, Thomas Petazzoni wrote:
> > Andrew, Jason, Grégory,
> >
> > Here is a small patch set that introduces basic support for address
> > decoding on Armada 370 and Armada XP. The aim of this basic support is
> > essentially to be able to configure a window to remap the BootROM,
> > which is needed to startup the secondary CPUs for the SMP support.
> >
> > As we had discussed already, the address decoding configuration is not
> > described in the Device Tree, it is for now hardcoded on a per-SoC
> > basis. We might later discuss how to extend this to the Device Tree.
> >
> > This patch set has five patches:
> >
> > (*) First patch reworks the addr-map code to use void __iomem * where
> > appropriate instead of u32, as per the suggestion of Arnd
> > Bergmann.
> >
> > (*) Second patch introducing PLAT_ORION_LEGACY, which allows the
> > Marvell 370/XP platforms to be part of PLAT_ORION, and therefore
> > re-use the existing address decoding code.
> >
> > (*) Third patch making a small change to an address decoding
> > structure so that we can define at runtime the virtual address of
> > the configuration registers. This is needed as on Armada 370/XP
> > the address decoding "controller" is declared in the Device Tree.
> >
> > (*) Fourth patch adding the 370/XP address decoding code itself. For
> > now, it only maps the BootROM on Armada XP.
> >
> > (*) Fifth path adding the necessary DT code to instantiate the
> > address decoding "controller".
> >
> > Changes since v2:
> > * Remove one more useless (void __iomem *) cast in the Armada 370/XP
> > addr-map.c file, as noticed by Arnd Bergmann.
> >
> > Changes since v1:
> > * Use void __iomem * in addr-map code. Suggested by Arnd Bergmann.
> > * Add Acked-by on patches 2->5 from Grégory Clément
>
> Whole series applied to:
>
> git://git.infradead.org/users/jcooper/linux.git boards-for-v3.7
I'm getting the following build error with orion_nand enabled:
CC drivers/mtd/nand/orion_nand.o
drivers/mtd/nand/orion_nand.c:24:27: fatal error: mach/hardware.h: No
such file or directory
compilation terminated.
I don't have time to look at it right now, hopefully I can look at it
tomorrow or this weekend.
thx,
Jason.
More information about the linux-arm-kernel
mailing list