rockchip: rk3399-puma: add boot-on regulator to override BIOS_DISABLE
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Fri, 29 Sep 2017 17:28:01 +0000 (19:28 +0200)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Sat, 30 Sep 2017 22:33:35 +0000 (00:33 +0200)
commit482cf22333dbfb7c706d6a7ec1ffbfa5409cc6a3
treebdc510d8ea59ff9e976e6384857ec2ecfb841693
parent0b5e7aab0ef62fea852d03df76e577c217d0b8bf
rockchip: rk3399-puma: add boot-on regulator to override BIOS_DISABLE

The (Qseven) BIOS_DISABLE signal on the RK3399-Q7 (Puma) keeps the
eMMC and SPI in reset initially and we need to write a GPIO to turn
them on before continuing the boot-up.

This adds the DTS entries for the additional regulator and makes
pinctrl and gpio3 available during SPL.  It also adds a hook to the
spl_board_init() to ensure that the regulator gets probed and enabled.

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/dts/rk3399-puma.dtsi
board/theobroma-systems/puma_rk3399/puma-rk3399.c