driver: uart: ns16550: convert to DT_INST_*
Change to code to use the automatically generated DT_INST_* defines and remove the now unneeded configs and fixups. Signed-off-by: Timo Teräs <timo.teras@iki.fi>
This commit is contained in:
parent
e740818093
commit
6fd168e9a1
49 changed files with 94 additions and 505 deletions
|
@ -31,30 +31,26 @@ MMU_BOOT_REGION(DT_INST_0_INTEL_HPET_BASE_ADDRESS, KB(4), MMU_ENTRY_WRITE);
|
|||
#endif /* CONFIG_HPET_TIMER */
|
||||
|
||||
/* for UARTs */
|
||||
#ifdef CONFIG_UART_NS16550
|
||||
|
||||
#ifdef CONFIG_UART_NS16550_PORT_0
|
||||
MMU_BOOT_REGION(DT_UART_NS16550_PORT_0_BASE_ADDR, 0x1000,
|
||||
#ifdef DT_INST_0_NS16550
|
||||
MMU_BOOT_REGION(DT_INST_0_NS16550_BASE_ADDRESS, 0x1000,
|
||||
(MMU_ENTRY_READ | MMU_ENTRY_WRITE));
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_UART_NS16550_PORT_1
|
||||
MMU_BOOT_REGION(DT_UART_NS16550_PORT_1_BASE_ADDR, 0x1000,
|
||||
#ifdef DT_INST_1_NS16550
|
||||
MMU_BOOT_REGION(DT_INST_1_NS16550_BASE_ADDRESS, 0x1000,
|
||||
(MMU_ENTRY_READ | MMU_ENTRY_WRITE));
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_UART_NS16550_PORT_2
|
||||
MMU_BOOT_REGION(DT_UART_NS16550_PORT_2_BASE_ADDR, 0x1000,
|
||||
#ifdef DT_INST_2_NS16550
|
||||
MMU_BOOT_REGION(DT_INST_2_NS16550_BASE_ADDRESS, 0x1000,
|
||||
(MMU_ENTRY_READ | MMU_ENTRY_WRITE));
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_UART_NS16550_PORT_3
|
||||
MMU_BOOT_REGION(DT_UART_NS16550_PORT_3_BASE_ADDR, 0x1000,
|
||||
#ifdef DT_INST_3_NS16550
|
||||
MMU_BOOT_REGION(DT_INST_3_NS16550_BASE_ADDRESS, 0x1000,
|
||||
(MMU_ENTRY_READ | MMU_ENTRY_WRITE));
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_UART_NS16550 */
|
||||
|
||||
/* for I2C controllers */
|
||||
#ifdef CONFIG_I2C
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue