common: Move older CPU functions to their own header
These should be moved to driver model, but in the meantime, move them out of the common header to help reduce its size. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
dd38416d6b
commit
62f9b65447
2
README
2
README
@ -2983,7 +2983,7 @@ Low Level (hardware related) configuration options:
|
||||
- CONFIG_SYS_SRIOn_MEM_VIRT:
|
||||
Virtual Address of SRIO port 'n' memory region
|
||||
|
||||
- CONFIG_SYS_SRIOn_MEM_PHYS:
|
||||
- CONFIG_SYS_SRIOn_MEM_PHYxS:
|
||||
Physical Address of SRIO port 'n' memory region
|
||||
|
||||
- CONFIG_SYS_SRIOn_MEM_SIZE:
|
||||
|
@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <cpu_func.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/system.h>
|
||||
#include <asm/arch/mp.h>
|
||||
|
@ -7,6 +7,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <cpu_func.h>
|
||||
#include <asm/io.h>
|
||||
#include <linux/errno.h>
|
||||
#include <asm/arch/sys_proto.h>
|
||||
|
@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <cpu_func.h>
|
||||
#include <asm/arch/hardware.h>
|
||||
#include <asm/arch/sys_proto.h>
|
||||
#include <asm/io.h>
|
||||
|
@ -10,6 +10,7 @@
|
||||
|
||||
#include <config.h>
|
||||
#include <common.h>
|
||||
#include <cpu_func.h>
|
||||
#include <watchdog.h>
|
||||
#include <command.h>
|
||||
#include <fsl_esdhc.h>
|
||||
|
@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <cpu_func.h>
|
||||
#include <env.h>
|
||||
#include <asm/processor.h>
|
||||
#include <env.h>
|
||||
|
@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <cpu_func.h>
|
||||
#include <asm/processor.h>
|
||||
#include <asm/mmu.h>
|
||||
#include <ioports.h>
|
||||
|
1
cmd/mp.c
1
cmd/mp.c
@ -5,6 +5,7 @@
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <cpu_func.h>
|
||||
|
||||
static int cpu_status_all(void)
|
||||
{
|
||||
|
@ -355,14 +355,6 @@ static inline struct in_addr env_get_ip(char *var)
|
||||
void show_activity(int arg);
|
||||
#endif
|
||||
|
||||
/* Multicore arch functions */
|
||||
#ifdef CONFIG_MP
|
||||
int cpu_status(u32 nr);
|
||||
int cpu_reset(u32 nr);
|
||||
int cpu_disable(u32 nr);
|
||||
int cpu_release(u32 nr, int argc, char * const argv[]);
|
||||
#endif
|
||||
|
||||
#else /* __ASSEMBLY__ */
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
23
include/cpu_func.h
Normal file
23
include/cpu_func.h
Normal file
@ -0,0 +1,23 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0+ */
|
||||
/*
|
||||
* (C) Copyright 2000-2009
|
||||
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
||||
* Copyright 2019 Google LLC
|
||||
*/
|
||||
|
||||
#ifndef __CPU_LEGACY_H
|
||||
#define __CPU_LEGACY_H
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
/*
|
||||
* Multicore arch functions
|
||||
*
|
||||
* These should be moved to use the CPU uclass.
|
||||
*/
|
||||
int cpu_status(u32 nr);
|
||||
int cpu_reset(u32 nr);
|
||||
int cpu_disable(u32 nr);
|
||||
int cpu_release(u32 nr, int argc, char * const argv[]);
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user