coreboot/src/mainboard
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
..
a-trend UPSTREAM: src/mainboard/a-trend - emulation: Add space around operators 2016-09-22 08:54:57 -07:00
aaeon UPSTREAM: AMD geode: Avoid conflicting main() declaration 2017-03-08 05:13:00 -08:00
abit UPSTREAM: src/mainboard/a-trend - emulation: Add space around operators 2016-09-22 08:54:57 -07:00
adi UPSTREAM: mainboards: Dont select POST_IO 2017-03-22 10:08:23 -07:00
adlink kconfig: automatically include mainboards 2015-04-18 08:31:08 +02:00
advansus UPSTREAM: src/amd: Add common definition of AMD ACPI MMIO address 2017-01-09 23:46:41 -08:00
amd UPSTREAM: lib: provide clearer devicetree semantics 2017-04-26 13:36:55 -07:00
aopen UPSTREAM: aopen/dxplplusu: Switch to 2MiB flash 2017-01-13 18:41:57 -08:00
apple UPSTREAM: nb/intel/i945: Move INTEL_EDID 2017-04-10 14:28:35 -07:00
artecgroup UPSTREAM: AMD geode: Avoid conflicting main() declaration 2017-03-08 05:13:00 -08:00
asrock UPSTREAM: nb/amdk8/(pre_)f.h: Don't declare global variable in header 2017-04-12 05:34:21 -07:00
asus UPSTREAM: mb/asus/kgpe-d16: Enable TPM when selected in Kconfig 2017-04-21 06:03:51 -07:00
avalue UPSTREAM: src/amd: Add common definition of AMD ACPI MMIO address 2017-01-09 23:46:41 -08:00
azza UPSTREAM: src/mainboard/a-trend - emulation: Add space around operators 2016-09-22 08:54:57 -07:00
bachmann UPSTREAM: AMD geode: Avoid conflicting main() declaration 2017-03-08 05:13:00 -08:00
bap UPSTREAM: bap/ode_e20XX: Switch away from AGESA_LEGACY 2017-04-03 11:48:59 -07:00
bcom UPSTREAM: southbridge/via/vt8237r: Get rid of #include early_smbus.c 2017-04-18 13:19:00 -07:00
bifferos rdc/r8610: Move to src/soc 2016-05-05 20:08:58 +02:00
biostar UPSTREAM: AGESA: Introduce AGESA_LEGACY and its counterpart 2017-03-30 05:29:58 -07:00
broadcom UPSTREAM: nb/amdk8/(pre_)f.h: Don't declare global variable in header 2017-04-12 05:34:21 -07:00
compaq UPSTREAM: src/mainboard/a-trend - emulation: Add space around operators 2016-09-22 08:54:57 -07:00
cubietech UPSTREAM: Remove non-ascii & unprintable characters 2016-08-05 11:45:20 -07:00
digitallogic UPSTREAM: AMD geode: Avoid conflicting main() declaration 2017-03-08 05:13:00 -08:00
dmp UPSTREAM: dmp/vortex86ex: Drop excessive include 2016-06-21 17:13:29 -07:00
ecs UPSTREAM: mainboard/*/*/irq_tables.c: Use tabs for indents 2016-09-26 16:52:44 -07:00
elmex UPSTREAM: elmex/pcm205400: Switch away from AGESA_LEGACY 2017-03-30 05:30:00 -07:00
emulation UPSTREAM: emulation/qemu-i440fx: Use SMBIOS macros 2017-03-22 10:08:21 -07:00
esd UPSTREAM: cpu/x86/msr.h: Drop excessive includes 2016-12-08 12:31:26 -08:00
getac UPSTREAM: nb/intel/i945: Move INTEL_EDID 2017-04-10 14:28:35 -07:00
gigabyte UPSTREAM: nb/intel/i945: Move INTEL_EDID 2017-04-10 14:28:35 -07:00
gizmosphere UPSTREAM: gizmosphere/gizmo: Switch away from AGESA_LEGACY 2017-03-30 05:29:59 -07:00
google UPSTREAM: mb/google/fizz: Set lid status as open 2017-04-26 09:20:59 -07:00
hp UPSTREAM: nb/amdk8/(pre_)f.h: Don't declare global variable in header 2017-04-12 05:34:21 -07:00
ibase UPSTREAM: sb/ich7: Use common/gpio.h to set up GPIOs 2017-01-09 23:46:48 -08:00
iei UPSTREAM: AMD geode: Avoid conflicting main() declaration 2017-03-08 05:13:00 -08:00
intel UPSTREAM: nb/intel/pineview: Move to early cbmem 2017-04-26 09:21:01 -07:00
iwave UPSTREAM: cpu/x86/msr.h: Drop excessive includes 2016-12-08 12:31:26 -08:00
iwill UPSTREAM: nb/amdk8/(pre_)f.h: Don't declare global variable in header 2017-04-12 05:34:21 -07:00
jetway UPSTREAM: southbridge/via/vt8237r: Get rid of #include early_smbus.c 2017-04-18 13:19:00 -07:00
kontron UPSTREAM: nb/amdk8/(pre_)f.h: Don't declare global variable in header 2017-04-12 05:34:21 -07:00
lanner UPSTREAM: mainboard/lanner/em8510: Use tabs for indents 2016-09-30 18:03:19 -07:00
lenovo UPSTREAM: mb/lenovo/x230: Enable libgfxinit 2017-04-26 09:21:00 -07:00
linutop kconfig: automatically include mainboards 2015-04-18 08:31:08 +02:00
lippert UPSTREAM: AGESA: Introduce AGESA_LEGACY and its counterpart 2017-03-30 05:29:58 -07:00
lowrisc UPSTREAM: mb/lowrisc/nexys4ddr: Read RAM information from the config string 2016-12-08 12:31:00 -08:00
mitac UPSTREAM: intel/car/cache_as_ram.inc: Prepare for dynamic CONFIG_RAMTOP 2016-06-22 10:40:45 -07:00
msi UPSTREAM: nb/amdk8/(pre_)f.h: Don't declare global variable in header 2017-04-12 05:34:21 -07:00
nec UPSTREAM: intel/car/cache_as_ram.inc: Prepare for dynamic CONFIG_RAMTOP 2016-06-22 10:40:45 -07:00
nokia UPSTREAM: intel/car/cache_as_ram.inc: Prepare for dynamic CONFIG_RAMTOP 2016-06-22 10:40:45 -07:00
nvidia UPSTREAM: southbridge/nvidia/mcp55: Get rid of #include early_smbus.c 2017-03-22 10:08:22 -07:00
packardbell UPSTREAM: intel/nehalem: Use romstage_handoff for S3 2016-12-13 17:49:12 -08:00
pcengines UPSTREAM: pcengines/apu1: Switch away from AGESA_LEGACY 2017-03-30 05:29:59 -07:00
purism UPSTREAM: purism/librem13: Set system type to laptop 2017-02-27 12:03:16 -08:00
rca UPSTREAM: mainboard/rca/rm4100: transition away from device_t 2016-11-10 18:32:33 -08:00
roda UPSTREAM: sb/ich7: Use common/gpio.h to set up GPIOs 2017-01-09 23:46:48 -08:00
samsung UPSTREAM: vboot: Move remaining features out of vendorcode/google/chromeos 2017-03-29 13:43:08 -07:00
sapphire UPSTREAM: mb/sapphire/pureplatinumh61: Update GMA config 2017-04-26 09:20:55 -07:00
siemens UPSTREAM: nb/amdk8/(pre_)f.h: Don't declare global variable in header 2017-04-12 05:34:21 -07:00
soyo UPSTREAM: intel/car/cache_as_ram.inc: Prepare for dynamic CONFIG_RAMTOP 2016-06-22 10:40:45 -07:00
sunw UPSTREAM: nb/amdk8/(pre_)f.h: Don't declare global variable in header 2017-04-12 05:34:21 -07:00
supermicro UPSTREAM: AGESA: Introduce AGESA_LEGACY and its counterpart 2017-03-30 05:29:58 -07:00
technexion UPSTREAM: nb/amdk8/(pre_)f.h: Don't declare global variable in header 2017-04-12 05:34:21 -07:00
thomson UPSTREAM: mainboard/thomson/ip1000: transition away from device_t 2016-11-10 18:32:44 -08:00
ti UPSTREAM: beaglebone: Update bootblock.c to use new structs/code 2016-06-22 10:40:52 -07:00
traverse UPSTREAM: AMD geode: Avoid conflicting main() declaration 2017-03-08 05:13:00 -08:00
tyan UPSTREAM: AGESA: Introduce AGESA_LEGACY and its counterpart 2017-03-30 05:29:58 -07:00
via UPSTREAM: southbridge/via/vt8237r: Get rid of #include early_smbus.c 2017-04-18 13:19:00 -07:00
winent UPSTREAM: nb/amdk8/(pre_)f.h: Don't declare global variable in header 2017-04-12 05:34:21 -07:00
wyse UPSTREAM: AMD geode: Avoid conflicting main() declaration 2017-03-08 05:13:00 -08:00
Kconfig UPSTREAM: Kconfig: Remind users to delete .config when switching boards 2017-01-13 15:21:43 -08:00