security/vboot: Add function to check if UDC can be enabled

Add a function that will check the various requirements to
enable USB Device Controller (UDC):

- developer mode enabled
- GBB flag set or VBNV flag set

If VBOOT is not enabled, then default is to allow UDC enabling.


Change-Id: Id146ac1065f209865372aeb423f66ae734702954
Signed-off-by: Duncan Laurie <>
Signed-off-by: Furquan Shaikh <>
Reviewed-by: Aaron Durbin <>
Tested-by: build bot (Jenkins) <>
2 files changed