Skip to contentSkip to conversation

Add target edosk2674

PATCH New Yoshinori Sato 1 participant 1 message Mar 2, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 5/5 Add target edosk2674

This part EDOSK2674 support
more infomation is
http://www.renesas.eu/products/tools/introductory_evaluation_tools/evaluation_development_os_kits/edosk2674r/edosk2674r_software_tools_root.jsp

---
 board/edosk2674/Makefile        |   48 ++++++++++++++++++
 board/edosk2674/config.mk       |   25 +++++++++
 board/edosk2674/edosk2674.c     |   63 +++++++++++++++++++++++
 board/edosk2674/lowlevel_init.S |   84 +++++++++++++++++++++++++++++++
 board/edosk2674/u-boot.lds      |   84 +++++++++++++++++++++++++++++++
 boards.cfg                      |    1 +
 drivers/net/lan91c96.h          |   21 ++++++++
 include/configs/edosk2674.h     |  104 +++++++++++++++++++++++++++++++++++++++
 8 files changed, 430 insertions(+), 0 deletions(-)
 create mode 100644 board/edosk2674/Makefile
 create mode 100644 board/edosk2674/config.mk
 create mode 100644 board/edosk2674/edosk2674.c
 create mode 100644 board/edosk2674/lowlevel_init.S
 create mode 100644 board/edosk2674/u-boot.lds
 create mode 100644 include/configs/edosk2674.h
board/edosk2674/Makefile new file +48 -0
new file mode 100644
index 0000000..5f74665
@@ -0,0 +1,48 @@
+#
+# Copyright (C) 2010 Yoshinori Sato <[email protected]>
+#
+# u-boot/board/edosk2674/Makefile
+#
+# 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	= lib$(BOARD).o
+
+OBJS	:= edosk2674.o
+SOBJS	:= lowlevel_init.o
+
+LIB	:= $(addprefix $(obj),$(LIB))
+OBJS	:= $(addprefix $(obj),$(OBJS))
+SOBJS	:= $(addprefix $(obj),$(SOBJS))
+
+$(LIB):	$(obj).depend $(OBJS) $(SOBJS)
+	$(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
+
+clean:
+	rm -f $(SOBJS) $(OBJS)
+
+distclean:	clean
+	rm -f $(LIB) core *.bak .depend
+
+#########################################################################
+
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
+
+sinclude $(obj).depend
+
+#########################################################################
board/edosk2674/config.mk new file +25 -0
new file mode 100644
index 0000000..966f893
@@ -0,0 +1,25 @@
+#
+# Copyright 2010 Yoshinori Sato <[email protected]>
+#
+# 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 refers to image _after_ relocation.
+#
+# NOTE: Must match value used in u-boot.lds (in this directory).
+#
+
+TEXT_BASE = 0xBC0000
board/edosk2674/edosk2674.c new file +63 -0

63 lines not on this page · raw message

board/edosk2674/lowlevel_init.S new file +84 -0

84 lines not on this page · raw message

board/edosk2674/u-boot.lds new file +84 -0

84 lines not on this page · raw message

boards.cfg +1 -0
index 45c3102..f64c88e 100644
@@ -202,6 +202,7 @@ ibf-dsp561                   blackfin    blackfin
 ip04                         blackfin    blackfin
 tcm-bf518                    blackfin    blackfin
 tcm-bf537                    blackfin    blackfin
+edosk2674		     h8300       h8300s      edosk2674          -              -
 eNET                         i386        i386        eNET                -              sc520       eNET:SYS_TEXT_BASE=0x38040000
 eNET_SRAM                    i386        i386        eNET                -              sc520       eNET:SYS_TEXT_BASE=0x19000000
 idmr                         m68k        mcf52x2
drivers/net/lan91c96.h +21 -0
index 6fbb0e3..ea2a7ef 100644
@@ -146,6 +146,27 @@ typedef unsigned long int		dword;
 					};  \
 				})
 
+#elif defined(CONFIG_EDOSK2674)
+/* 8bit bus */
+#define SMC_inb(edev, r) (*(volatile byte *)((edev)->iobase+(r)))
+#define SMC_outb(edev, d, r) (*(volatile byte *)((edev)->iobase+(r)) = d)
+#define SMC_inw(edev, r) (*(volatile byte *)((edev)->iobase+(r)) | *(volatile byte *)((edev)->iobase+(r)+1) << 8)
+#define SMC_outw(edev, d, r) ({ *(volatile byte *)((edev)->iobase+(r)) = (d) & 0xff; \
+				*(volatile byte *)((edev)->iobase+(r)+1) = (d) >> 8; })
+#define SMC_insw(edev, r, b, l) ({ int __i; \
+			char *__b = (char *)b;	\
+			for (__i = 0; __i < l; __i++) { \
+				*__b++ = SMC_inb(edev, r);	\
+				*__b++ = SMC_inb(edev, r+1);	\
+			}					\
+		})
+#define SMC_outsw(edev, r, b, l) ({ int __i; \
+			char *__b = (char *)b;	\
+			for (__i = 0; __i < l; __i++) { \
+				SMC_outb(edev, *__b, r); __b++;	\
+				SMC_outb(edev, *__b, r+1); __b++;	\
+			}					\
+		})
 #else /* if not CONFIG_PXA250 */
 
 /*
include/configs/edosk2674.h new file +104 -0

104 lines not on this page · raw message

Signature · 1 line
1.7.2.3