diff mbox series

[edk2,edk2-platforms,v3,10/11] D05/ACPI: Modify I2C device

Message ID 1505991597-52989-18-git-send-email-heyi.guo@linaro.org
State Superseded
Headers show
Series Update D03/D05 binary for edk2 update and bug fix. | expand

Commit Message

gary guo Sept. 21, 2017, 10:59 a.m. UTC
From: Ming Huang <waip23@foxmail.com>


1. Disable I2C0 device avoiding access conflict in OS;
2. Modify _HID of I2C2 for matching the string in OS driver;

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ming Huang <huangming23@huawei.com>

---
 Silicon/Hisilicon/Hi1616/D05AcpiTables/Dsdt/D05I2c.asl | 20 +-------------------
 1 file changed, 1 insertion(+), 19 deletions(-)

-- 
1.9.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Comments

Leif Lindholm Sept. 21, 2017, 1:12 p.m. UTC | #1
On Thu, Sep 21, 2017 at 06:59:56PM +0800, Heyi Guo wrote:
> From: Ming Huang <waip23@foxmail.com>


From: Ming Huang <huangming23@huawei.com>


> 1. Disable I2C0 device avoiding access conflict in OS;

> 2. Modify _HID of I2C2 for matching the string in OS driver;

> 

> Contributed-under: TianoCore Contribution Agreement 1.1

> Signed-off-by: Ming Huang <huangming23@huawei.com>


+ Signed-off-by: Heyi Guo

> ---

>  Silicon/Hisilicon/Hi1616/D05AcpiTables/Dsdt/D05I2c.asl | 20 +-------------------

>  1 file changed, 1 insertion(+), 19 deletions(-)

> 

> diff --git a/Silicon/Hisilicon/Hi1616/D05AcpiTables/Dsdt/D05I2c.asl b/Silicon/Hisilicon/Hi1616/D05AcpiTables/Dsdt/D05I2c.asl

> index eb906ef..3cc60d1 100644

> --- a/Silicon/Hisilicon/Hi1616/D05AcpiTables/Dsdt/D05I2c.asl

> +++ b/Silicon/Hisilicon/Hi1616/D05AcpiTables/Dsdt/D05I2c.asl

> @@ -18,26 +18,8 @@

>  

>  Scope(_SB)

>  {

> -  Device(I2C0) {

> -    Name(_HID, "APMC0D0F")

> -    Name(_CID, "APMC0D0F")

> -    Name(_CRS, ResourceTemplate() {

> -      Memory32Fixed(ReadWrite, 0xd00e0000, 0x10000)

> -      Interrupt(ResourceConsumer, Level, ActiveHigh, Exclusive, 0, "\\_SB.MBI6") { 705 }

> -    })

> -    Name (_DSD, Package () {

> -      ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),

> -      Package () {

> -        Package () {"clock-frequency", 100000},

> -        Package () {"i2c-sda-falling-time-ns", 913},

> -        Package () {"i2c-scl-falling-time-ns", 303},

> -        Package () {"i2c-sda-hold-time-ns", 0x9c2},

> -      }

> -    })

> -  }

> -

>    Device(I2C2) {

> -    Name(_HID, "APMC0D0F")

> +    Name(_HID, "HISI02A1")

>      Name(_CID, "APMC0D0F")

>      Name(_CRS, ResourceTemplate() {

>        Memory32Fixed(ReadWrite, 0xd0100000, 0x10000)

> -- 

> 1.9.1

> 

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
diff mbox series

Patch

diff --git a/Silicon/Hisilicon/Hi1616/D05AcpiTables/Dsdt/D05I2c.asl b/Silicon/Hisilicon/Hi1616/D05AcpiTables/Dsdt/D05I2c.asl
index eb906ef..3cc60d1 100644
--- a/Silicon/Hisilicon/Hi1616/D05AcpiTables/Dsdt/D05I2c.asl
+++ b/Silicon/Hisilicon/Hi1616/D05AcpiTables/Dsdt/D05I2c.asl
@@ -18,26 +18,8 @@ 
 
 Scope(_SB)
 {
-  Device(I2C0) {
-    Name(_HID, "APMC0D0F")
-    Name(_CID, "APMC0D0F")
-    Name(_CRS, ResourceTemplate() {
-      Memory32Fixed(ReadWrite, 0xd00e0000, 0x10000)
-      Interrupt(ResourceConsumer, Level, ActiveHigh, Exclusive, 0, "\\_SB.MBI6") { 705 }
-    })
-    Name (_DSD, Package () {
-      ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
-      Package () {
-        Package () {"clock-frequency", 100000},
-        Package () {"i2c-sda-falling-time-ns", 913},
-        Package () {"i2c-scl-falling-time-ns", 303},
-        Package () {"i2c-sda-hold-time-ns", 0x9c2},
-      }
-    })
-  }
-
   Device(I2C2) {
-    Name(_HID, "APMC0D0F")
+    Name(_HID, "HISI02A1")
     Name(_CID, "APMC0D0F")
     Name(_CRS, ResourceTemplate() {
       Memory32Fixed(ReadWrite, 0xd0100000, 0x10000)