diff options
author | Alexandru Gagniuc <mr.nuke.me@gmail.com> | 2014-01-02 03:59:24 -0500 |
---|---|---|
committer | Alexandru Gagniuc <mr.nuke.me@gmail.com> | 2014-01-09 01:05:29 +0100 |
commit | 919e499a364bebd0032f2f7b92051fb4f301f66f (patch) | |
tree | 66539e60116d412e6c25fad8339b51b6fbde0206 /src/cpu/allwinner/a10/gpio.h | |
parent | 6ed574a661dcf85dea9d093fdcd4c060d51d08d2 (diff) |
cpu/allwinner/a10: Add functions for driving GPIO pins
Change-Id: I9473a6e574c3af02d154a7e30245f0dc0b238300
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-on: http://review.coreboot.org/4599
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: David Hendricks <dhendrix@chromium.org>
Diffstat (limited to 'src/cpu/allwinner/a10/gpio.h')
-rw-r--r-- | src/cpu/allwinner/a10/gpio.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cpu/allwinner/a10/gpio.h b/src/cpu/allwinner/a10/gpio.h index e4b24ea3fc..b20d75962b 100644 --- a/src/cpu/allwinner/a10/gpio.h +++ b/src/cpu/allwinner/a10/gpio.h @@ -50,6 +50,14 @@ struct a10_gpio { u32 sdr_pad_pul; } __attribute__ ((packed)); +/* gpio.c */ +void gpio_set(u8 port, u8 pin); +void gpio_clear(u8 port, u8 pin); +int gpio_get(u8 port, u8 pin); +void gpio_write(u8 port, u32 val); +u32 gpio_read(u8 port); + +/* pinmux.c */ void gpio_set_pin_func(u8 port, u8 pin, u8 pad_func); void gpio_set_multipin_func(u8 port, u32 pin_mask, u8 pad_func); |