Skip to contentSkip to conversation

ARM: Add support for Lyrtech SFF-SDR board (ARM926EJS)

PATCH Superseded Hugo Villeneuve 2 participants 4 messages May 22, 2008 Kbuild

v3 of 8 Superseded Latest is v8 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 ARM: Add support for Lyrtech SFF-SDR board (ARM926EJS)

ARM: This patch adds support for the Lyrtech SFF-SDR board, based on the TI DaVinci architecture (ARM926EJS).

---

 CREDITS                           |    4 +
 MAKEALL                           |    1 +
 Makefile                          |    3 +
 board/davinci/sffsdr/Makefile     |   54 +++++++++
 board/davinci/sffsdr/board_init.S |   35 ++++++
 board/davinci/sffsdr/config.mk    |   42 +++++++
 board/davinci/sffsdr/sffsdr.c     |  217 +++++++++++++++++++++++++++++++++++++
 board/davinci/sffsdr/u-boot.lds   |   55 ++++++++++
 include/asm-arm/mach-types.h      |   13 +++
 include/configs/davinci_sffsdr.h  |  175 ++++++++++++++++++++++++++++++
 10 files changed, 599 insertions(+), 0 deletions(-)
CREDITS +4 -0
index e84ef38..37f55fe 100644
@@ -533,3 +533,7 @@ N: Timo Tuunainen
 E: timo.tuunainen at sysart.fi
 D: Support for Artila M-501 starter kit
 W: http://www.sysart.fi/
+
+N: Philip Balister
+E: philip at balister.org
+D: Port to Lyrtech SFFSDR development board.
MAKEALL +1 -0
index 37b4334..f53ceec 100755
@@ -496,6 +496,7 @@ LIST_ARM9="			\
 	voiceblue		\
 	davinci_dvevm		\
 	davinci_schmoogie	\
+	davinci_sffsdr		\
 	davinci_sonata		\
 "
 
Makefile +3 -0
index 6548f8e..05d90aa 100644
@@ -2408,6 +2408,9 @@ davinci_dvevm_config :	unconfig
 davinci_schmoogie_config :	unconfig
 	@$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
 
+davinci_sffsdr_config :	unconfig
+	@$(MKCONFIG) $(@:_config=) arm arm926ejs sffsdr davinci davinci
+
 davinci_sonata_config :	unconfig
 	@$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
 
board/davinci/sffsdr/Makefile new file +54 -0

54 lines not on this page · raw message

board/davinci/sffsdr/board_init.S new file +35 -0
new file mode 100644
index 0000000..26fedd9
@@ -0,0 +1,35 @@
+/*
+ * 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.
+ *
+ * Copyright (C) 2007 Sergey Kubushyn <[email protected]>
+ *
+ * Copyright (C) 2008 Lyrtech <www.lyrtech.com>
+ * Copyright (C) 2008 Philip Balister <[email protected]>
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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/sffsdr/config.mk new file +42 -0

42 lines not on this page · raw message

board/davinci/sffsdr/sffsdr.c new file +217 -0

217 lines not on this page · raw message

board/davinci/sffsdr/u-boot.lds new file +55 -0

55 lines not on this page · raw message

include/asm-arm/mach-types.h +13 -0
index aaf2ea2..b347857 100644
@@ -1595,6 +1595,7 @@ extern unsigned int __machine_arch_type;
 #define MACH_TYPE_P300                 1602
 #define MACH_TYPE_XDACOMET             1603
 #define MACH_TYPE_DEXFLEX2             1604
+#define MACH_TYPE_SFFSDR               1657
 
 #ifdef CONFIG_ARCH_EBSA110
 # ifdef machine_arch_type
@@ -16500,6 +16501,18 @@ extern unsigned int __machine_arch_type;
 # define machine_is_schmoogie()	(0)
 #endif
 
+#ifdef CONFIG_MACH_SFFSDR
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type	__machine_arch_type
+# else
+#  define machine_arch_type	MACH_TYPE_SFFSDR
+# endif
+# define machine_is_sffsdr()	(machine_arch_type == MACH_TYPE_SFFSDR)
+#else
+# define machine_is_sffsdr()	(0)
+#endif
+
 #ifdef CONFIG_MACH_AZTOOL
 # ifdef machine_arch_type
 #  undef machine_arch_type
include/configs/davinci_sffsdr.h new file +175 -0

175 lines not on this page · raw message

#1 lore raw

PATCH v3 1/1 ARM: Add support for Lyrtech SFF-SDR board (ARM926EJS)

Quoted 5 lines · In message <[email protected]> you…

ARM: This patch adds support for the Lyrtech SFF-SDR board, based on the TI DaVinci architecture (ARM926EJS).

...

Quoted 1 line

+#define CONFIG_BOOTCOMMAND "setenv setboot;run setboot"

That's even worse. The first part ("setenv setboot" will delete the "setboot" variable, so the second part ("run setboot") will always just raise an error message.

Please review what exactly you are tyring to do here...

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Pray to God, but keep rowing to shore. - Russian Proverb
#2 lore raw

PATCH v3 1/1 ARM: Add support for Lyrtech SFF-SDR board (ARM926EJS)

Quoted 10 lines · wd at denx.de

In message <[email protected]> you

Quoted 6 lines · wrote:

ARM: This patch adds support for the Lyrtech SFF-SDR board, based on the TI DaVinci architecture (ARM926EJS).

+#define CONFIG_BOOTCOMMAND "setenv setboot;run setboot"

Quoted 5 lines

That's even worse. The first part ("setenv setboot" will delete the "setboot" variable, so the second part ("run setboot") will always just raise an error message.

Please review what exactly you are tyring to do here...

I?m trying to not do anything at all... I don?t need anything special in CONFIG_BOOTCOMMAND.

I will resubmit with an empty CONFIG_BOOTCOMMAND like this:
#define CONFIG_BOOTCOMMAND " "

unless, of course, it is not to your liking, in which case please tell me how to do it.

Hugo V.

Hugo Villeneuve
Hardware developer | Concepteur mat?riel
Lyrtech
Phone/T?l. : (1) (418) 877-4644 #2395
Toll-free/Sans frais - Canada & USA : (1) (888) 922-4644 #2395 Fax/T?l?c. : (1) (418) 877-7710
www.lyrtech.com
Infinite possibilities...TM

THIS MESSAGE AND ALL ATTACHED DOCUMENTS ARE EXCLUSIVELY INTENDED TO THE INDICATED RECIPIENTS AND ITS CONTENTS MAY BE CONFIDENTIAL. IT IS STRICTLY FORBIDDEN TO ANYONE TO TAKE COGNIZANCE, USE, OR DIVULGE THE INFORMATION CONTAINED HEREIN. IF YOU MISTAKENLY RECEIVE THIS MESSAGE, IMMEDIATELY INFORM LYRTECH AND DESTROY THE MESSAGE AND ATTACHMENTS FORTHWITH.THANK YOU.

LE PRESENT MESSAGE ET LES DOCUMENTS QUI Y SONT JOINTS S'ADRESSENT EXCLUSIVEMENT AU(X)DESTINATAIRE(S) INDIQUE(S) ET LEUR TENEUR PEUT ETRE CONFIDENTIELLE. IL EST STRICTEMENT INTERDIT A QUICONQUE D'EN PRENDRE CONNAISSANCE, DE LES UTILISER OU DE LES DIVULGUER. SI VOUS RECEVEZ LE PRESENT MESSAGE PAR ERREUR, VEUILLEZ EN AVISER LYRTECH IMMEDIATEMENT ET DETRUIRE LE MESSAGE SEANCE TENANTE, AINSI QUE LES DOCUMENTS QUI Y SONT JOINTS.

#3 lore raw

PATCH v3 1/1 ARM: Add support for Lyrtech SFF-SDR board (ARM926EJS)

Quoted 9 lines · In message <42848A5C5A0D1E47B026E644DD49B08E026D209A@mail> you wrote:

I?m trying to not do anything at all... I don?t need anything special in CONFIG_BOOTCOMMAND.

I will resubmit with an empty CONFIG_BOOTCOMMAND like this:
#define CONFIG_BOOTCOMMAND " "

unless, of course, it is not to your liking, in which case please tell me how to do it.

Well, if you don't need a specific boot command, then just do not define CONFIG_BOOTCOMMAND at all.

Best regards,

Wolfgang Denk

Signature · 7 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
In the pitiful, multipage, connection-boxed form to which  the  flow-
chart  has  today  been  elaborated, it has proved to be useless as a
design tool -- programmers draw flowcharts after, not before, writing
the programs they describe.                        - Fred Brooks, Jr.