barriers: Move __DSB() to the new API

Remove the arch-specific ARM-centric __DSB() macro and use the new
barrier API instead.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
This commit is contained in:
Carlo Caione 2023-05-02 11:24:50 +02:00 committed by Anas Nashif
commit cb11b2e84b
55 changed files with 157 additions and 110 deletions

View file

@ -11,6 +11,7 @@
#include <errno.h>
#include <zephyr/init.h>
#include <soc.h>
#include <zephyr/sys/barrier.h>
#include "flash_priv.h"
#include "fsl_common.h"
@ -68,7 +69,7 @@ static uint32_t get_cmd_status(uint32_t cmd, uint32_t addr, size_t len)
p_fmc->STARTA = (addr>>4) & 0x3FFFF;
p_fmc->STOPA = ((addr+len-1)>>4) & 0x3FFFF;
p_fmc->CMD = cmd;
__DSB();
barrier_dsync_fence_full();
__ISB();
/* wait for command to be done */