9
0
Fork 0

svn_rev_520

add console
This commit is contained in:
Sascha Hauer 2007-07-05 18:02:01 +02:00 committed by Sascha Hauer
parent 7dde818528
commit 68ff191bbb
1 changed files with 26 additions and 0 deletions

View File

@ -34,6 +34,7 @@
#include <mpc5xxx.h>
#include <pci.h>
#include <asm/arch/fec.h>
#include <types.h>
#ifdef CONFIG_VIDEO_OPENIP
#include <openip.h>
@ -84,6 +85,31 @@ static int devices_init (void)
device_initcall(devices_init);
static struct device_d psc3 = {
.name = "mpc5xxx_serial",
.id = "cs0",
.map_base = MPC5XXX_PSC3,
.size = 4096,
.type = DEVICE_TYPE_CONSOLE,
};
static struct device_d psc6 = {
.name = "mpc5xxx_serial",
.id = "cs1",
.map_base = MPC5XXX_PSC6,
.size = 4096,
.type = DEVICE_TYPE_CONSOLE,
};
static int console_init(void)
{
register_device(&psc3);
register_device(&psc6);
return 0;
}
console_initcall(console_init);
#define CFG_RAMBOOT
#include "mt46v32m16-75.h"