[PATCH 5/6] staging: bcm2835-firmware-gpio: Add a build system for the driver

Stefan Wahren stefan.wahren at i2se.com
Sat Mar 18 06:25:52 PDT 2017


> Michael Zoran <mzoran at crowfest.net> hat am 17. März 2017 um 16:22 geschrieben:
> 
> 
> This change adds the driver to the standard kernel build system.
> 
> Signed-off-by: Michael Zoran <mzoran at crowfest.net>
> ---
>  drivers/staging/vc04_services/Kconfig                        | 2 ++
>  drivers/staging/vc04_services/Makefile                       | 1 +
>  drivers/staging/vc04_services/bcm2835-firmware-gpio/Kconfig  | 6 ++++++
>  drivers/staging/vc04_services/bcm2835-firmware-gpio/Makefile | 5 +++++
>  4 files changed, 14 insertions(+)
>  create mode 100644 drivers/staging/vc04_services/bcm2835-firmware-gpio/Kconfig
>  create mode 100644 drivers/staging/vc04_services/bcm2835-firmware-gpio/Makefile
> 
> diff --git a/drivers/staging/vc04_services/Kconfig b/drivers/staging/vc04_services/Kconfig
> index b9f316603308..aebb622cff4a 100644
> --- a/drivers/staging/vc04_services/Kconfig
> +++ b/drivers/staging/vc04_services/Kconfig
> @@ -34,5 +34,7 @@ source "drivers/staging/vc04_services/bcm2835-audio/Kconfig"
>  
>  source "drivers/staging/vc04_services/bcm2835-camera/Kconfig"
>  
> +source "drivers/staging/vc04_services/bcm2835-firmware-gpio/Kconfig"
> +
>  endif
>  
> diff --git a/drivers/staging/vc04_services/Makefile b/drivers/staging/vc04_services/Makefile
> index e9a8e1343cbb..54c75b732094 100644
> --- a/drivers/staging/vc04_services/Makefile
> +++ b/drivers/staging/vc04_services/Makefile
> @@ -12,6 +12,7 @@ vchiq-objs := \
>  
>  obj-$(CONFIG_SND_BCM2835)	+= bcm2835-audio/
>  obj-$(CONFIG_VIDEO_BCM2835)	+= bcm2835-camera/
> +obj-$(CONFIG_FIRMWARE_GPIO_BCM2835) += bcm2835-firmware-gpio/
>  
>  ccflags-y += -DVCOS_VERIFY_BKPTS=1 -Idrivers/staging/vc04_services -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000
>  
> diff --git a/drivers/staging/vc04_services/bcm2835-firmware-gpio/Kconfig b/drivers/staging/vc04_services/bcm2835-firmware-gpio/Kconfig
> new file mode 100644
> index 000000000000..1c8cb579fad9
> --- /dev/null
> +++ b/drivers/staging/vc04_services/bcm2835-firmware-gpio/Kconfig
> @@ -0,0 +1,6 @@
> +config FIRMWARE_GPIO_BCM2835
> +	tristate "BCM2835 Firmware GPIO"
> +	depends on OF_GPIO && (ARCH_BCM2835 || COMPILE_TEST)

depends on RASPBERRYPI_FIRMWARE ?

> +	help
> +	  Turn on GPIO support for Broadcom chips using the firmware mailbox
> +	  to communicate with VideoCore on BCM283x chips.
> diff --git a/drivers/staging/vc04_services/bcm2835-firmware-gpio/Makefile b/drivers/staging/vc04_services/bcm2835-firmware-gpio/Makefile
> new file mode 100644
> index 000000000000..afa642ab26f4
> --- /dev/null
> +++ b/drivers/staging/vc04_services/bcm2835-firmware-gpio/Makefile
> @@ -0,0 +1,5 @@
> +obj-$(CONFIG_FIRMWARE_GPIO_BCM2835)	+= gpio-bcm-exp.o
> +
> +
> +
> +

Please avoid those many empty lines.

> -- 
> 2.11.0
>



More information about the linux-rpi-kernel mailing list