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 ...
env: Rename getenv/_f() to env_get()We are now using an env_ prefix for environment functions. Rename thesetwo functions for consistency. Also add function comments in common.h.Quite a few place
env: Rename getenv/_f() to env_get()We are now using an env_ prefix for environment functions. Rename thesetwo functions for consistency. Also add function comments in common.h.Quite a few places use getenv() in a condition context, provoking awarning from checkpatch. These are fixed up in this patch also.Suggested-by: Wolfgang Denk <wd@denx.de>Signed-off-by: Simon Glass <sjg@chromium.org>
board_f: Rename initdram() to dram_init()This allows us to use the same DRAM init function on all archs. Add adummy function for arc, which does not use DRAM init here.Signed-off-by: Simon Glass
board_f: Rename initdram() to dram_init()This allows us to use the same DRAM init function on all archs. Add adummy function for arc, which does not use DRAM init here.Signed-off-by: Simon Glass <sjg@chromium.org>[trini: Dummy function on nios2]Signed-off-by: Tom Rini <trini@konsulko.com>
board_f: Drop return value from initdram()At present we cannot use this function as an init sequence call without awrapper, since it returns the RAM size. Adjust it to set the RAM size inglobal_d
board_f: Drop return value from initdram()At present we cannot use this function as an init sequence call without awrapper, since it returns the RAM size. Adjust it to set the RAM size inglobal_data instead, and return 0 on success.Signed-off-by: Simon Glass <sjg@chromium.org>Reviewed-by: Stefan Roese <sr@denx.de>
board_f: Drop board_type parameter from initdram()It looks like only cm5200 and tqm8xx use this feature, so we don't reallyneed it in generic code. Drop it and have the users access gd->board_type
board_f: Drop board_type parameter from initdram()It looks like only cm5200 and tqm8xx use this feature, so we don't reallyneed it in generic code. Drop it and have the users access gd->board_typedirectly.Signed-off-by: Simon Glass <sjg@chromium.org>Reviewed-by: Stefan Roese <sr@denx.de>
status_led: Kconfig migrationMove all of the status LED feature to drivers/led/Kconfig.The LED status definitions were moved from the board configurationfiles to the defconfig files.TBD: Move a
status_led: Kconfig migrationMove all of the status LED feature to drivers/led/Kconfig.The LED status definitions were moved from the board configurationfiles to the defconfig files.TBD: Move all of the definitions in the include/status_led.h to therelevant board's defconfig files.Tested boards: CL-SOM-AM57x, CM-T335Signed-off-by: Uri Mashiach <uri.mashiach@compulab.co.il>
arm: Remove vl_ma2sc boardThis board has not been converted to generic board by the deadline.Remove it.Signed-off-by: Simon Glass <sjg@chromium.org>
arm: Remove eb_cpu9k2 and eb_cpu9k2_ram boardsThese board have not been converted to generic board by the deadline.Remove them.Signed-off-by: Simon Glass <sjg@chromium.org>
m68k: add architecture-specific u-boot.ldsAdd architecture-specific u-boot.lds and remove all board-specificu-boot.lds.All the .text customization that was board-specific have beenmoved inside
m68k: add architecture-specific u-boot.ldsAdd architecture-specific u-boot.lds and remove all board-specificu-boot.lds.All the .text customization that was board-specific have beenmoved inside the related include/configs, inside aLDS_BOARD_TEXT define.Signed-off-by: Angelo Dureghello <angelo@sysam.it>
net: Remove the bd* parameter from net stack functionsThis value is not used by the network stack and is available in theglobal data, so stop passing it around. For the one legacy functionthat s
net: Remove the bd* parameter from net stack functionsThis value is not used by the network stack and is available in theglobal data, so stop passing it around. For the one legacy functionthat still expects it (init op on old Ethernet drivers) pass in theglobal pointer version directly to avoid changing that interface.Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>Reported-by: Simon Glass <sjg@chromium.org>Reviewed-by: Simon Glass <sjg@chromium.org>Signed-off-by: Simon Glass <sjg@chromium.org>(Trival fix to remove an unneeded variable declaration in 4xx_enet.c)
ARM: at91: move board select menu and common settingsThe board select menu in arch/arm/Kconfig is still big.To slim down it, this commit moves AT91 boards toarch/arm/mach-at91/Kconfig.Also, cons
ARM: at91: move board select menu and common settingsThe board select menu in arch/arm/Kconfig is still big.To slim down it, this commit moves AT91 boards toarch/arm/mach-at91/Kconfig.Also, consolidate "config SYS_SOC" in each board Kconfig.The Kconfig files under board/ directory were modified with thefollowing command: find board -name Kconfig | xargs sed -i -e ' /config SYS_SOC/ { N /default "at91"/ { N d } } 'Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Acked-by: Andreas Bießmann <andreas.devel@googlemail.co>
Export redesignthis is an atempt to make the export of functions typesafe.I replaced the jumptable void ** by a struct (jt_funcs) with function pointers.The EXPORT_FUNC macro now has 3 fixed para
Export redesignthis is an atempt to make the export of functions typesafe.I replaced the jumptable void ** by a struct (jt_funcs) with function pointers.The EXPORT_FUNC macro now has 3 fixed parameters and onevariadic parameterThe first is the name of the exported function,the rest of the parameters are used to format a functionpointerin the jumptable,the EXPORT_FUNC macros are expanded three times,1. to declare the members of the struct2. to initialize the structmember pointers3. to call the functions in stubs.cSigned-off-by: Martin Dorwig <dorwig@tetronik.com>Acked-by: Simon Glass <sjg@chromium.org>Signed-off-by: Simon Glass <sjg@chromium.org>(resending to the list since my tweaks are not quite trivial)
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>
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>
sizes.h - consolidate for all architecturesCopied from Linux sources "include/linux/sizes.h" commit413541dd66d51f791a0b169d9b9014e4f56be13cSigned-off-by: Alexey Brodkin <abrodkin@synopsys.com>
sizes.h - consolidate for all architecturesCopied from Linux sources "include/linux/sizes.h" commit413541dd66d51f791a0b169d9b9014e4f56be13cSigned-off-by: Alexey Brodkin <abrodkin@synopsys.com>Cc: Vineet Gupta <vgupta@synopsys.com>Cc: Tom Rini <trini@ti.com>Cc: Stefan Roese <sr@denx.de>Cc: Albert Aribaud <albert.u.boot@aribaud.net>Acked-by: Tom Rini <trini@ti.com>Acked-by: Stefan Roese <sr@denx.de>[trini: Add bcm Kona platforms to the patch]Signed-off-by: Tom Rini <trini@ti.com>
at91: nand: switch atmel_nand to generic GPIO APISigned-off-by: Andreas Bießmann <andreas.devel@googlemail.com>Acked-by: Jens Scharsig (BuS Elektronik)<esw@bus-elektronik.de>Tested-by: Jens Schar
at91: nand: switch atmel_nand to generic GPIO APISigned-off-by: Andreas Bießmann <andreas.devel@googlemail.com>Acked-by: Jens Scharsig (BuS Elektronik)<esw@bus-elektronik.de>Tested-by: Jens Scharsig (BuS Elektronik)<esw@bus-elektronik.de>Acked-by: Scott Wood <scottwood@freescale.com>
arm926ejs, at91: add common phy_reset functionadd common phy reset code into a common function.Signed-off-by: Heiko Schocher <hs@denx.de>Cc: Andreas Bießmann <andreas.devel@googlemail.com>Cc: B
arm926ejs, at91: add common phy_reset functionadd common phy reset code into a common function.Signed-off-by: Heiko Schocher <hs@denx.de>Cc: Andreas Bießmann <andreas.devel@googlemail.com>Cc: Bo Shen <voice.shen@atmel.com>Cc: Jens Scharsig <esw@bus-elektronik.de>Cc: Sergey Lapin <slapin@ossfans.org>Cc: Stelian Pop <stelian@popies.net>Cc: Albin Tonnerre <albin.tonnerre@free-electrons.com>Cc: Eric Benard <eric@eukrea.com>Cc: Markus Hubig <mhubig@imko.de>Acked-by: Jens Scharsig (BuS Elektronik) <esw@bus-elektronik.de>Tested-by: Jens Scharsig (BuS Elektronik) <esw@bus-elektronik.de>Tested-by: Bo Shen <voice.shen@atmel.com>Acked-by: Bo Shen <voice.shen@atmel.com>Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.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>
m68k: convert makefiles to Kbuild styleSigned-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Cc: Jason Jin <Jason.jin@freescale.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>
i2c, soft-i2c: switch to new multibus/multiadapter support- added to soft_i2c driver new multibus/multiadpater support- adapted all config files, which uses this driverSigned-off-by: Heiko Schoc
i2c, soft-i2c: switch to new multibus/multiadapter support- added to soft_i2c driver new multibus/multiadpater support- adapted all config files, which uses this driverSigned-off-by: Heiko Schocher <hs@denx.de>Cc: Simon Glass <sjg@chromium.org>Cc: Stephen Warren <swarren@wwwdotorg.org>
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>
123