提交 9a3b4ceb 编写于 作者: S Simon Glass 提交者: Tom Rini

common: Move reset_cpu() to the CPU header

Move this function out of common.h and into a relevant header file.
Signed-off-by: NSimon Glass <sjg@chromium.org>
上级 9101a5ec
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#include <command.h> #include <command.h>
#include <common.h> #include <common.h>
#include <cpu_func.h>
__weak void reset_cpu(ulong addr) __weak void reset_cpu(ulong addr)
{ {
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <asm/arch/ep93xx.h> #include <asm/arch/ep93xx.h>
#include <asm/io.h> #include <asm/io.h>
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <time.h> #include <time.h>
#if defined (CONFIG_IMX) #if defined (CONFIG_IMX)
...@@ -79,7 +80,7 @@ ulong get_tbclk(void) ...@@ -79,7 +80,7 @@ ulong get_tbclk(void)
/* /*
* Reset the cpu by setting up the watchdog timer and let him time out * Reset the cpu by setting up the watchdog timer and let him time out
*/ */
void reset_cpu (ulong ignored) void reset_cpu(ulong ignored)
{ {
/* Disable watchdog and set Time-Out field to 0 */ /* Disable watchdog and set Time-Out field to 0 */
WCR = 0x00000000; WCR = 0x00000000;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <time.h> #include <time.h>
#include <asm/arch/cpu.h> #include <asm/arch/cpu.h>
#include <asm/arch/armada100.h> #include <asm/arch/armada100.h>
...@@ -138,7 +139,7 @@ int timer_init(void) ...@@ -138,7 +139,7 @@ int timer_init(void)
* 2. Write key value to TMP_WSAR reg. * 2. Write key value to TMP_WSAR reg.
* 3. Perform write operation. * 3. Perform write operation.
*/ */
void reset_cpu (unsigned long ignored) void reset_cpu(unsigned long ignored)
{ {
struct armd1mpmu_registers *mpmu = struct armd1mpmu_registers *mpmu =
(struct armd1mpmu_registers *) ARMD1_MPMU_BASE; (struct armd1mpmu_registers *) ARMD1_MPMU_BASE;
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/arch/imx-regs.h> #include <asm/arch/imx-regs.h>
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/arch/imx-regs.h> #include <asm/arch/imx-regs.h>
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <linux/errno.h> #include <linux/errno.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/arch/clock.h> #include <asm/arch/clock.h>
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/arch/hardware.h> #include <asm/arch/hardware.h>
#include <asm/arch/spr_syscntl.h> #include <asm/arch/spr_syscntl.h>
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/arch/sysmap.h> #include <asm/arch/sysmap.h>
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <asm/io.h> #include <asm/io.h>
#define CRMU_MAIL_BOX1 0x03024028 #define CRMU_MAIL_BOX1 0x03024028
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <asm/io.h> #include <asm/io.h>
#define CRU_RESET_OFFSET 0x1803F184 #define CRU_RESET_OFFSET 0x1803F184
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/arch/stv0991_wdru.h> #include <asm/arch/stv0991_wdru.h>
void reset_cpu(ulong ignored) void reset_cpu(ulong ignored)
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#include <common.h> #include <common.h>
#include <clock_legacy.h> #include <clock_legacy.h>
#include <cpu_func.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/arch/imx-regs.h> #include <asm/arch/imx-regs.h>
#include <asm/arch/clock.h> #include <asm/arch/clock.h>
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <efi_loader.h> #include <efi_loader.h>
#include <irq_func.h> #include <irq_func.h>
#include <asm/proc-armv/ptrace.h> #include <asm/proc-armv/ptrace.h>
...@@ -48,7 +49,7 @@ int disable_interrupts(void) ...@@ -48,7 +49,7 @@ int disable_interrupts(void)
void bad_mode (void) void bad_mode (void)
{ {
panic ("Resetting CPU ...\n"); panic ("Resetting CPU ...\n");
reset_cpu (0); reset_cpu(0);
} }
static void show_efi_loaded_images(struct pt_regs *regs) static void show_efi_loaded_images(struct pt_regs *regs)
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <irq_func.h> #include <irq_func.h>
/* /*
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <irq_func.h> #include <irq_func.h>
__weak void reset_misc(void) __weak void reset_misc(void)
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/arch/hardware.h> #include <asm/arch/hardware.h>
#include <asm/arch/at91_st.h> #include <asm/arch/at91_st.h>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/arch/hardware.h> #include <asm/arch/hardware.h>
#include <asm/arch/at91_rstc.h> #include <asm/arch/at91_rstc.h>
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/arch/hardware.h> #include <asm/arch/hardware.h>
#include <asm/arch/at91_rstc.h> #include <asm/arch/at91_rstc.h>
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/arch/base.h> #include <asm/arch/base.h>
#include <asm/arch/wdog.h> #include <asm/arch/wdog.h>
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/arch/timer_defs.h> #include <asm/arch/timer_defs.h>
#include <asm/arch/hardware.h> #include <asm/arch/hardware.h>
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
/* /*
* Copyright (C) 2016 Freescale Semiconductor, Inc. * Copyright (C) 2016 Freescale Semiconductor, Inc.
*/ */
#include <cpu_func.h>
#include <init.h> #include <init.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/arch/clock.h> #include <asm/arch/clock.h>
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <spl.h> #include <spl.h>
#include "common.h" #include "common.h"
#include <dm.h> #include <dm.h>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
* Texas Instruments Incorporated, <www.ti.com> * Texas Instruments Incorporated, <www.ti.com>
*/ */
#include <cpu_func.h>
#include <asm/io.h> #include <asm/io.h>
#include <common.h> #include <common.h>
#include <asm/arch/msmc.h> #include <asm/arch/msmc.h>
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#include <common.h> #include <common.h>
#include <command.h> #include <command.h>
#include <cpu_func.h>
#include <env.h> #include <env.h>
#include <netdev.h> #include <netdev.h>
#include <asm/cache.h> #include <asm/cache.h>
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#include <clk.h> #include <clk.h>
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <dm.h> #include <dm.h>
#include <fdtdec.h> #include <fdtdec.h>
#include <ram.h> #include <ram.h>
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#include <clk.h> #include <clk.h>
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <dm.h> #include <dm.h>
#include <fdtdec.h> #include <fdtdec.h>
#include <ram.h> #include <ram.h>
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <init.h> #include <init.h>
#include <asm/arch/boot.h> #include <asm/arch/boot.h>
#include <env.h> #include <env.h>
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <dm.h> #include <dm.h>
#include <fdtdec.h> #include <fdtdec.h>
#include <linux/libfdt.h> #include <linux/libfdt.h>
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
* Sricharan <r.sricharan@ti.com> * Sricharan <r.sricharan@ti.com>
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <palmas.h> #include <palmas.h>
#include <asm/armv7.h> #include <asm/armv7.h>
#include <asm/arch/cpu.h> #include <asm/arch/cpu.h>
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
* Sricharan R <r.sricharan@ti.com> * Sricharan R <r.sricharan@ti.com>
*/ */
#include <config.h> #include <config.h>
#include <cpu_func.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/arch/cpu.h> #include <asm/arch/cpu.h>
#include <linux/compiler.h> #include <linux/compiler.h>
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <asm/io.h> #include <asm/io.h>
#include <env.h> #include <env.h>
#include <errno.h> #include <errno.h>
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <irq_func.h> #include <irq_func.h>
#include <asm/arch/tegra.h> #include <asm/arch/tegra.h>
#include <asm/arch-tegra/pmc.h> #include <asm/arch-tegra/pmc.h>
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <linux/arm-smccc.h> #include <linux/arm-smccc.h>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <linux/io.h> #include <linux/io.h>
#include <asm/secure.h> #include <asm/secure.h>
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <asm/armv7_mpu.h> #include <asm/armv7_mpu.h>
DECLARE_GLOBAL_DATA_PTR; DECLARE_GLOBAL_DATA_PTR;
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <irq_func.h> #include <irq_func.h>
#include <asm/ptrace.h> #include <asm/ptrace.h>
#include <asm/system.h> #include <asm/system.h>
......
...@@ -31,7 +31,7 @@ int cleanup_before_linux (void) ...@@ -31,7 +31,7 @@ int cleanup_before_linux (void)
int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{ {
disable_interrupts(); disable_interrupts();
reset_cpu (0); reset_cpu(0);
return 0; return 0;
} }
......
// SPDX-License-Identifier: GPL-2.0+ // SPDX-License-Identifier: GPL-2.0+
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <asm/processor.h> #include <asm/processor.h>
#include <asm/system.h> #include <asm/system.h>
#include <asm/io.h> #include <asm/io.h>
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
* *
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <spl.h> #include <spl.h>
#include <dm.h> #include <dm.h>
#include <miiphy.h> #include <miiphy.h>
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <netdev.h> #include <netdev.h>
#include <asm/io.h> #include <asm/io.h>
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <errno.h> #include <errno.h>
#include <linux/libfdt.h> #include <linux/libfdt.h>
#include <asm/io.h> #include <asm/io.h>
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
* Sharma Bhupesh <bhupesh.sharma@freescale.com> * Sharma Bhupesh <bhupesh.sharma@freescale.com>
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <dm.h> #include <dm.h>
#include <malloc.h> #include <malloc.h>
#include <errno.h> #include <errno.h>
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <init.h> #include <init.h>
#include <malloc.h> #include <malloc.h>
#include <asm/processor.h> #include <asm/processor.h>
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <env.h> #include <env.h>
#include <errno.h> #include <errno.h>
#include <init.h> #include <init.h>
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
* (C) Copyright 2016 Broadcom Ltd. * (C) Copyright 2016 Broadcom Ltd.
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <asm/system.h> #include <asm/system.h>
#include <asm/armv8/mmu.h> #include <asm/armv8/mmu.h>
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
**/ **/
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <dm.h> #include <dm.h>
#include <init.h> #include <init.h>
#include <malloc.h> #include <malloc.h>
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <errno.h> #include <errno.h>
#include <asm/arch/ddr_defs.h> #include <asm/arch/ddr_defs.h>
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <spl.h> #include <spl.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/mach-imx/iomux-v3.h> #include <asm/mach-imx/iomux-v3.h>
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <spl.h> #include <spl.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/mach-imx/iomux-v3.h> #include <asm/mach-imx/iomux-v3.h>
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <spl.h> #include <spl.h>
#include <asm/io.h> #include <asm/io.h>
#include <errno.h> #include <errno.h>
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <env.h> #include <env.h>
#include <errno.h> #include <errno.h>
#include <init.h> #include <init.h>
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <env.h> #include <env.h>
#include <errno.h> #include <errno.h>
#include <init.h> #include <init.h>
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/arch/iomux.h> #include <asm/arch/iomux.h>
#include <asm/arch/clock.h> #include <asm/arch/clock.h>
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
* Peter Griffin <peter.griffin@linaro.org> * Peter Griffin <peter.griffin@linaro.org>
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <dm.h> #include <dm.h>
#include <fdt_support.h> #include <fdt_support.h>
#include <dm/platform_data/serial_pl01x.h> #include <dm/platform_data/serial_pl01x.h>
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <dm.h> #include <dm.h>
#include <errno.h> #include <errno.h>
#include <asm/io.h> #include <asm/io.h>
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
* Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org> * Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
*/ */
#include <cpu_func.h>
#include <dm.h> #include <dm.h>
#include <common.h> #include <common.h>
#include <asm/io.h> #include <asm/io.h>
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/arch/sys_proto.h> #include <asm/arch/sys_proto.h>
#include <asm/gpio.h> #include <asm/gpio.h>
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <env.h> #include <env.h>
#include <serial.h> #include <serial.h>
#include <spl.h> #include <spl.h>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <asm/armv8/mmu.h> #include <asm/armv8/mmu.h>
#include <asm/system.h> #include <asm/system.h>
#include <asm/io.h> #include <asm/io.h>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <dm.h> #include <dm.h>
#include <env.h> #include <env.h>
#include <init.h> #include <init.h>
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
* (C) Copyright 2017 Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org> * (C) Copyright 2017 Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
*/ */
#include <cpu_func.h>
#include <asm/arch/sysmap-apq8096.h> #include <asm/arch/sysmap-apq8096.h>
#include <env.h> #include <env.h>
#include <linux/arm-smccc.h> #include <linux/arm-smccc.h>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <env.h> #include <env.h>
#include <malloc.h> #include <malloc.h>
#include <dm.h> #include <dm.h>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <malloc.h> #include <malloc.h>
#include <dm/platform_data/serial_sh.h> #include <dm/platform_data/serial_sh.h>
#include <asm/processor.h> #include <asm/processor.h>
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <asm/arch/mmc.h> #include <asm/arch/mmc.h>
#include <asm/arch/rcar-mstp.h> #include <asm/arch/rcar-mstp.h>
#include <asm/arch/rmobile.h> #include <asm/arch/rmobile.h>
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <asm/processor.h> #include <asm/processor.h>
#include <asm/mach-types.h> #include <asm/mach-types.h>
#include <asm/io.h> #include <asm/io.h>
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <malloc.h> #include <malloc.h>
#include <netdev.h> #include <netdev.h>
#include <dm.h> #include <dm.h>
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <malloc.h> #include <malloc.h>
#include <netdev.h> #include <netdev.h>
#include <dm.h> #include <dm.h>
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <malloc.h> #include <malloc.h>
#include <netdev.h> #include <netdev.h>
#include <dm.h> #include <dm.h>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <env.h> #include <env.h>
#include <malloc.h> #include <malloc.h>
#include <dm.h> #include <dm.h>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <malloc.h> #include <malloc.h>
#include <dm/platform_data/serial_sh.h> #include <dm/platform_data/serial_sh.h>
#include <asm/processor.h> #include <asm/processor.h>
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/arch/sys_proto.h> #include <asm/arch/sys_proto.h>
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <env.h> #include <env.h>
#include <malloc.h> #include <malloc.h>
#include <dm.h> #include <dm.h>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <malloc.h> #include <malloc.h>
#include <dm/platform_data/serial_sh.h> #include <dm/platform_data/serial_sh.h>
#include <asm/processor.h> #include <asm/processor.h>
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <env.h> #include <env.h>
#include <env_internal.h> #include <env_internal.h>
#include <malloc.h> #include <malloc.h>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <malloc.h> #include <malloc.h>
#include <dm/platform_data/serial_sh.h> #include <dm/platform_data/serial_sh.h>
#include <asm/processor.h> #include <asm/processor.h>
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <env.h> #include <env.h>
#include <malloc.h> #include <malloc.h>
#include <dm.h> #include <dm.h>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <malloc.h> #include <malloc.h>
#include <dm/platform_data/serial_sh.h> #include <dm/platform_data/serial_sh.h>
#include <asm/processor.h> #include <asm/processor.h>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <asm/io.h> #include <asm/io.h>
#include <spl.h> #include <spl.h>
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <malloc.h> #include <malloc.h>
#include <netdev.h> #include <netdev.h>
#include <dm.h> #include <dm.h>
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <env.h> #include <env.h>
#include <malloc.h> #include <malloc.h>
#include <dm.h> #include <dm.h>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <malloc.h> #include <malloc.h>
#include <dm/platform_data/serial_sh.h> #include <dm/platform_data/serial_sh.h>
#include <asm/processor.h> #include <asm/processor.h>
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/gpio.h> #include <asm/gpio.h>
#include "cpld.h" #include "cpld.h"
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <malloc.h> #include <malloc.h>
#include <dm/platform_data/serial_sh.h> #include <dm/platform_data/serial_sh.h>
#include <asm/processor.h> #include <asm/processor.h>
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <dwmmc.h> #include <dwmmc.h>
#include <malloc.h> #include <malloc.h>
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <malloc.h> #include <malloc.h>
#include <dwmmc.h> #include <dwmmc.h>
#include <linux/libfdt.h> #include <linux/libfdt.h>
......
// SPDX-License-Identifier: GPL-2.0+ // SPDX-License-Identifier: GPL-2.0+
#include <cpu_func.h>
#include <asm/arch/clock.h> #include <asm/arch/clock.h>
#include <asm/arch/iomux.h> #include <asm/arch/iomux.h>
#include <asm/arch/imx-regs.h> #include <asm/arch/imx-regs.h>
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
* Author: Richard Hu <richard.hu@technexion.com> * Author: Richard Hu <richard.hu@technexion.com>
*/ */
#include <cpu_func.h>
#include <asm/arch/clock.h> #include <asm/arch/clock.h>
#include <asm/arch/imx-regs.h> #include <asm/arch/imx-regs.h>
#include <asm/arch/crm_regs.h> #include <asm/arch/crm_regs.h>
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <init.h> #include <init.h>
#include <asm/arch/clock.h> #include <asm/arch/clock.h>
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <dm.h> #include <dm.h>
#include <init.h> #include <init.h>
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <init.h> #include <init.h>
#include <asm/arch/clock.h> #include <asm/arch/clock.h>
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <dm.h> #include <dm.h>
#include <env.h> #include <env.h>
#include <init.h> #include <init.h>
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
* Copyright (C) 2016-2018 Toradex AG * Copyright (C) 2016-2018 Toradex AG
*/ */
#include <cpu_func.h>
#include <asm/arch/clock.h> #include <asm/arch/clock.h>
#include <asm/arch/crm_regs.h> #include <asm/arch/crm_regs.h>
#include <asm/arch/imx-regs.h> #include <asm/arch/imx-regs.h>
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
* Copyright (C) 2018 Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> * Copyright (C) 2018 Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
*/ */
#include <cpu_func.h>
#include <linux/arm-smccc.h> #include <linux/arm-smccc.h>
#include <linux/psci.h> #include <linux/psci.h>
#include <common.h> #include <common.h>
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <fdtdec.h> #include <fdtdec.h>
#include <init.h> #include <init.h>
#include <malloc.h> #include <malloc.h>
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#include <common.h> #include <common.h>
#include <command.h> #include <command.h>
#include <cpu_func.h>
#include <tpm-v1.h> #include <tpm-v1.h>
#include "tpm-user-utils.h" #include "tpm-user-utils.h"
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#define LOG_CATEGORY UCLASS_SYSRESET #define LOG_CATEGORY UCLASS_SYSRESET
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <sysreset.h> #include <sysreset.h>
#include <dm.h> #include <dm.h>
#include <errno.h> #include <errno.h>
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <dm.h> #include <dm.h>
#include <asm/io.h> #include <asm/io.h>
#include <wdt.h> #include <wdt.h>
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/arch/imx-regs.h> #include <asm/arch/imx-regs.h>
......
...@@ -74,8 +74,6 @@ phys_size_t get_effective_memsize(void); ...@@ -74,8 +74,6 @@ phys_size_t get_effective_memsize(void);
int testdram(void); int testdram(void);
#endif /* CONFIG_SYS_DRAM_TEST */ #endif /* CONFIG_SYS_DRAM_TEST */
void reset_cpu (ulong addr);
/* lib/uuid.c */ /* lib/uuid.c */
#include <uuid.h> #include <uuid.h>
......
...@@ -83,5 +83,7 @@ enum { ...@@ -83,5 +83,7 @@ enum {
* @param flags Flags to control what is done * @param flags Flags to control what is done
*/ */
int cleanup_before_linux_select(int flags); int cleanup_before_linux_select(int flags);
void reset_cpu(ulong addr);
; ;
#endif #endif
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
*/ */
#include <common.h> #include <common.h>
#include <cpu_func.h>
#include <debug_uart.h> #include <debug_uart.h>
#include <dm.h> #include <dm.h>
#include <errno.h> #include <errno.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册