15 Feb, 2018

1 commit


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
     

11 Jan, 2018

1 commit

  • The CONFIG_SYS_DPAA_QBMAN define is used by DPAA1 freescale SOCs to
    add device tree fixups that allow deep sleep in Linux. The define was
    placed in header files included by a number of boards, but was not
    explicitly documented in any of the Kconfigs. A description was added
    to the drivers/networking menuconfig and default selection for
    current SOCs that have this part

    Signed-off-by: Ahmed Mansour
    Reviewed-by: York Sun

    Ahmed Mansour
     

13 Dec, 2017

2 commits


09 Aug, 2017

1 commit


01 Aug, 2017

1 commit

  • Migrate all remaining instances of CMD_NAND, CMD_NAND_TRIMFFS
    CMD_NAND_LOCK_UNLOCK and CMD_NAND_TORTURE from the headers into the
    defconfig files.

    Tested-by: Adam Ford
    Signed-off-by: Tom Rini
    Reviewed-by: Bin Meng

    Tom Rini
     

26 Jul, 2017

4 commits

  • This converts the following to Kconfig:
    CONFIG_ENV_IS_IN_REMOTE

    Signed-off-by: Simon Glass

    Simon Glass
     
  • This converts the following to Kconfig:
    CONFIG_ENV_IS_IN_SPI_FLASH

    Signed-off-by: Simon Glass

    Simon Glass
     
  • This converts the following to Kconfig:
    CONFIG_ENV_IS_IN_FLASH

    Signed-off-by: Simon Glass

    Simon Glass
     
  • 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
     

12 Jul, 2017

1 commit


23 May, 2017

1 commit


22 May, 2017

1 commit

  • Commit 94e3c8c4fd7b ("crypto/fsl - Add progressive hashing support
    using hardware acceleration.") created entries for CONFIG_SHA1,
    CONFIG_SHA256, CONFIG_SHA_HW_ACCEL, and CONFIG_SHA_PROG_HW_ACCEL.
    However, no defconfig has migrated to it. Complete the move by first
    adding additional logic to various Kconfig files to select this when
    required and then use the moveconfig tool. In many cases we can select
    these because they are required to implement other drivers. We also
    correct how we include the various hashing algorithms in SPL.

    This commit was generated as follows (after Kconfig additions):

    [1] tools/moveconfig.py -y SHA1 SHA256 SHA_HW_ACCEL
    [2] tools/moveconfig.py -y SHA_PROG_HW_ACCEL

    Note:
    We cannot move SHA_HW_ACCEL and SHA_PROG_HW_ACCEL simultaneously
    because there is dependency between them.

    Cc: Poonam Aggrwal
    Cc: Naveen Burmi
    Cc: Po Liu
    Cc: Shengzhou Liu
    Cc: Priyanka Jain
    Cc: Shaohui Xie
    Cc: Chunhe Lan
    Cc: Chander Kashyap
    Cc: Steve Rae
    Cc: Dirk Eibach
    Cc: Feng Li
    Cc: Alison Wang
    Cc: Sumit Garg
    Cc: Mingkai Hu
    Cc: York Sun
    Cc: Prabhakar Kushwaha
    Cc: Jaehoon Chung
    Cc: Akshay Saraswat
    Cc: Heiko Schocher
    Cc: Jagan Teki
    Signed-off-by: Tom Rini
    Reviewed-by: Simon Glass
    Signed-off-by: Tom Rini

    Tom Rini
     

16 May, 2017

1 commit


15 May, 2017

1 commit


10 Mar, 2017

1 commit

  • In some cases this is absolutely required, so select this for some secure
    features. This also requires migration of RSA_FREESCALE_EXP

    Cc: Ruchika Gupta
    Cc: Poonam Aggrwal
    Cc: Naveen Burmi
    Cc: Po Liu
    Cc: Shengzhou Liu
    Cc: Priyanka Jain
    Cc: Sumit Garg
    Cc: Shaohui Xie
    Cc: Chunhe Lan
    Cc: Feng Li
    Cc: Alison Wang
    Cc: Mingkai Hu
    Cc: York Sun
    Cc: Saksham Jain
    Cc: Prabhakar Kushwaha
    Signed-off-by: Tom Rini

    Tom Rini
     

13 Feb, 2017

1 commit

  • We repeated partial moves for CONFIG_SYS_NO_FLASH, but this is
    not completed. Finish this work by the tool.

    During this move, let's rename it to CONFIG_MTD_NOR_FLASH.
    Actually, we have more instances of "#ifndef CONFIG_SYS_NO_FLASH"
    than those of "#ifdef CONFIG_SYS_NO_FLASH". Flipping the logic will
    make the code more readable. Besides, negative meaning symbols do
    not fit in obj-$(CONFIG_...) style Makefiles.

    This commit was created as follows:

    [1] Edit "default n" to "default y" in the config entry in
    common/Kconfig.

    [2] Run "tools/moveconfig.py -y -r HEAD SYS_NO_FLASH"

    [3] Rename the instances in defconfigs by the following:
    find . -path './configs/*_defconfig' | xargs sed -i \
    -e '/CONFIG_SYS_NO_FLASH=y/d' \
    -e 's/# CONFIG_SYS_NO_FLASH is not set/CONFIG_MTD_NOR_FLASH=y/'

    [4] Change the conditionals by the following:
    find . -name '*.[ch]' | xargs sed -i \
    -e 's/ifndef CONFIG_SYS_NO_FLASH/ifdef CONFIG_MTD_NOR_FLASH/' \
    -e 's/ifdef CONFIG_SYS_NO_FLASH/ifndef CONFIG_MTD_NOR_FLASH/' \
    -e 's/!defined(CONFIG_SYS_NO_FLASH)/defined(CONFIG_MTD_NOR_FLASH)/' \
    -e 's/defined(CONFIG_SYS_NO_FLASH)/!defined(CONFIG_MTD_NOR_FLASH)/'

    [5] Modify the following manually
    - Rename the rest of instances
    - Remove the description from README
    - Create the new Kconfig entry in drivers/mtd/Kconfig
    - Remove the old Kconfig entry from common/Kconfig
    - Remove the garbage comments from include/configs/*.h

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     

31 Jan, 2017

1 commit

  • Now, CONFIG_GENERIC_MMC seems equivalent to CONFIG_MMC.

    Let's create an entry for "config GENERIC_MMC" with "default MMC",
    then convert all macro defines in headers to Kconfig. Almost all
    of the defines will go away.

    I see only two exceptions:
    configs/blanche_defconfig
    configs/sandbox_noblk_defconfig

    They define CONFIG_GENERIC_MMC, but not CONFIG_MMC. Something
    might be wrong with these two boards, so should be checked later.

    Anyway, this is the output of the moveconfig tool.

    This commit was created as follows:

    [1] create a config entry in drivers/mmc/Kconfig

    [2] tools/moveconfig.py -r HEAD GENERIC_MMC

    [3] manual clean-up of garbage comments in doc/README.* and
    include/configs/*.h

    Signed-off-by: Masahiro Yamada
    Reviewed-by: Tom Rini

    Masahiro Yamada
     

28 Jan, 2017

1 commit


30 Dec, 2016

1 commit

  • Commit 7a777f6d6f35 ("mmc: Add generic Kconfig option") created
    a Kconfig entry for this option without any actual moves, then
    commit 44c798799f66 ("sunxi: Use Kconfig CONFIG_MMC") moved
    instances only for SUNXI.

    We generally do not like such partial moves. This kind of work
    is automated by tools/moveconfig.py, so it is pretty easy to
    complete this move.

    I am adding "default ARM || PPC || SANDBOX" (suggested by Tom).
    This shortens the configs and will ease new board porting.

    This commit was created as follows:

    [1] Edit Kconfig (remove the "depends on", add the "default",
    copy the prompt and help message from Linux)

    [2] Run 'tools/moveconfig.py -y -s -r HEAD MMC'

    Signed-off-by: Masahiro Yamada
    Reviewed-by: Jaehoon Chung

    Masahiro Yamada
     

03 Dec, 2016

1 commit


24 Nov, 2016

2 commits


15 Oct, 2016

1 commit

  • T series boards use unified RCW for sd, spi and nand boot.
    Now split txxx_rcw.cfg to txxx_sd_rcw.cfg, txxx_spi_rcw.cfg
    and txxx_nand_rcw.cfg for SPI/NAND/SD boot.
    And modify RCW[PBI_SRC] for them:
    PBI_SRC=5 for SPI 24-bit addressing
    PBI_SRC=6 for SD boot
    PBI_SRC=14 for IFC NAND boot

    Signed-off-by: Zhao Qiang
    Reviewed-by: York Sun

    Zhao Qiang
     

17 Sep, 2016

9 commits


10 Sep, 2016

1 commit


05 Aug, 2016

1 commit

  • We need to ensure that CONFIG_PHYS_64BIT is configured via Kconfig so
    that it is always available to the build system. Otherwise we can run
    into cases where we have inconsistent sizes of certain attributes.

    Ravi Babu reported offset mismatch of struct dwc3 across files since
    commit 95ebc253e6d4 ("types.h: move and redefine resource_size_t").
    Since the commit, resource_addr_t points to phys_addr_t, whose size
    is dependent on CONFIG_PHYS_64BIT for ARM architecture.

    I tried my best to use "select" where possible (for example, ARMv8
    architecture) because I think this kind of option is generally user-
    unconfigurable. However, I see some of PowerPC boards have 36BIT
    defconfigs as well as 32BIT ones. I moved CONFIG_PHYS_64BIT to the
    defconfigs for such boards.

    CONFIG_36BIT is no longer referenced, so all of the defines were
    removed from CONFIG_SYS_EXTRA_OPTIONS.

    Fixes: 95ebc253e6d4 ("types.h: move and redefine resource_size_t")
    Signed-off-by: Masahiro Yamada
    Reported-by: Ravi Babu
    Acked-by: Stefan Roese
    Reviewed-by: Tom Rini
    Reviewed-by: York Sun

    Masahiro Yamada
     

22 Jul, 2016

1 commit

  • Loading the fdt at 0xc00000 fails if the uncompressed kernel image is
    greater than 12 MiB, which is quite common with modern kernels and
    multiplatform defconfigs. Move fdtaddr to 0x1e00000 which is just under
    the ramdiskaddr on most targets.

    Signed-off-by: Scott Wood
    Cc: Peter Tyser
    Cc: Dirk Eibach
    Cc: Andy Fleming
    Cc: Paul Gortmaker
    Acked-by: Paul Gortmaker
    Reviewed-by: York Sun

    Scott Wood
     

10 Jun, 2016

1 commit


26 Apr, 2016

2 commits