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 ...
Remove unnecessary instances of DECLARE_GLOBAL_DATA_PTRWe have a large number of places where while we historically referencedgd in the code we no longer do, as well as cases where the code added
Remove unnecessary instances of DECLARE_GLOBAL_DATA_PTRWe have a large number of places where while we historically referencedgd in the code we no longer do, as well as cases where the code addedthat line "just in case" during development and never dropped it.Signed-off-by: Tom Rini <trini@konsulko.com>
libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h>Thomas reported U-Boot failed to build host tools if libfdt-develpackage is installed because tools include libfdt headers from/us
libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h>Thomas reported U-Boot failed to build host tools if libfdt-develpackage is installed because tools include libfdt headers from/usr/include/ instead of using internal ones.This commit moves the header code: include/libfdt.h -> include/linux/libfdt.h include/libfdt_env.h -> include/linux/libfdt_env.hand replaces include directives: #include <libfdt.h> -> #include <linux/libfdt.h> #include <libfdt_env.h> -> #include <linux/libfdt_env.h>Reported-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Drop CONFIG_HAS_DATAFLASHLast user of this option went away in commit:fdc7718999 ("board: usb_a9263: Update to support DT and DM")Signed-off-by: Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi>
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: meesc: Update to support DT and DMAdd the dts files to support deivce tree, update the configurationfiles to support the device tree and driver model. The peripheralclock and pins configur
board: meesc: Update to support DT and DMAdd the dts files to support deivce tree, update the configurationfiles to support the device tree and driver model. The peripheralclock and pins configuration are handled by the clock and the pinctrldrivers respectively.Signed-off-by: Wenyou Yang <wenyou.yang@microchip.com>Reviewed-by: Simon Glass <sjg@chromium.org>
powerpc: remove 4xx supportThere was for long time no activity in the 4xx area.We need to go further and convert to Kconfig, but itturned out, nobody is interested anymore in 4xx,so remove it.
powerpc: remove 4xx supportThere was for long time no activity in the 4xx area.We need to go further and convert to Kconfig, but itturned out, nobody is interested anymore in 4xx,so remove it.Signed-off-by: Heiko Schocher <hs@denx.de>
powerpc, 5xxx, 512x: remove support for mpc5xxx and mpc512xThere was for long time no activity in the mpx5xxx area.We need to go further and convert to Kconfig, but itturned out, nobody is intere
powerpc, 5xxx, 512x: remove support for mpc5xxx and mpc512xThere was for long time no activity in the mpx5xxx area.We need to go further and convert to Kconfig, but itturned out, nobody is interested anymore in mpc5xxx,so remove it.Signed-off-by: Heiko Schocher <hs@denx.de>
arm: Include asm/setup.h explictlyInclude this header where needed so we do not need to rely on common.h.Signed-off-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>
i2c: Drop use of CONFIG_I2C_HARDThis option is pretty old. It predates CONFIG_SYS_I2C which is itselfdeprecated in favour of driver model. Disable it for all boards.Also drop I2C options which d
i2c: Drop use of CONFIG_I2C_HARDThis option is pretty old. It predates CONFIG_SYS_I2C which is itselfdeprecated in favour of driver model. Disable it for all boards.Also drop I2C options which depend on this.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 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>
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>
treewide: use #include <...> to include public headersWe are supposed to use #include <...> to include headers in thepublic include paths. We should use #include "..." only for headersin local d
treewide: use #include <...> to include public headersWe are supposed to use #include <...> to include headers in thepublic include paths. We should use #include "..." only for headersin local directories.Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>Reviewed-by: Simon Glass <sjg@chromium.org>
mtd: nand: Add+use mtd_to/from_nand and nand_get/set_controller_dataThese functions are part of the Linux 4.6 sync. They are being addedbefore the main sync patch in order to make it easier to ad
mtd: nand: Add+use mtd_to/from_nand and nand_get/set_controller_dataThese functions are part of the Linux 4.6 sync. They are being addedbefore the main sync patch in order to make it easier to address theissue across all NAND drivers (many/most of which do not closely tracktheir Linux counterparts) separately from other merge issues.Signed-off-by: Scott Wood <oss@buserror.net>
Delete tests of CONFIG_OF_LIBFDT when testing CONFIG_OF_BOARD_SETUPSince CONFIG_OF_BOARD_SETUP depends on CONFIG_OF_LIBFDT: config OF_BOARD_SETUP bool "Set up board-specific details in
Delete tests of CONFIG_OF_LIBFDT when testing CONFIG_OF_BOARD_SETUPSince CONFIG_OF_BOARD_SETUP depends on CONFIG_OF_LIBFDT: config OF_BOARD_SETUP bool "Set up board-specific details in device tree before boot" depends on OF_LIBFDT ...remove superfluous tests of CONFIG_OF_LIBFDT when testing forCONFIG_OF_BOARD_SETUP.Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>[trini: Typo fix: s/ifdefi/ifdef/]Signed-off-by: Tom Rini <trini@konsulko.com>
board: atmel: clean up peripheral clock codeDue to introducing the new peripheral clock handle functions,use these functions to reduce duplicated code.Signed-off-by: Wenyou Yang <wenyou.yang@atm
board: atmel: clean up peripheral clock codeDue to introducing the new peripheral clock handle functions,use these functions to reduce duplicated code.Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>Tested-by: Heiko Schocher <hs@denx.de>[Rebased on current master, fixup for at91rm9200ek]Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Move console definitions into a new console.h fileThe console includes a global variable and several functions that are onlyused by a small subset of U-Boot files. Before adding more functions, mo
Move console definitions into a new console.h fileThe console includes a global variable and several functions that are onlyused by a small subset of U-Boot files. Before adding more functions, movethe definitions into their own header file.Signed-off-by: Simon Glass <sjg@chromium.org>
arm: at91: reworked meesc board supportSigned-off-by: Daniel Gorsulowski <daniel.gorsulowski@esd.eu>
arm: Remove otc570 boardThis board has not been converted to generic board by the deadline.Remove it.Signed-off-by: Simon Glass <sjg@chromium.org>
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>
powerpc: remove icecube_5200, Lite5200, cpci5200, mecp5200, pf5200These boards are still non-generic boards.Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Cc: Wolfgang Denk <wd@denx.d
powerpc: remove icecube_5200, Lite5200, cpci5200, mecp5200, pf5200These boards are still non-generic boards.Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Cc: Wolfgang Denk <wd@denx.de>Cc: Reinhard Arlt <reinhard.arlt@esd-electronics.com>
ppc4xx: cleanup CPCI4052 board- remove some obsolete code- switch to generic boardSigned-off-by: Matthias Fuchs <matthias.fuchs@esd.eu>
12345678910>>...22