[PATCH 2/6] staging: bcm2835-firmware-gpio: Add needed mailbox defines to driver

Michael Zoran mzoran at crowfest.net
Fri Mar 17 08:22:17 PDT 2017


The original change this driver is based on adds the needed mailbox
defines to include/soc/bcm2835/raspberrypi-firmware.h. That is not
appropriate at this time, so add the defines directly into the
driver source.

This change is based on:
https://github.com/raspberrypi/linux

Branch: rpi-4.11.y(commit efad03c3c86642dafccc03fcdd3ab84dd11e2ab7)

Signed-off-by: Michael Zoran <mzoran at crowfest.net>
---
 drivers/staging/vc04_services/bcm2835-firmware-gpio/gpio-bcm-exp.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/staging/vc04_services/bcm2835-firmware-gpio/gpio-bcm-exp.c b/drivers/staging/vc04_services/bcm2835-firmware-gpio/gpio-bcm-exp.c
index 681a91492d4c..ba9750107957 100644
--- a/drivers/staging/vc04_services/bcm2835-firmware-gpio/gpio-bcm-exp.c
+++ b/drivers/staging/vc04_services/bcm2835-firmware-gpio/gpio-bcm-exp.c
@@ -43,6 +43,13 @@ struct gpio_get_set_state {
 	u32 gpio, state;
 };
 
+enum rpi_firmware_gpio_property_tag {
+	RPI_FIRMWARE_GET_GPIO_STATE =                         0x00030041,
+	RPI_FIRMWARE_SET_GPIO_STATE =                         0x00038041,
+	RPI_FIRMWARE_GET_GPIO_CONFIG =                        0x00030043,
+	RPI_FIRMWARE_SET_GPIO_CONFIG =                        0x00038043,
+};
+
 static int brcmexp_gpio_get_polarity(struct gpio_chip *gc, unsigned int off)
 {
 	struct brcmexp_gpio *gpio;
-- 
2.11.0




More information about the linux-rpi-kernel mailing list