]> rtime.felk.cvut.cz Git - l4.git/blob - kernel/fiasco/src/kern/arm/bsp/sa1100/kernel_uart-arm-sa1100.cpp
update
[l4.git] / kernel / fiasco / src / kern / arm / bsp / sa1100 / kernel_uart-arm-sa1100.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 && sa1100 && serial]:
7
8 #include "kmem.h"
9 #include "mem_layout.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), 17);
15 }