FreeBSD Bugzilla – Attachment 196213 Details for
Bug 230641
[Patch]: Designware I2C: Add ACPI Device HID for AMD platforms
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to add ACPI HID to Designware I2C driver for AMD platforms
amd_i2c_review_v1.diff (text/plain), 1.34 KB, created by
Rajesh Kumar M A
on 2018-08-15 10:39:50 UTC
(
hide
)
Description:
Patch to add ACPI HID to Designware I2C driver for AMD platforms
Filename:
MIME Type:
Creator:
Rajesh Kumar M A
Created:
2018-08-15 10:39:50 UTC
Size:
1.34 KB
patch
obsolete
>diff --git a/sys/dev/ichiic/ig4_acpi.c b/sys/dev/ichiic/ig4_acpi.c >index 882685abf1f..c205bad88bf 100644 >--- a/sys/dev/ichiic/ig4_acpi.c >+++ b/sys/dev/ichiic/ig4_acpi.c >@@ -60,6 +60,7 @@ static char *ig4iic_ids[] = { > "80860F41", > "808622C1", > "AMDI0510", >+ "AMDI0010", > "APMC0D0F", > NULL > }; >diff --git a/sys/dev/ichiic/ig4_iic.c b/sys/dev/ichiic/ig4_iic.c >index 1833a9e0572..7e794f03461 100644 >--- a/sys/dev/ichiic/ig4_iic.c >+++ b/sys/dev/ichiic/ig4_iic.c >@@ -553,7 +553,7 @@ ig4iic_attach(ig4iic_softc_t *sc) > > if (sc->version == IG4_HASWELL || sc->version == IG4_ATOM) { > v = reg_read(sc, IG4_REG_COMP_VER); >- if (v != IG4_COMP_VER) { >+ if (v < IG4_COMP_MIN_VER) { > error = ENXIO; > goto done; > } >diff --git a/sys/dev/ichiic/ig4_reg.h b/sys/dev/ichiic/ig4_reg.h >index 1797fad474c..cf2884af315 100644 >--- a/sys/dev/ichiic/ig4_reg.h >+++ b/sys/dev/ichiic/ig4_reg.h >@@ -73,7 +73,6 @@ > * SDA_HOLD 0x00000001 > * SDA_SETUP 0x00000064 > * COMP_PARAM1 0x00FFFF6E >- * COMP_VER 0x3131352A > */ > > #define IG4_REG_CTL 0x0000 /* RW Control Register */ >@@ -545,11 +544,10 @@ > > /* > * COMP_VER - (RO) Component Version Register 22.2.36 >- * Default Value 0x3131352A > * > * Contains the chip version number. All 32 bits. > */ >-#define IG4_COMP_VER 0x3131352A >+#define IG4_COMP_MIN_VER 0x3131352A > > /* > * COMP_TYPE - (RO) (linux) Endian and bus width probe
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 230641
: 196213