12 Aug, 2019

1 commit


07 May, 2018

1 commit

  • When U-Boot started using SPDX tags we were among the early adopters and
    there weren't a lot of other examples to borrow from. So we picked the
    area of the file that usually had a full license text and replaced it
    with an appropriate SPDX-License-Identifier: entry. Since then, the
    Linux Kernel has adopted SPDX tags and they place it as the very first
    line in a file (except where shebangs are used, then it's second line)
    and with slightly different comment styles than us.

    In part due to community overlap, in part due to better tag visibility
    and in part for other minor reasons, switch over to that style.

    This commit changes all instances where we have a single declared
    license in the tag as both the before and after are identical in tag
    contents. There's also a few places where I found we did not have a tag
    and have introduced one.

    Signed-off-by: Tom Rini

    Tom Rini
     

16 Aug, 2017

2 commits

  • We are now using an env_ prefix for environment functions. Rename these
    two functions for consistency. Also add function comments in common.h.

    Quite a few places use getenv() in a condition context, provoking a
    warning from checkpatch. These are fixed up in this patch also.

    Suggested-by: Wolfgang Denk
    Signed-off-by: Simon Glass

    Simon Glass
     
  • We are now using an env_ prefix for environment functions. Rename setenv()
    for consistency. Also add function comments in common.h.

    Suggested-by: Wolfgang Denk
    Signed-off-by: Simon Glass

    Simon Glass
     

23 Oct, 2015

1 commit


12 Jun, 2015

1 commit

  • Commit e11c6c279d823dc0d2f470c5c2e3c0a9854a640f broke calculating lr register
    in function save_boot_params() and caused U-Boot to crash at early boot time
    on Nokia N900 board.

    This patch fix calculating return address in lr register and make Nokia N900
    board bootable again. Patch was tested in qemu and also on real N900 HW.

    Reviewed-by: Simon Glass
    Signed-off-by: Pali Rohár

    Pali Rohár
     

13 Mar, 2015

1 commit


17 Feb, 2015

1 commit

  • The link register value can be required on some boards (e.g. FEL mode on
    sunxi) so use a branch instruction to jump to save_boot_params() instead
    of a branch link.

    This requires a branch back to save_boot_params_ret so adjust the users
    to deal with this. For exynos just drop the function since it doesn't
    do anything.

    Signed-off-by: Simon Glass
    Acked-by: Siarhei Siamashka
    Acked-by: Hans de Goede
    Signed-off-by: Hans de Goede

    Simon Glass
     

12 Jan, 2015

1 commit

  • Since commit 41623c91b09a0c865fab41acdaff30f060f29ad6 u-boot running in qemu is
    crashing in function do_omap3_emu_romcode_call(). RX-51 board uses this function
    for Cortex-A8 errata 430973 workaround (Set IBE bit in ACR) which is needed only
    on real secure device and not in qemu.

    This board patch just disable calling secure PPA routine on non secure devices.
    Qemu implements GP device and with this patch u-boot is working in qemu again.

    Signed-off-by: Pali Rohár
    Acked-by: Pavel Machek

    Pali Rohár
     

05 Dec, 2014

1 commit

  • Boards using the TWL4030 regulator may not all use the LDOs the same way
    (e.g. MMC2 power can be controlled by another LDO than VMMC2).
    This delegates TWL4030 MMC power initializations to board-specific functions,
    that may still call twl4030_power_mmc_init for the default behavior.

    Signed-off-by: Paul Kocialkowski
    Reviewed-by: Tom Rini
    [trini: Fix omap3_evm warning, add twl4030.h]
    Signed-off-by: Tom Rini

    Paul Kocialkowski
     

14 Sep, 2014

1 commit

  • Now the types of CONFIG_SYS_{ARCH, CPU, SOC, VENDOR, BOARD, CONFIG_NAME}
    are specified in arch/Kconfig.

    We can delete the ones in arch and board Kconfig files.

    This commit can be easily reproduced by the following command:

    find . -name Kconfig -a ! -path ./arch/Kconfig | xargs sed -i -e '
    /config[[:space:]]SYS_\(ARCH\|CPU\|SOC\|\VENDOR\|BOARD\|CONFIG_NAME\)/ {
    N
    s/\n[[:space:]]*string//
    }
    '

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     

31 Aug, 2014

1 commit


30 Jul, 2014

2 commits

  • We have switched to Kconfig and the boards.cfg file is going to
    be removed. We have to retrieve the board status and maintainers
    information from it.

    The MAINTAINERS format as in Linux Kernel would be nice
    because we can crib the scripts/get_maintainer.pl script.

    After some discussion, we chose to put a MAINTAINERS file under each
    board directory, not the top-level one because we want to collect
    relevant information for a board into a single place.

    TODO:
    Modify get_maintainer.pl to scan multiple MAINTAINERS files.

    Signed-off-by: Masahiro Yamada
    Suggested-by: Tom Rini
    Acked-by: Simon Glass

    Masahiro Yamada
     
  • This commit adds:
    - arch/${ARCH}/Kconfig
    provide a menu to select target boards
    - board/${VENDOR}/${BOARD}/Kconfig or board/${BOARD}/Kconfig
    set CONFIG macros to the appropriate values for each board
    - configs/${TARGET_BOARD}_defconfig
    default setting of each board

    (This commit was automatically generated by a conversion script
    based on boards.cfg)

    In Linux Kernel, defconfig files are located under
    arch/${ARCH}/configs/ directory.
    It works in Linux Kernel since ARCH is always given from the
    command line for cross compile.

    But in U-Boot, ARCH is not given from the command line.
    Which means we cannot know ARCH until the board configuration is done.
    That is why all the "*_defconfig" files should be gathered into a
    single directory ./configs/.

    Signed-off-by: Masahiro Yamada
    Acked-by: Simon Glass

    Masahiro Yamada
     

23 Jul, 2014

1 commit

  • At present stdio device functions do not get any clue as to which stdio
    device is being acted on. Some implementations go to great lengths to work
    around this, such as defining a whole separate set of functions for each
    possible device.

    For driver model we need to associate a stdio_dev with a device. It doesn't
    seem possible to continue with this work-around approach.

    Instead, add a stdio_dev pointer to each of the stdio member functions.

    Note: The serial drivers have the same problem, but it is not strictly
    necessary to fix that to get driver model running. Also, if we convert
    serial over to driver model the problem will go away.

    Code size increases by 244 bytes for Thumb2 and 428 for PowerPC.

    22: stdio: Pass device pointer to stdio methods
    arm: (for 2/2 boards) all +244.0 bss -4.0 text +248.0
    powerpc: (for 1/1 boards) all +428.0 text +428.0

    Signed-off-by: Simon Glass
    Acked-by: Marek Vasut
    Reviewed-by: Marek Vasut

    Simon Glass
     

20 Feb, 2014

1 commit

  • - When CONFIG_DISPLAY_CPUINFO is not enabled,
    print_cpuinfo() should be defined as an empty function
    in a header, include/common.h

    - Remove #ifdef CONFIG_DISPLAY_CPUINFO .. #endif
    from caller, common/board_f.c and arch/arm/lib/board.c

    - Remove redundant prototypes in arch/arm/lib/board.c,
    arch/arm/include/asm/arch-am33x/sys_proto.h and
    board/nokia/rx51/rx51.h, keeping the one in include/common.h

    - Add #ifdef CONFIG_DISPLAY_CPUINFO to the func definition
    where it is missing

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     

01 Nov, 2013

1 commit


24 Jul, 2013

1 commit


10 May, 2013

2 commits


09 Mar, 2013

2 commits


31 Oct, 2012

1 commit