Add a capability for mainboard-specific posting.
Some mainboards have really nice capabilities for posting, beyond
simple POST cards. Further, some can not use a POST card. This
change defines a weak symbol (mainboard_post) that can be overridden
by a real mainboard_post function.
If, for example, you'd like to do something fancy before the payload starts,
you can add this to mainboard.c:
void mainboard_post(u8 value)
case POST_TIME_TO_PARTY: some_fancy_lights();
Maybe the post function should be an entry in the device. We're beginning to over-use
TEST=Build and boot a google chromebook. Observe that it still works. Use it to drive
some pretty lights.
Signed-off-by: Ronald G. Minnich <firstname.lastname@example.org>
Signed-off-by: Alexandru Gagniuc <email@example.com>
Tested-by: build bot (Jenkins)
2 files changed