Skip to contentSkip to conversation

Add MIMC200 board

PATCH Superseded Mark Jackson 2 participants 2 messages Jul 30, 2008 Kbuild

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 Add MIMC200 board

The MIMC200 board is based on Atmel's NGW100 dev kit, but with an extra 8MByte FLASH and 128KByte FRAM.
---

 CREDITS                       |    4 +
 MAINTAINERS                   |    4 +
 MAKEALL                       |    1 +
 Makefile                      |    3 +
 board/mimc/mimc200/Makefile   |   40 ++++++++
 board/mimc/mimc200/config.mk  |    3 +
 board/mimc/mimc200/mimc200.c  |  209 +++++++++++++++++++++++++++++++++++++++++
 board/mimc/mimc200/u-boot.lds |   73 ++++++++++++++
 common/console.c              |    5 +
 include/configs/mimc200.h     |  177 ++++++++++++++++++++++++++++++++++
 10 files changed, 519 insertions(+), 0 deletions(-)
CREDITS +4 -0
index 2b0dab7..5010c78 100644
@@ -217,6 +217,10 @@ H: Rich Ireland
 E: r.ireland at computer.org
 D: FPGA device configuration driver
 
+H: Mark Jackson
+E: mpfj at mimc.co.uk
+D: Port to MIMC200 board
+
 N: Gary Jennejohn
 E: garyj at jennejohn.org, gj at denx.de
 D: Support for Samsung ARM920T S3C2400X, ARM920T "TRAB"
MAINTAINERS +4 -0
index cbe5c47..d4f6639 100644
@@ -709,6 +709,10 @@ Haavard Skinnemoen <[email protected]>
 	ATSTK1006	AT32AP7000
 	ATNGW100	AT32AP7000
 
+Mark Jackson <[email protected]>
+
+	MIMC200		AT32AP7000
+
 #########################################################################
 # SuperH Systems:							#
 #									#
MAKEALL +1 -0
index c1a9c60..cfd376c 100755
@@ -715,6 +715,7 @@ LIST_avr32="		\
 	atstk1004	\
 	atstk1006	\
 	atngw100	\
+	mimc200		\
 "
 
 #########################################################################
Makefile +3 -0
index 369bbd7..d434ea3 100644
@@ -2914,6 +2914,9 @@ atstk1004_config	:	unconfig
 atstk1006_config	:	unconfig
 	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
 
+mimc200_config		:	unconfig
+	@$(MKCONFIG) $(@:_config=) avr32 at32ap mimc200 mimc at32ap700x
+
 #========================================================================
 # SH3 (SuperH)
 #========================================================================
board/mimc/mimc200/Makefile new file +40 -0
new file mode 100644
index 0000000..9f3849f
@@ -0,0 +1,40 @@
+#
+# Copyright (C) 2005-2006 Atmel Corporation
+#
+# 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 $(TOPDIR)/config.mk
+
+LIB	:= $(obj)lib$(BOARD).a
+
+COBJS	:= $(BOARD).o
+
+SRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS	:= $(addprefix $(obj),$(SOBJS) $(COBJS))
+
+$(LIB): $(obj).depend $(OBJS)
+	$(AR) $(ARFLAGS) $@ $(OBJS)
+
+#########################################################################
+
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
+
+sinclude $(obj).depend
+
+#########################################################################
board/mimc/mimc200/config.mk new file +3 -0
new file mode 100644
index 0000000..9a794e5
@@ -0,0 +1,3 @@
+TEXT_BASE		= 0x00000000
+PLATFORM_RELFLAGS	+= -ffunction-sections -fdata-sections
+PLATFORM_LDFLAGS	+= --gc-sections
board/mimc/mimc200/mimc200.c new file +209 -0

209 lines not on this page · raw message

board/mimc/mimc200/u-boot.lds new file +73 -0

73 lines not on this page · raw message

common/console.c +5 -0
index 1b095b1..fc02e71 100644
@@ -173,6 +173,11 @@ int getc (void)
 
 int tstc (void)
 {
+#if defined(CONFIG_SILENT_CONSOLE) && defined(CONFIG_SILENT_CONSOLE_INPUT)
+	if (gd->flags & GD_FLG_SILENT)
+		return 0;
+#endif
+
 	if (gd->flags & GD_FLG_DEVINIT) {
 		/* Test the standard input */
 		return ftstc (stdin);
include/configs/mimc200.h new file +177 -0

177 lines not on this page · raw message

#1 lore raw

PATCH v3 1/1 Add MIMC200 board

Quoted 14 lines · In message <[email protected]> you wrote:

The MIMC200 board is based on Atmel's NGW100 dev kit, but with an extra 8MByte FLASH and 128KByte FRAM.
---

 CREDITS                       |    4 +
 MAINTAINERS                   |    4 +
 MAKEALL                       |    1 +
 Makefile                      |    3 +
 board/mimc/mimc200/Makefile   |   40 ++++++++
 board/mimc/mimc200/config.mk  |    3 +
 board/mimc/mimc200/mimc200.c  |  209 +++++++++++++++++++++++++++++++++++++++++
 board/mimc/mimc200/u-boot.lds |   73 ++++++++++++++
 common/console.c              |    5 +
 include/configs/mimc200.h     |  177 ++++++++++++++++++++++++++++++++++
 10 files changed, 519 insertions(+), 0 deletions(-)

Please splitt the changes to common/console.c into a separate patch.

And make sure to explain exactly why this is needed, and why you think your implementation works (for example, why do you add the test only to tstc() but not to getc() ?)

Without better explanations I reject the common/console.c part of the patch.

Best regards,

Wolfgang Denk

Signature · 6 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
CONSUMER NOTICE:  Because  of  the  "Uncertainty  Principle,"  It  Is
Impossible  for  the  Consumer  to  Find  Out  at  the Same Time Both
Precisely Where This Product Is and How Fast It Is Moving.