[PATCH 1/2] fixup! gpio: Add GPIO driver for Vybrid

Andrey Smirnov andrew.smirnov at gmail.com
Fri Nov 25 13:07:10 PST 2016


---

Sascha,

It looks like the two affected patches haven't hit 'master' yet, so I
am hoping these two fixups could be incorporated into 'next'.

First fixup removes unused constants (leftover from kernel code) and
second adda two lines to configure clock for ESDHC0 (original code
only configured ESDHC1)

If you want these as separate patches, let me know

Thanks,
Andrey

 drivers/gpio/gpio-vf610.c | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/drivers/gpio/gpio-vf610.c b/drivers/gpio/gpio-vf610.c
index c82723f..7c8d1e4 100644
--- a/drivers/gpio/gpio-vf610.c
+++ b/drivers/gpio/gpio-vf610.c
@@ -39,21 +39,6 @@ struct vf610_gpio_port {
 #define GPIO_PTOR		0x0c
 #define GPIO_PDIR		0x10
 
-#define PORT_PCR(n)		((n) * 0x4)
-#define PORT_PCR_IRQC_OFFSET	16
-
-#define PORT_ISFR		0xa0
-#define PORT_DFER		0xc0
-#define PORT_DFCR		0xc4
-#define PORT_DFWR		0xc8
-
-#define PORT_INT_OFF		0x0
-#define PORT_INT_LOGIC_ZERO	0x8
-#define PORT_INT_RISING_EDGE	0x9
-#define PORT_INT_FALLING_EDGE	0xa
-#define PORT_INT_EITHER_EDGE	0xb
-#define PORT_INT_LOGIC_ONE	0xc
-
 static const struct of_device_id vf610_gpio_dt_ids[] = {
 	{ .compatible = "fsl,vf610-gpio" },
 	{ /* sentinel */ }
-- 
2.5.5




More information about the barebox mailing list