1 /* SPDX-License-Identifier: GPL-2.0-only */ 1 2 /* 3 * This header provides macros for at91 dma bi 4 * 5 * Copyright (C) 2013 Ludovic Desroches <ludov 6 */ 7 8 #ifndef __DT_BINDINGS_AT91_DMA_H__ 9 #define __DT_BINDINGS_AT91_DMA_H__ 10 11 /* ---------- HDMAC ---------- */ 12 13 /* 14 * Source and/or destination peripheral ID 15 */ 16 #define AT91_DMA_CFG_PER_ID_MASK (0xff) 17 #define AT91_DMA_CFG_PER_ID(id) (id & 18 19 /* 20 * FIFO configuration: it defines when a reque 21 */ 22 #define AT91_DMA_CFG_FIFOCFG_OFFSET (8) 23 #define AT91_DMA_CFG_FIFOCFG_MASK (0xf < 24 #define AT91_DMA_CFG_FIFOCFG_HALF (0x0 < 25 #define AT91_DMA_CFG_FIFOCFG_ALAP (0x1 < 26 #define AT91_DMA_CFG_FIFOCFG_ASAP (0x2 < 27 28 29 /* ---------- XDMAC ---------- */ 30 #define AT91_XDMAC_DT_MEM_IF_MASK (0x1) 31 #define AT91_XDMAC_DT_MEM_IF_OFFSET (13) 32 #define AT91_XDMAC_DT_MEM_IF(mem_if) (((mem 33 << AT9 34 #define AT91_XDMAC_DT_GET_MEM_IF(cfg) (((cfg 35 & AT91 36 37 #define AT91_XDMAC_DT_PER_IF_MASK (0x1) 38 #define AT91_XDMAC_DT_PER_IF_OFFSET (14) 39 #define AT91_XDMAC_DT_PER_IF(per_if) (((per 40 << AT9 41 #define AT91_XDMAC_DT_GET_PER_IF(cfg) (((cfg 42 & AT91 43 44 #define AT91_XDMAC_DT_PERID_MASK (0x7f) 45 #define AT91_XDMAC_DT_PERID_OFFSET (24) 46 #define AT91_XDMAC_DT_PERID(perid) (((per 47 << AT9 48 #define AT91_XDMAC_DT_GET_PERID(cfg) (((cfg 49 & AT91 50 51 #endif /* __DT_BINDINGS_AT91_DMA_H__ */ 52
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.