Skip to contentSkip to conversation

davinci: split out some dm644x-specific bits from psc

PATCH New David Brownell 1 participant 1 message Apr 18, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 3/5 davinci: split out some dm644x-specific bits from psc

From: David Brownell <[email protected]>

Split out DaVinci DM6446-specific bits from more generic bits:

- Add a CONFIG_SOC_DM644X. All current boards use DM6446 chips; DM6443 and DM6441 chips differ in available peripherals.

- Move most DM644X-specific bits from psc.c to a new dm644x.c file, which is conditionally built. It provides device-specific setup.

Plus minor coding style and comment updates with respect to the PSC.

---
 cpu/arm926ejs/davinci/Makefile      |    1 
 cpu/arm926ejs/davinci/dm644x.c      |   94 +++++++++++++++++++++++++++++++
 cpu/arm926ejs/davinci/psc.c         |  103 +++++++++-------------------------
 include/configs/davinci_dvevm.h     |    1 
 include/configs/davinci_schmoogie.h |    1 
 include/configs/davinci_sffsdr.h    |    1 
 include/configs/davinci_sonata.h    |    1 
 7 files changed, 127 insertions(+), 75 deletions(-)
cpu/arm926ejs/davinci/Makefile +1 -0
@@ -28,6 +28,7 @@ include $(TOPDIR)/config.mk
 LIB	= $(obj)lib$(SOC).a
 
 COBJS-y				+= timer.o psc.o
+COBJS-$(CONFIG_SOC_DM644X)	+= dm644x.o
 COBJS-$(CONFIG_DRIVER_TI_EMAC)	+= ether.o lxt972.o dp83848.o
 
 SOBJS	= reset.o
cpu/arm926ejs/davinci/dm644x.c new file +94 -0

94 lines not on this page · raw message

cpu/arm926ejs/davinci/psc.c +28 -75

138 lines not on this page · raw message

include/configs/davinci_dvevm.h +1 -0
@@ -59,6 +59,7 @@
 #define CONFIG_SYS_TIMERBASE		0x01c21400	/* use timer 0 */
 #define CONFIG_SYS_HZ_CLOCK		27000000	/* Timer Input clock freq */
 #define CONFIG_SYS_HZ			1000
+#define CONFIG_SOC_DM644X
 /*====================================================*/
 /* EEPROM definitions for Atmel 24C256BN SEEPROM chip */
 /* on Sonata/DV_EVM board. No EEPROM on schmoogie.    */
include/configs/davinci_schmoogie.h +1 -0
@@ -34,6 +34,7 @@
 #define CONFIG_SYS_TIMERBASE		0x01c21400	/* use timer 0 */
 #define CONFIG_SYS_HZ_CLOCK		27000000	/* Timer Input clock freq */
 #define CONFIG_SYS_HZ			1000
+#define CONFIG_SOC_DM644X
 /*=============*/
 /* Memory Info */
 /*=============*/
include/configs/davinci_sffsdr.h +1 -0
@@ -35,6 +35,7 @@
 #define CONFIG_SYS_TIMERBASE		0x01c21400	/* use timer 0 */
 #define CONFIG_SYS_HZ_CLOCK		27000000	/* Timer Input clock freq */
 #define CONFIG_SYS_HZ			1000
+#define CONFIG_SOC_DM644X
 /* EEPROM definitions for Atmel 24LC64 EEPROM chip */
 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN		2
 #define CONFIG_SYS_I2C_EEPROM_ADDR		0x50
include/configs/davinci_sonata.h +1 -0
@@ -59,6 +59,7 @@
 #define CONFIG_SYS_TIMERBASE		0x01c21400	/* use timer 0 */
 #define CONFIG_SYS_HZ_CLOCK		27000000	/* Timer Input clock freq */
 #define CONFIG_SYS_HZ			1000
+#define CONFIG_SOC_DM644X
 /*====================================================*/
 /* EEPROM definitions for Atmel 24C256BN SEEPROM chip */
 /* on Sonata/DV_EVM board. No EEPROM on schmoogie.    */