diff options
author | Julius Werner <jwerner@chromium.org> | 2014-09-10 19:37:15 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-03-24 15:27:18 +0100 |
commit | 7a757c942e74743ac5781ce03db671747b6f542b (patch) | |
tree | bbd287f9aaf7c1682f87f9eb206099ab00548efe /src/mainboard/google/veyron_pinky/mainboard.c | |
parent | 72001e79e9856488d38c0cb176820a70fbd5578e (diff) |
veyron_pinky: Move PMIC driver into SoC directory
The Rk808 PMIC is a part that will probably be used by most Rk3288
boards, so it makes sense to keep it as common code in the the SoC
directory. This patch puts LDO control functions into rk3288/rk808.c, so
that the mainboard only has to call a simple interface to set up the
specific LDOs it requires.
BUG=chrome-os-partner:30167
TEST=Booted both this and the old version with a stubbed-out
i2c_writeb(), ensured that the final values are the same.
Change-Id: I7efa60f8a357ce6be7490e64d2e0e3f72ad16f1c
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 4df22cd78ee04fefc6f7fa0e5c3d903eb1794422
Original-Change-Id: Ic172f9c402e829995f049726d3cb6dbd637039d1
Original-Signed-off-by: Julius Werner <jwerner@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/217598
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/8871
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/mainboard/google/veyron_pinky/mainboard.c')
-rw-r--r-- | src/mainboard/google/veyron_pinky/mainboard.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mainboard/google/veyron_pinky/mainboard.c b/src/mainboard/google/veyron_pinky/mainboard.c index 349240faff..d3537bf093 100644 --- a/src/mainboard/google/veyron_pinky/mainboard.c +++ b/src/mainboard/google/veyron_pinky/mainboard.c @@ -29,8 +29,8 @@ #include <soc/rockchip/rk3288/soc.h> #include <soc/rockchip/rk3288/pmu.h> #include <soc/rockchip/rk3288/clock.h> +#include <soc/rockchip/rk3288/rk808.h> #include <soc/rockchip/rk3288/spi.h> -#include "pmic.h" #define DRAM_START (CONFIG_SYS_SDRAM_BASE >> 20) #define DRAM_SIZE CONFIG_DRAM_SIZE_MB @@ -110,6 +110,14 @@ static void configure_i2s(void) rkclk_configure_i2s(12288000); } +static void pmic_init(unsigned int bus) +{ + rk808_configure_ldo(bus, 4, 1800); /* VCC18_LCD */ + rk808_configure_ldo(bus, 5, 1800); /* VCC18_CODEC */ + rk808_configure_ldo(bus, 6, 1000); /* VCC10_LCD */ + rk808_configure_ldo(bus, 8, 3300); /* VCCIO_SD */ +} + static void mainboard_init(device_t dev) { setup_iomux(); |