uart/ns16550: Use DT_ prefix for remaining device configs
Previous rename from CONFIG_* to DT_* left a few remaining CONFIG_*. So rename them manually now. Fix #13753 Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
dd5ff3957c
commit
603f068690
13 changed files with 98 additions and 98 deletions
|
@ -8,39 +8,39 @@
|
|||
|
||||
#ifdef CONFIG_SBL_FIXUP
|
||||
|
||||
#define DT_UART_NS16550_PORT_0_BASE_ADDR DT_NS16550_81434000_BASE_ADDRESS
|
||||
#define CONFIG_UART_NS16550_PORT_0_BAUD_RATE DT_NS16550_81434000_CURRENT_SPEED
|
||||
#define CONFIG_UART_NS16550_PORT_0_NAME DT_NS16550_81434000_LABEL
|
||||
#define DT_UART_NS16550_PORT_0_IRQ DT_NS16550_81434000_IRQ_0
|
||||
#define CONFIG_UART_NS16550_PORT_0_IRQ_PRI DT_NS16550_81434000_IRQ_0_PRIORITY
|
||||
#define DT_UART_NS16550_PORT_0_IRQ_FLAGS DT_NS16550_81434000_IRQ_0_SENSE
|
||||
#define DT_UART_NS16550_PORT_0_CLK_FREQ DT_NS16550_81434000_CLOCK_FREQUENCY
|
||||
#define DT_UART_NS16550_PORT_0_BASE_ADDR DT_NS16550_81434000_BASE_ADDRESS
|
||||
#define DT_UART_NS16550_PORT_0_BAUD_RATE DT_NS16550_81434000_CURRENT_SPEED
|
||||
#define DT_UART_NS16550_PORT_0_NAME DT_NS16550_81434000_LABEL
|
||||
#define DT_UART_NS16550_PORT_0_IRQ DT_NS16550_81434000_IRQ_0
|
||||
#define DT_UART_NS16550_PORT_0_IRQ_PRI DT_NS16550_81434000_IRQ_0_PRIORITY
|
||||
#define DT_UART_NS16550_PORT_0_IRQ_FLAGS DT_NS16550_81434000_IRQ_0_SENSE
|
||||
#define DT_UART_NS16550_PORT_0_CLK_FREQ DT_NS16550_81434000_CLOCK_FREQUENCY
|
||||
|
||||
#define DT_UART_NS16550_PORT_1_BASE_ADDR DT_NS16550_81432000_BASE_ADDRESS
|
||||
#define CONFIG_UART_NS16550_PORT_1_BAUD_RATE DT_NS16550_81432000_CURRENT_SPEED
|
||||
#define CONFIG_UART_NS16550_PORT_1_NAME DT_NS16550_81432000_LABEL
|
||||
#define DT_UART_NS16550_PORT_1_IRQ DT_NS16550_81432000_IRQ_0
|
||||
#define CONFIG_UART_NS16550_PORT_1_IRQ_PRI DT_NS16550_81432000_IRQ_0_PRIORITY
|
||||
#define DT_UART_NS16550_PORT_1_IRQ_FLAGS DT_NS16550_81432000_IRQ_0_SENSE
|
||||
#define DT_UART_NS16550_PORT_1_CLK_FREQ DT_NS16550_81432000_CLOCK_FREQUENCY
|
||||
#define DT_UART_NS16550_PORT_1_BASE_ADDR DT_NS16550_81432000_BASE_ADDRESS
|
||||
#define DT_UART_NS16550_PORT_1_BAUD_RATE DT_NS16550_81432000_CURRENT_SPEED
|
||||
#define DT_UART_NS16550_PORT_1_NAME DT_NS16550_81432000_LABEL
|
||||
#define DT_UART_NS16550_PORT_1_IRQ DT_NS16550_81432000_IRQ_0
|
||||
#define DT_UART_NS16550_PORT_1_IRQ_PRI DT_NS16550_81432000_IRQ_0_PRIORITY
|
||||
#define DT_UART_NS16550_PORT_1_IRQ_FLAGS DT_NS16550_81432000_IRQ_0_SENSE
|
||||
#define DT_UART_NS16550_PORT_1_CLK_FREQ DT_NS16550_81432000_CLOCK_FREQUENCY
|
||||
|
||||
#else
|
||||
|
||||
#define DT_UART_NS16550_PORT_0_BASE_ADDR DT_NS16550_91524000_BASE_ADDRESS
|
||||
#define CONFIG_UART_NS16550_PORT_0_BAUD_RATE DT_NS16550_91524000_CURRENT_SPEED
|
||||
#define CONFIG_UART_NS16550_PORT_0_NAME DT_NS16550_91524000_LABEL
|
||||
#define DT_UART_NS16550_PORT_0_IRQ DT_NS16550_91524000_IRQ_0
|
||||
#define CONFIG_UART_NS16550_PORT_0_IRQ_PRI DT_NS16550_91524000_IRQ_0_PRIORITY
|
||||
#define DT_UART_NS16550_PORT_0_IRQ_FLAGS DT_NS16550_91524000_IRQ_0_SENSE
|
||||
#define DT_UART_NS16550_PORT_0_CLK_FREQ DT_NS16550_91524000_CLOCK_FREQUENCY
|
||||
#define DT_UART_NS16550_PORT_0_BASE_ADDR DT_NS16550_91524000_BASE_ADDRESS
|
||||
#define DT_UART_NS16550_PORT_0_BAUD_RATE DT_NS16550_91524000_CURRENT_SPEED
|
||||
#define DT_UART_NS16550_PORT_0_NAME DT_NS16550_91524000_LABEL
|
||||
#define DT_UART_NS16550_PORT_0_IRQ DT_NS16550_91524000_IRQ_0
|
||||
#define DT_UART_NS16550_PORT_0_IRQ_PRI DT_NS16550_91524000_IRQ_0_PRIORITY
|
||||
#define DT_UART_NS16550_PORT_0_IRQ_FLAGS DT_NS16550_91524000_IRQ_0_SENSE
|
||||
#define DT_UART_NS16550_PORT_0_CLK_FREQ DT_NS16550_91524000_CLOCK_FREQUENCY
|
||||
|
||||
#define DT_UART_NS16550_PORT_1_BASE_ADDR DT_NS16550_91522000_BASE_ADDRESS
|
||||
#define CONFIG_UART_NS16550_PORT_1_BAUD_RATE DT_NS16550_91522000_CURRENT_SPEED
|
||||
#define CONFIG_UART_NS16550_PORT_1_NAME DT_NS16550_91522000_LABEL
|
||||
#define DT_UART_NS16550_PORT_1_IRQ DT_NS16550_91522000_IRQ_0
|
||||
#define CONFIG_UART_NS16550_PORT_1_IRQ_PRI DT_NS16550_91522000_IRQ_0_PRIORITY
|
||||
#define DT_UART_NS16550_PORT_1_IRQ_FLAGS DT_NS16550_91522000_IRQ_0_SENSE
|
||||
#define DT_UART_NS16550_PORT_1_CLK_FREQ DT_NS16550_91522000_CLOCK_FREQUENCY
|
||||
#define DT_UART_NS16550_PORT_1_BASE_ADDR DT_NS16550_91522000_BASE_ADDRESS
|
||||
#define DT_UART_NS16550_PORT_1_BAUD_RATE DT_NS16550_91522000_CURRENT_SPEED
|
||||
#define DT_UART_NS16550_PORT_1_NAME DT_NS16550_91522000_LABEL
|
||||
#define DT_UART_NS16550_PORT_1_IRQ DT_NS16550_91522000_IRQ_0
|
||||
#define DT_UART_NS16550_PORT_1_IRQ_PRI DT_NS16550_91522000_IRQ_0_PRIORITY
|
||||
#define DT_UART_NS16550_PORT_1_IRQ_FLAGS DT_NS16550_91522000_IRQ_0_SENSE
|
||||
#define DT_UART_NS16550_PORT_1_CLK_FREQ DT_NS16550_91522000_CLOCK_FREQUENCY
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -779,7 +779,7 @@ static struct uart_ns16550_dev_data_t uart_ns16550_dev_data_0 = {
|
|||
#endif /* CONFIG_UART_NS16550_PORT_0_PCI */
|
||||
|
||||
.port = DT_UART_NS16550_PORT_0_BASE_ADDR,
|
||||
.baud_rate = CONFIG_UART_NS16550_PORT_0_BAUD_RATE,
|
||||
.baud_rate = DT_UART_NS16550_PORT_0_BAUD_RATE,
|
||||
.options = CONFIG_UART_NS16550_PORT_0_OPTIONS,
|
||||
|
||||
#ifdef CONFIG_UART_NS16550_PORT_0_DLF
|
||||
|
@ -787,7 +787,7 @@ static struct uart_ns16550_dev_data_t uart_ns16550_dev_data_0 = {
|
|||
#endif
|
||||
};
|
||||
|
||||
DEVICE_AND_API_INIT(uart_ns16550_0, CONFIG_UART_NS16550_PORT_0_NAME, &uart_ns16550_init,
|
||||
DEVICE_AND_API_INIT(uart_ns16550_0, DT_UART_NS16550_PORT_0_NAME, &uart_ns16550_init,
|
||||
&uart_ns16550_dev_data_0, &uart_ns16550_dev_cfg_0,
|
||||
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
|
||||
&uart_ns16550_driver_api);
|
||||
|
@ -798,7 +798,7 @@ static void irq_config_func_0(struct device *dev)
|
|||
ARG_UNUSED(dev);
|
||||
|
||||
IRQ_CONNECT(DT_UART_NS16550_PORT_0_IRQ,
|
||||
CONFIG_UART_NS16550_PORT_0_IRQ_PRI,
|
||||
DT_UART_NS16550_PORT_0_IRQ_PRI,
|
||||
uart_ns16550_isr, DEVICE_GET(uart_ns16550_0),
|
||||
DT_UART_NS16550_PORT_0_IRQ_FLAGS);
|
||||
irq_enable(DT_UART_NS16550_PORT_0_IRQ);
|
||||
|
@ -833,7 +833,7 @@ static struct uart_ns16550_dev_data_t uart_ns16550_dev_data_1 = {
|
|||
#endif /* CONFIG_UART_NS16550_PORT_1_PCI */
|
||||
|
||||
.port = DT_UART_NS16550_PORT_1_BASE_ADDR,
|
||||
.baud_rate = CONFIG_UART_NS16550_PORT_1_BAUD_RATE,
|
||||
.baud_rate = DT_UART_NS16550_PORT_1_BAUD_RATE,
|
||||
.options = CONFIG_UART_NS16550_PORT_1_OPTIONS,
|
||||
|
||||
#ifdef CONFIG_UART_NS16550_PORT_1_DLF
|
||||
|
@ -841,7 +841,7 @@ static struct uart_ns16550_dev_data_t uart_ns16550_dev_data_1 = {
|
|||
#endif
|
||||
};
|
||||
|
||||
DEVICE_AND_API_INIT(uart_ns16550_1, CONFIG_UART_NS16550_PORT_1_NAME, &uart_ns16550_init,
|
||||
DEVICE_AND_API_INIT(uart_ns16550_1, DT_UART_NS16550_PORT_1_NAME, &uart_ns16550_init,
|
||||
&uart_ns16550_dev_data_1, &uart_ns16550_dev_cfg_1,
|
||||
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
|
||||
&uart_ns16550_driver_api);
|
||||
|
@ -852,7 +852,7 @@ static void irq_config_func_1(struct device *dev)
|
|||
ARG_UNUSED(dev);
|
||||
|
||||
IRQ_CONNECT(DT_UART_NS16550_PORT_1_IRQ,
|
||||
CONFIG_UART_NS16550_PORT_1_IRQ_PRI,
|
||||
DT_UART_NS16550_PORT_1_IRQ_PRI,
|
||||
uart_ns16550_isr, DEVICE_GET(uart_ns16550_1),
|
||||
DT_UART_NS16550_PORT_1_IRQ_FLAGS);
|
||||
irq_enable(DT_UART_NS16550_PORT_1_IRQ);
|
||||
|
@ -908,7 +908,7 @@ static void irq_config_func_2(struct device *dev)
|
|||
IRQ_CONNECT(DT_UART_NS16550_PORT_2_IRQ,
|
||||
DT_UART_NS16550_PORT_2_IRQ_PRI,
|
||||
uart_ns16550_isr, DEVICE_GET(uart_ns16550_2),
|
||||
CONFIG_UART_NS16550_PORT_2_IRQ_FLAGS);
|
||||
DT_UART_NS16550_PORT_2_IRQ_FLAGS);
|
||||
irq_enable(DT_UART_NS16550_PORT_2_IRQ);
|
||||
}
|
||||
#endif
|
||||
|
@ -922,7 +922,7 @@ static void irq_config_func_3(struct device *port);
|
|||
#endif
|
||||
|
||||
static const struct uart_ns16550_device_config uart_ns16550_dev_cfg_3 = {
|
||||
.sys_clk_freq = CONFIG_UART_NS16550_PORT_3_CLK_FREQ,
|
||||
.sys_clk_freq = DT_UART_NS16550_PORT_3_CLK_FREQ,
|
||||
|
||||
#ifdef CONFIG_UART_INTERRUPT_DRIVEN
|
||||
.irq_config_func = irq_config_func_3,
|
||||
|
@ -940,8 +940,8 @@ static struct uart_ns16550_dev_data_t uart_ns16550_dev_data_3 = {
|
|||
.pci_dev.bar = UART_NS16550_PORT_3_PCI_BAR,
|
||||
#endif /* CONFIG_UART_NS16550_PORT_3_PCI */
|
||||
|
||||
.port = CONFIG_UART_NS16550_PORT_3_BASE_ADDR,
|
||||
.baud_rate = CONFIG_UART_NS16550_PORT_3_BAUD_RATE,
|
||||
.port = DT_UART_NS16550_PORT_3_BASE_ADDR,
|
||||
.baud_rate = DT_UART_NS16550_PORT_3_BAUD_RATE,
|
||||
.options = CONFIG_UART_NS16550_PORT_3_OPTIONS,
|
||||
|
||||
#ifdef CONFIG_UART_NS16550_PORT_3_DLF
|
||||
|
@ -949,7 +949,7 @@ static struct uart_ns16550_dev_data_t uart_ns16550_dev_data_3 = {
|
|||
#endif
|
||||
};
|
||||
|
||||
DEVICE_AND_API_INIT(uart_ns16550_3, CONFIG_UART_NS16550_PORT_3_NAME, &uart_ns16550_init,
|
||||
DEVICE_AND_API_INIT(uart_ns16550_3, DT_UART_NS16550_PORT_3_NAME, &uart_ns16550_init,
|
||||
&uart_ns16550_dev_data_3, &uart_ns16550_dev_cfg_3,
|
||||
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
|
||||
&uart_ns16550_driver_api);
|
||||
|
@ -959,11 +959,11 @@ static void irq_config_func_3(struct device *dev)
|
|||
{
|
||||
ARG_UNUSED(dev);
|
||||
|
||||
IRQ_CONNECT(CONFIG_UART_NS16550_PORT_3_IRQ,
|
||||
CONFIG_UART_NS16550_PORT_3_IRQ_PRI,
|
||||
IRQ_CONNECT(DT_UART_NS16550_PORT_3_IRQ,
|
||||
DT_UART_NS16550_PORT_3_IRQ_PRI,
|
||||
uart_ns16550_isr, DEVICE_GET(uart_ns16550_3),
|
||||
CONFIG_UART_NS16550_PORT_3_IRQ_FLAGS);
|
||||
irq_enable(CONFIG_UART_NS16550_PORT_3_IRQ);
|
||||
DT_UART_NS16550_PORT_3_IRQ_FLAGS);
|
||||
irq_enable(DT_UART_NS16550_PORT_3_IRQ);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
@ -17,33 +17,33 @@
|
|||
* UART configuration
|
||||
*/
|
||||
#define DT_UART_NS16550_PORT_0_BASE_ADDR DT_NS16550_80014000_BASE_ADDRESS
|
||||
#define DT_UART_NS16550_PORT_0_IRQ DT_NS16550_80014000_IRQ_0
|
||||
#define DT_UART_NS16550_PORT_0_IRQ DT_NS16550_80014000_IRQ_0
|
||||
#define DT_UART_NS16550_PORT_0_CLK_FREQ DT_NS16550_80014000_CLOCK_FREQUENCY
|
||||
#define CONFIG_UART_NS16550_PORT_0_BAUD_RATE DT_NS16550_80014000_CURRENT_SPEED
|
||||
#define CONFIG_UART_NS16550_PORT_0_NAME DT_NS16550_80014000_LABEL
|
||||
#define CONFIG_UART_NS16550_PORT_0_IRQ_PRI DT_NS16550_80014000_IRQ_0_PRIORITY
|
||||
#define DT_UART_NS16550_PORT_0_BAUD_RATE DT_NS16550_80014000_CURRENT_SPEED
|
||||
#define DT_UART_NS16550_PORT_0_NAME DT_NS16550_80014000_LABEL
|
||||
#define DT_UART_NS16550_PORT_0_IRQ_PRI DT_NS16550_80014000_IRQ_0_PRIORITY
|
||||
|
||||
#define DT_UART_NS16550_PORT_1_BASE_ADDR DT_NS16550_80014100_BASE_ADDRESS
|
||||
#define DT_UART_NS16550_PORT_1_IRQ DT_NS16550_80014100_IRQ_0
|
||||
#define DT_UART_NS16550_PORT_1_IRQ DT_NS16550_80014100_IRQ_0
|
||||
#define DT_UART_NS16550_PORT_1_CLK_FREQ DT_NS16550_80014100_CLOCK_FREQUENCY
|
||||
#define CONFIG_UART_NS16550_PORT_1_BAUD_RATE DT_NS16550_80014100_CURRENT_SPEED
|
||||
#define CONFIG_UART_NS16550_PORT_1_NAME DT_NS16550_80014100_LABEL
|
||||
#define CONFIG_UART_NS16550_PORT_1_IRQ_PRI DT_NS16550_80014100_IRQ_0_PRIORITY
|
||||
#define DT_UART_NS16550_PORT_1_BAUD_RATE DT_NS16550_80014100_CURRENT_SPEED
|
||||
#define DT_UART_NS16550_PORT_1_NAME DT_NS16550_80014100_LABEL
|
||||
#define DT_UART_NS16550_PORT_1_IRQ_PRI DT_NS16550_80014100_IRQ_0_PRIORITY
|
||||
|
||||
#define DT_UART_NS16550_PORT_2_BASE_ADDR DT_NS16550_80014200_BASE_ADDRESS
|
||||
#define DT_UART_NS16550_PORT_2_IRQ DT_NS16550_80014200_IRQ_0
|
||||
#define DT_UART_NS16550_PORT_2_IRQ DT_NS16550_80014200_IRQ_0
|
||||
#define DT_UART_NS16550_PORT_2_CLK_FREQ DT_NS16550_80014200_CLOCK_FREQUENCY
|
||||
#define CONFIG_UART_NS16550_PORT_2_BAUD_RATE DT_NS16550_80014200_CURRENT_SPEED
|
||||
#define CONFIG_UART_NS16550_PORT_2_NAME DT_NS16550_80014200_LABEL
|
||||
#define CONFIG_UART_NS16550_PORT_2_IRQ_PRI DT_NS16550_80014200_IRQ_0_PRIORITY
|
||||
#define DT_UART_NS16550_PORT_2_BAUD_RATE DT_NS16550_80014200_CURRENT_SPEED
|
||||
#define DT_UART_NS16550_PORT_2_NAME DT_NS16550_80014200_LABEL
|
||||
#define DT_UART_NS16550_PORT_2_IRQ_PRI DT_NS16550_80014200_IRQ_0_PRIORITY
|
||||
|
||||
|
||||
#define DT_UART_NS16550_PORT_3_BASE_ADDR DT_NS16550_80014300_BASE_ADDRESS
|
||||
#define DT_UART_NS16550_PORT_3_IRQ DT_NS16550_80014300_IRQ_0
|
||||
#define DT_UART_NS16550_PORT_3_IRQ DT_NS16550_80014300_IRQ_0
|
||||
#define DT_UART_NS16550_PORT_3_CLK_FREQ DT_NS16550_80014300_CLOCK_FREQUENCY
|
||||
#define CONFIG_UART_NS16550_PORT_3_BAUD_RATE DT_NS16550_80014300_CURRENT_SPEED
|
||||
#define CONFIG_UART_NS16550_PORT_3_NAME DT_NS16550_80014300_LABEL
|
||||
#define CONFIG_UART_NS16550_PORT_3_IRQ_PRI DT_NS16550_80014300_IRQ_0_PRIORITY
|
||||
#define DT_UART_NS16550_PORT_3_BAUD_RATE DT_NS16550_80014300_CURRENT_SPEED
|
||||
#define DT_UART_NS16550_PORT_3_NAME DT_NS16550_80014300_LABEL
|
||||
#define DT_UART_NS16550_PORT_3_IRQ_PRI DT_NS16550_80014300_IRQ_0_PRIORITY
|
||||
|
||||
|
||||
/* End of SoC Level DTS fixup file */
|
||||
|
|
|
@ -13,16 +13,16 @@
|
|||
#define DT_UART_NS16550_PORT_0_BASE_ADDR DT_NS16550_F0008000_BASE_ADDRESS
|
||||
#define DT_UART_NS16550_PORT_0_IRQ DT_NS16550_F0008000_IRQ_0
|
||||
#define DT_UART_NS16550_PORT_0_CLK_FREQ DT_NS16550_F0008000_CLOCK_FREQUENCY
|
||||
#define CONFIG_UART_NS16550_PORT_0_BAUD_RATE DT_NS16550_F0008000_CURRENT_SPEED
|
||||
#define CONFIG_UART_NS16550_PORT_0_NAME DT_NS16550_F0008000_LABEL
|
||||
#define CONFIG_UART_NS16550_PORT_0_IRQ_PRI DT_NS16550_F0008000_IRQ_0_PRIORITY
|
||||
#define DT_UART_NS16550_PORT_0_BAUD_RATE DT_NS16550_F0008000_CURRENT_SPEED
|
||||
#define DT_UART_NS16550_PORT_0_NAME DT_NS16550_F0008000_LABEL
|
||||
#define DT_UART_NS16550_PORT_0_IRQ_PRI DT_NS16550_F0008000_IRQ_0_PRIORITY
|
||||
|
||||
#define DT_UART_NS16550_PORT_1_BASE_ADDR DT_NS16550_F0009000_BASE_ADDRESS
|
||||
#define DT_UART_NS16550_PORT_1_IRQ DT_NS16550_F0009000_IRQ_0
|
||||
#define DT_UART_NS16550_PORT_1_CLK_FREQ DT_NS16550_F0009000_CLOCK_FREQUENCY
|
||||
#define CONFIG_UART_NS16550_PORT_1_BAUD_RATE DT_NS16550_F0009000_CURRENT_SPEED
|
||||
#define CONFIG_UART_NS16550_PORT_1_NAME DT_NS16550_F0009000_LABEL
|
||||
#define CONFIG_UART_NS16550_PORT_1_IRQ_PRI DT_NS16550_F0009000_IRQ_0_PRIORITY
|
||||
#define DT_UART_NS16550_PORT_1_BAUD_RATE DT_NS16550_F0009000_CURRENT_SPEED
|
||||
#define DT_UART_NS16550_PORT_1_NAME DT_NS16550_F0009000_LABEL
|
||||
#define DT_UART_NS16550_PORT_1_IRQ_PRI DT_NS16550_F0009000_IRQ_0_PRIORITY
|
||||
|
||||
#define DT_UART_NS16550_PORT_2_BASE_ADDR DT_NS16550_F000A000_BASE_ADDRESS
|
||||
#define DT_UART_NS16550_PORT_2_IRQ DT_NS16550_F000A000_IRQ_0
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
*/
|
||||
#define DT_UART_NS16550_PORT_0_IRQ_FLAGS 0 /* Default */
|
||||
#define DT_UART_NS16550_PORT_1_IRQ_FLAGS 0 /* Default */
|
||||
#define CONFIG_UART_NS16550_PORT_2_IRQ_FLAGS 0 /* Default */
|
||||
#define DT_UART_NS16550_PORT_2_IRQ_FLAGS 0 /* Default */
|
||||
|
||||
#ifndef CONFIG_HAS_DTS
|
||||
/* I2C */
|
||||
|
|
|
@ -9,16 +9,16 @@
|
|||
#define CONFIG_NS16550_REG_SHIFT DT_NS16550_400F2400_REG_SHIFT
|
||||
#define DT_UART_NS16550_PORT_0_BASE_ADDR DT_NS16550_400F2400_BASE_ADDRESS
|
||||
#define DT_UART_NS16550_PORT_0_CLK_FREQ 1843200
|
||||
#define CONFIG_UART_NS16550_PORT_0_NAME DT_NS16550_400F2400_LABEL
|
||||
#define CONFIG_UART_NS16550_PORT_0_BAUD_RATE DT_NS16550_400F2400_CURRENT_SPEED
|
||||
#define DT_UART_NS16550_PORT_0_NAME DT_NS16550_400F2400_LABEL
|
||||
#define DT_UART_NS16550_PORT_0_BAUD_RATE DT_NS16550_400F2400_CURRENT_SPEED
|
||||
#define DT_UART_NS16550_PORT_0_IRQ DT_NS16550_400F2400_IRQ_0
|
||||
#define CONFIG_UART_NS16550_PORT_0_IRQ_PRI DT_NS16550_0_IRQ_0_PRIORITY
|
||||
#define DT_UART_NS16550_PORT_0_IRQ_PRI DT_NS16550_0_IRQ_0_PRIORITY
|
||||
#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
|
||||
#define CONFIG_UART_NS16550_PORT_1_NAME DT_NS16550_400F2800_LABEL
|
||||
#define CONFIG_UART_NS16550_PORT_1_BAUD_RATE DT_NS16550_400F2800_CURRENT_SPEED
|
||||
#define DT_UART_NS16550_PORT_1_NAME DT_NS16550_400F2800_LABEL
|
||||
#define DT_UART_NS16550_PORT_1_BAUD_RATE DT_NS16550_400F2800_CURRENT_SPEED
|
||||
#define DT_UART_NS16550_PORT_1_IRQ DT_NS16550_400F2800_IRQ_0
|
||||
#define CONFIG_UART_NS16550_PORT_1_IRQ_PRI DT_NS16550_1_IRQ_0_PRIORITY
|
||||
#define DT_UART_NS16550_PORT_1_IRQ_PRI DT_NS16550_1_IRQ_0_PRIORITY
|
||||
#define DT_UART_NS16550_PORT_1_IRQ_FLAGS 0 /* Default */
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#define CONFIG_UART_NS16550_PORT_0_BAUD_RATE DT_NS16550_440000_CURRENT_SPEED
|
||||
#define DT_UART_NS16550_PORT_0_BAUD_RATE DT_NS16550_440000_CURRENT_SPEED
|
||||
|
||||
#define CONFIG_UART_NS16550_PORT_0_NAME DT_NS16550_440000_LABEL
|
||||
#define DT_UART_NS16550_PORT_0_NAME DT_NS16550_440000_LABEL
|
||||
|
||||
#define _RAM_ADDR CONFIG_SRAM_BASE_ADDRESS
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#define CONFIG_UART_NS16550_PORT_0_BAUD_RATE DT_NS16550_F0008000_CURRENT_SPEED
|
||||
#define DT_UART_NS16550_PORT_0_BAUD_RATE DT_NS16550_F0008000_CURRENT_SPEED
|
||||
|
||||
#define CONFIG_UART_NS16550_PORT_0_NAME DT_NS16550_F0008000_LABEL
|
||||
#define DT_UART_NS16550_PORT_0_NAME DT_NS16550_F0008000_LABEL
|
||||
|
||||
#define _RAM_ADDR CONFIG_SRAM_BASE_ADDRESS
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ MMU_BOOT_REGION(DT_UART_NS16550_PORT_2_BASE_ADDR, 0x1000,
|
|||
#endif
|
||||
|
||||
#ifdef CONFIG_UART_NS16550_PORT_3
|
||||
MMU_BOOT_REGION(CONFIG_UART_NS16550_PORT_3_BASE_ADDR, 0x1000,
|
||||
MMU_BOOT_REGION(DT_UART_NS16550_PORT_3_BASE_ADDR, 0x1000,
|
||||
(MMU_ENTRY_READ | MMU_ENTRY_WRITE));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
/* SoC level DTS fixup file */
|
||||
|
||||
#define DT_UART_NS16550_PORT_0_BASE_ADDR DT_NS16550_3F8_BASE_ADDRESS
|
||||
#define CONFIG_UART_NS16550_PORT_0_BAUD_RATE DT_NS16550_3F8_CURRENT_SPEED
|
||||
#define CONFIG_UART_NS16550_PORT_0_NAME DT_NS16550_3F8_LABEL
|
||||
#define DT_UART_NS16550_PORT_0_BAUD_RATE DT_NS16550_3F8_CURRENT_SPEED
|
||||
#define DT_UART_NS16550_PORT_0_NAME DT_NS16550_3F8_LABEL
|
||||
#define DT_UART_NS16550_PORT_0_IRQ DT_NS16550_3F8_IRQ_0
|
||||
#define CONFIG_UART_NS16550_PORT_0_IRQ_PRI DT_NS16550_3F8_IRQ_0_PRIORITY
|
||||
#define DT_UART_NS16550_PORT_0_IRQ_PRI DT_NS16550_3F8_IRQ_0_PRIORITY
|
||||
#define DT_UART_NS16550_PORT_0_IRQ_FLAGS DT_NS16550_3F8_IRQ_0_SENSE
|
||||
#define DT_UART_NS16550_PORT_0_CLK_FREQ DT_NS16550_3F8_CLOCK_FREQUENCY
|
||||
|
||||
#define DT_UART_NS16550_PORT_1_BASE_ADDR DT_NS16550_2F8_BASE_ADDRESS
|
||||
#define CONFIG_UART_NS16550_PORT_1_BAUD_RATE DT_NS16550_2F8_CURRENT_SPEED
|
||||
#define CONFIG_UART_NS16550_PORT_1_NAME DT_NS16550_2F8_LABEL
|
||||
#define DT_UART_NS16550_PORT_1_BAUD_RATE DT_NS16550_2F8_CURRENT_SPEED
|
||||
#define DT_UART_NS16550_PORT_1_NAME DT_NS16550_2F8_LABEL
|
||||
#define DT_UART_NS16550_PORT_1_IRQ DT_NS16550_2F8_IRQ_0
|
||||
#define CONFIG_UART_NS16550_PORT_1_IRQ_PRI DT_NS16550_2F8_IRQ_0_PRIORITY
|
||||
#define DT_UART_NS16550_PORT_1_IRQ_PRI DT_NS16550_2F8_IRQ_0_PRIORITY
|
||||
#define DT_UART_NS16550_PORT_1_IRQ_FLAGS DT_NS16550_2F8_IRQ_0_SENSE
|
||||
#define DT_UART_NS16550_PORT_1_CLK_FREQ DT_NS16550_2F8_CLOCK_FREQUENCY
|
||||
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
/* SoC level DTS fixup file */
|
||||
|
||||
#define DT_UART_NS16550_PORT_0_BASE_ADDR DT_NS16550_3F8_BASE_ADDRESS
|
||||
#define CONFIG_UART_NS16550_PORT_0_BAUD_RATE DT_NS16550_3F8_CURRENT_SPEED
|
||||
#define CONFIG_UART_NS16550_PORT_0_NAME DT_NS16550_3F8_LABEL
|
||||
#define DT_UART_NS16550_PORT_0_BAUD_RATE DT_NS16550_3F8_CURRENT_SPEED
|
||||
#define DT_UART_NS16550_PORT_0_NAME DT_NS16550_3F8_LABEL
|
||||
#define DT_UART_NS16550_PORT_0_IRQ DT_NS16550_3F8_IRQ_0
|
||||
#define CONFIG_UART_NS16550_PORT_0_IRQ_PRI DT_NS16550_3F8_IRQ_0_PRIORITY
|
||||
#define DT_UART_NS16550_PORT_0_IRQ_PRI DT_NS16550_3F8_IRQ_0_PRIORITY
|
||||
#define DT_UART_NS16550_PORT_0_IRQ_FLAGS DT_NS16550_3F8_IRQ_0_SENSE
|
||||
#define DT_UART_NS16550_PORT_0_CLK_FREQ DT_NS16550_3F8_CLOCK_FREQUENCY
|
||||
|
||||
#define DT_UART_NS16550_PORT_1_BASE_ADDR DT_NS16550_2F8_BASE_ADDRESS
|
||||
#define CONFIG_UART_NS16550_PORT_1_BAUD_RATE DT_NS16550_2F8_CURRENT_SPEED
|
||||
#define CONFIG_UART_NS16550_PORT_1_NAME DT_NS16550_2F8_LABEL
|
||||
#define DT_UART_NS16550_PORT_1_BAUD_RATE DT_NS16550_2F8_CURRENT_SPEED
|
||||
#define DT_UART_NS16550_PORT_1_NAME DT_NS16550_2F8_LABEL
|
||||
#define DT_UART_NS16550_PORT_1_IRQ DT_NS16550_2F8_IRQ_0
|
||||
#define CONFIG_UART_NS16550_PORT_1_IRQ_PRI DT_NS16550_2F8_IRQ_0_PRIORITY
|
||||
#define DT_UART_NS16550_PORT_1_IRQ_PRI DT_NS16550_2F8_IRQ_0_PRIORITY
|
||||
#define DT_UART_NS16550_PORT_1_IRQ_FLAGS DT_NS16550_2F8_IRQ_0_SENSE
|
||||
#define DT_UART_NS16550_PORT_1_CLK_FREQ DT_NS16550_2F8_CLOCK_FREQUENCY
|
||||
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
#define DT_UART_NS16550_PORT_0_BASE_ADDR DT_NS16550_9000F000_BASE_ADDRESS
|
||||
#define CONFIG_UART_NS16550_PORT_0_BAUD_RATE DT_NS16550_9000F000_CURRENT_SPEED
|
||||
#define CONFIG_UART_NS16550_PORT_0_NAME DT_NS16550_9000F000_LABEL
|
||||
#define DT_UART_NS16550_PORT_0_BAUD_RATE DT_NS16550_9000F000_CURRENT_SPEED
|
||||
#define DT_UART_NS16550_PORT_0_NAME DT_NS16550_9000F000_LABEL
|
||||
#define DT_UART_NS16550_PORT_0_IRQ DT_NS16550_9000F000_IRQ_0
|
||||
#define CONFIG_UART_NS16550_PORT_0_IRQ_PRI DT_NS16550_9000F000_IRQ_0_PRIORITY
|
||||
#define DT_UART_NS16550_PORT_0_IRQ_PRI DT_NS16550_9000F000_IRQ_0_PRIORITY
|
||||
#define DT_UART_NS16550_PORT_0_IRQ_FLAGS DT_NS16550_9000F000_IRQ_0_SENSE
|
||||
#define DT_UART_NS16550_PORT_0_CLK_FREQ DT_NS16550_9000F000_CLOCK_FREQUENCY
|
||||
|
||||
#define DT_UART_NS16550_PORT_1_BASE_ADDR DT_NS16550_9000B000_BASE_ADDRESS
|
||||
#define CONFIG_UART_NS16550_PORT_1_BAUD_RATE DT_NS16550_9000B000_CURRENT_SPEED
|
||||
#define CONFIG_UART_NS16550_PORT_1_NAME DT_NS16550_9000B000_LABEL
|
||||
#define DT_UART_NS16550_PORT_1_BAUD_RATE DT_NS16550_9000B000_CURRENT_SPEED
|
||||
#define DT_UART_NS16550_PORT_1_NAME DT_NS16550_9000B000_LABEL
|
||||
#define DT_UART_NS16550_PORT_1_IRQ DT_NS16550_9000B000_IRQ_0
|
||||
#define CONFIG_UART_NS16550_PORT_1_IRQ_PRI DT_NS16550_9000B000_IRQ_0_PRIORITY
|
||||
#define DT_UART_NS16550_PORT_1_IRQ_PRI DT_NS16550_9000B000_IRQ_0_PRIORITY
|
||||
#define DT_UART_NS16550_PORT_1_IRQ_FLAGS DT_NS16550_9000B000_IRQ_0_SENSE
|
||||
#define DT_UART_NS16550_PORT_1_CLK_FREQ DT_NS16550_9000B000_CLOCK_FREQUENCY
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
/* SoC level DTS fixup file */
|
||||
|
||||
#define DT_UART_NS16550_PORT_0_BASE_ADDR DT_NS16550_80800_BASE_ADDRESS
|
||||
#define CONFIG_UART_NS16550_PORT_0_BAUD_RATE DT_NS16550_80800_CURRENT_SPEED
|
||||
#define CONFIG_UART_NS16550_PORT_0_NAME DT_NS16550_80800_LABEL
|
||||
#define DT_UART_NS16550_PORT_0_BAUD_RATE DT_NS16550_80800_CURRENT_SPEED
|
||||
#define DT_UART_NS16550_PORT_0_NAME DT_NS16550_80800_LABEL
|
||||
#define DT_UART_NS16550_PORT_0_IRQ DT_NS16550_80800_IRQ_0
|
||||
#define CONFIG_UART_NS16550_PORT_0_IRQ_PRI DT_NS16550_80800_IRQ_0_PRIORITY
|
||||
#define DT_UART_NS16550_PORT_0_IRQ_PRI DT_NS16550_80800_IRQ_0_PRIORITY
|
||||
#define DT_UART_NS16550_PORT_0_IRQ_FLAGS DT_NS16550_80800_IRQ_0_SENSE
|
||||
#define DT_UART_NS16550_PORT_0_CLK_FREQ DT_NS16550_80800_CLOCK_FREQUENCY
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue