Browse Source
CONFIG_NOCACHE_MEMORY is a valid way of declaring buffers in nocache regions. Consider them valid in the stm32 SPI driver nocache check. Also, don't check NULL buffers as the SPI interface states that such buffers will result in sending zeroes. Signed-off-by: Daniel Gaston Ochoa <dgastonochoa@gmail.com>pull/61892/head
3 changed files with 62 additions and 3 deletions
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
# |
||||
# Copyright (c) 2023 Graphcore Ltd, All rights reserved. |
||||
# |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
# |
||||
CONFIG_NOCACHE_MEMORY=y |
@ -0,0 +1,33 @@
@@ -0,0 +1,33 @@
|
||||
/* |
||||
* Copyright (c) 2023 Graphcore Ltd, All rights reserved. |
||||
* |
||||
* SPDX-License-Identifier: Apache-2.0 |
||||
*/ |
||||
|
||||
&spi1 { |
||||
dmas = <&dmamux1 0 38 (STM32_DMA_PERIPH_TX | STM32_DMA_PRIORITY_HIGH) |
||||
&dmamux1 1 37 (STM32_DMA_PERIPH_RX | STM32_DMA_PRIORITY_HIGH)>; |
||||
dma-names = "tx", "rx"; |
||||
slow@0 { |
||||
compatible = "test-spi-loopback-slow"; |
||||
reg = <0>; |
||||
spi-max-frequency = <500000>; |
||||
}; |
||||
fast@0 { |
||||
compatible = "test-spi-loopback-fast"; |
||||
reg = <0>; |
||||
spi-max-frequency = <16000000>; |
||||
}; |
||||
}; |
||||
|
||||
&dma1 { |
||||
status = "okay"; |
||||
}; |
||||
|
||||
&dma2 { |
||||
status = "okay"; |
||||
}; |
||||
|
||||
&dmamux1 { |
||||
status = "okay"; |
||||
}; |
Loading…
Reference in new issue