common: Move some cache and MMU functions out of common.h

These functions belong in cpu_func.h. Another option would be cache.h
but that code uses driver model and we have not moved these cache
functions to use driver model. Since they are CPU-related it seems
reasonable to put them here.

Move them over.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Simon Glass
2019-11-14 12:57:37 -07:00
committed by Tom Rini
parent 6cc915b5fb
commit 9edefc2776
94 changed files with 101 additions and 9 deletions

View File

@@ -16,6 +16,7 @@
#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <asm/system.h>
static void cache_flush(void);

View File

@@ -14,6 +14,7 @@
#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <asm/system.h>
static void cache_flush(void);

View File

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

View File

@@ -3,6 +3,7 @@
* (C) Copyright 2011
* Ilya Yanok, EmCraft Systems
*/
#include <cpu_func.h>
#include <linux/types.h>
#include <common.h>

View File

@@ -14,6 +14,7 @@
#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <asm/system.h>
static void cache_flush(void);

View File

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

View File

@@ -14,6 +14,7 @@
#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <asm/system.h>
#include <asm/io.h>

View File

@@ -16,6 +16,7 @@
#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <asm/system.h>
#include <asm/cache.h>
#include <asm/armv7.h>

View File

@@ -10,6 +10,7 @@
#include <common.h>
#include <bootm.h>
#include <cpu_func.h>
#include <asm/armv7.h>
#include <asm/secure.h>
#include <asm/setjmp.h>

View File

@@ -4,6 +4,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#if !CONFIG_IS_ENABLED(SYS_DCACHE_OFF)
void enable_caches(void)

View File

@@ -4,6 +4,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <linux/sizes.h>
#if !CONFIG_IS_ENABLED(SYS_DCACHE_OFF)

View File

@@ -8,6 +8,7 @@
#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <asm/armv7.h>
#include <asm/system.h>
#include <asm/barriers.h>

View File

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

View File

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

View File

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

View File

@@ -8,6 +8,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <asm/system.h>
#include <asm/armv8/mmu.h>

View File

@@ -12,6 +12,7 @@
#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <asm/system.h>
#include <asm/secure.h>
#include <linux/compiler.h>

View File

@@ -10,6 +10,7 @@
#include <common.h>
#include <bootm.h>
#include <cpu_func.h>
#include <asm/setjmp.h>
/**

View File

@@ -4,6 +4,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <env.h>
#include <spl.h>
#include <asm/io.h>

View File

@@ -10,6 +10,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <asm/arch/pxa-regs.h>
#include <asm/io.h>
#include <asm/system.h>

View File

@@ -15,6 +15,7 @@
#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <asm/system.h>
#include <asm/io.h>

View File

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

View File

@@ -9,6 +9,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <vsprintf.h>
#include <asm/io.h>
#include <asm/arch/hardware.h>

View File

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

View File

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

View File

@@ -4,6 +4,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <asm/armv7.h>
#include <asm/pl310.h>
#include <asm/io.h>

View File

@@ -6,6 +6,7 @@
#include <common.h>
#include <clk.h>
#include <cpu.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 <asm/arch/imx-regs.h>
#include <asm/io.h>
#include <asm/arch/clock.h>

View File

@@ -7,6 +7,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <asm/arch/imx-regs.h>
#include <asm/arch/clock.h>
#include <asm/arch/sys_proto.h>

View File

@@ -7,6 +7,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <ns16550.h>
#include <asm/io.h>
#include <asm/arch/msmc.h>

View File

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

View File

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

View File

@@ -5,6 +5,7 @@
#include <common.h>
#include <ahci.h>
#include <cpu_func.h>
#include <linux/mbus.h>
#include <asm/io.h>
#include <asm/pl310.h>

View File

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

View File

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

View File

@@ -4,6 +4,7 @@
* (C) Copyright 2012 Renesas Solutions Corp.
*/
#include <common.h>
#include <cpu_func.h>
#include <asm/io.h>
#include <env.h>
#include <linux/ctype.h>

View File

@@ -6,6 +6,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <asm/armv8/mmu.h>
#define GEN3_NR_REGIONS 16

View File

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

View File

@@ -8,6 +8,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#if !CONFIG_IS_ENABLED(SYS_DCACHE_OFF)
void enable_caches(void)

View File

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

View File

@@ -4,6 +4,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <asm/io.h>
#include <asm/pl310.h>
#include <asm/u-boot.h>

View File

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

View File

@@ -10,6 +10,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <mmc.h>
#include <i2c.h>
#include <serial.h>

View File

@@ -5,6 +5,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <ns16550.h>
#include <spl.h>

View File

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

View File

@@ -4,6 +4,7 @@
* Copyright (C) 2012 Xilinx, Inc. All rights reserved.
*/
#include <common.h>
#include <cpu_func.h>
#include <zynqpl.h>
#include <asm/io.h>
#include <asm/arch/clk.h>