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 Dec, 2017

1 commit


04 Dec, 2017

4 commits

  • As discussed at [1], the Amlogic Meson GX SoCs can embed a BL31 firmware
    and a secondary BL32 firmware.
    Since mid-2017, the reserved memory address of the BL31 firmware was moved
    and grown for security reasons.

    But mainline U-Boot and Linux has the old address and size fixed.

    These SoCs have a register interface to get the two firmware reserved
    memory start and sizes.

    This patch adds a dynamic reservation of the memory zones in the device tree bootmem
    reserved memory zone used by the kernel in early boot.
    To be complete, the memory zones are also added to the EFI reserved zones.

    Depends on patchset "Add support for Amlogic GXL Based SBCs" at [2].

    [1] http://lists.infradead.org/pipermail/linux-amlogic/2017-October/004860.html
    [2] http://lists.infradead.org/pipermail/linux-amlogic/2017-November/005410.html

    Changes since v1:
    - switched the #if to if(IS_ENABLED()) to compile all code paths
    - renamed function to meson_board_add_reserved_memory()
    - added a mem.h header with comment
    - updated all boards ft_board_setup()

    Changes since RFC v2:
    - reduced preprocessor load
    - kept Odroid-C2 static memory mapping as exception

    Changes since RFC v1:
    - switch to fdt rsv mem table and efi reserve memory
    - replaced in_le32 by readl()

    Reviewed-by: Simon Glass
    Signed-off-by: Neil Armstrong
    [trini: Fix warning on khadas-vim over missing
    Signed-off-by: Tom Rini

    Neil Armstrong
     
  • This adds platform code for the Khadas VIM board based on a
    Meson GXL (S905X) SoC with the Meson GXL configuration.

    This initial submission supports UART, MMC/SDCard and Ethernet with the
    Internal RMII PHY.

    The meson-gxl-s905x-khadas-vim.dts is synchronised from the linux 4.13
    stable tree as of 4.13.8.

    Reviewed-by: Simon Glass
    Signed-off-by: Neil Armstrong

    Neil Armstrong
     
  • This adds platform code for the Libre Computer CC "Le Potato" board based on a
    Meson GXL (S905X) SoC with the Meson GXL configuration.

    This initial submission supports UART, MMC/SDCard and Ethernet with the
    Internal RMII PHY.

    The meson-gxl-s905x-libretech-cc.dts is synchronised from the linux 4.13
    stable tree as of 4.13.8.

    Reviewed-by: Simon Glass
    Signed-off-by: Neil Armstrong

    Neil Armstrong
     
  • Introduce a generic common Ethernet Hardware init function
    common to all Amlogic GX SoCs with support for the
    Internal PHY enable for GXL SoCs.

    Signed-off-by: Neil Armstrong

    Neil Armstrong
     

17 Nov, 2017

1 commit


23 Jul, 2017

1 commit

  • The Odroid C2 has two GiB of memory with two reserved regions.
    reg = ;
    reg = ;

    Patch
    bfcef28ae4cf (arm: add initial support for Amlogic Meson and
    ODROID-C2) provided function dram_init_banksize to reserve the
    first 16 MiB of RAM for firmware in function dram_init_banksize
    in arch/arm/mach-meson/board.c and defined
    CONFIG_NR_DRAM_BANKS = 1.

    With this patch dram_init_banksize is changed to additionally
    reserve the 2MiB region for the ARM Trusted Firmware (BL31).
    CONFIG_NR_DRAM_BANKS is set to 2.

    Cc: Andreas Färber
    Signed-off-by: Heinrich Schuchardt

    xypron.glpk@gmx.de
     

06 Apr, 2017

1 commit


18 Oct, 2016

1 commit

  • All systems that are running on armv8 are running bare metal with firmware
    that implements PSCI running in EL3. That means we don't really need to expose
    the hypercall variants of them.

    This patch leaves the code in, but makes the code explicit enough to have the
    compiler optimize it out. With this we don't need to worry about hvc vs smc
    calling convention when calling psci helper functions.

    Signed-off-by: Alexander Graf
    Reviewed-by: Simon Glass

    Alexander Graf
     

16 Jul, 2016

1 commit


25 Jun, 2016

1 commit


28 May, 2016

2 commits