Skip to content

Commit e71b502

Browse files
JarmouniAnashif
authored andcommitted
drivers: dma: stm32_bdma: fix comments
Some comments were not updated following the change in how uncached memory regions are defined in devicetree. Signed-off-by: Abderrahmane Jarmouni <[email protected]>
1 parent 32f0a15 commit e71b502

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/dma/dma_stm32_bdma.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -806,20 +806,20 @@ static int bdma_stm32_init(const struct device *dev)
806806
((struct bdma_stm32_data *)dev->data)->dma_ctx.dma_channels = 0;
807807
((struct bdma_stm32_data *)dev->data)->dma_ctx.atomic = 0;
808808

809-
/* The BDMA can only access SRAM4 and assumes it's nocachable
810-
* This check verifies that the non-cachable flag is set in the DTS.
809+
/* The BDMA can only access SRAM4 and assumes it's uncached
810+
* This check verifies that the nocache memory attribute is set in the devicetree.
811811
* For example:
812812
* &sram4 {
813-
* zephyr,memory-attr = "RAM_NOCACHE";
813+
* zephyr,memory-attr = <DT_MEM_ARM_MPU_RAM_NOCACHE>;
814814
* };
815815
*/
816816
#if DT_NODE_HAS_PROP(DT_NODELABEL(sram4), zephyr_memory_attr)
817817
if ((DT_PROP(DT_NODELABEL(sram4), zephyr_memory_attr) & DT_MEM_ARM_MPU_RAM_NOCACHE) == 0) {
818-
LOG_ERR("SRAM4 is not set as non-cachable.");
818+
LOG_ERR("SRAM4 is not set as uncached.");
819819
return -EIO;
820820
}
821821
#else
822-
#error "BDMA driver expects SRAM4 to be set as RAM_NOCACHE in DTS"
822+
#error "BDMA driver expects SRAM4 to be set as uncached in devicetree"
823823
#endif
824824

825825
return 0;

0 commit comments

Comments
 (0)