]> rtime.felk.cvut.cz Git - l4.git/blob - kernel/fiasco/src/kern/arm/bsp/kirkwood/kernel_uart-arm-kirkwood.cpp
update
[l4.git] / kernel / fiasco / src / kern / arm / bsp / kirkwood / kernel_uart-arm-kirkwood.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 && kirkwood && serial]:
7
8 #include "mem_layout.h"
9 #include "kmem.h"
10
11 IMPLEMENT
12 bool Kernel_uart::startup(unsigned port, int /*irq*/)
13 {
14   return Uart::startup(Kmem::mmio_remap(Mem_layout::Uart_phys_base), 33);
15 }