summaryrefslogtreecommitdiff
path: root/cpu/mpc83xx/qe_io.c
diff options
context:
space:
mode:
authorDave Liu <r63238@freescale.com>2006-12-07 21:11:58 +0800
committerKim Phillips <kim.phillips@freescale.com>2007-03-02 11:05:53 -0600
commite080313c32322e15ab5a18eb896a252858c57284 (patch)
tree4eea19d56d2dc72d2f69d7410b1989ebaa99ecb3 /cpu/mpc83xx/qe_io.c
parentddd02492f43db5408f5ab9f823b0ba5796e28ef0 (diff)
mpc83xx: streamline the 83xx immr head file
For better format and style, I streamlined the 83xx head files, including immap_83xx.h and mpc83xx.h. In the old head files, 1) duplicated macro definition appear in the both files; 2) the structure of QE immr is duplicated in the immap_83xx.h and immap_qe.h; 3) The macro definition put inside the each structure. So, I cleaned up the structure of QE immr from immap_83xx.h, deleted the duplicated stuff and moved the macro definition to mpc83xx.h, Just like MPC8260. CHANGELOG *streamline the 83xx immr head file Signed-off-by: Dave Liu <daveliu@freescale.com>
Diffstat (limited to 'cpu/mpc83xx/qe_io.c')
-rw-r--r--cpu/mpc83xx/qe_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu/mpc83xx/qe_io.c b/cpu/mpc83xx/qe_io.c
index ebe348711..8b3937aa9 100644
--- a/cpu/mpc83xx/qe_io.c
+++ b/cpu/mpc83xx/qe_io.c
@@ -35,7 +35,7 @@ void qe_config_iopin(u8 port, u8 pin, int dir, int open_drain, int assign)
u32 pin_1bit_mask;
u32 tmp_val;
volatile immap_t *im = (volatile immap_t *)CFG_IMMR;
- volatile gpio83xx_t *par_io =(volatile gpio83xx_t *)&im->gpio;
+ volatile qepio83xx_t *par_io = (volatile qepio83xx_t *)&im->qepio;
/* Caculate pin location and 2bit mask and dir */
pin_2bit_mask = (u32)(0x3 << (NUM_OF_PINS-(pin%(NUM_OF_PINS/2)+1)*2));