[U-Boot-Users] [PATCH 1/2] add MPC8343 based board mvBlueLYNX-M7
Add MPC8343 based board mvBlueLYNX-M7. It's a single board stereo camera system. Please read doc/README.mvblm7 for details. Signed-off-by: Andre Schwarz [EMAIL PROTECTED] --- MATRIX VISION GmbH, Talstraße 16, DE-71570 Oppenweiler - Registergericht: Amtsgericht Stuttgart, HRB 271090 Geschäftsführer: Gerhard Thullner, Werner Armingeon, Uwe Furtner CREDITS |4 + MAINTAINERS |4 + doc/README.mvblm7| 85 include/configs/MVBLM7.h | 481 ++ 4 files changed, 574 insertions(+), 0 deletions(-) diff --git a/CREDITS b/CREDITS index e84ef38..aa57682 100644 --- a/CREDITS +++ b/CREDITS @@ -424,6 +424,10 @@ N: Paolo Scaffardi E: [EMAIL PROTECTED] D: FADS823 configuration, MPC823 video support, I2C, wireless keyboard, lots more +N: Andre Schwarz +E: [EMAIL PROTECTED] +D: Support for Matrix Vision boards (MVBLM7) + N: Robert Schwebel E: [EMAIL PROTECTED] D: Support for csb226, logodl and innokom boards (PXA2xx) diff --git a/MAINTAINERS b/MAINTAINERS index d3dfd48..357cab3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -371,6 +371,10 @@ Peter De Schrijver [EMAIL PROTECTED] ML2 PPC4xx +Andre Schwarz [EMAIL PROTECTED] + + mvblm7 MPC8343 + Timur Tabi [EMAIL PROTECTED] MPC8349E-mITX MPC8349 diff --git a/doc/README.mvblm7 b/doc/README.mvblm7 new file mode 100644 index 000..52b9df7 --- /dev/null +++ b/doc/README.mvblm7 @@ -0,0 +1,85 @@ +Matrix Vision mvBlueLYNX-M7 (mvBL-M7) +- + +1. Board Description + + The mvBL-M7 is a 120x120mm single board computing platform + with strong focus on stereo image processing applications. + + Power Supply is either VDC 12-48V or Pover over Ethernet (PoE) + on any port (requires add-on board). + +2 System Components + +2.1CPU + Freescale MPC8343VRAGDB CPU running at 400MHz core and 266MHz csb. + 512MByte DDR-II memory @ 133MHz. + 8 MByte Nor Flash on local bus. + 2 Vitesse VSC8601 RGMII ethernet Phys. + 1 USB host controller over ULPI I/F. + 2 serial ports. Console running on ttyS0 @ 115200 8N1. + 1 SD-Card slot connected to SPI. + System configuration (HRCW) is taken from I2C EEPROM. + +2.2PCI + A miniPCI Type-III socket is present. PCI clock fixed at 66MHz. + +2.3FPGA + Altera Cyclone-II EP2C20/35 with PCI DMA engines. + Connects to dual Matrix Vision specific CCD/CMOS sensor interfaces. + Utilizes another 256MB DDR-II memory and 32-128MB Nand Flash. + +2.3.1 I/O @ FPGA + 2x8 Outputs : Infineon High-Side Switches to Main Supply. + 2x8 Inputs : Programmable input threshold + trigger capabilities + 2 dedicated flash interfaces for illuminator boards. + Cross trigger for chaining several boards. + +2.4I2C + Bus1: + MAX5381 DAC @ 0x60 for 1st digital input threshold. + LM75 @ 0x90 for temperature monitoring. + EEPROM @ 0xA0 for system setup (HRCW etc.) + vendor specifics. + 1st image sensor interface (slave adresses depend on sensor) + Bus2: + MAX5381 DAC @ 0x60 for 2nd digital input threshold. + 2nd image sensor interface (slave adresses depend on sensor) + +3 Flash layout. + + reset vector is 0xFFF00100, i.e. HIGHBOOT. + + FF80environment + FF802000redundant environment + FF804000u-boot script image + FF806000redundant u-boot script image + FF808000device tree blob + FF80A000redundant device tree blob + FF80C000tbd. + FF80E000tbd. + FF81kernel + FFC0root FS + FFF0u-boot + FFF8FPGA raw bit file + + mtd partitions are propagated to linux kernel via device tree blob. + +4 Booting + + On startup the bootscript @ FF804000 is executed. This script can be + exchanged easily. Default boot mode is boot from flash, i.e. system + works stand-alone. + + This behaviour depends on some environment variables : + + netboot : yes -try dhcp/bootp and boot from network. + A dhcp_client_id and dhcp_vendor-class-identifier can be used for + DHCP server configuration, e.g. to provide different images to + different devices. + + During netboot the system tries to get 3 image files: + 1. Kernel - name + data is given during BOOTP. + 2. Initrd - name is stored in initrd_name + 3. device tree blob - name is stored in dtb_name + Fallback files are the flash versions. + diff --git a/include/configs/MVBLM7.h b/include/configs/MVBLM7.h new file mode 100644 index 000..16a8caa --- /dev/null +++ b/include/configs/MVBLM7.h @@ -0,0 +1,481 @@ +/* + * Copyright
Re: [U-Boot-Users] [PATCH 1/2] add MPC8343 based board mvBlueLYNX-M7
In message [EMAIL PROTECTED] you wrote: This is a multi-part message in MIME format. --050700010403060204060205 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Add MPC8343 based board mvBlueLYNX-M7. It's a single board stereo camera system. Please read doc/README.mvblm7 for details. Signed-off-by: Andre Schwarz [EMAIL PROTECTED] ... + netboot : yes -try dhcp/bootp and boot from network.A ---^^ Space ? + During netboot the system tries to get 3 image files: + 1. Kernel - name + data is given during BOOTP. + 2. Initrd - name is stored in initrd_name + 3. device tree blob - name is stored in dtb_name + Fallback are ther flash versions. - Typo? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED] Disobedience: The silver lining to the cloud of servitude. - Ambrose Bierce - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] [PATCH 1/2] add MPC8343 based board mvBlueLYNX-M7
Add MPC8343 based board mvBlueLYNX-M7. It's a single board stereo camera system. Please read doc/README.mvblm7 for details. Signed-off-by: Andre Schwarz [EMAIL PROTECTED] -- MATRIX VISION GmbH, Talstraße 16, DE-71570 Oppenweiler - Registergericht: Amtsgericht Stuttgart, HRB 271090 Geschäftsführer: Gerhard Thullner, Werner Armingeon, Uwe Furtner CREDITS |5 +++ MAINTAINERS |4 ++ MAKEALL |1 + Makefile |3 ++ doc/README.mvblm7 | 85 + 5 files changed, 98 insertions(+), 0 deletions(-) diff --git a/CREDITS b/CREDITS index e84ef38..713f58a 100644 --- a/CREDITS +++ b/CREDITS @@ -424,6 +424,11 @@ N: Paolo Scaffardi E: [EMAIL PROTECTED] D: FADS823 configuration, MPC823 video support, I2C, wireless keyboard, lots more +N: Andre Schwarz +E: [EMAIL PROTECTED] +D: Support for BlueLYNX and BlueCOUGAR series +W: www.matrix-vision.com + N: Robert Schwebel E: [EMAIL PROTECTED] D: Support for csb226, logodl and innokom boards (PXA2xx) diff --git a/MAINTAINERS b/MAINTAINERS index 58f833c..7d0d1b1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -367,6 +367,10 @@ Peter De Schrijver [EMAIL PROTECTED] ML2 PPC4xx +Andre Schwarz [EMAIL PROTECTED] + + mvblm7 MPC8343 + Timur Tabi [EMAIL PROTECTED] MPC8349E-mITX MPC8349 diff --git a/MAKEALL b/MAKEALL index 791eabc..7bf8e52 100755 --- a/MAKEALL +++ b/MAKEALL @@ -329,6 +329,7 @@ LIST_83xx= \ MPC8360ERDK_66 \ MPC837XEMDS \ MPC837XERDB \ + MVBLM7 \ sbc8349 \ TQM834x \ diff --git a/Makefile b/Makefile index 167a717..0535c0b 100644 --- a/Makefile +++ b/Makefile @@ -2096,6 +2096,9 @@ MPC837XEMDS_HOST_config: unconfig MPC837XERDB_config:unconfig @$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale +MVBLM7_config: unconfig + @$(MKCONFIG) $(@:_config=) ppc mpc83xx mvblm7 + sbc8349_config:unconfig @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349 diff --git a/doc/README.mvblm7 b/doc/README.mvblm7 new file mode 100644 index 000..fb86b5a --- /dev/null +++ b/doc/README.mvblm7 @@ -0,0 +1,85 @@ +Matrix Vision mvBlueLYNX-M7 (mvBL-M7) +- + +1. Board Description + + The mvBL-M7 is a 120x120mm single board computing platform + with strong focus on stereo image processing applications. + + Power Supply is either VDC 12-48V or Pover over Ethernet (PoE) + on any port (requires add-on board). + +2 System Components + +2.1CPU + Freescale MPC8343VRAGDB CPU running at 400MHz core and 266MHz csb. + 512MByte DDR-II memory @ 133MHz. + 8 MByte Nor Flash on local bus. + 2 Vitesse VSC8601 RGMII ethernet Phys. + 1 USB host controller over ULPI I/F. + 2 serial ports. Console running on ttyS0 @ 115200 8N1. + 1 SD-Card slot connected to SPI. + System configuration (HRCW) is taken from I2C EEPROM. + +2.2PCI + A miniPCI Type-III socket is present. PCI clock fixed at 66MHz. + +2.3FPGA + Altera Cyclone-II EP2C20/35 with PCI DMA engines. + Connects to dual Matrix Vision specific CCD/CMOS sensor interfaces. + Utilizes another 256MB DDR-II memory and 32-128MB Nand Flash. + +2.3.1 I/O @ FPGA + 2x8 Outputs : Infineon High-Side Switches to Main Supply. + 2x8 Inputs : Programmable input threshold + trigger capabilities + 2 dedicated flash interfaces for illuminator boards. + Cross trigger for chaining several boards. + +2.4I2C + Bus1: + MAX5381 DAC @ 0x60 for 1st digital input threshold. + LM75 @ 0x90 for temperature monitoring. + EEPROM @ 0xA0 for system setup (HRCW etc.) + vendor specifics. + 1st image sensor interface (slave adresses depend on sensor) + Bus2: + MAX5381 DAC @ 0x60 for 2nd digital input threshold. + 2nd image sensor interface (slave adresses depend on sensor) + +3 Flash layout. + + reset vector is 0xFFF00100, i.e. HIGHBOOT. + + FF80environment + FF802000redundant environment + FF804000u-boot script image + FF806000redundant u-boot script image + FF808000device tree blob + FF80A000redundant device tree blob + FF80C000tbd. + FF80E000tbd. + FF81kernel + FFC0root FS + FFF0u-boot + FFF8FPGA raw bit file + + mtd partitions are propagated to linux kernel via device tree blob. + +4 Booting + + On startup the bootscript @ FF804000 is executed. This script can be + exchanged easily. Default boot mode is boot from flash, i.e. system + works stand-alone. + + This
Re: [U-Boot-Users] [PATCH 1/2] add MPC8343 based board mvBlueLYNX-M7 aka mvblm7
Kim, thanks a lot for the patience - I'm sorry for the bad shape of my patch and will try to improve. regards, André Kim Phillips wrote: On Fri, 11 Apr 2008 22:02:38 +0200 André Schwarz [EMAIL PROTECTED] wrote: Kim, please review this resubmitted patch with changes as you have requested : - coding style issues - Makefile - Maintainer - common mpc83xx PCI code - added README.mvblm7 Hello André, thanks, looks generally good, but.. +fpga_debug(%s:%d: Initialize FPGA interface (relocation offset = 0x%.8lx)\n, unfortunately, both messages are linewrapped: Applying add MPC8343 based board mvBlueLYNX-M7 aka mvblm7 fatal: corrupt patch at line 8 Patch failed at 0001. When you have resolved this problem run git-am --resolved. If you would prefer to skip this patch, instead run git-am --skip. Applying add MPC8343 based board mvBlueLYNX-M7 aka mvblm7 .dotest/patch:10: trailing whitespace. setenv bootdtb bootm \${kernel_boot} \${mv_initrd_addr_ram} fatal: corrupt patch at line 11 Patch failed at 0001. When you have resolved this problem run git-am --resolved. If you would prefer to skip this patch, instead run git-am --skip. please reference linux-2.6/Documentation/email-clients.txt to help resolve this. Kim MATRIX VISION GmbH, Talstraße 16, DE-71570 Oppenweiler - Registergericht: Amtsgericht Stuttgart, HRB 271090 Geschäftsführer: Gerhard Thullner, Werner Armingeon, Uwe Furtner - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] [PATCH 1/2] add MPC8343 based board mvBlueLYNX-M7 aka mvblm7
On Fri, 11 Apr 2008 22:02:38 +0200 André Schwarz [EMAIL PROTECTED] wrote: Kim, please review this resubmitted patch with changes as you have requested : - coding style issues - Makefile - Maintainer - common mpc83xx PCI code - added README.mvblm7 Hello André, thanks, looks generally good, but.. +fpga_debug(%s:%d: Initialize FPGA interface (relocation offset = 0x%.8lx)\n, unfortunately, both messages are linewrapped: Applying add MPC8343 based board mvBlueLYNX-M7 aka mvblm7 fatal: corrupt patch at line 8 Patch failed at 0001. When you have resolved this problem run git-am --resolved. If you would prefer to skip this patch, instead run git-am --skip. Applying add MPC8343 based board mvBlueLYNX-M7 aka mvblm7 .dotest/patch:10: trailing whitespace. setenv bootdtb bootm \${kernel_boot} \${mv_initrd_addr_ram} fatal: corrupt patch at line 11 Patch failed at 0001. When you have resolved this problem run git-am --resolved. If you would prefer to skip this patch, instead run git-am --skip. please reference linux-2.6/Documentation/email-clients.txt to help resolve this. Kim - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] [PATCH 1/2] add MPC8343 based board mvBlueLYNX-M7 aka mvblm7
Kim, please review this resubmitted patch with changes as you have requested : - coding style issues - Makefile - Maintainer - common mpc83xx PCI code - added README.mvblm7 Please let me know if anything is still invalid or not acceptable. As mentioned before the merge window is close - take it into next please. Due to size I have to split the patch. Thanks, Andre Signed-off-by: Andre Schwarz [EMAIL PROTECTED] -- CREDITS|5 + MAINTAINERS|4 + MAKEALL|1 + Makefile |4 +- board/mvblm7/Makefile | 48 board/mvblm7/config.mk | 25 ++ board/mvblm7/fpga.c| 191 board/mvblm7/fpga.h| 34 +++ board/mvblm7/mvblm7.c | 133 +++ board/mvblm7/mvblm7.h | 20 ++ board/mvblm7/mvblm7_autoscript | 38 board/mvblm7/pci.c | 144 doc/README.mvblm7 | 84 +++ include/configs/MVBLM7.h | 474 14 files changed, 1204 insertions(+), 1 deletions(-) diff --git a/CREDITS b/CREDITS index e84ef38..713f58a 100644 --- a/CREDITS +++ b/CREDITS @@ -424,6 +424,11 @@ N: Paolo Scaffardi E: [EMAIL PROTECTED] D: FADS823 configuration, MPC823 video support, I2C, wireless keyboard, lots more +N: Andre Schwarz +E: [EMAIL PROTECTED] +D: Support for BlueLYNX and BlueCOUGAR series +W: www.matrix-vision.com + N: Robert Schwebel E: [EMAIL PROTECTED] D: Support for csb226, logodl and innokom boards (PXA2xx) diff --git a/MAINTAINERS b/MAINTAINERS index 33821b8..93281fd 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -367,6 +367,10 @@ Peter De Schrijver [EMAIL PROTECTED] ML2PPC4xx +Andre Schwarz [EMAIL PROTECTED] + +mvblm7MPC8343 + Timur Tabi [EMAIL PROTECTED] MPC8349E-mITXMPC8349 diff --git a/MAKEALL b/MAKEALL index 2a872ac..f21c34e 100755 --- a/MAKEALL +++ b/MAKEALL @@ -327,6 +327,7 @@ LIST_83xx=\ MPC8360ERDK_66\ MPC837XEMDS\ MPC837XERDB\ +MVBLM7\ sbc8349\ TQM834x\ diff --git a/Makefile b/Makefile index a7f886b..9d33482 100644 --- a/Makefile +++ b/Makefile @@ -2078,13 +2078,15 @@ MPC837XEMDS_HOST_config:unconfig MPC837XERDB_config:unconfig @$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale +MVBLM7_config: unconfig +@$(MKCONFIG) $(@:_config=) ppc mpc83xx mvblm7 + sbc8349_config:unconfig @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349 TQM834x_config:unconfig @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x - # ## MPC85xx Systems # diff --git a/board/mvblm7/Makefile b/board/mvblm7/Makefile new file mode 100644 index 000..84cd14a --- /dev/null +++ b/board/mvblm7/Makefile @@ -0,0 +1,48 @@ +# +# Copyright (C) Freescale Semiconductor, Inc. 2006. All rights reserved. +# +# 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 +# + +include $(TOPDIR)/config.mk + +LIB= $(obj)lib$(BOARD).a + +COBJS:= $(BOARD).o pci.o fpga.o + +SRCS:= $(SOBJS:.o=.S) $(COBJS:.o=.c) +OBJS:= $(addprefix $(obj),$(COBJS)) +SOBJS:= $(addprefix $(obj),$(SOBJS)) + +$(LIB):$(obj).depend $(OBJS) +$(AR) $(ARFLAGS) $@ $(OBJS) + +clean: +rm -f $(SOBJS) $(OBJS) + +distclean:clean +rm -f $(LIB) core *.bak .depend + +# + +include $(SRCTREE)/rules.mk + +sinclude $(obj).depend + +# diff --git a/board/mvblm7/config.mk b/board/mvblm7/config.mk new file mode 100644 index 000..1d85f4f --- /dev/null +++ b/board/mvblm7/config.mk @@ -0,0 +1,25 @@ +# +# Copyright (C) Freescale Semiconductor, Inc. 2006. All rights reserved. +# +# 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