30 Jun, 2015

4 commits

  • Enable Driver Model SPI for ls1021atwr board.
    DSPI and QSPI only be enabled when boot from QSPI.
    DSPI and QSPI are compatible under Driver Model SPI.

    Signed-off-by: Haikun Wang
    Tested-by: Review Code-CDREVIEW
    Tested-by: Haikun Wang
    Reviewed-by: Prabhakar Kushwaha
    Reviewed-by: Jagan Teki

    Haikun Wang
     
  • Enable Driver Model SPI for ls1021aqds board.
    DSPI and QSPI is enabled only when boot from QSPI.
    DSPI and QSPI are compatible under Driver Model SPI.

    Signed-off-by: Haikun Wang
    Tested-by: Haikun Wang
    Reviewed-by: Jagan Teki

    Haikun Wang
     
  • The type of DSPI flash on ls1021aqds is AT45DB021, it has specail
    commands and page-size.
    Use the special spi flash driver instead of "spi_flash_std" driver.

    Signed-off-by: Haikun Wang
    Tested-by: Haikun Wang
    Reviewed-by: Simon Glass
    Reviewed-by: Jagan Teki

    Haikun Wang
     
  • Atmel DataFlash chips have commands different from common spi
    flash commands.
    Atmel DataFlash also have special page-size.
    This driver add support for accessing Atmel DataFlash.
    It is based on the Driver Model.
    Example:
    => sf probe 1:0
    SPI DataFlash: Detected AT45DB021B with page size 264 Bytes, erase size 264 Bytes, total 264 KiB, revision d
    => sf erase 0 42000
    SF: 270336 bytes @ 0x0 Erased: OK
    => mw.l 82000000 45444342 20000
    => sf write 82000000 0 42000
    SF: 270336 bytes @ 0x0 Written: OK
    => sf read 83000000 0 42000
    SF: 270336 bytes @ 0x0 Read: OK
    => cmp.b 82000000 83000000 42000
    Total of 270336 byte(s) were the same

    Signed-off-by: Haikun Wang
    Tested-by: Haikun Wang
    Reviewed-by: Simon Glass
    Reviewed-by: Chakra Divi
    Reviewed-by: Jagan Teki

    Haikun Wang
     

29 Jun, 2015

1 commit


28 Jun, 2015

3 commits


26 Jun, 2015

7 commits


20 Jun, 2015

15 commits


19 Jun, 2015

10 commits

  • When we're polling and thus handling key-repeat in software, make sure
    to disable idle reports, some keyboards may have these enabled by default
    messing up our software keyrepeat.

    Signed-off-by: Hans de Goede

    Hans de Goede
     
  • Without this we loose every other interrupt packet. We never noticed this
    because with keyboards the packets which we were loosing would normally
    be key release packets.

    But now that we do keyrepeat in software instead of relying on the hid
    idle functionality, missing a release will result in key repeat triggering.

    This commit fixes this.

    Signed-off-by: Hans de Goede

    Hans de Goede
     
  • There is no harm in declaring the function prototypes even if nothing
    implements them, and when CONFIG_DM_USB=y the various usb functions are
    available regardless of any controller drivers being enabled.

    This fixes compile warnings due to missing prototypes on ARCHs where
    the ARCH Kconfig always enables CONFIG_DM_USB and various usb drivers.

    One could argue that in the case of no controllers CONFIG_DM_USB should not
    be set, but this problem is typically seen during bringup of boards which
    do actually have usb controllers.

    Signed-off-by: Hans de Goede

    Hans de Goede
     
  • 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