3 * \brief Support for the rv platform
6 * \author Adam Lackorzynski <adam@os.inf.tu-dresden.de>
10 * (c) 2008-2011 Author(s)
11 * economic rights: Technische Universität Dresden (Germany)
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.
20 #include <l4/drivers/uart_pl011.h>
24 class Platform_arm_rv_vexpress : public Platform_single_region_ram
26 bool probe() { return true; }
30 unsigned long uart_base = 0x10009000;
32 asm volatile("mrc p15, 0, %0, c0, c0, 0" : "=r" (m));
33 if ((m & 0x00000070) == 0x70)
34 uart_base = 0x1c090000;
36 static L4::Io_register_block_mmio r(uart_base);
37 static L4::Uart_pl011 _uart(24019200);
39 set_stdio_uart(&_uart);
45 REGISTER_PLATFORM(Platform_arm_rv_vexpress);