This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux: How to detect GPIO level or read register value at very beginning of u-boot phase

Other Parts Discussed in Thread: DRA744, DRA746

Tool/software: Linux

Our processor is DRA74X, with 3.02.00.03 SDK version.

We have DRA744 & DRA746, i want to use different DDR configuration for different CPU at u-boot phase. Currently, i have two ideas,

1. Use GPIO, since our custom board have different GPIO value for different CPU, so if i can detect GPIO level, it'll be helpful.

2. Read the CTRL_WKUP_STD_FUSE_DIE_ID_2 register to get base_pn value, which can distinguish between DRA744 & DRA746.

Right now, i try these two ways at board_ti_get_emif_size() function of evm.c at u-boot, but fail. So, how can i know CPU type at very beginning of u-boot phase?

Regards,

Shawn