]> git.ipfire.org Git - thirdparty/linux.git/commit
gpio: ixp4xx: Handle clock output on pin 14 and 15
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 29 Nov 2023 22:37:41 +0000 (23:37 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Fri, 1 Dec 2023 09:48:32 +0000 (10:48 +0100)
commit9a9429b9ce975bcc97b45824bdd153bee5bad46c
treebf4ea6bdfde4d9d81589c5eea6dbdebc9970055f
parent58bfaaac03284d82a55a724bfe2d97e19f3a11d0
gpio: ixp4xx: Handle clock output on pin 14 and 15

This makes it possible to provide basic clock output on pins
14 and 15. The clocks are typically used by random electronics,
not modeled in the device tree, so they just need to be provided
on request.

In order to not disturb old systems that require that the
hardware defaults are kept in the clock setting bits, we only
manipulate these if either device tree property is present.
Once we know a device needs one of the clocks we can set it
in the device tree.

Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-ixp4xx.c