]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
mgcoge, mgsuvd: use in_*/out_* accesors
authorHeiko Schocher <hs@denx.de>
Fri, 17 Oct 2008 10:15:55 +0000 (12:15 +0200)
committerWolfgang Denk <wd@denx.de>
Sat, 18 Oct 2008 19:54:04 +0000 (21:54 +0200)
Signed-off-by: Heiko Schocher <hs@denx.de>
board/keymile/mgcoge/mgcoge.c
board/keymile/mgsuvd/mgsuvd.c

index bf6ce877e08ace49ce3708b8939daa2dcda7b5fe..f35716b087ece35d81fccb148208a6a58a0a97b9 100644 (file)
@@ -25,6 +25,7 @@
 #include <mpc8260.h>
 #include <ioports.h>
 #include <malloc.h>
+#include <asm/io.h>
 
 #if defined(CONFIG_OF_BOARD_SETUP) && defined(CONFIG_OF_LIBFDT)
 #include <libfdt.h>
@@ -295,8 +296,8 @@ int checkboard(void)
 int board_early_init_r (void)
 {
        /* setup the UPIOx */
-       *(char *)(CONFIG_SYS_PIGGY_BASE + 0x02) = 0xc0;
-       *(char *)(CONFIG_SYS_PIGGY_BASE + 0x03) = 0x15;
+       out_8((u8 *)(CONFIG_SYS_PIGGY_BASE + 0x02), 0xc0);
+       out_8((u8 *)(CONFIG_SYS_PIGGY_BASE + 0x03), 0x15);
        return 0;
 }
 
index de4668c02d82b91730ab07e88583391648f02997..7cade4e1d61c675c062411d6568c9083ba1b12e4 100644 (file)
@@ -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;
 }