]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: stm32/stm32mp: Remove <common.h> and add needed includes
authorTom Rini <trini@konsulko.com>
Tue, 30 Apr 2024 13:35:32 +0000 (07:35 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 6 May 2024 21:06:33 +0000 (15:06 -0600)
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>
16 files changed:
arch/arm/mach-stm32/soc.c
arch/arm/mach-stm32mp/boot_params.c
arch/arm/mach-stm32mp/bsec.c
arch/arm/mach-stm32mp/cmd_stm32key.c
arch/arm/mach-stm32mp/cmd_stm32prog/cmd_stm32prog.c
arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_serial.c
arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_usb.c
arch/arm/mach-stm32mp/dram_init.c
arch/arm/mach-stm32mp/stm32mp1/cpu.c
arch/arm/mach-stm32mp/stm32mp1/fdt.c
arch/arm/mach-stm32mp/stm32mp1/psci.c
arch/arm/mach-stm32mp/stm32mp1/pwr_regulator.c
arch/arm/mach-stm32mp/stm32mp1/spl.c
arch/arm/mach-stm32mp/stm32mp1/stm32mp13x.c
arch/arm/mach-stm32mp/stm32mp1/stm32mp15x.c
arch/arm/mach-stm32mp/syscon.c

index 0bd8d7b22c4df6297477d52683d48f11857103d2..737e6809f8d310594eff0e90df045afc99bcebae 100644 (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>
index 158bf40cb97e8fb688ab1523413a3b312ab936a0..ebddf6a7dbcc5f5c48a018127ae0e29b8d7f12e3 100644 (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>
index 5b869017ec1abd5823e90d2dea4784ff1c125c8d..9ba7a6c9a892958280c23c0bd0fa2d853b54ebd9 100644 (file)
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_MISC
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <log.h>
index c7fe232f86e0cdff6faff1e20f1cccb9c56f8c3e..0cb3c7a9fa440c07cc9cda12d21e61bf043d78cb 100644 (file)
@@ -3,7 +3,6 @@
  * Copyright (C) 2019, STMicroelectronics - All Rights Reserved
  */
 
-#include <common.h>
 #include <command.h>
 #include <console.h>
 #include <log.h>
index adee6e05b636bd611af656353a506d9dd18ccfbd..967fa4e06c0e8ddf0f14f84199f407e97a8f0dca 100644 (file)
@@ -3,7 +3,6 @@
  * Copyright (C) 2020, STMicroelectronics - All Rights Reserved
  */
 
-#include <common.h>
 #include <bootm.h>
 #include <command.h>
 #include <dfu.h>
index 35bed3199422812b54bd53b329722d5d086fa775..07c5e0456f824bf5f3b8ef5c795da50ef319056f 100644 (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>
index d18455bf36f1d90f7b3a6ec014ff735eff7f2869..4b1ed50e9fe5d87503d8afb973470f47439fbb9b 100644 (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>
index fb1208fc5d570bb3e4676c308bf67f56c57f626f..78b12fcbb6acafdca7ead328f8eb671a52297843 100644 (file)
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY LOGC_ARCH
 
-#include <common.h>
 #include <dm.h>
 #include <image.h>
 #include <init.h>
index 524778f00c67d409017d3767cce57601f35ef119..478c3efae73e65317c8430ea735f1f68c742bbe9 100644 (file)
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY LOGC_ARCH
 
-#include <common.h>
 #include <clk.h>
 #include <cpu_func.h>
 #include <debug_uart.h>
index d0b6c3cc5a5595ba301c4c97e0045c848c994ffd..e1e4dc04e01cd18c2a318f2bafdcb9e7d34fc5ba 100644 (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>
index 4f2379df45fbfb8a4c2b8a6f15f80f6c2b2b0fd7..7772546b2fefbee2e7e55bce77ca7e012c363a10 100644 (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
index 846637ab162e3126063a54a61557156f7b2a6b13..79c44188cc56363cd5d4602e8dd1a5b08d3e464f 100644 (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>
index 6c79259b2c82147fb94ea2b575beb34add1658cb..7a8fd3178adff04303d4d23781a9365f10c0b0e7 100644 (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>
index 845d973ad1b2473341a769cb9f6e25bd525542e6..4a811065fc31655eb644f1076c90501973c63ee2 100644 (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>
index d75ec99d6a17adfdf3746177176815bc17c3d05b..f096fe538d88d3472ef2a00f1e8822f1c9c2eb9d 100644 (file)
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY LOGC_ARCH
 
-#include <common.h>
 #include <env.h>
 #include <log.h>
 #include <asm/io.h>
index a2e351d74a7aa1dde520d0814ce6fa16539eb670..8bcbd9793404b8860554acb15c67742397c069ae 100644 (file)
@@ -3,7 +3,6 @@
  * Copyright (C) 2018, STMicroelectronics - All Rights Reserved
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <syscon.h>