]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/bootstrap/server/src/platform/rpi.cc
update
[l4.git] / l4 / pkg / bootstrap / server / src / platform / rpi.cc
1 /*!
2  * \file   rpi.cc
3  * \brief  Support for the Raspberry Pi
4  *
5  * \date   2013
6  * \author Adam Lackorzynski <adam@os.inf.tu-dresden.de>
7  *
8  */
9 /*
10  * (c) 2013 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 "support.h"
19 #include <l4/drivers/uart_pl011.h>
20
21 namespace {
22
23 class Platform_arm_rpi : public Platform_single_region_ram
24 {
25   bool probe() { return true; }
26
27   void init()
28   {
29     static L4::Io_register_block_mmio r(0x20201000);
30     static L4::Uart_pl011 _uart(3000000);
31     _uart.startup(&r);
32     set_stdio_uart(&_uart);
33   }
34 };
35 }
36
37 REGISTER_PLATFORM(Platform_arm_rpi);