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>
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>
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>
arch/arm, arch/powerpc: add # of SEC engines on the SOCSome SOCs, specifically the ones in the C29x familiy can havemultiple security engines. This patch adds a system configurationdefine which i
arch/arm, arch/powerpc: add # of SEC engines on the SOCSome SOCs, specifically the ones in the C29x familiy can havemultiple security engines. This patch adds a system configurationdefine which indicates the maximum number of SEC engines thatcan be found on a SoC.Signed-off-by: Alex Porosanu <alexandru.porosanu@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: c29xpcie: 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: c29xpcie: 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>
powerpc/c29xpcie: Add secure boot supportAdd NOR and SPI flash secure boot target for C29XPCIE board.Signed-off-by: Po Liu <Po.Liu@freescale.com>Signed-off-by: Mingkai.Hu <Mingkai.Hu@freescale.c
powerpc/c29xpcie: Add secure boot supportAdd NOR and SPI flash secure boot target for C29XPCIE board.Signed-off-by: Po Liu <Po.Liu@freescale.com>Signed-off-by: Mingkai.Hu <Mingkai.Hu@freescale.com>Reviewed-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>
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>
common: Add get_effective_memsize() to memsize.cThis function has been around for powerpc. It is used for systems withmemory more than CONFIG_MAX_MEM_MAPPED. In case of non-contiguous memory,this
common: Add get_effective_memsize() to memsize.cThis function has been around for powerpc. It is used for systems withmemory more than CONFIG_MAX_MEM_MAPPED. In case of non-contiguous memory,this feature can limit U-boot to one block without going over the limit.Signed-off-by: York Sun <yorksun@freescale.com>Acked-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
powerpc/mpc85xx:Increase binary size for P, B & T series boards.u-boot binary size for Freescale mpc85xx platforms is 512KB.This has been reached to upper limit for some of the platforms causigli
powerpc/mpc85xx:Increase binary size for P, B & T series boards.u-boot binary size for Freescale mpc85xx platforms is 512KB.This has been reached to upper limit for some of the platforms causiglinker error.So, Increase the u-boot binary size to 768KB.Signed-off-by: York Sun <yorksun@freescale.com>Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com>
powerpc/c29xpcie: 8k page size NAND boot support base on TPL/SPLUsing the TPL/SPL method to booting from 8k page NAND flash. - Add 256kB size SRAM tlb for second step booting; - Add spl.c for TPL
powerpc/c29xpcie: 8k page size NAND boot support base on TPL/SPLUsing the TPL/SPL method to booting from 8k page NAND flash. - Add 256kB size SRAM tlb for second step booting; - Add spl.c for TPL image boot; - Add spl_minimal.c for minimal SPL image; - Add C29XPCIE_NAND configure; - Modify C29XPCIE.h for nand config and enviroment;Signed-off-by: Po Liu <Po.Liu@freescale.com>Reviewed-by: York Sun <yorksun@freescale.com>
powerpc/c29xpcie: Getting DDR SPD image from 16-bit sub-address EEPROMCurrently, there is only one EEPROM on c29xpcie board which is AT24C1024.We program the SPD data at beginning of the AT24C1024
powerpc/c29xpcie: Getting DDR SPD image from 16-bit sub-address EEPROMCurrently, there is only one EEPROM on c29xpcie board which is AT24C1024.We program the SPD data at beginning of the AT24C1024.But the AT24C1024has a 16-bit sub-address mode. This patch is tomake it work when gettingSPD in a 16-bit sub-address EEPROM.Signed-off-by: Po Liu <Po.Liu@freescale.com>Acked-by: York Sun <yorksun@freescale.com>
12