mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-31 16:35:28 +00:00
parent
4f69bd9fb8
commit
8eba4440eb
@ -15,7 +15,7 @@
|
||||
#ifndef _INCLUDE__PLATFORM__PANDABOARD__UART_DEFS_H_
|
||||
#define _INCLUDE__PLATFORM__PANDABOARD__UART_DEFS_H_
|
||||
|
||||
#include <platform/panda/drivers/board.h>
|
||||
#include <platform/panda/drivers/board_base.h>
|
||||
|
||||
enum {
|
||||
/** Number of UARTs */
|
||||
@ -30,10 +30,10 @@ static struct Omap_uart_cfg {
|
||||
Genode::size_t mmio_size;
|
||||
int irq_number;
|
||||
} omap_uart_cfg[UARTS_NUM] = {
|
||||
{ Genode::Board::TL16C750_1_MMIO_BASE, Genode::Board::TL16C750_MMIO_SIZE, Genode::Board::TL16C750_1_IRQ + 32 },
|
||||
{ Genode::Board::TL16C750_2_MMIO_BASE, Genode::Board::TL16C750_MMIO_SIZE, Genode::Board::TL16C750_2_IRQ + 32 },
|
||||
{ Genode::Board::TL16C750_3_MMIO_BASE, Genode::Board::TL16C750_MMIO_SIZE, Genode::Board::TL16C750_3_IRQ + 32 },
|
||||
{ Genode::Board::TL16C750_4_MMIO_BASE, Genode::Board::TL16C750_MMIO_SIZE, Genode::Board::TL16C750_4_IRQ + 32 },
|
||||
{ Genode::Board_base::TL16C750_1_MMIO_BASE, Genode::Board_base::TL16C750_MMIO_SIZE, Genode::Board_base::TL16C750_1_IRQ + 32 },
|
||||
{ Genode::Board_base::TL16C750_2_MMIO_BASE, Genode::Board_base::TL16C750_MMIO_SIZE, Genode::Board_base::TL16C750_2_IRQ + 32 },
|
||||
{ Genode::Board_base::TL16C750_3_MMIO_BASE, Genode::Board_base::TL16C750_MMIO_SIZE, Genode::Board_base::TL16C750_3_IRQ + 32 },
|
||||
{ Genode::Board_base::TL16C750_4_MMIO_BASE, Genode::Board_base::TL16C750_MMIO_SIZE, Genode::Board_base::TL16C750_4_IRQ + 32 },
|
||||
};
|
||||
|
||||
#endif /* _INCLUDE__PLATFORM__PANDABOARD__UART_DEFS_H_ */
|
||||
|
@ -69,7 +69,7 @@ class Omap_uart : public Genode::Tl16c750_base, public Uart::Driver, public Geno
|
||||
Omap_uart(Genode::Attached_io_mem_dataspace *uart_mmio, int irq_number,
|
||||
unsigned baud_rate, Uart::Char_avail_callback &callback)
|
||||
:
|
||||
Tl16c750_base((Genode::addr_t)uart_mmio->local_addr<void>(), Genode::Board::TL16C750_CLOCK, baud_rate),
|
||||
Tl16c750_base((Genode::addr_t)uart_mmio->local_addr<void>(), Genode::Board_base::TL16C750_CLOCK, baud_rate),
|
||||
_uart_mmio(*uart_mmio),
|
||||
_char_avail_callback(callback),
|
||||
_irq_activation(irq_number, *this, IRQ_STACK_SIZE)
|
||||
@ -99,7 +99,7 @@ class Omap_uart : public Genode::Tl16c750_base, public Uart::Driver, public Geno
|
||||
|
||||
void baud_rate(int bits_per_second)
|
||||
{
|
||||
_init(Genode::Board::TL16C750_CLOCK, bits_per_second);
|
||||
_init(Genode::Board_base::TL16C750_CLOCK, bits_per_second);
|
||||
_enable_rx_interrupt();
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user