Browse Source

bug fix and code optimize.

1. Fix PCIE controller mode switch introduced PCIE device abnormal.
2. Add GMAC disable option.

Change-Id: Ie9c783e0fb9e13c944db8bcc7ccd4b0c2c5cc8e9
master
Chen Xinke 6 years ago
committed by zhangbaoqi
parent
commit
09e37faa99
  1. 17
      Targets/Bonito3a3000_7a/Bonito/ls7a_config.h
  2. 1549
      pmon/arch/mips/ls7a/ls7a_init.S

17
Targets/Bonito3a3000_7a/Bonito/ls7a_config.h

@ -32,8 +32,6 @@
#define LS3A_HT1_SOFT_FREQ_CFG (LS3A_HT_PLL_1600M | (0x1 << 1))
#endif
#define LS7A_GRAPHICS_DISABLE 0
//if board use PCIE PortN but PRSNTnN is not correctly pull down or is connected to socket which will use a wider card than the socket,
//you need force enable PortN by define the macro bellow.
//N is 1 for PCIE F1/G0/G1/H and 1/2/3 for PCIE F0
@ -43,11 +41,22 @@
//#define FORCE_ENABLE_PCIE_G1_P1
//#define FORCE_ENABLE_PCIE_H_P1
#define LS7A_GRAPHICS_DISABLE 0
//staticly disable some PCIE Ports, no matter whether there is device
#define LS7A_PCIE_F0_DISABLE 0
#define LS7A_PCIE_F1_DISABLE 0
#define LS7A_PCIE_H_DISABLE 0
#define LS7A_PCIE_G0_DISABLE 0
#define LS7A_PCIE_G1_DISABLE 0
#define LS7A_SATA0_DISABLE 0
#define LS7A_SATA1_DISABLE 0
#define LS7A_SATA2_DISABLE 0
#define LS7A_SATA1_DISABLE (LS7A_SATA0_DISABLE | 0)
#define LS7A_SATA2_DISABLE (LS7A_SATA1_DISABLE | 0)
#define LS7A_USB0_DISABLE 0
#define LS7A_USB1_DISABLE 0
#define LS7A_GMAC0_DISABLE 0
#define LS7A_GMAC1_DISABLE (LS7A_GMAC0_DISABLE | 0)
#define LS7A_LPC_DISABLE 1
//#define USE_PCIE_PAD_REFCLK

1549
pmon/arch/mips/ls7a/ls7a_init.S

File diff suppressed because it is too large
Loading…
Cancel
Save