Skip to content

Commit

Permalink
common: Move ARM cache operations out of common.h
Browse files Browse the repository at this point in the history
These functions are CPU-related and do not use driver model. Move them to
cpu_func.h

Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Daniel Schwierzeck <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
  • Loading branch information
sjg20 authored and trini committed Dec 2, 2019
1 parent 3374d28 commit 1eb69ae
Show file tree
Hide file tree
Showing 135 changed files with 159 additions and 24 deletions.
1 change: 1 addition & 0 deletions arch/arm/cpu/arm926ejs/lpc32xx/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

#include <common.h>
#include <cpu_func.h>
#include <netdev.h>
#include <asm/arch/cpu.h>
#include <asm/arch/clk.h>
Expand Down
1 change: 1 addition & 0 deletions arch/arm/cpu/armv7/cache_v7.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Texas Instruments, <www.ti.com>
* Aneesh V <[email protected]>
*/
#include <cpu_func.h>
#include <linux/types.h>
#include <common.h>
#include <asm/armv7.h>
Expand Down
1 change: 1 addition & 0 deletions arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/

#include <config.h>
#include <cpu_func.h>
#include <asm/io.h>
#include <asm/psci.h>
#include <asm/arch/immap_ls102xa.h>
Expand Down
1 change: 1 addition & 0 deletions arch/arm/cpu/armv8/sec_firmware.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

#include <common.h>
#include <cpu_func.h>
#include <errno.h>
#include <linux/kernel.h>
#include <asm/io.h>
Expand Down
1 change: 1 addition & 0 deletions arch/arm/cpu/pxa/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* (C) Copyright 2016 Vasily Khoruzhick <[email protected]>
*/

#include <cpu_func.h>
#include <linux/types.h>
#include <common.h>

Expand Down
1 change: 1 addition & 0 deletions arch/arm/lib/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
/* for now: just dummy functions to satisfy the linker */

#include <common.h>
#include <cpu_func.h>
#include <malloc.h>

/*
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-bcm283x/mbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

#include <common.h>
#include <cpu_func.h>
#include <asm/io.h>
#include <asm/arch/base.h>
#include <asm/arch/mbox.h>
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-imx/mx7/psci-mx7.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Copyright 2017 NXP
*/

#include <cpu_func.h>
#include <asm/io.h>
#include <asm/psci.h>
#include <asm/secure.h>
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-omap2/sec-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*/

#include <common.h>
#include <cpu_func.h>
#include <stdarg.h>

#include <asm/arch/sys_proto.h>
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-tegra/ivc.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

#include <common.h>
#include <cpu_func.h>
#include <asm/io.h>
#include <asm/arch-tegra/ivc.h>

Expand Down
1 change: 1 addition & 0 deletions arch/microblaze/lib/bootm.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <env.h>
#include <fdt_support.h>
#include <image.h>
Expand Down
1 change: 1 addition & 0 deletions arch/mips/lib/reloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
*/

#include <common.h>
#include <cpu_func.h>
#include <asm/relocs.h>
#include <asm/sections.h>

Expand Down
1 change: 1 addition & 0 deletions arch/mips/lib/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
*/

#include <common.h>
#include <cpu_func.h>
#include <asm/mipsregs.h>
#include <asm/addrspace.h>
#include <asm/system.h>
Expand Down
1 change: 1 addition & 0 deletions arch/mips/mach-jz47xx/jz4780/jz4780.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include <config.h>
#include <common.h>
#include <cpu_func.h>
#include <asm/io.h>
#include <asm/sections.h>
#include <mach/jz4780.h>
Expand Down
1 change: 1 addition & 0 deletions arch/mips/mach-mtmips/ddr_calibrate.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/

#include <common.h>
#include <cpu_func.h>
#include <linux/io.h>
#include <asm/cacheops.h>
#include <asm/io.h>
Expand Down
1 change: 1 addition & 0 deletions arch/nds32/cpu/n1213/ae3xx/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <irq_func.h>
#include <watchdog.h>
#include <asm/cache.h>

Expand Down
1 change: 1 addition & 0 deletions arch/nios2/cpu/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include <common.h>
#include <cpu.h>
#include <cpu_func.h>
#include <dm.h>
#include <errno.h>
#include <asm/cache.h>
Expand Down
1 change: 1 addition & 0 deletions arch/nios2/lib/bootm.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

#include <common.h>
#include <cpu_func.h>

#define NIOS_MAGIC 0x534f494e /* enable command line and initrd passing */

Expand Down
1 change: 1 addition & 0 deletions arch/powerpc/lib/bootm.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@


#include <common.h>
#include <cpu_func.h>
#include <env.h>
#include <watchdog.h>
#include <command.h>
Expand Down
1 change: 1 addition & 0 deletions arch/powerpc/lib/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

#include <common.h>
#include <cpu_func.h>
#include <asm/cache.h>
#include <watchdog.h>

Expand Down
1 change: 1 addition & 0 deletions arch/riscv/cpu/ax25/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
/* CPU specific code */
#include <common.h>
#include <cpu_func.h>
#include <irq_func.h>
#include <asm/cache.h>

/*
Expand Down
1 change: 1 addition & 0 deletions arch/riscv/lib/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <asm/barrier.h>
#include <asm/smp.h>
Expand Down
1 change: 1 addition & 0 deletions arch/riscv/lib/spl.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Lukas Auer <[email protected]>
*/
#include <common.h>
#include <cpu_func.h>
#include <spl.h>
#include <asm/smp.h>

Expand Down
1 change: 1 addition & 0 deletions arch/sandbox/cpu/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <errno.h>
#include <linux/libfdt.h>
Expand Down
1 change: 1 addition & 0 deletions arch/x86/cpu/quark/dram.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

#include <common.h>
#include <cpu_func.h>
#include <errno.h>
#include <fdtdec.h>
#include <malloc.h>
Expand Down
1 change: 1 addition & 0 deletions arch/xtensa/lib/bootm.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <env.h>
#include <u-boot/zlib.h>
#include <asm/byteorder.h>
Expand Down
1 change: 1 addition & 0 deletions board/Arcturus/ucp1020/cmd_arc.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/

#include <common.h>
#include <cpu_func.h>
#include <div64.h>
#include <env.h>
#include <malloc.h>
Expand Down
1 change: 1 addition & 0 deletions board/beckhoff/mx53cx9020/mx53cx9020.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*/

#include <common.h>
#include <cpu_func.h>
#include <asm/arch/sys_proto.h>
#include <asm/arch/clock.h>
#include <asm/arch/iomux-mx53.h>
Expand Down
1 change: 1 addition & 0 deletions board/broadcom/bcmstb/bcmstb.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Author: Thomas Fitzsimmons <[email protected]>
*/

#include <cpu_func.h>
#include <time.h>
#include <linux/types.h>
#include <common.h>
Expand Down
1 change: 1 addition & 0 deletions board/cirrus/edb93xx/edb93xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <config.h>
#include <common.h>
#include <cpu_func.h>
#include <irq_func.h>
#include <netdev.h>
#include <status_led.h>
#include <asm/io.h>
Expand Down
1 change: 1 addition & 0 deletions board/phytec/pfla02/pfla02.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

#include <common.h>
#include <cpu_func.h>
#include <asm/io.h>
#include <asm/arch/clock.h>
#include <asm/arch/imx-regs.h>
Expand Down
1 change: 1 addition & 0 deletions board/sandbox/sandbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

#include <common.h>
#include <cpu_func.h>
#include <cros_ec.h>
#include <dm.h>
#include <led.h>
Expand Down
1 change: 1 addition & 0 deletions cmd/disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/
#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <part.h>

int common_diskboot(cmd_tbl_t *cmdtp, const char *intf, int argc,
Expand Down
1 change: 1 addition & 0 deletions cmd/load.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <common.h>
#include <command.h>
#include <console.h>
#include <cpu_func.h>
#include <env.h>
#include <s_record.h>
#include <net.h>
Expand Down
1 change: 1 addition & 0 deletions cmd/ximg.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*/
#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <env.h>
#include <gzip.h>
#include <image.h>
Expand Down
1 change: 1 addition & 0 deletions common/avb_verify.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include <avb_verify.h>
#include <blk.h>
#include <cpu_func.h>
#include <fastboot.h>
#include <image.h>
#include <malloc.h>
Expand Down
1 change: 1 addition & 0 deletions common/board_r.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

#include <common.h>
#include <api.h>
#include <cpu_func.h>
#include <u-boot/crc.h>
/* TODO: can we just include all these headers whether needed or not? */
#if defined(CONFIG_CMD_BEDBUG)
Expand Down
1 change: 1 addition & 0 deletions common/bootm.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#ifndef USE_HOSTCC
#include <common.h>
#include <bootstage.h>
#include <cpu_func.h>
#include <env.h>
#include <errno.h>
#include <fdt_support.h>
Expand Down
1 change: 1 addition & 0 deletions common/bouncebuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/

#include <common.h>
#include <cpu_func.h>
#include <malloc.h>
#include <errno.h>
#include <bouncebuf.h>
Expand Down
1 change: 1 addition & 0 deletions common/image.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#ifndef USE_HOSTCC
#include <common.h>
#include <cpu_func.h>
#include <env.h>
#include <u-boot/crc.h>
#include <watchdog.h>
Expand Down
1 change: 1 addition & 0 deletions common/lcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <config.h>
#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <env_callback.h>
#include <linux/types.h>
#include <stdio_dev.h>
Expand Down
1 change: 1 addition & 0 deletions common/spl/spl_opensbi.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Based on common/spl/spl_atf.c
*/
#include <common.h>
#include <cpu_func.h>
#include <errno.h>
#include <spl.h>
#include <asm/smp.h>
Expand Down
1 change: 1 addition & 0 deletions common/update.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*/

#include <common.h>
#include <cpu_func.h>

#if !(defined(CONFIG_FIT) && defined(CONFIG_OF_LIBFDT))
#error "CONFIG_FIT and CONFIG_OF_LIBFDT are required for auto-update feature"
Expand Down
1 change: 1 addition & 0 deletions drivers/ata/ahci.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* This driver provides a SCSI interface to SATA.
*/
#include <common.h>
#include <cpu_func.h>

#include <command.h>
#include <dm.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/ata/dwc_ahsata.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include <common.h>
#include <ahci.h>
#include <cpu_func.h>
#include <dm.h>
#include <dwc_ahsata.h>
#include <fis.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/ata/fsl_ahci.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*
*/
#include <common.h>
#include <cpu_func.h>
#include <asm/fsl_serdes.h>
#include <dm/lists.h>
#include <dm.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/ata/fsl_sata.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <common.h>
#include <command.h>
#include <console.h>
#include <cpu_func.h>
#include <asm/io.h>
#include <asm/processor.h>
#include <asm/fsl_serdes.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/ata/sata_mv.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

#include <common.h>
#include <ahci.h>
#include <cpu_func.h>
#include <dm.h>
#include <dm/device-internal.h>
#include <dm/lists.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/ata/sata_sil.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/

#include <common.h>
#include <cpu_func.h>
#include <pci.h>
#include <command.h>
#include <asm/byteorder.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/bootcount/bootcount.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

#include <bootcount.h>
#include <cpu_func.h>
#include <linux/compiler.h>

/* Now implement the generic default functions */
Expand Down
Loading

0 comments on commit 1eb69ae

Please sign in to comment.