Skip to contentSkip to conversation

ppc4xx: Add Io and IoCon 405EP board support

PATCH Superseded Dirk Eibach 2 participants 2 messages Oct 14, 2010 – Oct 20, 2010

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc4xx: Add Io and IoCon 405EP board support

Board support for the Guntermann & Drunck CATCenter Io. Board support for the Guntermann & Drunck IoCon.

---

This replaces
[PATCH] ppc4xx: Add CATCenter IoCon 405EP board support
and
[PATCH] ppc4xx: Add CATCenter Io 405EP board support

 MAINTAINERS                   |    2 +
 MAKEALL                       |    2 +
 board/gdsys/405ep/405ep.c     |   93 +++++++++++++++
 board/gdsys/405ep/Makefile    |   54 +++++++++
 board/gdsys/405ep/config.mk   |   24 ++++
 board/gdsys/405ep/io.c        |  181 +++++++++++++++++++++++++++++
 board/gdsys/405ep/iocon.c     |  236 ++++++++++++++++++++++++++++++++++++++
 board/gdsys/common/Makefile   |   58 ++++++++++
 board/gdsys/common/fpga.h     |   37 ++++++
 board/gdsys/common/miiphybb.c |  102 +++++++++++++++++
 board/gdsys/common/osd.c      |  247 ++++++++++++++++++++++++++++++++++++++++
 board/gdsys/common/osd.h      |   29 +++++
 boards.cfg                    |    2 +
 include/configs/io.h          |  249 ++++++++++++++++++++++++++++++++++++++++
 include/configs/iocon.h       |  250 +++++++++++++++++++++++++++++++++++++++++
 15 files changed, 1566 insertions(+), 0 deletions(-)
 create mode 100644 board/gdsys/405ep/405ep.c
 create mode 100644 board/gdsys/405ep/Makefile
 create mode 100644 board/gdsys/405ep/config.mk
 create mode 100644 board/gdsys/405ep/io.c
 create mode 100644 board/gdsys/405ep/iocon.c
 create mode 100644 board/gdsys/common/Makefile
 create mode 100644 board/gdsys/common/fpga.h
 create mode 100644 board/gdsys/common/miiphybb.c
 create mode 100644 board/gdsys/common/osd.c
 create mode 100644 board/gdsys/common/osd.h
 create mode 100644 include/configs/io.h
 create mode 100644 include/configs/iocon.h
MAINTAINERS +2 -0
index c209af5..1ee6cc1 100644
@@ -145,6 +145,8 @@ Dirk Eibach <[email protected]>
 	dlvision        PPC405EP
 	gdppc440etx	PPC440EP/GR
 	intip		PPC460EX
+	io		PPC405EP
+	iocon		PPC405EP
 	neo		PPC405EP
 
 Dave Ellis <[email protected]>
MAKEALL +2 -0
index 1b506d6..2cc4e6f 100755
@@ -157,6 +157,8 @@ LIST_4xx="$(boards_by_cpu ppc4xx)
 	hcu4		\
 	hcu5		\
 	intip		\
+	io		\
+	iocon		\
 	kilauea		\
 	kilauea_nand	\
 	mcu25		\
board/gdsys/405ep/405ep.c new file +93 -0

93 lines not on this page · raw message

board/gdsys/405ep/Makefile new file +54 -0

54 lines not on this page · raw message

board/gdsys/405ep/config.mk new file +24 -0
new file mode 100644
index 0000000..1bdf5e4
@@ -0,0 +1,24 @@
+#
+# (C) Copyright 2000
+# Wolfgang Denk, DENX Software Engineering, wd at 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
+#
+
+TEXT_BASE = 0xFFFC0000
board/gdsys/405ep/io.c new file +181 -0

181 lines not on this page · raw message

board/gdsys/405ep/iocon.c new file +236 -0

236 lines not on this page · raw message

board/gdsys/common/Makefile new file +58 -0

58 lines not on this page · raw message

board/gdsys/common/fpga.h new file +37 -0
new file mode 100644
index 0000000..c1434e7
@@ -0,0 +1,37 @@
+/*
+ * (C) Copyright 2010
+ * Dirk Eibach,  Guntermann & Drunck GmbH, eibach at gdsys.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
+ */
+
+#ifndef _FPGA_H_
+#define _FPGA_H_
+
+static inline u16 fpga_get_reg(unsigned reg)
+{
+	return in_le16((void *)(CONFIG_SYS_FPGA_BASE + reg));
+}
+
+static inline void fpga_set_reg(unsigned reg, u16 val)
+{
+	return out_le16((void *)(CONFIG_SYS_FPGA_BASE + reg), val);
+}
+
+#endif
board/gdsys/common/miiphybb.c new file +102 -0

102 lines not on this page · raw message

board/gdsys/common/osd.c new file +247 -0

247 lines not on this page · raw message

board/gdsys/common/osd.h new file +29 -0
new file mode 100644
index 0000000..4431cbc
@@ -0,0 +1,29 @@
+/*
+ * (C) Copyright 2010
+ * Dirk Eibach,  Guntermann & Drunck GmbH, eibach at gdsys.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
+ */
+
+#ifndef _OSD_H_
+#define _OSD_H_
+
+int osd_probe(void);
+
+#endif
boards.cfg +2 -0
index 9226424..25aae0a 100644
@@ -356,6 +356,8 @@ RRvision	powerpc	mpc8xx
 svm_sc8xx	powerpc	mpc8xx
 pcs440ep	powerpc	ppc4xx
 quad100hd	powerpc	ppc4xx
+io		powerpc	ppc4xx		405ep		gdsys
+iocon		powerpc	ppc4xx		405ep		gdsys
 dlvision	powerpc	ppc4xx		-		gdsys
 gdppc440etx	powerpc	ppc4xx		-		gdsys
 CPCIISER4	powerpc	ppc4xx		cpciiser4	esd
include/configs/io.h new file +249 -0

249 lines not on this page · raw message

include/configs/iocon.h new file +250 -0

250 lines not on this page · raw message

Signature · 1 line
1.5.6.5
#1 lore raw

PATCH 1/1 ppc4xx: Add Io and IoCon 405EP board support

Hi Dirk,

Quoted 2 lines · On Thursday 14 October 2010 11:59:10 Dirk Eibach wrote:

Board support for the Guntermann & Drunck CATCenter Io. Board support for the Guntermann & Drunck IoCon.

I just tried to apply this patch, but it doesn't work:

[stefan at quad u-boot-ppc4xx (master)]$ git am -3 -s patches_update-2010-10-20/\[U-Boot\]\ \[PATCH\]\ ppc4xx_Add\ Io\ and\ IoCon\
405EP\ board\ support.mbox
Applying: ppc4xx: Add Io and IoCon 405EP board support
Using index info to reconstruct a base tree...
Falling back to patching base and 3-way merge...
Auto-merging MAINTAINERS
Auto-merging MAKEALL
CONFLICT (content): Merge conflict in MAKEALL
Auto-merging boards.cfg
CONFLICT (content): Merge conflict in boards.cfg
Failed to merge in the changes.

I tried to manually resolve these conflicts but stumbled over other problems with this patch resulting from the latest changes in the MAKEALL rework done by Wolfgang. You need to remove your config.mk file and add CONFIG_SYS_TEXT_BASE to your board config headers now.

Please fix (rebase on current u-boot master) and resubmit. Thanks.

Cheers,
Stefan

--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de