3 * \brief Support for the i.MX platform
6 * \author Adam Lackorznynski <adam@os.inf.tu-dresden.de>
10 * (c) 2008-2009 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.
19 #include <l4/drivers/uart_imx.h>
22 class Platform_arm_imx : public Platform_single_region_ram
24 bool probe() { return true; }
28 #ifdef PLATFORM_TYPE_imx21
29 static L4::Uart_imx21 _uart(0, 0);
30 _uart.startup(0x1000A000);
31 #elif defined(PLATFORM_TYPE_imx35)
32 static L4::Uart_imx35 _uart(0, 0);
33 _uart.startup(0x43f90000); // UART-1
34 //_uart.startup(0x43f94000); // UART-2
35 //_uart.startup(0x5000c000); // UART-3
36 #elif defined(PLATFORM_TYPE_imx51)
37 static L4::Uart_imx51 _uart(0, 0);
38 _uart.startup(0x73fbc000);
40 #error Which platform type?
42 set_stdio_uart(&_uart);
47 REGISTER_PLATFORM(Platform_arm_imx);