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-05 14:16:36 +0200 |
commit | 813b6119e604debdace7eb42b6ba188d1df71dd8 (patch) | |
tree | 9b24ec38cfbf44662898fdc17c01e1ed6c9ce23e | |
parent | 87759709c9879d8458914bbeb50ebbc1d9046b41 (diff) |
[wip???] usbhub_enableboot0
-rw-r--r-- | arch/arm/dts/rk3399-puma.dtsi | 6 | ||||
-rw-r--r-- | board/theobroma-systems/puma_rk3399/puma-rk3399.c | 10 |
2 files changed, 13 insertions, 3 deletions
diff --git a/arch/arm/dts/rk3399-puma.dtsi b/arch/arm/dts/rk3399-puma.dtsi index 6dd448d517..091446ba05 100644 --- a/arch/arm/dts/rk3399-puma.dtsi +++ b/arch/arm/dts/rk3399-puma.dtsi @@ -97,8 +97,8 @@ regulator-name = "usbhub_enable"; enable-active-low; gpio = <&gpio4 3 GPIO_ACTIVE_HIGH>; - regulator-always-on; - regulator-boot-on; +/* regulator-always-on; */ +/* regulator-boot-on; */ regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; }; @@ -534,7 +534,7 @@ }; &dwc3_typec0 { - status = "okay"; + status = "disabled"; }; &usb_host1_ehci { 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; } |