switch-coreboot/util/sconfig
Aaron Durbin 6b37867b3e UPSTREAM: lib: provide clearer devicetree semantics
The devicetree data structures have been available in more than just
ramstage and romstage. In order to provide clearer and consistent
semantics two new macros are provided:

1. DEVTREE_EARLY which is true when !ENV_RAMSTAGE
2. DEVTREE_CONST as a replacment for ROMSTAGE_CONST

The ROMSTAGE_CONST attribute is used in the source code to mark
the devicetree data structures as const in early stages even though
it's not just romstage. Therefore, rename the attribute to
DEVTREE_CONST as that's the actual usage. The only place where the
usage was not devicetree related is console_loglevel, but the same
name was used for consistency. Any stage that is not ramstage has
the const C attribute applied when DEVTREE_CONST is used.

BUG=none
BRANCH=none
TEST=none

Change-Id: If0409e8e9d6a203254a9f9b749de5cab70dfc842
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: e4d7abc0d4
Original-Change-Id: Ibd51c2628dc8f68e0896974f7e4e7c8588d333ed
Original-Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Original-Reviewed-on: https://review.coreboot.org/19333
Original-Tested-by: build bot (Jenkins)
Original-Reviewed-by: Philippe Mathieu-Daud <philippe.mathieu.daude@gmail.com>
Original-Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://chromium-review.googlesource.com/488047
2017-04-26 13:36:55 -07:00
..
lex.yy.c_shipped UPSTREAM: sconfig: Add a new "SPI" device type 2017-02-18 03:10:55 -08:00
main.c UPSTREAM: lib: provide clearer devicetree semantics 2017-04-26 13:36:55 -07:00
Makefile.inc UPSTREAM: util/blobtool & sconfig: Update GENPARSER Kconfig question 2017-04-18 13:19:01 -07:00
sconfig.h UPSTREAM: sconfig: Reformat C code 2016-08-13 20:28:32 -07:00
sconfig.l UPSTREAM: sconfig: Add a new "SPI" device type 2017-02-18 03:10:55 -08:00
sconfig.tab.c_shipped UPSTREAM: sconfig: Add a new "SPI" device type 2017-02-18 03:10:55 -08:00
sconfig.tab.h_shipped UPSTREAM: sconfig: Add a new "SPI" device type 2017-02-18 03:10:55 -08:00
sconfig.y UPSTREAM: sconfig: Add a new "SPI" device type 2017-02-18 03:10:55 -08:00