coreboot/src/drivers/usb
Julius Werner 21a4053fde rules.h: Rename ENV_VERSTAGE to ENV_SEPARATE_VERSTAGE
When CONFIG_SEPARATE_VERSTAGE=n, all verstage code gets linked into the
appropriate calling stage (bootblock or romstage). This means that
ENV_VERSTAGE is actually 0, and instead ENV_BOOTBLOCK or ENV_ROMSTAGE
are 1. This keeps tripping up people who are just trying to write a
simple "are we in verstage (i.e. wherever the vboot init logic runs)"
check, e.g. for TPM init functions which may run in "verstage" or
ramstage depending on whether vboot is enabled. Those checks will not
work as intended for CONFIG_SEPARATE_VERSTAGE=n.

This patch renames ENV_VERSTAGE to ENV_SEPARATE_VERSTAGE to try to
clarify that this macro can really only be used to check whether code is
running in a *separate* verstage, and clue people in that they may need
to cover the linked-in verstage case as well.

Signed-off-by: Julius Werner <jwerner@chromium.org>
Change-Id: I2ff3a3c3513b3db44b3cff3d93398330cd3632ea
Reviewed-on: https://review.coreboot.org/c/coreboot/+/40582
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2020-04-23 01:21:56 +00:00
..
acpi Replace DEVICE_NOOP with noop_(set|read)_resources 2020-04-10 11:50:22 +00:00
console.c src/drivers: Use SPDX for GPL-2.0-only files 2020-04-06 13:42:15 +00:00
ehci.h AUTHORS: Move src/drivers/[l*-v*] copyrights into AUTHORS file 2019-10-22 12:55:19 +00:00
ehci_debug.c rules.h: Rename ENV_VERSTAGE to ENV_SEPARATE_VERSTAGE 2020-04-23 01:21:56 +00:00
ehci_debug.h src/drivers: Use SPDX for GPL-2.0-only files 2020-04-06 13:42:15 +00:00
gadget.c src/drivers: Use SPDX for GPL-2.0-only files 2020-04-06 13:42:15 +00:00
Kconfig usbdebug: Make the EHCI debug console work in the bootblock 2019-01-06 14:05:20 +00:00
Makefile.inc drivers/usb: Enable EHCI debug during verstage 2019-10-16 08:29:30 +00:00
pci_ehci.c src/drivers: Use SPDX for GPL-2.0-only files 2020-04-06 13:42:15 +00:00
usb_ch9.h src/drivers: Use SPDX for GPL-2.0-only files 2020-04-06 13:42:15 +00:00