Re: [U-Boot] [PATCH v2 7/9] openrisc: Add openrisc-generic example board

2012-01-13 Thread Wolfgang Denk
Dear Stefan Kristiansson,

In message 
<1322370297-22892-8-git-send-email-stefan.kristians...@saunalahti.fi> you wrote:
> Signed-off-by: Stefan Kristiansson 
> ---
> 
> Changes in v2:
>  - Remove references to deprecated CONFIG_NET_MULTI
> 
>  board/openrisc/openrisc-generic/Makefile   |   43 +
>  board/openrisc/openrisc-generic/config.mk  |   24 +
>  board/openrisc/openrisc-generic/openrisc-generic.c |   55 ++
>  board/openrisc/openrisc-generic/or1ksim.cfg|  882 
> 
>  board/openrisc/openrisc-generic/u-boot.lds |   75 ++
>  boards.cfg |1 +
>  include/configs/openrisc-generic.h |  158 
>  7 files changed, 1238 insertions(+), 0 deletions(-)
>  create mode 100644 board/openrisc/openrisc-generic/Makefile
>  create mode 100644 board/openrisc/openrisc-generic/config.mk
>  create mode 100644 board/openrisc/openrisc-generic/openrisc-generic.c
>  create mode 100644 board/openrisc/openrisc-generic/or1ksim.cfg
>  create mode 100644 board/openrisc/openrisc-generic/u-boot.lds
>  create mode 100644 include/configs/openrisc-generic.h

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
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: w...@denx.de
A Freudian slip is when you say one thing but mean your mother.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v2 7/9] openrisc: Add openrisc-generic example board

2011-11-26 Thread Stefan Kristiansson
Signed-off-by: Stefan Kristiansson 
---

Changes in v2:
 - Remove references to deprecated CONFIG_NET_MULTI

 board/openrisc/openrisc-generic/Makefile   |   43 +
 board/openrisc/openrisc-generic/config.mk  |   24 +
 board/openrisc/openrisc-generic/openrisc-generic.c |   55 ++
 board/openrisc/openrisc-generic/or1ksim.cfg|  882 
 board/openrisc/openrisc-generic/u-boot.lds |   75 ++
 boards.cfg |1 +
 include/configs/openrisc-generic.h |  158 
 7 files changed, 1238 insertions(+), 0 deletions(-)
 create mode 100644 board/openrisc/openrisc-generic/Makefile
 create mode 100644 board/openrisc/openrisc-generic/config.mk
 create mode 100644 board/openrisc/openrisc-generic/openrisc-generic.c
 create mode 100644 board/openrisc/openrisc-generic/or1ksim.cfg
 create mode 100644 board/openrisc/openrisc-generic/u-boot.lds
 create mode 100644 include/configs/openrisc-generic.h

diff --git a/board/openrisc/openrisc-generic/Makefile 
b/board/openrisc/openrisc-generic/Makefile
new file mode 100644
index 000..4890aac
--- /dev/null
+++ b/board/openrisc/openrisc-generic/Makefile
@@ -0,0 +1,43 @@
+#
+# (C) Copyright 2001-2006
+# Wolfgang Denk, DENX Software Engineering, w...@denx.de.
+#
+# 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).o
+
+COBJS-y:= $(BOARD).o
+
+SRCS   := $(COBJS-y:.o=.c)
+OBJS   := $(addprefix $(obj),$(COBJS-y))
+
+$(LIB):$(obj).depend $(OBJS)
+   $(call cmd_link_o_target, $(OBJS))
+
+#
+
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
+
+sinclude $(obj).depend
+
+#
diff --git a/board/openrisc/openrisc-generic/config.mk 
b/board/openrisc/openrisc-generic/config.mk
new file mode 100644
index 000..c3dc232
--- /dev/null
+++ b/board/openrisc/openrisc-generic/config.mk
@@ -0,0 +1,24 @@
+#
+# (C) Copyright 2011, Julius Baxter 
+#
+# 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
+#
+
+PLATFORM_CPPFLAGS += -mhard-mul -mhard-div
+
+ifeq ($(debug),1)
+PLATFORM_CPPFLAGS += -DDEBUG
+endif
diff --git a/board/openrisc/openrisc-generic/openrisc-generic.c 
b/board/openrisc/openrisc-generic/openrisc-generic.c
new file mode 100644
index 000..cdbbfa5
--- /dev/null
+++ b/board/openrisc/openrisc-generic/openrisc-generic.c
@@ -0,0 +1,55 @@
+/*
+ * Based on nios2-generic.c:
+ * (C) Copyright 2005, Psyent Corporation 
+ * Scott McNutt 
+ * (C) Copyright 2010, Thomas Chou 
+ *
+ * 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 
+#include 
+
+int board_early_init_f(void)
+{
+   return 0;
+}
+
+int checkboard(void)
+{
+   print