Skip to content

Commit

Permalink
ls7a_init: Deassert Lemote PCIE reset after clock up
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyGoat authored Aug 6, 2023
1 parent 5948804 commit c71741b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pmon/arch/mips/ls7a/ls7a_init.S
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,12 @@
and t1, t1, t2
sw t1, CONF_NB_OFFSET(t0)


#ifdef LEMOTE_PCIE_PERSTN
GPIO_SET_OUTPUT(1 << 4)
TTYDBG("Lemote PCIE PERST_N deasserted.\r\n")
#endif

//TTYDBG("PCIE clock status: \r\n")
//lw a0, 0x424(t0)
//bal hexserial
Expand Down Expand Up @@ -1078,11 +1084,6 @@ cal_one_pcie_x8:
TTYDBG("Graphics disabled.\r\n")
#endif

#ifdef LEMOTE_PCIE_PERSTN
GPIO_SET_OUTPUT(1 << 4)
TTYDBG("Lemote PCIE PERST_N deasserted.\r\n")
#endif

#define PCIE_TRY_GEN2 1
#define PCIE_TX_FULL_SWING 0
#define PCIE_STAT_CHECK_TIMES 100 //if some device link fail, maybe you can increase this value for try
Expand Down

0 comments on commit c71741b

Please sign in to comment.