2012-12-20 09:59:47 +00:00
|
|
|
/*
|
|
|
|
* \brief OMAP4 UART definitions
|
|
|
|
* \author Ivan Loskutov <ivan.loskutov@ksyslabs.org>
|
|
|
|
* \date 2012-11-08
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2012 Ksys Labs LLC
|
2013-01-10 20:44:47 +00:00
|
|
|
* Copyright (C) 2011-2013 Genode Labs GmbH
|
2012-12-20 09:59:47 +00:00
|
|
|
*
|
|
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
|
|
* under the terms of the GNU General Public License version 2.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _INCLUDE__PLATFORM__PANDABOARD__UART_DEFS_H_
|
|
|
|
#define _INCLUDE__PLATFORM__PANDABOARD__UART_DEFS_H_
|
|
|
|
|
2013-01-23 13:31:05 +00:00
|
|
|
#include <platform/panda/drivers/board_base.h>
|
2012-12-20 09:59:47 +00:00
|
|
|
|
|
|
|
enum {
|
|
|
|
/** Number of UARTs */
|
|
|
|
UARTS_NUM = 4,
|
|
|
|
|
|
|
|
BAUD_115200 = 26,
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
static struct Omap_uart_cfg {
|
|
|
|
Genode::addr_t mmio_base;
|
|
|
|
Genode::size_t mmio_size;
|
|
|
|
int irq_number;
|
|
|
|
} omap_uart_cfg[UARTS_NUM] = {
|
2013-01-23 13:31:05 +00:00
|
|
|
{ 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 },
|
2012-12-20 09:59:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* _INCLUDE__PLATFORM__PANDABOARD__UART_DEFS_H_ */
|