Tool/software: Linux
Hi
I'm using custom AM5748 board and got U-boot working on COM3.
Now I tried COM8. Pinmux is set accordingly.
In defconfig I see that COM ports are restricted to 1..6.
So I changed Kconfig to allow 1..8 and set the CONFIG_CONS_INDEX to 8
I also tried to change UART in DT:
chosen {
stdout-path = &uart8;
};
and I did
&uart3 {
status = "disabled";
};
&uart8 {
status = "okay";
u-boot,dm-spl;
};
I did not work. Then I started the USB JAG debugger and found out that it hangs in ns_16550.c, line 173:
while (!(serial_in(&com_port->lsr) & UART_LSR_TEMT));
Also also saw that for UART3 there is an extra attribute "interrupts-extended", which is not present for COM8
&uart3 {
interrupts-extended = <&crossbar_mpu GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH
&dra7_pmx_core 0x248>;
Questions:
1) Should COM8 work at all with AM5748?
2) what is the correct way to change UART, using CONFIG_CONS_INDEX, or by modifying the device tree? I'm using .cfg based on tisdk_am57xx-evm-rt_defconfig, so "U-Boot config based on DT" is enabled.
3) why could it hang in the line stated?
Thanks, Chris
