2019-04-06 21:08:09 +08:00
|
|
|
/* SPDX-License-Identifier: Apache-2.0 */
|
|
|
|
|
2019-02-07 06:16:55 +08:00
|
|
|
/* This file is a temporary workaround for mapping of the generated information
|
|
|
|
* to the current driver definitions. This will be removed when the drivers
|
|
|
|
* are modified to handle the generated information, or the mapping of
|
|
|
|
* generated data matches the driver definitions.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#define DT_NUM_IRQ_PRIO_BITS DT_ARM_V7M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS
|
2019-07-17 23:45:25 +08:00
|
|
|
|
|
|
|
#if defined(DT_NS16550_400F2400_REG_SHIFT)
|
|
|
|
#define DT_NS16550_REG_SHIFT DT_NS16550_400F2400_REG_SHIFT
|
|
|
|
#elif defined(DT_NS16550_400F2800_REG_SHIFT)
|
|
|
|
#define DT_NS16550_REG_SHIFT DT_NS16550_400F2800_REG_SHIFT
|
|
|
|
#endif
|
|
|
|
|
2019-02-07 06:16:55 +08:00
|
|
|
#define DT_UART_NS16550_PORT_0_BASE_ADDR DT_NS16550_400F2400_BASE_ADDRESS
|
|
|
|
#define DT_UART_NS16550_PORT_0_CLK_FREQ 1843200
|
2019-02-26 06:26:03 +08:00
|
|
|
#define DT_UART_NS16550_PORT_0_NAME DT_NS16550_400F2400_LABEL
|
|
|
|
#define DT_UART_NS16550_PORT_0_BAUD_RATE DT_NS16550_400F2400_CURRENT_SPEED
|
2019-02-07 06:16:55 +08:00
|
|
|
#define DT_UART_NS16550_PORT_0_IRQ DT_NS16550_400F2400_IRQ_0
|
2019-07-25 04:37:46 +08:00
|
|
|
#define DT_UART_NS16550_PORT_0_IRQ_PRI DT_NS16550_400F2400_IRQ_0_PRIORITY
|
2019-02-07 06:16:55 +08:00
|
|
|
#define DT_UART_NS16550_PORT_0_IRQ_FLAGS 0 /* Deault */
|
|
|
|
|
|
|
|
#define DT_UART_NS16550_PORT_1_BASE_ADDR DT_NS16550_400F2800_BASE_ADDRESS
|
|
|
|
#define DT_UART_NS16550_PORT_1_CLK_FREQ 1843200
|
2019-02-26 06:26:03 +08:00
|
|
|
#define DT_UART_NS16550_PORT_1_NAME DT_NS16550_400F2800_LABEL
|
|
|
|
#define DT_UART_NS16550_PORT_1_BAUD_RATE DT_NS16550_400F2800_CURRENT_SPEED
|
2019-02-07 06:16:55 +08:00
|
|
|
#define DT_UART_NS16550_PORT_1_IRQ DT_NS16550_400F2800_IRQ_0
|
2019-07-25 04:37:46 +08:00
|
|
|
#define DT_UART_NS16550_PORT_1_IRQ_PRI DT_NS16550_400F2800_IRQ_0_PRIORITY
|
2019-02-07 06:16:55 +08:00
|
|
|
#define DT_UART_NS16550_PORT_1_IRQ_FLAGS 0 /* Default */
|