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 ...
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>
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>
socrates: Fix a misleading indentation warningWith gcc-6 and later we see a warning about the fact that we have aconstruct of "if (test);\n\tstatement". Upon reviewing the code, theintention her
socrates: Fix a misleading indentation warningWith gcc-6 and later we see a warning about the fact that we have aconstruct of "if (test);\n\tstatement". Upon reviewing the code, theintention here is as the compiler suggests, we only want to execute theindented statement if the test was true.Cc: Sergei Poselenov <sposelenov@emcraft.com>Signed-off-by: Tom Rini <trini@konsulko.com>
treewide: replace #include <asm/errno.h> with <linux/errno.h>Now, arch/${ARCH}/include/asm/errno.h and include/linux/errno.h havethe same content. (both just wrap <asm-generic/errno.h>)Replace
treewide: replace #include <asm/errno.h> with <linux/errno.h>Now, arch/${ARCH}/include/asm/errno.h and include/linux/errno.h havethe same content. (both just wrap <asm-generic/errno.h>)Replace all include directives for <asm/errno.h> with <linux/errno.h>.Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>[trini: Fixup include/clk.]Signed-off-by: Tom Rini <trini@konsulko.com>
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>
Add more SPDX-License-Identifier tagsIn a number of places we had wordings of the GPL (or LGPL in a fewcases) license text that were split in such a way that it wasn't caughtpreviously. Convert
Add more SPDX-License-Identifier tagsIn a number of places we had wordings of the GPL (or LGPL in a fewcases) license text that were split in such a way that it wasn't caughtpreviously. Convert all of these to the correct SPDX-License-Identifiertag.Signed-off-by: Tom Rini <trini@konsulko.com>
nand: Remove CONFIG_MTD_NAND_VERIFY_WRITEThe CONFIG_MTD_NAND_VERIFY_WRITE has been removed from Linux for sometime and a more generic method of NAND verification now exists in U-Boot.Signed-off-
nand: Remove CONFIG_MTD_NAND_VERIFY_WRITEThe CONFIG_MTD_NAND_VERIFY_WRITE has been removed from Linux for sometime and a more generic method of NAND verification now exists in U-Boot.Signed-off-by: Peter Tyser <ptyser@xes-inc.com>Tested-by: Heiko Schocher <hs@denx.de>Acked-by: Heiko Schocher <hs@denx.de>
fdt: Allow ft_board_setup() to report failureThis function can fail if the device tree runs out of space. Rather thansilently booting with an incomplete device tree, allow the failure to bedetect
fdt: Allow ft_board_setup() to report failureThis function can fail if the device tree runs out of space. Rather thansilently booting with an incomplete device tree, allow the failure to bedetected.Unfortunately this involves changing a lot of places in the code. I havenot changed behvaiour to return an error where one is not currentlyreturned, to avoid unexpected breakage.Eventually it would be nice to allow boards to register functions to becalled to update the device tree. This would avoid all the many functionsto do this. However it's not clear yet if this should be done using drivermodel or with a linker list. This work is left for later.Signed-off-by: Simon Glass <sjg@chromium.org>Acked-by: Anatolij Gustschin <agust@denx.de>
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>
mtd, ubi, ubifs: resync with Linux-3.14resync ubi subsystem with linux:commit 455c6fdbd219161bd09b1165f11699d6d73de11cAuthor: Linus Torvalds <torvalds@linux-foundation.org>Date: Sun Mar 30 20
mtd, ubi, ubifs: resync with Linux-3.14resync ubi subsystem with linux:commit 455c6fdbd219161bd09b1165f11699d6d73de11cAuthor: Linus Torvalds <torvalds@linux-foundation.org>Date: Sun Mar 30 20:40:15 2014 -0700 Linux 3.14A nice side effect of this, is we introduce UBI Fastmap supportto U-Boot.Signed-off-by: Heiko Schocher <hs@denx.de>Signed-off-by: Tom Rini <trini@ti.com>Cc: Marek Vasut <marex@denx.de>Cc: Sergey Lapin <slapin@ossfans.org>Cc: Scott Wood <scottwood@freescale.com>Cc: Joerg Krause <jkrause@posteo.de>
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>
Driver/DDR: combine ccsr_ddr for 83xx, 85xx and 86xxFix ccsr_ddr structure to avoid using typedef. Combine DDR2 and DDR3structure for 83xx, 85xx and 86xx.Signed-off-by: York Sun <yorksun@freesca
Driver/DDR: combine ccsr_ddr for 83xx, 85xx and 86xxFix ccsr_ddr structure to avoid using typedef. Combine DDR2 and DDR3structure for 83xx, 85xx and 86xx.Signed-off-by: York Sun <yorksun@freescale.com>
Driver/DDR: Moving Freescale DDR driver to a common driverFreescale DDR driver has been used for mpc83xx, mpc85xx, mpc86xx SoCs.The similar DDR controllers will be used for ARM-based SoCs.Signed
Driver/DDR: Moving Freescale DDR driver to a common driverFreescale DDR driver has been used for mpc83xx, mpc85xx, mpc86xx SoCs.The similar DDR controllers will be used for ARM-based SoCs.Signed-off-by: York Sun <yorksun@freescale.com>
board: powerpc: convert makefiles to Kbuild styleSigned-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Cc: Wolfgang Denk <wd@denx.de>Cc: Kim Phillips <kim.phillips@freescale.com>Cc: York Sun
board: powerpc: convert makefiles to Kbuild styleSigned-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Cc: Wolfgang Denk <wd@denx.de>Cc: Kim Phillips <kim.phillips@freescale.com>Cc: York Sun <yorksun@freescale.com>Cc: Stefan Roese <sr@denx.de>
powerpc: Fix CamelCase checkpatch warnings85xx, 86xx PowerPC folders have code variables with CamelCase naming conventions.because of this code checkpatch script generates "WARNING: Avoid CamelCas
powerpc: Fix CamelCase checkpatch warnings85xx, 86xx PowerPC folders have code variables with CamelCase naming conventions.because of this code checkpatch script generates "WARNING: Avoid CamelCase".Convert variables name to normal naming convention and modify board, driverfiles with updated the new structure.Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com>Acked-by: York Sun <yorksun@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>
8xxx: Change all 8*xx_DDR addresses to 8xxxThere were a number of shared files that were usingCONFIG_SYS_MPC85xx_DDR_ADDR, or CONFIG_SYS_MPC86xx_DDR_ADDR, andseveral variants (DDR2, DDR3). A rece
8xxx: Change all 8*xx_DDR addresses to 8xxxThere were a number of shared files that were usingCONFIG_SYS_MPC85xx_DDR_ADDR, or CONFIG_SYS_MPC86xx_DDR_ADDR, andseveral variants (DDR2, DDR3). A recent patchset added85xx-specific ones to code which was used by 86xx systems.After reviewing places where these constants were used, andnoting that the type definitions of the pointers assigned topoint to those addresses were the same, the cleanest approachto fixing this problem was to unify the namespace for the85xx, 83xx, and 86xx DDR address definitions.This patch does:s/CONFIG_SYS_MPC8.xx_DDR/CONFIG_SYS_MPC8xxx_DDR/gAll 85xx, 86xx, and 83xx have been built with this change.Signed-off-by: Andy Fleming <afleming@freescale.com>Tested-by: Andy Fleming <afleming@freescale.com>Acked-by: Kim Phillips <kim.phillips@freescale.com>
punt unused clean/distclean targetsThe top level Makefile does not do any recursion into subdirs whencleaning, so these clean/distclean targets in random arch/board dirsnever get used. Punt them
punt unused clean/distclean targetsThe top level Makefile does not do any recursion into subdirs whencleaning, so these clean/distclean targets in random arch/board dirsnever get used. Punt them all.MAKEALL didn't report any errors related to this that I could see.Signed-off-by: Mike Frysinger <vapier@gentoo.org>
PPC: Fix socrates NAND problemnand.c:36: error: static declaration of 'nand_read_buf' follows non-static declaration/home/marex/u-boot/include/nand.h:139: error: previous declaration of 'nand_read
PPC: Fix socrates NAND problemnand.c:36: error: static declaration of 'nand_read_buf' follows non-static declaration/home/marex/u-boot/include/nand.h:139: error: previous declaration of 'nand_read_buf' was hereSigned-off-by: Marek Vasut <marek.vasut@gmail.com>Cc: Scott Wood <scottwood@freescale.com>Signed-off-by: Scott Wood <scottwood@freescale.com>
Fix incorrect use of getenv() before relocationA large number of boards incorrectly used getenv() in their board initcode running before relocation. In some cases this caused U-Boot tohang when
Fix incorrect use of getenv() before relocationA large number of boards incorrectly used getenv() in their board initcode running before relocation. In some cases this caused U-Boot tohang when certain environment variables grew too long.Fix the code to use getenv_r().Signed-off-by: Wolfgang Denk <wd@denx.de>Cc: Stefan Roese <sr@denx.de>Cc: The LEOX team <team@leox.org>Cc: Michael Schwingen <michael@schwingen.org>Cc: Georg Schardt <schardt@team-ctech.de>Cc: Werner Pfister <Pfister_Werner@intercontrol.de>Cc: Dirk Eibach <eibach@gdsys.de>Cc: Peter De Schrijver <p2@mind.be>Cc: John Zhan <zhanz@sinovee.com>Cc: Rishi Bhattacharya <rishi@ti.com>Cc: Peter Tyser <ptyser@xes-inc.com>
powerpc/8xxx: Refactor fsl_ddr_get_spd into common code from boardMove fsl_ddr_get_spd into common mpc8xxx/ddr/main.c as most boardspretty much do the same thing. The only variations are in how m
powerpc/8xxx: Refactor fsl_ddr_get_spd into common code from boardMove fsl_ddr_get_spd into common mpc8xxx/ddr/main.c as most boardspretty much do the same thing. The only variations are in how manycontrollers or DIMMs per controller exist. To make this work westandardize on the names of the SPD_EEPROM_ADDRESS defines based on theuse case of the board.We allow boards to override get_spd to either do board specific fixupsto the SPD data or deal with any unique behavior of how the SPD eepromsare wired up.Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
123