Skip to contentSkip to conversation

ARM DaVinci Minor Change to header file

PATCH New s-paulraj at ti.com 2 participants 2 messages May 18, 2009 – May 23, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM DaVinci Minor Change to header file

WE want to use MACROS in the config files for various DaVinci boards. At the moment this is not possible because we get compilation error when we include the hardware.h header file in the config file for various SOC's and then try to compile.
This patch addresses comments received while submitting patches for the Leopard board.

---
 include/asm-arm/arch-davinci/hardware.h |   21 +++++++++++++--------
 1 files changed, 13 insertions(+), 8 deletions(-)
include/asm-arm/arch-davinci/hardware.h +13 -8
index 313b3f3..2e941e2 100644
@@ -34,6 +34,9 @@
 #define __ASM_ARCH_HARDWARE_H
 
 #include <config.h>
+
+#ifndef __ASSEMBLY__
+
 #include <asm/sizes.h>
 
 #define	REG(addr)	(*(volatile unsigned int *)(addr))
@@ -42,6 +45,16 @@
 typedef volatile unsigned int	dv_reg;
 typedef volatile unsigned int *	dv_reg_p;
 
+void lpsc_on(unsigned int id);
+void dsp_on(void);
+
+void davinci_enable_uart0(void);
+void davinci_enable_emac(void);
+void davinci_enable_i2c(void);
+void davinci_errata_workarounds(void);
+
+#endif
+
 /*
  * Base register addresses
  *
@@ -153,14 +166,6 @@ typedef volatile unsigned int *	dv_reg_p;
 #define DAVINCI_LPSC_GEM		39
 #define DAVINCI_LPSC_IMCOP		40
 
-void lpsc_on(unsigned int id);
-void dsp_on(void);
-
-void davinci_enable_uart0(void);
-void davinci_enable_emac(void);
-void davinci_enable_i2c(void);
-void davinci_errata_workarounds(void);
-
 /* Some PSC defines */
 #define PSC_CHP_SHRTSW			(0x01c40038)
 #define PSC_GBLCTL			(0x01c41010)
Signature · 1 line
1.6.0.4
#1 lore raw

PATCH 1/1 ARM DaVinci Minor Change to header file

Quoted 10 lines · s-paulraj at ti.com

WE want to use MACROS in the config files for various DaVinci boards. At the moment this is not possible because we get compilation error when we include the hardware.h header file in the config file for various SOC's and then try to compile.
This patch addresses comments received while submitting patches for the Leopard board.

---
 include/asm-arm/arch-davinci/hardware.h |   21 +++++++++++++--------

it will be better to split in two header
hardware.h and devices.h for device init

Best Regards,
J.