Re: [PATCH v2 02/25] x86: Move MP code into mp_init

2020-06-27 Thread Bin Meng
On Mon, Jun 15, 2020 at 1:00 AM Simon Glass wrote: > > At present the 'flight plan' for CPUs is passed into mp_init. But it is > always the same. Move it into the mp_init file so everything is in one > place. Also drop the SMI function since it does nothing. If we implement > SMIs, more

Re: [PATCH v2 04/25] x86: mp_init: Switch parameter names in start_aps()

2020-06-27 Thread Bin Meng
On Mon, Jun 15, 2020 at 1:00 AM Simon Glass wrote: > > These parameters are named differently from elsewhere in this file. Switch > them to avoid confusion. > > Also add comments to this function. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Add comments to explain what

Re: [PATCH v2 05/25] x86: mp_init: Drop the num_cpus static variable

2020-06-27 Thread Bin Meng
Hi Simon, On Mon, Jun 15, 2020 at 1:00 AM Simon Glass wrote: > > This does not need to be global across all functions in this file. Pass a > parameter instead. > > Signed-off-by: Simon Glass > Reviewed-by: Wolfgang Wallner > --- > > (no changes since v1) > > arch/x86/cpu/mp_init.c | 22

Re: [PATCH v2 03/25] x86: mp_init: Avoid declarations in header files

2020-06-27 Thread Bin Meng
On Mon, Jun 15, 2020 at 1:00 AM Simon Glass wrote: > > The functions used by the flight plan are declared in the header file but > are not used in any other file. > > Move the flight plan steps down to just above where it is used so that we > can make these function static. > > Signed-off-by:

Re: [PATCH v2 01/25] x86: mp_init: Switch to livetree

2020-06-27 Thread Bin Meng
On Mon, Jun 15, 2020 at 1:00 AM Simon Glass wrote: > > Update this code to use livetree calls instead of flat-tree. > > Signed-off-by: Simon Glass > Reviewed-by: Wolfgang Wallner > --- > > (no changes since v1) > > arch/x86/cpu/mp_init.c | 3 +-- > 1 file changed, 1 insertion(+), 2

Re: [PATCH v4 1/5] rockchip: spl: Add spl_board_init

2020-06-27 Thread Kever Yang
Hi Jagan, On 2020/6/18 下午11:39, Jagan Teki wrote: spl_board_init is a proper location and common practice option to have a custom board initialization code after relocation in SPL. This patch add the feasibility to add the custom SPL board initzlaization throughout rockchip platforms and

Re: [PATCH v4 2/5] rk3399: spl: Print SPL banner after relocation

2020-06-27 Thread Kever Yang
Hi Jagan, On 2020/6/18 下午11:39, Jagan Teki wrote: Usually printing the SPL banner varies between architecture or board codes. - Some would print before relocation at the end board_init_f   for making sure all initialization prior to this would happen   properly. if at all there is a

Re: [PATCH v4 3/5] roc-rk3399-pc: Move leds setup in SPL

2020-06-27 Thread Kever Yang
On 2020/6/18 下午11:39, Jagan Teki wrote: roc-rk3399-pc has some specific requirements to support LEDS, environment. board detection and etc prior to U-Boot proper. So as of now SPL would be a better stage for these custom board requirements to support unlike TPL. Adding few of these custom

Re: [PATCH v4 4/5] rockchip: Separate the reset cause from display cpuinfo

2020-06-27 Thread Kever Yang
HI Jagan, On 2020/6/18 下午11:39, Jagan Teki wrote: reset cause is a generic functionality based on the soc cru registers in rockchip. This can be used for printing the cause of reset in cpuinfo or some other place where reset cause is needed. Other than cpuinfo, reset cause can also be using

Re: rockchip: correctly set vop0 or vop1

2020-06-27 Thread Andy Yan
Hi : On 6/27/20 8:56 PM, Kever Yang wrote: +Andy Yan for this topic, Hi Patrick and Arnaud,     I would like to leave this patch until the code fits for all the socs, Thanks, - Kever On 2020/6/8 下午8:39, Patrick Wildt wrote: On Mon, Jun 08, 2020 at 02:24:32PM +0200, Arnaud Patard wrote:

Re: rockchip: correctly set vop0 or vop1

2020-06-27 Thread Kever Yang
On 2020/6/8 上午2:36, Patrick Wildt wrote: The EDP_LCDC_SEL bit has to be set correctly to select vop0 or vop1, but so far we have set it in both conditions, which is not correct. Can someone verify this is the correct way round? vop1 -> set, vop0 -> clear? Signed-off-by: Patrick Wildt I

[PATCH v2] test/py: test_efi_fit: Update #size-cells to 1

2020-06-27 Thread Bin Meng
From: Bin Meng test_efi_fit tests fail on RISC-V currently. This is due to the RISC-V arch_fixup_fdt() checks the #size-cells of the root node in order to correctly fix up the reserved memory node. Per the DT binding, the /reserved-memory node requires both <#address-cells> and <#size-cells>

Re: [PATCH] test/py: test_efi_fit: Update #size-cells to 1

2020-06-27 Thread Bin Meng
Hi Heinrich, On Sat, Jun 27, 2020 at 9:43 PM Heinrich Schuchardt wrote: > > On 6/27/20 2:12 PM, Bin Meng wrote: > > From: Bin Meng > > > > test_efi_fit tests fail on RISC-V currently. This is due to the > > RISC-V arch_fixup_fdt() checks the #size-cells of the root node > > in order to

[PATCH v2] video: bmp: support 8bits BMP drawing on 24/32 bpp framebuffer

2020-06-27 Thread Anatolij Gustschin
From: Ye Li Update video bmp code so that we can display 8 bits logo on 24 or 32 bpp framebuffer. Signed-off-by: Ye Li Signed-off-by: Anatolij Gustschin Reviewed-by: Jagan Teki Tested-by: Jagan Teki # bpi-m1+, bpi-m64 --- Changes in v2: - reduce code - update commit message

Re: [PATCH v4 6/6] crypto/fsl: add RNG support

2020-06-27 Thread Heinrich Schuchardt
On 6/27/20 10:58 PM, Michael Walle wrote: > Register the random number generator with the rng subsystem in u-boot. > This way it can be used by EFI as well as for the 'rng' command. > > Signed-off-by: Michael Walle Tested on a i.MX6 Wandward Quad with additional patch ARM: mx6: make CAAM usable

[PATCH v4 0/6] crypto/fsl: add RNG support

2020-06-27 Thread Michael Walle
First, improve the compatibility on newer Era CAAMs. These introduced new version registers. Secondly, add RNG support for the CAAM. This way we get random number generator support for EFI for free and KASLR will work with ARM64 kernels booted with bootefi. Changes since v3: - use private data

[PATCH v4 6/6] crypto/fsl: add RNG support

2020-06-27 Thread Michael Walle
Register the random number generator with the rng subsystem in u-boot. This way it can be used by EFI as well as for the 'rng' command. Signed-off-by: Michael Walle --- drivers/crypto/fsl/Kconfig | 14 ++ drivers/crypto/fsl/Makefile | 1 + drivers/crypto/fsl/jobdesc.c | 10

[PATCH v4 2/6] crypto/fsl: export caam_get_era()

2020-06-27 Thread Michael Walle
We need the era in other modules, too. For example, to get the RNG version. Signed-off-by: Michael Walle Reviewed-by: Horia Geantă --- drivers/crypto/fsl/sec.c | 10 +- include/fsl_sec.h| 2 ++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git

[PATCH v4 3/6] crypto/fsl: support newer SEC modules

2020-06-27 Thread Michael Walle
Since Era 10, the version registers changed. Add the version registers and use them on newer modules. Signed-off-by: Michael Walle Reviewed-by: Horia Geantă --- drivers/crypto/fsl/jr.c | 12 -- include/fsl_sec.h | 51 +++-- 2 files changed, 54

[PATCH v4 5/6] crypto/fsl: instantiate the RNG with prediciton resistance

2020-06-27 Thread Michael Walle
If it is already instantiated tear it down first and then reinstanciate it again with prediction resistance. Signed-off-by: Michael Walle --- drivers/crypto/fsl/desc.h| 2 ++ drivers/crypto/fsl/jobdesc.c | 12 ++- drivers/crypto/fsl/jobdesc.h | 2 ++ drivers/crypto/fsl/jr.c | 67

[PATCH v4 4/6] crypto/fsl: don't regenerate secure keys

2020-06-27 Thread Michael Walle
The secure keys (TDKEK, JDKEK, TDSK) can only be generated once after a POR. Otherwise the RNG4 will throw an error. Signed-off-by: Michael Walle Reviewed-by: Horia Geantă --- drivers/crypto/fsl/jobdesc.c | 4 ++-- drivers/crypto/fsl/jobdesc.h | 2 +- drivers/crypto/fsl/jr.c | 9 +

[PATCH v4 1/6] crypto/fsl: make SEC%u status line consistent

2020-06-27 Thread Michael Walle
Align the status line with all the other output in U-Boot. Before the change: DDR3.9 GiB (DDR3, 32-bit, CL=11, ECC on) SEC0: RNG instantiated WDT: Started with servicing (60s timeout) After the change: DDR3.9 GiB (DDR3, 32-bit, CL=11, ECC on) SEC0: RNG instantiated WDT: Started with

[PATCH] sync helios4 config to clearfog and dts to kernel

2020-06-27 Thread dgilmore
From: Dennis Gilmore The helios4 is built on the same microsom as the clearfog, by syncing the config we enable the same featureset that exists in the som on the helios4. The current config does not boot as some of the clearfog changes needed to be made on the helios4 also, generally speaking

Re: [PATCH v3 0/6] crypto/fsl: add RNG support

2020-06-27 Thread Michael Walle
Am 2020-06-26 18:26, schrieb Heinrich Schuchardt: On 6/25/20 11:01 PM, Michael Walle wrote: Am 2020-06-25 18:03, schrieb Heinrich Schuchardt: On 25.06.20 16:36, Heinrich Schuchardt wrote: On 25.06.20 14:18, Michael Walle wrote: First, improve the compatibility on newer Era CAAMs. These

Re: [PATCH v3 0/6] crypto/fsl: add RNG support

2020-06-27 Thread Michael Walle
Am 2020-06-26 18:26, schrieb Heinrich Schuchardt: On 6/25/20 11:01 PM, Michael Walle wrote: Am 2020-06-25 18:03, schrieb Heinrich Schuchardt: On 25.06.20 16:36, Heinrich Schuchardt wrote: On 25.06.20 14:18, Michael Walle wrote: First, improve the compatibility on newer Era CAAMs. These

Re: [PATCH v3 5/6] crypto/fsl: instantiate the RNG with prediciton resistance

2020-06-27 Thread Heinrich Schuchardt
On 6/25/20 2:19 PM, Michael Walle wrote: > If it is already instantiated tear it down first and then reinstanciate > it again with prediction resistance. > > Signed-off-by: Michael Walle > --- > drivers/crypto/fsl/desc.h| 2 ++ > drivers/crypto/fsl/jobdesc.c | 12 ++- >

Re: [PATCH 2/2] rockchip: clk: rk3188: enable bwadj for rk3188 DPLL

2020-06-27 Thread Alexander Kochetkov
Hi Kever, Strange… Then I tested a year ago I saw, that writing into bwadj registers had no effect for some PLLs. But now I did another test. See patch and output. Looks like rk3188 allow writing into bwadj fields. So I do something like 'priv->has_bwadj = 1' in the rk3188_clk_probe() and

Re: [PATCH 2/2] rockchip: clk: rk3188: enable bwadj for rk3188 DPLL

2020-06-27 Thread Kever Yang
Hi Alex,     I think it will be better to update the rk3188_clk_probe() function instead of what you have modified if the RK3188 and RK3188A has the same PLL(I'm not sure about it now). Thanks, - Kever On 2020/6/22 下午9:17, Alexander Kochetkov wrote: Empirically, I found that DPLL on

Re: [PATCH 1/2] rockchip: clk: rk3188: change APLL to safe 600MHz

2020-06-27 Thread Kever Yang
On 2020/6/22 下午9:17, Alexander Kochetkov wrote: The commit 84a6a27ae3ff ("rockchip: rk3188: init CPU freq in clock driver") changed ARM clock from 600MHz to 1600MHz. It made boot unstable due to the fact that PMIC at the start generates insufficient voltage for operation. See also: commit

Re: [PATCH 1/3] ARM: dts: rockchip: radxa-dalang: Update sdmmc properties

2020-06-27 Thread Kever Yang
On 2020/6/19 上午12:12, Jagan Teki wrote: Radxa dalang carrier boards are used to mount vmarc SoM's of rk3399pro and rk3288 to make complete SBC. Among these combinations, card detection gpio, max-frequency properties are used with rk3399pro SoM but not required for rk3288 SoM based on the

Re: [PATCH 3/3] ARM: dts: rockchip: Add Radxa Rock Pi N8 initial support

2020-06-27 Thread Kever Yang
On 2020/6/19 上午12:12, Jagan Teki wrote: Rock Pi N8 is a Rockchip RK3288 based SBC, which has - VMARC RK3288 SOM (as per SMARC standard) from Vamrs. - Compatible carrier board from Radxa. VAMRC RK3288 SOM need to mount on top of radxa dalang carrier board for making Rock Pi N8 SBC. So, add

Re: [PATCH 2/3] ARM: dts: rockchip: Add VMARC RK3288 SOM initial support

2020-06-27 Thread Kever Yang
On 2020/6/19 上午12:12, Jagan Teki wrote: VMARC RK3288 SOM is a standard SMARC SOM design with Rockchip RK3288 SoC, which is designed by Vamrs. Specification: - Rockchip RK3288 - PMIC: RK808 - SD slot, 16GiB eMMC - 2xUSB-2.0, 1xUSB3.0 - USB-C for power supply - Ethernet, PCIe - HDMI,

Re: [PATCH] rockchip: i2c: fix switch to new implementation for rk3188

2020-06-27 Thread Alexander Kochetkov
To make clear, there is kernel driver i2c-rk3x.c. For rk3066 it write bits in the GRF word at offset 0x154. See [1] and [2]. [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/i2c/busses/i2c-rk3x.c#n1236 [2]

Re: [PATCH v2 6/6] roc-rk3399-pc: Update ENV offset, size

2020-06-27 Thread Kever Yang
On 2020/6/18 下午10:12, Jagan Teki wrote: Adjust the ENV offset, size to fit into all images on 16MB flash. Signed-off-by: Jagan Teki --- Changes for v2: - rebase on master configs/rock-pi-4-rk3399_defconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git

Re: [PATCH v2 4/6] rock-pi-4: Enable HDMI output

2020-06-27 Thread Kever Yang
On 2020/6/18 下午10:12, Jagan Teki wrote: Enable config options to get HDMI output on RockPI-4 boards. Signed-off-by: Jagan Teki --- Changes for v2: - rebase on master configs/rock-pi-4-rk3399_defconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git

Re: [PATCH v2 5/6] roc-rk3399-pc: Enable USB Gadget

2020-06-27 Thread Kever Yang
On 2020/6/18 下午10:12, Jagan Teki wrote: Enable DWC3 core, gadget for roc-rk3399-pc board. This would help to use fastboot by default. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang Thanks, - Kever --- Changes for v2: - rebase on master configs/rock-pi-4-rk3399_defconfig | 6

Re: [PATCH v2 2/6] rock-pi-4: Enable PCI/NVME

2020-06-27 Thread Kever Yang
On 2020/6/18 下午10:12, Jagan Teki wrote: Enable PCI/NVME for M.2 Slot on RockPI-4 boards. => nvme info Device 0: Vendor: 0x144d Rev: 2B2QEXM7 Prod: S4EUNG0MC10012Y Type: Hard Disk Capacity: 238475.1 MB = 232.8 GB (488397168 x 512) Cc: Tom Cubie Signed-off-by: Jagan

Re: [PATCH v2 3/6] rock-pi-4: Enable USB Gadget

2020-06-27 Thread Kever Yang
On 2020/6/18 下午10:12, Jagan Teki wrote: Enable USB gadget for rock-pi-4 boards. This would help to use fastboot by default. Note: Connect the Host USB cable (Port A or C) to rock-pi-4 Upper USB 3.0 port. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang Thanks, - Kever --- Changes for

Re: [PATCH v2 1/6] rock-pi-4: Enable USB3 Host【请注意,邮件由linux-rockchip-bounces+kever.yang=rock-chips....@lists.infradead.org代发】

2020-06-27 Thread Kever Yang
On 2020/6/18 下午10:12, Jagan Teki wrote: Enable USB3.0 Host support for RockPI-4 boards. Note that the Upper USB3.0 port is marked as otg and lower USB3.0 port marked as host, so this below log capture when USB3.0 mass storage plug in at lower USB 3.0 port. Log: Bus usb@fe38: USB EHCI

Re: [PATCH] rockchip: rk3399: allow deselecting SPL_ATF_NO_PLATFORM_PARAM

2020-06-27 Thread Kever Yang
On 2020/6/16 上午7:30, Hugh Cole-Baker wrote: SPL_ATF_NO_PLATFORM_PARAM is selected by default for RK3399 configs, to guard against issues when used with TF-A versions that perform insufficient validation on the platform parameter. However, since commit 8109f738ffa7 "rockchip: increase FDT

Re: [PATCH 3/4] ARM: dts: rockchip: Sync v5.7-rc1 Radxa Dalang Carrier

2020-06-27 Thread Kever Yang
On 2020/6/10 下午6:36, Jagan Teki wrote: Carrier board often referred as baseboard. For making complete SBC or any other industrial boards, these carrier boards will be used with associated SOMs. Radxa has Dalang carrier board which supports on-board peripherals, ports like USB-2.0, USB-3.0,

Re: [PATCH 4/4] arm64: dts: rockchip: Add Radxa Rock Pi N10 initial support

2020-06-27 Thread Kever Yang
On 2020/6/10 下午6:36, Jagan Teki wrote: Rock Pi N10 is a Rockchip RK3399Pro based SBC, which has - VMARC RK3399Pro SOM (as per SMARC standard) from Vamrs. - Compatible carrier board from Radxa. VAMRC RK3399Pro SOM need to mount on top of radxa dalang carrier board for making Rock Pi N10 SBC.

Re: [PATCH 1/4] arm64: dts: rockchip: Sync v5.7-rc1 rk3399pro.dtsi

2020-06-27 Thread Kever Yang
On 2020/6/10 下午6:36, Jagan Teki wrote: Sync linux-next v5.7-rc1 rk3399pro.dtsi. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang Thanks, - Kever --- arch/arm/dts/rk3399pro.dtsi | 22 ++ 1 file changed, 22 insertions(+) create mode 100644

Re: [PATCH 2/4] arm64: dts: rockchip: Sync v5.7-rc1 VMARC RK3399Pro SOM

2020-06-27 Thread Kever Yang
On 2020/6/10 下午6:36, Jagan Teki wrote: VMARC RK3399Pro SOM is a standard SMARC SOM design with Rockchip RK3399Pro SoC, which is designed by Vamrs. Specification: - Rockchip RK3399Pro - PMIC: RK809-3 - SD slot, 16GiB eMMC - 2xUSB-2.0, 1xUSB3.0 - USB-C for power supply - Ethernet, PCIe - HDMI,

Re: [PATCH 3/3] rockchip: Pinebook Pro: Fix SPI flash and store env on it

2020-06-27 Thread Kever Yang
On 2020/6/9 上午6:50, Peter Robinson wrote: Some minor fixes for SPI flash on the Pinebook Pro and also default to saving environment to the SPI flash as it's guaranteed to be on board. Signed-off-by: Peter Robinson Reviewed-by: Kever Yang Thanks, - Kever ---

Re: [PATCH 2/3] rockchip: Pinebook Pro: Fix USB and the USB attached keyboard

2020-06-27 Thread Kever Yang
On 2020/6/9 上午6:50, Peter Robinson wrote: The built in keyboard on the Pinebook Pro is attached via USB so fix this up to ensure USB works as expected. Signed-off-by: Peter Robinson Reviewed-by: Kever Yang Thanks, - Kever --- configs/pinebook-pro-rk3399_defconfig | 5 +

Re: [PATCH 1/3] rockchip: Pinebook Pro: enable rng to provide an entropy source

2020-06-27 Thread Kever Yang
On 2020/6/9 上午6:50, Peter Robinson wrote: Enable the rng so UEFI can provide entropy for KASLR Signed-off-by: Peter Robinson Reviewed-by: Kever Yang Thanks, - Kever --- arch/arm/dts/rk3399-pinebook-pro-u-boot.dtsi | 4 arch/arm/dts/rk3399-rockpro64-u-boot.dtsi| 4

Re: [PATCH] rockchip: i2c: fix switch to new implementation for rk3188

2020-06-27 Thread Kever Yang
+David, Hi David,     Could you help to commend on this? Hi Alex,     Thanks for your patch. On 2020/6/22 下午9:06, Alexander Kochetkov wrote: The commit e7ae4cf27a6d 'pinctrl: rockchip: Add common rockchip pinctrl driver' dropped rk3188_pinctrl_request operation, that did switching to new

Re: [PATCH] rockchip: rk3188: Fix back to BROM boot

2020-06-27 Thread Kever Yang
On 2020/6/22 下午9:19, Alexander Kochetkov wrote: Move the setting for noc remap out of SPL code. Changing noc remap inside SPL results in breaking back to BROM boot. Fixes commit c14fe2a8e192 ("rockchip: rk3188: Move SoC one time setting into arch_cpu_init()"). Signed-off-by: Alexander

Re: [PATCH] rockchip: rk3188: Fix back to BROM boot

2020-06-27 Thread Kever Yang
On 2020/6/22 下午9:19, Alexander Kochetkov wrote: Move the setting for noc remap out of SPL code. Changing noc remap inside SPL results in breaking back to BROM boot. Fixes commit c14fe2a8e192 ("rockchip: rk3188: Move SoC one time setting into arch_cpu_init()"). Signed-off-by: Alexander

Re: [PATCH] rk3399: Add BOOTENV_SF command

2020-06-27 Thread Kever Yang
On 2020/6/8 下午10:17, Jagan Teki wrote: Add missing BOOTENV_SF command in rk3399 config. Fix it. Fixes: f263b860acf8 ("rk3399: Enable SF distro bootcmd") Signed-off-by: Jagan Teki Reported-by: Suniel Mahesh Tested-by: Suniel Mahesh Applied to u-boot-rockchip master branch. ---

Re: [PATCH] rk3399: Add BOOTENV_SF command

2020-06-27 Thread Kever Yang
On 2020/6/8 下午10:17, Jagan Teki wrote: Add missing BOOTENV_SF command in rk3399 config. Fix it. Fixes: f263b860acf8 ("rk3399: Enable SF distro bootcmd") Signed-off-by: Jagan Teki Reported-by: Suniel Mahesh Tested-by: Suniel Mahesh Reviewed-by: Kever Yang Thanks, - Kever ---

Re: [PATCH] rk3399: Add BOOTENV_SF command

2020-06-27 Thread Kever Yang
Hi Tom, On 2020/6/27 上午4:21, Tom Rini wrote: On Thu, Jun 25, 2020 at 08:32:10PM +0530, Jagan Teki wrote: On Mon, Jun 8, 2020 at 7:47 PM Jagan Teki wrote: Add missing BOOTENV_SF command in rk3399 config. Fix it. Fixes: f263b860acf8 ("rk3399: Enable SF distro bootcmd") Signed-off-by: Jagan

Re: [PATCH] rockchip: rockpro64: initialize USB in preboot【请注意,邮件由u-boot-boun...@lists.denx.de代发】

2020-06-27 Thread Kever Yang
On 2020/6/4 上午11:09, Kever Yang wrote: On 2020/6/3 下午11:44, Marcin Juszkiewicz wrote: With video output enabled and USB keyboard supported there is no need for serial console. So let initialize USB subsystem so keyboard connected to board (either directly or via hub) can be used to

Re: [PATCH] test/py: test_efi_fit: Update #size-cells to 1

2020-06-27 Thread Heinrich Schuchardt
On 6/27/20 2:12 PM, Bin Meng wrote: > From: Bin Meng > > test_efi_fit tests fail on RISC-V currently. This is due to the > RISC-V arch_fixup_fdt() checks the #size-cells of the root node > in order to correctly fix up the reserved memory node. > > Update #size-cells to 1 so tests can pass. > >

Re: [PATCH] x86: Don't build some unused objects in TPL

2020-06-27 Thread Bin Meng
+Simon, On Sat, Jun 27, 2020 at 8:00 PM Tom Rini wrote: > > In the future if we have separate symbols for DM_SPI_FLASH and > SPL_DM_SPI_FLASH we will not always have function declarations available > for some DM calls. This in turn leads to build warnings but not > failures as the code isn't

Re: [PATCH] rockchip: Add delay after link-training

2020-06-27 Thread Kever Yang
Hi Kurt, On 2020/6/4 上午5:17, Peter Geis wrote: On Tue, Jun 2, 2020 at 11:12 AM Kurt Miller wrote: On Tue, 2020-06-02 at 10:23 +0800, Shawn Lin wrote: 在 2020/6/2 9:59, Kever Yang 写道: Hi Kurt, On 2020/6/2 上午4:30, Kurt Miller wrote: On at least the RockPro64, many cards will trip a

Re: rockchip: correctly set vop0 or vop1

2020-06-27 Thread Kever Yang
+Andy Yan for this topic, Hi Patrick and Arnaud,     I would like to leave this patch until the code fits for all the socs, Thanks, - Kever On 2020/6/8 下午8:39, Patrick Wildt wrote: On Mon, Jun 08, 2020 at 02:24:32PM +0200, Arnaud Patard wrote: Patrick Wildt writes: On Mon, Jun 08, 2020

[PATCH] azure: gitlab: travis: Update OpenSBI used for RISC-V testing

2020-06-27 Thread Bin Meng
From: Bin Meng Change to use OpenSBI release v0.8 generic platform images for QEMU RISC-V CI testing for azure, gitlab and travis-ci. Signed-off-by: Bin Meng --- Depends on the following 2 patches: - "fdtdec: Honor #address-cells and #size-cells in fdtdec_add_reserved_memory()" which is

[PATCH] test/py: test_efi_fit: Update #size-cells to 1

2020-06-27 Thread Bin Meng
From: Bin Meng test_efi_fit tests fail on RISC-V currently. This is due to the RISC-V arch_fixup_fdt() checks the #size-cells of the root node in order to correctly fix up the reserved memory node. Update #size-cells to 1 so tests can pass. Signed-off-by: Bin Meng ---

[PATCH] x86: Don't build some unused objects in TPL

2020-06-27 Thread Tom Rini
In the future if we have separate symbols for DM_SPI_FLASH and SPL_DM_SPI_FLASH we will not always have function declarations available for some DM calls. This in turn leads to build warnings but not failures as the code isn't used and is discarded at link time. Restructure things to not build

RE: [PATCH v6 2/4] uclass: cpu: fix to display proper CPU features

2020-06-27 Thread Sagar Kadam
Hi Bin, > -Original Message- > From: Bin Meng > Sent: Friday, June 26, 2020 6:50 PM > To: Sagar Kadam > Cc: U-Boot Mailing List ; Rick Chen > ; Bin Meng ; Jagan Teki > ; Pragnesh Patel > ; Anup Patel ; Simon > Glass ; Ye Li ; Peng Fan > ; Sean Anderson > Subject: Re: [PATCH v6 2/4]

RE: [PATCH v6 3/4] riscv: cpu: correctly handle the setting of CPU_FEAT_MMU bit

2020-06-27 Thread Sagar Kadam
Hi, > -Original Message- > From: Bin Meng > Sent: Friday, June 26, 2020 6:50 PM > To: Sagar Kadam > Cc: U-Boot Mailing List ; Rick Chen > ; Bin Meng ; Jagan Teki > ; Pragnesh Patel > ; Anup Patel ; Simon > Glass ; Ye Li ; Peng Fan > ; Sean Anderson > Subject: Re: [PATCH v6 3/4] riscv:

[PATCH 1/1] fs: error handling in do_load()

2020-06-27 Thread Heinrich Schuchardt
If a file cannot be loaded, show an error message. Set the EFI boot device only after successfully loading a file. Signed-off-by: Heinrich Schuchardt --- fs/fs.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/fs/fs.c b/fs/fs.c index ad4caaeb1e..12fa5a6489

[PATCH 1/1] crypto/fsl: unused value in caam_hash_update()

2020-06-27 Thread Heinrich Schuchardt
The value 0 assigned to final is overwritten before ever being used. Remove the assignment. Signed-off-by: Heinrich Schuchardt --- drivers/crypto/fsl/fsl_hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/fsl/fsl_hash.c b/drivers/crypto/fsl/fsl_hash.c

[PATCH 1/1] crypto/fsl: correct printf() statement.

2020-06-27 Thread Heinrich Schuchardt
The sequence of arguments should match the format string. For printing unsigned numbers we should use %u. Signed-off-by: Heinrich Schuchardt --- drivers/crypto/fsl/jobdesc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/fsl/jobdesc.c

[PATCH V2 1/2] clk: imx8mm: fix clk set parent

2020-06-27 Thread Peng Fan
Fix clk set parent, so we could still have correct clocks after parent changing. Signed-off-by: Peng Fan --- V2: Split fix into a single patch of https://patchwork.ozlabs.org/project/uboot/patch/20200503125956.6244-1-peng@nxp.com/ drivers/clk/imx/clk-imx8mm.c | 5 - 1 file changed,

[PATCH V2 2/2] clk: imx8mm: Add qspi clock

2020-06-27 Thread Peng Fan
Add qspi clock Signed-off-by: Peng Fan --- V2: Split a single patch from https://patchwork.ozlabs.org/project/uboot/patch/20200503125956.6244-1-peng@nxp.com/ drivers/clk/imx/clk-imx8mm.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/clk/imx/clk-imx8mm.c