mirror of
https://xff.cz/git/u-boot/
synced 2025-10-26 16:13:55 +01:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user