sh: Renesas R0P7785LC0011RL board support
Subsystems (2)
PATCH v2 1/1 sh: Renesas R0P7785LC0011RL board support
This board has SH7785, 512MB DDR2-SDRAM, NOR Flash, Graphic, Ethernet, USB, SD, RTC, and I2C controller.
This patch supports the following functions:
- 128MB DDR2-SDRAM (29-bit address mode only)
- NOR Flash
- USB host
- Ethernet
---
PATCH v2 :
- fix the Makefile.
- remove unnecessary #define.
- add README for this board.
- change the directory name from r0p7785lc0011rl to sh7785lcr.
- fix compile warning in rtl8169_mac.c and selfcheck.c.
MAINTAINERS | 1 + MAKEALL | 1 + Makefile | 5 + board/sh7785lcr/Makefile | 42 +++++ board/sh7785lcr/config.mk | 26 +++ board/sh7785lcr/lowlevel_init.S | 318 +++++++++++++++++++++++++++++++++++ board/sh7785lcr/rtl8169.h | 58 +++++++ board/sh7785lcr/rtl8169_mac.c | 349 +++++++++++++++++++++++++++++++++++++++ board/sh7785lcr/selfcheck.c | 173 +++++++++++++++++++ board/sh7785lcr/sh7785lcr.c | 51 ++++++ board/sh7785lcr/u-boot.lds | 97 +++++++++++ doc/README.sh7785lcr | 83 +++++++++ include/configs/sh7785lcr.h | 167 +++++++++++++++++++ 13 files changed, 1371 insertions(+), 0 deletions(-) create mode 100644 board/sh7785lcr/Makefile create mode 100644 board/sh7785lcr/config.mk create mode 100644 board/sh7785lcr/lowlevel_init.S create mode 100644 board/sh7785lcr/rtl8169.h create mode 100644 board/sh7785lcr/rtl8169_mac.c create mode 100644 board/sh7785lcr/selfcheck.c create mode 100644 board/sh7785lcr/sh7785lcr.c create mode 100644 board/sh7785lcr/u-boot.lds create mode 100644 doc/README.sh7785lcr create mode 100644 include/configs/sh7785lcr.h
MAINTAINERS +1 -0
@@ -731,6 +731,7 @@ Mark Jonas <[email protected]> Yoshihiro Shimoda <[email protected]> MS7720SE SH7720 + R0P77850011RL SH7785 Yusuke Goda <[email protected]>
MAKEALL +1 -0
@@ -753,6 +753,7 @@ LIST_sh4=" \ r7780mp \ r2dplus \ sh7763rdp \ + sh7785lcr \ " LIST_sh=" \
Makefile +5 -0
@@ -2955,6 +2955,11 @@ sh7763rdp_config : unconfig @echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h @./mkconfig -a $(@:_config=) sh sh4 sh7763rdp +sh7785lcr_config : unconfig + @ >include/config.h + @echo "#define CONFIG_SH7785LCR 1" >> include/config.h + @./mkconfig -a $(@:_config=) sh sh4 sh7785lcr + #======================================================================== # SPARC #========================================================================
board/sh7785lcr/Makefile new file +42 -0
42 lines not on this page · raw message
board/sh7785lcr/config.mk new file +26 -0
@@ -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 + +# +# TEXT_BASE refers to image _after_ relocation. +# +# NOTE: Must match value used in u-boot.lds (in this directory). +# +TEXT_BASE = 0x0ff80000 +
board/sh7785lcr/lowlevel_init.S new file +318 -0
318 lines not on this page · raw message
board/sh7785lcr/rtl8169.h new file +58 -0
58 lines not on this page · raw message
board/sh7785lcr/rtl8169_mac.c new file +349 -0
349 lines not on this page · raw message
board/sh7785lcr/selfcheck.c new file +173 -0
173 lines not on this page · raw message
board/sh7785lcr/sh7785lcr.c new file +51 -0
51 lines not on this page · raw message
board/sh7785lcr/u-boot.lds new file +97 -0
97 lines not on this page · raw message
doc/README.sh7785lcr new file +83 -0
83 lines not on this page · raw message
include/configs/sh7785lcr.h new file +167 -0
167 lines not on this page · raw message
Signature · 1 line
1.5.5
[U-Boot-Users] unassigned-patches/11: [PATCH v2] sh: Renesas R0P7785LC0011RL board support
This board has SH7785, 512MB DDR2-SDRAM, NOR Flash, Graphic, Ethernet, USB, SD, RTC, and I2C controller.
This patch supports the following functions:
- 128MB DDR2-SDRAM (29-bit address mode only)
- NOR Flash
- USB host
- Ethernet
---
Added to GNATS database as unassigned-patches/11
Quoted 5 lines
Responsible: patch-coord Message-Id: <[email protected]>In-Reply-To:
References:
Patch-Date: Wed Jul 16 12:09:50 +0200 2008
---
PATCH v2 :
- fix the Makefile.
- remove unnecessary #define.
- add README for this board.
- change the directory name from r0p7785lc0011rl to sh7785lcr.
- fix compile warning in rtl8169_mac.c and selfcheck.c.
MAINTAINERS | 1 + MAKEALL | 1 + Makefile | 5 + board/sh7785lcr/Makefile | 42 +++++ board/sh7785lcr/config.mk | 26 +++ board/sh7785lcr/lowlevel_init.S | 318 +++++++++++++++++++++++++++++++++++ board/sh7785lcr/rtl8169.h | 58 +++++++ board/sh7785lcr/rtl8169_mac.c | 349 +++++++++++++++++++++++++++++++++++++++ board/sh7785lcr/selfcheck.c | 173 +++++++++++++++++++ board/sh7785lcr/sh7785lcr.c | 51 ++++++ board/sh7785lcr/u-boot.lds | 97 +++++++++++ doc/README.sh7785lcr | 83 +++++++++ include/configs/sh7785lcr.h | 167 +++++++++++++++++++ 13 files changed, 1371 insertions(+), 0 deletions(-) create mode 100644 board/sh7785lcr/Makefile create mode 100644 board/sh7785lcr/config.mk create mode 100644 board/sh7785lcr/lowlevel_init.S create mode 100644 board/sh7785lcr/rtl8169.h create mode 100644 board/sh7785lcr/rtl8169_mac.c create mode 100644 board/sh7785lcr/selfcheck.c create mode 100644 board/sh7785lcr/sh7785lcr.c create mode 100644 board/sh7785lcr/u-boot.lds create mode 100644 doc/README.sh7785lcr create mode 100644 include/configs/sh7785lcr.h
MAINTAINERS +1 -0
@@ -731,6 +731,7 @@ Mark Jonas <[email protected]> Yoshihiro Shimoda <[email protected]> MS7720SE SH7720 + R0P77850011RL SH7785 Yusuke Goda <[email protected]>
MAKEALL +1 -0
@@ -753,6 +753,7 @@ LIST_sh4=" \ r7780mp \ r2dplus \ sh7763rdp \ + sh7785lcr \ " LIST_sh=" \
Makefile +5 -0
@@ -2955,6 +2955,11 @@ sh7763rdp_config : unconfig @echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h @./mkconfig -a $(@:_config=) sh sh4 sh7763rdp +sh7785lcr_config : unconfig + @ >include/config.h + @echo "#define CONFIG_SH7785LCR 1" >> include/config.h + @./mkconfig -a $(@:_config=) sh sh4 sh7785lcr + #======================================================================== # SPARC #========================================================================
board/sh7785lcr/Makefile new file +42 -0
42 lines not on this page · raw message
board/sh7785lcr/config.mk new file +26 -0
@@ -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 + +# +# TEXT_BASE refers to image _after_ relocation. +# +# NOTE: Must match value used in u-boot.lds (in this directory). +# +TEXT_BASE = 0x0ff80000 +
board/sh7785lcr/lowlevel_init.S new file +318 -0
318 lines not on this page · raw message
board/sh7785lcr/rtl8169.h new file +58 -0
58 lines not on this page · raw message
board/sh7785lcr/rtl8169_mac.c new file +349 -0
349 lines not on this page · raw message
board/sh7785lcr/selfcheck.c new file +173 -0
173 lines not on this page · raw message
board/sh7785lcr/sh7785lcr.c new file +51 -0
51 lines not on this page · raw message
board/sh7785lcr/u-boot.lds new file +97 -0
97 lines not on this page · raw message
doc/README.sh7785lcr new file +83 -0
83 lines not on this page · raw message
include/configs/sh7785lcr.h new file +167 -0
167 lines not on this page · raw message
Signature · 12 lines
1.5.5 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ U-Boot-Users mailing list U-Boot-Users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Nobuhiro Iwamatsu
AppliedPATCH v2 1/1 sh: Renesas R0P7785LC0011RL board support
In reply to Yoshihiro Shimoda2008/7/16 Yoshihiro Shimoda <[email protected]>:
Quoted 10 lines
This board has SH7785, 512MB DDR2-SDRAM, NOR Flash, Graphic, Ethernet, USB, SD, RTC, and I2C controller.
This patch supports the following functions:
- 128MB DDR2-SDRAM (29-bit address mode only)
- NOR Flash
- USB host
- EthernetSigned-off-by Yoshihiro Shimoda <[email protected]>
Applied, thanks.
I puts in next release queue.
Best regards,
Nobuhiro
PATCH v3 1/1 sh: Renesas R0P7785LC0011RL board support(Re: [U-Boot-Users] [PATCH v2] sh: Renesas R0P7785LC0011RL board support)
In reply to a message not in the archiveThis board has SH7785, 512MB DDR2-SDRAM, NOR Flash, Graphic, Ethernet, USB, SD, RTC, and I2C controller.
This patch supports the following functions:
- 128MB DDR2-SDRAM (29-bit address mode only)
- NOR Flash
- USB host
- Ethernet
---
PATCH v3 :
- Apply Jean-Christophe's comments
MAINTAINERS | 5 + MAKEALL | 1 + Makefile | 5 + board/sh7785lcr/Makefile | 45 +++++ board/sh7785lcr/config.mk | 26 +++ board/sh7785lcr/lowlevel_init.S | 318 +++++++++++++++++++++++++++++++++++ board/sh7785lcr/rtl8169.h | 58 +++++++ board/sh7785lcr/rtl8169_mac.c | 349 +++++++++++++++++++++++++++++++++++++++ board/sh7785lcr/selfcheck.c | 173 +++++++++++++++++++ board/sh7785lcr/sh7785lcr.c | 51 ++++++ board/sh7785lcr/u-boot.lds | 97 +++++++++++ doc/README.sh7785lcr | 83 +++++++++ include/configs/sh7785lcr.h | 167 +++++++++++++++++++ 13 files changed, 1378 insertions(+), 0 deletions(-) create mode 100644 board/sh7785lcr/Makefile create mode 100644 board/sh7785lcr/config.mk create mode 100644 board/sh7785lcr/lowlevel_init.S create mode 100644 board/sh7785lcr/rtl8169.h create mode 100644 board/sh7785lcr/rtl8169_mac.c create mode 100644 board/sh7785lcr/selfcheck.c create mode 100644 board/sh7785lcr/sh7785lcr.c create mode 100644 board/sh7785lcr/u-boot.lds create mode 100644 doc/README.sh7785lcr create mode 100644 include/configs/sh7785lcr.h
MAINTAINERS +5 -0
@@ -767,6 +767,11 @@ Mark Jonas <[email protected]> Yoshihiro Shimoda <[email protected]> MS7720SE SH7720 + R0P77850011RL SH7785 + +Yusuke Goda <[email protected]> + + MIGO-R SH7722 ######################################################################### # Blackfin Systems: #
MAKEALL +1 -0
@@ -752,6 +752,7 @@ LIST_sh4=" \ r7780mp \ r2dplus \ sh7763rdp \ + sh7785lcr \ " LIST_sh=" \
Makefile +5 -0
@@ -3053,6 +3053,11 @@ sh7763rdp_config : unconfig @echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h @./mkconfig -a $(@:_config=) sh sh4 sh7763rdp +sh7785lcr_config : unconfig + @ >include/config.h + @echo "#define CONFIG_SH7785LCR 1" >> include/config.h + @$(MKCONFIG) -a $(@:_config=) sh sh4 sh7785lcr + #======================================================================== # SPARC #========================================================================
board/sh7785lcr/Makefile new file +45 -0
45 lines not on this page · raw message
board/sh7785lcr/config.mk new file +26 -0
@@ -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 + +# +# TEXT_BASE refers to image _after_ relocation. +# +# NOTE: Must match value used in u-boot.lds (in this directory). +# +TEXT_BASE = 0x0ff80000 +
board/sh7785lcr/lowlevel_init.S new file +318 -0
318 lines not on this page · raw message
board/sh7785lcr/rtl8169.h new file +58 -0
58 lines not on this page · raw message
board/sh7785lcr/rtl8169_mac.c new file +349 -0
349 lines not on this page · raw message
board/sh7785lcr/selfcheck.c new file +173 -0
173 lines not on this page · raw message
board/sh7785lcr/sh7785lcr.c new file +51 -0
51 lines not on this page · raw message
board/sh7785lcr/u-boot.lds new file +97 -0
97 lines not on this page · raw message
doc/README.sh7785lcr new file +83 -0
83 lines not on this page · raw message
include/configs/sh7785lcr.h new file +167 -0
167 lines not on this page · raw message
Signature · 1 line
1.5.6.3
PATCH v2 1/1 sh: Renesas R0P7785LC0011RL board support
In reply to a message not in the archiveHi,
Thank you for comments.
I apply your comments and I sent patch.
On Sat, 30 Aug 2008 13:40:40 +0200
Jean-Christophe PLAGNIOL-VILLARD <[email protected]> wrote:
<snip>
Quoted 8 lines
Makefile sh7763rdp_config : unconfig · line 2961
Quoted 5 lines
Makefile +4
-0+sh7785lcr_config : unconfig + @ >include/config.h + @echo "#define CONFIG_SH7785LCR 1" >> include/config.h + @./mkconfig -a $(@:_config=) sh sh4 sh7785lcrplease use $(MKCONFIG)
btw why not create renesas vendor dir
Yes, I think too.
I will correspond by the upcoming version.
<snip>
Quoted 9 lines
include/configs/sh7785lcr.h line 131
Quoted 7 lines
include/configs/sh7785lcr.h new file +7
-0+/* R8A66597 */ +#define LITTLEENDIAN /* for include/usb.h */ +#define CONFIG_USB_R8A66597_HCD +#define CONFIG_R8A66597_BASE_ADDR SH7785LCR_USB_BASE +#define CONFIG_R8A66597_XTAL 0x0000/* 12MHz */ +#define CONFIG_R8A66597_LDRV 0x8000/* 3.3V */ +#define CONFIG_R8A66597_ENDIAN 0x0000/* little */ Best Regards,
Thanks!
Best regards,
Nobuhiro
Signature · 1 line
Nobuhiro Iwamatsu
PATCH v3 1/1 sh: Renesas R0P7785LC0011RL board support(Re: [U-Boot-Users] [PATCH v2] sh: Renesas R0P7785LC0011RL board support)
In reply to Nobuhiro IwamatsuQuoted 33 lines
board/sh7785lcr/Makefile new file +30
-0@@ -0,0 +1,45 @@ +# +# Copyright (C) 2008 Yoshihiro Shimoda <[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 + +include $(TOPDIR)/config.mk + +LIB = lib$(BOARD).a + +COBJS := sh7785lcr.o selfcheck.o rtl8169_mac.o +SOBJS := lowlevel_init.o + +$(LIB): $(obj).depend $(COBJS) $(SOBJS) + $(AR) $(ARFLAGS) $@ $(COBJS) $(SOBJS) + +clean: + rm -f $(SOBJS) $(OBJS)
board/sh7785lcr/Makefile line 38
Quoted 10 lines
board/sh7785lcr/Makefile new file +8
-0+ +distclean: clean + rm -f $(LIB) core *.bak $(obj).depend + +######################################################################### + +.depend: Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c) + $(CC) -M $(CPPFLAGS) $(SOBJS:.o=.S) $(OBJS:.o=.c) > $@
please remove
Quoted 6 lines
board/sh7785lcr/Makefile new file +6
-0+ +# defines $(obj).depend target +include $(SRCTREE)/rules.mk + +sinclude $(obj).depend +
board/sh7785lcr/Makefile
Quoted 10 lines
board/sh7785lcr/Makefile new file +10
-0+######################################################################### + .u_boot_cmd : + { + *(.u_boot_cmd) + . = ALIGN(4); + } + PROVIDE (__u_boot_cmd_end = .); + + PROVIDE (reloc_dst_end = .); + /* _reloc_dst_end = .; */
if no need please remove
board/sh7785lcr/Makefile
Quoted 13 lines
board/sh7785lcr/Makefile new file +13
-0+#define CFG_SDRAM_BASE (SH7785LCR_SDRAM_BASE) +#define CFG_SDRAM_SIZE (SH7785LCR_SDRAM_SIZE) +#define CFG_LOAD_ADDR (CFG_SDRAM_BASE + 16 * 1024 * 1024) + +#define CFG_MONITOR_BASE (SH7785LCR_FLASH_BASE_1) +#define CFG_MONITOR_LEN (512 * 1024) +#define CFG_MALLOC_LEN (512 * 1024) +#define CFG_GBL_DATA_SIZE (256) +#define CFG_BOOTMAPSZ (8 * 1024 * 1024) + +/* FLASH */ +#define CFG_FLASH_CFI +#define CFG_FLASH_CFI_DRIVER
please use CONFIG_FLASH_CFI_DRIVER
btw take a look on the other patch
Best Regards,
J.
PATCH v3 1/1 sh: Renesas R0P7785LC0011RL board support(Re: [U-Boot-Users] [PATCH v2] sh: Renesas R0P7785LC0011RL board support)
Hi,
<snip>
Quoted 36 lines
Quoted 2 lines
+.depend:
Makefile$(SOBJS:.o=.S) $(OBJS:.o=.c)
+ $(CC) -M $(CPPFLAGS) $(SOBJS:.o=.S) $(OBJS:.o=.c) > $@please remove
Quoted 6 lines
board/sh7785lcr/u-boot.lds new file +6
-0+ +# defines $(obj).depend target +include $(SRCTREE)/rules.mk + +sinclude $(obj).depend +board/sh7785lcr/u-boot.lds line 84
Quoted 10 lines
board/sh7785lcr/u-boot.lds new file +10
-0+######################################################################### + .u_boot_cmd : + { + *(.u_boot_cmd) + . = ALIGN(4); + } + PROVIDE (__u_boot_cmd_end = .); + + PROVIDE (reloc_dst_end = .); + /* _reloc_dst_end = .; */if no need please remove
include/configs/sh7785lcr.h line 107
Quoted 13 lines
include/configs/sh7785lcr.h new file +13
-0+#define CFG_SDRAM_BASE (SH7785LCR_SDRAM_BASE) +#define CFG_SDRAM_SIZE (SH7785LCR_SDRAM_SIZE) +#define CFG_LOAD_ADDR (CFG_SDRAM_BASE + 16 * 1024 * 1024) + +#define CFG_MONITOR_BASE (SH7785LCR_FLASH_BASE_1) +#define CFG_MONITOR_LEN (512 * 1024) +#define CFG_MALLOC_LEN (512 * 1024) +#define CFG_GBL_DATA_SIZE (256) +#define CFG_BOOTMAPSZ (8 * 1024 * 1024) + +/* FLASH */ +#define CFG_FLASH_CFI +#define CFG_FLASH_CFI_DRIVER please use
CONFIG_FLASH_CFI_DRIVER
Quoted 1 line
btw take a look on the other patch
Opps, Thnaks.
I will fix this in rc2.
Best regards,
Nobuihiro