From a308e784ba821461a4b5131207074ca33701e0d9 Mon Sep 17 00:00:00 2001 From: Philipp Tomsich Date: Fri, 29 Sep 2017 18:59:14 +0200 Subject: [wip???] usbhub_enable --- board/theobroma-systems/puma_rk3399/puma-rk3399.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'board') 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; } -- cgit v1.2.3