diff options
author | Philipp Tomsich <philipp.tomsich@theobroma-systems.com> | 2017-09-29 18:59:14 +0200 |
---|---|---|
committer | Philipp Tomsich <philipp.tomsich@theobroma-systems.com> | 2017-10-02 11:20:57 +0200 |
commit | a308e784ba821461a4b5131207074ca33701e0d9 (patch) | |
tree | df994f3237233b9e722b1d17f88de1bee7314f0d /board | |
parent | d1bdca4eb6de0b87dc14cf615d61ed08e6c3c5c3 (diff) |
[wip???] usbhub_enableHEADlion-release-v2017.09
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; } |