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>
show more ...
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>
powerpc/t4rdb: fix cpld reset altbankcpld reset altbank should always reset to bank4 no matter whatcurrent bank is.Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>Reviewed-by: York Sun <y
powerpc/t4rdb: fix cpld reset altbankcpld reset altbank should always reset to bank4 no matter whatcurrent bank is.Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>Reviewed-by: York Sun <yorksun@freescale.com>
powerpc/t4rdb: Add SD boot support for T4240RDB boardThis patch adds SD boot support for T4240RDB board. SPLframework is used. PBL initializes the internal RAM andcopies SPL to it. Then SPL initi
powerpc/t4rdb: Add SD boot support for T4240RDB boardThis patch adds SD boot support for T4240RDB board. SPLframework is used. PBL initializes the internal RAM andcopies SPL to it. Then SPL initializes DDR using SPD andcopies u-boot from SD card to DDR, finally SPL transferscontrol to u-boot.Signed-off-by: Chunhe Lan <Chunhe.Lan@freescale.com>[York Sun: Fix T4240RDB_SDCARD_defcofig]Reviewed-by: York Sun <yorksun@freescale.com>
powerpc/t4240rdb: Add alternate SerDes 2 protocol to align with RCWSerDes 2 protocol 56 is not valid any longer due tothe new RCW; protocol 55 is used instead, so addSerDes 2 protocol 55 to align
powerpc/t4240rdb: Add alternate SerDes 2 protocol to align with RCWSerDes 2 protocol 56 is not valid any longer due tothe new RCW; protocol 55 is used instead, so addSerDes 2 protocol 55 to align with RCW.Signed-off-by: Chunhe Lan <Chunhe.Lan@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>
powerpc/t4rdb: Add support of CPLDThis support of CPLD includes - Files and register definitions - Command to switch alternate bank - Command to switch default bankSigned-off-by: Chu
powerpc/t4rdb: Add support of CPLDThis support of CPLD includes - Files and register definitions - Command to switch alternate bank - Command to switch default bankSigned-off-by: Chunhe Lan <Chunhe.Lan@freescale.com>Reviewed-by: York Sun <yorksun@freescale.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/t4rdb: Add alternate serdes protocols to align with A-007186A-007186: SerDes PLL is calibrated at reset. It is possiblefor jitter to increase and cause the PLL to unlock when thetemperatu
powerpc/t4rdb: Add alternate serdes protocols to align with A-007186A-007186: SerDes PLL is calibrated at reset. It is possiblefor jitter to increase and cause the PLL to unlock when thetemperature delta from the time the PLL is calibrated exceeds+56C/-66C when using X VDD of 1.35 V (or +70C/-80C when usingXnVDD of 1.5 V). No issues are seen with LC VCO. The protocolsonly using Ring VCOs are impacted.Workaround:For all 1.25/2.5/5 GHz protocols, use LC VCO instead of RingVCO, this need to use alternate serdes protocols. Alternateoption has the same functionality as the original option; theonly difference being LC VCO rather than Ring VCO.Signed-off-by: Chunhe Lan <Chunhe.Lan@freescale.com>Reviewed-by: York Sun <yorksun@freescale.com>
powerpc/85xx: Add T4240RDB board supportT4240RDB board Specification----------------------------Memory subsystem: 6GB DDR3 128MB NOR flash 2GB NAND flashEthernet: Eight 1G SGMII por
powerpc/85xx: Add T4240RDB board supportT4240RDB board Specification----------------------------Memory subsystem: 6GB DDR3 128MB NOR flash 2GB NAND flashEthernet: Eight 1G SGMII ports Four 10Gbps SFP+ portsPCIe: Two PCIe slotsUSB: Two USB2.0 Type A portsSDHC: One SD-card portSATA: One SATA portUART: Dual RJ45 portsSigned-off-by: Chunhe Lan <Chunhe.Lan@freescale.com>[York Sun: fix CONFIG_SYS_QE_FMAN_FW_ADDR in T4240RDB.h]
12