diff options
author | Peter Tyser <ptyser@xes-inc.com> | 2009-07-17 19:01:09 -0500 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2009-07-24 06:42:32 +0200 |
commit | b88da157f9990cd2cb081e4faea4b9581b5d0e2f (patch) | |
tree | d25ce058f6ddd049d0b5091ff79d988e1a60ba7f /board/xpedite1k/xpedite1k.c | |
parent | 42735815dd9ba39efe51203868aebce04053c8de (diff) | |
download | u-boot-imx-b88da157f9990cd2cb081e4faea4b9581b5d0e2f.zip u-boot-imx-b88da157f9990cd2cb081e4faea4b9581b5d0e2f.tar.gz u-boot-imx-b88da157f9990cd2cb081e4faea4b9581b5d0e2f.tar.bz2 |
xpedite1k: Add support for additional GPIO pins
Enable GPIO pins for an I2C EEPROM write protect, a system reset pin,
and a PMC #MONARCH pin. These pins are not currently used in U-Boot,
but are used in OSes and may be used in U-Boot in the future.
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'board/xpedite1k/xpedite1k.c')
-rw-r--r-- | board/xpedite1k/xpedite1k.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/board/xpedite1k/xpedite1k.c b/board/xpedite1k/xpedite1k.c index 8a3503d..ed864ba 100644 --- a/board/xpedite1k/xpedite1k.c +++ b/board/xpedite1k/xpedite1k.c @@ -32,9 +32,18 @@ int board_early_init_f(void) { unsigned long sdrreg; - /* TBS: Setup the GPIO access for the user LEDs */ + /* + * Enable GPIO for pins 18 - 24 + * 18 = SEEPROM_WP + * 19 = #M_RST + * 20 = #MONARCH + * 21 = #LED_ALARM + * 22 = #LED_ACT + * 23 = #LED_STATUS1 + * 24 = #LED_STATUS2 + */ mfsdr(sdr_pfc0, sdrreg); - mtsdr(sdr_pfc0, (sdrreg & ~0x00000100) | 0x00000E00); + mtsdr(sdr_pfc0, (sdrreg & ~SDR0_PFC0_TRE_ENABLE) | 0x00003e00); out32(CONFIG_SYS_GPIO_BASE + 0x018, (USR_LED0 | USR_LED1 | USR_LED2 | USR_LED3)); LED0_OFF(); LED1_OFF(); |