mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-26 23:41:50 +00:00
spmi: msm: correct max_channels for v5 controllers
Commitee1d8aa5ec
("spmi: msm: support controller version 7") broke support for channels > 128 on v5 controllers, resulting in some peripherals (like the power button / pon) working but others (like gpios) reading bogus data. Correct max_channels for v5 controllers. Fixes:ee1d8aa5ec
("spmi: msm: support controller version 7") Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
This commit is contained in:
parent
ca229a32ba
commit
69b37f1625
1 changed files with 1 additions and 1 deletions
|
@ -271,7 +271,7 @@ static int msm_spmi_probe(struct udevice *dev)
|
||||||
} else if (hw_ver < PMIC_ARB_VERSION_V7_MIN) {
|
} else if (hw_ver < PMIC_ARB_VERSION_V7_MIN) {
|
||||||
priv->arb_ver = V5;
|
priv->arb_ver = V5;
|
||||||
priv->arb_chnl = core_addr + APID_MAP_OFFSET_V5;
|
priv->arb_chnl = core_addr + APID_MAP_OFFSET_V5;
|
||||||
priv->max_channels = SPMI_MAX_CHANNELS;
|
priv->max_channels = SPMI_MAX_CHANNELS_V5;
|
||||||
priv->spmi_cnfg = dev_read_addr_name(dev, "cnfg");
|
priv->spmi_cnfg = dev_read_addr_name(dev, "cnfg");
|
||||||
} else {
|
} else {
|
||||||
/* TOFIX: handle second bus */
|
/* TOFIX: handle second bus */
|
||||||
|
|
Loading…
Add table
Reference in a new issue