diff options
Diffstat (limited to 'board')
-rw-r--r-- | board/theobroma-systems/puma_rk3399/puma-rk3399.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/board/theobroma-systems/puma_rk3399/puma-rk3399.c b/board/theobroma-systems/puma_rk3399/puma-rk3399.c index 2b4988e2d2..26c4535f1b 100644 --- a/board/theobroma-systems/puma_rk3399/puma-rk3399.c +++ b/board/theobroma-systems/puma_rk3399/puma-rk3399.c @@ -29,6 +29,16 @@ int board_init(void) if (ret) debug("%s: Cannot enable boot on regulator\n", __func__); + { + struct udevice *regulator; + int ret = regulator_get_by_platname("usbhub_enable", ®ulator); + if (ret) { + printf("%s: could not get 'usbhub_enable' regulator\n", __func__); + } else { + regulator_set_enable(regulator, true); + } + } + return 0; } |