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, 21 Mar 2022 16:04:38 +0000 (16:04 +0000)
commit9b81bf3f85982e3a29c96dbb230b0f8caf0d56bd
treec1261175dcb3a50437f85a9f321c392d0ebde3fe
parentd47c8454377041ea51df4def1ee8f6c15bc4a432
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