]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/bootstrap_custom/server/src/platform/pxa.cc
fiasco: bootstrap: Try to launch bootstrap in real mode. Gives an error with PIO...
[l4.git] / l4 / pkg / bootstrap_custom / server / src / platform / pxa.cc
1 /*!
2  * \file   support_pxa.cc
3  * \brief  Support for the PXA platform
4  *
5  * \date   2008-01-04
6  * \author Adam Lackorzynski <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 #include "mmio_16550.h"
19 #include "support.h"
20
21 namespace {
22 class Platform_arm_pxa : public Platform_single_region_ram
23 {
24   bool probe() { return true; }
25
26   void init()
27   {
28     kuart.base_address = 0x40100000;
29     kuart.reg_shift    = 2;
30     kuart.base_baud    = L4::Uart_16550::Base_rate_pxa;
31     kuart.baud         = 115200;
32     kuart.irqno        = -1;
33     static L4::Uart_16550 _uart(kuart.base_baud, 0, 1 << 6, 0, 0);
34     setup_16550_mmio_uart(&_uart);
35   }
36 };
37 }
38
39 REGISTER_PLATFORM(Platform_arm_pxa);