23 Jul, 2014

2 commits

  • 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: Simon Glass

    Simon Glass
     
  • 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: Simon Glass

    Simon Glass
     

08 Jul, 2014

4 commits


03 Jul, 2014

1 commit

  • Adding support to load and start the Layerscape Management Complex (MC)
    firmware. First, the MC GCR register is set to 0 to reset all cores. MC
    firmware and DPL images are copied from their location in NOR flash to
    DDR. MC registers are updated with the location of these images.
    Deasserting the reset bit of MC GCR register releases core 0 to run.
    Core 1 will be released by MC firmware. Stop bits are not touched for
    this step. U-boot waits for MC until it boots up. In case of a failure,
    device tree is updated accordingly. The MC firmware image uses FIT format.

    Signed-off-by: J. German Rivera
    Signed-off-by: York Sun
    Signed-off-by: Lijun Pan
    Signed-off-by: Shruti Kanetkar

    J. German Rivera
     

21 Jun, 2014

2 commits

  • Add a note to encourage people to convert drivers to use driver model.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • 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 only useful for I/O regions where the contents
    do not change outside of software control. Where this is not suitable you can
    fall back to manually comparing the addresses. It might be useful to enhance
    tracing to only checksum the accesses and not the data read/written.

    Signed-off-by: Simon Glass

    Simon Glass
     

11 Jun, 2014

1 commit


06 Jun, 2014

2 commits

  • make the use of legacy image format configurable through
    the config define CONFIG_IMAGE_FORMAT_LEGACY.

    When relying on signed FIT images with required signature check
    the legacy image format should be disabled. Therefore introduce
    this new define and enable legacy image format if CONFIG_FIT_SIGNATURE
    is not set. If CONFIG_FIT_SIGNATURE is set disable per default
    the legacy image format.

    Signed-off-by: Heiko Schocher
    Cc: Simon Glass
    Cc: Lars Steubesand
    Cc: Mike Pearce
    Cc: Wolfgang Denk
    Cc: Tom Rini
    Cc: Michal Simek
    Acked-by: Simon Glass

    Heiko Schocher
     
  • Define the MAX_CLUSTSIZE to default of 65536 only if
    CONFIG_FS_FAT_MAX_CLUSTSIZE is not defined.
    This option has been provided to save memory in some
    memory constrained cases.

    Signed-off-by: Siva Durga Prasad Paladugu
    Acked-by: Michal Simek

    Siva Durga Prasad Paladugu
     

02 Jun, 2014

1 commit

  • 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
    Cc: Tim Harvey
    Signed-off-by: Stephen Warren

    Stephen Warren
     

31 May, 2014

1 commit


23 May, 2014

4 commits


20 May, 2014

2 commits


13 May, 2014

2 commits


10 May, 2014

2 commits


09 May, 2014

1 commit


08 May, 2014

1 commit

  • 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: Sebastian Andrzej Siewior
    Signed-off-by: Rob Herring

    Sebastian Siewior
     

05 May, 2014

1 commit

  • Former usb_cable_connected() patch broke compilation of boards which do
    not support this feature.

    I've renamed usb_cable_connected() to g_dnl_usb_cable_connected() and added
    its default implementation to gadget downloader driver code. There's
    only one driver of this kind and it's unlikely there'll be another, so
    there's no point in keeping it in /common.

    Previously this function was declared in usb.h. I've moved it, since
    it's more appropriate to keep it in g_dnl.h - usb.h seems to be intended
    for USB host implementation.

    Existing code, confronted with default -EOPNOTSUPP return value,
    continues as if the cable was connected.

    CONFIG_USB_CABLE_CHECK was removed.

    Change-Id: Ib9198621adee2811b391c64512f14646cefd0369
    Signed-off-by: Mateusz Zalega
    Acked-by: Marek Vasut
    Acked-by: Lukasz Majewski

    Mateusz Zalega
     

26 Apr, 2014

1 commit


23 Apr, 2014

6 commits


20 Apr, 2014

2 commits


18 Apr, 2014

4 commits