07 Feb, 2020

1 commit

  • This partially reverts changes by commit 2cc393f32fd9
    ("video: make BPP and ANSI configs optional") since it
    caused issues with other boards (missing LCD console
    output on pinebook, x86 platform or sandbox). Enable
    all disabled options again and opt out of not supported
    color depth in board defconfigs.

    Signed-off-by: Anatolij Gustschin
    Reported-by: Vagrant Cascadian

    Anatolij Gustschin
     

23 Jan, 2020

1 commit


06 Dec, 2019

1 commit

  • Many boards do not use all selected framebuffer depth
    configurations, for such boards there is some unused
    code in video and console uclass routines. Make depth
    specific code optional to avoid dead code and slightly
    reduce binary size. Also make ANSI code optional for
    the same reason. When i.e. using only VIDEO_BPP16 the
    code size shrinks (below values when using gcc-7.3.0):

    $ ./tools/buildman/buildman -b video-wip -sS wandboard
    ...
    01: Merge git://git.denx.de/u-boot-sh
    02: video: add guards around 16bpp/32bbp code
    03: video: make BPP and ANSI configs optional
    arm: (for 1/1 boards) all -776.0 bss -8.0 text -768.0

    Signed-off-by: Anatolij Gustschin
    Tested-by: Eugen Hristev
    Tested-by: Patrice Chotard
    Tested-by: Steffen Dirkwinkel

    Anatolij Gustschin
     

21 Nov, 2019

2 commits

  • - In ARMv8 NXP Layerscape platforms we also need to make use of
    CONFIG_SYS_RELOC_GD_ENV_ADDR now, do so.
    - On ENV_IS_IN_REMOTE, CONFIG_ENV_OFFSET is never used, drop the define
    to 0.
    - Add Kconfig entry for ENV_ADDR.
    - Make ENV_ADDR / ENV_OFFSET depend on the env locations that use it.
    - Add ENV_xxx_REDUND options that depend on their primary option and
    SYS_REDUNDAND_ENVIRONMENT
    - On a number of PowerPC platforms, use SPL_ENV_ADDR not CONFIG_ENV_ADDR
    for the pre-main-U-Boot environment location.
    - On ENV_IS_IN_SPI_FLASH, check not for CONFIG_ENV_ADDR being set but
    rather it being non-zero, as it will now be zero by default.
    - Rework the env_offset absolute in env/embedded.o to not use
    CONFIG_ENV_OFFSET as it was the only use of ENV_OFFSET within
    ENV_IS_IN_FLASH.
    - Migrate all platforms.

    Cc: Wolfgang Denk
    Cc: Joe Hershberger
    Cc: Patrick Delaunay
    Cc: uboot-stm32@st-md-mailman.stormreply.com
    Signed-off-by: Tom Rini
    Acked-by: Joe Hershberger
    Reviewed-by: Simon Goldschmidt

    Tom Rini
     
  • Today in initr_reloc_global_data() we use some non-obvious tests to
    determine if we need to relocate the env_addr within gd or not. In
    order to facilitate migration of other symbols to Kconfig we need to
    introduce a new symbol for this particular use case.

    Cc: Wolfgang Denk
    Cc: Joe Hershberger
    Signed-off-by: Tom Rini

    Tom Rini
     

30 Apr, 2019

1 commit


10 Apr, 2019

1 commit

  • The Amlogic SoCs have a registers containing the die revision
    and packaging type to determine the SoC family and package marketing
    name like S905X for the GXL SoC Family.

    This code is taken from the Linux meson-gx-socinfo driver and adapted
    to U-Boot printing.

    Signed-off-by: Julien Masson
    Signed-off-by: Neil Armstrong
    [narmstrong: also updated new p200/p201 defconfigs]

    Julien Masson
     

08 Feb, 2019

1 commit


31 Jan, 2019

2 commits

  • libretech-cc being the main device tested with CONFIG_VIDEO_MESON, let's
    enable it by default.

    Also enable:
    - CONFIG_SYS_WHITE_ON_BLACK for prettiness
    - CONFIG_VIDEO_DT_SIMPLEFB for framebuffer sharing with kernel

    Signed-off-by: Maxime Jourdan
    Signed-off-by: Neil Armstrong
    Reviewed-by: Anatolij Gustschin

    Maxime Jourdan
     
  • With the recent addition of the meson VPU driver, enable the following
    config entries by default for meson-64 targets: CONFIG_CONSOLE_MUX,
    CONFIG_SYS_CONSOLE_IS_IN_ENV.

    This allows outputting the console via video if CONFIG_VIDEO_MESON is
    selected.

    Signed-off-by: Maxime Jourdan
    Signed-off-by: Neil Armstrong
    Reviewed-by: Anatolij Gustschin

    Maxime Jourdan
     

08 Jan, 2019

1 commit


26 Nov, 2018

2 commits

  • Rework the board SYS_BOARD, SYS_VENDOR and SYS_CONFIG_NAME setup by moving
    the board Kconfig into the mach-meson Kconfig to make it easier to add
    new boards for a SoC architecture and add a custom config header or custom
    board handler for a platform.

    This drops the board CONFIGs and the duplicate boards configs headers in
    favor of a single meson64.h config header.

    Signed-off-by: Jerome Brunet
    Signed-off-by: Neil Armstrong

    Jerome Brunet
     
  • The Khadas vim and the libretech aml-s905x-cc (aka Potato) derive
    from amlogic s905x reference design (P212).

    All the code in these board is a copy/paste from the p212, which is
    tedious to maintain. This change use p212 u-boot board for all these
    boards, while keeping a dedicated defconfig to customize the names
    and device tree.

    Signed-off-by: Jerome Brunet
    Signed-off-by: Neil Armstrong

    Jerome Brunet
     

04 Sep, 2018

1 commit


18 Aug, 2018

1 commit


17 Aug, 2018

1 commit

  • We have the following cases:
    - CONFIG_NR_DRAM_BANKS was defined, migrate normally
    - CONFIG_NR_DRAM_BANKS_MAX was defined and then used for
    CONFIG_NR_DRAM_BANKS after a check, just migrate it over now.
    - CONFIG_NR_DRAM_BANKS was very oddly defined on p2771-0000-* (to 1024 +
    2), set this to 8.

    Signed-off-by: Tom Rini

    Tom Rini
     

10 Jul, 2018

1 commit


19 Jun, 2018

1 commit


04 Jun, 2018

1 commit


14 Apr, 2018

1 commit


14 Mar, 2018

1 commit

  • CONFIG_PHY_ADDR is used for old-style configuration. This makes
    impossible changing the PHY address, if multiple boards share a same
    config header file (for example include/configs/sunxi-common.h).

    Moving this to Kconfig helps overcoming this issue. It's defined
    as entry inside PHYLIB section.

    After the implemention, moveconfig was run. The issues are:
    - edb9315a - CONFIG_PHYLIB is not enabled. Entry is
    deleted.

    - ds414 - CONFIG_PHYLIB is in incompatible format:
    { 0x1, 0x0 }. This entry is also deleted.

    - devkit3250 - The PHY_ADDR is in hex format (0x1F).
    Manually CONFIG_PHY_ADDR=31 is added in
    the defconfig.

    After the changes the suspicious defconfigs passes building.

    Signed-off-by: Stefan Mavrodiev
    Acked-by: Maxime Ripard
    [jagan: rebased on master]
    Signed-off-by: Jagan Teki
    Reviewed-by: Jagan Teki

    Stefan Mavrodiev
     

11 Feb, 2018

1 commit

  • On the NIOS2 and Xtensa architectures, we do not have
    CONFIG_SYS_TEXT_BASE set. This is a strict migration of the current
    values into the defconfig and removing them from the headers.

    I did not attempt to add more default values in and for now will leave
    that to maintainers.

    Signed-off-by: Tom Rini

    Tom Rini
     

06 Feb, 2018

1 commit

  • cmd/Makefile has:

    ifdef CONFIG_FPGA
    obj-$(CONFIG_CMD_FPGA) += fpga.o
    endif

    which means that if CONFIG_FPGA is not set, CONFIG_CMD_FPGA silently
    does nothing. Let's remove that Makefile conditional and instead express
    this equivalent dependency in Kconfig, so a lot of redundant

    # CONFIG_CMD_FPGA is not set

    can be removed from board defconfigs that don't actually have an FPGA.

    Signed-off-by: Tuomas Tynkkynen

    Tuomas Tynkkynen
     

19 Dec, 2017

1 commit


04 Dec, 2017

2 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 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