mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-14 08:57:58 +00:00
96495d90fe
Add driver model support for GPIOs. Since existing GPIO drivers do not use driver model, this feature must be enabled by CONFIG_DM_GPIO. After all GPO drivers are converted over we can perhaps remove this config. Tests are provided for the sandbox implementation, and are a sufficient sanity check for basic operation. The GPIO uclass understands the concept of named banks of GPIOs, with each GPIO device providing a single bank. Within each bank the GPIOs are numbered using an offset from 0 to n-1. For example a bank named 'b' with 20 offsets will provide GPIOs named b0 to b19. Anonymous GPIO banks are also supported, and are just numbered without any prefix. Each time a GPIO driver is added to the uclass, the GPIOs are renumbered accordinging, so there is always a global GPIO numbering order. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Marek Vasut <marex@denx.de> Signed-off-by: Pavel Herrmann <morpheus.ibis@gmail.com> Signed-off-by: Viktor Křivák <viktor.krivak@gmail.com> Signed-off-by: Tomas Hlavacek <tmshlvck@gmail.com>
36 lines
1.2 KiB
Makefile
36 lines
1.2 KiB
Makefile
#
|
|
# Copyright 2000-2008
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
|
|
obj-$(CONFIG_DM_GPIO) += gpio-uclass.o
|
|
|
|
obj-$(CONFIG_AT91_GPIO) += at91_gpio.o
|
|
obj-$(CONFIG_INTEL_ICH6_GPIO) += intel_ich6_gpio.o
|
|
obj-$(CONFIG_KIRKWOOD_GPIO) += kw_gpio.o
|
|
obj-$(CONFIG_KONA_GPIO) += kona_gpio.o
|
|
obj-$(CONFIG_MARVELL_GPIO) += mvgpio.o
|
|
obj-$(CONFIG_MARVELL_MFP) += mvmfp.o
|
|
obj-$(CONFIG_MXC_GPIO) += mxc_gpio.o
|
|
obj-$(CONFIG_MXS_GPIO) += mxs_gpio.o
|
|
obj-$(CONFIG_PCA953X) += pca953x.o
|
|
obj-$(CONFIG_PCA9698) += pca9698.o
|
|
obj-$(CONFIG_S5P) += s5p_gpio.o
|
|
obj-$(CONFIG_SANDBOX_GPIO) += sandbox.o
|
|
obj-$(CONFIG_SPEAR_GPIO) += spear_gpio.o
|
|
obj-$(CONFIG_TEGRA_GPIO) += tegra_gpio.o
|
|
obj-$(CONFIG_DA8XX_GPIO) += da8xx_gpio.o
|
|
obj-$(CONFIG_DM644X_GPIO) += da8xx_gpio.o
|
|
obj-$(CONFIG_ALTERA_PIO) += altera_pio.o
|
|
obj-$(CONFIG_MPC83XX_GPIO) += mpc83xx_gpio.o
|
|
obj-$(CONFIG_SH_GPIO_PFC) += sh_pfc.o
|
|
obj-$(CONFIG_OMAP_GPIO) += omap_gpio.o
|
|
obj-$(CONFIG_DB8500_GPIO) += db8500_gpio.o
|
|
obj-$(CONFIG_BCM2835_GPIO) += bcm2835_gpio.o
|
|
obj-$(CONFIG_S3C2440_GPIO) += s3c2440_gpio.o
|
|
obj-$(CONFIG_XILINX_GPIO) += xilinx_gpio.o
|
|
obj-$(CONFIG_ADI_GPIO2) += adi_gpio2.o
|
|
obj-$(CONFIG_TCA642X) += tca642x.o
|
|
oby-$(CONFIG_SX151X) += sx151x.o
|