1. 03 Dec, 2015 1 commit
  2. 25 Dec, 2014 1 commit
  3. 04 Nov, 2014 3 commits
  4. 25 Sep, 2014 1 commit
    • York Sun's avatar
      driver/ddr: Restruct driver to allow standalone memory space · 1d71efbb
      York Sun authored
      
      U-boot has been initializing DDR for the main memory. The presumption
      is the memory stays as a big continuous block, either linear or
      interleaved. This change is to support putting some DDR controllers
      to separated space without counting into main memory. The standalone
      memory controller could use different number of DIMM slots.
      Signed-off-by: default avatarYork Sun <yorksun@freescale.com>
      1d71efbb
  5. 24 Sep, 2014 1 commit
  6. 23 Sep, 2014 1 commit
  7. 21 Sep, 2014 1 commit
  8. 30 Aug, 2014 1 commit
    • Tom Rini's avatar
      cmd_bootm.c: Add 'booti' for ARM64 Linux kernel Images · d2b2ffe3
      Tom Rini authored
      
      The default format for arm64 Linux kernels is the "Image" format,
      described in Documentation/arm64/booting.txt.  This, along with an
      optional gzip compression on top is all that is generated by default.
      The Image format has a magic number within the header for verification,
      a text_offset where the Image must be run from, an image_size that
      includes the BSS and reserved fields.
      
      This does not support automatic detection of a gzip compressed image.
      Signed-off-by: default avatarTom Rini <trini@ti.com>
      d2b2ffe3
  9. 25 Aug, 2014 1 commit
    • Heiko Schocher's avatar
      mtd, ubi, ubifs: resync with Linux-3.14 · ff94bc40
      Heiko Schocher authored
      
      resync ubi subsystem with linux:
      
      commit 455c6fdbd219161bd09b1165f11699d6d73de11c
      Author: Linus Torvalds <torvalds@linux-foundation.org>
      Date:   Sun Mar 30 20:40:15 2014 -0700
      
          Linux 3.14
      
      A nice side effect of this, is we introduce UBI Fastmap support
      to U-Boot.
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      Signed-off-by: default avatarTom Rini <trini@ti.com>
      Cc: Marek Vasut <marex@denx.de>
      Cc: Sergey Lapin <slapin@ossfans.org>
      Cc: Scott Wood <scottwood@freescale.com>
      Cc: Joerg Krause <jkrause@posteo.de>
      ff94bc40
  10. 21 Aug, 2014 1 commit
    • Thierry Reding's avatar
      net: More BOOTP retry timeout improvements · 92ac8acc
      Thierry Reding authored
      It's not unusual for DHCP servers to take a couple hundred milliseconds
      to respond to DHCP discover messages. One possible reason for the delay
      can be that the server checks (typically using an ARP request) that the
      IP it's about to hand out isn't in use yet. To make matters worse, some
      servers may also queue up requests and process them sequentially, which
      can cause excessively long delays if clients retry too fast.
      
      Commit f59be6e8
      
       ("net: BOOTP retry timeout improvements") shortened
      the retry timeouts significantly, but the BOOTP/DHCP implementation in
      U-Boot doesn't handle that well because it will ignore incoming replies
      to earlier requests. In one particular setup this increases the time it
      takes to obtain a DHCP lease from 630 ms to 8313 ms.
      
      This commit attempts to fix this in two ways. First it increases the
      initial retry timeout from 10 ms to 250 ms to give DHCP servers some
      more time to respond. At the same time a cache of outstanding DHCP
      request IDs is kept so that the implementation will know to continue
      transactions even after a retransmission of the DISCOVER message. The
      maximum retry timeout is also increased from 1 second to 2 seconds. An
      ID cache of size 4 will keep DHCP requests around for 8 seconds (once
      the maximum retry timeout has been reached) before dropping them. This
      should give servers plenty of time to respond. If it ever turns out
      that this isn't enough, the size of the cache can easily be increased.
      
      With this commit the DHCP lease on the above-mentioned setup still takes
      longer (1230 ms) than originally, but that's an acceptable compromise to
      improve DHCP lease acquisition time for a broader range of setups.
      
      To make it easier to benchmark DHCP in the future, this commit also adds
      the time it took to obtain a lease to the final "DHCP client bound to
      address x.x.x.x" message.
      Tested-by: default avatarStephen Warren <swarren@nvidia.com>
      Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
      92ac8acc
  11. 14 Aug, 2014 2 commits
  12. 06 Aug, 2014 1 commit
  13. 05 Aug, 2014 1 commit
  14. 04 Aug, 2014 1 commit
  15. 23 Jul, 2014 4 commits
    • Simon Glass's avatar
      sandbox: Support pre-relocation malloc() · 29afe9e6
      Simon Glass authored
      
      Set up and zero global data before board_init_f() is called so that we can
      remove the need for CONFIG_SYS_GENERIC_GLOBAL_DATA.
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      29afe9e6
    • Simon Glass's avatar
      Add a simple malloc() implementation for pre-relocation · d59476b6
      Simon Glass authored
      
      If we are to have driver model before relocation we need to support some
      way of calling memory allocation routines.
      
      The standard malloc() is pretty complicated:
      
      1. It uses some BSS memory for its state, and BSS is not available before
      relocation
      
      2. It supports algorithms for reducing memory fragmentation and improving
      performace of free(). Before relocation we could happily just not support
      free().
      
      3. It includes about 4KB of code (Thumb 2) and 1KB of data. However since
      this has been loaded anyway this is not really a problem.
      
      The simplest way to support pre-relocation malloc() is to reserve an area
      of memory and allocate it in increasing blocks as needed. This
      implementation does this.
      
      To enable it, you need to define the size of the malloc() pool as described
      in the README. It will be located above the pre-relocation stack on
      supported architectures.
      
      Note that this implementation is only useful on machines which have some
      memory available before dram_init() is called - this includes those that
      do no DRAM init (like tegra) and those that do it in SPL (quite a few
      boards). Enabling driver model preior to relocation for the rest of the
      boards is left for a later exercise.
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      d59476b6
    • Heiko Schocher's avatar
      spi: add config option to enable the WP pin function on st micron flashes · 562f8df1
      Heiko Schocher authored
      
      enable the W#/Vpp signal to disable writing to the status
      register on ST MICRON flashes like the N25Q128 thorugh
      the new config option CONFIG_SYS_SPI_ST_ENABLE_WP_PIN
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      Cc: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
      562f8df1
    • Heiko Schocher's avatar
      pwm, imx6: add support for pwm modul on imx6 · b2f97cf2
      Heiko Schocher authored
      
      add basic support for the pwm modul found on imx6.
      Pieces of this code are based on linux code from drivers/pwm/pwm-imx.c
      Commit "cd3de83f1476 Linux 3.16-rc4"
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      Acked-by: default avatarStefano Babic <sbabic@denx.de>
      Cc: Wolfgang Denk <wd@denx.de>
      b2f97cf2
  16. 07 Jul, 2014 4 commits
  17. 03 Jul, 2014 1 commit
  18. 20 Jun, 2014 2 commits
    • Simon Glass's avatar
      dm: Update README to encourage conversion to driver model · 2eb31b13
      Simon Glass authored
      
      Add a note to encourage people to convert drivers to use driver model.
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      2eb31b13
    • Simon Glass's avatar
      Add an I/O tracing feature · aa53233a
      Simon Glass authored
      When debugging drivers it is useful to see what I/O accesses were done
      and in what order.
      
      Even if the individual accesses are of little interest it can be useful to
      verify that the access pattern is consistent each time an operation is
      performed. In this case a checksum can be used to characterise the operation
      of a driver. The checksum can be compared across different runs of the
      operation to verify that the driver is working properly.
      
      In particular, when performing major refactoring of the driver, where the
      access pattern should not change, the checksum provides assurance that the
      refactoring work has not broken the driver.
      
      Add an I/O tracing feature and associated commands to provide this facility.
      It works by sneaking into the io.h heder for an architecture and redirecting
      I/O accesses through its tracing mechanism.
      
      For now no commands are provided to examine the trace buffer. The format is
      fairly simple, so 'md' is a reasonable substitute.
      
      Note: The checksum feature is...
      aa53233a
  19. 05 Jun, 2014 2 commits
  20. 01 Jun, 2014 1 commit
    • Stephen Warren's avatar
      usb: hub: remove CONFIG_USB_HUB_MIN_POWER_ON_DELAY · 77b83e6d
      Stephen Warren authored
      
      Now that we wait the correct specification-mandated time at the end of
      usb_hub_power_on(), I suspect that CONFIG_USB_HUB_MIN_POWER_ON_DELAY has
      no purpose.
      
      For cm_t35.h, we already wait longer than the original MIN_POWER_ON_DELAY,
      so this change is safe.
      
      For gw_ventana.h, we will wait as long as the original MIN_POWER_ON_DELAY
      iff pgood_delay was at least 200ms. I'm not sure if this is the case or
      not, hence I've CC'd relevant people to test this change.
      
      Cc: Igor Grinberg <grinberg@compulab.co.il>
      Cc: Tim Harvey <tharvey@gateworks.com>
      Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
      77b83e6d
  21. 30 May, 2014 1 commit
  22. 29 May, 2014 1 commit
    • cwz's avatar
      rkuboot: fixed the commit error: · 953804dc
      cwz authored
          commit d3e512a0
          Author: eddie <cf@rock-chips.com>
          Date:   Fri Feb 7 16:39:06 2014 +0800
      
              Revert "Merge remote-tracking branch 'origin/master' into rk3026_uboot_develop"
      
              This reverts commit 55cd6ee6, reversing
              changes made to 75044362.
      
      sync to the master branch to the commit for late merge:
          commit dbf3de2d
          Author: Tom Rini <trini@ti.com>
          Date:   Thu Feb 6 14:26:05 2014 -0500
      
              include/usb/s3c_udc.h: Add <asm/sizes.h>
      
              With e0059eae
      
       switching to using SZ_1K, we need to #include <asm/sizes.h>
              here for everyone to build still.
      Signed-off-by: default avatarTom Rini <trini@ti.com>
      953804dc
  23. 23 May, 2014 1 commit
    • Pierre Aubert's avatar
      eMMC: cmd_mmc.c adds the 'rpmb' sub-command for the 'mmc' command · 1fd93c6e
      Pierre Aubert authored
      
      This sub-command adds support for the RPMB partition of an eMMC:
      * mmc rpmb key <address of the authentication key>
        Programs the authentication key in the eMMC This key can not
        be overwritten.
      * mmc rpmb read <address> <block> <#count> [address of key]
        Reads <#count> blocks of 256 bytes in the RPMB partition
        beginning at block number <block>. If the optionnal
        address of the authentication key is provided, the
        Message Authentication Code (MAC) is verified on each
        block.
      * mmc rpmb write <address> <block> <#count> <address of key>
        Writes <#count> blocks of 256 bytes in the RPMB partition
        beginning at block number <block>. The datas are signed
        with the key provided.
      * mmc rpmb counter
        Returns the 'Write counter' of the RPMB partition.
      
      The sub-command is conditional on compilation flag CONFIG_SUPPORT_EMMC_RPMB
      Acked-by: default avatarPantelis Antoniou <panto@antoniou-consulting.com>
      Signed-off-by: default avatarPierre Aubert <p.aubert@staubli.com>
      CC: Wolfgang Denk <wd@denx.de>
      1fd93c6e
  24. 20 May, 2014 2 commits
  25. 12 May, 2014 2 commits
  26. 09 May, 2014 1 commit
  27. 08 May, 2014 1 commit
    • Sebastian Siewior's avatar
      usb/gadget: add the fastboot gadget · 3aab70af
      Sebastian Siewior authored
      This patch contains an implementation of the fastboot protocol on the
      device side and documentation. This is based on USB download gadget
      infrastructure. The fastboot function implements the getvar, reboot,
      download and reboot commands. What is missing is the flash handling i.e.
      writting the image to media.
      
      v3 (Rob Herring):
      This is based on http://patchwork.ozlabs.org/patch/126798/
      
       with the
      following changes:
      - Rebase to current mainline and updates for current gadget API
      - Use SPDX identifiers for licenses
      - Traced the history and added missing copyright to cmd_fastboot.c
      - Use load_addr/load_size for transfer buffer
      - Allow vendor strings to be optional
      - Set vendor/product ID from config defines
      - Allow Ctrl-C to exit fastboot mode
      v4:
      - Major re-write to use the USB download gadget. Consolidated function
      code to a single file.
      - Moved globals into single struct.
      - Use puts and putc as appropriate.
      - Added CONFIG_USB_FASTBOOT_BUF_ADDR and CONFIG_USB_FASTBOOT_BUF_SIZE to
      set the fastboot transfer buffer.
      v5:
      - Add CONFIG option documentation to README
      - Rebase using new downloader registration
      Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      3aab70af