[U-Boot] [PATCH 09/29] cpu/mpc512x/iopin.c: convert to use I/O acessors.
Wolfgang Denk
wd at denx.de
Sat May 9 21:50:48 CEST 2009
Signed-off-by: Wolfgang Denk <wd at denx.de>
Cc: John Rigby <jcrigby at gmail.com>
---
cpu/mpc512x/iopin.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/cpu/mpc512x/iopin.c b/cpu/mpc512x/iopin.c
index befa586..381ddca 100644
--- a/cpu/mpc512x/iopin.c
+++ b/cpu/mpc512x/iopin.c
@@ -23,6 +23,7 @@
#include <common.h>
#include <linux/types.h>
+#include <asm/io.h>
#include <asm/immap_512x.h>
void iopin_initialize(iopin_t *ioregs_init, int len)
@@ -40,9 +41,9 @@ void iopin_initialize(iopin_t *ioregs_init, int len)
for (p = 0, j = ioregs_init[i].p_offset / sizeof(u_long);
p < ioregs_init[i].nr_pins; p++, j++) {
if (ioregs_init[i].bit_or)
- reg[j] |= ioregs_init[i].val;
+ setbits_be32(reg + j, ioregs_init[i].val);
else
- reg[j] = ioregs_init[i].val;
+ out_be32 (reg + j, ioregs_init[i].val);
}
}
return;
--
1.6.0.6
More information about the U-Boot
mailing list