Skip to content
Snippets Groups Projects
Commit c580cb4b authored by Quentin Schulz's avatar Quentin Schulz Committed by Kever Yang
Browse files

power: rk8xx: fix display name for RK808


Commit 2ce40542 ("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: 2ce40542 ("power: rk8xx: properly print all supported PMICs name")
Signed-off-by: default avatarQuentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: default avatarDragan Simic <dsimic@manjaro.org>
parent 0a9e0813
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment