diff mbox

[Linaro-uefi,linaro-uefi,v7,10/38] D02/D03/Dsdt: add media-type property for hns

Message ID 1481111375-71058-11-git-send-email-heyi.guo@linaro.org
State New
Headers show

Commit Message

gary guo Dec. 7, 2016, 11:49 a.m. UTC
It is PORT_TP type if the service port is GE mode. It is wrong to
judge the port type by using if it is service port. Adding the media
type to know port type.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Kejian Yan <yankejian@huawei.com>
Reviewed-by: Graeme Gregory <graeme.gregory@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
---
 Chips/Hisilicon/Pv660/Pv660AcpiTables/Dsdt/D03Hns.asl | 4 ++++
 Chips/Hisilicon/Pv660/Pv660AcpiTables/Dsdt/Hns.asl    | 4 ++++
 2 files changed, 8 insertions(+)
diff mbox

Patch

diff --git a/Chips/Hisilicon/Pv660/Pv660AcpiTables/Dsdt/D03Hns.asl b/Chips/Hisilicon/Pv660/Pv660AcpiTables/Dsdt/D03Hns.asl
index aa83489..b62ee45 100644
--- a/Chips/Hisilicon/Pv660/Pv660AcpiTables/Dsdt/D03Hns.asl
+++ b/Chips/Hisilicon/Pv660/Pv660AcpiTables/Dsdt/D03Hns.asl
@@ -466,6 +466,7 @@  Scope(_SB)
                         ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
             Package () {
                 Package () {"reg", 0},
+                Package () {"media-type", "fiber"},
                         }
                 })
     }
@@ -476,6 +477,7 @@  Scope(_SB)
                         ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
             Package () {
                 Package () {"reg", 1},
+                Package () {"media-type", "fiber"},
                         }
                 })
     }
@@ -489,6 +491,7 @@  Scope(_SB)
                                 Package () {"phy-mode", "sgmii"},
                 Package () {"phy-addr", 0},
                 Package () {"mdio-node", Package (){\_SB.MDIO}},
+                Package () {"media-type", "copper"},
                         }
                 })
     }
@@ -502,6 +505,7 @@  Scope(_SB)
                                 Package () {"phy-mode", "sgmii"},
                 Package () {"phy-addr", 1},
                 Package () {"mdio-node", Package (){\_SB.MDIO}},
+                Package () {"media-type", "copper"},
                         }
                 })
     }
diff --git a/Chips/Hisilicon/Pv660/Pv660AcpiTables/Dsdt/Hns.asl b/Chips/Hisilicon/Pv660/Pv660AcpiTables/Dsdt/Hns.asl
index 5945fc3..2b08a1f 100644
--- a/Chips/Hisilicon/Pv660/Pv660AcpiTables/Dsdt/Hns.asl
+++ b/Chips/Hisilicon/Pv660/Pv660AcpiTables/Dsdt/Hns.asl
@@ -439,6 +439,7 @@  Scope(_SB)
                         ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
         Package () {
           Package () {"reg", 0},
+          Package () {"media-type", "fiber"},
                         }
                 })
     }
@@ -449,6 +450,7 @@  Scope(_SB)
                         ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
         Package () {
           Package () {"reg", 1},
+          Package () {"media-type", "fiber"},
                         }
                 })
     }
@@ -462,6 +464,7 @@  Scope(_SB)
           Package () {"phy-mode", "sgmii"},
           Package () {"phy-addr", 0},
           Package () {"mdio-node", Package (){\_SB.MDIO}},
+          Package () {"media-type", "copper"},
                         }
                 })
     }
@@ -475,6 +478,7 @@  Scope(_SB)
           Package () {"phy-mode", "sgmii"},
           Package () {"phy-addr", 1},
           Package () {"mdio-node", Package (){\_SB.MDIO}},
+          Package () {"media-type", "copper"},
                         }
                 })
     }