aboutsummaryrefslogtreecommitdiff
path: root/arch/arc/lib/cpu.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-12-14 13:16:44 -0500
committerTom Rini <trini@konsulko.com>2023-12-21 08:54:37 -0500
commit28388f4ddbfa9a874e3c2d59217a14e51ce8e5e0 (patch)
tree32e208306cb3d6d5c40b1058e99701cb08470029 /arch/arc/lib/cpu.c
parent10be393cf0af497a7b71b87afc5a3e3eb8fecdd5 (diff)
downloadu-boot-28388f4ddbfa9a874e3c2d59217a14e51ce8e5e0.zip
u-boot-28388f4ddbfa9a874e3c2d59217a14e51ce8e5e0.tar.gz
u-boot-28388f4ddbfa9a874e3c2d59217a14e51ce8e5e0.tar.bz2
arc: Cleanup and audit usage of <config.h>
We need to include <config.h> directly when a file needs to have something such as CFG_SYS_SDRAM_SIZE referenced as this file is not automatically globally included and is most commonly indirectly included via common.h. Remove most cases of arc including config.h directly, but add it where needed. Further clean up the tb100 board config.h file so that we don't rely on config.h being included there for a value used in a single place. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/arc/lib/cpu.c')
-rw-r--r--arch/arc/lib/cpu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arc/lib/cpu.c b/arch/arc/lib/cpu.c
index 803dfd4..5939504 100644
--- a/arch/arc/lib/cpu.c
+++ b/arch/arc/lib/cpu.c
@@ -3,6 +3,7 @@
* Copyright (C) 2013-2014, 2018 Synopsys, Inc. All rights reserved.
*/
+#include <config.h>
#include <clock_legacy.h>
#include <init.h>
#include <malloc.h>