]> rtime.felk.cvut.cz Git - l4.git/blob - kernel/fiasco/src/kern/arm/bsp/imx/kernel_uart-arm-imx.cpp
9ea1ffd74d81fb50975d8099d5634e2d5cc1aaf2
[l4.git] / kernel / fiasco / src / kern / arm / bsp / imx / kernel_uart-arm-imx.cpp
1 IMPLEMENTATION [arm && imx21 && serial]:
2
3 #include "mem_layout.h"
4
5 IMPLEMENT
6 bool Kernel_uart::startup(unsigned port, int /*irq*/)
7 {
8   if(port!=3) return false;
9   return Uart::startup(Mem_layout::Uart_base, 20);
10 }
11
12 IMPLEMENTATION [arm && imx51 && serial]:
13
14 #include "mem_layout.h"
15
16 IMPLEMENT
17 bool Kernel_uart::startup(unsigned port, int /*irq*/)
18 {
19   if(port!=3) return false;
20   return Uart::startup(Mem_layout::Uart_base, 31);
21 }