common: Move ARM cache operations out of common.h

These functions are CPU-related and do not use driver model. Move them to
cpu_func.h

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Simon Glass 2019-11-14 12:57:39 -07:00 committed by Tom Rini
parent 3374d28b34
commit 1eb69ae498
135 changed files with 159 additions and 24 deletions

View File

@ -4,6 +4,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <netdev.h>
#include <asm/arch/cpu.h>
#include <asm/arch/clk.h>

View File

@ -4,6 +4,7 @@
* Texas Instruments, <www.ti.com>
* Aneesh V <aneesh@ti.com>
*/
#include <cpu_func.h>
#include <linux/types.h>
#include <common.h>
#include <asm/armv7.h>

View File

@ -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>

View File

@ -4,6 +4,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <errno.h>
#include <linux/kernel.h>
#include <asm/io.h>

View File

@ -3,6 +3,7 @@
* (C) Copyright 2016 Vasily Khoruzhick <anarsoul@gmail.com>
*/
#include <cpu_func.h>
#include <linux/types.h>
#include <common.h>

View File

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

View File

@ -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>

View File

@ -4,6 +4,7 @@
* Copyright 2017 NXP
*/
#include <cpu_func.h>
#include <asm/io.h>
#include <asm/psci.h>
#include <asm/secure.h>

View File

@ -13,6 +13,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <stdarg.h>
#include <asm/arch/sys_proto.h>

View File

@ -4,6 +4,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <asm/io.h>
#include <asm/arch-tegra/ivc.h>

View File

@ -9,6 +9,7 @@
#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <env.h>
#include <fdt_support.h>
#include <image.h>

View File

@ -27,6 +27,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <asm/relocs.h>
#include <asm/sections.h>

View File

@ -11,6 +11,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <asm/mipsregs.h>
#include <asm/addrspace.h>
#include <asm/system.h>

View File

@ -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>

View File

@ -17,6 +17,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <linux/io.h>
#include <asm/cacheops.h>
#include <asm/io.h>

View File

@ -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>

View File

@ -6,6 +6,7 @@
#include <common.h>
#include <cpu.h>
#include <cpu_func.h>
#include <dm.h>
#include <errno.h>
#include <asm/cache.h>

View File

@ -5,6 +5,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#define NIOS_MAGIC 0x534f494e /* enable command line and initrd passing */

View File

@ -8,6 +8,7 @@
#include <common.h>
#include <cpu_func.h>
#include <env.h>
#include <watchdog.h>
#include <command.h>

View File

@ -5,6 +5,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <asm/cache.h>
#include <watchdog.h>

View File

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

View File

@ -5,6 +5,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <asm/barrier.h>
#include <asm/smp.h>

View File

@ -4,6 +4,7 @@
* Lukas Auer <lukas.auer@aisec.fraunhofer.de>
*/
#include <common.h>
#include <cpu_func.h>
#include <spl.h>
#include <asm/smp.h>

View File

@ -4,6 +4,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <errno.h>
#include <linux/libfdt.h>

View File

@ -4,6 +4,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <errno.h>
#include <fdtdec.h>
#include <malloc.h>

View File

@ -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>

View File

@ -9,6 +9,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <div64.h>
#include <env.h>
#include <malloc.h>

View File

@ -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>

View File

@ -6,6 +6,7 @@
* Author: Thomas Fitzsimmons <fitzsim@fitzsim.org>
*/
#include <cpu_func.h>
#include <time.h>
#include <linux/types.h>
#include <common.h>

View File

@ -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>

View File

@ -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>

View File

@ -4,6 +4,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <cros_ec.h>
#include <dm.h>
#include <led.h>

View File

@ -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,

View File

@ -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>

View File

@ -13,6 +13,7 @@
*/
#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <env.h>
#include <gzip.h>
#include <image.h>

View File

@ -6,6 +6,7 @@
#include <avb_verify.h>
#include <blk.h>
#include <cpu_func.h>
#include <fastboot.h>
#include <image.h>
#include <malloc.h>

View File

@ -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)

View File

@ -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>

View File

@ -6,6 +6,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <malloc.h>
#include <errno.h>
#include <bouncebuf.h>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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"

View File

@ -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>

View File

@ -6,6 +6,7 @@
#include <common.h>
#include <ahci.h>
#include <cpu_func.h>
#include <dm.h>
#include <dwc_ahsata.h>
#include <fis.h>

View File

@ -6,6 +6,7 @@
*
*/
#include <common.h>
#include <cpu_func.h>
#include <asm/fsl_serdes.h>
#include <dm/lists.h>
#include <dm.h>

View File

@ -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>

View File

@ -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>

View File

@ -6,6 +6,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <pci.h>
#include <command.h>
#include <asm/byteorder.h>

View File

@ -5,6 +5,7 @@
*/
#include <bootcount.h>
#include <cpu_func.h>
#include <linux/compiler.h>
/* Now implement the generic default functions */

View File

@ -5,6 +5,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <asm/io.h>
DECLARE_GLOBAL_DATA_PTR;

View File

@ -9,6 +9,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <asm/io.h>
#include <clk.h>
#include <fdtdec.h>

View File

@ -5,6 +5,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <malloc.h>
#include <memalign.h>
#include <fsl_sec.h>

View File

@ -5,6 +5,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <malloc.h>
#include <memalign.h>
#include "jobdesc.h"

View File

@ -8,6 +8,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <fsl_sec.h>
#include "desc_constr.h"
#include "jobdesc.h"

View File

@ -6,6 +6,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <malloc.h>
#include "fsl_sec.h"
#include "jr.h"

View File

@ -9,6 +9,7 @@
* Copyright (C) 2010 Freescale Semiconductor, Inc. All Rights Reserved.
*/
#include <cpu_func.h>
#include <linux/list.h>
#include <common.h>

View File

@ -17,6 +17,7 @@
#include <common.h>
#include <clk.h>
#include <cpu_func.h>
#include <dm.h>
#include <dma-uclass.h>
#include <memalign.h>

View File

@ -10,6 +10,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <dm/read.h>
#include <dma-uclass.h>

View File

@ -6,6 +6,7 @@
#define pr_fmt(fmt) "udma: " fmt
#include <common.h>
#include <cpu_func.h>
#include <asm/io.h>
#include <asm/bitops.h>
#include <malloc.h>

View File

@ -5,6 +5,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <asm/arch/sys_proto.h>
#include <memalign.h>
#include <versalpl.h>

View File

@ -7,6 +7,7 @@
#include <console.h>
#include <common.h>
#include <cpu_func.h>
#include <zynqmppl.h>
#include <zynqmp_firmware.h>
#include <linux/sizes.h>

View File

@ -7,6 +7,7 @@
#include <bouncebuf.h>
#include <common.h>
#include <cpu_func.h>
#include <errno.h>
#include <malloc.h>
#include <memalign.h>

View File

@ -12,6 +12,7 @@
#include <config.h>
#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <errno.h>
#include <hwconfig.h>
#include <mmc.h>

View File

@ -14,6 +14,7 @@
#include <common.h>
#include <command.h>
#include <clk.h>
#include <cpu_func.h>
#include <errno.h>
#include <hwconfig.h>
#include <mmc.h>

View File

@ -4,6 +4,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <mmc.h>
#include <malloc.h>

View File

@ -4,6 +4,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <fdtdec.h>
#include <malloc.h>

View File

@ -24,6 +24,7 @@
#include <config.h>
#include <common.h>
#include <cpu_func.h>
#include <malloc.h>
#include <memalign.h>
#include <mmc.h>

View File

@ -8,6 +8,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <errno.h>
#include <malloc.h>

View File

@ -6,6 +6,7 @@
#include <common.h>
#include <clk.h>
#include <cpu_func.h>
#include <dm.h>
#include <fdtdec.h>
#include <linux/libfdt.h>

View File

@ -6,6 +6,7 @@
#include <common.h>
#include <clk.h>
#include <cpu_func.h>
#include <fdtdec.h>
#include <mmc.h>
#include <dm.h>

View File

@ -5,6 +5,7 @@
* Copyright (C) 2009-2010, Intel Corporation and its suppliers.
*/
#include <cpu_func.h>
#include <dm.h>
#include <nand.h>
#include <linux/bitfield.h>

View File

@ -10,6 +10,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <asm/io.h>
#include <asm/fsl_lbc.h>
#include <nand.h>

View File

@ -7,6 +7,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <asm/io.h>
#include <fsl_ifc.h>
#include <linux/mtd/rawnand.h>

View File

@ -13,6 +13,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <linux/mtd/rawnand.h>
#include <linux/sizes.h>

View File

@ -6,6 +6,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <fdt_support.h>
#include <flash.h>

View File

@ -4,6 +4,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <spi_flash.h>
#include <malloc.h>

View File

@ -7,6 +7,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <errno.h>
#include <miiphy.h>

View File

@ -9,6 +9,7 @@
* published by the Free Software Foundation.
*/
#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <errno.h>
#include <fdt_support.h>

View File

@ -11,6 +11,7 @@
#include <config.h>
#include <common.h>
#include <cpu_func.h>
#include <malloc.h>
#include <net.h>
#include <asm/io.h>

View File

@ -10,6 +10,7 @@
#include <common.h>
#include <clk.h>
#include <cpu_func.h>
#include <dm.h>
#include <errno.h>
#include <miiphy.h>

View File

@ -28,6 +28,7 @@
*/
#include <common.h>
#include <clk.h>
#include <cpu_func.h>
#include <dm.h>
#include <errno.h>
#include <memalign.h>

View File

@ -30,6 +30,7 @@ tested on both gig copper and gig fiber boards
*/
#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <errno.h>
#include <memalign.h>

View File

@ -10,6 +10,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <dm/platform_data/net_ethoc.h>
#include <linux/io.h>

View File

@ -8,6 +8,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <env.h>
#include <malloc.h>

View File

@ -5,6 +5,7 @@
* Copyright 2017-2018 NXP
*/
#include <common.h>
#include <cpu_func.h>
#include <env.h>
#include <errno.h>
#include <linux/bug.h>

View File

@ -12,6 +12,7 @@
*/
#include <clk.h>
#include <cpu_func.h>
#include <dm.h>
#include <miiphy.h>
#include <net.h>

View File

@ -8,6 +8,7 @@
#include <config.h>
#include <common.h>
#include <cpu_func.h>
#include <env.h>
#include <malloc.h>
#include <net.h>

View File

@ -3,6 +3,7 @@
* Copyright (c) 2019, Linaro Limited
*/
#include <cpu_func.h>
#include <asm/io.h>
#include <common.h>
#include <console.h>

View File

@ -5,6 +5,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <asm/io.h>
#include <asm/types.h>
#include <malloc.h>

View File

@ -4,6 +4,7 @@
*/
#include <common.h>
#include <clk.h>
#include <cpu_func.h>
#include <dm.h>
/*

View File

@ -14,6 +14,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <malloc.h>
#include <miiphy.h>

View File

@ -7,6 +7,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <malloc.h>
#include <miiphy.h>

View File

@ -13,6 +13,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <net.h>
#include <netdev.h>

View File

@ -14,6 +14,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <dm/device-internal.h>
#include <dm/lists.h>

View File

@ -6,6 +6,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <errno.h>
#include <asm/io.h>

View File

@ -7,6 +7,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <malloc.h>
#include <net.h>
#include <netdev.h>

View File

@ -4,6 +4,7 @@
*
*/
#include <common.h>
#include <cpu_func.h>
#include <errno.h>
#include <dm.h>
#include <net.h>

View File

@ -10,6 +10,7 @@
#include <common.h>
#include <clk.h>
#include <cpu_func.h>
#include <dm.h>
#include <errno.h>
#include <miiphy.h>

View File

@ -72,6 +72,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <malloc.h>
#include <net.h>
#include <netdev.h>

Some files were not shown because too many files have changed in this diff Show More