SPDX: Convert all of our single license tags to Linux Kernel styleWhen U-Boot started using SPDX tags we were among the early adopters andthere weren't a lot of other examples to borrow from. So
SPDX: Convert all of our single license tags to Linux Kernel styleWhen U-Boot started using SPDX tags we were among the early adopters andthere weren't a lot of other examples to borrow from. So we picked thearea of the file that usually had a full license text and replaced itwith an appropriate SPDX-License-Identifier: entry. Since then, theLinux Kernel has adopted SPDX tags and they place it as the very firstline 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 visibilityand in part for other minor reasons, switch over to that style.This commit changes all instances where we have a single declaredlicense in the tag as both the before and after are identical in tagcontents. There's also a few places where I found we did not have a tagand have introduced one.Signed-off-by: Tom Rini <trini@konsulko.com>
show more ...
build: Drop CONFIG_SPL_BUILD guards in some casesGiven gcc-6.1 and later we can now safely have strings discarded whenthe functions are unused. This lets us drop certain cases of notbuilding som
build: Drop CONFIG_SPL_BUILD guards in some casesGiven gcc-6.1 and later we can now safely have strings discarded whenthe functions are unused. This lets us drop certain cases of notbuilding something so that we don't have the strings brought in when thecode was discarded. Simplify the code now by dropping guards we don'tneed now.Cc: Stefano Babic <sbabic@denx.de>Cc: Fabio Estevam <fabio.estevam@nxp.com>Cc: Chander Kashyap <k.chander@samsung.com>Cc: Thomas Abraham <thomas.ab@samsung.com>Cc: Vipin Kumar <vipin.kumar@st.com>Cc: Wenyou Yang <wenyou.yang@microchip.com>Signed-off-by: Tom Rini <trini@konsulko.com>
board/spear/common: move code to arch/arm/cpu/arm926ejs/spear/The code in board/spear/common/ is not board-specific butSoC-specific. Therefore, boards from other vendors than "spear" maywant to r
board/spear/common: move code to arch/arm/cpu/arm926ejs/spear/The code in board/spear/common/ is not board-specific butSoC-specific. Therefore, boards from other vendors than "spear" maywant to re-use this code, which is currently difficult with the codebeing placed in board/spear/common/.Since this code really is SoC-specific, this commit moves it toarch/arm/cpu/arm926ejs/spear/, with the rest of the SPEAr relatedcode.Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
env: Rename eth_getenv_enetaddr() to eth_env_get_enetaddr()Rename this function for consistency with env_get().Signed-off-by: Simon Glass <sjg@chromium.org>
env: Rename eth_setenv_enetaddr() to eth_env_set_enetaddr()Rename this function for consistency with env_set().Signed-off-by: Simon Glass <sjg@chromium.org>
env: Rename setenv() to env_set()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 <wd
env: Rename setenv() to env_set()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 <wd@denx.de>Signed-off-by: Simon Glass <sjg@chromium.org>
spl: add hierarchical defaults for SPL_LDSCRIPTWith SPL_LDSCRIPT moved to Kconfig (and this being a 'string' confignode), all the lingering definitions in header files will causewarnings/errors d
spl: add hierarchical defaults for SPL_LDSCRIPTWith SPL_LDSCRIPT moved to Kconfig (and this being a 'string' confignode), all the lingering definitions in header files will causewarnings/errors due to the redefinition of the configuration item.As we don't want to pollute the defconfig files (and values shouldusually be identical for entire architectures), the defaults are movedinto Kconfig. Kconfig will always pick the first default thatmatches, so please keep these values at the end of each file (to allowany board-specific Kconfig, which will be included earlier) tooverride with an unconditional default setting.Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>Reviewed-by: Simon Glass <sjg@chromium.org>
arm: Add explicit include of <asm/mach-types.h>Rather than relying on common.h to provide this include, which is goingaway at some point, include it explicitly in each file.Signed-off-by: Simon
arm: Add explicit include of <asm/mach-types.h>Rather than relying on common.h to provide this include, which is goingaway at some point, include it explicitly in each file.Signed-off-by: Simon Glass <sjg@chromium.org>Reviewed-by: Tom Rini <trini@konsulko.com>
board_f: Drop setup_dram_config() wrapperBy making dram_init_banksize() return an error code we can drop thewrapper. Adjust this and clean up all implementations.Signed-off-by: Simon Glass <sjg@
board_f: Drop setup_dram_config() wrapperBy making dram_init_banksize() return an error code we can drop thewrapper. Adjust this and clean up all implementations.Signed-off-by: Simon Glass <sjg@chromium.org>Reviewed-by: Stefan Roese <sr@denx.de>
arm: spear: x600: Add support for Micrel KSZ9031 PHYAs the old ethernet PHY is not available any more, the x600 board hasbeen redesigned with the Micrel KSZ9031 PHY. This patch adds supportto aut
arm: spear: x600: Add support for Micrel KSZ9031 PHYAs the old ethernet PHY is not available any more, the x600 board hasbeen redesigned with the Micrel KSZ9031 PHY. This patch adds supportto autodetect the PHY and configure the Micrel PHY correctly.Signed-off-by: Stefan Roese <sr@denx.de>
net: designware: Zap CONFIG_DW_AUTONEGThis symbol is not used anywhere, so remove it. For spear600, removeit from the board file, since the symbol is not defined for spear600either.Signed-off-b
net: designware: Zap CONFIG_DW_AUTONEGThis symbol is not used anywhere, so remove it. For spear600, removeit from the board file, since the symbol is not defined for spear600either.Signed-off-by: Marek Vasut <marex@denx.de>Cc: Dinh Nguyen <dinguyen@opensource.altera.com>Cc: Joe Hershberger <joe.hershberger@ni.com>
arm: spear: Fix booting - relocate vector table to 0 (low-vector)Booting SPEAr600 eval board doesn't work with current mainline U-Boot. Withthis patch the low-vector bit is left to '0'. Resulting
arm: spear: Fix booting - relocate vector table to 0 (low-vector)Booting SPEAr600 eval board doesn't work with current mainline U-Boot. Withthis patch the low-vector bit is left to '0'. Resulting in the commonrelocation of the vectors to 0 (SDRAM) to work correctly.Tested on the SPEAr600 EVB.Signed-off-by: Stefan Roese <sr@denx.de>Acked-by: Viresh Kumar <viresh.kumar@linaro.org>Cc: Vipin Kumar <vk.vipin@gmail.com>
Kconfig: Move CONFIG_DESIGNWARE_ETH to KconfigMove this to Kconfig and clean up board config files that use it. Alsorename it to CONFIG_ETH_DESIGNWARE to fit with the naming that existsin drivers
Kconfig: Move CONFIG_DESIGNWARE_ETH to KconfigMove this to Kconfig and clean up board config files that use it. Alsorename it to CONFIG_ETH_DESIGNWARE to fit with the naming that existsin drivers/net/Kconfig.Signed-off-by: Simon Glass <sjg@chromium.org>Version 1:Acked-by: Joe Hershberger <joe.hershberger@ni.com>
kconfig: arm: introduce symbol for ARM CPUsThis 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
kconfig: arm: introduce symbol for ARM CPUsThis 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 selectedfor CPU_ARM1176 and CPU_V7.For each target, the corresponding CPU is selected and the definition ofSYS_CPU in the corresponding Kconfig file is removed.Also, it removes redundant "string" type in some Kconfig files.Signed-off-by: Georges Savoundararadj <savoundg@gmail.com>Acked-by: Albert ARIBAUD <albert.u.boot@aribaud.net>Cc: Masahiro Yamada <yamada.m@jp.panasonic.com>
MAINTAINERS: comment out blank M: fieldSince commit ddaf5c8f3030050fcd356a1e49e3ee8f8f52c6d4(patman: RunPipe() should not pipe stdout/stderr unless asked),Patman spits lots of "Invalid MAINTAINER
MAINTAINERS: comment out blank M: fieldSince 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 assigninga 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 <yamada.m@jp.panasonic.com>
kconfig: remove redundant "string" type in arch and board KconfigsNow the types of CONFIG_SYS_{ARCH, CPU, SOC, VENDOR, BOARD, CONFIG_NAME}are specified in arch/Kconfig.We can delete the ones in
kconfig: remove redundant "string" type in arch and board KconfigsNow 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 <yamada.m@jp.panasonic.com>
Add board MAINTAINERS filesWe have switched to Kconfig and the boards.cfg file is going tobe removed. We have to retrieve the board status and maintainersinformation from it.The MAINTAINERS for
Add board MAINTAINERS filesWe have switched to Kconfig and the boards.cfg file is going tobe removed. We have to retrieve the board status and maintainersinformation from it.The MAINTAINERS format as in Linux Kernel would be nicebecause we can crib the scripts/get_maintainer.pl script.After some discussion, we chose to put a MAINTAINERS file under eachboard directory, not the top-level one because we want to collectrelevant information for a board into a single place.TODO:Modify get_maintainer.pl to scan multiple MAINTAINERS files.Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Suggested-by: Tom Rini <trini@ti.com>Acked-by: Simon Glass <sjg@chromium.org>
kconfig: add board Kconfig and defconfig filesThis commit adds: - arch/${ARCH}/Kconfig provide a menu to select target boards - board/${VENDOR}/${BOARD}/Kconfig or board/${BOARD}/Kconfig
kconfig: add board Kconfig and defconfig filesThis 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 scriptbased on boards.cfg)In Linux Kernel, defconfig files are located underarch/${ARCH}/configs/ directory.It works in Linux Kernel since ARCH is always given from thecommand 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 asingle directory ./configs/.Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Acked-by: Simon Glass <sjg@chromium.org>
fpga: xilinx: Avoid CamelCase for in Xilinx_descNo functional changes.Signed-off-by: Michal Simek <michal.simek@xilinx.com>
fpga: spartan3: Avoid CamelCaseNo functional changes.Signed-off-by: Michal Simek <michal.simek@xilinx.com>
kbuild: add dummy obj-y to create built-in.oWe are going to switch over to Kbuild in upcoming commits.Each makefile must have non-empty obj- or obj-yto generate built-in.o on Kbuild.Signed-off
kbuild: add dummy obj-y to create built-in.oWe are going to switch over to Kbuild in upcoming commits.Each makefile must have non-empty obj- or obj-yto generate built-in.o on Kbuild.Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
net/designware - switch driver to phylib usageWith this change driver will benefit from existing phylib and thuscustom phy functionality implemented in the driver will go away: * Instantiation of
net/designware - switch driver to phylib usageWith this change driver will benefit from existing phylib and thuscustom phy functionality implemented in the driver will go away: * Instantiation of the driver is now much shorter - 2 parametersinstead of 4. * Simplified phy management/functoinality in driver is replaced withrich 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 simplysubstituted with similar options of phylib.For example: * CONFIG_DW_AUTONEG - no need in this one. Autonegotiation is enabledby default. * CONFIG_DW_SEARCH_PHY - if one wants to specify attached phyexplicitly CONFIG_PHY_ADDR board config option has to be used, otherwiseautomatically the first discovered on MDIO bus phy will be usedI believe there's no need now in "doc/README.designware_eth" becauseuser only needs to instantiate the driver with "designware_initialize"whose prototype exists in "include/netdev.h".Cc: Joe Hershberger <joe.hershberger@ni.com>Cc: Vipin Kumar <vipin.kumar@st.com>Cc: Stefan Roese <sr@denx.de>Cc: Mischa Jonker <mjonker@synopsys.com>Cc: Shiraz Hashim <shiraz.hashim@st.com>Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>Cc: Amit Virdi <amit.virdi@st.com>Cc: Sonic Zhang <sonic.zhang@analog.com>Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
board: arm: convert makefiles to Kbuild styleSigned-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>Cc: Andreas Bießmann <andreas.devel@googlemail
board: arm: convert makefiles to Kbuild styleSigned-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>Cc: Andreas Bießmann <andreas.devel@googlemail.com>Cc: Stefano Babic <sbabic@denx.de>Cc: Prafulla Wadaskar <prafulla@marvell.com>Cc: Minkyu Kang <mk7.kang@samsung.com>Cc: Vipin Kumar <vipin.kumar@st.com>Cc: Tom Warren <twarren@nvidia.com>Cc: Tom Rini <trini@ti.com>
Add GPL-2.0+ SPDX-License-Identifier to source filesSigned-off-by: Wolfgang Denk <wd@denx.de>[trini: Fixup common/cmd_io.c]Signed-off-by: Tom Rini <trini@ti.com>
Consolidate bool type'bool' is defined in random places. This patch consolidates them into asingle header file include/linux/types.h, using stdbool.h introduced in C99.All other #define, typedef
Consolidate bool type'bool' is defined in random places. This patch consolidates them into asingle header file include/linux/types.h, using stdbool.h introduced in C99.All other #define, typedef and enum are removed. They are all consistent withtrue = 1, false = 0.Replace FALSE, False with false. Replace TRUE, True with true.Skip *.py, *.php, lib/* files.Signed-off-by: York Sun <yorksun@freescale.com>
123