20 Jun, 2015

4 commits

  • updates for the siemens am335x based boards:

    - draco: add delay for DDR3 configuration
    - change MTD partition layout and add a possibility
    to redefine MTD layout in board header.
    - move ubi support to common header file
    - draco: improve dtb naming
    - draco: set CONFIG_SYS_CBSIZE to 1024
    - add generic env based led
    Leds can now be defined in Environment
    - add generic env based dfu button
    Which gpio is used for the dfu button can be defined
    through the Environment
    - set MACH_TYPE only if defined
    - draco: increase CPU freq to 300MHz
    - Add time command to siemens am33xx boards
    - DDR3: increase default tRFC
    - draco: enable pullup for DFU and ERST pin
    - change print format DDR3

    Signed-off-by: Samuel Egli
    Acked-by: Heiko Schocher
    Reviewed-by: Tom Rini

    Signed-off-by: Heiko Schocher

    Heiko Schocher
     
  • This introduces the part start and part size sub-commands. The purpose of these
    is to store the start block and size of a partition in a variable, given the
    device and partition number.

    This allows reading raw data that fits a single partition more easily.
    For instance, this could be used to figure out the start block and size of a
    kernel partition when a partition table is present, given the partition number.

    Signed-off-by: Paul Kocialkowski
    Acked-by: Stephen Warren
    [trini: Change "%lx" to LBAF]
    Signed-off-by: Tom Rini

    Paul Kocialkowski
     
  • This fixes a misaligned declaration.

    Signed-off-by: Paul Kocialkowski

    Paul Kocialkowski
     
  • The get_max_arm_speed() and get_max_dev_speed() used wrong register
    fields to get the maximum speeds. This commit fixes the bug.

    Signed-off-by: Vitaly Andrianov
    Reviewed-by: Tom Rini

    Vitaly Andrianov
     

19 Jun, 2015

9 commits

  • With the change to make sure that CONFIG_CMD_NET is enabled this board
    no longer fits into the linker script:

    powerpc-linux-ld.bfd: section .resetvec loaded at [fffffffc,ffffffff] overlaps section .u_boot_list loaded at [ffffff58,00000723]
    powerpc-linux-ld.bfd: u-boot: section .resetvec lma 0xfffffffc adjusted to 0x724
    powerpc-linux-ld.bfd: u-boot: section `.resetvec' can't be allocated in segment 0
    LOAD: .data.init .text .rodata .reloc .data .u_boot_list .resetvec
    powerpc-linux-ld.bfd: final link failed: File truncated

    Drop CONFIG_SYS_LONGHELP to free up space.

    Cc: Matthias Fuchs
    Signed-off-by: Tom Rini

    Tom Rini
     
  • This allows using only one of either raw or fs mode for SPL mmc boot, without
    the need to have provisions for the other. In particular, a device may have
    U-Boot installed on a file system on the mmc, without ever needing to read
    U-Boot from raw memory. Thus, there is no reason to provide a sector or
    partition for raw mode. This allows this behaviour and still provides a robust
    fallback mechanism in case provisions for both modes are defined.

    Signed-off-by: Paul Kocialkowski

    Paul Kocialkowski
     
  • This switches some printf calls to puts and avoids a test repetition.

    Signed-off-by: Paul Kocialkowski

    Paul Kocialkowski
     
  • When building tools-only (or env) we need to be sure that we do use
    and do not use . This will fix
    problems such as running 'make defconfig' or 'make sandbox_config' and
    then 'make tools-only'.

    Based on the responses below to the thread add linux/kconfig.h higher in
    the includes and drop the now unneeded autoconf.h lower down to ensure
    the default environment is included correctly

    http://lists.denx.de/pipermail/u-boot/2015-June/216849.html

    Signed-off-by: Peter Robinson

    Peter Robinson
     
  • This fix is necessary to avoid booting the default ITB configuration.

    Signed-off-by: Lukasz Majewski

    Łukasz Majewski
     
  • We want to see if the requested start or total block count are
    unaligned. We discard the whole numbers and only care about the
    remainder. Update the code to use div_u64_rem here and add a comment.

    Cc: Hans de Goede
    Cc: Pantelis Antoniou
    Cc: Bernhard Nortmann
    Reported-by: Simon Glass
    Signed-off-by: Tom Rini
    Tested-by: Bernhard Nortmann
    Reviewed-by: Hans de Goede

    Tom Rini
     
  • since we have now various processor-speeds it isn't useful anymore to
    preinitialize kernels-delay loop.

    Rather we want the kernel to calibrate it on every boot.
    This wastes around 80ms boottime but is compatible to all CPU-speeds.

    Signed-off-by: Hannes Schmelzer

    Hannes Petermaier
     
  • in future we support yet another b&r am335x based board, where Timer 5 is
    wired to backlight-driver.

    So we introduce a new driver-type '2' to setup timer5 instead timer6.

    Signed-off-by: Hannes Schmelzer
    Reviewed-by: Simon Glass

    Hannes Petermaier
     
  • Currently there is no default value for NETARGS if CONFIG_CMD_NET=y isn't set.
    This results in build errors which was first discovered when trying to run
    make env.

    By defining a blank NETARGS these errors can be avoided.

    Signed-off-by: Franklin S Cooper Jr
    Tested-by: Maxin B. John
    Reviewed-by: Tom Rini

    Cooper Jr., Franklin
     

18 Jun, 2015

3 commits


17 Jun, 2015

4 commits

  • The MSI Primo 81 is an Allwinner A31s-based tablet on which the
    OTG port is the only accessible USB interface. The existing
    defconfig had VGA console on the LCD enabled, but was missing
    keyboard support because the prerequisites for that (sunxi MUSB
    support and AXP221 GPIO support) had not been available before.
    All previously missing dependencies are available now, so this
    patch enables keyboard support and its prerequisites in the
    defconfig.

    Signed-off-by: Karsten Merker
    Reviewed-by: Hans de Goede
    Signed-off-by: Hans de Goede

    Karsten Merker
     
  • Currently on sun6i after a "reset" the prompt returns and the user can
    even type stuff until the watchdog triggers and does the actual reset.

    This is somewhat unexpected behavior for the "reset" command, this
    commit adds an endless loop to wait for the watchdog to trigger so that
    we do not return to the prompt.

    Signed-off-by: Hans de Goede
    Acked-by: Ian Campbell

    Hans de Goede
     
  • Remove the unused sunxi_musb_exit method, there is no code in u-boot
    calling the exit method, and our implementation was broken as it did
    not disable the clocks and asserted reset.

    Signed-off-by: Hans de Goede
    Acked-by: Ian Campbell

    Hans de Goede
     
  • Fully resetting the controller is a too big hammer, and the musb_core will
    then afterwards fail to communicate with any endpoints other then 0 as
    too much state was cleared.

    Instead report vbus low for 200ms which will effectively end the current
    session without needing to do a full reset.

    This fixes usb mass-storage devices no longer working after a "usb reset"

    Signed-off-by: Hans de Goede
    Acked-by: Ian Campbell

    Hans de Goede
     

16 Jun, 2015

1 commit


15 Jun, 2015

13 commits


14 Jun, 2015

4 commits

  • To support the Armada 38x, new values for the request-delay and the
    response-timeout are needed. As the values already implemented in
    this tool (for Kirkwood and Armada XP) don't seem to work here.
    To make this more flexible, lets add make those 2 parameters
    configurable via the cmdline. Here the new parameters:

    -q : use specific request-delay
    -s : use specific response-timeout

    For the Marvell DB-88F6820 these values are known to work:

    One board:
    -q 2 -s 1

    2nd board:
    -q 5 -s 5

    So this seems to be even board specific. But with this patch now
    those values can be specified and tested via the cmdline.

    Signed-off-by: Stefan Roese
    Cc: Kevin Smith
    Cc: Dirk Eibach
    Cc: Luka Perkov

    Stefan Roese
     
  • SMP-enabled Linux kernels read the CBAR register in CP15 to find
    the address of the SCU registers. After remapping internal
    registers, also update the CBAR so the kernel can find them.

    Signed-off-by: Kevin Smith
    Acked-by: Stefan Roese

    Kevin Smith
     
  • L2 cache may still be enabled by the BootROM. We need to first disable
    it before enabling d-cache support.

    Signed-off-by: Stefan Roese
    Tested-by: Kevin Smith

    Stefan Roese
     
  • If defined, the macro CONFIG_SYS_SPI_U_BOOT_OFFS allows a board
    to specify the offset of the payload image into the kwb image
    file. This value was being used to locate the image, but was not
    used in the "header size" field of the main header. Move the
    use of this macro into the function that returns the header size
    so that the same value is used in all places.

    Signed-off-by: Kevin Smith
    Tested-by: Stefan Roese

    Kevin Smith
     

13 Jun, 2015

2 commits

  • The AHCI driver currently waits 5s before timing out when sending a
    data command to a drive. Some drives take upwards of 8s to respond to
    the initial data command while they're spinning up. Increase the
    data io timeout to 10s so that those drives can be found on initial
    scsi scan.

    Signed-off-by: Mark Langsdorf
    Signed-off-by: Andre Przywara

    Mark Langsdorf
     
  • Enable full 48-bit LBA48 data reads by passing the upper word of the
    LBA block pointer in bytes 9 and 10 of the FIS.

    This allows uboot to load data from any arbitrary sector on a drive
    with 2 or more TB of available data connected to an AHCI controller.

    Signed-off-by: Mark Langsdorf
    Signed-off-by: Andre Przywara
    [trini: Make use of CONFIG_SYS_64BIT_LBA in a few places to drop
    warnings on platforms that don't enable that feature ]
    Signed-off-by: Tom Rini

    Mark Langsdorf