10 Apr, 2015

4 commits


09 Apr, 2015

2 commits

  • Email address is not longer valid that's why remove it.

    Signed-off-by: Michal Simek

    Michal Simek
     
  • Since commit 326a682358c1 (malloc_f: enable SYS_MALLOC_F by default
    if DM is on), Zynq MMC boot hangs up after printing the following:

    U-Boot SPL 2015.04-rc5-00053-gadcc570 (Apr 08 2015 - 12:59:11)
    mmc boot
    reading system.dtb

    Prior to commit 326a682358c1, Zynq boards enabled CONFIG_DM, but
    not CONFIG_SYS_MALLOC_F. That commit forcibly turned on
    CONFIG_SYS_MALLOC_F. I have not figured out the root cause, but
    anyway it looks like CONFIG_SYS_MALLOC_F gave a bad impact on the
    Zynq MMC boot.

    We are planning to have the v2015.04 release in a few days.
    I know this is a defensive fixup, but what I can do now is to add
    # CONFIG_SYS_MALLOC_F is not set
    to every Zynq defconfig file to get back the original behavior.

    Tested on:
    - Zedboard
    - ZC706 board

    Signed-off-by: Masahiro Yamada
    Tested-by: Michal Simek
    Cc: Simon Glass

    Masahiro Yamada
     

07 Apr, 2015

8 commits

  • With e37f1eb we now use strict_strtoul() in do_mem_mtest() and this
    gives us a warning:
    ../include/vsprintf.h:38:5: note: expected 'long unsigned int *' but
    argument is of type 'int *'

    Signed-off-by: Tom Rini

    Tom Rini
     
  • Top-level Makefile has option to select dtc binary, but it is ignored
    due to bug in Makefile.lib. Fix it.

    Signed-off-by: Pavel Machek

    Pavel Machek
     
  • Since the Kconfig conversion, boards.cfg scanned by MAKEALL is
    generated by tools/genboardscfg.py. Every board is supposed to have
    its own MAINTAINERS that contains maintainer and status information,
    but, in fact, MAINTAINERS is missing from some boards.

    For such boards, the first field, Status, is filled with '-'.
    It causes a problem for "set" command, which ignores '-' in its
    arguments. Consequently, get_target_arch() returns a wrong field
    and MAKEALL fails to get a correct toolchain.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • Since the Kconfig conversion, config.mk has been included only when
    include/config/auto.conf is newer than the .config file.

    It causes build error if both files have the same time-stamps.
    It is actually possible because EXT* file systems have a 1s time-stamp
    resolution.

    The config.mk should be included when include/config/auto.conf is
    *not older* than the .config file.

    Signed-off-by: Masahiro Yamada
    Reported-by: Tom Rini
    Reported-by: York Sun
    Reported-by: Stephen Warren
    Reported-by: Matthew Gerlach
    Tested-by: Stephen Warren

    Masahiro Yamada
     
  • Back in fc46bae a "clean up" was introduced that intended to reconcile
    some of the AM335x codepaths based on how AM43xx operates.
    Unfortunately this introduced a regression on the DDR2 platforms. This
    was un-noticed on DDR3 (everything except for Beaglebone White) as we
    had already populated sdram_config correctly in sequence. This change
    brings us back to the older behavior and is fine on all platforms.

    Tested on Beaglebone White, Beaglebone Black and AM335x GP EVM

    Reported-by: Matt Ranostay
    Signed-off-by: Tom Rini

    Tom Rini
     
  • Currently, memtest will silently accept bad data. Perform error
    checking on user intput.

    Signed-off-by: Pavel Machek

    Pavel Machek
     
  • In stead of user_buffer_size, transfer_size should be used to pass to
    ahci_device_data_io(). transfer_size is the length that we want the
    low level function to transfer each time.
    If we use user_buffer_size which is the totally data length as parameter,
    low level function will actually create many SGs to transfer as many data
    as possible each time. That will produce many redundant data transfer.

    Signed-off-by: Tang Yuantian
    Reviewed-by: Simon Glass

    Tang Yuantian
     
  • The u-boot environment is redundantly stored in a NOR flash on our boards.
    Redundant means that there are two places to store the environment. But only
    one of the two is active. I discovered that on one board the u-boot (env_sf)
    uses the environment from the second place and the Kernel (fw_printenv) uses
    the environment from the first place.
    To decide which is the active environment there is a byte inside the
    environment. 1 means active and 0 means obsolete. But on that board both
    environments had have a 1. This can happen if a power loss or reset occurs
    during writing the environment. In this situation the u-boot (env_sf)
    implementation uses the second environment as default. But the Kernel
    (fw_printenv) implementation uses the first environment as default.

    This commit corrects the default in the u-boot env_sf implementation when a
    problem was detected. Now the recovery default is the same like in all other
    environment implementations. E.g. fw_printenv and env_flash. This ensures that
    u-boot and Kernel use the same environment.

    Signed-off-by: Mario Schuknecht

    Mario Schuknecht
     

06 Apr, 2015

15 commits


04 Apr, 2015

1 commit

  • The Orangepi_mini is different enough from the regular Orangepi that it needs
    its own dtb, but when it got added a copy and paste error was made and it
    got the same dtb filename, fix this.

    While at it also add a short description of both Orangepi boards to the
    defconfig files for them.

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

    Hans de Goede
     

03 Apr, 2015

10 commits

  • Tom Rini
     
  • Conflicts:
    board/armltd/vexpress64/vexpress64.c

    Signed-off-by: Tom Rini

    Tom Rini
     
  • With the most recent board firmware correct SDIO clock is 50MHz as
    opposed to 25 MHz before.

    Also set max frequency of MMC data exchange equal to SDIO clock -
    because there's no way to transfer data faster than interface clock.

    Signed-off-by: Alexey Brodkin

    Alexey Brodkin
     
  • ARCv2 cores may have built-in SLC (System Level Cache, AKA L2-cache).
    This change adds functions required for controlling SLC:
    * slc_enable/disable
    * slc_flush/invalidate

    For now we just disable SLC to escape DMA coherency issues until either:
    * SLC flush/invalidate is supported in DMA APIin U-Boot
    * hardware DMA coherency is implemented (that might be board specific
    so probably we'll need to have a separate Kconfig option for
    controlling SLC explicitly)

    Signed-off-by: Alexey Brodkin

    Alexey Brodkin
     
  • Signed-off-by: Alexey Brodkin
    Cc: Masahiro Yamada
    Cc: Simon Glass

    Alexey Brodkin
     
  • Now when all infrastructure in ARC is ready for it let's switch ARC UART
    to driver model.

    Signed-off-by: Alexey Brodkin
    Cc: Masahiro Yamada
    Cc: Simon Glass

    Alexey Brodkin
     
  • [1] Fix misspeling in ARC_CACHE_LINE_SHIFT dependency, now cache-line
    lenth selection is correctly enabled if either I$ or D$ are enabled.

    [2] Add dummy entry to target list to make sure target type is always
    mentioned in defconfig. Otherwise defconfig for the first target in the
    list will not have target name and later on with addition of the new
    target on top of the list in Kconfig will lead to corrupted
    configuration expanded from defconfig.

    Signed-off-by: Alexey Brodkin

    Alexey Brodkin
     
  • As discussed on mailing list we're drifting away from
    CONFIG_SYS_GENERIC_GLOBAL_DATA in favour to use of board_init_f_mem()
    for global data.

    So do this for ARC architecture.

    Signed-off-by: Alexey Brodkin

    Alexey Brodkin
     
  • Before that moment our defconfigs were manually modified with addition
    of new options. That means once anybody wants to add another option and
    re-genarate defconfig with "make defconfig" there will be lots of
    differences. So to make future modifications more clean we'll do bulk
    re-generation right away.

    Signed-off-by: Alexey Brodkin

    Alexey Brodkin
     
  • Intention behind this work was elimination of as much assembly-written
    code as it is possible.

    In case of ARC we already have relocation fix-up implemented in C so why
    don't we use C for U-Boot copying, .bss zeroing etc.

    It turned out x86 uses pretty similar approach so we re-used parts of
    code in "board_f.c" initially implemented for x86.

    Now assembly usage during init is limited to stack- and frame-pointer
    setup before and after relocation.

    Signed-off-by: Alexey Brodkin
    Cc: Simon Glass

    Alexey Brodkin