18 Mar, 2020

1 commit

  • Some config symbols are found in *almost* every _defconfig file for
    Allwinner boards, because those options are actually a platform choice,
    and not a per-board decision.
    Some of these options are older, some have recently been added.

    Move those options to be set for all Allwinner boards in their
    respective Kconfig files.

    The rationales are as follows:
    - NR_DRAM_BANKS: All Allwinner SoC map DRAM at one contiguous region of
    address space only, starting at 1 GB. So it's always one bank.
    - SPL_{DOS,EFI}_PARTITION: The Allwinner SPL does only support raw MMC
    accesses, we don't care about filesystems or partitions in there, so
    there is no need to define those symbols at all.
    - USE_PREBOOT: We start USB early when a keyboard is configured, using the
    preboot env variable, so we need to set this variable.
    - SYS_RELOC_GD_ENV_ADDR: We don't specify any ENV_ADDR, so need this
    symbol to be set (according to 8d8ee47e03e).
    - SYS_USB_EVENT_POLL_VIA_INT_QUEUE: According to commit eab9433aa55428,
    specifying this reduces the latency of the USB keyboard handling, so
    this was formerly enabled in config headers for all Allwinner boards.

    Signed-off-by: Andre Przywara
    Acked-by: Maxime Ripard
    Tested-by: Jagan Teki # Amarula A64-Relic
    Reviewed-by: Jagan Teki

    Andre Przywara
     

29 Apr, 2018

1 commit

  • If SPL serial support is disabled nothing brings in sprintf, snprintf
    or simple_strtoul:

    env/built-in.o: In function `regex_callback':
    env/attr.c:128: undefined reference to `sprintf'
    disk/built-in.o: In function `blk_get_device_by_str':
    disk/part.c:386: undefined reference to `simple_strtoul'
    disk/part.c:395: undefined reference to `simple_strtoul'
    disk/built-in.o: In function `blk_get_device_part_str':
    disk/part.c:522: undefined reference to `simple_strtoul'
    disk/built-in.o: In function `part_set_generic_name':
    disk/part.c:704: undefined reference to `sprintf'
    drivers/built-in.o: In function `init_peripheral_ep':
    drivers/usb/musb-new/musb_gadget.c:1826: undefined reference to `sprintf'
    drivers/built-in.o: In function `musb_core_init':
    drivers/usb/musb-new/musb_core.c:1451: undefined reference to `snprintf'

    Add those dependencies here.

    Signed-off-by: Alex Kiernan

    Alex Kiernan
     

17 Apr, 2018

1 commit

  • We enabled CONFIG_ISO_PARTITION by default for distro boot, so that U-Boot
    could load distro images that usually get shipped as iso images. These images
    usually come with a board agnostic boot environment.

    However, there is very little point in having ISO support enabled (for anyone
    really) in SPL, as the whole idea of SPL is to load U-Boot proper which again
    is board specific. So the fact that we enable ISO support in U-Boot proper does
    not mean at all that we want ISO support in U-Boot SPL.

    Hence, let's remove the Kconfig dependency. Along the way, let's also clean up
    all those default configs that disabled SPL ISO support.

    Signed-off-by: Alexander Graf

    Alexander Graf
     

09 Feb, 2018

1 commit

  • config_fallback.h has some logic that checks a variety of options
    and selects LIB_UUID if it hasn't already been selected. This
    will all LIB_UUID in Kconfig and select this option for the list
    of options to allow us to remove the logic from fallbacks

    Signed-off-by: Adam Ford

    Adam Ford
     

07 Dec, 2017

2 commits


06 Apr, 2017

1 commit


21 Mar, 2017

1 commit

  • Some architectures require their SPL loader at a fixed address within
    the first 16KB of the disk. To avoid an overlap with the partition
    entries of the EFI partition table, the first safe offset (in bytes,
    from the start of the device) for the entries can be set through
    CONFIG_EFI_PARTITION_ENTRIES_OFF (via Kconfig)

    When formatting a device with an EFI partition table, we may need to
    leave a gap between the GPT header (always in LBA 1) and the partition
    entries. The GPT header already contains a field to specify the
    on-disk location, which has so far always been set to LBA 2. With this
    change, a configurable offset will be translated into a LBA address
    indicating where to put the entries.

    Now also allows an override via device-tree using a config-node (see
    doc/device-tree-bindings/config.txt for documentation).

    Tested (exporting an internal MMC formatted with this) against Linux,
    MacOS X and Windows.

    Signed-off-by: Philipp Tomsich
    Reviewed-by: Simon Glass
    [trini: __maybe_unused on config_offset to avoid warning]
    Signed-off-by: Tom Rini

    Philipp Tomsich
     

28 Jan, 2017

8 commits