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/_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>
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>
env: Add an enum for environment stateAt present we have three states for the environment, numbered 0, 1 and 2.Add an enum to record this to avoid open-coded values.Signed-off-by: Simon Glass <s
env: Add an enum for environment stateAt present we have three states for the environment, numbered 0, 1 and 2.Add an enum to record this to avoid open-coded values.Signed-off-by: Simon Glass <sjg@chromium.org>Reviewed-by: Tom Rini <trini@konsulko.com>
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>
powerpc: Drop probecpu() in favour of arch_cpu_init()To avoid an unnecessary arch-specific call in board_init_f(), rename thisfunction.Signed-off-by: Simon Glass <sjg@chromium.org>
spi: Move freescale-specific code into a private headerAt present there are two SPI functions only used by freescale which aredefined in the spi_flash.h header. One function name matches an existi
spi: Move freescale-specific code into a private headerAt present there are two SPI functions only used by freescale which aredefined in the spi_flash.h header. One function name matches an existinggeneric SPL function.Move these into a private header to avoid confusion.Arcturus looks like it does not actually support SPI, so drop the SPI codefrom that board.Signed-off-by: Simon Glass <sjg@chromium.org>Reviewed-by: Tom Rini <trini@konsulko.com>
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>
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>
Move default y configs out of arch/board KconfigSome archs/boards specify their own default by pre-defining the configwhich causes the Kconfig system to mix up the order of the configs inthe defc
Move default y configs out of arch/board KconfigSome archs/boards specify their own default by pre-defining the configwhich causes the Kconfig system to mix up the order of the configs inthe defconfigs... This will cause merge pain if allowed to proliferate.Remove the configs that behave this way from the archs.A few configs still remain, but that is because they only exist asdefaults and do not have a proper Kconfig entry. Those appear to be:SPIFLASHDISPLAY_BOARDINFOSigned-off-by: Joe Hershberger <joe.hershberger@ni.com>[trini: rastaban, am43xx_evm_usbhost_boot, am43xx_evm_ethboot updates,drop DM_USB from MSI_Primo81 as USB_MUSB_SUNXI isn't converted yet to DM]Signed-off-by: Tom Rini <trini@konsulko.com>
powerpc/mpc85xx: Add board support for ucp1020New QorIQ p1020 based board support from Arcturus Networks Inc.http://www.arcturusnetworks.com/products/ucp1020/Signed-off-by: Michael Durrant <mdur
powerpc/mpc85xx: Add board support for ucp1020New QorIQ p1020 based board support from Arcturus Networks Inc.http://www.arcturusnetworks.com/products/ucp1020/Signed-off-by: Michael Durrant <mdurrant@arcturusnetworks.com>Signed-off-by: Oleksandr G Zhadan <oleks@arcturusnetworks.com>[York Sun: remove patman tags from commit message]Reviewed-by: York Sun <yorksun@freescale.com>