diff options
author | Jacob Chen <jacob-chen@iotwrt.com> | 2017-05-02 14:54:49 +0800 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-05-10 13:37:22 -0600 |
commit | d77af8a8c9f75cb8ffe7804dfe0c999cc727afdd (patch) | |
tree | ebe71c9598aaf5c21a2416dd323163420e6888ed /include | |
parent | 1daa93c0b494134d0daafab6944b3eefeb66acee (diff) |
power: pmic: rk808: add RK818 support
The RK818 chip is a Power Management IC (PMIC) for multimedia and handheld
devices.
For boards use rk818, the input current should be set in the early stage, before
ddr initialization.
Signed-off-by: Jacob Chen <jacob-chen@iotwrt.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/power/rk808_pmic.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/power/rk808_pmic.h b/include/power/rk808_pmic.h index d29c2b36b0b..c370c322206 100644 --- a/include/power/rk808_pmic.h +++ b/include/power/rk808_pmic.h @@ -170,12 +170,24 @@ enum { RK808_NUM_OF_REGS, }; +enum { + RK805_ID = 0x8050, + RK808_ID = 0x0000, + RK818_ID = 0x8180, +}; + +#define RK8XX_ID_MSK 0xfff0 + struct rk808_reg_table { char *name; u8 reg_ctl; u8 reg_vol; }; +struct rk808_priv { + int variant; +}; + int rk808_spl_configure_buck(struct udevice *pmic, int buck, int uvolt); #endif |