samus: add acpi resource for supporting RT5677 codec
Add codec acpi resource for supporting RT5667 codec.
BUG=chrome-os-partner:29649
TEST=emerge-coreboot successfully
checked codec device is probed
Change-Id: I739c0dbfdbfa221b06f99c3d934825b640096c6b
Signed-off-by: Kane Chen <kane.chen@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/207707
Reviewed-by: Shawn Nematbakhsh <shawnn@chromium.org>
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
This commit is contained in:
parent
dfb196b406
commit
f9698c45a4
1 changed files with 30 additions and 0 deletions
|
|
@ -117,6 +117,36 @@ Scope (\_SB.PCI0.I2C0)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
Device (CODC)
|
||||
{
|
||||
/*
|
||||
* TODO(kane): Need official HID.
|
||||
*
|
||||
*/
|
||||
Name (_HID, "RT5677CE")
|
||||
Name (_DDN, "RT5667 Codec")
|
||||
Name (_UID, 1)
|
||||
Name (_CRS, ResourceTemplate()
|
||||
{
|
||||
I2cSerialBus (
|
||||
0x2c, // SlaveAddress
|
||||
ControllerInitiated, // SlaveMode
|
||||
400000, // ConnectionSpeed
|
||||
AddressingMode7Bit, // AddressingMode
|
||||
"\\_SB.PCI0.I2C0", // ResourceSource
|
||||
)
|
||||
Interrupt (ResourceConsumer, Edge, ActiveLow){ 30 }
|
||||
})
|
||||
Method (_STA)
|
||||
{
|
||||
If (LEqual (\S1EN, 1)) {
|
||||
Return (0xF)
|
||||
} Else {
|
||||
Return (0x0)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Scope (\_SB.PCI0.I2C1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue