summaryrefslogtreecommitdiffstats
path: root/board
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-07-05 18:02:01 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-07-05 18:02:01 +0200
commit68ff191bbb3acab6028fd2a2bfa144808112331c (patch)
treed7dd7f53fb310ba2bcd96a1c0d2dc47585a95d59 /board
parent7dde818528415cc220f2d224a7226fe935d30fb2 (diff)
downloadbarebox-68ff191bbb3acab6028fd2a2bfa144808112331c.tar.gz
barebox-68ff191bbb3acab6028fd2a2bfa144808112331c.tar.xz
svn_rev_520
add console
Diffstat (limited to 'board')
-rw-r--r--board/phycore_mpc5200b_tiny/phycore_mpc5200b_tiny.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/board/phycore_mpc5200b_tiny/phycore_mpc5200b_tiny.c b/board/phycore_mpc5200b_tiny/phycore_mpc5200b_tiny.c
index 2395b0fb3e..e99e5f1adc 100644
--- a/board/phycore_mpc5200b_tiny/phycore_mpc5200b_tiny.c
+++ b/board/phycore_mpc5200b_tiny/phycore_mpc5200b_tiny.c
@@ -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"