samus: Add ACPI binding for rt5677 codec SPI
We'll need to find a real ACPI device ID for the rt5677 SPI driver. "RT5677AA" is temporary. BUG=chrome-os-partner:33495 BRANCH=samus TEST=load firmware via SPI; hotword detection works Change-Id: I6dc55c4641c27a38570debe841a6afeb048eb868 Signed-off-by: Stefan Reinauer <reinauer@chromium.org> Original-Commit-Id: f0d7013b62c78deb82db1a431f079c79eded5270 Original-Change-Id: Ifb4a1b12776669e21c0b7c4679246717d72981ad Original-Signed-off-by: Ben Zhang <benzh@chromium.org> Original-Reviewed-on: https://chromium-review.googlesource.com/235902 Original-Reviewed-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: http://review.coreboot.org/9486 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
parent
83067610f7
commit
c05710f196
|
@ -345,3 +345,29 @@ Scope (\_SB.PCI0.I2C1)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
Scope (\_SB.PCI0.SPI0)
|
||||
{
|
||||
Device (CODC)
|
||||
{
|
||||
// TODO: Need official HID.
|
||||
Name (_HID, "RT5677AA")
|
||||
Name (_UID, 1)
|
||||
Name (_CRS, ResourceTemplate ()
|
||||
{
|
||||
SpiSerialBus (
|
||||
0, // DeviceSelection (CS0?)
|
||||
PolarityLow, // DeviceSelectionPolarity
|
||||
FourWireMode, // WireMode
|
||||
8, // DataBitLength
|
||||
ControllerInitiated, // SlaveMode
|
||||
1000000, // ConnectionSpeed (1MHz)
|
||||
ClockPolarityLow, // ClockPolarity
|
||||
ClockPhaseFirst, // ClockPhase
|
||||
"\\_SB.PCI0.SPI0", // ResourceSource
|
||||
0, // ResourceSourceIndex
|
||||
ResourceConsumer, // ResourceUsage
|
||||
)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue