coreboot-kgpe-d16/src/soc/rockchip/rk3288
Julius Werner 015f0aea5d Add predefined __ROMSTAGE__ and __RAMSTAGE__ macros
This patch adds the macros __ROMSTAGE__ and __RAMSTAGE__ which get
predefined in their respective stages by make, so that we have one
specific macro for every stage. It also renames __BOOT_BLOCK__ and
__VER_STAGE__ to __BOOTBLOCK__ and __VERSTAGE__ for consistency.

This change is intended to provide finer control and clearer
communication of intent after we added a new (optional) stage that falls
under __PRE_RAM__, and will hopefully provide some robustness for the
future (we don't want to end up always checking for romstage with #if
defined(__PRE_RAM__) && !defined(__BOOT_BLOCK__) &&
!defined(__VER_STAGE__) && !defined(__YET_ANOTHER_PRERAM_STAGE__)). The
__PRE_RAM__ macro stays as it is since many features do in fact need to
differentiate on whether RAM is available. (Some also depend on whether
RAM is available at the end of a stage, in which case #if
!defined(__PRE_RAM__) || defined(__ROMSTAGE__) should now be
authoritative.)

It's unfeasable to change all existing occurences of __PRE_RAM__ that
would be better described with __ROMSTAGE__, so this patch only
demonstratively changes a few obvious ones in core code.

BUG=None
TEST=None (tested together with dependent patch).

Change-Id: I6a06d0f42c27a2feeb778a4acd35dd14bb53f744
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: a4ad042746c1d3a7a3bfda422d26e0d3b9f9ae42
Original-Change-Id: I6a1f25f7077328a8b5201a79b18fc4c2e22d0b06
Original-Signed-off-by: Julius Werner <jwerner@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/219172
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/9304
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Tested-by: build bot (Jenkins)
2015-04-06 19:15:37 +02:00
..
addressmap.h
bootblock.c pinky: Move some init to mainboard bootblock 2015-04-02 23:27:36 +02:00
cbmem.c rk3288: update romstage & mainboard 2015-03-24 15:25:31 +01:00
chip.h veyron: Fix file permissions 2015-03-24 15:25:35 +01:00
clock.c rk3288: set cpu frequency up to 1.8GHz 2015-04-04 15:05:12 +02:00
clock.h rk3288: set cpu frequency up to 1.8GHz 2015-04-04 15:05:12 +02:00
gpio.c veyron: Fix file permissions 2015-03-24 15:25:35 +01:00
gpio.h rk3288: Add GPIO() macro 2015-03-27 08:06:51 +01:00
grf.h rockchip: support pwm regulator 2015-04-02 21:16:45 +02:00
i2c.c rk3288: guarantee i2c low period more than 1.3us 2015-04-04 15:04:39 +02:00
i2c.h rockchip: support i2c clock setting 2015-04-02 21:16:28 +02:00
Kconfig rk3288/pinky: Move uart address to mainboard Kconfig 2015-04-02 23:27:09 +02:00
Makefile.inc rk3288: set cpu frequency up to 1.8GHz 2015-04-04 15:05:12 +02:00
media.c Add predefined __ROMSTAGE__ and __RAMSTAGE__ macros 2015-04-06 19:15:37 +02:00
monotonic_timer.c
pmu.h rk3288: add iomux operation 2015-03-24 15:24:31 +01:00
pwm.c rockchip: support pwm regulator 2015-04-02 21:16:45 +02:00
pwm.h rockchip: support pwm regulator 2015-04-02 21:16:45 +02:00
rk808.c rk3288: set cpu frequency up to 1.8GHz 2015-04-04 15:05:12 +02:00
rk808.h rk3288: set cpu frequency up to 1.8GHz 2015-04-04 15:05:12 +02:00
sdram.c veyron_pinky/rk3288: Use KHz, MHz and GHz constants 2015-04-04 15:02:24 +02:00
sdram.h rk3288: add ddr driver 2015-03-24 15:25:23 +01:00
soc.c rk3288: add cpu and chip 2015-03-24 15:25:27 +01:00
soc.h rk3288: add cpu and chip 2015-03-24 15:25:27 +01:00
spi.c veyron_pinky/rk3288: Use KHz, MHz and GHz constants 2015-04-04 15:02:24 +02:00
spi.h rk3288: Pass SPI bus speed in as parameter to init function 2015-04-04 04:03:18 +02:00
timer.c veyron_pinky/rk3288: Use KHz, MHz and GHz constants 2015-04-04 15:02:24 +02:00
timer.h veyron_pinky/rk3288: Use KHz, MHz and GHz constants 2015-04-04 15:02:24 +02:00
uart.c