diff options
author | Thomas Chou <thomas@wytron.com.tw> | 2015-10-21 21:33:45 +0800 |
---|---|---|
committer | Thomas Chou <thomas@wytron.com.tw> | 2015-10-23 07:37:03 +0800 |
commit | 88d5ecf4b9c0d5a3bff5d6d98ab7383a550a57db (patch) | |
tree | 599e4aee08402b27726c8ae80c86a90d44d8220a /include | |
parent | d21275ef5e7fe67c592896d6dbb157e219ec0450 (diff) | |
download | u-boot-imx-88d5ecf4b9c0d5a3bff5d6d98ab7383a550a57db.zip u-boot-imx-88d5ecf4b9c0d5a3bff5d6d98ab7383a550a57db.tar.gz u-boot-imx-88d5ecf4b9c0d5a3bff5d6d98ab7383a550a57db.tar.bz2 |
nios2 : convert altera_pio to driver model
Convert altera_pio to driver model.
Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Acked-by: Chin Liang See <clsee@altera.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/nios2-generic.h | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/include/configs/nios2-generic.h b/include/configs/nios2-generic.h index c330c0a..62f7db9 100644 --- a/include/configs/nios2-generic.h +++ b/include/configs/nios2-generic.h @@ -15,7 +15,6 @@ #include "../board/altera/nios2-generic/custom_fpga.h" /* fpga parameters */ #define CONFIG_BOARD_NAME "nios2-generic" /* custom board name */ #define CONFIG_BOARD_EARLY_INIT_F /* enable early board-spec. init */ -#define CONFIG_BOARD_EARLY_INIT_R #define CONFIG_DISPLAY_CPUINFO #define CONFIG_DISPLAY_BOARDINFO #define CONFIG_SYS_NIOS_SYSID_BASE CONFIG_SYS_SYSID_BASE @@ -32,25 +31,6 @@ #define CONFIG_SYS_TIMER_RATE CONFIG_SYS_TIMER_FREQ /* - * STATUS LED - */ -#define CONFIG_ALTERA_PIO -#define CONFIG_SYS_ALTERA_PIO_NUM 1 -#define CONFIG_SYS_ALTERA_PIO_GPIO_NUM LED_PIO_WIDTH - -#define CONFIG_STATUS_LED /* Enable status driver */ -#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 */ -#define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 2) /* 500 msec */ - -/* * BOOTP options */ #define CONFIG_BOOTP_BOOTFILESIZE @@ -110,5 +90,6 @@ #define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_INIT_SP - 0x20000) #define CONFIG_CMDLINE_EDITING +#define CONFIG_CMD_GPIO #endif /* __CONFIG_H */ |