Hi Platon,
Thanks for addressing my query...
I Have tried to enable PCIe in RC mode already, like your way. But u-boot log indicates it's not enabled yet.
If you look into RCW values, bits 128-133, serdes_prtcl: 0x0F and bits 264-267: all 0.
So i guess RCW is fine but still u-boot log says PCIe disabled.
Here is the log,
U-Boot 2013.01 (May 15 2019 - 17:57:51)
CPU0: P2040E, Version: 2.0, (0x82180020)
Core: E500MC, Version: 3.2, (0x80230032)
Clock Configuration:
CPU0:800 MHz, CPU1:800 MHz, CPU2:800 MHz, CPU3:800 MHz,
CCB:400 MHz,
DDR:400 MHz (800 MT/s data rate) (Asynchronous), LBC:50 MHz
FMAN1: 200 MHz
QMAN: 200 MHz
PME: 200 MHz
L1: D-cache 32 kB enabled
I-cache 32 kB enabled
Reset Configuration Word (RCW):
00000000: 4c180000 00000000 58540000 00000000 [0-127]
00000010: 3c8e90c0 f7c02000 de800000 04000000 [128-255]
00000020: 00000000 00000000 00000000 c8028300 [256-383]
00000030: 00000000 00000000 00000000 00000000 [384-511]
HNS_P0 Board: P2040, vBank: 0
I2C: ready
SPI: ready
DRAM: Initializing....using SPD
Detected UDIMM HMT451S6BFR8C-PB
2 GiB left unmapped
4 GiB (DDR3, 64-bit, CL=6, ECC off)
Testing 0x00000000 - 0x7fffffff
Testing 0x80000000 - 0xffffffff
Remap DDR 2 GiB left unmapped
POST memory PASSED
Flash: 128 MiB
L2: N/A
Corenet Platform Cache: 1024 KB enabled
Using SERDES configuration 0xf, lane settings:
SERDES: bank 3 disabled
SRIO1: disabled
SRIO2: disabled
NAND: 512 MiB
MMC: FSL_SDHC: 0
EEPROM: Invalid ID (ff ff ff ff)
GJ:PCIe3: disabled
In: serial
Out: serial
Err: serial
Net: Initializing Fman
sgmii interface @ DTSEC1
sgmii interface @ DTSEC2
sgmii interface @ DTSEC3
Fman1: Uploading microcode version 106.1.4
PHY reset timed out
FM1@DTSEC1 connected to Generic PHY at phy_addr:30
PHY reset timed out
FM1@DTSEC2 connected to Generic PHY at phy_addr:31
PHY reset timed out
FM1@DTSEC3 connected to Generic PHY at phy_addr:2
PHY reset timed out
PHY reset timed out
FM1@DTSEC1, FM1@DTSEC2 [PRIME], FM1@DTSEC3, ,
Hit any key to stop autoboot: 0
Pls let me know any more flags are required to set, if any.
Thanks...