18 Mar, 2020

1 commit

  • Now that those common Allwinner config symbols are defined automatically
    for all boards in their Kconfig files, we can remove the now redundant
    definitions from the boards' _defconfig files.

    Some boards had a differing definiton for some of those symbols, it
    looks like mostly to "merge races" when the symbol was introduced (new
    board *_defconfig file missed the "add symbol to all files" patch).

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

    Andre Przywara
     

05 Dec, 2019

4 commits


04 Dec, 2019

1 commit


21 Nov, 2019

1 commit

  • 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
     

02 Aug, 2019

1 commit

  • This converts the following to Kconfig:
    CONFIG_USE_PREBOOT
    CONFIG_PREBOOT

    Both are together in one commit, since otherwise the former causes kconfig
    to define the latter, which gives duplicate symbol errors.

    Includes a manual fixup for CONFIG_PREBOOT in ids8313_defconfig since the
    backslash lands in the wrong place. Similarly with socfpga_vining_fpga.

    Signed-off-by: Simon Glass

    Simon Glass
     

15 Jul, 2019

1 commit

  • The choice of the SPL_TEXT_BASE is not really a decision that should be
    specified by each board's defconfig, as this setting is actually
    dictated by the SoC's memory map and the BootROM behaviour.

    To make this obvious and reduce the clutter in the defconfig files,
    let's specify the SoC constraints in the Kconfig stanza.
    This allows us to remove these lines from the defconfig files again.

    Signed-off-by: Andre Przywara
    Acked-by: Maxime Ripard
    Reviewed-by: Jagan Teki

    Andre Przywara
     

30 Apr, 2019

2 commits


08 Feb, 2019

1 commit


19 Jan, 2019

1 commit

  • Onc of key blocker for using USB Generic host controller
    drivers in Allwinner are CLK and RESET drivers, now these
    available for USB usage.

    So switch sunxi USB use EHCI and OHCI Generic controllers.

    Enabling USB is wisely a board choise, So Enable USB_OHCI_HCD
    where it already have USB_EHCI_HCD

    Signed-off-by: Jagan Teki
    Acked-by: Maxime Ripard

    Jagan Teki
     

14 Nov, 2018

1 commit

  • Now that CMD_UBI does not select CMD_MTDPARTS we need to make platforms
    that had been enabling it turn it on by hand. This exposed that we had
    not yet migrated CMD_MTDPARTS fully, so do so now.

    Fixes: 86dfa556d927 ("cmd: ubi: Remove useless call to mtdparts_init()")
    Signed-off-by: Tom Rini

    Tom Rini
     

04 Sep, 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
     

08 Apr, 2018

1 commit


05 Apr, 2018

1 commit


03 Apr, 2018

3 commits

  • Move the NAND parameters from defconfig files to Kconfig for SUNXI
    architecture only. Fort now only the CHIP pro is migrated.

    It would have been better to convert this defconfig entry to Kconfig for
    all supported machines/architectures but it has been abandoned due to a
    fairly high amount of errors reported by the moveconfig.py tool. This is
    due to defines quite often being multiplications of values/other defines
    not correctly handled.

    Signed-off-by: Miquel Raynal
    Acked-by: Maxime Ripard
    Signed-off-by: Maxime Ripard

    Miquel Raynal
     
  • Remove NAND_SUNXI from the CHIP pro defconfig to be automatically
    selected depending on the state of ARCH_SUNXI.

    Signed-off-by: Miquel Raynal
    Acked-by: Maxime Ripard
    Signed-off-by: Maxime Ripard

    Miquel Raynal
     
  • Make SUNXI_NAND select SPL_NAND_SUPPORT in Kconfig, this limit the
    number of entries to add in defconfig files when adding NAND support.

    For now, the only board using it is the CHIP pro.

    Signed-off-by: Miquel Raynal
    Acked-by: Maxime Ripard
    Signed-off-by: Maxime Ripard

    Miquel Raynal
     

16 Mar, 2018

1 commit

  • This converts the following to Kconfig:
    CONFIG_CONS_INDEX

    We have existing entries for this option in a number of places, with
    different guards on them. They're also sometimes used for things not
    directly inside of the serial driver. First, introduce a new symbol to
    guard the use of CONFIG_CONS_INDEX, so that in the case where we don't
    need this for the serial driver, but for some other use, we can still do
    it. Next, consolidate all of these into the single entry in
    drivers/serial/Kconfig. Finally, introduce CONS_INDEX_[023456] so that
    we can imply a correct value here to make the defconfig side of this
    smaller.

    Signed-off-by: Adam Ford
    [trini: Rework a lot of the logic here, such that I took authorship from
    Adam, but kept his S-o-B line]
    Signed-off-by: Tom Rini

    Tom Rini
     

14 Mar, 2018

1 commit

  • Commit 278b90ce786f ("configs: Migrate CONFIG_SYS_TEXT_BASE") made
    CONFIG_SYS_TEXT_BASE a proper Kconfig variable, with the consequence
    of moving the common definition shared by almost every sunxi board
    into 123 individual defconfig files. But the U-Boot start address
    for Allwinner boards is a platform decision which has been around for
    ages, so defining it in each *board* config file seems a bit over the
    top.
    Define the standard values (160MB into DRAM for most SoCs, with two
    SoC exceptions) if ARCH_SUNXI is selected, and delete the lines from
    the individual defconfigs.

    Signed-off-by: Andre Przywara
    Acked-by: Maxime Ripard
    Reviewed-by: Jagan Teki

    Andre Przywara
     

11 Feb, 2018

2 commits


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
     

02 Feb, 2018

1 commit


26 Jan, 2018

1 commit


19 Dec, 2017

1 commit


11 Oct, 2017

1 commit

  • Having this as a 'default y' is rather annoying because it doesn't
    actually compile unless other options are defined in the board header:

    ../cmd/bootm.c: In function 'do_imls_nor':
    ../cmd/bootm.c:330:7: error: 'CONFIG_SYS_MAX_FLASH_BANKS' undeclared (first use in this function); did you mean 'CONFIG_SYS_MAX_FLASH_SECT'?
    i < CONFIG_SYS_MAX_FLASH_BANKS; ++i, ++info) {

    Make it 'default n' so people who develop new boards that start from a
    blank defconfig have one less compilation failure to debug.

    Signed-off-by: Tuomas Tynkkynen

    Tuomas Tynkkynen
     

04 Oct, 2017

4 commits

  • Fastboot need a bunch of options to be operating properly, such as the
    g_dnl gadget, the fastboot command, and some options that make sense. Since
    fastboot is now part of Kconfig, make sure we have them right.

    That will also reduce the boilerplate in the defconfigs.

    Reviewed-by: Łukasz Majewski
    Reviewed-by: Simon Glass
    Signed-off-by: Maxime Ripard

    Maxime Ripard
     
  • A good number of our boards have USB_GADGET enabled. Imply it so that all
    the boards can benefit from it, and remove some boilerplate from our
    defconfigs.

    Reviewed-by: Łukasz Majewski
    Reviewed-by: Simon Glass
    Signed-off-by: Maxime Ripard

    Maxime Ripard
     
  • All the Allwinner boards use the same manufacturer, VID and PID for the
    gadgets. Make them the defaults to remove some boilerplate from our
    defconfigs.

    Reviewed-by: Łukasz Majewski
    Reviewed-by: Simon Glass
    Signed-off-by: Maxime Ripard

    Maxime Ripard
     
  • The g_dnl USB settings for the vendor ID, product ID and manufacturer are
    actually common settings that can and should be shared by all the gadgets.

    Make them common by renaming them, and convert all the users.

    Reviewed-by: Simon Glass
    Reviewed-by: Lukasz Majewski
    Signed-off-by: Maxime Ripard

    Maxime Ripard
     

02 Sep, 2017

2 commits

  • - Move ANDROID_IMAGE_SUPPORT to top level Kconfig under images as it's
    not strictly part of fastboot.
    - Add some defaults for the fastboot buffer location and size
    - Migrate all options listed in cmd/fastboot/Kconfig
    - Cleanup the README

    Signed-off-by: Tom Rini

    Tom Rini
     
  • This syncs all of the currently Kconfig'd symbols out of the headers and
    into the defconfig files. This has two exceptions, first am335x_evm
    needs to be converted to DM in SPL and then it can stop undef'ing
    CONFIG_DM_USB. Leaving this as-is results in a build failure, and
    without work, run time failure. The other case is am43xx_evm.h and in
    turn am43xx_evm_usbhost_boot. The problem here is that we need DWC3 USB
    host mode in SPL, but still desire to have gadget mode in U-Boot proper.

    Signed-off-by: Tom Rini

    Tom Rini
     

28 Aug, 2017

1 commit


15 Aug, 2017

1 commit


12 Aug, 2017

1 commit


26 Jul, 2017

1 commit

  • This converts the following to Kconfig:
    CONFIG_ENV_IS_IN_MMC
    CONFIG_ENV_IS_IN_NAND
    CONFIG_ENV_IS_IN_UBI
    CONFIG_ENV_IS_NOWHERE

    In fact this already exists for sunxi as a 'choice' config. However not
    all the choices are available in Kconfig yet so we cannot use that. It
    would lead to more than one option being set.

    In addition, one purpose of this series is to allow the environment to be
    stored in more than one place. So the existing choice is converted to a
    normal config allowing each option to be set independently.

    There are not many opportunities for Kconfig updates to reduce the size of
    this patch. This was tested with

    ./tools/moveconfig.py -i CONFIG_ENV_IS_IN_MMC

    And then manual updates. This is because for CHAIN_OF_TRUST boards they
    can only have ENV_IS_NOWHERE set, so we enforce that via Kconfig logic
    now.

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

    Simon Glass