1. 18 10月, 2011 2 次提交
    • M
      powerpc: cpm2 boards: update fcc register logic · d4590da4
      Mike Frysinger 提交于
      In the recent dropping of !NET_MULTI code (commit e2a53458),
      I misread the logic in include/net.h.  Some of it was used by NET_MULTI
      code as glue between the multi/non-multi worlds for cpm2 boards.
      
      Rather than restore the block of code, push the logic to the board config
      headers where it all belongs.
      Signed-off-by: NMike Frysinger <vapier@gentoo.org>
      d4590da4
    • A
      zlib: handle overflow while calculating available stream input size · 92faa8b1
      Anatolij Gustschin 提交于
      If compressed data is located in sectors at the end of the flash and
      it's offset + input stream size > 0xFFFFFFFF, the uncompressing time
      is very long, since processing of the stream is done bytewise (and
      not blockwise) due to overflow in inflate_fast() while calculation
      and checking for enough input available.
      
      Check for this overflow condition and limit the available stream
      input size to the actually max. possible input size. This fixes
      the problem.
      
      The issue is easily reproduceable by placing a gziped bitmap in flash,
      e.g. at FFF80000, and running 'bmp' commands like 'bmp info FFF80000'
      or 'bmp display FFF80000'. The uncompressing can take up to 3 sec.
      whereas it should normaly take a fraction of a second. If the
      'splashimage' environment variable points to this address, the
      booting time also increases significantly.
      Signed-off-by: NAnatolij Gustschin <agust@denx.de>
      92faa8b1
  2. 16 10月, 2011 10 次提交
  3. 15 10月, 2011 4 次提交
    • T
      powerpc/85xx: use fdt_create_phandle() to create the Fman firmware phandles · a2c1229c
      Timur Tabi 提交于
      Function fdt_create_phandle() conveniently creates new phandle properties
      using both "linux,phandle" and "phandle", so it should be used by all code
      that wants to create a phandle.
      
      The Fman firmware code, which embeds an Fman firmware into the device tree,
      was creating the phandle properties manually.  Instead, change it to use
      fdt_create_phandle().
      Signed-off-by: NTimur Tabi <timur@freescale.com>
      a2c1229c
    • T
      fdt: update fdt_alloc_phandle to use fdt_get_phandle · 50bf17bd
      Timur Tabi 提交于
      The device tree compiler, dtc, can use "phandle" and/or "linux,phandle"
      properties to specify the phandle for any node.  By default, it uses
      both, but "linux,phandle" is deprecated.  One day, we'd like to stop using
      "linux,phandle", but U-boot needs to support both properties equally
      first.
      
      fdt_alloc_phandle() generates a unique phandle, but it was only checking
      the "linux,phandle" properties.  Instead, we use fdt_get_phandle(),
      which checks both properties automatically.  This ensures that we
      support dtbs that only use "phandle".
      
      The side-effect is that fdt_alloc_phandle() now takes twice as long, since
      it has to check for two properties instead of one in each node that it
      searches.
      Signed-off-by: NTimur Tabi <timur@freescale.com>
      50bf17bd
    • T
      fdt: check for fdt errors in fdt_create_phandle · 3c927ccc
      Timur Tabi 提交于
      fdt_create_phandle() was ignoring errors from fdt_set_phandle().  If an
      error occurs, print an error message and return 0, which is an invalid
      phandle.  We also need to change the return type for fdt_create_phandle()
      to indicate that it cannot return an error code.
      Signed-off-by: NTimur Tabi <timur@freescale.com>
      3c927ccc
    • C
      fdt: Add a do_fixup_by_path_string() function · 8ddb10ea
      Chunhe Lan 提交于
      The do_fixup_by_path_string() will set the specified node's property to the
      value contained in "status". It would just be an inline wrapper for
      do_fixup_by_path() that calls strlen on the argument.
      Signed-off-by: NChunhe Lan <Chunhe.Lan@freescale.com>
      8ddb10ea
  4. 14 10月, 2011 9 次提交
  5. 13 10月, 2011 5 次提交
  6. 12 10月, 2011 7 次提交
  7. 11 10月, 2011 1 次提交
    • L
      NAND: davinci: choose correct 1-bit h/w ECC reg · 60161943
      Laurence Withers 提交于
      In nand_davinci_readecc(), select the correct NANDF<n>ECC register based
      on CONFIG_SYS_NAND_CS rather than hardcoding the choice of NANDF1ECC.
      This allows 1-bit hardware ECC to work with chip select other than CS2.
      
      Note this now matches the usage in nand_davinci_enable_hwecc(), which
      already had the correct handling, and allows refactoring to a single
      function encapsulating the register read.
      
      Without this fix, writing NAND pages to a chip not wired to CS2 would
      result in in the ECC calculation always returning FFFFFF for each
      512-byte segment, and reading back a correctly written page (one with
      ECC intact) would always fail. With this fix, the ECC is written and
      verified correctly.
      Signed-off-by: NLaurence Withers <lwithers@guralp.com>
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      60161943
  8. 10 10月, 2011 2 次提交
    • X
      MIPS: Ingenic XBurst Jz4740 processor support · 80421fcc
      Xiangfu Liu 提交于
      Jz4740 is a multimedia application processor targeting for mobile
      devices like e-Dictionary, eBook, portable media player (PMP) and
      GPS navigator.  Jz4740 is powered by Ingenic 360 MHz XBurst CPU core
      (JzRISC), in which RISC/SIMD/DSP hybrid instruction set architecture
      provides high integration, high performance and low power consumption.
      
      JzRISC incorporated in Jz4740 is the advanced and power-efficient
      32-bit RISC core, compatible with MIPS32, with 16K I-Cache and 16K
      D-Cache, and can operate at speeds up to 400 MHz.
      
      On-chip modules such as LCD controller, embedded audio codec, multi-
      channel SAR-ADC, AC97/I2S controller and camera I/F offer a rich
      suite of peripherals for multimedia application.  NAND controller
      (SLC/MLC), USB (host 1.1 and device 2.0), UART, I2C, SPI, etc. are
      also available.
      
      For more info about Ingenic XBurst Jz4740:
        http://en.ingenic.cn/eng/
        http://www.linux-mips.org/wiki/Ingenic
      
      This patch introduces XBurst CPU support in U-Boot.  It's compatible
      with MIPS32, but requires a bit different cache maintenance, timer
      routines, and boot mechanism using USB boot tool, so XBurst support
      can go into a separate new home, cpu/xburst/.
      Signed-off-by: NXiangfu Liu <xiangfu@openmobilefree.net>
      Acked-by: NDaniel <zpxu@ingenic.cn>
      Signed-off-by: NShinya Kuribayashi <skuribay@pobox.com>
      80421fcc
    • M
      microblaze: Copy bootfile from variables · 2267e2d1
      Michal Simek 提交于
      Setup bootfile.
      Signed-off-by: NMichal Simek <monstr@monstr.eu>
      2267e2d1