diff options
author | Joseph Chen | 2019-09-26 15:45:07 +0800 |
---|---|---|
committer | Kever Yang | 2019-11-10 20:34:10 +0800 |
commit | ee30068fa5742ef611d796e16bfc5047db2d7f9e (patch) | |
tree | 8766a4f111ae232947a80f2fa4e2458aad9decd6 /drivers/power/pmic/rk8xx.c | |
parent | b4a35574b38d0fb42031be32a47fb1095cceafa7 (diff) |
power: pmic: rk809: support rk809 pmic
The RK809 is a Power Management IC (PMIC) for multimedia
and handheld devices. They contains the following components:
- Regulators(5*BUCKs, 9*LDOs, 2*SWITCHes)
- RTC
- Clocking
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'drivers/power/pmic/rk8xx.c')
-rw-r--r-- | drivers/power/pmic/rk8xx.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/power/pmic/rk8xx.c b/drivers/power/pmic/rk8xx.c index df0bf83a054..52e6d9d8c0e 100644 --- a/drivers/power/pmic/rk8xx.c +++ b/drivers/power/pmic/rk8xx.c @@ -92,7 +92,8 @@ static int rk8xx_probe(struct udevice *dev) u8 value; /* read Chip variant */ - if (device_is_compatible(dev, "rockchip,rk817")) { + if (device_is_compatible(dev, "rockchip,rk817") || + device_is_compatible(dev, "rockchip,rk809")) { id_msb = RK817_ID_MSB; id_lsb = RK817_ID_LSB; } else { @@ -119,6 +120,7 @@ static int rk8xx_probe(struct udevice *dev) on_source = RK8XX_ON_SOURCE; off_source = RK8XX_OFF_SOURCE; break; + case RK809_ID: case RK817_ID: on_source = RK817_ON_SOURCE; off_source = RK817_OFF_SOURCE; @@ -173,6 +175,7 @@ static struct dm_pmic_ops rk8xx_ops = { static const struct udevice_id rk8xx_ids[] = { { .compatible = "rockchip,rk805" }, { .compatible = "rockchip,rk808" }, + { .compatible = "rockchip,rk809" }, { .compatible = "rockchip,rk816" }, { .compatible = "rockchip,rk817" }, { .compatible = "rockchip,rk818" }, |