Skip to contentSkip to conversation

ppc4xx: Add Io and IoCon 405EP board support

PATCH New Dirk Eibach 2 participants 2 messages Oct 21, 2010 – Oct 25, 2010

lore
Share & tools
lore
#0 lore raw

PATCH v2 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.

---
Changes since v1:
- rebase rebase on current u-boot master
- dropped config.mk and adapted config headers

 MAINTAINERS                   |    2 +
 board/gdsys/405ep/405ep.c     |   93 +++++++++++++++
 board/gdsys/405ep/Makefile    |   54 +++++++++
 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          |  251 ++++++++++++++++++++++++++++++++++++++++
 include/configs/iocon.h       |  252 +++++++++++++++++++++++++++++++++++++++++
 13 files changed, 1544 insertions(+), 0 deletions(-)
 create mode 100644 board/gdsys/405ep/405ep.c
 create mode 100644 board/gdsys/405ep/Makefile
 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 2f61776..e97142d 100644
@@ -144,6 +144,8 @@ Dirk Eibach <[email protected]>
 	dlvision        PPC405EP
 	gdppc440etx	PPC440EP/GR
 	intip		PPC460EX
+	io		PPC405EP
+	iocon		PPC405EP
 	neo		PPC405EP
 
 Dave Ellis <[email protected]>
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/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 0f3292f..f10e7fc 100644
@@ -644,6 +644,8 @@ CPCI405AB	powerpc	ppc4xx		cpci405		esd
 CPCI405DT	powerpc	ppc4xx		cpci405		esd
 dlvision	powerpc	ppc4xx		-		gdsys
 gdppc440etx	powerpc	ppc4xx		-		gdsys
+io		powerpc	ppc4xx		405ep		gdsys
+iocon		powerpc	ppc4xx		405ep		gdsys
 CPCIISER4	powerpc	ppc4xx		cpciiser4	esd
 DASA_SIM	powerpc	ppc4xx		dasa_sim	esd
 PMC405DE	powerpc	ppc4xx		pmc405de	esd
include/configs/io.h new file +251 -0

251 lines not on this page · raw message

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

252 lines not on this page · raw message

Signature · 1 line
1.5.6.5
#1 lore raw

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

Quoted 2 lines · On Thursday 21 October 2010 10:50:05 Dirk Eibach wrote:

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

Applied to u-boot-ppc4xx/master. 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