Skip to contentSkip to conversation

sh: add support for sh7757lcr board

PATCH Superseded Yoshihiro Shimoda 1 participant 1 message Jan 18, 2011

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 sh: add support for sh7757lcr board

The R0P7757LC0030RL board has SH7757, 256MB DDR3-SDRAM, SPI ROM, Ethernet, and more.

This patch supports the following functions:
- 256MB DDR3-SDRAM
- SPI ROM
- Ethernet

---
about v2:
- remove unnecessary comment in config.mk
- move CONFIG_SYS_TEXT_BASE to include/configs/sh7757lcr.h
- replace local parse function with eth_parse_enetaddr()
- add NULL checking for malloc.
- update copyright in u-boot.lds

 arch/sh/include/asm/cpu_sh4.h           |    2 +
 arch/sh/include/asm/cpu_sh7757.h        |  263 +++++++++++++++
 board/renesas/sh7757lcr/Makefile        |   42 +++
 board/renesas/sh7757lcr/config.mk       |   26 ++
 board/renesas/sh7757lcr/lowlevel_init.S |  558 +++++++++++++++++++++++++++++++
 board/renesas/sh7757lcr/sh7757lcr.c     |  432 ++++++++++++++++++++++++
 board/renesas/sh7757lcr/spi-boot.c      |  111 ++++++
 board/renesas/sh7757lcr/u-boot.lds      |  101 ++++++
 boards.cfg                              |    1 +
 doc/README.sh7757lcr                    |   64 ++++
 include/configs/sh7757lcr.h             |  145 ++++++++
 11 files changed, 1745 insertions(+), 0 deletions(-)
 create mode 100644 arch/sh/include/asm/cpu_sh7757.h
 create mode 100644 board/renesas/sh7757lcr/Makefile
 create mode 100644 board/renesas/sh7757lcr/config.mk
 create mode 100644 board/renesas/sh7757lcr/lowlevel_init.S
 create mode 100644 board/renesas/sh7757lcr/sh7757lcr.c
 create mode 100644 board/renesas/sh7757lcr/spi-boot.c
 create mode 100644 board/renesas/sh7757lcr/u-boot.lds
 create mode 100644 doc/README.sh7757lcr
 create mode 100644 include/configs/sh7757lcr.h
arch/sh/include/asm/cpu_sh4.h +2 -0
index fdcebd6..9b29d3a 100644
@@ -44,6 +44,8 @@
 # include <asm/cpu_sh7722.h>
 #elif defined (CONFIG_CPU_SH7723)
 # include <asm/cpu_sh7723.h>
+#elif defined (CONFIG_CPU_SH7757)
+# include <asm/cpu_sh7757.h>
 #elif defined (CONFIG_CPU_SH7763)
 # include <asm/cpu_sh7763.h>
 #elif defined (CONFIG_CPU_SH7780)
arch/sh/include/asm/cpu_sh7757.h new file +263 -0

263 lines not on this page · raw message

board/renesas/sh7757lcr/Makefile new file +42 -0

42 lines not on this page · raw message

board/renesas/sh7757lcr/config.mk new file +26 -0
new file mode 100644
index 0000000..1037cc2
@@ -0,0 +1,26 @@
+#
+# Copyright (C) 2007
+# Nobuhiro Iwamatsu <[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
+
+#
+# CONFIG_SYS_TEXT_BASE refers to image _after_ relocation.
+#
+# NOTE: Must match value used in u-boot.lds (in this directory).
+#
+LDSCRIPT = $(OBJTREE)/board/$(BOARDDIR)/u-boot.lds
+
board/renesas/sh7757lcr/lowlevel_init.S new file +558 -0

558 lines not on this page · raw message

board/renesas/sh7757lcr/sh7757lcr.c new file +432 -0

432 lines not on this page · raw message

board/renesas/sh7757lcr/spi-boot.c new file +111 -0

111 lines not on this page · raw message

board/renesas/sh7757lcr/u-boot.lds new file +101 -0

101 lines not on this page · raw message

boards.cfg +1 -0
index 0574bb2..417ed1d 100644
@@ -752,6 +752,7 @@ ms7750se                     sh          sh4         ms7750se            -
 ap325rxa                     sh          sh4         ap325rxa            renesas        -
 r2dplus                      sh          sh4         r2dplus             renesas        -
 r7780mp                      sh          sh4         r7780mp             renesas        -
+sh7757lcr                    sh          sh4         sh7757lcr           renesas        -
 sh7763rdp                    sh          sh4         sh7763rdp           renesas        -
 sh7785lcr                    sh          sh4         sh7785lcr           renesas        -
 sh7785lcr_32bit              sh          sh4         sh7785lcr           renesas        -           sh7785lcr:SH_32BIT=1
doc/README.sh7757lcr new file +64 -0

64 lines not on this page · raw message

include/configs/sh7757lcr.h new file +145 -0

145 lines not on this page · raw message

Signature · 1 line
1.7.1