summaryrefslogtreecommitdiff
path: root/include/ioports.h
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2007-11-28 00:36:33 -0600
committerKumar Gala <galak@kernel.crashing.org>2007-12-11 22:34:19 -0600
commitaafeefbdb8b029f5ca2a195598d0a501a606eea9 (patch)
tree728753848457380bcbf771fff2639adaf3dfb9fc /include/ioports.h
parentf59b55a5b8fcadaa99781ba48e7a38e956afa527 (diff)
downloadu-boot-aafeefbdb8b029f5ca2a195598d0a501a606eea9.tar.gz
u-boot-aafeefbdb8b029f5ca2a195598d0a501a606eea9.tar.bz2
u-boot-aafeefbdb8b029f5ca2a195598d0a501a606eea9.zip
Stop using immap_t for cpm offset on 85xx
In the future the offsets to various blocks may not be in same location. Move to using CFG_MPC85xx_CPM_ADDR as the base of the CPM registers instead of getting it via &immap->im_cpm. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'include/ioports.h')
-rw-r--r--include/ioports.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ioports.h b/include/ioports.h
index cfba667cab..1134ea5208 100644
--- a/include/ioports.h
+++ b/include/ioports.h
@@ -26,7 +26,7 @@ typedef struct {
* a 0x20 byte boundary
*/
#ifdef CONFIG_MPC85xx
-#define ioport_addr(im, idx) (ioport_t *)((uint)&((im)->im_cpm.im_cpm_iop) + ((idx)*0x20))
+#define ioport_addr(im, idx) (ioport_t *)((uint)&(im->im_cpm_iop) + ((idx)*0x20))
#else
#define ioport_addr(im, idx) (ioport_t *)((uint)&(im)->im_ioport + ((idx)*0x20))
#endif