diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2009-07-22 10:12:39 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2009-07-22 10:16:55 -0500 |
commit | 048e7efe91f66094f868281c12e488ce2bae8976 (patch) | |
tree | 730a52155fd4d11069608a45399bf20e7fc796ba /board/freescale/mpc8544ds | |
parent | 0a6d0c6320b77bd6572393a93e6b8ccdf39c7100 (diff) | |
download | u-boot-imx-048e7efe91f66094f868281c12e488ce2bae8976.zip u-boot-imx-048e7efe91f66094f868281c12e488ce2bae8976.tar.gz u-boot-imx-048e7efe91f66094f868281c12e488ce2bae8976.tar.bz2 |
85xx/86xx: Replace in8/out8 with in_8/out_8 on FSL boards
The pixis code used in8/out8 all over the place. Replace it with
in_8/out_8 macros.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'board/freescale/mpc8544ds')
-rw-r--r-- | board/freescale/mpc8544ds/mpc8544ds.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/board/freescale/mpc8544ds/mpc8544ds.c b/board/freescale/mpc8544ds/mpc8544ds.c index b251e2e..fd59839 100644 --- a/board/freescale/mpc8544ds/mpc8544ds.c +++ b/board/freescale/mpc8544ds/mpc8544ds.c @@ -391,11 +391,12 @@ get_board_sys_clk(ulong dummy) { u8 i, go_bit, rd_clks; ulong val = 0; + u8 *pixis_base = (u8 *)PIXIS_BASE; - go_bit = in8(PIXIS_BASE + PIXIS_VCTL); + go_bit = in_8(pixis_base + PIXIS_VCTL); go_bit &= 0x01; - rd_clks = in8(PIXIS_BASE + PIXIS_VCFGEN0); + rd_clks = in_8(pixis_base + PIXIS_VCFGEN0); rd_clks &= 0x1C; /* @@ -406,11 +407,11 @@ get_board_sys_clk(ulong dummy) if (go_bit) { if (rd_clks == 0x1c) - i = in8(PIXIS_BASE + PIXIS_AUX); + i = in_8(pixis_base + PIXIS_AUX); else - i = in8(PIXIS_BASE + PIXIS_SPD); + i = in_8(pixis_base + PIXIS_SPD); } else { - i = in8(PIXIS_BASE + PIXIS_SPD); + i = in_8(pixis_base + PIXIS_SPD); } i &= 0x07; |