Expose getter of virtual dev switch value

Firmware needs to be able to read virtual dev switch to set up device
tree blob which is passed to kernel and eventually read by crossystem.

Signed-off-by: Che-Liang Chiou <clchiou@chromium.org>

BUG=chrome-os-partner:10947
TEST=With this change, U-Boot can read virtual dev switch.

Change-Id: Ifac2ec3d39b8e9c1100031fdef085c28bb8b37c7
Reviewed-on: https://gerrit.chromium.org/gerrit/26394
Reviewed-by: Simon Glass <sjg@chromium.org>
Commit-Ready: Che-Liang Chiou <clchiou@chromium.org>
Tested-by: Che-Liang Chiou <clchiou@chromium.org>
This commit is contained in:
Che-Liang Chiou
2012-06-29 13:23:07 +08:00
committed by Gerrit
parent 61603e2d61
commit 552ae43be0
2 changed files with 16 additions and 0 deletions

View File

@@ -381,6 +381,8 @@ VbError_t VbExTpmOpen(void);
VbError_t VbExTpmSendReceive(const uint8_t* request, uint32_t request_length,
uint8_t* response, uint32_t* response_length);
/* Utility function to get the virtual dev-mode flag value. 0=off, 1=on */
VbError_t VbGetVirtualDevMode(int *val);
/*****************************************************************************/
/* Non-volatile storage */