Skip to contentSkip to conversation

x86: acpi: Add DMA descriptors for SPI5 on Intel Tangier

PATCH New Andy Shevchenko 2 participants 6 messages Feb 26, 2019 – Mar 4, 2019 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 x86: acpi: Add DMA descriptors for SPI5 on Intel Tangier

Intel Tangier SoC has a general purpose DMA which can serve to speed up communications on SPI and I2C serial buses.

Provide DMA descriptors to utilize this capability in the future.

---
 arch/x86/include/asm/arch-tangier/acpi/southcluster.asl | 3 +++
 1 file changed, 3 insertions(+)
arch/x86/include/asm/arch-tangier/acpi/southcluster.asl +3 -0
index aad1bf0c87..e4d876ab78 100644
@@ -189,6 +189,9 @@ Device (PCI0)
                 "\\_SB.PCI0.GPIO", 0, ResourceConsumer, , ) { 112 }
             GpioIo(Exclusive, PullUp, 0, 0, IoRestrictionOutputOnly,
                 "\\_SB.PCI0.GPIO", 0, ResourceConsumer, , ) { 113 }
+
+            FixedDMA(0x000d, 0x0002, Width32bit, )
+            FixedDMA(0x000c, 0x0003, Width32bit, )
         })
 
         Method (_CRS, 0, NotSerialized)
Signature · 1 line
2.20.1
#1 lore raw

PATCH 2/2 x86: acpi: Add DMA descriptors for I2C1 on Intel Tangier

Intel Tangier SoC has a general purpose DMA which can serve to speed up communications on SPI and I2C serial buses.

Provide DMA descriptors to utilize this capability in the future.

Note, I2C6, which is available to user, has no DMA request lines connected.

---
 .../include/asm/arch-tangier/acpi/southcluster.asl    | 11 +++++++++++
 1 file changed, 11 insertions(+)
arch/x86/include/asm/arch-tangier/acpi/southcluster.asl +11 -0
index e4d876ab78..1f940511a1 100644
@@ -232,6 +232,17 @@ Device (PCI0)
         {
             Return (STA_VISIBLE)
         }
+
+        Name (RBUF, ResourceTemplate()
+        {
+            FixedDMA(0x0009, 0x0000, Width32bit, )
+            FixedDMA(0x0008, 0x0001, Width32bit, )
+        })
+
+        Method (_CRS, 0, NotSerialized)
+        {
+            Return (RBUF)
+        }
     }
 
     Device (I2C6)
Signature · 1 line
2.20.1
#2 lore raw

PATCH 2/2 x86: acpi: Add DMA descriptors for I2C1 on Intel Tangier

Quoted 4 lines · Andy Shevchenko

Intel Tangier SoC has a general purpose DMA which can serve to speed up communications on SPI and I2C serial buses.

Quoted 9 lines

Provide DMA descriptors to utilize this capability in the future.

Note, I2C6, which is available to user, has no DMA request lines connected.

---
 .../include/asm/arch-tangier/acpi/southcluster.asl    | 11 +++++++++++
 1 file changed, 11 insertions(+)
#3 lore raw

PATCH 2/2 x86: acpi: Add DMA descriptors for I2C1 on Intel Tangier

Quoted 11 lines · Bin Meng
Quoted 8 lines · Andy Shevchenko

Intel Tangier SoC has a general purpose DMA which can serve to speed up communications on SPI and I2C serial buses.

Provide DMA descriptors to utilize this capability in the future.

Note, I2C6, which is available to user, has no DMA request lines connected.

Quoted 7 lines
Quoted 5 lines
---
 .../include/asm/arch-tangier/acpi/southcluster.asl    | 11 +++++++++++
 1 file changed, 11 insertions(+)

applied to u-boot-x86, thanks!

#4 lore raw

PATCH 1/2 x86: acpi: Add DMA descriptors for SPI5 on Intel Tangier

In reply to Andy Shevchenko
Quoted 11 lines · Andy Shevchenko

Intel Tangier SoC has a general purpose DMA which can serve to speed up communications on SPI and I2C serial buses.

Provide DMA descriptors to utilize this capability in the future.

---
 arch/x86/include/asm/arch-tangier/acpi/southcluster.asl | 3 +++
 1 file changed, 3 insertions(+)
#5 lore raw

PATCH 1/2 x86: acpi: Add DMA descriptors for SPI5 on Intel Tangier

Quoted 9 lines · Bin Meng
Quoted 6 lines · Andy Shevchenko

Intel Tangier SoC has a general purpose DMA which can serve to speed up communications on SPI and I2C serial buses.

Provide DMA descriptors to utilize this capability in the future.

Quoted 7 lines
Quoted 5 lines
---
 arch/x86/include/asm/arch-tangier/acpi/southcluster.asl | 3 +++
 1 file changed, 3 insertions(+)

applied to u-boot-x86, thanks!