diff options
author | Scott McNutt <smcnutt@psyent.com> | 2010-03-21 21:24:43 -0400 |
---|---|---|
committer | Scott McNutt <smcnutt@psyent.com> | 2010-04-02 12:28:41 -0400 |
commit | 3ea0037f2337de692b5fd2b6a4449db1de3067a2 (patch) | |
tree | dc79b32082081baa60f5ef8e43ca774814e5eeba /board/altera/common/epled.c | |
parent | 64da04d24ea685483f9afa07088f76931b6c0e01 (diff) | |
download | u-boot-imx-3ea0037f2337de692b5fd2b6a4449db1de3067a2.zip u-boot-imx-3ea0037f2337de692b5fd2b6a4449db1de3067a2.tar.gz u-boot-imx-3ea0037f2337de692b5fd2b6a4449db1de3067a2.tar.bz2 |
nios2: Fix outx/writex parameter order in io.h
The outx/writex macros were using writex(addr, val) rather than
the standard writex(val, addr), resulting in incompatibilty with
architecture independent components. This change set uses standard
parameter order.
Signed-off-by: Scott McNutt <smcnutt@psyent.com>
Diffstat (limited to 'board/altera/common/epled.c')
-rw-r--r-- | board/altera/common/epled.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/board/altera/common/epled.c b/board/altera/common/epled.c index e5e7705..d019735 100644 --- a/board/altera/common/epled.c +++ b/board/altera/common/epled.c @@ -39,7 +39,7 @@ void __led_init (led_id_t mask, int state) val &= ~mask; else val |= mask; - writel (&pio->data, val); + writel (val, &pio->data); } void __led_set (led_id_t mask, int state) @@ -50,7 +50,7 @@ void __led_set (led_id_t mask, int state) val &= ~mask; else val |= mask; - writel (&pio->data, val); + writel (val, &pio->data); } void __led_toggle (led_id_t mask) @@ -58,5 +58,5 @@ void __led_toggle (led_id_t mask) nios_pio_t *pio = (nios_pio_t *)CONFIG_SYS_LEDPIO_ADDR; val ^= mask; - writel (&pio->data, val); + writel (val, &pio->data); } |