File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 31
31
#define PORT_LINK_MODE_1_LANES (0x1 << 16)
32
32
#define PORT_LINK_MODE_2_LANES (0x3 << 16)
33
33
#define PORT_LINK_MODE_4_LANES (0x7 << 16)
34
+ #define PORT_LINK_MODE_8_LANES (0xf << 16)
34
35
35
36
#define PCIE_LINK_WIDTH_SPEED_CONTROL 0x80C
36
37
#define PORT_LOGIC_SPEED_CHANGE (0x1 << 17)
37
38
#define PORT_LOGIC_LINK_WIDTH_MASK (0x1ff << 8)
38
39
#define PORT_LOGIC_LINK_WIDTH_1_LANES (0x1 << 8)
39
40
#define PORT_LOGIC_LINK_WIDTH_2_LANES (0x2 << 8)
40
41
#define PORT_LOGIC_LINK_WIDTH_4_LANES (0x4 << 8)
42
+ #define PORT_LOGIC_LINK_WIDTH_8_LANES (0x8 << 8)
41
43
42
44
#define PCIE_MSI_ADDR_LO 0x820
43
45
#define PCIE_MSI_ADDR_HI 0x824
@@ -778,6 +780,9 @@ void dw_pcie_setup_rc(struct pcie_port *pp)
778
780
case 4 :
779
781
val |= PORT_LINK_MODE_4_LANES ;
780
782
break ;
783
+ case 8 :
784
+ val |= PORT_LINK_MODE_8_LANES ;
785
+ break ;
781
786
}
782
787
dw_pcie_writel_rc (pp , val , PCIE_PORT_LINK_CONTROL );
783
788
@@ -794,6 +799,9 @@ void dw_pcie_setup_rc(struct pcie_port *pp)
794
799
case 4 :
795
800
val |= PORT_LOGIC_LINK_WIDTH_4_LANES ;
796
801
break ;
802
+ case 8 :
803
+ val |= PORT_LOGIC_LINK_WIDTH_8_LANES ;
804
+ break ;
797
805
}
798
806
dw_pcie_writel_rc (pp , val , PCIE_LINK_WIDTH_SPEED_CONTROL );
799
807
You can’t perform that action at this time.
0 commit comments