mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-12 14:23:00 +00:00
ffcc66e8fe
The UDMA-P is intended to perform similar (but significantly upgraded) functions as the packet-oriented DMA used on previous SoC devices. The UDMA-P module supports the transmission and reception of various packet types. The UDMA-P also supports acting as both a UTC and UDMA-C for its internal channels. Channels in the UDMA-P can be configured to be either Packet-Based or Third-Party channels on a channel by channel basis. The initial driver supports: - MEM_TO_MEM (TR mode) - DEV_TO_MEM (Packet mode) - MEM_TO_DEV (Packet mode) Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> Signed-off-by: Vignesh R <vigneshr@ti.com>
31 lines
668 B
C
31 lines
668 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com
|
|
*/
|
|
|
|
#ifndef __DT_TI_UDMA_H
|
|
#define __DT_TI_UDMA_H
|
|
|
|
#define UDMA_TR_MODE 0
|
|
#define UDMA_PKT_MODE 1
|
|
|
|
#define UDMA_DIR_TX 0
|
|
#define UDMA_DIR_RX 1
|
|
|
|
#define PSIL_STATIC_TR_NONE 0
|
|
#define PSIL_STATIC_TR_XY 1
|
|
#define PSIL_STATIC_TR_MCAN 2
|
|
|
|
#define UDMA_PDMA_TR_XY(id) \
|
|
ti,psil-config##id { \
|
|
linux,udma-mode = <UDMA_TR_MODE>; \
|
|
statictr-type = <PSIL_STATIC_TR_XY>; \
|
|
}
|
|
|
|
#define UDMA_PDMA_PKT_XY(id) \
|
|
ti,psil-config##id { \
|
|
linux,udma-mode = <UDMA_PKT_MODE>; \
|
|
statictr-type = <PSIL_STATIC_TR_XY>; \
|
|
}
|
|
|
|
#endif /* __DT_TI_UDMA_H */
|