summaryrefslogtreecommitdiff
path: root/board/altera/nios2-generic/gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/altera/nios2-generic/gpio.c')
-rw-r--r--board/altera/nios2-generic/gpio.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/board/altera/nios2-generic/gpio.c b/board/altera/nios2-generic/gpio.c
index 6c9c6c2..d449684 100644
--- a/board/altera/nios2-generic/gpio.c
+++ b/board/altera/nios2-generic/gpio.c
@@ -15,6 +15,11 @@
static u32 pio_data_reg;
static u32 pio_dir_reg;
+int gpio_request(unsigned gpio, const char *label)
+{
+ return 0;
+}
+
int gpio_direction_input(unsigned gpio)
{
u32 mask = 1 << gpio;