linker: Modify linker scripts to be more genericMake use of "IMAGE_MAX_SIZE" and "IMAGE_TEXT_BASE" rather thanCONFIG_SPL_MAX_SIZE and CONFIG_SPL_TEXT_BASE. This lets us re-use thesame script for
linker: Modify linker scripts to be more genericMake use of "IMAGE_MAX_SIZE" and "IMAGE_TEXT_BASE" rather thanCONFIG_SPL_MAX_SIZE and CONFIG_SPL_TEXT_BASE. This lets us re-use thesame script for both SPL and TPL. Add logic to scripts/Makefile.spl topass in the right value when preprocessing the script.Cc: Stefano Babic <sbabic@denx.de>Cc: Fabio Estevam <fabio.estevam@nxp.com>Cc: Jagan Teki <jagan@openedev.com>Cc: Maxime Ripard <maxime.ripard@bootlin.com>Cc: Andreas Bießmann <andreas@biessmann.org>Cc: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>Cc: Michal Simek <monstr@monstr.eu>Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>Cc: York Sun <york.sun@nxp.com>Cc: Bin Meng <bmeng.cn@gmail.com>Cc: Heiko Schocher <hs@denx.de>Cc: Adam Ford <aford173@gmail.com>Signed-off-by: Tom Rini <trini@konsulko.com>Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>Tested-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>Tested-by: Adam Ford <aford173@gmail.com> #da850evm & omap3_logic_somlvReviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
show more ...
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>
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>
arm: Add explicit include of <asm/mach-types.h>Rather than relying on common.h to provide this include, which is goingaway at some point, include it explicitly in each file.Signed-off-by: Simon
arm: Add explicit include of <asm/mach-types.h>Rather than relying on common.h to provide this include, which is goingaway at some point, include it explicitly in each file.Signed-off-by: Simon Glass <sjg@chromium.org>Reviewed-by: Tom Rini <trini@konsulko.com>
Remove various unused interrupt related codeWith d53ecad92f06 some unused interrupt related code was removed.However all of these options are currently unused. Rather than migratesome of these o
Remove various unused interrupt related codeWith d53ecad92f06 some unused interrupt related code was removed.However all of these options are currently unused. Rather than migratesome of these options to Kconfig we just remove the code in question.The only related code changes here are that in some cases we useCONFIG_STACKSIZE in non-IRQ related context. In these cases we renameand move the value local to the code in question.Fixes: d53ecad92f06 ("Merge branch 'master' of git://git.denx.de/u-boot-sunxi")Signed-off-by: Tom Rini <trini@konsulko.com>
treewide: replace #include <asm/errno.h> with <linux/errno.h>Now, arch/${ARCH}/include/asm/errno.h and include/linux/errno.h havethe same content. (both just wrap <asm-generic/errno.h>)Replace
treewide: replace #include <asm/errno.h> with <linux/errno.h>Now, arch/${ARCH}/include/asm/errno.h and include/linux/errno.h havethe same content. (both just wrap <asm-generic/errno.h>)Replace all include directives for <asm/errno.h> with <linux/errno.h>.Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>[trini: Fixup include/clk.]Signed-off-by: Tom Rini <trini@konsulko.com>
Drop references to MAKEALL in the documentationIt is confusing to mention MAKEALL when it is not the normal way of buildingU-Boot anymore. Update the documentation to suit.Signed-off-by: Simon G
Drop references to MAKEALL in the documentationIt is confusing to mention MAKEALL when it is not the normal way of buildingU-Boot anymore. Update the documentation to suit.Signed-off-by: Simon Glass <sjg@chromium.org>Reviewed-by: Tom Rini <trini@konsulko.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>
davinci: kconfig: move board select menu and common settingsBecuase the board select menu in arch/arm/Kconfig is too big,move the Davinci board select menu to davinci/Kconfig.Move also common se
davinci: kconfig: move board select menu and common settingsBecuase the board select menu in arch/arm/Kconfig is too big,move the Davinci board select menu to davinci/Kconfig.Move also common settings (CONFIG_SYS_CPU="arm926ejs" andCONFIG_SYS_SOC="davinci").Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Reviewed-by: Tom Rini <trini@ti.com>Cc: Heiko Schocher <hs@denx.de>Cc: Sandeep Paulraj <s-paulraj@ti.com>
arm: Add missing .vectors section to linker scriptsCommit 41623c9 'arm: move exception handling out of start.S files' missed somelinker scripts. Hence, some boards no longer had exception handling
arm: Add missing .vectors section to linker scriptsCommit 41623c9 'arm: move exception handling out of start.S files' missed somelinker scripts. Hence, some boards no longer had exception handling linked sincethis commit. Restore the original behavior by adding the .vectors section tothese linker scripts.Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau.dev@gmail.com>Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
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>
mtd: nand: davinci: add header file for driver definitionsThe definitions inside emif_defs.h concern davinci nand driver andshould be in it's header. So create header file for davinci nanddriver
mtd: nand: davinci: add header file for driver definitionsThe definitions inside emif_defs.h concern davinci nand driver andshould be in it's header. So create header file for davinci nanddriver and move definitions from emif_defs.h and nand_defs.h to it.Acked-by: Vitaly Andrianov <vitalya@ti.com>Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@ti.com>[trini: Fixup more davinci breakage]Signed-off-by: Tom Rini <trini@ti.com>
arm: make _end compiler-generatedThis prevents references to _end from generating absoluterelocation records.This change is binary invariant for ARM targets.Signed-off-by: Albert ARIBAUD <albe
arm: make _end compiler-generatedThis prevents references to _end from generating absoluterelocation records.This change is binary invariant for ARM targets.Signed-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
arm, da85x: update for the ipam390 board- switch to correct ecc layout used by the RBL enable CONFIG_NAND_6BYTES_OOB_FREE_10BYTES_ECC- update default environment- change A2CR to correct value f
arm, da85x: update for the ipam390 board- switch to correct ecc layout used by the RBL enable CONFIG_NAND_6BYTES_OOB_FREE_10BYTES_ECC- update default environment- change A2CR to correct value for UART boot mode- adapt cs3cfg timings for nand- change LED bootmode signalizationSigned-off-by: Heiko Schocher <hs@denx.de>Cc: Tom Rini <trini@ti.com>
board: arm: convert makefiles to Kbuild styleSigned-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>Cc: Andreas Bießmann <andreas.devel@googlemail
board: arm: convert makefiles to Kbuild styleSigned-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>Cc: Andreas Bießmann <andreas.devel@googlemail.com>Cc: Stefano Babic <sbabic@denx.de>Cc: Prafulla Wadaskar <prafulla@marvell.com>Cc: Minkyu Kang <mk7.kang@samsung.com>Cc: Vipin Kumar <vipin.kumar@st.com>Cc: Tom Warren <twarren@nvidia.com>Cc: Tom Rini <trini@ti.com>
Coding Style cleanup: replace leading SPACEs by TABsSigned-off-by: Wolfgang Denk <wd@denx.de>[trini: Drop changes for PEP 4 following python tools]Signed-off-by: Tom Rini <trini@ti.com>
arm, da850: add ipam390 board supportadd the am1808 based ipam390 board from Barix.- 128MByte, DDR2, synchronous RAM 16bit databus to SDRAM interface- 128MByte, NAND Flash, 8bit databus to the
arm, da850: add ipam390 board supportadd the am1808 based ipam390 board from Barix.- 128MByte, DDR2, synchronous RAM 16bit databus to SDRAM interface- 128MByte, NAND Flash, 8bit databus to the NANDFlash Interface- Ethernet PHY Micrel KSZ8051R via RMII- Console on UART 0- booting fron nand flash- spl falcon bootmodeSigned-off-by: Heiko Schocher <hs@denx.de>Cc: Tom Rini <trini@ti.com>