How to configure U-boot for LPUART2 for LS1020?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to configure U-boot for LPUART2 for LS1020?

668 Views
victormazin
Contributor II

Hi,

We have built a custom board using Rev 2.0 of the LS1020. We would like to use the LPUART2 port as the U-boot console. We used the LS1021A-IOT board as the reference board in our design.

How should we modify the U-boot configuration in order to use the LPUART2 port as the console?

We modified the RCW : UART_EXT = 001.

We added the line  #define CONFIG_LPUART in the include/configs/ls1021aiot.h file.

But we still do not receive any response from U-boot application.

Regards

Victor

0 Kudos
2 Replies

488 Views
Pavel
NXP Employee
NXP Employee

NXP SDK 1.9 and NXP SDK for LS1021A IAT board support LPUART as console.

Find the following setting in the u-boot configuration file for TWR-LS1021A board (ls1021atwr.h file)

#ifdef CONFIG_LPUART

#define CONFIG_EXTRA_ENV_SETTINGS \

                "bootargs=root=/dev/ram0 rw console=ttyLP0,115200\0" \

                "initrd_high=0xcfffffff\0"      \

                "fdt_high=0xcfffffff\0"


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

488 Views
victormazin
Contributor II

Hi Pavel,

Thank you for your answer.

Please consider that we would like to set U-boot console to LPUART2 port.

Our SDK for LS1021A-IOT board also has the same lines in the ls1021aiot.h file. We have defined CONFIG_LPUART (we included the #define CONFIG_LPUART line).

We changed the RCW: UART_EXT = 001

We activated the LPUART2 port in the ls1021a-iot.dts file for U-boot: &lpuart1 { status = "okay"; };

What do we need to do else in order to set U-boot console for LPUART2 port?

Regards

Victor

Victor Mazin

Software Application Developer

Phone: (905) 918-3098

Email:victor.m@arshon.COM

0 Kudos