]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/bootstrap/server/src/platform/om.cc
53f1cb1e70c37d6c3880f7e79fa51a345443d559
[l4.git] / l4 / pkg / bootstrap / server / src / platform / om.cc
1 /**
2  * \file   support_om.cc
3  * \brief  Support for the OpenMoko platform
4  *
5  * \date   2008
6  * \author Adam Lackorznynski <adam@os.inf.tu-dresden.de>
7  *
8  */
9 /*
10  * (c) 2008-2009 Author(s)
11  *     economic rights: Technische Universität Dresden (Germany)
12  *
13  * This file is part of TUD:OS and distributed under the terms of the
14  * GNU General Public License 2.
15  * Please see the COPYING-GPL-2 file for details.
16  */
17
18
19 #include "support.h"
20
21 #include <l4/drivers/uart_s3c2410.h>
22 #include <l4/drivers/uart_dummy.h>
23
24 namespace {
25 class Platform_arm_om : public Platform_single_region_ram
26 {
27   bool probe() { return true; }
28
29   void init()
30   {
31     static L4::Uart_s3c2410 _uart;
32     static L4::Io_register_block_mmio r(0x50000000);
33     _uart.startup(&r);
34     set_stdio_uart(&_uart);
35   }
36 };
37 }
38
39 REGISTER_PLATFORM(Platform_arm_om);