arm: stm32/stm32mp: Remove <common.h> and add needed includes

Remove <common.h> from all mach-stm32 and mach-stm32mp files and when
needed add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Tom Rini
2024-04-30 07:35:32 -06:00
parent d6bf10009b
commit e8df6eeb8d
16 changed files with 7 additions and 16 deletions

View File

@@ -4,7 +4,6 @@
* Author(s): Patrice Chotard, <patrice.chotard@foss.st.com> for STMicroelectronics.
*/
#include <common.h>
#include <init.h>
#include <asm/io.h>
#include <asm/armv7_mpu.h>

View File

@@ -5,7 +5,7 @@
#define LOG_CATEGORY LOGC_ARCH
#include <common.h>
#include <config.h>
#include <log.h>
#include <linux/libfdt.h>
#include <asm/arch/sys_proto.h>

View File

@@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_MISC
#include <common.h>
#include <clk.h>
#include <dm.h>
#include <log.h>

View File

@@ -3,7 +3,6 @@
* Copyright (C) 2019, STMicroelectronics - All Rights Reserved
*/
#include <common.h>
#include <command.h>
#include <console.h>
#include <log.h>

View File

@@ -3,7 +3,6 @@
* Copyright (C) 2020, STMicroelectronics - All Rights Reserved
*/
#include <common.h>
#include <bootm.h>
#include <command.h>
#include <dfu.h>

View File

@@ -3,12 +3,12 @@
* Copyright (C) 2020, STMicroelectronics - All Rights Reserved
*/
#include <common.h>
#include <console.h>
#include <dm.h>
#include <dfu.h>
#include <malloc.h>
#include <serial.h>
#include <time.h>
#include <watchdog.h>
#include <asm/arch/sys_proto.h>
#include <dm/lists.h>

View File

@@ -3,7 +3,6 @@
* Copyright (C) 2020, STMicroelectronics - All Rights Reserved
*/
#include <common.h>
#include <dfu.h>
#include <g_dnl.h>
#include <usb.h>

View File

@@ -5,7 +5,6 @@
#define LOG_CATEGORY LOGC_ARCH
#include <common.h>
#include <dm.h>
#include <image.h>
#include <init.h>

View File

@@ -5,7 +5,6 @@
#define LOG_CATEGORY LOGC_ARCH
#include <common.h>
#include <clk.h>
#include <cpu_func.h>
#include <debug_uart.h>

View File

@@ -5,11 +5,11 @@
#define LOG_CATEGORY LOGC_ARCH
#include <common.h>
#include <fdtdec.h>
#include <fdt_support.h>
#include <log.h>
#include <tee.h>
#include <mach/stm32.h>
#include <asm/arch/sys_proto.h>
#include <dt-bindings/pinctrl/stm32-pinfunc.h>
#include <linux/io.h>

View File

@@ -4,7 +4,6 @@
*/
#include <config.h>
#include <common.h>
#include <asm/armv7.h>
#include <asm/cache.h>
#include <asm/gic.h>
@@ -13,6 +12,7 @@
#include <asm/secure.h>
#include <hang.h>
#include <linux/bitops.h>
#include <linux/errno.h>
/* PWR */
#define PWR_CR3 0x0c

View File

@@ -5,10 +5,10 @@
#define LOG_CATEGORY UCLASS_REGULATOR
#include <common.h>
#include <dm.h>
#include <errno.h>
#include <syscon.h>
#include <time.h>
#include <asm/io.h>
#include <dm/device_compat.h>
#include <dm/device-internal.h>

View File

@@ -5,7 +5,7 @@
#define LOG_CATEGORY LOGC_ARCH
#include <common.h>
#include <config.h>
#include <cpu_func.h>
#include <dm.h>
#include <hang.h>

View File

@@ -5,7 +5,7 @@
#define LOG_CATEGORY LOGC_ARCH
#include <common.h>
#include <config.h>
#include <log.h>
#include <syscon.h>
#include <asm/io.h>

View File

@@ -5,7 +5,6 @@
#define LOG_CATEGORY LOGC_ARCH
#include <common.h>
#include <env.h>
#include <log.h>
#include <asm/io.h>

View File

@@ -3,7 +3,6 @@
* Copyright (C) 2018, STMicroelectronics - All Rights Reserved
*/
#include <common.h>
#include <clk.h>
#include <dm.h>
#include <syscon.h>