barriers: Move __DMB() to the new API
Remove the arch-specific ARM-centric __DMB() macro and use the new barrier API instead. Signed-off-by: Carlo Caione <ccaione@baylibre.com>
This commit is contained in:
parent
4512712cd6
commit
2fa807bcd1
14 changed files with 44 additions and 33 deletions
|
@ -14,6 +14,7 @@
|
|||
#include <zephyr/device.h>
|
||||
#include <zephyr/drivers/uart.h>
|
||||
#include <zephyr/sys/device_mmio.h>
|
||||
#include <zephyr/sys/barrier.h>
|
||||
#include <zephyr/irq.h>
|
||||
#if defined(CONFIG_PINCTRL)
|
||||
#include <zephyr/drivers/pinctrl.h>
|
||||
|
@ -212,7 +213,7 @@ static int pl011_set_baudrate(const struct device *dev,
|
|||
get_uart(dev)->ibrd = bauddiv >> PL011_FBRD_WIDTH;
|
||||
get_uart(dev)->fbrd = bauddiv & ((1u << PL011_FBRD_WIDTH) - 1u);
|
||||
|
||||
__DMB();
|
||||
barrier_dmem_fence_full();
|
||||
|
||||
/* In order to internally update the contents of ibrd or fbrd, a
|
||||
* lcr_h write must always be performed at the end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue