power: rpi-poe: Add option of being created by MFD or FW
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Thu, 20 Jan 2022 15:50:27 +0000 (15:50 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:33:16 +0000 (11:33 +0000)
commit22737066aa1973763299818007d42969ba3eb9c0
tree87fff1d9aad361980b0295d4a2a4f95cd82abfb3
parent95b1eec17e01e43e264fcabb9bce1368ef41e246
power: rpi-poe: Add option of being created by MFD or FW

The firmware can only use I2C0 if the kernel isn't, therefore
with libcamera and DRM using it the PoE HAT fan control needs
to move to the kernel.

Add the option for the driver to be created by the PoE HAT core
MFD driver, and use the I2C regmap that provides to control fan
functions.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/power/supply/rpi_poe_power.c