3 * \brief Support for Exynos platforms
5 * \author Adam Lackorzynski <adam@os.inf.tu-dresden.de>
10 * economic rights: Technische Universität Dresden (Germany)
12 * This file is part of TUD:OS and distributed under the terms of the
13 * GNU General Public License 2.
14 * Please see the COPYING-GPL-2 file for details.
18 #include <l4/drivers/uart_s3c2410.h>
23 class Platform_arm_exynos : public Platform_single_region_ram
26 bool probe() { return true; }
30 static L4::Uart_s5pv210 _uart;
31 const unsigned long uart_offset = 0x10000;
32 unsigned long uart_base;
35 #ifdef PLATFORM_TYPE_exynos4
36 uart_base = 0x13800000;
38 uart_base = 0x12c00000;
41 static L4::Io_register_block_mmio r(uart_base + uart_nr * uart_offset);
43 set_stdio_uart(&_uart);
48 #ifdef PLATFORM_TYPE_exynos4
49 *(unsigned *)0x10020400 = 1;
51 *(unsigned *)0x10040400 = 1;
58 REGISTER_PLATFORM(Platform_arm_exynos);