Skip to content
Snippets Groups Projects
  1. Apr 25, 2012
    • Liu Gang's avatar
      powerpc/corenet_ds: Slave module for boot from SRIO · 292dc6c5
      Liu Gang authored
      
      For the powerpc processors with SRIO interface, boot location can be configured
      from SRIO1 or SRIO2 by RCW. The processor booting from SRIO can do without flash
      for u-boot image. The image can be fetched from another processor's memory
      space by SRIO link connected between them.
      
      The processor boots from SRIO is slave, the processor boots from normal flash
      memory space and can help slave to boot from its memory space is master.
      They are different environments and requirements:
      
      master:
      	1. NOR flash for its own u-boot image, ucode and ENV space.
      	2. Slave's u-boot image in master NOR flash.
      	3. Normally boot from local NOR flash.
      	4. Configure SRIO switch system if needed.
      slave:
      	1. Just has EEPROM for RCW. No flash for u-boot image, ucode and ENV.
      	2. Boot location should be set to SRIO1 or SRIO2 by RCW.
      	3. RCW should configure the SerDes, SRIO interfaces correctly.
      	4. Slave must be powered on after master's boot.
      	5. Must define CONFIG_SYS_QE_FMAN_FW_IN_REMOTE because of no ucode
      	   locally.
      
      For the slave module, need to finish these processes:
      	1. Set the boot location to SRIO1 or SRIO2 by RCW.
          2. Set a specific TLB entry for the boot process.
      	3. Set a LAW entry with the TargetID SRIO1 or SRIO2 for the boot.
      	4. Slave's u-boot image should be generated specifically by
      	   make xxxx_SRIOBOOT_SLAVE_config.
      	   This will set SYS_TEXT_BASE=0xFFF80000 and other configurations.
      
      Signed-off-by: default avatarLiu Gang <Gang.Liu@freescale.com>
      Signed-off-by: default avatarShaohui Xie <Shaohui.Xie@freescale.com>
      292dc6c5
    • Liu Gang's avatar
      powerpc/corenet_ds: Master module for boot from SRIO · 5ffa88ec
      Liu Gang authored
      
      For the powerpc processors with SRIO interface, boot location can be configured
      from SRIO1 or SRIO2 by RCW. The processor booting from SRIO can do without flash
      for u-boot image. The image can be fetched from another processor's memory
      space by SRIO link connected between them.
      
      The processor boots from SRIO is slave, the processor boots from normal flash
      memory space and can help slave to boot from its memory space is master.
      They are different environments and requirements:
      
      master:
      	1. NOR flash for its own u-boot image, ucode and ENV space.
      	2. Slave's u-boot image in master NOR flash.
      	3. Normally boot from local NOR flash.
      	4. Configure SRIO switch system if needed.
      slave:
      	1. Just has EEPROM for RCW. No flash for u-boot image, ucode and ENV.
      	2. Boot location should be set to SRIO1 or SRIO2 by RCW.
      	3. RCW should configure the SerDes, SRIO interfaces correctly.
      	4. Slave must be powered on after master's boot.
      
      For the master module, need to finish these processes:
      	1. Initialize the SRIO port and address space.
      	2. Set inbound SRIO windows covered slave's u-boot image stored in
      	   master's NOR flash.
      	3. Master's u-boot image should be generated specifically by
      	   make xxxx_SRIOBOOT_MASTER_config
      	4. Master must boot first, and then slave can be powered on.
      
      Signed-off-by: default avatarLiu Gang <Gang.Liu@freescale.com>
      Signed-off-by: default avatarShaohui Xie <Shaohui.Xie@freescale.com>
      5ffa88ec
    • Liu Gang's avatar
      powerpc/corenet_ds: Document for the boot from SRIO · 006f37f6
      Liu Gang authored
      
      This document describes the implementation of the boot from SRIO,
      includes the introduction of envionment, an example based on P4080DS
      platform, an example of the slave's RCW, and the description about
      how to use this feature.
      
      Signed-off-by: default avatarLiu Gang <Gang.Liu@freescale.com>
      006f37f6
    • Liu Gang's avatar
      powerpc/corenet_ds: Correct the compilation errors about ENV · fd0451e4
      Liu Gang authored
      
      When defined CONFIG_ENV_IS_NOWHERE, there will be some
      compilation errors:
      
      ./common/env_nowhere.o: In function `env_relocate_spec':
      ./common/env_nowhere.c:38: multiple definition of `env_relocate_spec'
      ./common/env_flash.o: ./common/env_flash.c:326: first defined here
      ./common/env_nowhere.o: In function `env_get_char_spec':
      ./common/env_nowhere.c:42: multiple definition of `env_get_char_spec'
      ./common/env_flash.o:./common/env_flash.c:78: first defined here
      ./common/env_nowhere.o: In function `env_init':
      ./common/env_nowhere.c:51: multiple definition of `env_init'
      ./common/env_flash.o:./common/env_flash.c:237: first defined here
      make[1]: *** [./common/libcommon.o] Error 1
      make[1]: Leaving directory `./common'
      make: *** [./common/libcommon.o] Error 2
      
      Remove the CONFIG_ENV_IS_IN_FLASH if defined CONFIG_ENV_IS_NOWHERE.
      
      Signed-off-by: default avatarLiu Gang <Gang.Liu@freescale.com>
      fd0451e4
    • Liu Gang's avatar
      powerpc/srio: Rewrite the struct ccsr_rio · 7d67ed58
      Liu Gang authored
      
      Rewrite this struct for the support of two ports and two message
      units registers.
      
      Signed-off-by: default avatarLiu Gang <Gang.Liu@freescale.com>
      7d67ed58
    • Prabhakar Kushwaha's avatar
      powerpc/85xx:Fix lds for nand boot debug info · 5113ee70
      Prabhakar Kushwaha authored
      
      Currently "u-boot", the elf file generated via u-boot-nand.lds does not
      contain required debug information i.e. .debug_{line, info, abbrev, aranges,
      ranges} into their respective _global_ sections.
      
      The original ld script line arch/powerpc/cpu/mpc85xx/start.o
      KEEP(*(.bootpg)) is not entirely correct because the start.o file is already
      processed by the linker,therefore the file wildcard in "KEEP(*(.bootpg))" will
      not process start.o again for bootpg.
      
      So Fix u-boot-nand.lds to generate these debug information.
      
      Signed-off-by: default avatarAnmol Paralkar <b07584@freescale.com>
      Signed-off-by: default avatarJohn Russo <John.Russo@freescale.com>
      Signed-off-by: default avatarPrabhakar Kushwaha <prabhakar@freescale.com>
      Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
      5113ee70
    • Shaohui Xie's avatar
      powerpc/p2041rdb: add env in NAND support · 15c8c6c2
      Shaohui Xie authored
      
      Add env in NAND support when boot from NAND.
      
      Signed-off-by: default avatarShaohui Xie <Shaohui.Xie@freescale.com>
      Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
      15c8c6c2
    • Shaohui Xie's avatar
      powerpc/p2041rdb: add NAND and NAND boot support · c9b2feaf
      Shaohui Xie authored
      
      New P2041RDB board will add a NAND chip, so add support for NAND and
      NAND boot.
      
      Signed-off-by: default avatarShaohui Xie <Shaohui.Xie@freescale.com>
      Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
      c9b2feaf
    • York Sun's avatar
      powerpc/mpc8xxx: Fix CONFIG_DDR_RAW_TIMING for two boards · 1ba62f10
      York Sun authored
      
      P1010RDB and p1_pc_rdb_pc has incorrect configuration for
      CONFIG_DDR_RAW_TIMING. It should be CONFIG_SYS_DDR_RAW_TIMING.
      Incorrect setting causes DDR failure in case of SPD absent.
      
      Signed-off-by: default avatarYork Sun <yorksun@freescale.com>
      Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
      1ba62f10
    • Prabhakar Kushwaha's avatar
      powerpc/85xx:Avoid vector table compilation for nand_spl · 119a55f9
      Prabhakar Kushwaha authored
      
      NAND SPL code never compile the vector table.
      So no need to setup interrupt vector table for NAND SPL.
      
      Signed-off-by: default avatarPrabhakar Kushwaha <prabhakar@freescale.com>
      Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
      119a55f9
    • Prabhakar Kushwaha's avatar
      powerpc/85xx:Fix IVORs addr after vector table relocation · 64829baf
      Prabhakar Kushwaha authored
      
      After relocation of vector table in SDRAM's lower address, IVORs value should
      be updated with new handler addresses.
      
      As vector tables are relocated to 0x100,0x200... 0xf00 address in DDR.IVORs
      are updated with 0x100, 0x200,....f00  hard-coded values.
      
      Signed-off-by: default avatarPrabhakar Kushwaha <prabhakar@freescale.com>
      Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
      64829baf
    • Prabhakar Kushwaha's avatar
      powerpc/85xx:Avoid hardcoded vector address for IVORs · a4107f86
      Prabhakar Kushwaha authored
      
      For e500 and e500v2 architecturees processor IVPR address should be alinged on
      64K boundary.
      
      in start.S, CONFIG_SYS_MONITOR_BASE is stored blindly in IVPR assuming it to be
      64K aligned. It may not be true always. If it is not aligned, IVPR + IVORs may
      not point to an exception handler.
      
      Signed-off-by: default avatarPrabhakar Kushwaha <prabhakar@freescale.com>
      Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
      a4107f86
    • Chunhe Lan's avatar
      powerpc/p1023rds: Disable nor flash node and enable nand flash node · 617e46e3
      Chunhe Lan authored
      
      In the p1023rds, when system boots from nor flash, kernel only accesses nor
      flash and can not access nand flash with BR0/OR0; when system boots from
      nand flash, kernel only accesses nand flash and can not access nor flash
      with BR0/OR0.
      
      Default device tree nor and nand node should have the following structure:
      
      	Example:
      
      		nor_flash: nor@0,0 {
      			#address-cells = <1>;
      			#size-cells = <1>;
      			compatible = "cfi-flash";
      			reg = <0x0 0x0 0x02000000>;
      			bank-width = <2>;
      			device-width = <1>;
      			status = "okay";
      
      			partition@0 {
      				label = "ramdisk";
      				reg = <0x00000000 0x01c00000>;
      			};
      		}
      
      		nand_flash: nand@1,0 {
      			#address-cells = <1>;
      			#size-cells = <1>;
      			compatible = "fsl,p1023-fcm-nand",
      				     "fsl,elbc-fcm-nand";
      			reg = <0x2 0x0 0x00040000>;
      			status = "disabled";
      
      			u-boot-nand@0 {
      				/* This location must not be altered  */
      				/* 1MB for u-boot Bootloader Image */
      				reg = <0x0 0x00100000>;
      				read-only;
      			};
      		}
      
      When booting from nor flash, the status of nor node is enabled and the
      status of nand node is disabled in the default dts file, so do not do
      anything.
      
      But, when booting from nand flash, need to do some operations:
      
      	o Disable the NOR node by setting status = "disabled";
      	o Enable the NAND node by setting status = "okay";
      
      Signed-off-by: default avatarChunhe Lan <Chunhe.Lan@freescale.com>
      Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
      617e46e3
  2. Apr 23, 2012
  3. Apr 21, 2012
    • Wolfgang Denk's avatar
      Prepare v2012.04 · 2790bf69
      Wolfgang Denk authored
      
      Also tiny style cleanup to tools/patman/README
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
    • Stephan Linz's avatar
      net: ll_temac: drop obsolete "NAMESIZE" define · 34921d04
      Stephan Linz authored
      
      ... after commit "net/miiphy/serial: drop duplicate NAMESIZE
      define" (sha1:f6add132) was applied. The building of the new
      LL TEMAC network driver fails with error below:
      
      xilinx_ll_temac.c: In function 'xilinx_ll_temac_initialize':
      xilinx_ll_temac.c:301: error: 'NAMESIZE' undeclared (first use in this function)
      xilinx_ll_temac.c:301: error: (Each undeclared identifier is reported only once
      xilinx_ll_temac.c:301: error: for each function it appears in.)
      
      Signed-off-by: default avatarStephan Linz <linz@li-pro.net>
      Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
      34921d04
    • Simon Glass's avatar
      Add 'patman' patch generation, checking and submission script · 0d24de9d
      Simon Glass authored
      
      What is this?
      
      =============
      
      This tool is a Python script which:
      - Creates patch directly from your branch
      - Cleans them up by removing unwanted tags
      - Inserts a cover letter with change lists
      - Runs the patches through checkpatch.pl and its own checks
      - Optionally emails them out to selected people
      
      It is intended to automate patch creation and make it a less
      error-prone process. It is useful for U-Boot and Linux work so far,
      since it uses the checkpatch.pl script.
      
      It is configured almost entirely by tags it finds in your commits.
      This means that you can work on a number of different branches at
      once, and keep the settings with each branch rather than having to
      git format-patch, git send-email, etc. with the correct parameters
      each time. So for example if you put:
      
      in one of your commits, the series will be sent there.
      
      See the README file for full details.
      END
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      0d24de9d
    • Jens Scharsig's avatar
      0d62032e
    • Dirk Behme's avatar
      mmc: Fix warning if CONFIG_MMC_TRACE is enabled · 146bec79
      Dirk Behme authored
      
      Fix the warning
      
      mmc.c: In function 'mmc_send_cmd':
      mmc.c:87: warning: assignment from incompatible pointer type
      
      in case CONFIG_MMC_TRACE is enabled.
      
      Signed-off-by: default avatarDirk Behme <dirk.behme@de.bosch.com>
      CC: Andy Fleming <afleming@freescale.com>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      Acked-by: default avatarMarek Vasut <marex@denx.de>
      146bec79
    • Jeroen Hofstee's avatar
      ehci-omap: fix for enabling the correct usb port · 90579fdd
      Jeroen Hofstee authored
      This is just a patch for the problem reported here:
      http://lists.denx.de/pipermail/u-boot/2012-February/117580.html
      
       originally reported by Igor.
      
      "Looks like this is copy paste error from my side,(for port2/3 it should have been bypass
       for port2/3 rather its port1 set in bypass mode)"
      
      I only submit the patch since it is missing in 2012.04-rc3 while the twister board
      depends on it. Maybe it is already somewhere in the reposistory, but I cannot find it.
      
      note: the twister boards still needs an additional `usb reset`, don't know why.
      
      U-Boot 2012.04-rc3-dirty (Apr 19 2012 - 21:38:38)
      
      AM35XX-GP ES1.0, CPU-OPP2, L3-165MHz, Max CPU Clock 600 Mhz
      TAM3517 TWISTER Board + LPDDR/NAND
      I2C:   ready
      DRAM:  256 MiB
      NAND:  512 MiB
      MMC:   OMAP SD/MMC: 0
      In:    serial
      Out:   serial
      Err:   serial
      Die ID #746c0000000000000155dc1405011024
      Net:   DaVinci-EMAC, smc911x-0
      Hit any key to stop autoboot:  0
      twister => usb start
      (Re)start USB...
      USB:   Register 1313 NbrPorts 3
      USB EHCI 1.00
      scanning bus for devices... 1 USB Device(s) found
             scanning bus for storage devices... 0 Storage Device(s) found
      twister => usb reset
      (Re)start USB...
      USB:   Register 1313 NbrPorts 3
      USB EHCI 1.00
      scanning bus for devices... 1 USB Device(s) found
             scanning bus for storage devices... 0 Storage Device(s) found
      twister => usb reset
      (Re)start USB...
      USB:   Register 1313 NbrPorts 3
      USB EHCI 1.00
      scanning bus for devices... 1 USB Device(s) found
             scanning bus for storage devices... 0 Storage Device(s) found
      twister => usb reset
      (Re)start USB...
      USB:   Register 1313 NbrPorts 3
      USB EHCI 1.00
      scanning bus for devices... 1 USB Device(s) found
             scanning bus for storage devices... 0 Storage Device(s) found
      
      Signed-off-by: default avatarJeroen Hofstee <jeroen@myspectrum.nl>
      Acked-by: Govindraj.R <govindraj.raja <at> ti.com>
      Acked-by: default avatarTom Rini <trini@ti.com>
      90579fdd
    • Wolfgang Denk's avatar
      fdt: avoid bad MAKEALL status · 896bbb53
      Wolfgang Denk authored
      
      Current versions of  dtc  always print a message like
      
      	DTC: dts->dtb  on file "dt.dtb.tmp"
      
      which cannot even be suppressed with "-qqq".  To avoid incorrect
      MAKEALL status, we manually filter out this message.  This is a bit
      complicated, as we have to make sure to set a correct return code.
      
      Also, get rid of the temp file: dtc accepts "-" for stdin.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Simon Glass <sjg@chromium.org>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      896bbb53
    • Wolfgang Denk's avatar
      fdt: fix out of tree builds with DT support · 82f45866
      Wolfgang Denk authored
      
      Fix: FATAL ERROR: Couldn't open "../arch/arm/dts/tegra20.dtsi": No
      such file or directory
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Simon Glass <sjg@chromium.org>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      82f45866
    • Wolfgang Denk's avatar
      GCC4.6: Squash warnings in onenand_base.c · 1432c763
      Wolfgang Denk authored
      
      Fix gcc 4.6 build warnings:
      onenand_base.c: In function 'onenand_probe':
      onenand_base.c:2577:6: warning: variable 'maf_id' set but not used
      [-Wunused-but-set-variable]
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Lukasz Majewski <l.majewski@samsung.com>
      Cc: Kyungmin Park <kyungmin.park@samsung.com>
      Tested-by: default avatarLukasz Majewski <l.majewski@samsung.com>
      1432c763
  4. Apr 18, 2012
  5. Apr 17, 2012
  6. Apr 16, 2012
Loading