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
     

19 Feb, 2018

1 commit

  • Only ARM and in some configs MIPS really implement arch_fixup_fdt().
    Others just use the same boilerplate which is not good by itself,
    but what's worse if we try to build with disabled CONFIG_CMD_BOOTM
    and enabled CONFIG_OF_LIBFDT we'll hit an unknown symbol which was
    apparently implemented in arch/xxx/lib/bootm.c.

    Now with weak arch_fixup_fdt() right in image-fdt.c where it is
    used we get both items highlighted above fixed.

    Signed-off-by: Alexey Brodkin
    Cc: Daniel Schwierzeck
    Cc: Simon Glass
    Cc: York Sun
    Cc: Stefan Roese
    Reviewed-by: Tom Rini
    Reviewed-by: Daniel Schwierzeck

    Alexey Brodkin
     

10 Feb, 2018

1 commit


31 Jan, 2018

1 commit


29 Jan, 2018

1 commit


28 Jan, 2018

1 commit


11 Jan, 2018

1 commit

  • This patch adds changes necessary to move functionality present in
    PowerPC folders with ARM architectures that have DPAA1 QBMan hardware

    - Create new board/freescale/common/fsl_portals.c to house shared
    device tree fixups for DPAA1 devices with ARM and PowerPC cores
    - Add new header file to top includes directory to allow files in
    both architectures to grab the function prototypes
    - Port inhibit_portals() from PowerPC to ARM. This function is used in
    setup to disable interrupts on all QMan and BMan portals. It is
    needed because the interrupts are enabled by default for all portals
    including unused/uninitialised portals. When the kernel attempts to
    go to deep sleep the unused portals prevent it from doing so

    Signed-off-by: Ahmed Mansour
    Reviewed-by: York Sun

    Ahmed Mansour
     

27 Dec, 2017

1 commit


13 Dec, 2017

2 commits


24 Oct, 2017

1 commit


03 Oct, 2017

1 commit

  • Convert the powerpc architecture to make use of the new asm-generic/io.h
    to provide address mapping functions. As powerpc can actually perform
    non-identity mapping between physical & virtual addresses we can't
    simply make use of the generic phys_to_virt() & virt_to_phys()
    functions. However since map_physmem() already effectively implemented
    the same thing as virt_to_phys() we can simply implement virt_to_phys()
    instead of map_physmem() & use the generic map_physmem(). We also drop
    the no-op unmap_physmem().

    This has only been build-tested, feedback from architecture maintainers
    is welcome.

    Signed-off-by: Paul Burton
    Cc: Wolfgang Denk

    Paul Burton
     

27 Aug, 2017

1 commit


16 Aug, 2017

5 commits

  • We are now using an env_ prefix for environment functions. Rename these
    other functions as well, for consistency:

    getenv_vlan()
    getenv_bootm_size()
    getenv_bootm_low()
    getenv_bootm_mapsize()
    env_get_default()

    Suggested-by: Wolfgang Denk
    Signed-off-by: Simon Glass

    Simon Glass
     
  • Rename this function for consistency with env_get().

    Signed-off-by: Simon Glass

    Simon Glass
     
  • We are now using an env_ prefix for environment functions. Rename these
    for consistency. Also add function comments in common.h.

    Suggested-by: Wolfgang Denk
    Signed-off-by: Simon Glass

    Simon Glass
     
  • We are now using an env_ prefix for environment functions. Rename these
    two functions for consistency. Also add function comments in common.h.

    Quite a few places use getenv() in a condition context, provoking a
    warning from checkpatch. These are fixed up in this patch also.

    Suggested-by: Wolfgang Denk
    Signed-off-by: Simon Glass

    Simon Glass
     
  • At present we support multiple environment drivers but there is not way to
    select between them at run time. Also settings related to the position and
    size of the environment area are global (i.e. apply to all locations).

    Until these limitations are removed we cannot really support more than one
    environment location. Adjust the location to be a choice so that only one
    can be selected. By default the environment is 'nowhere', meaning that the
    environment exists only in memory and cannot be saved.

    Also expand the help for the 'nowhere' option and move it to the top since
    it is the default.

    Signed-off-by: Simon Glass
    [trini: Move all of the imply logic to default X if Y so it works again]
    Signed-off-by: Tom Rini

    Simon Glass
     

12 Aug, 2017

3 commits


08 Aug, 2017

1 commit


04 Aug, 2017

1 commit

  • With the changes to fdt_get_base_address() we need to modify the logic
    in ft_verify_fdt() for how we check the validity of the CCSR address.

    Tested-on: qemu-ppce500 -M mpc8544ds
    Fixes: 336a44877af8 ("fdt: Correct fdt_get_base_address()")
    Cc: York Sun
    Cc: Wolfgang Denk
    Reviewed-by: Simon Glass
    Signed-off-by: Tom Rini

    Tom Rini
     

01 Aug, 2017

1 commit

  • Migrate all remaining instances of CMD_NAND, CMD_NAND_TRIMFFS
    CMD_NAND_LOCK_UNLOCK and CMD_NAND_TORTURE from the headers into the
    defconfig files.

    Tested-by: Adam Ford
    Signed-off-by: Tom Rini
    Reviewed-by: Bin Meng

    Tom Rini
     

27 Jul, 2017

1 commit

  • Some platforms have very limited SRAM to run SPL code, so there may
    not be the same amount space for a malloc pool before relocation in
    the SPL stage as the normal U-Boot stage.

    Make SPL and (the full) U-Boot stage use independent SYS_MALLOC_F_LEN,
    so the size of pre-relocation malloc pool can be configured memory
    space independently.

    Signed-off-by: Andy Yan
    Acked-by: Philipp Tomsich
    Reviewed-by: Philipp Tomsich
    [fixed up commit-message:]
    Signed-off-by: Philipp Tomsich

    Andy Yan
     

26 Jul, 2017

1 commit


25 Jul, 2017

1 commit


23 Jul, 2017

13 commits