Skip to content

Commit be37542

Browse files
jailuthravinodkoul
authored andcommitted
dmaengine: ti: k3-psil-am62a: Fix SPI PDMA data
AM62Ax has 3 SPI channels where each channel has 4x TX and 4x RX threads. Also fix the thread numbers to match what the firmware expects according to the PSI-L device description. Link: http://downloads.ti.com/tisci/esd/latest/5_soc_doc/am62ax/psil_cfg.html [1] Fixes: aac6db7 ("dmaengine: ti: k3-psil-am62a: Add AM62Ax PSIL and PDMA data") Signed-off-by: Jai Luthra <j-luthra@ti.com> Link: https://lore.kernel.org/r/20231123-psil_fix-v1-1-6604d80819be@ti.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 744f5e7 commit be37542

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drivers/dma/ti/k3-psil-am62a.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ static struct psil_ep am62a_src_ep_map[] = {
8484
PSIL_SAUL(0x7505, 21, 35, 8, 36, 0),
8585
PSIL_SAUL(0x7506, 22, 43, 8, 43, 0),
8686
PSIL_SAUL(0x7507, 23, 43, 8, 44, 0),
87-
/* PDMA_MAIN0 - SPI0-3 */
87+
/* PDMA_MAIN0 - SPI0-2 */
88+
PSIL_PDMA_XY_PKT(0x4300),
89+
PSIL_PDMA_XY_PKT(0x4301),
8890
PSIL_PDMA_XY_PKT(0x4302),
8991
PSIL_PDMA_XY_PKT(0x4303),
9092
PSIL_PDMA_XY_PKT(0x4304),
@@ -95,8 +97,6 @@ static struct psil_ep am62a_src_ep_map[] = {
9597
PSIL_PDMA_XY_PKT(0x4309),
9698
PSIL_PDMA_XY_PKT(0x430a),
9799
PSIL_PDMA_XY_PKT(0x430b),
98-
PSIL_PDMA_XY_PKT(0x430c),
99-
PSIL_PDMA_XY_PKT(0x430d),
100100
/* PDMA_MAIN1 - UART0-6 */
101101
PSIL_PDMA_XY_PKT(0x4400),
102102
PSIL_PDMA_XY_PKT(0x4401),
@@ -151,7 +151,9 @@ static struct psil_ep am62a_dst_ep_map[] = {
151151
/* SAUL */
152152
PSIL_SAUL(0xf500, 27, 83, 8, 83, 1),
153153
PSIL_SAUL(0xf501, 28, 91, 8, 91, 1),
154-
/* PDMA_MAIN0 - SPI0-3 */
154+
/* PDMA_MAIN0 - SPI0-2 */
155+
PSIL_PDMA_XY_PKT(0xc300),
156+
PSIL_PDMA_XY_PKT(0xc301),
155157
PSIL_PDMA_XY_PKT(0xc302),
156158
PSIL_PDMA_XY_PKT(0xc303),
157159
PSIL_PDMA_XY_PKT(0xc304),
@@ -162,8 +164,6 @@ static struct psil_ep am62a_dst_ep_map[] = {
162164
PSIL_PDMA_XY_PKT(0xc309),
163165
PSIL_PDMA_XY_PKT(0xc30a),
164166
PSIL_PDMA_XY_PKT(0xc30b),
165-
PSIL_PDMA_XY_PKT(0xc30c),
166-
PSIL_PDMA_XY_PKT(0xc30d),
167167
/* PDMA_MAIN1 - UART0-6 */
168168
PSIL_PDMA_XY_PKT(0xc400),
169169
PSIL_PDMA_XY_PKT(0xc401),

0 commit comments

Comments
 (0)