pinctrl: amd: isp411: Add amdisp GPIO pinctrl
Subsystems (2)
PATCH v2 1/1 pinctrl: amd: isp411: Add amdisp GPIO pinctrl
Add pinctrl driver support for AMD SoC with isp41 hw ip block.
---
Changelog:
- Updated copyright header
- Removed noisy success prints
- Dropped ifdefs
- Cleanup header files
drivers/pinctrl/Kconfig | 13 ++ drivers/pinctrl/Makefile | 1 + drivers/pinctrl/pinctrl-amdisp.c | 231 +++++++++++++++++++++++++++++++ drivers/pinctrl/pinctrl-amdisp.h | 95 +++++++++++++ 4 files changed, 340 insertions(+) create mode 100644 drivers/pinctrl/pinctrl-amdisp.c create mode 100644 drivers/pinctrl/pinctrl-amdisp.h
drivers/pinctrl/Kconfig +13 -0
@@ -49,6 +49,19 @@ config PINCTRL_AMD Requires ACPI/FDT device enumeration code to set up a platform device. +config PINCTRL_AMDISP + tristate "AMDISP GPIO pin control" + depends on HAS_IOMEM + select GPIOLIB + select PINCONF + select GENERIC_PINCONF + help + The driver for memory mapped GPIO functionality on AMD platforms + with ISP support. All the pins are output controlled only + + Requires AMDGPU to MFD add device for enumeration to set up as + platform device. + config PINCTRL_APPLE_GPIO tristate "Apple SoC GPIO pin controller driver" depends on ARCH_APPLE
drivers/pinctrl/Makefile +1 -0
@@ -10,6 +10,7 @@ obj-$(CONFIG_GENERIC_PINCONF) += pinconf-generic.o obj-$(CONFIG_OF) += devicetree.o obj-$(CONFIG_PINCTRL_AMD) += pinctrl-amd.o +obj-$(CONFIG_PINCTRL_AMDISP) += pinctrl-amdisp.o obj-$(CONFIG_PINCTRL_APPLE_GPIO) += pinctrl-apple-gpio.o obj-$(CONFIG_PINCTRL_ARTPEC6) += pinctrl-artpec6.o obj-$(CONFIG_PINCTRL_AS3722) += pinctrl-as3722.o
drivers/pinctrl/pinctrl-amdisp.c new file +231 -0
231 lines not on this page · raw message
drivers/pinctrl/pinctrl-amdisp.h new file +95 -0
95 lines not on this page · raw message
Signature · 1 line
2.43.0
Quoted 3 lines · Pratap Nirujogi
Add pinctrl driver support for AMD SoC with isp41 hw ip block.
Signed-off-by Pratap Nirujogi <[email protected]>
OK, driver looks really good after the fixes, it's also simple, elegant and self-contained.
Patch applied!
Yours,
Linus Walleij
Thanks very much Linus!
Quoted 15 lines · Linus Walleij
Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
Quoted 3 lines · Pratap Nirujogi
Add pinctrl driver support for AMD SoC with isp41 hw ip block.
Signed-off-by Pratap Nirujogi <[email protected]>OK, driver looks really good after the fixes, it's also simple, elegant and self-contained.
Patch applied!Yours,
Linus Walleij