aboutsummaryrefslogtreecommitdiffstats
path: root/include/ioports.h
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-10-15 23:53:47 +0000
committerwdenk <wdenk>2003-10-15 23:53:47 +0000
commit42d1f0394bef0624fc9664714d54bb137931d6a6 (patch)
tree892a4130507484d25faf9a72e019cf88cfb3e3d9 /include/ioports.h
parent2d5b561e2bfdee8552a99b2cf93016cce2a74895 (diff)
downloadu-boot-midas-42d1f0394bef0624fc9664714d54bb137931d6a6.tar.gz
u-boot-midas-42d1f0394bef0624fc9664714d54bb137931d6a6.tar.bz2
u-boot-midas-42d1f0394bef0624fc9664714d54bb137931d6a6.zip
* Patches by Xianghua Xiao, 15 Oct 2003:
- Added Motorola CPU 8540/8560 support (cpu/85xx) - Added Motorola MPC8540ADS board support (board/mpc8540ads) - Added Motorola MPC8560ADS board support (board/mpc8560ads) * Minor code cleanup
Diffstat (limited to 'include/ioports.h')
-rw-r--r--include/ioports.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ioports.h b/include/ioports.h
index 8f5947f461..eba9aee0dd 100644
--- a/include/ioports.h
+++ b/include/ioports.h
@@ -25,7 +25,11 @@ typedef struct {
* the internal memory map aligns the above structure on
* a 0x20 byte boundary
*/
+#ifdef CONFIG_MPC8560
+#define ioport_addr(im, idx) (ioport_t *)((uint)&((im)->im_cpm.im_cpm_iop) + ((idx)*0x20))
+#else
#define ioport_addr(im, idx) (ioport_t *)((uint)&(im)->im_ioport + ((idx)*0x20))
+#endif
/*
* this structure provides configuration