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

Remove <common.h> from the remainder of the files under arch/arm 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:59 -06:00
parent 935b60f883
commit 7410cde67d
58 changed files with 14 additions and 57 deletions

View file

@ -14,7 +14,6 @@
* CPU specific code * CPU specific code
*/ */
#include <common.h>
#include <command.h> #include <command.h>
#include <cpu_func.h> #include <cpu_func.h>
#include <irq_func.h> #include <irq_func.h>

View file

@ -9,7 +9,7 @@
* Alex Zuepke <azu@sysgo.de> * Alex Zuepke <azu@sysgo.de>
*/ */
#include <common.h> #include <linux/types.h>
#if defined(CONFIG_ARCH_TEGRA) #if defined(CONFIG_ARCH_TEGRA)
static ulong timestamp; static ulong timestamp;

View file

@ -12,7 +12,6 @@
* CPU specific code * CPU specific code
*/ */
#include <common.h>
#include <command.h> #include <command.h>
#include <cpu_func.h> #include <cpu_func.h>
#include <irq_func.h> #include <irq_func.h>

View file

@ -8,7 +8,6 @@
*/ */
#include <asm-offsets.h> #include <asm-offsets.h>
#include <common.h>
#include <config.h> #include <config.h>
/* /*

View file

@ -6,7 +6,6 @@
#include <cpu_func.h> #include <cpu_func.h>
#include <asm/cache.h> #include <asm/cache.h>
#include <linux/types.h> #include <linux/types.h>
#include <common.h>
#if !CONFIG_IS_ENABLED(SYS_DCACHE_OFF) #if !CONFIG_IS_ENABLED(SYS_DCACHE_OFF)
void invalidate_dcache_all(void) void invalidate_dcache_all(void)

View file

@ -12,7 +12,6 @@
* CPU specific code * CPU specific code
*/ */
#include <common.h>
#include <command.h> #include <command.h>
#include <cpu_func.h> #include <cpu_func.h>
#include <irq_func.h> #include <irq_func.h>

View file

@ -16,7 +16,6 @@
#include <asm-offsets.h> #include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <common.h>
#include <linux/linkage.h> #include <linux/linkage.h>
/* /*

View file

@ -12,7 +12,6 @@
* CPU specific code * CPU specific code
*/ */
#include <common.h>
#include <command.h> #include <command.h>
#include <cpu_func.h> #include <cpu_func.h>
#include <irq_func.h> #include <irq_func.h>

View file

@ -4,7 +4,7 @@
* Texas Instruments Incorporated, <www.ti.com> * Texas Instruments Incorporated, <www.ti.com>
*/ */
#include <common.h> #include <config.h>
#include <init.h> #include <init.h>
#include <time.h> #include <time.h>
#include <asm/global_data.h> #include <asm/global_data.h>

View file

@ -7,7 +7,6 @@
#include <cpu_func.h> #include <cpu_func.h>
#include <asm/cache.h> #include <asm/cache.h>
#include <linux/types.h> #include <linux/types.h>
#include <common.h>
#include <asm/armv7.h> #include <asm/armv7.h>
#include <asm/utils.h> #include <asm/utils.h>

View file

@ -7,7 +7,6 @@
* CP15 specific code * CP15 specific code
*/ */
#include <common.h>
#include <command.h> #include <command.h>
#include <asm/system.h> #include <asm/system.h>
#include <asm/cache.h> #include <asm/cache.h>

View file

@ -14,7 +14,6 @@
* CPU specific code * CPU specific code
*/ */
#include <common.h>
#include <command.h> #include <command.h>
#include <cpu_func.h> #include <cpu_func.h>
#include <irq_func.h> #include <irq_func.h>

View file

@ -8,7 +8,6 @@
* secure mode before booting an operating system. * secure mode before booting an operating system.
*/ */
#include <common.h>
#include <bootm.h> #include <bootm.h>
#include <cpu_func.h> #include <cpu_func.h>
#include <log.h> #include <log.h>

View file

@ -3,7 +3,6 @@
* Copyright 2014 Broadcom Corporation. * Copyright 2014 Broadcom Corporation.
*/ */
#include <common.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/iproc-common/armpll.h> #include <asm/iproc-common/armpll.h>
#include <asm/iproc-common/sysmap.h> #include <asm/iproc-common/sysmap.h>

View file

@ -3,7 +3,6 @@
* Copyright 2014 Broadcom Corporation. * Copyright 2014 Broadcom Corporation.
*/ */
#include <common.h>
#include <cpu_func.h> #include <cpu_func.h>
#include <asm/cache.h> #include <asm/cache.h>

View file

@ -3,7 +3,6 @@
* Copyright 2014 Broadcom Corporation. * Copyright 2014 Broadcom Corporation.
*/ */
#include <common.h>
#include <div64.h> #include <div64.h>
#include <init.h> #include <init.h>
#include <time.h> #include <time.h>

View file

@ -6,7 +6,6 @@
* Lokesh Vutla <lokeshvutla@ti.com> * Lokesh Vutla <lokeshvutla@ti.com>
*/ */
#include <common.h>
#include <command.h> #include <command.h>
#include <cpu_func.h> #include <cpu_func.h>
#include <asm/armv7.h> #include <asm/armv7.h>

View file

@ -4,7 +4,6 @@
* Hyunseok, Jung <hsjung@nexell.co.kr> * Hyunseok, Jung <hsjung@nexell.co.kr>
*/ */
#include <common.h>
#include <command.h> #include <command.h>
#include <asm/system.h> #include <asm/system.h>
#include <asm/cache.h> #include <asm/cache.h>

View file

@ -7,7 +7,6 @@
* Syed Mohammed Khasim <khasim@ti.com> * Syed Mohammed Khasim <khasim@ti.com>
*/ */
#include <common.h>
#include <asm/io.h> #include <asm/io.h>
/************************************************************ /************************************************************

View file

@ -3,7 +3,6 @@
* Copyright 2013 Freescale Semiconductor, Inc. * Copyright 2013 Freescale Semiconductor, Inc.
*/ */
#include <common.h>
#include <clock_legacy.h> #include <clock_legacy.h>
#include <command.h> #include <command.h>
#include <cpu_func.h> #include <cpu_func.h>

View file

@ -3,7 +3,6 @@
* Copyright 2013 Freescale Semiconductor, Inc. * Copyright 2013 Freescale Semiconductor, Inc.
*/ */
#include <common.h>
#include <init.h> #include <init.h>
#include <time.h> #include <time.h>
#include <asm/global_data.h> #include <asm/global_data.h>

View file

@ -15,7 +15,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <common.h>
#include <errno.h> #include <errno.h>
#include <log.h> #include <log.h>
#include <stdio_dev.h> #include <stdio_dev.h>

View file

@ -8,7 +8,6 @@
* needed to enable ARMv7 virtualization for current hypervisors * needed to enable ARMv7 virtualization for current hypervisors
*/ */
#include <common.h>
#include <cpu_func.h> #include <cpu_func.h>
#include <asm/armv7.h> #include <asm/armv7.h>
#include <asm/cache.h> #include <asm/cache.h>

View file

@ -4,7 +4,6 @@
* Author(s): Vikas Manocha, <vikas.manocha@st.com> for STMicroelectronics. * Author(s): Vikas Manocha, <vikas.manocha@st.com> for STMicroelectronics.
*/ */
#include <common.h>
#include <cpu_func.h> #include <cpu_func.h>
#include <errno.h> #include <errno.h>
#include <log.h> #include <log.h>

View file

@ -7,7 +7,6 @@
* Kamil Lulko, <kamil.lulko@gmail.com> * Kamil Lulko, <kamil.lulko@gmail.com>
*/ */
#include <common.h>
#include <cpu_func.h> #include <cpu_func.h>
#include <irq_func.h> #include <irq_func.h>
#include <asm/io.h> #include <asm/io.h>

View file

@ -21,7 +21,7 @@
* using CFG_SYS_HZ_CLOCK. * using CFG_SYS_HZ_CLOCK.
*/ */
#include <common.h> #include <config.h>
#include <init.h> #include <init.h>
#include <time.h> #include <time.h>
#include <asm/global_data.h> #include <asm/global_data.h>

View file

@ -7,7 +7,6 @@
* Alexander Graf <agraf@suse.de> * Alexander Graf <agraf@suse.de>
*/ */
#include <common.h>
#include <cpu_func.h> #include <cpu_func.h>
#include <hang.h> #include <hang.h>
#include <log.h> #include <log.h>

View file

@ -3,7 +3,6 @@
* Copyright 2016 NXP Semiconductor, Inc. * Copyright 2016 NXP Semiconductor, Inc.
*/ */
#include <common.h>
#include <asm/cache.h> #include <asm/cache.h>
#include <asm/psci.h> #include <asm/psci.h>
#include <asm/system.h> #include <asm/system.h>

View file

@ -10,7 +10,6 @@
* Gary Jennejohn, DENX Software Engineering, <garyj@denx.de> * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
*/ */
#include <common.h>
#include <command.h> #include <command.h>
#include <cpu_func.h> #include <cpu_func.h>
#include <irq_func.h> #include <irq_func.h>

View file

@ -8,7 +8,6 @@
* level before booting an operating system. * level before booting an operating system.
*/ */
#include <common.h>
#include <bootm.h> #include <bootm.h>
#include <cpu_func.h> #include <cpu_func.h>
#include <log.h> #include <log.h>

View file

@ -4,7 +4,6 @@
* David Feng <fenghua@phytium.com.cn> * David Feng <fenghua@phytium.com.cn>
*/ */
#include <common.h>
#include <bootstage.h> #include <bootstage.h>
#include <command.h> #include <command.h>
#include <time.h> #include <time.h>

View file

@ -4,7 +4,6 @@
* Peter Griffin <peter.griffin@linaro.org> * Peter Griffin <peter.griffin@linaro.org>
*/ */
#include <common.h>
#include <fdtdec.h> #include <fdtdec.h>
#include <log.h> #include <log.h>
#include <asm/gpio.h> #include <asm/gpio.h>

View file

@ -3,7 +3,7 @@
* Copyright 2016 NXP Semiconductor, Inc. * Copyright 2016 NXP Semiconductor, Inc.
*/ */
#include <common.h> #include <config.h>
#include <cpu_func.h> #include <cpu_func.h>
#include <errno.h> #include <errno.h>
#include <fdt_support.h> #include <fdt_support.h>

View file

@ -5,7 +5,6 @@
* Copyright (C) 2022 Linaro Ltd <loic.poulain@linaro.org> * Copyright (C) 2022 Linaro Ltd <loic.poulain@linaro.org>
*/ */
#include <common.h>
#include <u-boot/sha1.h> #include <u-boot/sha1.h>
extern void sha1_armv8_ce_process(uint32_t state[5], uint8_t const *src, extern void sha1_armv8_ce_process(uint32_t state[5], uint8_t const *src,

View file

@ -5,7 +5,6 @@
* Copyright (C) 2022 Linaro Ltd <loic.poulain@linaro.org> * Copyright (C) 2022 Linaro Ltd <loic.poulain@linaro.org>
*/ */
#include <common.h>
#include <u-boot/sha256.h> #include <u-boot/sha256.h>
extern void sha256_armv8_ce_process(uint32_t state[8], uint8_t const *src, extern void sha256_armv8_ce_process(uint32_t state[8], uint8_t const *src,

View file

@ -4,7 +4,6 @@
* Author: Masahiro Yamada <yamada.masahiro@socionext.com> * Author: Masahiro Yamada <yamada.masahiro@socionext.com>
*/ */
#include <common.h>
#include <linux/libfdt.h> #include <linux/libfdt.h>
#include <asm/spin_table.h> #include <asm/spin_table.h>

View file

@ -3,7 +3,6 @@
* Copyright 2020 NXP * Copyright 2020 NXP
*/ */
#include <common.h>
#include <spl.h> #include <spl.h>
char __data_save_start[0] __section(".__data_save_start"); char __data_save_start[0] __section(".__data_save_start");

View file

@ -7,6 +7,7 @@
#ifndef __ASM_ESR_H #ifndef __ASM_ESR_H
#define __ASM_ESR_H #define __ASM_ESR_H
#include <stdbool.h>
#include <asm/memory.h> #include <asm/memory.h>
#include <linux/const.h> #include <linux/const.h>

View file

@ -16,7 +16,6 @@
* Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com> * Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
*/ */
#include <common.h>
#include <linux/kbuild.h> #include <linux/kbuild.h>
#include <linux/arm-smccc.h> #include <linux/arm-smccc.h>

View file

@ -6,9 +6,10 @@
* Wolfgang Denk, DENX Software Engineering, wd@denx.de. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/ */
#include <common.h> #include <config.h>
#include <init.h> #include <init.h>
#include <asm/global_data.h> #include <asm/global_data.h>
#include <asm/u-boot.h>
#include <asm/mach-types.h> #include <asm/mach-types.h>
DECLARE_GLOBAL_DATA_PTR; DECLARE_GLOBAL_DATA_PTR;

View file

@ -14,7 +14,6 @@
* Copyright (C) 2001 Erik Mouw (J.A.K.Mouw@its.tudelft.nl) * Copyright (C) 2001 Erik Mouw (J.A.K.Mouw@its.tudelft.nl)
*/ */
#include <common.h>
#include <fdt_support.h> #include <fdt_support.h>
#ifdef CONFIG_ARMV7_NONSEC #ifdef CONFIG_ARMV7_NONSEC
#include <asm/armv7.h> #include <asm/armv7.h>

View file

@ -11,7 +11,6 @@
* Copyright (C) 2001 Erik Mouw (J.A.K.Mouw@its.tudelft.nl) * Copyright (C) 2001 Erik Mouw (J.A.K.Mouw@its.tudelft.nl)
*/ */
#include <common.h>
#include <bootm.h> #include <bootm.h>
#include <bootstage.h> #include <bootstage.h>
#include <command.h> #include <command.h>

View file

@ -4,10 +4,10 @@
* Wolfgang Denk, DENX Software Engineering, wd@denx.de. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/ */
#include <common.h>
#include <cpu_func.h> #include <cpu_func.h>
#include <log.h> #include <log.h>
#include <asm/global_data.h> #include <asm/global_data.h>
#include <asm/u-boot.h>
#include <asm/system.h> #include <asm/system.h>
#include <asm/cache.h> #include <asm/cache.h>
#include <linux/compiler.h> #include <linux/compiler.h>

View file

@ -9,7 +9,6 @@
#include <asm/armv7.h> #include <asm/armv7.h>
#include <asm/pl310.h> #include <asm/pl310.h>
#include <config.h> #include <config.h>
#include <common.h>
struct pl310_regs *const pl310 = (struct pl310_regs *)CFG_SYS_PL310_BASE; struct pl310_regs *const pl310 = (struct pl310_regs *)CFG_SYS_PL310_BASE;

View file

@ -6,7 +6,7 @@
/* for now: just dummy functions to satisfy the linker */ /* for now: just dummy functions to satisfy the linker */
#include <common.h> #include <config.h>
#include <cpu_func.h> #include <cpu_func.h>
#include <log.h> #include <log.h>
#include <malloc.h> #include <malloc.h>

View file

@ -17,7 +17,6 @@
* Copyright 2015 Konsulko Group, Matt Porter <mporter@konsulko.com> * Copyright 2015 Konsulko Group, Matt Porter <mporter@konsulko.com>
*/ */
#include <common.h>
#include <command.h> #include <command.h>
/* /*

View file

@ -5,7 +5,9 @@
* (C) Copyright 2009 Wolfgang Denk <wd@denx.de> * (C) Copyright 2009 Wolfgang Denk <wd@denx.de>
*/ */
#include <common.h> #include <stdio.h>
#include <linux/stddef.h>
#include <linux/string.h>
int raise (int signum) int raise (int signum)
{ {

View file

@ -2,7 +2,6 @@
/* /*
* Copyright 2019 Broadcom. * Copyright 2019 Broadcom.
*/ */
#include <common.h>
#include <cpu_func.h> #include <cpu_func.h>
#include <dm.h> #include <dm.h>
#include <asm/gic.h> #include <asm/gic.h>

View file

@ -4,7 +4,6 @@
* Wolfgang Denk, DENX Software Engineering, wd@denx.de. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/ */
#include <common.h>
#include <image.h> #include <image.h>
#include <mapmem.h> #include <mapmem.h>
#include <asm/global_data.h> #include <asm/global_data.h>

View file

@ -18,7 +18,6 @@
* Philippe Robin, ARM Ltd. <philippe.robin@arm.com> * Philippe Robin, ARM Ltd. <philippe.robin@arm.com>
*/ */
#include <common.h>
#include <cpu_func.h> #include <cpu_func.h>
#include <efi_loader.h> #include <efi_loader.h>
#include <irq_func.h> #include <irq_func.h>

View file

@ -4,7 +4,6 @@
* David Feng <fenghua@phytium.com.cn> * David Feng <fenghua@phytium.com.cn>
*/ */
#include <common.h>
#include <asm/esr.h> #include <asm/esr.h>
#include <asm/global_data.h> #include <asm/global_data.h>
#include <asm/ptrace.h> #include <asm/ptrace.h>

View file

@ -4,9 +4,10 @@
* Kamil Lulko, <kamil.lulko@gmail.com> * Kamil Lulko, <kamil.lulko@gmail.com>
*/ */
#include <common.h> #include <stdio.h>
#include <cpu_func.h> #include <cpu_func.h>
#include <irq_func.h> #include <irq_func.h>
#include <vsprintf.h>
/* /*
* Upon exception entry ARMv7-M processors automatically save stack * Upon exception entry ARMv7-M processors automatically save stack

View file

@ -3,7 +3,6 @@
* Copyright 2016 NXP Semiconductor, Inc. * Copyright 2016 NXP Semiconductor, Inc.
*/ */
#include <common.h>
#include <asm/cache.h> #include <asm/cache.h>
#include <linux/libfdt.h> #include <linux/libfdt.h>
#include <fdt_support.h> #include <fdt_support.h>

View file

@ -20,7 +20,6 @@
* (C) Copyright 2004 Texas Insturments * (C) Copyright 2004 Texas Insturments
*/ */
#include <common.h>
#include <command.h> #include <command.h>
#include <cpu_func.h> #include <cpu_func.h>
#include <irq_func.h> #include <irq_func.h>

View file

@ -10,7 +10,6 @@
#include <fdtdec.h> #include <fdtdec.h>
#include <fdt_support.h> #include <fdt_support.h>
#include <fdt.h> #include <fdt.h>
#include <common.h>
#include <linux/errno.h> #include <linux/errno.h>
#include <asm/system.h> #include <asm/system.h>
#include <asm/armv8/mmu.h> #include <asm/armv8/mmu.h>

View file

@ -7,7 +7,6 @@
* Tom Rini <trini@ti.com> * Tom Rini <trini@ti.com>
*/ */
#include <common.h>
#include <config.h> #include <config.h>
#include <init.h> #include <init.h>
#include <log.h> #include <log.h>

View file

@ -10,7 +10,6 @@
* Sysgo Real-Time Solutions, GmbH <www.elinos.com> * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
* Marius Groeger <mgroeger@sysgo.de> * Marius Groeger <mgroeger@sysgo.de>
*/ */
#include <common.h>
#include <init.h> #include <init.h>
#include <lmb.h> #include <lmb.h>
#include <asm/global_data.h> #include <asm/global_data.h>

View file

@ -6,7 +6,6 @@
* bootz code: * bootz code:
* Copyright (C) 2012 Marek Vasut <marek.vasut@gmail.com> * Copyright (C) 2012 Marek Vasut <marek.vasut@gmail.com>
*/ */
#include <common.h>
#include <image.h> #include <image.h>
#define LINUX_ARM_ZIMAGE_MAGIC 0x016f2818 #define LINUX_ARM_ZIMAGE_MAGIC 0x016f2818