summaryrefslogtreecommitdiff
path: root/board/altera/nios2-generic/custom_fpga.h
diff options
context:
space:
mode:
authorJoachim Foerster <joachim.foerster@missinglinkelectronics.com>2011-10-21 13:48:50 (GMT)
committerThomas Chou <thomas@wytron.com.tw>2011-10-28 01:50:49 (GMT)
commit03d67e127685f65513e7b78dacbd4ccaf01053f6 (patch)
tree689e13ece8dd47b9c03354ac97fcd9d13127c756 /board/altera/nios2-generic/custom_fpga.h
parentf956ad98b2ba10901b6ea04983e679bc5ddc4d7a (diff)
downloadu-boot-03d67e127685f65513e7b78dacbd4ccaf01053f6.tar.xz
gpio: Add driver for Altera's PIO core
This driver may handle multiple PIO cores and thus needs to be setup by calling the altera_pio_init() function within the early board setup routine. The driver comes with some extras, see below the copyleft header. Signed-off-by: Joachim Foerster <joachim.foerster@missinglinkelectronics.com> Tested-by: Thomas Chou <thomas@wytron.com.tw> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Diffstat (limited to 'board/altera/nios2-generic/custom_fpga.h')
-rw-r--r--board/altera/nios2-generic/custom_fpga.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/altera/nios2-generic/custom_fpga.h b/board/altera/nios2-generic/custom_fpga.h
index f7f3853..fd3ec9a 100644
--- a/board/altera/nios2-generic/custom_fpga.h
+++ b/board/altera/nios2-generic/custom_fpga.h
@@ -51,6 +51,7 @@
/* led_pio.s1 is a altera_avalon_pio */
#define LED_PIO_BASE 0x82120870
#define LED_PIO_WIDTH 8
+#define LED_PIO_RSTVAL 0x0
/* high_res_timer.s1 is a altera_avalon_timer */
#define CONFIG_SYS_TIMER_BASE 0x82120820