Add MIPS generic GPIO support
PATCH 1/2 Add MIPS generic GPIO support
This patch adds support for the generic GPIO API to MIPS boards.
Signature · 1 line
Signed-off-by: Florian Fainelli <[email protected]>
include/asm-mips/gpio.h +7 -0
@@ -0,0 +1,7 @@ +#ifndef _ASM_MIPS_GPIO_H +#define _ASM_MIPS_GPIO_H + +/* Not all MIPS platforms support this API */ +#include <asm-generic/gpio.h> + +#endif /* _ASM_MIPS_GPIO_H
Quoted 1 line · On Sat, 19 May 2007 21:51:37 +0200 Florian Fainelli…
This patch adds support for the generic GPIO API to MIPS boards.
Your patch is effective to the target that doesn't support GPIO. This is better.
Yoichi
include/asm-mips/gpio.h +6 -0
@@ -0,0 +1,6 @@ +#ifndef __ASM_MIPS_GPIO_H +#define __ASM_MIPS_GPIO_H + +#include <gpio.h> + +#endif /* __ASM_MIPS_GPIO_H */
include/asm-mips/mach-generic/gpio.h +6 -0
@@ -0,0 +1,6 @@ +#ifndef __ASM_MACH_GENERIC_GPIO_H +#define __ASM_MACH_GENERIC_GPIO_H + +/* no GPIO support */ + +#endif /* __ASM_MACH_GENERIC_GPIO_H */
include/asm-mips/gpio.h line 6
Quoted 10 lines · Yoichi Yuasa
diff -pruN -X gpio/Documentation/dontdiff
gpio-orig/include/asm-mips/gpio.hgpio/include/asm-mips/gpio.hinclude/asm-mips/gpio.h +6
-0@@ -0,0 +1,6 @@ +#ifndef __ASM_MIPS_GPIO_H +#define __ASM_MIPS_GPIO_H + +#include <gpio.h> + +#endif /* __ASM_MIPS_GPIO_H */
This looks good for me.
include/asm-mips/mach-generic/gpio.h line 6
Quoted 10 lines
diff -pruN -X gpio/Documentation/dontdiff
gpio-orig/include/asm-mips/mach-generic/gpio.hgpio/include/asm-mips/mach-generic/gpio.hinclude/asm-mips/mach-generic/gpio.h +6
-0@@ -0,0 +1,6 @@ +#ifndef __ASM_MACH_GENERIC_GPIO_H +#define __ASM_MACH_GENERIC_GPIO_H + +/* no GPIO support */ + +#endif /* __ASM_MACH_GENERIC_GPIO_H */
But is this really needed? I can not see any point of this empty gpio.h ...
---
Atsushi Nemoto
Quoted 14 lines · On Mon, 21 May 2007 00:12:38 +0900 (JST) Atsushi Nemoto <[email protected]>…
include/asm-mips/gpio.h line 6
Quoted 10 lines · Yoichi Yuasa
diff -pruN -X gpio/Documentation/dontdiff
gpio-orig/include/asm-mips/gpio.hgpio/include/asm-mips/gpio.hinclude/asm-mips/gpio.h +6
-0@@ -0,0 +1,6 @@ +#ifndef __ASM_MIPS_GPIO_H +#define __ASM_MIPS_GPIO_H + +#include <gpio.h> + +#endif /* __ASM_MIPS_GPIO_H */ This looks good for me.
Quoted 12 lines
include/asm-mips/mach-generic/gpio.h line 6
Quoted 10 lines
diff -pruN -X gpio/Documentation/dontdiff
gpio-orig/include/asm-mips/mach-generic/gpio.hgpio/include/asm-mips/mach-generic/gpio.hinclude/asm-mips/mach-generic/gpio.h +6
-0@@ -0,0 +1,6 @@ +#ifndef __ASM_MACH_GENERIC_GPIO_H +#define __ASM_MACH_GENERIC_GPIO_H + +/* no GPIO support */ + +#endif /* __ASM_MACH_GENERIC_GPIO_H */ But is this really needed? I can not see any point of this empty
gpio.h...
No, it is not must.
I'll update it soon.
Yoichi
PATCH 1/1 Add MIPS generic GPIO support
Hi Ralf,
This patch has added support for the generic GPIO API header file to MIPS.
Yoichi
include/asm-mips/gpio.h +6 -0
@@ -0,0 +1,6 @@ +#ifndef __ASM_MIPS_GPIO_H +#define __ASM_MIPS_GPIO_H + +#include <gpio.h> + +#endif /* __ASM_MIPS_GPIO_H */
Quoted 1 line · Yoichi Yuasa
This patch has added support for the generic GPIO API header file to MIPS.
With the change, adding these lines to Kconfig would be better.
config GENERIC_GPIO
bool
---
Atsushi Nemoto
PATCH 1/1 Add MIPS generic GPIO support
Quoted 7 lines · On Mon, 21 May 2007 23:12:00 +0900 (JST) Atsushi Nemoto <[email protected]>…
Quoted 1 line · Yoichi Yuasa
This patch has added support for the generic GPIO API header file to MIPS.
With the change, adding these lines to
Kconfigwould be better.config
GENERIC_GPIO
bool
Atsushi, thank you for your comment.
This patch has added support for the generic GPIO API to MIPS.
Yoichi
arch/mips/Kconfig +3 -0
@@ -778,6 +778,9 @@ config GENERIC_ISA_DMA_SUPPORT_BROKEN bool select ZONE_DMA +config GENERIC_GPIO + bool + # # Endianess selection. Sufficiently obscure so many users don't know what to # answer,so we try hard to limit the available choices. Also the use of a
include/asm-mips/gpio.h +6 -0
@@ -0,0 +1,6 @@ +#ifndef __ASM_MIPS_GPIO_H +#define __ASM_MIPS_GPIO_H + +#include <gpio.h> + +#endif /* __ASM_MIPS_GPIO_H */
Quoted 5 lines · Yoichi Yuasa
This patch has added support for the generic GPIO API to MIPS.
Yoichi
Signed-off-by Yoichi Yuasa <[email protected]>
Thank you for quick update.
---
Atsushi Nemoto
include/asm-mips/gpio.h line 4
Quoted 7 lines · Yoichi Yuasa
include/asm-mips/gpio.h +4
-0@@ -0,0 +1,6 @@ +#ifndef __ASM_MIPS_GPIO_H +#define __ASM_MIPS_GPIO_H + +#include <gpio.h>
^^^^^^^^
include/asm-mips/gpio.h line 6
Quoted 2 lines
include/asm-mips/gpio.h +2
-0+ +#endif /* __ASM_MIPS_GPIO_H */
Just wondering, where is it supposed to find <gpio.h>?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Quoted 9 lines · On Mon, 21 May 2007 23:31:44 +0200 (CEST) Geert Uytterhoeven…
include/asm-mips/gpio.h line 4
Quoted 7 lines · Yoichi Yuasa
include/asm-mips/gpio.h +4
-0@@ -0,0 +1,6 @@ +#ifndef __ASM_MIPS_GPIO_H +#define __ASM_MIPS_GPIO_H + +#include <gpio.h> ^^^^^^^^
Quoted 4 lines
include/asm-mips/gpio.h line 6
Quoted 2 lines
include/asm-mips/gpio.h +2
-0+ +#endif /* __ASM_MIPS_GPIO_H */ Just wondering, where is it supposed to find <
gpio.h>?
It should be include/asm-mips/mach-*/gpio.h .
Yoichi
Quoted 6 lines · Yoichi Yuasa
Quoted 3 lines · On Mon, 21 May 2007 23:12:00 +0900 (JST) Atsushi Nemoto <[email protected]>…
Quoted 1 line · Yoichi Yuasa
This patch has added support for the generic GPIO API header file to MIPS.
Quoted 8 lines
Quoted 4 lines
With the change, adding these lines to
Kconfigwould be better.config
GENERIC_GPIO
boolAtsushi, thank you for your comment.
This patch has added support for the generic GPIO API to MIPS.
Okay. Since no platform is currently setting I've dropped this into the 2.6.23 patch queue.
Thanks,
Ralf