mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-18 08:32:04 -04:00
mgcoge, mgsuvd: use in_*/out_* accesors
Signed-off-by: Heiko Schocher <hs@denx.de>
This commit is contained in:
parent
a21ca95f8b
commit
9e299192ca
@ -25,6 +25,7 @@
|
|||||||
#include <mpc8260.h>
|
#include <mpc8260.h>
|
||||||
#include <ioports.h>
|
#include <ioports.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
|
#include <asm/io.h>
|
||||||
|
|
||||||
#if defined(CONFIG_OF_BOARD_SETUP) && defined(CONFIG_OF_LIBFDT)
|
#if defined(CONFIG_OF_BOARD_SETUP) && defined(CONFIG_OF_LIBFDT)
|
||||||
#include <libfdt.h>
|
#include <libfdt.h>
|
||||||
@ -295,8 +296,8 @@ int checkboard(void)
|
|||||||
int board_early_init_r (void)
|
int board_early_init_r (void)
|
||||||
{
|
{
|
||||||
/* setup the UPIOx */
|
/* setup the UPIOx */
|
||||||
*(char *)(CONFIG_SYS_PIGGY_BASE + 0x02) = 0xc0;
|
out_8((u8 *)(CONFIG_SYS_PIGGY_BASE + 0x02), 0xc0);
|
||||||
*(char *)(CONFIG_SYS_PIGGY_BASE + 0x03) = 0x15;
|
out_8((u8 *)(CONFIG_SYS_PIGGY_BASE + 0x03), 0x15);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
*/
|
*/
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <mpc8xx.h>
|
#include <mpc8xx.h>
|
||||||
|
#include <asm/io.h>
|
||||||
|
|
||||||
#if defined(CONFIG_OF_BOARD_SETUP) && defined(CONFIG_OF_LIBFDT)
|
#if defined(CONFIG_OF_BOARD_SETUP) && defined(CONFIG_OF_LIBFDT)
|
||||||
#include <libfdt.h>
|
#include <libfdt.h>
|
||||||
@ -137,8 +138,8 @@ phys_size_t initdram (int board_type)
|
|||||||
int board_early_init_r(void)
|
int board_early_init_r(void)
|
||||||
{
|
{
|
||||||
/* setup the UPIOx */
|
/* setup the UPIOx */
|
||||||
*(char *)(CONFIG_SYS_PIGGY_BASE + 0x02) = 0xc0;
|
out_8((u8 *)(CONFIG_SYS_PIGGY_BASE + 0x02), 0xc0);
|
||||||
*(char *)(CONFIG_SYS_PIGGY_BASE + 0x03) = 0x35;
|
out_8((u8 *)(CONFIG_SYS_PIGGY_BASE + 0x03), 0x35);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user