Skip to contentSkip to conversation

ARM DaVinci: Adding DM357 Support

PATCH Superseded s-paulraj at ti.com 3 participants 4 messages Apr 29, 2009 Kbuild

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ARM DaVinci: Adding DM357 Support

Patch adds Support for DaVinci DM357. This has been tested on a DM357 EVM. It boots of a small page NAND on the EVM.
This SOC is very similar to the DM644x.
The DM357 EVM has 2 NANDs, one small page NAND and another large page NAND. But the device can only boot of the small page NAND. It does not have NOR support. This patch has been tested on the DM357 EVM.

---
 MAKEALL                              |    1 +
 Makefile                             |    3 +
 board/davinci/dm357_evm/Makefile     |   52 +++++++++++
 board/davinci/dm357_evm/board_init.S |   29 ++++++
 board/davinci/dm357_evm/config.mk    |   39 +++++++++
 board/davinci/dm357_evm/dm357_evm.c  |   80 +++++++++++++++++
 board/davinci/dm357_evm/u-boot.lds   |   52 +++++++++++
 include/asm-arm/mach-types.h         |    1 +
 include/configs/davinci_dm357_evm.h  |  157 ++++++++++++++++++++++++++++++++++
 9 files changed, 414 insertions(+), 0 deletions(-)
 create mode 100644 board/davinci/dm357_evm/Makefile
 create mode 100644 board/davinci/dm357_evm/board_init.S
 create mode 100644 board/davinci/dm357_evm/config.mk
 create mode 100644 board/davinci/dm357_evm/dm357_evm.c
 create mode 100644 board/davinci/dm357_evm/u-boot.lds
 create mode 100644 include/configs/davinci_dm357_evm.h
MAKEALL +1 -0
index 1a18723..c65f418 100755
@@ -528,6 +528,7 @@ LIST_ARM9="			\
 	davinci_sffsdr		\
 	davinci_sonata		\
 	davinci_dm355evm	\
+	davinci_dm357_evm	\
 "
 
 #########################################################################
Makefile +3 -0
index 9c0c4e4..fb0ce64 100644
@@ -2793,6 +2793,9 @@ davinci_sonata_config :	unconfig
 davinci_dm355evm_config :	unconfig
 	@$(MKCONFIG) $(@:_config=) arm arm926ejs dm355evm davinci davinci
 
+davinci_dm357_evm_config :	unconfig
+	@$(MKCONFIG) $(@:_config=) arm arm926ejs dm357_evm davinci davinci
+
 lpd7a400_config \
 lpd7a404_config:	unconfig
 	@$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
board/davinci/dm357_evm/Makefile new file +52 -0

52 lines not on this page · raw message

board/davinci/dm357_evm/board_init.S new file +29 -0
new file mode 100644
index 0000000..22d8adc
@@ -0,0 +1,29 @@
+/*
+ * Copyright (C) 2007 Sergey Kubushyn <[email protected]>
+ *
+ * Board-specific low level initialization code. Called at the very end
+ * of cpu/arm926ejs/davinci/lowlevel_init.S. Just returns if there is no
+ * initialization required.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#include <config.h>
+
+.globl	dv_board_init
+dv_board_init:
+
+	mov	pc, lr
board/davinci/dm357_evm/config.mk new file +39 -0
new file mode 100644
index 0000000..aa89d0e
@@ -0,0 +1,39 @@
+#
+# (C) Copyright 2002
+# Gary Jennejohn, DENX Software Engineering, <[email protected]>
+# David Mueller, ELSOFT AG, <[email protected]>
+#
+# (C) Copyright 2003
+# Texas Instruments, <www.ti.com>
+# Swaminathan <[email protected]>
+#
+# Davinci EVM board (ARM925EJS) cpu
+# see http://www.ti.com/ for more information on Texas Instruments
+#
+# Davinci EVM has 1 bank of 256 MB DDR RAM
+# Physical Address:
+# 8000'0000 to 9000'0000
+#
+# Copyright (C) 2007 Sergey Kubushyn <[email protected]>
+#
+# Visioneering Corp. Sonata board (ARM926EJS) cpu
+#
+# Sonata board has 1 bank of 128 MB DDR RAM
+# Physical Address:
+# 8000'0000 to 8800'0000
+#
+# Razorstream, LLC. SCHMOOGIE board (ARM926EJS) cpu
+#
+# Schmoogie board has 1 bank of 128 MB DDR RAM
+# Physical Address:
+# 8000'0000 to 8800'0000
+#
+# Linux-Kernel is expected to be at 8000'8000, entry 8000'8000
+# (mem base + reserved)
+#
+# we load ourself to 8108 '0000
+#
+#
+
+#Provide at least 16MB spacing between us and the Linux Kernel image
+TEXT_BASE = 0x81080000
board/davinci/dm357_evm/dm357_evm.c new file +80 -0

80 lines not on this page · raw message

board/davinci/dm357_evm/u-boot.lds new file +52 -0

52 lines not on this page · raw message

include/asm-arm/mach-types.h +1 -0
index 2c1e69b..5c94fbe 100644
@@ -1990,6 +1990,7 @@ extern unsigned int __machine_arch_type;
 #define MACH_TYPE_BLAZE                2004
 #define MACH_TYPE_LINKSTATION_LS_HGL   2005
 #define MACH_TYPE_HTCVENUS             2006
+#define MACH_TYPE_DAVINCI_DM357_EVM    2064
 
 #ifdef CONFIG_ARCH_EBSA110
 # ifdef machine_arch_type
include/configs/davinci_dm357_evm.h new file +157 -0

157 lines not on this page · raw message

Signature · 1 line
1.6.0.4
#1 lore raw

PATCH v2 1/1 ARM DaVinci: Adding DM357 Support

board/davinci/dm357_evm/board_init.S

Quoted 4 lines · s-paulraj at ti.com

+.globl?dv_board_init

board/davinci/dm357_evm/board_init.S new file +3 -0
+dv_board_init:
+
+???????mov?????pc, lr

Surely you can eliminate a file containing only such a useless NOP function...

Quoted 1 line

+#define CONFIG_SOC_DM644X

Hmm, I'd have expected a CONFIG_SOC_DM357. No DSP (and so why were you checking for DSPLINK?) on these chips, right? Just an HMJCP (resembling DM365).

- Dave

#2 lore raw

PATCH v2 1/1 ARM DaVinci: Adding DM357 Support

Dave,
Please see inline.

Quoted 7 lines

-----Original Message-----
From: David Brownell [mailto:david-b at pacbell.net]
Sent: Wednesday, April 29, 2009 2:09 PM
To: Paulraj, Sandeep; u-boot at lists.denx.de
Cc: davinci-linux-open-source at linux.davincidsp.com
Subject: Re: [PATCH v2] ARM DaVinci: Adding DM357 Support

Quoted 5 lines

board/davinci/dm357_evm/board_init.S

Quoted 4 lines · s-paulraj at ti.com

+.globl?dv_board_init

board/davinci/dm357_evm/board_init.S new file +3 -0
+dv_board_init:
+
+???????mov?????pc, lr

[Sandeep] OK I will remove this

Quoted 6 lines

Surely you can eliminate a file containing only such a useless NOP function...

Quoted 1 line

+#define CONFIG_SOC_DM644X

[Sandeep] this is correct. It is a type of DM644x.

Quoted 4 lines

Hmm, I'd have expected a CONFIG_SOC_DM357. No DSP (and so why were you checking for DSPLINK?) on these chips, right? Just an HMJCP (resembling DM365).

[Sandeep] I will remove this

Any other comments?

Quoted 2 lines

- Dave

Thanks,
Sandeep

#3 lore raw

PATCH v2 1/1 ARM DaVinci: Adding DM357 Support

Quoted 1 line · Sandeep

Any other comments?

Not for now