SDK = ti-processor-sdk-linux-rt-am57xx-evm-05.03.00.07
u-boot = u-boot-2018.01+gitAUTOINC+313dcd69c2-ge2bc936055
cross compiler = arm-linux-gnueabihf-gcc
----------------------------------------------------------------------------------------------
I have a AM5728 custom board.
I want to change the UART default setting from UART3 to UART2.
My board does not have an eeprom.
1. Pinmux Setting
u-boot/board/ti/am57xx/mux_data.h
const struct pad_conf_entry core_padconf_array_essential_am572x_idk[] = {
...
{UART2_RXD, (M4 | PIN_INPUT)}, /* uart2_rxd.uart2_rxd */
{UART2_TXD, (M4 | PIN_OUTPUT)}, /* uart2_txd.uart2_txd */
...
}
2. Device Tree Setting
u-boot/arch/arm/dts/am57xx-idk-common.dtsi
...
chosen {
stdout-path = &uart2;
};
...
&uart2 {
status = "okay";
};
...
3. board_detect.c
u-boot/board/ti/common/board_detect.c
int __maybe_unused ti_i2c_eeprom_am_get(int bus_addr, int dev_addr)
{
...
if (rc)
strlcpy(ep->name, "AM572IDK", TI_EEPROM_HDR_NAME_LEN + 1);
else
strlcpy(ep->name, am_ep.name, TI_EEPROM_HDR_NAME_LEN + 1);
ep->header = am_ep.header;
ti_eeprom_string_cleanup(ep->name);
...
I want to know if there is something I need to set up besides this part.
