coreboot/src
Aaron Durbin cbc47ea87f BACKPORT: boot state: add ability to block state transitions
In order to properly sequence the boot state machine it's
important that outside code can block the transition from
one state to the next. When timers are not involved there's
no reason for any of the existing code to block a state
transition. However, if there is a timer callback that needs to
complete by a certain point in the boot sequence it is necessary
to place a block for the given state.

To that end, 4 new functions are added to provide the API for
blocking a state.
1. boot_state_block(boot_state_t state, boot_state_sequence_t seq);
2. boot_state_unblock(boot_state_t state, boot_state_sequence_t seq);
3. boot_state_current_block(void);
4. boot_state_current_unblock(void);

BUG=None
BRANCH=None
TEST=Compiled and booted

Change-Id: I3de15e5b91e7fd1c833bc99b0d0af46a5a7c4bee
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/50455
Reviewed-by: Stefan Reinauer <reinauer@google.com>
2013-05-08 11:41:54 -07:00
..
arch x86: call cbfstool update-fit when fit selected 2013-05-07 14:58:29 -07:00
console console: Make use of CONFIG_USE_OPTION_TABLE 2013-04-01 20:54:48 +02:00
cpu BACKPORT: haswell: use asmlinkage for assembly-called funcs 2013-05-08 11:41:54 -07:00
device device tree: track init times 2013-05-01 15:36:25 -07:00
drivers [2/2] tps65090: re-factor for coreboot 2013-04-30 18:24:39 -07:00
ec Fix Google ChromeEC driver 2013-05-01 10:55:09 -07:00
include BACKPORT: boot state: add ability to block state transitions 2013-05-08 11:41:54 -07:00
lib BACKPORT: boot state: add ability to block state transitions 2013-05-08 11:41:54 -07:00
mainboard wtm2: Set SerialIO I2C ports to 3.3V 2013-05-07 16:02:27 -07:00
northbridge BACKPORT: haswell: use tsc for udelay() 2013-05-08 11:19:04 -07:00
southbridge lynxpoint: Expose ACPI Device for LP GPIO controller 2013-05-06 15:48:40 -07:00
superio Winbond W83627HF: Rename and move ASL snippet to acpi/superio.asl 2013-04-01 21:09:24 +02:00
vendorcode Eliminate use of pointers in coreboot table 2013-04-22 11:57:06 -07:00
Kconfig BACKPORT: coreboot: add timer queue implementation 2013-05-01 14:30:57 -07:00