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>
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>
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>
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>
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: mpc85xx: Move set_liodns, setup_portals to common boot seqUsers migrating Freescale's PowerPC SoC U-Boot code to their customboard, often overlook the need to execute set_liodns() andset
powerpc: mpc85xx: Move set_liodns, setup_portals to common boot seqUsers migrating Freescale's PowerPC SoC U-Boot code to their customboard, often overlook the need to execute set_liodns() andsetup_portals() being called by platform files.So Move set_liodns() and setup_portals() to common u-boot bootsequenceSigned-off-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>Reviewed-by: York Sun <york.sun@nxp.com>
Add more SPDX-License-Identifier tagsIn a number of places we had wordings of the GPL (or LGPL in a fewcases) license text that were split in such a way that it wasn't caughtpreviously. Convert
Add more SPDX-License-Identifier tagsIn a number of places we had wordings of the GPL (or LGPL in a fewcases) license text that were split in such a way that it wasn't caughtpreviously. Convert all of these to the correct SPDX-License-Identifiertag.Signed-off-by: Tom Rini <trini@konsulko.com>
net: Move some header files to include/The fsl_dtsec.h & fsl_tgec.h & fsl_fman.h can be shared on both ARMand PPC, move it out of ppc to include/, and change the path indrivers accordingly.Sign
net: Move some header files to include/The fsl_dtsec.h & fsl_tgec.h & fsl_fman.h can be shared on both ARMand PPC, move it out of ppc to include/, and change the path indrivers accordingly.Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>Signed-off-by: Gong Qianyu <Qianyu.Gong@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>
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>
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>
Driver/DDR: Moving Freescale DDR driver to a common driverFreescale DDR driver has been used for mpc83xx, mpc85xx, mpc86xx SoCs.The similar DDR controllers will be used for ARM-based SoCs.Signed
Driver/DDR: Moving Freescale DDR driver to a common driverFreescale DDR driver has been used for mpc83xx, mpc85xx, mpc86xx SoCs.The similar DDR controllers will be used for ARM-based SoCs.Signed-off-by: York Sun <yorksun@freescale.com>
board: powerpc: convert makefiles to Kbuild styleSigned-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Cc: Wolfgang Denk <wd@denx.de>Cc: Kim Phillips <kim.phillips@freescale.com>Cc: York Sun
board: powerpc: convert makefiles to Kbuild styleSigned-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Cc: Wolfgang Denk <wd@denx.de>Cc: Kim Phillips <kim.phillips@freescale.com>Cc: York Sun <yorksun@freescale.com>Cc: Stefan Roese <sr@denx.de>
fsl/mpc85xx: define common serdes_clock_to_string functionThis allows to share some common code for the boards that use a corenetbase SoC.Two different versions of the function are available in
fsl/mpc85xx: define common serdes_clock_to_string functionThis allows to share some common code for the boards that use a corenetbase SoC.Two different versions of the function are available infsl_corenet_serdes.c and fsl_corenet2_serdes.c files.Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>[York Sun: fix t1040qds.c]Acked-by: York Sun <yorksun@freescale.com>
powerpc: Fix CamelCase warnings in DDR related codeSome DDR related structures present in fsl_ddr_dimm_params.h, fsl_ddr_sdram.h, ddr_spd.hhas various parameters with embedded acronyms capitalized
powerpc: Fix CamelCase warnings in DDR related codeSome DDR related structures present in fsl_ddr_dimm_params.h, fsl_ddr_sdram.h, ddr_spd.hhas various parameters with embedded acronyms capitalized that trigger the CamelCasewarning in checkpatch.plConvert those variable names to smallcase naming convention and modify all fileswhich are using these structures with modified structures.Signed-off-by: Priyanka Jain <Priyanka.Jain@freescale.com>
powerpc/corenet: Move RCW print to cpu.cThe RCW print is common for all corenet platforms. Not necessary to ducplicatein each board file.Signed-off-by: York Sun <yorksun@freescale.com>
Add GPL-2.0+ SPDX-License-Identifier to source filesSigned-off-by: Wolfgang Denk <wd@denx.de>[trini: Fixup common/cmd_io.c]Signed-off-by: Tom Rini <trini@ti.com>
powerpc/p2041: fix serdes reference clock frequency display for PC boardPC board has different serdes clock setting with PB board, it uses sameserdes frequency setting on bank2 as on bank1. PC boa
powerpc/p2041: fix serdes reference clock frequency display for PC boardPC board has different serdes clock setting with PB board, it uses sameserdes frequency setting on bank2 as on bank1. PC board can be distingushedfrom PB board by checking CPLD version, if running on PC board, then fixthe serdes reference clock frequency of bank2.Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>Signed-off-by: Andy Fleming <afleming@freescale.com>
12