| 2458716a | 30-Jan-2012 |
Linus Walleij <linus.walleij@linaro.org> |
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
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>
show more ...
|
| 1dc26801 | 09-Nov-2011 |
Linus Walleij <linus.walleij@linaro.org> |
integrator: enable Vpp and disable flash protection
This enables Vpp and disables the flash protection on the Integrator when starting U-Boot. The integrator/AP has double protection mechanisms: thi
integrator: enable Vpp and disable flash protection
This enables Vpp and disables the flash protection on the Integrator when starting U-Boot. The integrator/AP has double protection mechanisms: this one and the EBI protection bit (patch earlier), the Integrator/CP has only one line of protection in these registers.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
show more ...
|
| 0a20e534 | 09-Nov-2011 |
Linus Walleij <linus.walleij@linaro.org> |
integrator: add system controller header
Break out the AP system controller and CP "CP controller" registers into a header file, it gives better overview than hardcoding its values and other disturb
integrator: add system controller header
Break out the AP system controller and CP "CP controller" registers into a header file, it gives better overview than hardcoding its values and other disturbing practices.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
show more ...
|
| 701ed16e | 09-Nov-2011 |
Linus Walleij <linus.walleij@linaro.org> |
integrator: make flash writeable on boot
This reconfigures the EBI (External Bus Interface) on the integrator so that chip select 1, handling the flash memory, is set to writeable. Without this it i
integrator: make flash writeable on boot
This reconfigures the EBI (External Bus Interface) on the integrator so that chip select 1, handling the flash memory, is set to writeable. Without this it is not possible for U-Boot to access flash memory and it crashes on startup since CFI won't work properly.
Since this is the first time we use the EBI, we create a header file for its registers.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
show more ...
|
| 7c045d0b | 09-Nov-2011 |
Linus Walleij <linus.walleij@linaro.org> |
integrator: use io-accessors for board init
Casting around to *(volatile ulong *) doesn't look good, so include the <asm/io.h> macros and use good old readl() instead.
Signed-off-by: Linus Walleij
integrator: use io-accessors for board init
Casting around to *(volatile ulong *) doesn't look good, so include the <asm/io.h> macros and use good old readl() instead.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
show more ...
|