mfd: intel_soc_pmic_crc: Add crystal_cove_charger cell to BYT cells
authorHans de Goede <hdegoede@redhat.com>
Sat, 25 Dec 2021 11:55:07 +0000 (12:55 +0100)
committerLee Jones <lee.jones@linaro.org>
Mon, 31 Jan 2022 17:13:31 +0000 (17:13 +0000)
commit07f274ad6ea2cdaa09086d7fe10f4381a1546cc8
tree3e1ad80a50d6601e14f9a340998605508f377756
parentb5ab18b39200831a3c5355cf2ca0a84dcd410bf8
mfd: intel_soc_pmic_crc: Add crystal_cove_charger cell to BYT cells

The Crystal Cove PMIC has a pin which can be used to connect the IRQ of
an external charger IC. On some boards this is used and we need to have
a cell for this, with a driver which creates its own irqchip with
a single IRQ for the charger driver to consume.

The charger driver cannot directly consume the IRQ from the MFD level
irqchip because the PMIC has 2 levels of interrupts and the second
level interrupt status register, which is handled by the cell drivers,
needs to have the IRQ acked to avoid an IRQ storm.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20211225115509.94891-3-hdegoede@redhat.com
drivers/mfd/intel_soc_pmic_crc.c