Skip to content

Commit

Permalink
NXP/LX2160A/AcpiTables: Sata add Class code for generic AHCI support
Browse files Browse the repository at this point in the history
Add this class code so AHCI functions properly on kernels that don't
have the qoriq specific AHCI driver.

This still misses the quirk for V1 silicon that if the device is hard
reset the SerDes can lose link, but in general this is enough to boot
and install an OS.

Signed-off-by: Jon Nettleton <jon@solid-run.com>
  • Loading branch information
jnettlet committed Feb 6, 2020
1 parent 32f246d commit 97e6b0a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Silicon/NXP/LX2160A/AcpiTables/Dsdt/Sata.asl
Expand Up @@ -23,6 +23,12 @@ Scope(_SB)
Name(_HID, "NXP0004")
Name(_CCA, 1)
Name(_UID, 0)
Name (_CLS, Package (0x03) // _CLS: Class Code
{
0x01,
0x06,
0x01
})
Name(_CRS, ResourceTemplate() {
Memory32Fixed(ReadWrite, SATA0_BASE, SATA_LEN)
Interrupt(ResourceConsumer, Level, ActiveHigh, Exclusive)
Expand All @@ -49,6 +55,12 @@ Scope(_SB)
Name(_HID, "NXP0004")
Name(_CCA, 1)
Name(_UID, 1)
Name (_CLS, Package (0x03) // _CLS: Class Code
{
0x01,
0x06,
0x01
})
Name(_CRS, ResourceTemplate() {
Memory32Fixed(ReadWrite, SATA1_BASE, SATA_LEN)
Interrupt(ResourceConsumer, Level, ActiveHigh, Exclusive)
Expand All @@ -62,6 +74,12 @@ Scope(_SB)
Name(_HID, "NXP0004")
Name(_CCA, 1)
Name(_UID, 2)
Name (_CLS, Package (0x03) // _CLS: Class Code
{
0x01,
0x06,
0x01
})
Name(_CRS, ResourceTemplate() {
Memory32Fixed(ReadWrite, SATA2_BASE, SATA_LEN)
Interrupt(ResourceConsumer, Level, ActiveHigh, Exclusive)
Expand All @@ -75,6 +93,12 @@ Scope(_SB)
Name(_HID, "NXP0004")
Name(_CCA, 1)
Name(_UID, 3)
Name (_CLS, Package (0x03) // _CLS: Class Code
{
0x01,
0x06,
0x01
})
Name(_CRS, ResourceTemplate() {
Memory32Fixed(ReadWrite, SATA3_BASE, SATA_LEN)
Interrupt(ResourceConsumer, Level, ActiveHigh, Exclusive)
Expand Down

0 comments on commit 97e6b0a

Please sign in to comment.