05 Mar, 2018

1 commit

  • Thomas reported U-Boot failed to build host tools if libfdt-devel
    package is installed because tools include libfdt headers from
    /usr/include/ instead of using internal ones.

    This commit moves the header code:
    include/libfdt.h -> include/linux/libfdt.h
    include/libfdt_env.h -> include/linux/libfdt_env.h

    and replaces include directives:
    #include -> #include
    #include -> #include

    Reported-by: Thomas Petazzoni
    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     

26 Feb, 2018

1 commit


08 Feb, 2018

1 commit

  • The goal of this patch is to clean up the code related to choosing SPL
    MMC boot mode.

    The spl_boot_mode() now is called only in spl_mmc_load_image() function,
    which is only compiled in if CONFIG_SPL_MMC_SUPPORT is enabled.

    To achieve the goal, all per mach/arch implementations eligible for
    unification has been replaced with one __weak implementation.

    Signed-off-by: Lukasz Majewski
    Reviewed-by: Marek Vasut
    Reviewed-by: Stefano Babic
    Acked-by: Michal Simek (For ZynqMP)
    Reviewed-by: Fabio Estevam

    Lukasz Majewski
     

27 Jan, 2018

1 commit


26 Jan, 2018

2 commits


24 Jan, 2018

1 commit


09 Jan, 2018

1 commit

  • In order for these commands to not be included in SPL we need to guard
    compilation with CONFIG_SPL_BUILD checks. Reorganize some sections of
    code slightly in order to avoid new warnings and mark the command
    functions as static as they should have been before.

    Cc: Marek Vasut
    Signed-off-by: Tom Rini

    Tom Rini
     

22 Nov, 2017

1 commit


04 Oct, 2017

1 commit

  • U-Boot widely uses error() as a bit noisier variant of printf().

    This macro causes name conflict with the following line in
    include/linux/compiler-gcc.h:

    # define __compiletime_error(message) __attribute__((error(message)))

    This prevents us from using __compiletime_error(), and makes it
    difficult to fully sync BUILD_BUG macros with Linux. (Notice
    Linux's BUILD_BUG_ON_MSG is implemented by using compiletime_assert().)

    Let's convert error() into now treewide-available pr_err().

    Done with the help of Coccinelle, excluing tools/ directory.

    The semantic patch I used is as follows:

    //
    @@@@
    -error
    +pr_err
    (...)
    //

    Signed-off-by: Masahiro Yamada
    Reviewed-by: Simon Glass
    [trini: Re-run Coccinelle]
    Signed-off-by: Tom Rini

    Masahiro Yamada
     

23 Sep, 2017

1 commit


16 Aug, 2017

1 commit


26 Jul, 2017

3 commits


22 May, 2017

1 commit


18 May, 2017

13 commits


25 Apr, 2017

1 commit


14 Apr, 2017

3 commits


18 Feb, 2017

1 commit

  • the socfpga bootrom supports mmc booting from either a raw image
    starting at 0x0, or from a partition of type 0xa2. This patch
    adds support for locating the boot image in the first type 0xa2
    partition found.

    Assigned a partition number of -1 will cause a search for a
    partition of type CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION_TYPE
    and use it to find the u-boot image

    Signed-off-by: Dalon Westergreen

    Dalon Westergreen
     

08 Feb, 2017

1 commit

  • The mpuclk register in the Altera group of the clock manager
    divides the mpu_clk that is generated from the C0 output of the main
    pll.

    Without this patch, the default value of the register is 1, so the mpuclk
    will always get divided by 2 if the correct value is not set. For example,
    on the Arria5 socdk board, the MPU clock is only 525 MHz, and it should be
    1.05 GHz.

    Signed-off-by: Dinh Nguyen

    Dinh Nguyen
     

24 Jan, 2017

1 commit


06 Dec, 2016

3 commits

  • Some Altera Quartus generated files have long lines that are split with a '\' at
    the end of the line. It also wOn Windows, rites files in DOS format, which can
    confuse some of the processing scripts in this file. This patch solves both issues.

    Signed-off-by: Bill Randle
    Cc: Marek Vasut

    Bill Randle
     
  • Valid Altera SoCFPGA preloader image must contain special data at
    offsets 0x40, 0x44, 0x48 and valid instructions at address 0x4c or
    0x50. These addresses are by default used by U-Boot's vector table
    and a piece of reset handler, thus a valid preloader corrupts those
    addresses slightly. While this works most of the time, this can and
    does prevent the board from rebooting sometimes and triggering this
    issue may even depend on compiler.

    The problem is that when SoCFPGA performs warm reset, it checks the
    addresses 0x40..0x4b in SRAM for a valid preloader signature and
    header checksum. If those are found, it jumps to address 0x4c or
    0x50 (this is unclear). These addresses are populated by the first
    few instructions of arch/arm/cpu/armv7/start.S:

    ffff0040 :
    ffff0040: ebfffffe bl ffff0040

    ffff0044 :
    ffff0044: ea000012 b ffff0094

    ffff0048 :
    ffff0048: e10f0000 mrs r0, CPSR
    ffff004c: e200101f and r1, r0, #31
    ffff0050: e331001a teq r1, #26

    Without this patch, the CPU will enter the code at 0xffff004c or
    0xffff0050 , at which point the value of r0 and r1 registers is
    undefined. Moreover, jumping directly to the preloader entry point
    at address 0xffff0000 will also fail, because address 0xffff004.
    is invalid and contains the preloader magic.

    Add BOOT0 hook which reserves the area at offset 0x40..0x5f and
    populates offset 0x50 with jump to the entry point. This way, the
    preloader signature is stored in reserved space and can not corrupt
    the SPL code.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Stefan Roese
    Tested-by: Dinh Nguyen

    Marek Vasut
     
  • Add CycloneV based Terasic DE1-SoC board. The board boots
    from SD/MMC. Ethernet and USB host is supported.

    Signed-off-by: Anatolij Gustschin
    Cc: Marek Vasut

    Anatolij Gustschin
     

31 Oct, 2016

1 commit