summaryrefslogtreecommitdiffstats
path: root/include/configs/nios2-generic.h
diff options
context:
space:
mode:
authorThomas Chou <thomas@wytron.com.tw>2014-08-30 17:45:23 +0800
committerThomas Chou <thomas@wytron.com.tw>2014-08-30 17:48:43 +0800
commit857b9cb69ffc2b5a607e55a09325290274c7272e (patch)
treea9f8298a3a83dd1f76ec511923128faf9241dc91 /include/configs/nios2-generic.h
parentc69d2e57616f20eb1989cfe235ee036a26c78d5a (diff)
downloadtalos-obmc-uboot-857b9cb69ffc2b5a607e55a09325290274c7272e.tar.gz
talos-obmc-uboot-857b9cb69ffc2b5a607e55a09325290274c7272e.zip
nios2: rebase nios2-generic board to 3c120 reference design
Though nios2-generic board meant to be a template, it is helpful to be able to test on a real hardware. As the nios2 linux is developed and tested on a 3c120 FPGA based Golden Hardware Reference Design, it makes sense to rebase nios2-generic on this FPGA design. Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Diffstat (limited to 'include/configs/nios2-generic.h')
-rw-r--r--include/configs/nios2-generic.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/configs/nios2-generic.h b/include/configs/nios2-generic.h
index 51b1d00d99..6247bf1569 100644
--- a/include/configs/nios2-generic.h
+++ b/include/configs/nios2-generic.h
@@ -22,7 +22,7 @@
/*
* SERIAL
*/
-#define CONFIG_ALTERA_UART
+#define CONFIG_ALTERA_JTAG_UART
#if defined(CONFIG_ALTERA_JTAG_UART)
# define CONFIG_SYS_NIOS_CONSOLE CONFIG_SYS_JTAG_UART_BASE
#else
@@ -56,6 +56,9 @@
#define CONFIG_BOARD_SPECIFIC_LED
#define CONFIG_GPIO_LED /* Enable GPIO LED driver */
#define CONFIG_GPIO /* Enable GPIO driver */
+#define LED_PIO_BASE USER_LED_PIO_8OUT_BASE
+#define LED_PIO_WIDTH 8
+#define LED_PIO_RSTVAL 0xff
#define STATUS_LED_BIT 0 /* Bit-0 on GPIO */
#define STATUS_LED_STATE 1 /* Blinking */
@@ -86,6 +89,10 @@
# define CONFIG_CMD_PING
#endif
+#define CONFIG_OF_LIBFDT
+#define CONFIG_OF_BOARD_SETUP
+#define CONFIG_LMB
+
/*
* ENVIRONMENT -- Put environment in sector CONFIG_SYS_MONITOR_LEN above
* CONFIG_SYS_RESET_ADDR, since we assume the monitor is stored at the
@@ -95,7 +102,7 @@
*/
#define CONFIG_ENV_IS_IN_FLASH
-#define CONFIG_ENV_SIZE 0x10000 /* 64k, 1 sector */
+#define CONFIG_ENV_SIZE 0x20000 /* 128k, 1 sector */
#define CONFIG_ENV_OVERWRITE /* Serial change Ok */
#define CONFIG_ENV_ADDR ((CONFIG_SYS_RESET_ADDR + \
CONFIG_SYS_MONITOR_LEN) | \
OpenPOWER on IntegriCloud