coreboot/src/device
Aaron Durbin e4d7abc0d4 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.

Change-Id: Ibd51c2628dc8f68e0896974f7e4e7c8588d333ed
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/19333
Tested-by: build bot (Jenkins)
Reviewed-by: Philippe Mathieu-Daudé <philippe.mathieu.daude@gmail.com>
Reviewed-by: Furquan Shaikh <furquan@google.com>
2017-04-25 18:14:38 +02:00
..
dram device/dram/ddr2: Add common ddr2 spd decoder 2017-03-10 11:17:27 +01:00
oprom src/device: Add required space before opening parenthesis '(' 2016-08-28 18:27:52 +02:00
azalia_device.c Correct some common spelling mistakes 2016-01-07 22:57:02 +01:00
cardbus_device.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
cpu_device.c src/device: Capitalize CPU, RAM and ROM 2016-07-31 18:33:30 +02:00
device.c devtree: Drop unused parameter show_devs_tree() call 2017-02-06 20:22:01 +01:00
device_simple.c lib: provide clearer devicetree semantics 2017-04-25 18:14:38 +02:00
device_util.c device: Add a new "SPI" device type 2017-02-16 08:41:28 +01:00
hypertransport.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
i2c.c device: i2c: Add support for I2C bus operations 2016-06-09 17:05:40 +02:00
Kconfig libgfxinit: Select CONFIG_VGA when needed 2017-04-08 13:03:52 +02:00
Makefile.inc device: include devicetree in bootblock stage 2016-07-27 00:40:05 +02:00
pci_class.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
pci_device.c x86/acpi: Add VFCT table 2017-02-04 23:01:37 +01:00
pci_early.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
pci_ops.c PCI ops: MMCONF_SUPPORT_DEFAULT is required 2016-12-07 12:59:28 +01:00
pci_rom.c x86/acpi: Add VFCT table 2017-02-04 23:01:37 +01:00
pciexp_device.c PCI ops: Define read-modify-write routines globally 2016-12-06 20:45:22 +01:00
pcix_device.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
pnp_device.c device/pnp: Ability to set vendor specific logical device config 2015-12-29 18:17:01 +01:00
root_device.c device: Add scan_generic_bus support 2017-02-16 08:41:52 +01:00
smbus_ops.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
software_i2c.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00