diff options
author | Quentin Schulz <quentin.schulz@cherry.de> | 2024-06-17 18:48:51 +0200 |
---|---|---|
committer | Kever Yang <kever.yang@rock-chips.com> | 2024-07-17 12:25:52 +0800 |
commit | c580cb4b8bd305382f16a5bc5074faa34bc53770 (patch) | |
tree | 3a55b240313f8894e76056bcbf4e539fac6e539f | |
parent | 0a9e081395c8286a96e7bb141d8517372ba712d7 (diff) | |
download | u-boot-c580cb4b8bd305382f16a5bc5074faa34bc53770.zip u-boot-c580cb4b8bd305382f16a5bc5074faa34bc53770.tar.gz u-boot-c580cb4b8bd305382f16a5bc5074faa34bc53770.tar.bz2 |
power: rk8xx: fix display name for RK808
Commit 2ce40542e0eb ("power: rk8xx: properly print all supported PMICs
name") fixed all PMICs name that were broken but broke the only one that
was not broken already: RK808. This one is a special case because the ID
registers are marked as reserved and always return 0, so the variant
cannot be derived the same way it is done for other PMICs from Rockchip.
Fixes: 2ce40542e0eb ("power: rk8xx: properly print all supported PMICs name")
Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Dragan Simic <dsimic@manjaro.org>
-rw-r--r-- | drivers/power/pmic/rk8xx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/power/pmic/rk8xx.c b/drivers/power/pmic/rk8xx.c index 617bb51..4d5a5ce 100644 --- a/drivers/power/pmic/rk8xx.c +++ b/drivers/power/pmic/rk8xx.c @@ -281,6 +281,8 @@ static int rk8xx_probe(struct udevice *dev) show_variant = bitfield_extract_by_mask(priv->variant, RK8XX_ID_MSK); switch (priv->variant) { case RK808_ID: + /* RK808 ID is 0x0000, so fix show_variant for that PMIC */ + show_variant = 0x808; break; case RK805_ID: case RK816_ID: |