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 ...
net: Move enetaddr env access code to env config instead of net configIn order that we can use eth_env_* even when CONFIG_NET isn't set, movethese functions to environment code from net code.Thi
net: Move enetaddr env access code to env config instead of net configIn order that we can use eth_env_* even when CONFIG_NET isn't set, movethese functions to environment code from net code.This fixes failures such as: board/ti/am335x/built-in.o: In function `board_late_init': board/ti/am335x/board.c:752: undefined reference to `eth_env_set_enetaddr' u-boot/board/ti/am335x/board.c:766: undefined reference to `eth_env_set_enetaddr'which caters for use cases such as:commit f411b5cca48f ("board: am335x: Always set eth/eth1addr environmentvariable")when Ethernet is required in Linux, but not U-Boot.Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
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>
sh: add common dram_init() function for all boardsGeneric board support assumes a different method of specifyingDRAM size on board, also it can be shared among all boards, notablyonly sh7763rdp b
sh: add common dram_init() function for all boardsGeneric board support assumes a different method of specifyingDRAM size on board, also it can be shared among all boards, notablyonly sh7763rdp board has a custom legacy dram_init(), howeverthe difference is only in printing some additional information,this feature can be removed.Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>Reviewed-by: Simon Glass <sjg@chromium.org>
sh4: use single u-boot linker script for all boardsThree supported SH4/SH4A boards with the bootloader image stored onSPI flash have own flavour of a linker script, in turn they are equalamong ea
sh4: use single u-boot linker script for all boardsThree supported SH4/SH4A boards with the bootloader image stored onSPI flash have own flavour of a linker script, in turn they are equalamong each other. The only difference is that the text fromlowlevel_init.o is placed right after start.o, which makes sense.Note that .bss section is not marked as NOLOAD, because for about10 years this is a default option of a GNU linker, either theattribute is found or not the resulting image file is the same.Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>Reviewed-by: Simon Glass <sjg@chromium.org>
sh: Fix build errors for generic boardThis includes the following fixes:- Define needed __init_end symbol - see initr_reloc_global_data()- Drop SH-specific struct bd_info- Add an empty relocate_
sh: Fix build errors for generic boardThis includes the following fixes:- Define needed __init_end symbol - see initr_reloc_global_data()- Drop SH-specific struct bd_info- Add an empty relocate_code() functionThis prevents build errors with generic board, but the code will still needwork. Perhaps this is a better alternative than deleting the code.Signed-off-by: Simon Glass <sjg@chromium.org>
remove unnecessary version.h includesVarious files are needlessly rebuilt every time due to the version andbuild time changing. As version.h is not actually needed, remove theinclude.Signed-off
remove unnecessary version.h includesVarious files are needlessly rebuilt every time due to the version andbuild time changing. As version.h is not actually needed, remove theinclude.Signed-off-by: Rob Herring <robh@kernel.org>Cc: Albert Aribaud <albert.u.boot@aribaud.net>Cc: Stefano Babic <sbabic@denx.de>Cc: Minkyu Kang <mk7.kang@samsung.com>Cc: Marek Vasut <marex@denx.de>Cc: Tom Warren <twarren@nvidia.com>Cc: Michal Simek <monstr@monstr.eu>Cc: Macpaul Lin <macpaul@andestech.com>Cc: Wolfgang Denk <wd@denx.de>Cc: York Sun <yorksun@freescale.com>Cc: Stefan Roese <sr@denx.de>Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>Cc: Simon Glass <sjg@chromium.org>Cc: Philippe Reynes <tremyfr@yahoo.fr>Cc: Eric Jarrige <eric.jarrige@armadeus.org>Cc: "David Müller" <d.mueller@elsoft.ch>Cc: Phil Edworthy <phil.edworthy@renesas.com>Cc: Robert Baldyga <r.baldyga@samsung.com>Cc: Torsten Koschorrek <koschorrek@synertronixx.de>Cc: Anatolij Gustschin <agust@denx.de>Reviewed-by: Linus Walleij <linus.walleij@linaro.org>Reviewed-by: Łukasz Majewski <l.majewski@samsung.com>
sh: consolidate CONFIG_SYS_CPU definesNow each board selects one of CONFIG_CPU_SH2, CONFIG_CPU_SH3,CONFIG_CPU_SH4, so let's move CONFIG_SYS_CPU definition toarch/sh/Kconfig.Signed-off-by: Masah
sh: consolidate CONFIG_SYS_CPU definesNow each board selects one of CONFIG_CPU_SH2, CONFIG_CPU_SH3,CONFIG_CPU_SH4, so let's move CONFIG_SYS_CPU definition toarch/sh/Kconfig.Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Cc: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
sf: Tidy up public and private header filesSince spi_flash.h is supposed to be the public API for SPI flash, moveprivate things to sf_internal.h. Also tidy up a few comment nits.Signed-off-by: S
sf: Tidy up public and private header filesSince spi_flash.h is supposed to be the public API for SPI flash, moveprivate things to sf_internal.h. Also tidy up a few comment nits.Signed-off-by: Simon Glass <sjg@chromium.org>Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.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>
sh: convert makefiles to Kbuild styleSigned-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Cc: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.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>
Merge branch 'master' of git://git.denx.de/u-boot-armAlbert's rework of the linker scripts conflicted with Simon's makingeveryone use __bss_end. We also had a minor conflict overREADME.scrapyard
Merge branch 'master' of git://git.denx.de/u-boot-armAlbert's rework of the linker scripts conflicted with Simon's makingeveryone use __bss_end. We also had a minor conflict overREADME.scrapyard being added to in mainline and enhanced inu-boot-arm/master with proper formatting.Conflicts: arch/arm/cpu/ixp/u-boot.lds arch/arm/cpu/u-boot.lds arch/arm/lib/Makefile board/actux1/u-boot.lds board/actux2/u-boot.lds board/actux3/u-boot.lds board/dvlhost/u-boot.lds board/freescale/mx31ads/u-boot.lds doc/README.scrapyard include/configs/tegra-common.hBuild tested for all of ARM and run-time tested on am335x_evm.Signed-off-by: Tom Rini <trini@ti.com>
Replace __bss_end__ with __bss_endNote this is a tree-wide change affecting multiple architectures.At present we use __bss_start, but mostly __bss_end__. This seemsinconsistent and in a number o
Replace __bss_end__ with __bss_endNote this is a tree-wide change affecting multiple architectures.At present we use __bss_start, but mostly __bss_end__. This seemsinconsistent and in a number of places __bss_end is used instead.Change to use __bss_end for the BSS end symbol throughout U-Boot. Thismakes it possible to use the asm-generic/sections.h file on allarchs.Signed-off-by: Simon Glass <sjg@chromium.org>
Refactor linker-generated arraysRefactor linker-generated array code so that symbolswhich were previously linker-generated are now compiler-generated. This causes relocation records of typeR_ARM
Refactor linker-generated arraysRefactor linker-generated array code so that symbolswhich were previously linker-generated are now compiler-generated. This causes relocation records of typeR_ARM_ABS32 to become R_ARM_RELATIVE, which makescode which uses LGA able to run before relocation aswell as after.Note: this affects more than ARM targets, as linker-lists span possibly all target architectures, notablyPowerPC.Conflicts: arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds arch/arm/cpu/arm926ejs/spear/u-boot-spl.lds arch/arm/cpu/armv7/omap-common/u-boot-spl.lds board/ait/cam_enc_4xx/u-boot-spl.lds board/davinci/da8xxevm/u-boot-spl-da850evm.lds board/davinci/da8xxevm/u-boot-spl-hawk.lds board/vpac270/u-boot-spl.ldsSigned-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
sh: add support for sh7752evb boardThe R0P7752C00000RZ board has SH7752, 512MB DDR3-SDRAM, SPI ROM,Gigabit Ethernet, and eMMC.This patch supports the following functions: - 512MB DDR3-SDRAM, SC
sh: add support for sh7752evb boardThe R0P7752C00000RZ board has SH7752, 512MB DDR3-SDRAM, SPI ROM,Gigabit Ethernet, and eMMC.This patch supports the following functions: - 512MB DDR3-SDRAM, SCIF4, SPI ROM, Gigabit Ethernet, eMMCSigned-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>