]> rtime.felk.cvut.cz Git - l4.git/blob - kernel/fiasco/src/kern/arm/bsp/omap3/kernel_uart-arm-omap3.cpp
update
[l4.git] / kernel / fiasco / src / kern / arm / bsp / omap3 / kernel_uart-arm-omap3.cpp
1 INTERFACE:
2
3 // On ARM the MMIO for the uart is accessible before the MMU is fully up
4 EXTENSION class Kernel_uart { enum { Bsp_init_mode = Init_before_mmu }; };
5
6 IMPLEMENTATION [arm && omap3 && serial]:
7
8 #include "mem_layout.h"
9
10 IMPLEMENT
11 bool Kernel_uart::startup(unsigned port, int /*irq*/)
12 {
13   if(port!=3) return false;
14   return Uart::startup(Mem_layout::Uart_base, 123456);
15 }