diff options
author | Scott McNutt <smcnutt@psyent.com> | 2006-06-08 12:03:21 -0400 |
---|---|---|
committer | Scott McNutt <smcnutt@psyent.com> | 2006-06-08 12:03:21 -0400 |
commit | 3d22d0b89bb3d669e27ff98d15ab013fbe04ee87 (patch) | |
tree | f8f93e0a9362ead3f75ff4172423e4db77c7e7d7 /board/psyent/pk1c20/led.c | |
parent | c2ced000f4f18361feb36ea257fabbb46913e1d4 (diff) | |
download | u-boot-imx-3d22d0b89bb3d669e27ff98d15ab013fbe04ee87.zip u-boot-imx-3d22d0b89bb3d669e27ff98d15ab013fbe04ee87.tar.gz u-boot-imx-3d22d0b89bb3d669e27ff98d15ab013fbe04ee87.tar.bz2 |
Update PK1C20 board
-Update base addresses for standard configuration
-Eliminate use of CACHE_BYPASS in board code
Patch by Scott McNutt, 08 Jun 2006
Diffstat (limited to 'board/psyent/pk1c20/led.c')
-rw-r--r-- | board/psyent/pk1c20/led.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/board/psyent/pk1c20/led.c b/board/psyent/pk1c20/led.c index c175c9b..c75fe8c 100644 --- a/board/psyent/pk1c20/led.c +++ b/board/psyent/pk1c20/led.c @@ -22,7 +22,7 @@ */ #include <common.h> -#include <nios2.h> +#include <asm/io.h> #include <nios2-io.h> #include <status_led.h> @@ -33,30 +33,30 @@ static led_id_t val = 0; void __led_init (led_id_t mask, int state) { - nios_pio_t *pio = (nios_pio_t *)CACHE_BYPASS(CFG_LEDPIO_ADDR); + nios_pio_t *pio = (nios_pio_t *)CFG_LEDPIO_ADDR; if (state == STATUS_LED_ON) val &= ~mask; else val |= mask; - pio->data = val; + writel (&pio->data, val); } void __led_set (led_id_t mask, int state) { - nios_pio_t *pio = (nios_pio_t *)CACHE_BYPASS(CFG_LEDPIO_ADDR); + nios_pio_t *pio = (nios_pio_t *)CFG_LEDPIO_ADDR; if (state == STATUS_LED_ON) val &= ~mask; else val |= mask; - pio->data = val; + writel (&pio->data, val); } void __led_toggle (led_id_t mask) { - nios_pio_t *pio = (nios_pio_t *)CACHE_BYPASS(CFG_LEDPIO_ADDR); + nios_pio_t *pio = (nios_pio_t *)CFG_LEDPIO_ADDR; val ^= mask; - pio->data = val; + writel (&pio->data, val); } |