Convert CONFIG_SF_DEFAULT_* to KconfigThis converts the following to Kconfig: CONFIG_SF_DEFAULT_BUS CONFIG_SF_DEFAULT_CS CONFIG_SF_DEFAULT_MODE CONFIG_SF_DEFAULT_SPEEDI use moveconfig scr
Convert CONFIG_SF_DEFAULT_* to KconfigThis converts the following to Kconfig: CONFIG_SF_DEFAULT_BUS CONFIG_SF_DEFAULT_CS CONFIG_SF_DEFAULT_MODE CONFIG_SF_DEFAULT_SPEEDI use moveconfig script and then manual check on generated u-boot.cfgto solve the remaining issue.Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
show more ...
SPDX: Convert all of our multiple 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. S
SPDX: Convert all of our multiple 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 multiple licenses (inthese cases, dual license) declared in the SPDX-License-Identifier tag.In this case we change from listing "LICENSE-A LICENSE-B" or "LICENSE-Aor LICENSE-B" or "(LICENSE-A OR LICENSE-B)" to "LICENSE-A OR LICENSE-B"as per the Linux Kernel style document. Note that parenthesis areallowed so when they were used before we continue to use them.Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>Signed-off-by: Tom Rini <trini@konsulko.com>
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>
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>
powerpc: mpc85xx: Fix static TLB table for SDRAMMost predefined TLB tables don't have memory coherence bit set forSDRAM. This wasn't an issue before invalidate_dcache_range() functionwas enabled.
powerpc: mpc85xx: Fix static TLB table for SDRAMMost predefined TLB tables don't have memory coherence bit set forSDRAM. This wasn't an issue before invalidate_dcache_range() functionwas enabled. Without the coherence bit, dcache invalidation doesn'tautomatically flush the cache. The coherence bit is already set whendynamic TLB table is used. For some boards with different SPL bootmethod, or with legacy fixed setting, this bit needs to be set inTLB files.Signed-off-by: York Sun <york.sun@nxp.com>
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>