coreboot/src/mainboard
Stefan Reinauer 9fe4d797a3 coreboot used to have two different "APIs" for memory accesses:
read32(unsigned long addr) vs readl(void *addr)
and
write32(unsigned long addr, uint32_t value) vs writel(uint32_t value, void *addr)

read32 was only available in __PRE_RAM__ stage, while readl was used in stage2.
Some unclean implementations then made readl available to __PRE_RAM__ too which
results in really messy includes and code.

This patch fixes all code to use the read32/write32 variant, so that we can
remove readl/writel in another patch.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5022 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2010-01-16 17:53:38 +00:00
..
a-trend * Explicitly add __PRE_RAM__ where it should be added. 2010-01-05 13:03:02 +00:00
abit * Explicitly add __PRE_RAM__ where it should be added. 2010-01-05 13:03:02 +00:00
advantech * Explicitly add __PRE_RAM__ where it should be added. 2010-01-05 13:03:02 +00:00
amd coreboot used to have two different "APIs" for memory accesses: 2010-01-16 17:53:38 +00:00
arima Remove drivers/pci/onboard. The only purpose was for option ROMs, which are 2009-11-06 23:42:26 +00:00
artecgroup coreboot used to have two different "APIs" for memory accesses: 2010-01-16 17:53:38 +00:00
asi * Explicitly add __PRE_RAM__ where it should be added. 2010-01-05 13:03:02 +00:00
asus - Let AMD CAR code pick the right XIP area 2010-01-05 17:35:44 +00:00
axus * Explicitly add __PRE_RAM__ where it should be added. 2010-01-05 13:03:02 +00:00
azza * Explicitly add __PRE_RAM__ where it should be added. 2010-01-05 13:03:02 +00:00
bcom * Explicitly add __PRE_RAM__ where it should be added. 2010-01-05 13:03:02 +00:00
biostar * Explicitly add __PRE_RAM__ where it should be added. 2010-01-05 13:03:02 +00:00
broadcom Make newconfig and kconfig agree on MAINBOARD_PCI_SUBSYSTEM_{VENDOR,DEVICE}_ID 2009-11-27 11:03:20 +00:00
compaq * Explicitly add __PRE_RAM__ where it should be added. 2010-01-05 13:03:02 +00:00
dell - Makefile.romccboard.inc supports tinybootblock romcc boards, too. 2010-01-08 11:26:02 +00:00
digitallogic coreboot used to have two different "APIs" for memory accesses: 2010-01-16 17:53:38 +00:00
eaglelion * Explicitly add __PRE_RAM__ where it should be added. 2010-01-05 13:03:02 +00:00
emulation Make qemu use the udelay function in src/pc80/udelay_io.c 2010-01-11 09:05:52 +00:00
gigabyte * Explicitly add __PRE_RAM__ where it should be added. 2010-01-05 13:03:02 +00:00
hp * Explicitly add __PRE_RAM__ where it should be added. 2010-01-05 13:03:02 +00:00
ibm Remove drivers/pci/onboard. The only purpose was for option ROMs, which are 2009-11-06 23:42:26 +00:00
iei coreboot used to have two different "APIs" for memory accesses: 2010-01-16 17:53:38 +00:00
intel coreboot used to have two different "APIs" for memory accesses: 2010-01-16 17:53:38 +00:00
iwill Make newconfig and kconfig agree on MAINBOARD_PCI_SUBSYSTEM_{VENDOR,DEVICE}_ID 2009-11-27 11:03:20 +00:00
jetway * Explicitly add __PRE_RAM__ where it should be added. 2010-01-05 13:03:02 +00:00
kontron * drop reset files from 945 mainboards (and use southbridge specific reset) 2010-01-16 16:35:38 +00:00
lippert coreboot used to have two different "APIs" for memory accesses: 2010-01-16 17:53:38 +00:00
mitac * Explicitly add __PRE_RAM__ where it should be added. 2010-01-05 13:03:02 +00:00
msi * Explicitly add __PRE_RAM__ where it should be added. 2010-01-05 13:03:02 +00:00
nec * Explicitly add __PRE_RAM__ where it should be added. 2010-01-05 13:03:02 +00:00
newisys Make newconfig and kconfig agree on MAINBOARD_PCI_SUBSYSTEM_{VENDOR,DEVICE}_ID 2009-11-27 11:03:20 +00:00
nvidia Eliminate special case id.inc/id.lds in favor of a configuration variable ID_SECTION_OFFSET 2009-11-27 16:55:13 +00:00
olpc * Explicitly add __PRE_RAM__ where it should be added. 2010-01-05 13:03:02 +00:00
pcengines coreboot used to have two different "APIs" for memory accesses: 2010-01-16 17:53:38 +00:00
rca * Explicitly add __PRE_RAM__ where it should be added. 2010-01-05 13:03:02 +00:00
soyo * Explicitly add __PRE_RAM__ where it should be added. 2010-01-05 13:03:02 +00:00
sunw Eliminate special case id.inc/id.lds in favor of a configuration variable ID_SECTION_OFFSET 2009-11-27 16:55:13 +00:00
supermicro Kconfig builds all boards now. 2010-01-06 09:14:08 +00:00
technexion Fix technexion tim5690 build failure - REALMODE option required for x86.c mainboard function to be built. 2009-12-23 22:16:18 +00:00
technologic * Explicitly add __PRE_RAM__ where it should be added. 2010-01-05 13:03:02 +00:00
televideo * Explicitly add __PRE_RAM__ where it should be added. 2010-01-05 13:03:02 +00:00
thomson * Explicitly add __PRE_RAM__ where it should be added. 2010-01-05 13:03:02 +00:00
tyan Kconfig builds all boards now. 2010-01-06 09:14:08 +00:00
via - Makefile.romccboard.inc supports tinybootblock romcc boards, too. 2010-01-08 11:26:02 +00:00
Kconfig Trivial fixes for kconfig. They fix all non-fam10 build failures. 2009-12-02 21:11:12 +00:00
Makefile.k8_CAR.inc Fix some builds with Kconfig. 2009-10-28 18:57:06 +00:00
Makefile.k8_ck804.inc Eliminate special case id.inc/id.lds in favor of a configuration variable ID_SECTION_OFFSET 2009-11-27 16:55:13 +00:00
Makefile.romccboard.inc - Makefile.romccboard.inc supports tinybootblock romcc boards, too. 2010-01-08 11:26:02 +00:00