23 Mar, 2019

1 commit

  • Since commit 27cb7300ffda ("Ensure device tree DTS is compiled"),
    build succeeds irrespective of the correctness of Makefile.

    I am going to revert that commit, so wrong code must be fixed.

    CONFIG_MCR3000 is not defined anywhere. CONFIG_TARGET_MCR3000 is the
    correct one.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     

05 Mar, 2019

1 commit


03 Mar, 2019

1 commit


02 Mar, 2019

1 commit

  • Moving to the driver model requires CONFIG_DM to be enabled. Currently
    several boards like kmeter1_defconfig produce a build error when CONFIG_DM
    is enabled:

    In file included from include/common.h:35,
    from ./arch/powerpc/include/asm/fsl_lbc.h:10,
    from include/mpc83xx.h:10,
    from ./arch/powerpc/include/asm/ppc.h:27,
    from ./arch/powerpc/include/asm/u-boot.h:18,
    from include/dm/of.h:10,
    from include/dm/ofnode.h:12,
    from include/dm/device.h:13,
    from include/linux/mtd/mtd.h:26,
    from drivers/mtd/mtdconcat.c:25:
    include/image.h: In function ‘image_check_target_arch’:
    include/image.h:846:3: error: #error "please define IH_ARCH_DEFAULT in
    your arch asm/u-boot.h"
    # error "please define IH_ARCH_DEFAULT in your arch asm/u-boot.h"
    ^~~~~
    include/image.h:848:31: error: ‘IH_ARCH_DEFAULT’ undeclared (first use in
    this function); did you mean ‘IH_ARCH_COUNT’?
    return image_check_arch(hdr, IH_ARCH_DEFAULT);

    The error can be avoided by moving the definition of IH_ARCH_DEFAULT before

    #include

    Signed-off-by: Heinrich Schuchardt
    Reviewed-by: Prabhakar Kushwaha

    Heinrich Schuchardt
     

27 Jan, 2019

2 commits

  • Make use of "IMAGE_MAX_SIZE" and "IMAGE_TEXT_BASE" rather than
    CONFIG_SPL_MAX_SIZE and CONFIG_SPL_TEXT_BASE. This lets us re-use the
    same script for both SPL and TPL. Add logic to scripts/Makefile.spl to
    pass in the right value when preprocessing the script.

    Cc: Stefano Babic
    Cc: Fabio Estevam
    Cc: Jagan Teki
    Cc: Maxime Ripard
    Cc: Andreas Bießmann
    Cc: Philipp Tomsich
    Cc: Michal Simek
    Cc: Daniel Schwierzeck
    Cc: York Sun
    Cc: Bin Meng
    Cc: Heiko Schocher
    Cc: Adam Ford
    Signed-off-by: Tom Rini
    Reviewed-by: Daniel Schwierzeck
    Tested-by: Daniel Schwierzeck
    Tested-by: Adam Ford #da850evm & omap3_logic_somlv
    Reviewed-by: Simon Goldschmidt

    Tom Rini
     
  • Rather than checking for CONFIG_TPL_BUILD and then re-defining
    CONFIG_SPL_TEXT_BASE make use of CONFIG_TPL_TEXT_BASE directly.

    Cc: York Sun
    Cc: Po Liu
    Cc: Qiang Zhao
    Cc: Timur Tabi
    Signed-off-by: Tom Rini

    Tom Rini
     

24 Jan, 2019

1 commit

  • -msingle-pic-base is a new gcc(from 4.6) option for ppc and
    it reduces the size of my u-boot with about 4-5 KB.
    While at it, add -fno-jump-tables too to save a
    few more bytes.

    e5500 core:
    size u-boot.bef
    text data bss dec hex filename
    473043 23772 307104 803919 c444f u-boot.bef
    size u-boot.aft
    text data bss dec hex filename
    453195 23772 307104 784071 bf6c7 u-boot.aft

    e500 core:
    size u-boot.bef
    text data bss dec hex filename
    292998 17868 24968 335834 51fda u-boot.bef
    size u-boot.aft
    text data bss dec hex filename
    288002 17868 24968 330838 50c56 u-boot.aft

    Signed-off-by: Joakim Tjernlund
    Reviewed-by: York Sun

    Joakim Tjernlund
     

21 Jan, 2019

1 commit


06 Dec, 2018

1 commit


03 Dec, 2018

4 commits


27 Nov, 2018

1 commit

  • In legacy CONFIG_HARD_SPI initalizing spi_init code, which
    was removed during dm conversion cleanup.

    So remove the dead instances of CONFIG_HARD_SPI, and related
    code.

    Signed-off-by: Jagan Teki

    Jagan Teki
     

26 Nov, 2018

1 commit

  • There is some basic informaton that SPL normally wants to pass through to
    U-Boot, such as the SDRAM size and bank information.

    Mkae use of the new bloblist structure for this. Add a new 'handoff' blob
    which is set up in SPL and passed to U-Boot proper. Also adda test for
    sandbox_spl that checks that this works correctly and a new 'sb' command
    to show the information passed from SPL.

    Reviewed-by: Tom Rini
    Signed-off-by: Simon Glass

    Simon Glass
     

30 Oct, 2018

3 commits

  • Per T1040RM (Rev. 1, 08/2015), there are 2 issues with the RCW EC2
    settings.

    - The value of FSL_CORENET_RCWSR13_EC2_FM1_GPIO is wrong and should
    be 0x04000000 (value of 1 in RCW bit [420:421])
    - Value of 2/3 are reserved in RCW bit [420:421], hence there is no
    macro FSL_CORENET_RCWSR13_EC2_FM1_DTSEC5_MII.

    Signed-off-by: Bin Meng
    Acked-by: Poonam Aggrwal
    Reviewed-by: York Sun

    Bin Meng
     
  • Per T1040RM (Rev. 1, 08/2015), the value of
    FSL_CORENET_RCWSR13_MAC2_GMII_SEL_ENET_PORT is wrong
    and should be 0x00000080 (bit 440 in the RCW).

    Signed-off-by: Bin Meng
    Acked-by: Poonam Aggrwal
    Reviewed-by: York Sun

    Bin Meng
     
  • Workaround makes FS as default mode on all affected socs.

    Add support to check erratum-A005275 validity for an soc. This info is
    required to determine whether a given soc is affected by this erratum.
    Add quirk for this erratum "has_fsl_erratum_a005275" . This quirk is used
    to enable workaround for the errata

    Force FS mode as default by:
    - making EPS as FS
    - setting PFSC bit to disable HS chirping

    This workaround can be disabled by mentioning "no_erratum_a005275" in
    hwconfig string

    Signed-off-by: Chris Packham
    Reviewed-by: York Sun

    Chris Packham
     

28 Sep, 2018

6 commits


18 Sep, 2018

7 commits


11 Sep, 2018

1 commit


30 Jul, 2018

3 commits


11 Jul, 2018

1 commit


19 Jun, 2018

1 commit

  • cpu_cmd() is reading cpu number via simple_strtoul() which is always
    unsigned type.
    Platform code implementations are not expecting that nr can be negative
    and there is not checking in the code for that too.

    This patch is using u32 type for cpu number to make sure that platform
    code get proper value range.

    Signed-off-by: Michal Simek

    Michal Simek
     

09 May, 2018

1 commit


07 May, 2018

1 commit

  • When U-Boot started using SPDX tags we were among the early adopters and
    there weren't a lot of other examples to borrow from. So we picked the
    area of the file that usually had a full license text and replaced it
    with an appropriate SPDX-License-Identifier: entry. Since then, the
    Linux Kernel has adopted SPDX tags and they place it as the very first
    line in a file (except where shebangs are used, then it's second line)
    and with slightly different comment styles than us.

    In part due to community overlap, in part due to better tag visibility
    and in part for other minor reasons, switch over to that style.

    This commit changes all instances where we have a single declared
    license in the tag as both the before and after are identical in tag
    contents. There's also a few places where I found we did not have a tag
    and have introduced one.

    Signed-off-by: Tom Rini

    Tom Rini
     

28 Apr, 2018

1 commit