03 Dec, 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
     

10 Jan, 2018

1 commit

  • Given gcc-6.1 and later we can now safely have strings discarded when
    the functions are unused. This lets us drop certain cases of not
    building something so that we don't have the strings brought in when the
    code was discarded. Simplify the code now by dropping guards we don't
    need now.

    Cc: Stefano Babic
    Cc: Fabio Estevam
    Cc: Chander Kashyap
    Cc: Thomas Abraham
    Cc: Vipin Kumar
    Cc: Wenyou Yang
    Signed-off-by: Tom Rini

    Tom Rini
     

27 Aug, 2017

1 commit

  • The code in board/spear/common/ is not board-specific but
    SoC-specific. Therefore, boards from other vendors than "spear" may
    want to re-use this code, which is currently difficult with the code
    being placed in board/spear/common/.

    Since this code really is SoC-specific, this commit moves it to
    arch/arm/cpu/arm926ejs/spear/, with the rest of the SPEAr related
    code.

    Signed-off-by: Thomas Petazzoni

    Thomas Petazzoni
     

16 Aug, 2017

3 commits


13 Aug, 2017

1 commit

  • With SPL_LDSCRIPT moved to Kconfig (and this being a 'string' config
    node), all the lingering definitions in header files will cause
    warnings/errors due to the redefinition of the configuration item.

    As we don't want to pollute the defconfig files (and values should
    usually be identical for entire architectures), the defaults are moved
    into Kconfig. Kconfig will always pick the first default that
    matches, so please keep these values at the end of each file (to allow
    any board-specific Kconfig, which will be included earlier) to
    override with an unconditional default setting.

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

    Philipp Tomsich
     

05 Jun, 2017

1 commit


06 Apr, 2017

1 commit


31 May, 2016

1 commit


22 Dec, 2015

1 commit


29 Aug, 2015

1 commit


19 Apr, 2015

1 commit


29 Oct, 2014

1 commit

  • This commit introduces a Kconfig symbol for each ARM CPU:
    CPU_ARM720T, CPU_ARM920T, CPU_ARM926EJS, CPU_ARM946ES, CPU_ARM1136,
    CPU_ARM1176, CPU_V7, CPU_PXA, CPU_SA1100.
    Also, it adds the CPU feature Kconfig symbol HAS_VBAR which is selected
    for CPU_ARM1176 and CPU_V7.

    For each target, the corresponding CPU is selected and the definition of
    SYS_CPU in the corresponding Kconfig file is removed.

    Also, it removes redundant "string" type in some Kconfig files.

    Signed-off-by: Georges Savoundararadj
    Acked-by: Albert ARIBAUD
    Cc: Masahiro Yamada

    Georges Savoundararadj
     

25 Sep, 2014

1 commit

  • Since commit ddaf5c8f3030050fcd356a1e49e3ee8f8f52c6d4
    (patman: RunPipe() should not pipe stdout/stderr unless asked),
    Patman spits lots of "Invalid MAINTAINERS address: '-'"
    error messages for patches with global changes.
    It takes too long for Patman to process them.

    Anyway, "M: -" does not carry any important information.
    Rather, it is just like a place holder in case of assigning
    a new board maintainer. Let's comment out.

    This commit can be reproduced by the following command:

    find . -name MAINTAINERS | xargs sed -i -e '/^M:[[:blank:]]*-$/s/^/#/'

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     

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
     

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
     

13 May, 2014

2 commits


20 Feb, 2014

1 commit


07 Feb, 2014

1 commit

  • With this change driver will benefit from existing phylib and thus
    custom phy functionality implemented in the driver will go away:
    * Instantiation of the driver is now much shorter - 2 parameters
    instead of 4.
    * Simplified phy management/functoinality in driver is replaced with
    rich functionality of phylib.
    * Support of custom phy initialization is now done with existing
    "board_phy_config".

    Note that after this change some previously used config options
    (driver-specific PHY configuration) will be obsolete and they are simply
    substituted with similar options of phylib.

    For example:
    * CONFIG_DW_AUTONEG - no need in this one. Autonegotiation is enabled
    by default.
    * CONFIG_DW_SEARCH_PHY - if one wants to specify attached phy
    explicitly CONFIG_PHY_ADDR board config option has to be used, otherwise
    automatically the first discovered on MDIO bus phy will be used

    I believe there's no need now in "doc/README.designware_eth" because
    user only needs to instantiate the driver with "designware_initialize"
    whose prototype exists in "include/netdev.h".

    Cc: Joe Hershberger
    Cc: Vipin Kumar
    Cc: Stefan Roese
    Cc: Mischa Jonker
    Cc: Shiraz Hashim
    Cc: Albert ARIBAUD
    Cc: Amit Virdi
    Cc: Sonic Zhang
    Signed-off-by: Alexey Brodkin

    Alexey Brodkin
     

01 Nov, 2013

1 commit


24 Jul, 2013

1 commit


02 Apr, 2013

1 commit

  • 'bool' is defined in random places. This patch consolidates them into a
    single header file include/linux/types.h, using stdbool.h introduced in C99.

    All other #define, typedef and enum are removed. They are all consistent with
    true = 1, false = 0.

    Replace FALSE, False with false. Replace TRUE, True with true.
    Skip *.py, *.php, lib/* files.

    Signed-off-by: York Sun

    York Sun
     

04 Oct, 2012

1 commit

  • This patch adds support for the X600 SPEAr600 based board. Its also
    the first SPEAr600 board that uses the newly introduced SPEAr600
    SPL support. Xloader is not necessary any more. By using the new
    "u-boot.spr" make target, one image will generated containing both,
    U-Boot SPL (with mkimage header as needed by the SPEAr BootROM, and
    the main U-Boot with mkimage header.

    Signed-off-by: Stefan Roese
    Cc: Amit Virdi
    Cc: Vipin Kumar

    Stefan Roese
     

07 Jul, 2012

11 commits

  • Signed-off-by: Stefan Roese
    Cc: Amit Virdi
    Cc: Vipin Kumar

    Stefan Roese
     
  • Enable data cache with 1:1 mapping of DDR to enable fast file
    transfer over tty which was doing lot of copy.

    This feature is enabled only for flashing operation i.e. when
    CONFIG_SPEAR_USBTTY is enabled.

    This has been tested on SPEAr320, SPEAr600 and SPEAr900 evaluation
    boards.

    Following figures show an estimate on the performance improvements. The
    test setup was a Linux host (not Windows) and involved measurement of
    only binary transfer time, through kermit. The flash erase and flash
    copy time would be unaffected by these patches.

    Another thing is this that the timings remained more or less same across
    ARM9 and Cortex based devices, hence reporting only one of the cases.

    Before Enhancements
    ===================

    $ time ukermit.small -p /dev/ttyACM0 -f spear320_uImage.img
    Downloading file: 100.00% completed(2014080/2014080 bytes)
    real 0m41.228s
    user 0m0.002s
    sys 0m0.064s

    After Enhancements
    ==================

    $ time ukermit.large -p /dev/ttyACM0 -f spear320_uImage.img
    Downloading file: 100.00% completed(2014080/2014080 bytes)
    real 0m5.441s
    user 0m0.001s
    sys 0m0.001s

    Signed-off-by: Shiraz Hashim
    Signed-off-by: Amit Virdi
    Signed-off-by: Stefan Roese

    Shiraz Hashim
     
  • flash reading is required earlier than flash_init is called since the env_init
    is called before flash_init. This makes the smi_init necessary before env_init
    being called.

    Signed-off-by: Amit Virdi
    Acked-by: Stefan Roese
    Signed-off-by: Stefan Roese

    Amit Virdi
     
  • This patch adds options for all the below mentioned configurations and
    subsequently renames the include/configs/spearxxx.h files to spear3xx_evb.h,
    spear6xx_evb.h etc to depict evaluation board configuration.

    SPEAr3xx and SPEAr6xx boards can be compiled in following configurations
    1. Environment placed in NAND
    2. Console on usb device
    3. Console on usb device with environment placed in NAND
    4. SPEAr310 and SPEAr320 support environment variables in parallel
    NOR flash.

    Signed-off-by: Vipin Kumar
    Signed-off-by: Amit Virdi
    Signed-off-by: Stefan Roese

    Vipin KUMAR
     
  • Few Designware peripheral registers need to be modified based on the
    ethernet interface selected by the board. This patch supports interface
    information in ethernet driver

    Signed-off-by: Vipin Kumar
    Signed-off-by: Amit Virdi
    Signed-off-by: Stefan Roese

    Vipin Kumar
     
  • SPEAr310 and SPEAr320 SoCs have an extra ethernet controller. The
    driver for this device is already supported by u-boot, so configuring
    board configuration file and defining base addresses etc to make use
    of the common driver

    Signed-off-by: Vipin Kumar
    Signed-off-by: Amit Virdi
    Signed-off-by: Stefan Roese

    Vipin KUMAR
     
  • Signed-off-by: Vipin Kumar
    Signed-off-by: Amit Virdi
    Signed-off-by: Stefan Roese

    Vipin KUMAR
     
  • ethaddr can be optionally read from i2c memory. So, chip_config command supports
    reading/writing hw mac id into i2c memory. Placing this code within
    CONFIG_CMD_NET as this would only be needed when network interface is configured

    Signed-off-by: Vipin Kumar
    Signed-off-by: Amit Virdi
    Signed-off-by: Stefan Roese

    Vipin KUMAR
     
  • Xloader table was used primarily to inform u-boot about the DDR size. However,
    now the ddr size is calculated at runtime which eliminates any need for the
    Xloader table. So removing this unnecessary code.

    Signed-off-by: Amit Virdi
    Acked-by: Stefan Roese
    Signed-off-by: Stefan Roese

    Amit Virdi
     
  • While the u-boot code is running from the flash, it is essential that no access
    is made to the bss segment. This is due to the fact that .rel.dyn and .bss areas
    overlap and former contains information used in relocation. In SPEAr, this was
    not taken into consideration. As a result, while the relocation wasn't complete,
    dram_init populated an uninitialized global variable resulting in corruption of
    .rel.dyn area, which resulted in u-boot crash.

    This commit fixes this problem by removing code that accesses bss segment

    Signed-off-by: Amit Virdi
    Acked-by: Stefan Roese
    Signed-off-by: Stefan Roese

    Amit Virdi
     
  • Since FSMC is a standard IP and it supports different memory interfaces, it
    is supported independent of spear platform and spear is configured to use that
    driver for interfacing with the NAND device

    Signed-off-by: Vipin Kumar
    Signed-off-by: Amit Virdi
    Signed-off-by: Stefan Roese
    Acked-by: Scott Wood

    Vipin KUMAR
     

16 Oct, 2011

1 commit

  • The top level Makefile does not do any recursion into subdirs when
    cleaning, so these clean/distclean targets in random arch/board dirs
    never get used. Punt them all.

    MAKEALL didn't report any errors related to this that I could see.

    Signed-off-by: Mike Frysinger

    Mike Frysinger
     

04 Aug, 2011

1 commit