diff options
author | Heiko Schocher <hs@denx.de> | 2008-10-17 12:15:55 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-10-18 21:54:04 +0200 |
commit | 9e299192ca9850cf725456388042a5aa5a6f3ec7 (patch) | |
tree | 5212070a7eaeff812e87804808833cd43cb84267 /board/keymile/mgsuvd | |
parent | a21ca95f8b9dca22714952b348e4905ac157b5cd (diff) | |
download | u-boot-imx-9e299192ca9850cf725456388042a5aa5a6f3ec7.zip u-boot-imx-9e299192ca9850cf725456388042a5aa5a6f3ec7.tar.gz u-boot-imx-9e299192ca9850cf725456388042a5aa5a6f3ec7.tar.bz2 |
mgcoge, mgsuvd: use in_*/out_* accesors
Signed-off-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'board/keymile/mgsuvd')
-rw-r--r-- | board/keymile/mgsuvd/mgsuvd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/board/keymile/mgsuvd/mgsuvd.c b/board/keymile/mgsuvd/mgsuvd.c index de4668c..7cade4e 100644 --- a/board/keymile/mgsuvd/mgsuvd.c +++ b/board/keymile/mgsuvd/mgsuvd.c @@ -22,6 +22,7 @@ */ #include <common.h> #include <mpc8xx.h> +#include <asm/io.h> #if defined(CONFIG_OF_BOARD_SETUP) && defined(CONFIG_OF_LIBFDT) #include <libfdt.h> @@ -137,8 +138,8 @@ phys_size_t initdram (int board_type) int board_early_init_r(void) { /* setup the UPIOx */ - *(char *)(CONFIG_SYS_PIGGY_BASE + 0x02) = 0xc0; - *(char *)(CONFIG_SYS_PIGGY_BASE + 0x03) = 0x35; + out_8((u8 *)(CONFIG_SYS_PIGGY_BASE + 0x02), 0xc0); + out_8((u8 *)(CONFIG_SYS_PIGGY_BASE + 0x03), 0x35); return 0; } |