I am using the IDK AM5728 board. it uses UART3 for console by default .
I am trying to switch the console to UART0 by using VIN2A_D1/PR1_UART0_TX, VIN2A_D0/PR1_UART0_RXD in u-boot.
What should I do?
--------------------------------------------------------------------------------------------------------------
I tryed to set UART0 in u-boot =>
[include / configs / am57xx_evm.h]
#define CONSOLEDEV "ttyO0"
[ board/ti/am57xx/mux_data.h]
const struct pad_conf_entry core_padconf_array_essential_am572x_idk[] = {
...
- {UART2_CTSN, (M2 | PIN_INPUT)}, /* uart2_ctsn.uart3_rxd */
- {UART2_RTSN, (M1 | PIN_OUTPUT)}, /* uart2_rtsn.uart3_txd */
{VIN2A_D0, (M11 | PIN_INPUT)}, /* vin2a_d0.pr1_uart0_rxd */ (already setted.)
{VIN2A_D1, (M11 | PIN_OUTPUT)}, /* vin2a_d1.pr1_uart0_txd */ (already setted.)
...
}
const struct pad_conf_entry early_padconf[] = {
...
- {UART2_CTSN, (M2 | PIN_INPUT_SLEW)}, /* uart2_ctsn.uart3_rxd */
- {UART2_RTSN, (M1 | PIN_INPUT_SLEW)}, /* uart2_rtsn.uart3_txd */
+ {VIN2A_D0, (M11 | PIN_INPUT_SLEW)}, /* vin2a_d0.pr1_uart0_rxd */
+ {VIN2A_D1, (M11 | PIN_INPUT_SLEW)}, /* vin2a_d1.pr1_uart0_txd */
...
}
[u-boot/arch/arm/dts/am572x-idk.dtsi]
chosen {
- stdout-path = &uar3;
+ stdout-path = &uar1;
};
[u-boot/arch/arm/dts/am57xx-idk-common.dtsi]
&uart1 {
status = "okay";
&uart1 {
status = "okay";
- interrupts-extended = <&crossbar_mpu GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH &dra7_pmx_core 0x248>;
+ interrupts-extended = <&crossbar_mpu GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH &dra7_pmx_core 0x168>;
};
};
----------------------------------------------------------------------------------------------------------------
But the console has not diverted to UART0.
What should I do?
Please help.