pwm: raspberrypi-poe: Add option of being created by MFD or FW
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Wed, 19 Jan 2022 17:26:22 +0000 (17:26 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:33:16 +0000 (11:33 +0000)
commit2061b5a07bea0d489f34418593a9d0056a14a146
treedff2855b80868f00652d32d3c4ebcefe58789b9b
parent6a0221e11bcfdd7e6cdf45b09b42ae8829de3b1c
pwm: raspberrypi-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/pwm/pwm-raspberrypi-poe.c