diff options
author | Chen-Yu Tsai <wens@csie.org> | 2019-04-18 19:18:02 +0300 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2019-05-14 10:13:27 +0300 |
commit | e7037d75ac486ef6b3e9852b45293c6769be6802 (patch) | |
tree | ea0e883c37e5e5803ffd3d46e501ad0fc31d5220 /drivers/mfd/axp20x.c | |
parent | 8ca6ff16de55085e600c75afc946862a46472127 (diff) | |
download | linux-e7037d75ac486ef6b3e9852b45293c6769be6802.tar.xz |
mfd: axp20x: Add USB power supply mfd cell to AXP803
The AXP803 has a VBUS power input. Its functionality is the same as the
one found in the AXP813. Now that the axp20x_usb_power driver supports
this variant, we can add an mfd cell for it to use it.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/axp20x.c')
-rw-r--r-- | drivers/mfd/axp20x.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index 902f9f27e748..2215660dfa05 100644 --- a/drivers/mfd/axp20x.c +++ b/drivers/mfd/axp20x.c @@ -747,6 +747,11 @@ static const struct mfd_cell axp803_cells[] = { .of_compatible = "x-powers,axp813-ac-power-supply", .num_resources = ARRAY_SIZE(axp20x_ac_power_supply_resources), .resources = axp20x_ac_power_supply_resources, + }, { + .name = "axp20x-usb-power-supply", + .num_resources = ARRAY_SIZE(axp803_usb_power_supply_resources), + .resources = axp803_usb_power_supply_resources, + .of_compatible = "x-powers,axp813-usb-power-supply", }, { .name = "axp20x-regulator" }, }; |