28 Apr, 2018

1 commit


24 Feb, 2018

1 commit

  • This converts the following to Kconfig:
    CONFIG_BOOTP_BOOTPATH
    CONFIG_BOOTP_DNS
    CONFIG_BOOTP_GATEWAY
    CONFIG_BOOTP_HOSTNAME
    CONFIG_BOOTP_PXE
    CONFIG_BOOTP_SUBNETMASK
    CONFIG_CMDLINE_EDITING
    CONFIG_AUTO_COMPLETE
    CONFIG_SYS_LONGHELP
    CONFIG_SUPPORT_RAW_INITRD
    CONFIG_ENV_VARS_UBOOT_CONFIG

    Signed-off-by: Adam Ford
    [trini: Re-run the migration]
    Signed-off-by: Tom Rini

    Adam Ford
     

09 Feb, 2018

3 commits

  • config_fallbacks.h has some logic that sets HAVE_BLOCK_DEVICE
    based on a list of enabled options. Moving HAVE_BLOCK_DEVICE to
    Kconfig allows us to drastically shrink the logic in
    config_fallbacks.h

    Signed-off-by: Adam Ford
    [trini: Rename HAVE_BLOCK_DEVICE to CONFIG_BLOCK_DEVICE]
    Signed-off-by: Tom Rini

    Adam Ford
     
  • 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
     
  • config_fallbacks.h had some logic to automatically select
    LIB_RAND if RANDOM_UUID or CMD_UUID were set if LIB_HW_RAND wasn't
    already selected. By migrating LIB_HW_RAND to Kconfig, we can
    remove this check from config_fallbacks.h and put it into Kconfig

    Signed-off-by: Adam Ford
    Reviewed-by: Lukasz Majewski
    [trini: Turn into a choice, add NET_RANDOM_ETHADDR]
    Signed-off-by: Tom Rini

    Adam Ford
     

23 Jan, 2018

4 commits

  • Patch queue for efi - 2018-01-23

    This time around we have a lot of EFI patches from Heinrich.
    Highlights are:

    - Allow EFI applications to register as drivers
    - Allow exposure of U-Boot block devices from an EFI payload
    - Compatibility improvements

    Tom Rini
     
  • This patch provides
    * a uclass for EFI drivers
    * a EFI driver for block devices

    For each EFI driver the uclass
    * creates a handle
    * adds the driver binding protocol

    The uclass provides the bind, start, and stop entry points for the driver
    binding protocol.

    In bind() and stop() it checks if the controller implements the protocol
    supported by the EFI driver. In the start() function it calls the bind()
    function of the EFI driver. In the stop() function it destroys the child
    controllers.

    The EFI block driver binds to controllers implementing the block io
    protocol.

    When the bind function of the EFI block driver is called it creates a
    new U-Boot block device. It installs child handles for all partitions and
    installs the simple file protocol on these.

    The read and write functions of the EFI block driver delegate calls to the
    controller that it is bound to.

    A usage example is as following:

    U-Boot loads the iPXE snp.efi executable. iPXE connects an iSCSI drive and
    exposes a handle with the block IO protocol. It calls ConnectController.

    Now the EFI block driver installs the partitions with the simple file
    protocol.

    iPXE uses the simple file protocol to load Grub or the Linux Kernel.

    Signed-off-by: Heinrich Schuchardt
    [agraf: add comment on calloc len]
    Signed-off-by: Alexander Graf

    Heinrich Schuchardt
     
  • Make it select FS_FAT as well, because if it's not selected, enabling
    ENV_IS_IN_FAT causes a Kconfig warning:

    warning: (ENV_IS_IN_FAT) selects FAT_WRITE which has unmet direct dependencies (FS_FAT)

    This also allows dropping some code from config_fallbacks.

    Also drop the unnecessary help text about having to enable
    CONFIG_FAT_WRITE - Kconfig automatically handles that.

    Signed-off-by: Tuomas Tynkkynen

    Tuomas Tynkkynen
     
  • Migrate the following symbols to Kconfig:

    CONFIG_FS_EXT4
    CONFIG_EXT4_WRITE

    The definitions in config_fallbacks.h can now be expressed in Kconfig.

    Signed-off-by: Tuomas Tynkkynen

    Tuomas Tynkkynen
     

13 Sep, 2017

1 commit

  • This works (roughly) the same way as linux's, but we currently always
    print lower-case (ie. we just keep %pUB and %pUL for compat with linux),
    mostly just because that is what uuid_bin_to_str() supports.

    %pUb: 01020304-0506-0708-090a-0b0c0d0e0f10
    %pUl: 04030201-0605-0807-090a-0b0c0d0e0f10

    It will be used by a later efi_loader paths for efi variables and for
    device-path-to-text protocol, and also quite useful for debug prints
    of protocol GUIDs.

    Signed-off-by: Rob Clark
    Tested-by: Heinrich Schuchardt
    Reviewed-by: Simon Glass

    Rob Clark
     

04 Sep, 2017

2 commits

  • CONFIG_SYS_MAXARGS contains the maximum number of arguments accepted
    by U-Boot commands. Since the vast majority of the platforms define it
    to 16, it makes sense to have a default definition to 16, which will
    allow to remove this definition from a significant number of
    platforms.

    It will allow to remove the default definition from 216 platform .h
    files, leaving only 56 platforms with non-default values (15, 24, 32,
    48, 64, 96, 128 or 256).

    Signed-off-by: Thomas Petazzoni
    Reviewed-by: Tom Rini

    Thomas Petazzoni
     
  • Most of the platforms are using CONFIG_SYS_CBSIZE +
    sizeof(CONFIG_SYS_PROMPT) + 16 as their value for CONFIG_SYS_PBSIZE,
    so let's adopt this for the fallback value of CONFIG_SYS_PBSIZE.

    This will allow us to drop an explicit definition of CONFIG_SYS_PBSIZE
    from a large number of platforms.

    Signed-off-by: Thomas Petazzoni
    Reviewed-by: Tom Rini

    Thomas Petazzoni
     

03 Sep, 2017

1 commit

  • CONFIG_SYS_CBSIZE contains the buffer size for input for the
    console. The vast majority of platforms define them to some reasonable
    value (256, 512 or 1024 bytes), and it is quite annoying to repeat
    this definition for all platforms while it isn't really HW-related.

    Therefore, let's provide a sane fallback value in config_fallbacks.h,
    so that platforms can rely on it instead of having to explicitly
    define it.

    We use 1024 when KGDB is enabled, and 256 otherwise, which is what the
    majority of the platforms are doing.

    Signed-off-by: Thomas Petazzoni
    Reviewed-by: Tom Rini

    Thomas Petazzoni
     

28 Aug, 2017

1 commit


31 Jul, 2017

1 commit


12 Jul, 2017

1 commit


04 Jun, 2017

1 commit

  • Add fallbacks needed to keep all boards building
    while they are migrated to use Kconfig symbols
    instead of defines in _config.h files for
    FAT filesystem.

    These should eventually go away once Kconfig select
    or imply statements are put in place and duplicated
    defines in _config.h removed.

    Signed-off-by: Sekhar Nori
    [trini: Update logic since CMD_FAT / CONFIG_SPL_FAT_SUPPORT are
    selecting FS_FAT]
    Signed-off-by: Tom Rini

    Sekhar Nori
     

23 May, 2017

1 commit

  • At present IDE support is controlled by CONFIG_CMD_IDE. Add a separate
    CONFIG_IDE option so that IDE support can be enabled without requiring
    the 'ide' command.

    Update existing users and move the ide driver into drivers/block since
    it should not be in common/.

    Signed-off-by: Simon Glass

    Simon Glass
     

30 Apr, 2017

1 commit


28 Jan, 2017

2 commits


04 Dec, 2016

1 commit


17 May, 2016

1 commit


26 Apr, 2016

3 commits


23 Mar, 2016

1 commit


12 Dec, 2014

1 commit

  • The uclass implements the same operations as the current I2C framework but
    makes some changes to make it fit driver model better:

    - Remove the chip address from API calls
    - Remove the address length from API calls
    - Remove concept of 'current' I2C bus
    - Drop all existing init functions

    Acked-by: Heiko Schocher
    Reviewed-by: Masahiro Yamada
    Signed-off-by: Simon Glass

    Simon Glass
     

01 Dec, 2014

1 commit

  • Entering the maximum number of characters defined by CONFIG_SYS_CBSIZE into
    the console and hitting enter afterwards, causes a hang in the system because
    CONFIG_SYS_PBSIZE is not capable of storing the characters of the error message:
    "Unknown command '' - try 'help'".

    Provide a default size for CONFIG_SYS_PBSIZE so that it can store the error
    message and allows the error message to be printed correctly with no hang.

    Signed-off-by: Fabio Estevam

    Fabio Estevam
     

24 Oct, 2014

1 commit

  • CONFIG_SYS_HZ is always defined as 1000 in config_fallbacks.h
    (but some boards still have redundant definitions).

    This commit moves the definition and the document in README to
    Kconfig. Since lib/Kconfig can assure that CONFIG_SYS_HZ is 1000,
    the sanity check in lib/time.c should be removed.

    Signed-off-by: Masahiro Yamada
    Reviewed-by: Marek Vasut

    Masahiro Yamada
     

06 Jun, 2014

1 commit

  • make the use of legacy image format configurable through
    the config define CONFIG_IMAGE_FORMAT_LEGACY.

    When relying on signed FIT images with required signature check
    the legacy image format should be disabled. Therefore introduce
    this new define and enable legacy image format if CONFIG_FIT_SIGNATURE
    is not set. If CONFIG_FIT_SIGNATURE is set disable per default
    the legacy image format.

    Signed-off-by: Heiko Schocher
    Cc: Simon Glass
    Cc: Lars Steubesand
    Cc: Mike Pearce
    Cc: Wolfgang Denk
    Cc: Tom Rini
    Cc: Michal Simek
    Acked-by: Simon Glass

    Heiko Schocher
     

05 May, 2014

1 commit

  • When both CONFIG_API and CONFIG_LCD are enabled, the API code calls
    lcd_display_bitmap(). That isn't compiled unless either CONFIG_CMD_BMP
    or CONFIG_SPLASH_SCREEN is enabled. In order to prevent build problems,
    have config_fallbacks.h enable CONFIG_CMD_BMP when both API and LCD are
    enabled.

    Signed-off-by: Stephen Warren
    Reviewed-by: Simon Glass

    Stephen Warren
     

03 Apr, 2014

2 commits

  • Those commands basis on implementation of random UUID generator version 4
    which is described in RFC4122. The same algorithm is used for generation
    both ids but string representation is different as below.

    char: 0 9 14 19 24 36
    xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    UUID: be be be be be
    GUID: le le le be be

    Commands usage:
    - uuid []
    - guid []

    The result is saved in environment as a "varname" variable if argument is given,
    if not then it is printed.

    New config:
    - CONFIG_CMD_UUID

    Signed-off-by: Przemyslaw Marczak
    Cc: Stephen Warren
    Cc: Lukasz Majewski
    Cc: trini@ti.com

    Przemyslaw Marczak
     
  • This patch adds support to generate UUID (Universally Unique Identifier)
    in version 4 based on RFC4122, which is randomly.

    Source: https://www.ietf.org/rfc/rfc4122.txt

    Changes:
    - new configs:
    - CONFIG_LIB_UUID for compile lib/uuid.c
    - CONFIG_RANDOM_UUID for functions gen_rand_uuid() and gen_rand_uuid_str()
    - add configs dependency to include/config_fallbacks.h for lib uuid.

    lib/uuid.c:
    - add gen_rand_uuid() - this function writes 16 bytes len binary representation
    of UUID v4 to the memory at given address.

    - add gen_rand_uuid_str() - this function writes 37 bytes len hexadecimal
    ASCII string representation of UUID v4 to the memory at given address.

    Signed-off-by: Przemyslaw Marczak
    Cc: Stephen Warren
    Cc: Lukasz Majewski
    [trini: Add CONFIG_EFI_PARTITION to fallbacks]
    Signed-off-by: Tom Rini

    Przemyslaw Marczak
     

09 Jan, 2014

1 commit

  • Provide a way to use any host file or device as a block device in U-Boot.
    This can be used to provide filesystem access within U-Boot to an ext2
    image file on the host, for example.

    The support is plumbed into the filesystem and partition interfaces.

    We don't want to print a message in the driver every time we find a missing
    device. Pass the information back to the caller where a message can be printed
    if desired.

    Signed-off-by: Henrik Nordström
    Signed-off-by: Simon Glass
    - Removed change to part.c get_device_and_partition()

    Signed-off-by: Simon Glass
    Reviewed-by: Simon Glass

    Henrik Nordström
     

09 Nov, 2013

1 commit


05 Nov, 2013

2 commits

  • According to the README, CONFIG_SYS_HZ must be 1000 and most platforms
    follow that. In preparation to remove CONFIG_SYS_HZ from all these
    platforms, provide a common definition. The platforms which use a value
    other than 1000 will get build warning now. These configs are:

    include/configs/M5271EVB.h:#define CONFIG_SYS_HZ 1000000
    include/configs/balloon3.h:#define CONFIG_SYS_HZ 3250000 /* Timer @ 3250000 Hz */
    include/configs/idmr.h:#define CONFIG_SYS_HZ (50000000 / 64)
    include/configs/mini2440.h:#define CONFIG_SYS_HZ 1562500
    include/configs/mx1ads.h:#define CONFIG_SYS_HZ 3686400
    include/configs/omap3_zoom2.h:#define CONFIG_SYS_HZ ((V_SCLK) / (2 << CONFIG_SYS_PTV))
    include/configs/omap730p2.h:#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PTV))
    include/configs/palmld.h:#define CONFIG_SYS_HZ 3250000 /* Timer @ 3250000 Hz */
    include/configs/palmtc.h:#define CONFIG_SYS_HZ 3686400 /* Timer @ 3686400 Hz */
    include/configs/rsk7203.h:#define CONFIG_SYS_HZ (CONFIG_SYS_CLK_FREQ / CMT_CLK_DIVIDER)
    include/configs/rsk7264.h:#define CONFIG_SYS_HZ (CONFIG_SYS_CLK_FREQ / CMT_CLK_DIVIDER)
    include/configs/rsk7269.h:#define CONFIG_SYS_HZ (CONFIG_SYS_CLK_FREQ / CMT_CLK_DIVIDER)
    include/configs/scb9328.h:#define CONFIG_SYS_HZ 3686400 /* incrementer freq: 3.6864 MHz */
    include/configs/versatile.h:#define CONFIG_SYS_HZ (1000000 / 256)
    include/configs/zipitz2.h:#define CONFIG_SYS_HZ 3250000 /* Timer @ 3250000 Hz */

    Signed-off-by: Rob Herring

    Rob Herring
     
  • The definitions for CONFIG_SYS_PROMPT are varied with little reason other
    than to display the board name. Over half the definitions are "==> ", so
    make this the default. The rest of the boards remain unchanged to avoid
    breaking any external scripts expecting a certain prompt.

    Signed-off-by: Rob Herring
    Reviewed-by: Fabio Estevam

    Rob Herring
     

12 Apr, 2013

1 commit

  • Change CONFIG_SPL_PAD_TO from a link address to an image offset since this is
    more handy and closer to the purpose of this config.

    Automatically define CONFIG_SPL_PAD_TO to CONFIG_SPL_MAX_SIZE (or 0 without
    CONFIG_SPL_MAX_SIZE).

    Test that CONFIG_SPL_PAD_TO >= CONFIG_SPL_MAX_SIZE if CONFIG_SPL_PAD_TO is
    non-zero.

    Signed-off-by: Benoît Thébaudeau

    Benoît Thébaudeau
     

15 Mar, 2013

1 commit