- 16 1月, 2021 21 次提交
-
-
由 Ovidiu Panait 提交于
Add a return value to noncached_init and use it directly in the post-relocation init sequence, rather than using a wrapper stub. Signed-off-by: NOvidiu Panait <ovidiu.panait@windriver.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Ovidiu Panait 提交于
Add a return value to pci_init and use it directly in the post-relocation init sequence, rather than using a wrapper stub. Signed-off-by: NOvidiu Panait <ovidiu.panait@windriver.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Ovidiu Panait 提交于
Add a return value to pci_ep_init and use it directly in the post-relocation init sequence, rather than using a wrapper stub. Signed-off-by: NOvidiu Panait <ovidiu.panait@windriver.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Ovidiu Panait 提交于
Add a return value to post_output_backlog and use it directly in the post-relocation init sequence, rather than using a wrapper stub. Signed-off-by: NOvidiu Panait <ovidiu.panait@windriver.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Ovidiu Panait 提交于
Add a return value to cpu_secondary_init_r and use it directly in the post-relocation init sequence, rather than using a wrapper stub. Signed-off-by: NOvidiu Panait <ovidiu.panait@windriver.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Ovidiu Panait 提交于
Drop initr_console_record wrapper and call console_record_init directly. Signed-off-by: NOvidiu Panait <ovidiu.panait@windriver.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Ovidiu Panait 提交于
Use IS_ENABLED(CONFIG_OF_EMBED) in instead of #ifdefs in reserve_fdt, reloc_fdt functions. Signed-off-by: NOvidiu Panait <ovidiu.panait@windriver.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Ovidiu Panait 提交于
setup_bdinfo is used to populate various bdinfo fields, so move setup_machine code there, as all it does is setting gd->bd->bi_arch_number. Signed-off-by: NOvidiu Panait <ovidiu.panait@windriver.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Ovidiu Panait 提交于
Use IS_ENABLED(CONFIG_TIMER_EARLY) instead of #ifdef in initf_dm. Also, move timer code to the main ifdef, so that ret is defined. Signed-off-by: NOvidiu Panait <ovidiu.panait@windriver.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Ovidiu Panait 提交于
Drop initf_console_record wrapper and call console_record_init directly. Signed-off-by: NOvidiu Panait <ovidiu.panait@windriver.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Ovidiu Panait 提交于
Currently, the following #ifdef construct is used to check whether to run console_record_init() during pre-relocation init: defined(CONFIG_CONSOLE_RECORD) && CONFIG_VAL(SYS_MALLOC_F_LEN) Introduce CONFIG_CONSOLE_RECORD_INIT_F Kconfig option to get rid of the complex ifdef check. Also, use IS_ENABLED() instead of #ifdef. Signed-off-by: NOvidiu Panait <ovidiu.panait@windriver.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Patrick Delaunay 提交于
Reduce the log overhead when the traces are filtered, by moving the vsnprintf call from _log() to log_dispatch(). This patch avoids the printf treatment when LOG features is activated, but trace is filtered, for example when MAX_LOG_LEVEL=8 and LOG_DEFAULT_LEVEL=6. Reviewed-by: NSimon Glass <sjg@chromium.org> Signed-off-by: NPatrick Delaunay <patrick.delaunay@st.com>
-
由 Patrick Delaunay 提交于
Add a new test to check the content of the dropped messages sent to console puts function. Signed-off-by: NPatrick Delaunay <patrick.delaunay@st.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Patrick Delaunay 提交于
Allow to record the console output before before U-Boot has a console ready. This patch allows to test the console output in sandbox test based on console record. It is possible because GD_FLG_RECORD and GD_FLG_SERIAL_READY are 2 independent flags. Signed-off-by: NPatrick Delaunay <patrick.delaunay@st.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Patrick Delaunay 提交于
Reorder test on gd value and remove the duplicated test (!gd) in putc and puts function. This patch is a preliminary step for rework of this function. Signed-off-by: NPatrick Delaunay <patrick.delaunay@st.com> Reviewed-by: NSean Anderson <seanga2@gmail.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Patrick Delaunay 提交于
Add test for dropped trace before log_init, displayed by debug uart. Signed-off-by: NPatrick Delaunay <patrick.delaunay@st.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Patrick Delaunay 提交于
Use the console puts functions to output the traces before the log initialization (when CONFIG_LOG is not activated). This patch allows to display the first U-Boot traces (with macro debug) when CONFIG_DEBUG_UART is activated and not only drop them. For example for traces in board_f.c requested by the macro debug, when LOG_DEBUG is defined and CONFIG_LOG is activated. Signed-off-by: NPatrick Delaunay <patrick.delaunay@st.com>
-
由 Patrick Delaunay 提交于
Add a new test to check the dropped messages when LOG is not ready with log_drop_count and the result of _log(). Signed-off-by: NPatrick Delaunay <patrick.delaunay@st.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Patrick Delaunay 提交于
Update _log function to drop any traces when log is yet initialized: vsnprintf is no more executed in this case. This patch allows to reduce the cost for the dropped early debug trace. Reviewed-by: NSimon Glass <sjg@chromium.org> Signed-off-by: NPatrick Delaunay <patrick.delaunay@st.com>
-
由 Patrick Delaunay 提交于
Add a check of the _log function with LOGL_FORCE_DEBUG flags, used to force the trace display. The trace should be displayed for all the level when flags have LOGL_FORCE_DEBUG bit is set, for any filter. Signed-off-by: NPatrick Delaunay <patrick.delaunay@st.com> Reviewed-by: NSean Anderson <seanga2@gmail.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Dario Binacchi 提交于
Something was wrong in the merge process into the mainline. Some added patches access driver structure fields and functions that have been modified by previous patches. The patch renames: - dev_get_platdata to dev_get_plat - dev_get_uclass_platdata to dev_get_uclass_plat - ofdata_to_platdata to of_to_plat - plat_data_alloc_size to plat_auto - priv_auto_alloc_size to priv_auto - video_uc_platdata to video_uc_plat Signed-off-by: NDario Binacchi <dariobin@libero.it>
-
- 15 1月, 2021 19 次提交
-
-
https://github.com/lftan/u-boot由 Tom Rini 提交于
- Add ATF flow for SoC64 devices - Update socfpgaimage to support print header and update padding flow
-
由 Ley Foon Tan 提交于
The existing socfpgaimage always pads the image to the maximum size of OCRAM size. This will break in the encryption flow where it expects the image to be un-padded. The encryption tool will do the encryption for the whole image and append the signature key at end of the image. The signature key will append to beyond the size of OCRAM if the image is padded with the maximum size before encryption. Move the padding step from socfpgaimage to Makefile and pads with objcopy command. socfpgaimage will pad the image with 16 bytes aligned (including CRC word), this is a requirement in encryption flow. Signed-off-by: NLey Foon Tan <ley.foon.tan@intel.com>
-
由 Ley Foon Tan 提交于
Add CONFIG_SPL_PAD_TO for Gen5 and Arria 10. CONFIG_SPL_PAD_TO is set to size of OCRAM. This is preparation for image padding change in socfpgaimage. Signed-off-by: NLey Foon Tan <ley.foon.tan@intel.com>
-
由 Ley Foon Tan 提交于
Print image header information if the header is verified. Example output from mkimage "-l" option: $ ./tools/mkimage -l spl/u-boot-spl.sfp Image Type : Cyclone V / Arria V SoC Image Validation word : 0x31305341 Version : 0x00000000 Flags : 0x00000000 Program length : 0x00003a59 Header checksum : 0x00000188 $ ./tools/mkimage -l spl/u-boot-spl.sfp Image Type : Arria 10 SoC Image Validation word : 0x31305341 Version : 0x00000001 Flags : 0x00000000 Header length : 0x00000014 Program length : 0x000138e0 Program entry : 0x00000014 Header checksum : 0x00000237 Signed-off-by: NLey Foon Tan <ley.foon.tan@intel.com>
-
由 Chee Hong Ang 提交于
Booting Agilex and Stratix 10 with ATF support. SPL now loads ATF (BL31), U-Boot proper and DTB from FIT image. The new boot flow with ATF support is as follow: SPL -> ATF (BL31) -> U-Boot proper -> OS (Linux) U-Boot proper now starts at 0x200000 (CONFIG_SYS_TEXT_BASE). ATF will occupy the address range starting from 0x1000. Signed-off-by: NChee Hong Ang <chee.hong.ang@intel.com> Signed-off-by: NSiew Chin Lim <elly.siew.chin.lim@intel.com>
-
由 Siew Chin Lim 提交于
Enable BINMAN when using Arm-Trusted-Firmware (ATF) to generate FIT images. Signed-off-by: NSiew Chin Lim <elly.siew.chin.lim@intel.com>
-
由 Siew Chin Lim 提交于
Add binman node to device tree to generate the FIT image for u-boot (u-boot.itb) and OS kernel (kernel.itb). u-boot.itb contains arm trusted firmware (ATF), u-boot proper and u-boot device tree for ATF u-boot flow. kernel.itb contains Linux Image and Linux device tree. Signed-off-by: NSiew Chin Lim <elly.siew.chin.lim@intel.com>
-
由 Chee Hong Ang 提交于
SPL already setup the Clock Manager with the handoff data from OCRAM. When the Clock Manager's driver get probed again in SSBL, it shall skip the handoff data access in OCRAM. Signed-off-by: NChee Hong Ang <chee.hong.ang@intel.com>
-
由 Chee Hong Ang 提交于
Since SSBL is running in DRAM, it shall setup the stack in DRAM instead of OCRAM which is occupied by SPL and handoff data. Signed-off-by: NChee Hong Ang <chee.hong.ang@intel.com>
-
由 Chee Hong Ang 提交于
mbox_reset_cold() will invoke ATF's PSCI service when running in non-secure mode (EL2). Signed-off-by: NChee Hong Ang <chee.hong.ang@intel.com>
-
由 Chee Hong Ang 提交于
In non-secure mode (EL2), FPGA reconfiguration driver calls the SMC/PSCI services provided by ATF to configure the FPGA. Signed-off-by: NChee Hong Ang <chee.hong.ang@intel.com>
-
由 Chee Hong Ang 提交于
In non-secure mode (EL2), Reset Manager driver calls the SMC/PSCI service provided by ATF to enable/disable the SOCFPGA bridges. Signed-off-by: NChee Hong Ang <chee.hong.ang@intel.com> Signed-off-by: NSiew Chin Lim <elly.siew.chin.lim@intel.com>
-
由 Chee Hong Ang 提交于
In non-secure mode (EL2), MAC driver calls the SMC/PSCI services provided by ATF to setup the PHY interface. Signed-off-by: NChee Hong Ang <chee.hong.ang@intel.com> Signed-off-by: NSiew Chin Lim <elly.siew.chin.lim@intel.com>
-
由 Chee Hong Ang 提交于
In non-secure mode (EL2), MMC driver calls the SMC/PSCI services provided by ATF to set SDMMC's DRVSEL and SMPLSEL. Signed-off-by: NChee Hong Ang <chee.hong.ang@intel.com> Signed-off-by: NSiew Chin Lim <elly.siew.chin.lim@intel.com>
-
由 Siew Chin Lim 提交于
Change 'clksel' callback function to allow the code to return a status. This patch is a preparation for enabling Arm-Trusted-Firmware (ATF) in Intel SoC FPGA. This patch does not change functionality. When using Arm-Trusted-Firmware (ATF) in Intel SoC FPGA, the MMC clock related register is secure register which is required to be written via SMC/PCSI call. It is possible that U-Boot fail to write the register if there is unexpected error between U-Boot and ATF. As a result, there maybe signal integrity on MMC connection due to clock. So, the code should reports error to user when 'clksel' fail. Signed-off-by: NSiew Chin Lim <elly.siew.chin.lim@intel.com>
-
由 Siew Chin Lim 提交于
These secure register access functions allow U-Boot proper running at EL2 (non-secure) to access System Manager's secure registers by calling the ATF's PSCI runtime services (EL3/secure). Signed-off-by: NSiew Chin Lim <elly.siew.chin.lim@intel.com> Reviewed-by: NLey Foon Tan <ley.foon.tan@intel.com>
-
由 Chee Hong Ang 提交于
This header file defines the Secure Monitor Call (SMC) message protocol for ATF (BL31) PSCI runtime services. It includes all the PSCI SiP function identifiers for the secure runtime services provided by ATF. The secure runtime services include System Manager's registers access, 2nd phase bitstream FPGA reconfiguration, Remote System Update (RSU) and etc. Signed-off-by: NChee Hong Ang <chee.hong.ang@intel.com> Signed-off-by: NSiew Chin Lim <elly.siew.chin.lim@intel.com>
-
由 Chee Hong Ang 提交于
invoke_smc() allow U-Boot proper running in non-secure mode (EL2) to invoke SMC call to ATF's PSCI runtime services such as System Manager's registers access, 2nd phase bitstream FPGA reconfiguration, Remote System Update (RSU) and etc. smc_send_mailbox() is a send mailbox command helper function which invokes the ATF's PSCI runtime service (function ID: INTEL_SIP_SMC_MBOX_SEND_CMD) to send mailbox messages to Secure Device Manager (SDM). Signed-off-by: NChee Hong Ang <chee.hong.ang@intel.com>
-
由 Chee Hong Ang 提交于
Standard PSCI function "CPU_ON" provided by ATF is now used by Linux kernel to bring up the secondary CPUs to enable SMP booting in Linux on SoC 64bits platform. Signed-off-by: NChee Hong Ang <chee.hong.ang@intel.com>
-