UPSTREAM: 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 header
UPSTREAM: 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>Change-Id: I6c0f7e50e8b571106627f25ddac008a62bd2994eReported-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
show more ...
env: Rename some other getenv()-related functionsWe are now using an env_ prefix for environment functions. Rename theseother functions as well, for consistency: getenv_vlan() getenv_bootm_
env: Rename some other getenv()-related functionsWe are now using an env_ prefix for environment functions. Rename theseother functions as well, for consistency: getenv_vlan() getenv_bootm_size() getenv_bootm_low() getenv_bootm_mapsize() env_get_default()Suggested-by: Wolfgang Denk <wd@denx.de>Signed-off-by: Simon Glass <sjg@chromium.org>
env: Rename getenv_hex(), getenv_yesno(), getenv_ulong()We are now using an env_ prefix for environment functions. Rename thesefor consistency. Also add function comments in common.h.Suggested-b
env: Rename getenv_hex(), getenv_yesno(), getenv_ulong()We are now using an env_ prefix for environment functions. Rename thesefor consistency. Also add function comments in common.h.Suggested-by: Wolfgang Denk <wd@denx.de>Signed-off-by: Simon Glass <sjg@chromium.org>
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>
controlcenterd_36BIT_SDCARD: Fix unused variable warningOn the controlcenterd_36BIT_SDCARD config we get a warning aboutprg_stage1_prepare being unused. Move the declaration closer to usageand h
controlcenterd_36BIT_SDCARD: Fix unused variable warningOn the controlcenterd_36BIT_SDCARD config we get a warning aboutprg_stage1_prepare being unused. Move the declaration closer to usageand hide under the existing #if tests.Cc: Dirk Eibach <eibach@gdsys.de>Signed-off-by: Tom Rini <trini@konsulko.com>
gdsys: P1022: Fix unused variable warningsThe variables prg_stage2_prepare, prg_stage2_success and prg_stage_failare only referenced when CCDM_SECOND_STAGE is set, move these to be bythe existing
gdsys: P1022: Fix unused variable warningsThe variables prg_stage2_prepare, prg_stage2_success and prg_stage_failare only referenced when CCDM_SECOND_STAGE is set, move these to be bythe existing guard.Cc: Dirk Eibach <eibach@gdsys.de>Signed-off-by: Tom Rini <trini@konsulko.com>
lib: tpm: Add command to flush resourcesThis patch adds a function to the TPM library, which allows U-Boot toflush resources, e.g. keys, from the TPM.Signed-off-by: Mario Six <mario.six@gdsys.cc
lib: tpm: Add command to flush resourcesThis patch adds a function to the TPM library, which allows U-Boot toflush resources, e.g. keys, from the TPM.Signed-off-by: Mario Six <mario.six@gdsys.cc>Reviewed-by: Stefan Roese <sr@denx.de>Reviewed-by: Simon Glass <sjg@chromium.org>Signed-off-by: Stefan Roese <sr@denx.de>
usb: fsl: Rename fdt_fixup_dr_usbThe function fdt_fixup_dr_usb is specific to fsl/nxp. So,make the function name explicit and rename fdt_fixup_dr_usbinto fsl_fdt_fixup_dr_usb.Signed-off-by: Sri
usb: fsl: Rename fdt_fixup_dr_usbThe function fdt_fixup_dr_usb is specific to fsl/nxp. So,make the function name explicit and rename fdt_fixup_dr_usbinto fsl_fdt_fixup_dr_usb.Signed-off-by: Sriram Dash <sriram.dash@nxp.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>
block: pass block dev not num to read/write/erase()This will allow the implementation to make use of data in the block_devstructure beyond the base device number. This will be useful so that eMMC
block: pass block dev not num to read/write/erase()This will allow the implementation to make use of data in the block_devstructure beyond the base device number. This will be useful so that eMMCblock devices can encompass the HW partition ID rather than treating thisout-of-band. Equally, the existence of the priv field is crying out forthis patch to exist.Signed-off-by: Stephen Warren <swarren@nvidia.com>Reviewed-by: Tom Rini <trini@konsulko.com>
controlcenterd: Disable sideband clocksSigned-off-by: Dirk Eibach <dirk.eibach@gdsys.cc>
Various Makefiles: Add SPDX-License-Identifier tagsAfter consulting with some of the SPDX team, the conclusion is thatMakefiles are worth adding SPDX-License-Identifier tags too, and most ofours
Various Makefiles: Add SPDX-License-Identifier tagsAfter consulting with some of the SPDX team, the conclusion is thatMakefiles are worth adding SPDX-License-Identifier tags too, and most ofours have one. This adds tags to ones that lack them and converts a fewthat had full (or in one case, very partial) license blobs into theequivalent tag.Cc: Kate Stewart <kstewart@linuxfoundation.org>Signed-off-by: Tom Rini <trini@konsulko.com>
Merge git://git.denx.de/u-boot-fdt
fs: API changes enabling extra parameter to return size of type loff_tThe sandbox/ext4/fat/generic fs commands do not gracefully deal with filesgreater than 2GB. Negative values are returned in su
fs: API changes enabling extra parameter to return size of type loff_tThe sandbox/ext4/fat/generic fs commands do not gracefully deal with filesgreater than 2GB. Negative values are returned in such cases.To handle this, the fs functions have been modified to take an additionalparameter of type "* loff_t" which is then populated. The return valueof the fs functions are used only for error conditions.Signed-off-by: Suriyan Ramasami <suriyan.r@gmail.com>Acked-by: Simon Glass <sjg@chromium.org>[trini: Update board/gdsys/p1022/controlcenterd-id.c,drivers/fpga/zynqpl.c for changes]Signed-off-by: Tom Rini <trini@ti.com>
linux/kernel.h: sync min, max, min3, max3 macros with LinuxU-Boot has never cared about the type when we get max/min of twovalues, but Linux Kernel does. This commit gets min, max, min3, max3mac
linux/kernel.h: sync min, max, min3, max3 macros with LinuxU-Boot has never cared about the type when we get max/min of twovalues, but Linux Kernel does. This commit gets min, max, min3, max3macros synced with the kernel introducing type checks.Many of references of those macros must be fixed to suppress warnings.We have two options: - Use min, max, min3, max3 only when the arguments have the same type (or add casts to the arguments) - Use min_t/max_t instead with the appropriate type for the first argumentSigned-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Acked-by: Pavel Machek <pavel@denx.de>Acked-by: Lukasz Majewski <l.majewski@samsung.com>Tested-by: Lukasz Majewski <l.majewski@samsung.com>[trini: Fixup arch/blackfin/lib/string.c]Signed-off-by: Tom Rini <trini@ti.com>
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>
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>
board: controlcenterd: Use new API for setting i2c busSigned-off-by: Dirk Eibach <dirk.eibach@gdsys.cc>
board: gdsys: Adapt sdhc_boot.c to mmc_get_env_addr API changeSigned-off-by: Dirk Eibach <dirk.eibach@gdsys.cc>
board: controlcenterd: Fix pci accessreadl was called with values instead of pointers to these values.Why this ever did work is a mystery...Signed-off-by: Dirk Eibach <dirk.eibach@gdsys.cc>
includes: move openssl headers to include/u-bootcommit 18b06652cd "tools: include u-boot version of sha256.h"unconditionally forced the sha256.h from u-boot to be usedfor tools instead of the hos
includes: move openssl headers to include/u-bootcommit 18b06652cd "tools: include u-boot version of sha256.h"unconditionally forced the sha256.h from u-boot to be usedfor tools instead of the host version. This is fragile thoughas it will also include the host version. Therefore move itto include/u-boot to join u-boot/md5.h etc which were renamedfor the same reason.cc: Simon Glass <sjg@chromium.org>Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
Check run_command() return code properlyrun_command() returns 0 for success, 1 for failure. Fix places whichassume that failure is indicated by a negative return code.Signed-off-by: Thomas Betke
Check run_command() return code properlyrun_command() returns 0 for success, 1 for failure. Fix places whichassume that failure is indicated by a negative return code.Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com>Acked-by: Simon Glass <sjg@chromium.org>Tested-by: Simon Glass <sjg@chromium.org>Tested-by: Stefan Roese <sr@denx.de>
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>
12