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: 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>
powerpc: fsl: Update maintainersUpdate maintainers for B4860QDS, P1010RDB, P1_TWR, T104xRDB.Signed-off-by: York Sun <york.sun@nxp.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>
NXP: Introduce board/freescale/common/Kconfig and migrate CHAIN_OF_TRUSTIntroduce board/freescale/common/Kconfig so that we have a single placefor CONFIG options that are shared between ARM and Po
NXP: Introduce board/freescale/common/Kconfig and migrate CHAIN_OF_TRUSTIntroduce board/freescale/common/Kconfig so that we have a single placefor CONFIG options that are shared between ARM and PowerPC NXP platforms.Cc: York Sun <york.sun@nxp.com>Signed-off-by: Tom Rini <trini@konsulko.com>Reviewed-by: York Sun <york.sun@nxp.com>
powerpc: P1010RDB: Remove macros CONFIG_P1010RDB_PA and CONFIG_P1010RDB_PBRemove CONFIG_P1010RDB_PA and CONFIG_P1010RDB_PB and split TARGET_P1010RDBto TARGET_P1010RDB_PA and TARGET_P1010RDB_PB in
powerpc: P1010RDB: Remove macros CONFIG_P1010RDB_PA and CONFIG_P1010RDB_PBRemove CONFIG_P1010RDB_PA and CONFIG_P1010RDB_PB and split TARGET_P1010RDBto TARGET_P1010RDB_PA and TARGET_P1010RDB_PB in Kconfig.Signed-off-by: York Sun <york.sun@nxp.com>
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>
freescale: Tweak various Makefiles to remove redundancy, fix aestheticsNo intended functional change, just remove redundancies in someMakefiles, and make whitespace aesthetics uniform.Signed-off
freescale: Tweak various Makefiles to remove redundancy, fix aestheticsNo intended functional change, just remove redundancies in someMakefiles, and make whitespace aesthetics uniform.Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>Reviewed-by: York Sun <york.sun@nxp.com>
powerpc/board: SPL: Enable malloc flag in global data.For malloc to work in SPL framework enable GD_FLG_FULL_MALLOC_INITflag in global data after allocating memory using mem_malloc_init.Signed-o
powerpc/board: SPL: Enable malloc flag in global data.For malloc to work in SPL framework enable GD_FLG_FULL_MALLOC_INITflag in global data after allocating memory using mem_malloc_init.Signed-off-by: Sumit Garg <sumit.garg@nxp.com>Reviewed-by: York Sun <york.sun@nxp.com>
Use correct spelling of "U-Boot"Correct spelling of "U-Boot" shall be used in all written text(documentation, comments in source files etc.).Signed-off-by: Bin Meng <bmeng.cn@gmail.com>Reviewed
Use correct spelling of "U-Boot"Correct spelling of "U-Boot" shall be used in all written text(documentation, comments in source files etc.).Signed-off-by: Bin Meng <bmeng.cn@gmail.com>Reviewed-by: Heiko Schocher <hs@denx.de>Reviewed-by: Simon Glass <sjg@chromium.org>Reviewed-by: Minkyu Kang <mk7.kang@samsung.com>
powerpc: p1010rdb: Do not wrap pci_eth_init() with CONFIG_TSEC_ENETThe call to pci_eth_init() should not be wrapped with CONFIG_TSEC_ENET.Signed-off-by: Bin Meng <bmeng.cn@gmail.com>Acked-by: Jo
powerpc: p1010rdb: Do not wrap pci_eth_init() with CONFIG_TSEC_ENETThe call to pci_eth_init() should not be wrapped with CONFIG_TSEC_ENET.Signed-off-by: Bin Meng <bmeng.cn@gmail.com>Acked-by: Joe Hershberger <joe.hershberger@ni.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>
driver/ifc: Add 64KB page supportIFC has two register pages.Till IFC version 1.4 eachregister page is 4KB each.But IFC ver 2.0 register pagesize is 64KB each.IFC regiters structure is break into
driver/ifc: Add 64KB page supportIFC has two register pages.Till IFC version 1.4 eachregister page is 4KB each.But IFC ver 2.0 register pagesize is 64KB each.IFC regiters structure is break intotwo viz FCM and RUNTIME.FCM(Flash control machine) registersare defined in PAGE0 and controls IFC generic functionality.RUNTIME registers are defined in PAGE1 and controls NAND andGPCM funcinality.FCM and RUNTIME structures defination is common for IFCversion 1.4 and 2.0.Signed-off-by: Jaiprakash Singh <b44839@freescale.com>Signed-off-by: York Sun <yorksun@freescale.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>
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>
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>
powerpc/mpc85xx: Check return value of find_tlb_idxfind_tlb_idx() is called in board_early_init_r() on multiple boards.The return value is not checked before being used to disable a TLB.In normal
powerpc/mpc85xx: Check return value of find_tlb_idxfind_tlb_idx() is called in board_early_init_r() on multiple boards.The return value is not checked before being used to disable a TLB.In normal case the return value wouldn't be -1. In case of a mis-configuration during porting to a new board, checking the return valuemay be helpful to reveal some user errors.Signed-off-by: York Sun <yorksun@freescale.com>
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xxWith this, fixup a trivial build error of get_effective_memsize needingto be updated in the new board/freescale/p1010rdb/spl.cSigned-off-
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xxWith this, fixup a trivial build error of get_effective_memsize needingto be updated in the new board/freescale/p1010rdb/spl.cSigned-off-by: Tom Rini <trini@ti.com>
123