22 Jan, 2017

4 commits


21 Jan, 2017

18 commits


20 Jan, 2017

6 commits

  • The current code can loop undefinitly as it doesn't parse
    correctly the env data.
    Since the env is an hashtable, use the hashtable function for
    the API_ENV_ENUM api call.

    Signed-off-by: Emmanuel Vadot
    Reviewed-by: Simon Glass

    Emmanuel Vadot
     
  • Signed-off-by: Sébastien Szymanski

    Sébastien Szymanski
     
  • Some scripts are calling the same functions, so these changes consolidate
    common scripts together to reduce redundancy and shrink size a bit. This
    also keeps the 'bootargs' variable from growing if manually called more
    than one time. This also adds NAND booting scripts based on newly consolidated
    scripts.

    Signed-off-by: Adam Ford

    Adam Ford
     
  • In 35fc84f, bootm was refactored so plain 'bootm' and
    'bootm ' shared a common implementation.
    The 'bootm ramdisk' command implementation is now part of the common
    implementation but not invoke by plain 'bootm' since the original
    implementation never did ramdisk relocation. Instead, ramdisk
    relocation happened in image_setup_linux() which is typically called
    during the OS portion of 'bootm'.

    On ARM, parameters to the Linux kernel can either be passed by FDT or
    ATAGS. When using FDT, image_setup_linux() is called which also triggers
    ramdisk relocation. When using ATAGS, image_setup_linux() is _not_
    called because it mostly does FDT setup.

    Instead of calling image_setup_linux() in both FDT and ATAGS cases,
    include BOOTM_STATE_RAMDISK in the requested states during a plain
    'bootm' if CONFIG_SYS_BOOT_RAMDISK_HIGH is set and remove the ramdisk
    relocation from image_setup_linux(). This causes ramdisk relocation to
    happen on any system where CONFIG_SYS_BOOT_RAMDISK_HIGH regardless of
    the OS being booted. Also remove IMAGE_ENABLE_RAMDISK_HIGH as it was
    only used by the now-removed code from image_setup_linux().

    Signed-off-by: Rick Altherr
    Reviewed-by: Simon Glass
    Reviewed-by: Joel Stanley

    Rick Altherr
     
  • commit: 65f83802b7a5b "serial: 16550: Add getfcr accessor"
    breaks u-boot commandline working with long commands
    sending to the board.

    Since the above patch, you have to setup the fcr register.

    For board/archs which enable OF_PLATDATA, the new field
    fcr in struct ns16550_platdata is not filled with a
    default value ...

    This leads in not setting up the uarts fifo, which ends
    in problems, when you send long commands to u-boots
    commandline.

    Detected this issue with automated tbot tests on am335x
    based shc board.

    The error does not popup, if you type commands. You need
    to copy&paste a long command to u-boots commandshell
    (or send a long command with tbot)

    Possible boards/plattforms with problems:
    ./arch/arm/cpu/arm926ejs/lpc32xx/devices.c
    ./arch/arm/mach-tegra/board.c
    ./board/overo/overo.c
    ./board/quipos/cairo/cairo.c
    ./board/logicpd/omap3som/omap3logic.c
    ./board/logicpd/zoom1/zoom1.c
    ./board/timll/devkit8000/devkit8000.c
    ./board/lg/sniper/sniper.c
    ./board/ti/beagle/beagle.c
    ./drivers/serial/serial_rockchip.c

    Signed-off-by: Heiko Schocher
    Signed-off-by: Ladislav Michl
    Tested-by: Adam Ford
    Reviewed-by: Tom Rini

    Heiko Schocher
     
  • Tom Rini
     

19 Jan, 2017

12 commits

  • On LS1012ARDB board, three dual 1:4 mux/demux devices drive the SDHC2
    signals to eMMC, SDIO wifi, SPI and Ardiuno shield. Only when we select
    eMMC and SDIO wifi, the SDHC2 could be used. Otherwise, the command
    inhibit bits of eSDHC2_PRSSTAT register will never release. This would
    cause below continious error messages in linux since it uses polling
    mode to detect card.
    "mmc1: Controller never released inhibit bit(s)."
    "mmc1: Controller never released inhibit bit(s)."
    "mmc1: Controller never released inhibit bit(s)."
    This patch is to define esdhc_status_fixup function for RDB to disable
    SDHC2 status if no SDIO wifi or eMMC is selected.

    Signed-off-by: Yangbo Lu
    Reviewed-by: York Sun

    Yangbo Lu
     
  • The LS1012AQDS board has a hardware issue. When there is no eMMC
    adapter card inserted in SDHC2 adapter slot, the command inhibit
    bits of eSDHC2_PRSSTAT register will never release. This would cause
    below continious error messages in linux since it uses polling mode
    to detect card.
    "mmc1: Controller never released inhibit bit(s)."
    "mmc1: Controller never released inhibit bit(s)."
    "mmc1: Controller never released inhibit bit(s)."
    This patch is to define esdhc_status_fixup function for QDS to
    disable SDHC2 status if no eMMC adapter card is detected.

    Signed-off-by: Yangbo Lu
    Reviewed-by: York Sun

    Yangbo Lu
     
  • Move fdt fixup of 'status' property into a weak function. This allows
    board to define 'status' fdt fixup by themselves.

    Signed-off-by: Yangbo Lu
    Reviewed-by: York Sun

    Yangbo Lu
     
  • Enable PPA for ls1043ardb NOR boot and ls1046ardb QSPI boot.

    Signed-off-by: Hou Zhiqiang
    Reviewed-by: York Sun

    Hou Zhiqiang
     
  • Signed-off-by: Hou Zhiqiang
    Reviewed-by: York Sun

    Hou Zhiqiang
     
  • Moved the config FSL_PPA_ARMV8_PSCI from fsl-layerscape's Kconfig to
    Kconfig under armv8 and renamed it to SEC_FIRMWARE_ARMV8_PSCI.

    Signed-off-by: Hou Zhiqiang
    Reviewed-by: York Sun

    Hou Zhiqiang
     
  • Signed-off-by: Hou Zhiqiang
    [York S: clean up scripts/config_whitelist.txt]
    Reviewed-by: York Sun

    Hou Zhiqiang
     
  • For 64-bit kernel, there is a warning about x1-x3 nonzero in violation
    of boot protocol. To fix this issue, input argument 4 is added for
    armv8_switch_to_el2 and armv8_switch_to_el1. The input argument 4 will
    be set to the right value, such as zero.

    Signed-off-by: Alison Wang
    Reviewed-by: Alexander Graf
    Tested-by: Ryan Harkin
    Tested-by: Michal Simek
    Reviewed-by: York Sun

    Alison Wang
     
  • The default MSI node in kernel tree is for LS1043A rev1.0 silicon, if
    rev1.1 silicon used, need to fixup the MSI node to match it.

    Signed-off-by: Wenbin Song
    Signed-off-by: Mingkai Hu
    Signed-off-by: Hou Zhiqiang
    Reviewed-by: York Sun

    Wenbin Song
     
  • The LS1043A rev1.1 silicon supports two types of GIC offset: 4K
    alignment and 64K alignment. The bit SCFG_GIC400_ALIGN[GIC_ADDR_BIT]
    is used to choose which offset will be used.

    The LS1043A rev1.0 silicon only supports the CIG offset with 4K
    alignment.

    If GIC_ADDR_BIT bit is set, 4K alignment is used, or else 64K alignment
    is used. 64K alignment is the default setting.

    Overriding the weak smp_kick_all_cpus, the new impletment is able to
    detect GIC offset.

    The default GIC offset in kernel device tree is using 4K alignment, it
    need to be fixed if 64K alignment is detected.

    Signed-off-by: Wenbin Song
    Signed-off-by: Mingkai Hu
    Signed-off-by: Hou Zhiqiang
    Reviewed-by: York Sun

    Wenbin Song
     
  • By default the SATA IP on the ls208Xa SoCs does not generating
    coherent/snoopable transactions. This patch enable it in the
    sata axicc register.

    Signed-off-by: Tang Yuantian
    Reviewed-by: York Sun

    Tang Yuantian
     
  • Add the chip power supply voltage initialization on LS1046ARDB.
    Add function power_init_board(), and it will initialize the
    PMIC and call the chip power initialization function.

    Signed-off-by: Hou Zhiqiang
    Reviewed-by: York Sun

    Hou Zhiqiang