mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
ipq: Change qca808x mode to SGMII by default
This patch updates the default uniphy mode to SGMII for the qca808x ports. If suppose, the phy is capable of supporting 2.5G, then it will reconfigure the uniphy mode to SGMII_PLUS at that time based on the link speed detected. Change-Id: I56692b19536e71cbcf3a4c31d32ecb29866c5fdc Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
This commit is contained in:
parent
d5357b5326
commit
a8ed69675d
15 changed files with 21 additions and 21 deletions
|
|
@ -52,7 +52,7 @@
|
|||
};
|
||||
ess-switch {
|
||||
switch_mac_mode = <PORT_WRAPPER_PSGMII>;
|
||||
switch_mac_mode1 = <PORT_WRAPPER_SGMII_PLUS>;
|
||||
switch_mac_mode1 = <PORT_WRAPPER_SGMII>;
|
||||
napa_gpio = <77>;
|
||||
napa_gpio_cnt = <1>;
|
||||
malibu_gpio = <75>;
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@
|
|||
i2c1 = "/i2c@78ba000";
|
||||
};
|
||||
ess-switch {
|
||||
switch_mac_mode = <PORT_WRAPPER_SGMII_PLUS>;
|
||||
switch_mac_mode1 = <PORT_WRAPPER_SGMII_PLUS>;
|
||||
switch_mac_mode = <PORT_WRAPPER_SGMII>;
|
||||
switch_mac_mode1 = <PORT_WRAPPER_SGMII>;
|
||||
napa_gpio = <77>;
|
||||
napa_gpio_cnt = <1>;
|
||||
mdc_mdio_gpio = <64 65>;
|
||||
|
|
|
|||
|
|
@ -179,7 +179,7 @@
|
|||
|
||||
ess-switch {
|
||||
switch_mac_mode = <PORT_WRAPPER_PSGMII>;
|
||||
switch_mac_mode1 = <PORT_WRAPPER_SGMII_PLUS>;
|
||||
switch_mac_mode1 = <PORT_WRAPPER_SGMII>;
|
||||
napa_gpio = <77>;
|
||||
napa_gpio_cnt = <1>;
|
||||
malibu_gpio = <75>;
|
||||
|
|
|
|||
|
|
@ -26,8 +26,8 @@
|
|||
i2c1 = "/i2c@78ba000";
|
||||
};
|
||||
ess-switch {
|
||||
switch_mac_mode = <PORT_WRAPPER_SGMII_PLUS>;
|
||||
switch_mac_mode1 = <PORT_WRAPPER_SGMII_PLUS>;
|
||||
switch_mac_mode = <PORT_WRAPPER_SGMII>;
|
||||
switch_mac_mode1 = <PORT_WRAPPER_SGMII>;
|
||||
napa_gpio = <77>;
|
||||
napa_gpio_cnt = <1>;
|
||||
mdc_mdio_gpio = <64 65>;
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@
|
|||
};
|
||||
ess-switch {
|
||||
switch_mac_mode = <0x0>;
|
||||
switch_mac_mode1 = <0x6>;
|
||||
switch_mac_mode2 = <0x6>;
|
||||
switch_mac_mode1 = <0x1>;
|
||||
switch_mac_mode2 = <0x1>;
|
||||
napa_gpio = <25 44>;
|
||||
napa_gpio_cnt = <2>;
|
||||
port_phyinfo {
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@
|
|||
};
|
||||
ess-switch {
|
||||
switch_mac_mode = <0x0>;
|
||||
switch_mac_mode1 = <0x6>;
|
||||
switch_mac_mode2 = <0x6>;
|
||||
switch_mac_mode1 = <0x1>;
|
||||
switch_mac_mode2 = <0x1>;
|
||||
napa_gpio = <25 44>;
|
||||
napa_gpio_cnt = <2>;
|
||||
port_phyinfo {
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@
|
|||
};
|
||||
ess-switch {
|
||||
switch_mac_mode = <0x0>;
|
||||
switch_mac_mode1 = <0x6>;
|
||||
switch_mac_mode2 = <0x6>;
|
||||
switch_mac_mode1 = <0x1>;
|
||||
switch_mac_mode2 = <0x1>;
|
||||
napa_gpio = <25 44>;
|
||||
napa_gpio_cnt = <2>;
|
||||
port_phyinfo {
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
ess-switch {
|
||||
switch_mac_mode = <0x0>;
|
||||
switch_mac_mode1 = <0x2>;
|
||||
switch_mac_mode2 = <0x6>;
|
||||
switch_mac_mode2 = <0x1>;
|
||||
napa_gpio = <26>;
|
||||
napa_gpio_cnt = <1>;
|
||||
aquantia_port = <4>;
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
ess-switch {
|
||||
switch_mac_mode = <0x0>;
|
||||
switch_mac_mode1 = <0xFF>;
|
||||
switch_mac_mode2 = <0x6>;
|
||||
switch_mac_mode2 = <0x1>;
|
||||
napa_gpio = <44>;
|
||||
napa_gpio_cnt = <1>;
|
||||
port_phyinfo {
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
};
|
||||
ess-switch {
|
||||
switch_mac_mode = <0x1>;
|
||||
switch_mac_mode1 = <0x6>;
|
||||
switch_mac_mode1 = <0x1>;
|
||||
switch_mac_mode2 = <0x2>;
|
||||
8033_port = <0>;
|
||||
aquantia_port = <5>;
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@
|
|||
};
|
||||
ess-switch {
|
||||
switch_mac_mode = <0x0>;
|
||||
switch_mac_mode1 = <0x6>;
|
||||
switch_mac_mode2 = <0x6>;
|
||||
switch_mac_mode1 = <0x1>;
|
||||
switch_mac_mode2 = <0x1>;
|
||||
napa_gpio = <25 44>;
|
||||
napa_gpio_cnt = <2>;
|
||||
port_phyinfo {
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
ess-switch {
|
||||
switch_mac_mode = <0x0>;
|
||||
switch_mac_mode1 = <0x2>;
|
||||
switch_mac_mode2 = <0x6>;
|
||||
switch_mac_mode2 = <0x1>;
|
||||
aquantia_port = <4>;
|
||||
aquantia_gpio = <44>;
|
||||
uniphy_ext_ref_clk;
|
||||
|
|
|
|||
|
|
@ -191,7 +191,7 @@
|
|||
ess-switch {
|
||||
switch_mac_mode0 = <PORT_WRAPPER_PSGMII>;
|
||||
switch_mac_mode1 = <PORT_WRAPPER_USXGMII>;
|
||||
switch_mac_mode2 = <PORT_WRAPPER_SGMII_PLUS>;
|
||||
switch_mac_mode2 = <PORT_WRAPPER_SGMII0_RGMII4>;
|
||||
qca807x_gpio = <60>;
|
||||
qca807x_gpio_cnt = <1>;
|
||||
aquantia_gpio = <36>;
|
||||
|
|
|
|||
|
|
@ -190,7 +190,7 @@
|
|||
|
||||
ess-switch {
|
||||
switch_mac_mode0 = <PORT_WRAPPER_PSGMII>;
|
||||
switch_mac_mode1 = <PORT_WRAPPER_SGMII_PLUS>;
|
||||
switch_mac_mode1 = <PORT_WRAPPER_SGMII0_RGMII4>;
|
||||
switch_mac_mode2 = <PORT_WRAPPER_USXGMII>;
|
||||
qca807x_gpio = <60>;
|
||||
qca807x_gpio_cnt = <1>;
|
||||
|
|
|
|||
|
|
@ -1118,7 +1118,7 @@ static void ppe_port_mux_set(int port_id, int port_type, int mode)
|
|||
port_mux_ctrl.bf.port4_pcs_sel = PORT4_PCS_SEL_GMII_FROM_PCS0;
|
||||
if (port_id == PORT5) {
|
||||
if (port_type == PORT_GMAC_TYPE) {
|
||||
if (mode == PORT_WRAPPER_SGMII_PLUS)
|
||||
if (mode == PORT_WRAPPER_SGMII_PLUS || mode == PORT_WRAPPER_SGMII0_RGMII4)
|
||||
port_mux_ctrl.bf.port5_pcs_sel = PORT5_PCS_SEL_GMII_FROM_PCS1;
|
||||
else
|
||||
port_mux_ctrl.bf.port5_pcs_sel = PORT5_PCS_SEL_GMII_FROM_PCS0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue