drivers: serial: pl011: improve include list

<soc.h> was included because some CMSIS helpers (__DMB/__ISB) were
needed. In ARM SoCs, inclusion of CMSIS headers depends mainly on how
HALs decide to do it, being usually an inefficient and fragile include
chain. Note that on ARM64 we're in a better position, as those are
defined in-tree.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2022-05-31 16:44:50 +02:00 committed by Carles Cufí
commit 7de5f47e1a

View file

@ -11,9 +11,12 @@
#include <zephyr/arch/cpu.h>
#include <zephyr/init.h>
#include <zephyr/device.h>
#include <soc.h>
#include <zephyr/drivers/uart.h>
#ifdef CONFIG_CPU_CORTEX_M
#include <cmsis_compiler.h>
#endif
/*
* UART PL011 register map structure
*/