summaryrefslogtreecommitdiffstats
path: root/arch/sandbox/mach-sandbox/include/mach/linux.h
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2018-01-22 12:59:17 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2018-01-29 08:26:46 +0100
commitf94c5f3b28e967c73c49dcda43b4b458f5b79e73 (patch)
tree2b822febf6ce4b848ebb2988c5911c2b373f6a4b /arch/sandbox/mach-sandbox/include/mach/linux.h
parent25a12a30c7038e85187aa12baa2807c716dc8293 (diff)
downloadbarebox-f94c5f3b28e967c73c49dcda43b4b458f5b79e73.tar.gz
barebox-f94c5f3b28e967c73c49dcda43b4b458f5b79e73.tar.xz
sandbox: add gpio support with libftdi1
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/sandbox/mach-sandbox/include/mach/linux.h')
-rw-r--r--arch/sandbox/mach-sandbox/include/mach/linux.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/sandbox/mach-sandbox/include/mach/linux.h b/arch/sandbox/mach-sandbox/include/mach/linux.h
index 1327a56cab..52360f8771 100644
--- a/arch/sandbox/mach-sandbox/include/mach/linux.h
+++ b/arch/sandbox/mach-sandbox/include/mach/linux.h
@@ -38,4 +38,16 @@ void sdl_get_bitfield_rgba(struct fb_bitfield *r, struct fb_bitfield *g,
struct fb_bitfield *b, struct fb_bitfield *a);
void sdl_setpixel(int x, int y, uint8_t r, uint8_t g, uint8_t b, uint8_t a);
+struct ft2232_bitbang;
+struct ft2232_bitbang *barebox_libftdi1_open(int vendor_id, int device_id,
+ const char *serial);
+void barebox_libftdi1_gpio_direction(struct ft2232_bitbang *ftbb,
+ unsigned off, unsigned dir);
+int barebox_libftdi1_gpio_get_value(struct ft2232_bitbang *ftbb,
+ unsigned off);
+void barebox_libftdi1_gpio_set_value(struct ft2232_bitbang *ftbb,
+ unsigned off, unsigned val);
+int barebox_libftdi1_update(struct ft2232_bitbang *ftbb);
+void barebox_libftdi1_close(void);
+
#endif /* __ASM_ARCH_LINUX_H */