mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 05:31:32 +00:00
ARM: keystone2: Fix serial port init
With CONFIG_DM_SERIAL is enabled NS16550_init() cannot be called directly. Driver probe should be taking care of this. So call this function only when DM_SERIAL is not enabled. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
This commit is contained in:
parent
0b06932cc3
commit
8c80b1937b
1 changed files with 2 additions and 0 deletions
|
@ -122,8 +122,10 @@ int arch_cpu_init(void)
|
||||||
* UART register PWREMU_MGMT is initialized. Linux UART
|
* UART register PWREMU_MGMT is initialized. Linux UART
|
||||||
* driver doesn't handle this.
|
* driver doesn't handle this.
|
||||||
*/
|
*/
|
||||||
|
#ifndef CONFIG_DM_SERIAL
|
||||||
NS16550_init((NS16550_t)(CONFIG_SYS_NS16550_COM2),
|
NS16550_init((NS16550_t)(CONFIG_SYS_NS16550_COM2),
|
||||||
CONFIG_SYS_NS16550_CLK / 16 / CONFIG_BAUDRATE);
|
CONFIG_SYS_NS16550_CLK / 16 / CONFIG_BAUDRATE);
|
||||||
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue