common: arm: davinci: Move header file out of common
We should not have an arch-specific header file in common.h. Instead, use the asm/hardware.h header to provide the required declarations, and drop the common.h changes. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
1c16d2e248
commit
89f5eaa1ee
@ -7,6 +7,8 @@
|
||||
#ifndef __MISC_H
|
||||
#define __MISC_H
|
||||
|
||||
#include <asm/arch/hardware.h>
|
||||
|
||||
/* pin muxer definitions */
|
||||
#define PIN_MUX_NUM_FIELDS 8 /* Per register */
|
||||
#define PIN_MUX_FIELD_SIZE 4 /* n in bits */
|
||||
|
@ -14,14 +14,15 @@
|
||||
#ifndef __ASM_ARCH_HARDWARE_H
|
||||
#define __ASM_ARCH_HARDWARE_H
|
||||
|
||||
#include <config.h>
|
||||
#include <linux/sizes.h>
|
||||
|
||||
#define REG(addr) (*(volatile unsigned int *)(addr))
|
||||
#define REG_P(addr) ((volatile unsigned int *)(addr))
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
typedef volatile unsigned int dv_reg;
|
||||
typedef volatile unsigned int * dv_reg_p;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Base register addresses
|
||||
@ -285,6 +286,7 @@ typedef volatile unsigned int * dv_reg_p;
|
||||
|
||||
#endif /* CONFIG_SOC_DA8XX */
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
void lpsc_on(unsigned int id);
|
||||
void lpsc_syncreset(unsigned int id);
|
||||
void lpsc_disable(unsigned int id);
|
||||
@ -625,5 +627,6 @@ static inline enum davinci_clk_ids get_async3_src(void)
|
||||
#define FLAG_FLGOFF 0x00000010
|
||||
|
||||
#endif
|
||||
#endif /* !__ASSEMBLY__ */
|
||||
|
||||
#endif /* __ASM_ARCH_HARDWARE_H */
|
||||
|
@ -31,9 +31,6 @@ typedef volatile unsigned char vu_char;
|
||||
#include <stdarg.h>
|
||||
#include <linux/kernel.h>
|
||||
|
||||
#ifdef CONFIG_SOC_DA8XX
|
||||
#include <asm/arch/hardware.h>
|
||||
#endif
|
||||
#ifdef CONFIG_FSL_LSCH3
|
||||
#include <asm/arch/immap_lsch3.h>
|
||||
#endif
|
||||
|
@ -316,4 +316,6 @@
|
||||
int calimain_get_osc_freq(void);
|
||||
#endif
|
||||
|
||||
#include <asm/arch/hardware.h>
|
||||
|
||||
#endif /* __CONFIG_H */
|
||||
|
@ -330,4 +330,7 @@
|
||||
#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + 0x1000 - /* Fix this */ \
|
||||
GENERATED_GBL_DATA_SIZE)
|
||||
#endif /* CONFIG_DIRECT_NOR_BOOT */
|
||||
|
||||
#include <asm/arch/hardware.h>
|
||||
|
||||
#endif /* __CONFIG_H */
|
||||
|
@ -270,4 +270,6 @@
|
||||
"ubootupd_nand=echo run load_magic,run load_nand,run upd;\0" \
|
||||
"bootcmd=run net_testrfs\0"
|
||||
|
||||
#include <asm/arch/hardware.h>
|
||||
|
||||
#endif /* __CONFIG_H */
|
||||
|
@ -301,4 +301,6 @@
|
||||
#define CONFIG_IPAM390_GPIO_LED_RED ((16 * 7) + 11)
|
||||
#define CONFIG_IPAM390_GPIO_LED_GREEN ((16 * 7) + 12)
|
||||
|
||||
#include <asm/arch/hardware.h>
|
||||
|
||||
#endif /* __CONFIG_H */
|
||||
|
@ -214,4 +214,6 @@
|
||||
|
||||
#define CONFIG_SYS_INIT_SP_ADDR 0x80010000
|
||||
|
||||
#include <asm/arch/hardware.h>
|
||||
|
||||
#endif /* __CONFIG_H */
|
||||
|
@ -341,4 +341,7 @@
|
||||
#define CONFIG_SYS_SDRAM_BASE 0xc0000000
|
||||
#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + 0x1000 - /* Fix this */ \
|
||||
GENERATED_GBL_DATA_SIZE)
|
||||
|
||||
#include <asm/arch/hardware.h>
|
||||
|
||||
#endif /* __CONFIG_H */
|
||||
|
Loading…
Reference in New Issue
Block a user