diff options
author | Simon Glass <sjg@chromium.org> | 2019-11-14 12:57:09 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-12-02 18:23:06 -0500 |
commit | 62f9b654472888dc46feea74f95edb837f49333a (patch) | |
tree | 2ba027312db362b0680f990fd5d55c3508e3fb51 /include | |
parent | dd38416d6b354acb5d12e2bd1fd45e7e63b8a605 (diff) | |
download | u-boot-62f9b654472888dc46feea74f95edb837f49333a.tar.gz u-boot-62f9b654472888dc46feea74f95edb837f49333a.tar.xz u-boot-62f9b654472888dc46feea74f95edb837f49333a.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/common.h | 8 | ||||
-rw-r--r-- | include/cpu_func.h | 23 |
2 files changed, 23 insertions, 8 deletions
diff --git a/include/common.h b/include/common.h index d8f302ea92..16c885dd3f 100644 --- a/include/common.h +++ b/include/common.h @@ -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__ */ diff --git a/include/cpu_func.h b/include/cpu_func.h new file mode 100644 index 0000000000..a99b69b976 --- /dev/null +++ b/include/cpu_func.h @@ -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 |