- Jul 26, 2016
-
-
Hongbo Zhang authored
LS1021 offers two secure OCRAM blocks for trustzone. This patch moves all the secure text sections into the OCRAM. Signed-off-by:
Wang Dongsheng <dongsheng.wang@nxp.com> Signed-off-by:
Hongbo Zhang <hongbo.zhang@nxp.com> Reviewed-by:
York Sun <york.sun@nxp.com>
-
Hongbo Zhang authored
This patch implements PSCI functions for ls102xa SoC following PSCI v1.0, they are as the list: psci_version, psci_features, psci_cpu_suspend, psci_affinity_info, psci_system_reset, psci_system_off. Tested on LS1021aQDS, LS1021aTWR. Signed-off-by:
Wang Dongsheng <dongsheng.wang@nxp.com> Signed-off-by:
Hongbo Zhang <hongbo.zhang@nxp.com> Reviewed-by:
York Sun <york.sun@nxp.com>
-
Hongbo Zhang authored
The input parameter CPU ID needs to be validated before furher oprations such as CPU_ON, this patch introduces the function to do this. Signed-off-by:
Wang Dongsheng <dongsheng.wang@nxp.com> Signed-off-by:
Hongbo Zhang <hongbo.zhang@nxp.com> Reviewed-by:
York Sun <york.sun@nxp.com>
-
Hongbo Zhang authored
This patch adds all the PSCI v1.0 functions in to the common framework, with all the functions returning "not implemented" by default, as a common framework all the dummy functions are added here, it is up to every platform developer to decide which version of PSCI and which functions to implement. Signed-off-by:
Hongbo Zhang <hongbo.zhang@nxp.com> Signed-off-by:
Wang Dongsheng <dongsheng.wang@nxp.com> Reviewed-by:
Tom Rini <trini@konsulko.com> Reviewed-by:
York Sun <york.sun@nxp.com>
-
Mingkai Hu authored
The Fman module on LS1046A is similiar with that on LS1043A but LS1046A has one more XFI (10GbE) interface. Signed-off-by:
Shaohui Xie <Shaohui.Xie@nxp.com> Signed-off-by:
Mingkai Hu <mingkai.hu@nxp.com> Signed-off-by:
Gong Qianyu <Qianyu.Gong@nxp.com> Reviewed-by:
York Sun <york.sun@nxp.com>
-
Mingkai Hu authored
The LS1046A processor is built on the QorIQ LS series architecture combining four ARM A72 processor cores with DPAA 1.0 support. Signed-off-by:
Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Signed-off-by:
Mihai Bantea <mihai.bantea@freescale.com> Signed-off-by:
Mingkai Hu <mingkai.hu@nxp.com> Signed-off-by:
Gong Qianyu <Qianyu.Gong@nxp.com> Reviewed-by:
York Sun <york.sun@nxp.com>
-
Qianyu Gong authored
New SoC LS1046A belongs to Freescale Chassis Generation 2 and has two SerDes so we need to add this support in fsl_lsch2. The SoC related SerDes 2 support will be added in SoC patch. Signed-off-by:
Gong Qianyu <Qianyu.Gong@nxp.com> Reviewed-by:
York Sun <york.sun@nxp.com>
-
Qianyu Gong authored
Both LS1012A and LS1043A belong to FSL_LSCH2 and share some common configurations. So put the common define under FSL_LSCH2 to increase readability. Signed-off-by:
Gong Qianyu <Qianyu.Gong@nxp.com> Reviewed-by:
York Sun <york.sun@nxp.com>
-
Alison Wang authored
Add support to detect Cortex-A72 core for printing it out. The Initiator Version of A72 core should be 0x4. Signed-off-by:
Alison Wang <alison.wang@nxp.com> Signed-off-by:
Mingkai Hu <mingkai.hu@nxp.com> Signed-off-by:
Gong Qianyu <Qianyu.Gong@nxp.com> Reviewed-by:
York Sun <york.sun@nxp.com>
-
York Sun authored
Add ls1043aqds_lpuart_defconfig to file list. Signed-off-by:
York Sun <york.sun@nxp.com>
-
York Sun authored
Add ls2080aqds_qspi_defconfig to file list. Signed-off-by:
York Sun <york.sun@nxp.com>
-
Sumit Garg authored
Add SD secure boot target for ls1021atwr. Implement board specific spl_board_init() to setup CAAM stream ID and corresponding stream ID in SMMU. Change the u-boot size defined by a macro for copying the main U-Boot by SPL to also include the u-boot Secure Boot header size as header is appended to u-boot image. So header will also be copied from SD to DDR. Reviewed-by:
Aneesh Bansal <aneesh.bansal@nxp.com> Signed-off-by:
Sumit Garg <sumit.garg@nxp.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
York Sun <york.sun@nxp.com>
-
Sumit Garg authored
Add support for reading bootscript and bootscript header from SD. Also renamed macros *_FLASH to *_DEVICE to represent SD alongwith NAND and NOR flash. Reviewed-by:
Aneesh Bansal <aneesh.bansal@nxp.com> Signed-off-by:
Sumit Garg <sumit.garg@nxp.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
York Sun <york.sun@nxp.com>
-
Sumit Garg authored
Override jump_to_image_no_args function to include validation of u-boot image using spl_validate_uboot before jumping to u-boot image. Also define macros in SPL framework to enable crypto operations. Reviewed-by:
Aneesh Bansal <aneesh.bansal@nxp.com> Signed-off-by:
Sumit Garg <sumit.garg@nxp.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
York Sun <york.sun@nxp.com>
-
Sumit Garg authored
Enable rsa signature verification in SPL framework before relocation for verification of main u-boot. Reviewed-by:
Aneesh Bansal <aneesh.bansal@nxp.com> Signed-off-by:
Sumit Garg <sumit.garg@nxp.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
York Sun <york.sun@nxp.com>
-
Rajesh Bhagat authored
Remove Soc specific defines and use generic chasis specific defines for USB controller base address mapping. Signed-off-by:
Rajesh Bhagat <rajesh.bhagat@nxp.com> Reviewed-by:
York Sun <york.sun@nxp.com>
-
mario.six@gdsys.cc authored
Due to a oversight in testing, the initialization of the recently introduced Freescale I2C DM driver works only for 36 bit mode of e.g. the MPC85XX SoCs (specifically, if the physical addresses are 64 bit wide and the DT addresses 32 bit wide). This patch corrects the initialization so that it will work in a more general setting. Signed-off-by:
Mario Six <mario.six@gdsys.cc> Reviewed-by:
York Sun <york.sun@nxp.com>
-
- Jul 23, 2016
-
-
Masahiro Yamada authored
Deassert resets and enable clock signals of xHCI blocks if the corresponding CONFIG is enabled. Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com>
-
Masahiro Yamada authored
This has the same silicon die as PH1-LD20, but includes DRAM chips in its package. Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com>
-
Masahiro Yamada authored
I need to add more board attributes, so the "flags" member will be handier than separate boolean ones. Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com>
-
Masahiro Yamada authored
Sync register macros with Linux code. This will be helpful to develop the counterpart of Linux. Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com>
-
Masahiro Yamada authored
Clear the flag immediately before cache operation to not depend on the previous state. Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com>
-
Masahiro Yamada authored
This does not have much impact on behavior, but makes code look more more like Linux. The use of devm_ioremap() often helps to delete .remove callbacks entirely. Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com>
-
Masahiro Yamada authored
This downloads the same file twice for nothing. Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com>
-
Masahiro Yamada authored
This is needed when booting Linux without ARM Trusted Firmware. Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com>
-
Masahiro Yamada authored
On these two boards, the serial0 is used for inter-chip connection, so cannot be used for login console. The serial2 is used instead for them, but it is tedious to use because upper level deployment projects must switch login console per board. [ Linux commit: 2a4a2aadbaad9dffdb564a2895348f3d8e825416 ] Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by:
Olof Johansson <olof@lixom.net>
-
- Jul 22, 2016
-
-
Michal Simek authored
Getting this error: Zynq> sb load hostfs - 100 /home/monstr/data/disk/u-boot/build-zynq_zc706/test.fit Unknown command 'sb' - try 'help' because sb command is present only for Sandbox obj-$(CONFIG_SANDBOX) += host.o that's why mark this test to be run only at Sandbox Signed-off-by:
Michal Simek <michal.simek@xilinx.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Andreas Dannenberg authored
Commit 17c29873 introduces an undesired dependency on CONFIG_SPL_LOAD_FIT when building U-Boot for AM57xx and DRA7xx high-security (HS) devices that causes the build to break when that option is not active. Fix this issue by only building the u-boot_HS.img target when building U-Boot into an actual FIT image. Signed-off-by:
Andreas Dannenberg <dannenberg@ti.com> Reviewed-by:
Tom Rini <trini@konsulko.com>
-
Andreas Dannenberg authored
Commit e29878fc introduces an undesired dependency on CONFIG_SPL_LOAD_FIT when building U-Boot for AM43xx high-security (HS) devices that causes the build to break when that option is not active. Fix this issue by only building the u-boot_HS.img target when building U-Boot into an actual FIT image. Signed-off-by:
Andreas Dannenberg <dannenberg@ti.com> Reviewed-by:
Tom Rini <trini@konsulko.com>
-
yeongjun Kim authored
It looks typo error. Not CPU15, CP15(CoProcessor15) Signed-off-by:
yeongjun Kim <iam.yeongjunkim@gmail.com>
-
Lokesh Vutla authored
In raw mode a full sector is to be read even if image covers part of a sector. Number of sectors are calculated as ROUND_UP(size)/sec_size by FIT framework. This calculation assumes that image is at the 0th offset of a sector, which is not true always in FIT case. So, include the image offset while calculating number of sectors. Signed-off-by:
Lokesh Vutla <lokeshvutla@ti.com> Reviewed-by:
Tom Rini <trini@konsulko.com>
-
mario.six@gdsys.cc authored
When signing images, we repeatedly call fit_add_file_data() with successively increasing size values to include the keys in the DTB. Unfortunately, if large keys are used (such as 4096 bit RSA keys), this process fails sometimes, and mkimage needs to be called repeatedly to integrate the keys into the DTB. This is because fit_add_file_data actually returns the wrong error code, and the loop terminates prematurely, instead of trying again with a larger size value. This patch corrects the return value by fixing the return value of fdt_add_bignum, fixes a case where an error is masked by a unconditional setting of a return value variable, and also removes a error message, which is misleading, since we actually allow the function to fail. A (hopefully helpful) comment is also added to explain the lack of error message. This is probably related to 1152a05e ("tools: Correct error handling in fit_image_process_hash()") and the corresponding error reported here: https://www.mail-archive.com/u-boot@lists.denx.de/msg217417.html Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
mario.six@gdsys.cc authored
When signing images, we repeatedly call fit_add_file_data() with successively increasing size values to include the keys in the DTB. Unfortunately, if large keys are used (such as 4096 bit RSA keys), this process fails sometimes, and mkimage needs to be called repeatedly to integrate the keys into the DTB. This is because fit_add_file_data actually returns the wrong error code, and the loop terminates prematurely, instead of trying again with a larger size value. This patch corrects the return value and also removes a error message, which is misleading, since we actually allow the function to fail. A (hopefully helpful) comment is also added to explain the lack of error message. This is probably related to 1152a05e ("tools: Correct error handling in fit_image_process_hash()") and the corresponding error reported here: https://www.mail-archive.com/u-boot@lists.denx.de/msg217417.html Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Stephen Warren authored
Without this, the test fails if the test is run with a cwd other than the root of the U-Boot source tree. Fixes: 8729d582 ("test: Convert the vboot test to test/py") Signed-off-by:
Stephen Warren <swarren@nvidia.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Jeremy Hunt authored
As part of the startup process for boards using the SPL, the meaning of board_init_f changed such that it should return normally rather than calling board_init_r directly. (see db910353 ) This was fixed in 32-bit arm, but broke when SPL was added to 64 bit arm. This fixes crt0_64 so that it calls board_init_r during the SPL and removes the direct call from board_init_f from the arm SPL example. Signed-off-by:
Jeremy Hunt <Jeremy.Hunt@DEShawResearch.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Andreas Färber authored
Tracing the arguments has been helpful for pinpointing overflows. Cc: Alexander Graf <agraf@suse.de> Signed-off-by:
Andreas Färber <afaerber@suse.de> Reviewed-by:
Alexander Graf <agraf@suse.de>
-
Andreas Fenkart authored
Try to avoid adhoc iteration of the environment. Reuse fw_getenv to find the variables that should be printed. Only use open-coded iteration when printing all variables. For backwards compatibility, keep emitting a newline when printing with value_only. Signed-off-by:
Andreas Fenkart <andreas.fenkart@digitalstrom.com>
-
Andreas Fenkart authored
forward declaration not needed when re-ordered Reviewed-by:
Simon Glass <sjg@chromium.org> Signed-off-by:
Andreas Fenkart <andreas.fenkart@digitalstrom.com>
-
Andreas Fenkart authored
there are two groups of functions: - application ready tools: fw_setenv/fw_getenv/fw_parse_script these are used, when creating a single binary containing multiple tools (busybox like) - file access like: open/read/write/close above functions are implemented on top of these. applications can use those to modify several variables without creating a temporary batch script file tested with "./scripts/kernel-doc -html -v tools/env/fw_env.h" Reviewed-by:
Simon Glass <sjg@chromium.org> Signed-off-by:
Andreas Fenkart <andreas.fenkart@digitalstrom.com>
-
Tom Rini authored
On most platforms the print_fpga_state function is never called. Only on dlvision-10g do we, so in that case inline it. Drop it from everywhere else to avoid extra strings. Signed-off-by:
Tom Rini <trini@konsulko.com> Acked-by:
Reinhard Pfau <reinhard.pfau@gdsys.cc> Acked-by:
Dirk Eibach <dirk.eibach@gdsys.cc>
-