Skip to content
Snippets Groups Projects
  1. Dec 27, 2021
    • Tom Rini's avatar
      Convert CONFIG_SYS_IMMR to Kconfig · be7dbb60
      Tom Rini authored
      
      This converts the following to Kconfig:
         CONFIG_SYS_IMMR
      
      We do this by consolidating the SYS_IMMR options we have and providing
      defaults.
      
      We also, in the few places where M68K was also sharing code with these
      platforms, define it within the file to CONFIG_SYS_MBAR to match usage.
      This should be cleaned up longer term.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      be7dbb60
    • Tom Rini's avatar
      Convert CONFIG_SYS_MEMTEST_START et al to Kconfig · ff27af12
      Tom Rini authored
      
      This converts the following to Kconfig:
         CONFIG_SYS_MEMTEST_START
         CONFIG_SYS_MEMTEST_END
      
      This is removing unused defines and correcting the default value to be
      0x0 as we are a hex symbol.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      ff27af12
    • Tom Rini's avatar
      Convert CONFIG_WATCHDOG_TIMEOUT_MSECS to Kconfig · 82edd737
      Tom Rini authored
      
      This converts the following to Kconfig:
         CONFIG_WATCHDOG_TIMEOUT_MSECS
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      82edd737
    • Tom Rini's avatar
      Finish converting CONFIG_WATCHDOG, HW_WATCHDOG and WDT to Kconfig · 3847ba94
      Tom Rini authored
      
      Because of how these symbols work, and the remaining board config.h file
      uses, we need to do these at the same time.  In some cases we just get
      to move rather directly to the defconfigs.  A few cases require manual
      intervention.
      
      For the case of the eb_cpu5282 we need to select HW_WATCHDOG for the
      target, given how it's implemented.
      
      For the cases of m53menlo, dh_imx6, display5, and display5_factory we
      disable SPL watchdog support as the particular combination of options
      they want would require either more symbols or enabling SPL_DM.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      3847ba94
    • Tom Rini's avatar
      pci: Remove unused FSL_PCI_INIT code · 954a2f81
      Tom Rini authored
      
      The symbol CONFIG_FSL_PCI_INIT is no longer enabled anywhere, removed
      now unused code.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      954a2f81
    • Tom Rini's avatar
      Convert CONFIG_SYS_NAND_DRIVER_ECC_LAYOUT to Kconfig · 4d693032
      Tom Rini authored
      
      This converts the following to Kconfig:
         CONFIG_SYS_NAND_DRIVER_ECC_LAYOUT
      
      In order to do this conversion, expose this option to the user and
      use "save" not "safe" in the text.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      4d693032
    • Tom Rini's avatar
      Convert CONFIG_SUPPORT_EMMC_RPMB to Kconfig · d5bfef2f
      Tom Rini authored
      
      This converts the following to Kconfig:
         CONFIG_SUPPORT_EMMC_RPMB
      
      This fixes a few platforms where the option was not taking effect as
      intended.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      d5bfef2f
    • Tom Rini's avatar
      Remove CONFIG_SYS_MMC_IMG_LOAD_PART from CONFIG namespace · de35b8f9
      Tom Rini authored
      
      This option is used as part of configuring the default environment for a
      number of platforms.  However, it is always set to 1 and the only time
      it is part of Kconfig, it is used in a hard-coded manner.  Hard-code the
      value in the environment instead.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      de35b8f9
    • Tom Rini's avatar
      Convert CONFIG_CONS_INDEX et al to Kconfig · f76750d1
      Tom Rini authored
      
      This converts the following to Kconfig:
         CONFIG_CONS_INDEX
         CONFIG_DEBUG_UART_CLOCK
         CONFIG_FSL_TZPC_BP147
         CONFIG_GENERIC_ATMEL_MCI
         CONFIG_IDENT_STRING
         CONFIG_LIBATA
         CONFIG_LNX_KRNL_IMG_TEXT_OFFSET_BASE
         CONFIG_LPC32XX_GPIO
         CONFIG_MP
         CONFIG_MPC8XXX_GPIO
         CONFIG_MTD_PARTITIONS
         CONFIG_MVGBE
         CONFIG_MXC_GPIO
         CONFIG_NR_DRAM_BANKS
         CONFIG_OF_BOARD_SETUP
         CONFIG_OF_STDOUT_VIA_ALIAS
         CONFIG_OF_SYSTEM_SETUP
         CONFIG_PREBOOT
         CONFIG_ROCKCHIP_SERIAL
         CONFIG_RTC_ENABLE_32KHZ_OUTPUT
         CONFIG_RTC_MV
         CONFIG_SCSI_AHCI
         CONFIG_SF_DEFAULT_BUS
         CONFIG_SF_DEFAULT_CS
         CONFIG_SF_DEFAULT_SPEED
         CONFIG_SOFT_SPI
         CONFIG_SPI_FLASH_EON
         CONFIG_SPI_FLASH_MACRONIX
         CONFIG_SPI_FLASH_MTD
         CONFIG_SPI_FLASH_SPANSION
         CONFIG_SPI_FLASH_SST
         CONFIG_SPI_FLASH_STMICRO
         CONFIG_SUPPORT_RAW_INITRD
         CONFIG_SYS_ARCH_TIMER
         CONFIG_SYS_BOARD
         CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE
         CONFIG_SYS_DCACHE_OFF
         CONFIG_SYS_FDT_SAVE_ADDRESS
         CONFIG_SYS_FLASH_CFI
         CONFIG_SYS_FSL_ERRATUM_ESDHC135
         CONFIG_SYS_HAS_SERDES
         CONFIG_SYS_L2CACHE_OFF
         CONFIG_SYS_LITTLE_ENDIAN
         CONFIG_SYS_LOAD_ADDR
         CONFIG_SYS_MMCSD_FS_BOOT_PARTITION
         CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION
         CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR
         CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
         CONFIG_SYS_NS16550
         CONFIG_SYS_PLLFIN
         CONFIG_SYS_SPI_U_BOOT_OFFS
         CONFIG_TIMER_SYS_TICK_CH
         CONFIG_USB_EHCI_FSL
         CONFIG_U_QE
         CONFIG_VERSION_VARIABLE
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      f76750d1
    • Tom Rini's avatar
      Convert CONFIG_SD_BOOT et al to Kconfig · 66e0e2b1
      Tom Rini authored
      
      This converts the following to Kconfig:
         CONFIG_SD_BOOT
         CONFIG_SD_BOOT_QSPI
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      66e0e2b1
    • Tom Rini's avatar
      Convert CONFIG_FSL_IFC to Kconfig · 98ab831d
      Tom Rini authored
      
      This converts the following to Kconfig:
         CONFIG_FSL_IFC
      
      This is done via select statements to match previous logic.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      98ab831d
    • Tom Rini's avatar
      Convert CONFIG_ENV_SPI_BUS et al to Kconfig · 7e6a6fd8
      Tom Rini authored
      
      This converts the following to Kconfig:
         CONFIG_ENV_SPI_BUS
         CONFIG_ENV_SPI_CS
         CONFIG_ENV_SPI_MAX_HZ
         CONFIG_ENV_SPI_MODE
      
      As part of this, we use Kconfig to provide the defaults now that were
      done in include/spi_flash.h.  We also in some cases change from using
      CONFIG_ENV_SPI_FOO to CONFIG_SF_DEFAULT_FOO as those were the values in
      use anyhow as ENV was not enabled.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      7e6a6fd8
    • Tom Rini's avatar
      Clarify CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW in Kconfig · 5fd4a7ed
      Tom Rini authored
      
      This is a "hex" prompt but the default value was given as an int.
      Switch the default to hex (0x0) and remove the defconfigs that were
      using the default, but as hex before.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      5fd4a7ed
    • Tom Rini's avatar
      arm: Drop unused tam3517-common.h · 936c8559
      Tom Rini authored
      
      With the relevant platforms removed, drop this file.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      936c8559
  2. Dec 24, 2021
    • Tom Rini's avatar
      Merge branch '2021-12-23-make-OF_BOARD-a-boolean' into next · bc0abd80
      Tom Rini authored
      Merge v8 of Simon's series to make CONFIG_OF_BOARD a boolean option.
      Quoting him:
      
      With Ilias' efforts we have dropped OF_PRIOR_STAGE and OF_HOSTFILE so
      there are only three ways to obtain a devicetree:
      
         - OF_SEPARATE - the normal way, where the devicetree is built and
            appended to U-Boot
         - OF_EMBED - for development purposes, the devicetree is embedded in
            the ELF file (also used for EFI)
         - OF_BOARD - the board figures it out on its own
      
      The last one is currently set up so that no devicetree is needed at all
      in the U-Boot tree. Most boards do provide one, but some don't. Some
      don't even provide instructions on how to boot on the board.
      
      The problems with this approach were covered in another patch[1], since
      removed from this series.
      
      In practice, OF_BOARD is not really distinct from OF_SEPARATE. Any board
      can obtain its devicetree at runtime, even it is has a devicetree built
      in U-Boot. This is because U-Boot may be a second-stage bootloader and its
      caller may have a better idea about the hardware available in the machine.
      This is the case with a few QEMU boards, for example.
      
      So it makes no sense to have OF_BOARD as a 'choice'. It should be an
      option, available with either OF_SEPARATE or OF_EMBED. This would allow
      rpi3, for example, to run with the devicetree provided by the prior
      bootloader.
      
      This series makes this change, adding various missing devicetree files
      (and placeholders) to make the build work.
      
      To make the 'prior stage' side of things more deterministic, a new
      OF_HAS_PRIOR_STAGE is added, which cannot be disabled by updated a board's
      defconfig. This should help to prevent mistakes.
      
      It also adds a run-time message showing where the devicetree came from,
      as well as warnings if the board's expected flow is not being used. This
      comes originally from the 'standard passage' series, which depends on
      this series.
      
      It also provides a few qemu clean-ups discovered along the way. The
      qemu-riscv64_spl problem is fixed.
      
      Please see [2] for discussion on the v6 series.
      
      I put Heinrich's Tested-by tag[3] for the series onto the three devicetree
      patches (ARM and RISC-V) that I think it most affects. It isn't possible
      to apply a tag to a whole series at present and in any case there are
      changes in v7.
      
      This series is available at u-boot-dm/ofb-working
      
      [1] https://patchwork.ozlabs.org/project/uboot/patch/20211207001209.3467163-2-sjg@chromium.org/
      [2] https://lore.kernel.org/u-boot/20211205133207.GW1220664@bill-the-cat/T/#mcd8c0258827fbc1bb3000b7ff9ba0929df1ddcb2
      [3] https://lore.kernel.org/u-boot/93913911-4d20-d28f-ee04-739985184c5e@canonical.com/raw
      bc0abd80
  3. Dec 23, 2021
Loading