mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-16 09:54:35 +00:00
arm: Partial 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 arm including config.h directly, but add it where needed. This includes a few board-specific fixes. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
28388f4ddb
commit
7776960f4d
17 changed files with 7 additions and 15 deletions
|
@ -7,8 +7,6 @@
|
|||
#ifndef __FSL_SERDES_H__
|
||||
#define __FSL_SERDES_H__
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#ifdef CONFIG_FSL_LSCH3
|
||||
enum srds_prtcl {
|
||||
/*
|
||||
|
|
|
@ -6,8 +6,6 @@
|
|||
#ifndef __FSL_SERDES_H
|
||||
#define __FSL_SERDES_H
|
||||
|
||||
#include <config.h>
|
||||
|
||||
enum srds_prtcl {
|
||||
/*
|
||||
* Nobody will check whether the device 'NONE' has been configured,
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
* assembler source.
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include <asm/unified.h>
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef __ASM_SECURE_H
|
||||
#define __ASM_SECURE_H
|
||||
|
||||
#include <config.h>
|
||||
#include <asm/global_data.h>
|
||||
|
||||
#define __secure __section("._secure.text")
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
#ifndef __ASM_ARM_STRING_H
|
||||
#define __ASM_ARM_STRING_H
|
||||
|
||||
#include <config.h>
|
||||
|
||||
/*
|
||||
* We don't do inline string functions, since the
|
||||
* optimised inline asm versions are not small.
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
#define __ASM_ARCH_PINMUX_DEFS_H
|
||||
|
||||
#include <asm/arch/davinci_misc.h>
|
||||
#include <config.h>
|
||||
|
||||
/* SPI0 pin muxer settings */
|
||||
extern const struct pinmux_config spi0_pins_base[3];
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
#ifndef _ORIGEN_SETUP_H
|
||||
#define _ORIGEN_SETUP_H
|
||||
|
||||
#include <config.h>
|
||||
#include <asm/arch/cpu.h>
|
||||
|
||||
/* Bus Configuration Register Address */
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
#ifndef _SMDK5250_SETUP_H
|
||||
#define _SMDK5250_SETUP_H
|
||||
|
||||
#include <config.h>
|
||||
#include <asm/arch/dmc.h>
|
||||
|
||||
#define NOT_AVAILABLE 0
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
* Lokesh Vutla <lokeshvutla@ti.com>
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include <cpu_func.h>
|
||||
#include <image.h>
|
||||
#include <init.h>
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
#ifndef __ASM_ARCH_CLOCK_H
|
||||
#define __ASM_ARCH_CLOCK_H
|
||||
|
||||
#include <config.h>
|
||||
|
||||
/* Clock Defines */
|
||||
#define V_OSCK 24000000
|
||||
#define V_SCLK V_OSCK
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
#ifndef __ASM_ARCH_J721E_HARDWARE_H
|
||||
#define __ASM_ARCH_J721E_HARDWARE_H
|
||||
|
||||
#include <config.h>
|
||||
#ifndef __ASSEMBLY__
|
||||
#include <linux/bitops.h>
|
||||
#endif
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
#ifndef __ASM_ARCH_J721S2_HARDWARE_H
|
||||
#define __ASM_ARCH_J721S2_HARDWARE_H
|
||||
|
||||
#include <config.h>
|
||||
#ifndef __ASSEMBLY__
|
||||
#include <linux/bitops.h>
|
||||
#endif
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
* Texas Instruments Incorporated, <www.ti.com>
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include <command.h>
|
||||
#include <image.h>
|
||||
#include <mach/mon.h>
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
* Copyright 2017 NXP
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include <vsprintf.h>
|
||||
#include <linux/string.h>
|
||||
#include <asm/io.h>
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
* Copyright 2015 Freescale Semiconductor, Inc.
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include <vsprintf.h>
|
||||
#include <linux/string.h>
|
||||
#include <asm/io.h>
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include <asm/arch/hardware.h>
|
||||
#include <asm/io.h>
|
||||
#include <dm/uclass.h>
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
#ifndef __DDR3_AXP_H
|
||||
#define __DDR3_AXP_H
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#define MV_78XX0_Z1_REV 0x0
|
||||
#define MV_78XX0_A0_REV 0x1
|
||||
#define MV_78XX0_B0_REV 0x2
|
||||
|
|
Loading…
Add table
Reference in a new issue