summaryrefslogtreecommitdiff
path: root/cpu/mpc512x/iopin.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2009-05-16 10:47:42 +0200
committerWolfgang Denk <wd@denx.de>2009-06-12 20:47:16 +0200
commit19dc7e179268be148e550c36203208c662610d76 (patch)
treea775c082869c167b0c6ac0380db219ccd4666c6b /cpu/mpc512x/iopin.c
parent72601d04fdfdd4c7597afcf1f6aab654bd99366c (diff)
downloadu-boot-imx-19dc7e179268be148e550c36203208c662610d76.zip
u-boot-imx-19dc7e179268be148e550c36203208c662610d76.tar.gz
u-boot-imx-19dc7e179268be148e550c36203208c662610d76.tar.bz2
MPC512x: add more hardware description to immap_512x.h
- add GPIO module description - add Address Latch Timing Register description - add IO Control Memory Map - add FEC Memory Map Also change board/freescale/mpc5121ads/mpc5121ads.c and cpu/mpc512x/iopin.c as needed. 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 78f4fa1e..befa586 100644
--- a/cpu/mpc512x/iopin.c
+++ b/cpu/mpc512x/iopin.c
@@ -23,15 +23,15 @@
#include <common.h>
#include <linux/types.h>
-#include <mpc512x.h>
+#include <asm/immap_512x.h>
void iopin_initialize(iopin_t *ioregs_init, int len)
{
short i, j, p;
- u_long *reg;
+ u32 *reg;
immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
- reg = (u_long *)&(im->io_ctrl.regs[0]);
+ reg = (u32 *)&(im->io_ctrl);
if (sizeof(ioregs_init) == 0)
return;