aboutsummaryrefslogtreecommitdiff
path: root/cpu/mpc512x/iopin.c
diff options
context:
space:
mode:
authorWolfgang Denk2009-05-16 10:47:43 +0200
committerWolfgang Denk2009-06-12 20:47:16 +0200
commit843efb1192cc8fd4f904a23dbab4e0fe3e1c5bc2 (patch)
tree8fef341b4b1a8a234f881444c237c243098e372d /cpu/mpc512x/iopin.c
parent19dc7e179268be148e550c36203208c662610d76 (diff)
MPC512x: use I/O accessors instead of pointer accesses
This commit changes the MPC512x code to use I/O accessor calls (i.e. out_*() and in_*()) instead of using deprecated pointer accesses. Signed-off-by: Wolfgang Denk <wd@denx.de> Cc: John Rigby <jcrigby@gmail.com>
Diffstat (limited to 'cpu/mpc512x/iopin.c')
-rw-r--r--cpu/mpc512x/iopin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpu/mpc512x/iopin.c b/cpu/mpc512x/iopin.c
index befa586a3f0..be209476232 100644
--- a/cpu/mpc512x/iopin.c
+++ b/cpu/mpc512x/iopin.c
@@ -23,7 +23,7 @@
#include <common.h>
#include <linux/types.h>
-#include <asm/immap_512x.h>
+#include <asm/io.h>
void iopin_initialize(iopin_t *ioregs_init, int len)
{
@@ -40,9 +40,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;