]> git.sur5r.net Git - u-boot/commit
integrator: rewrite the AP PCI driver
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 30 Jan 2012 13:49:34 +0000 (13:49 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Mon, 27 Feb 2012 20:19:24 +0000 (21:19 +0100)
commit2458716a5b2269cff89f4b41afac16ac84bf6fb2
treeb4b55ca578f143cd9377544432ffb252bee8a8c9
parent4ae6a91a86279c78c773f570057919dffecee484
integrator: rewrite the AP PCI driver

The PCI support for the Integrator AP has apparently never
been finished and I strongly suspect that it has never worked,
so let's fix it. This is a list of the more or less
un-splittable changes done in this driver rewrite:

- Replace the register definitions stashed into the config
  file (!) with a copy if the register file from the Linux
  kernels arch/arm/include/asm/hardware/pci_v3.h

- Delete the unreadable gigantic macros that perform the
  config accesses and replace them with copyedited code from
  Linux arch/arm/mach-integrator/pci_v3.c

- Rewrite the rest of the setup code to use the
  v3_[read|write][lwb]() accessors.

- Enable PCI by default in the AP board configuration.

- Fix checkpatch warnings and make code more conformant.

Tested-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
board/armltd/integrator/pci.c
board/armltd/integrator/pci_v3.h [new file with mode: 0644]
include/configs/integratorap.h