include: dt-bindings: remove dma header for stm32 soc
All the macro for dma-cells are now in the include/drivers/dma/dma_stm32.h header file. So the include/dt-bindings/dma/stm32_dma.h is no more useful and removed from #include. Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
parent
30fd0228ae
commit
8fe0831c6b
6 changed files with 1 additions and 39 deletions
|
@ -479,7 +479,6 @@
|
|||
/include/display/ @vanwinkeljan
|
||||
/include/dt-bindings/clock/kinetis_mcg.h @henrikbrixandersen
|
||||
/include/dt-bindings/clock/kinetis_scg.h @henrikbrixandersen
|
||||
/include/dt-bindings/dma/stm32_dma.h @cybertale
|
||||
/include/dt-bindings/ethernet/xlnx_gem.h @ibirnbaum
|
||||
/include/dt-bindings/pcie/ @dcpleung
|
||||
/include/dt-bindings/pwm/*it8xxx2* @RuibinChang
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
#include <drivers/clock_control/stm32_clock_control.h>
|
||||
#include <drivers/clock_control.h>
|
||||
#include <drivers/flash.h>
|
||||
#include <dt-bindings/dma/stm32_dma.h>
|
||||
#include <drivers/dma.h>
|
||||
#include <drivers/dma/dma_stm32.h>
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include <string.h>
|
||||
#include <drivers/dma.h>
|
||||
#include <drivers/i2s.h>
|
||||
#include <dt-bindings/dma/stm32_dma.h>
|
||||
#include <drivers/dma/dma_stm32.h>
|
||||
#include <soc.h>
|
||||
#include <stm32_ll_rcc.h>
|
||||
#include <stm32_ll_spi.h>
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
#include <drivers/clock_control.h>
|
||||
|
||||
#ifdef CONFIG_UART_ASYNC_API
|
||||
#include <dt-bindings/dma/stm32_dma.h>
|
||||
#include <drivers/dma/dma_stm32.h>
|
||||
#include <drivers/dma.h>
|
||||
#endif
|
||||
|
|
|
@ -18,7 +18,6 @@ LOG_MODULE_REGISTER(spi_ll_stm32);
|
|||
#include <drivers/spi.h>
|
||||
#include <toolchain.h>
|
||||
#ifdef CONFIG_SPI_STM32_DMA
|
||||
#include <dt-bindings/dma/stm32_dma.h>
|
||||
#include <drivers/dma/dma_stm32.h>
|
||||
#include <drivers/dma.h>
|
||||
#endif
|
||||
|
|
|
@ -1,34 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2019 Song Qiang <songqiang1304521@gmail.com>
|
||||
* Copyright (c) 2020 STMicroelectronics
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_DMA_STM32_DMA_H_
|
||||
#define ZEPHYR_INCLUDE_DT_BINDINGS_DMA_STM32_DMA_H_
|
||||
|
||||
/* macros for channel-config */
|
||||
/* direction defined on bits 6-7 */
|
||||
/* 0 -> MEM_TO_MEM, 1 -> MEM_TO_PERIPH, 2 -> PERIPH_TO_MEM */
|
||||
#define STM32_DMA_CONFIG_DIRECTION(config) ((config >> 6) & 0x3)
|
||||
/* periph increment defined on bit 9 as true/false */
|
||||
#define STM32_DMA_CONFIG_PERIPHERAL_ADDR_INC(config) ((config >> 9) & 0x1)
|
||||
/* mem increment defined on bit 10 as true/false */
|
||||
#define STM32_DMA_CONFIG_MEMORY_ADDR_INC(config) ((config >> 10) & 0x1)
|
||||
/* perih data size defined on bits 11-12 */
|
||||
/* 0 -> 1 byte, 1 -> 2 bytes, 2 -> 4 bytes */
|
||||
#define STM32_DMA_CONFIG_PERIPHERAL_DATA_SIZE(config) \
|
||||
(1 << ((config >> 11) & 0x3))
|
||||
/* memory data size defined on bits 13, 14 */
|
||||
/* 0 -> 1 byte, 1 -> 2 bytes, 2 -> 4 bytes */
|
||||
#define STM32_DMA_CONFIG_MEMORY_DATA_SIZE(config) \
|
||||
(1 << ((config >> 13) & 0x3))
|
||||
/* priority increment offset defined on bit 15 */
|
||||
#define STM32_DMA_CONFIG_PERIPHERAL_INC_FIXED(config) ((config >> 15) & 0x1)
|
||||
/* priority defined on bits 16-17 as 0, 1, 2, 3 */
|
||||
#define STM32_DMA_CONFIG_PRIORITY(config) ((config >> 16) & 0x3)
|
||||
|
||||
/* macros for features */
|
||||
#define STM32_DMA_FEATURES_FIFO_THRESHOLD(features) (features & 0x3)
|
||||
|
||||
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_DMA_STM32_DMA_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue