Re: [U-Boot] [PATCH v2 7/7] riscv: ax25: use CCTL to flush d-cache

2019-07-10 Thread Bin Meng
On Tue, Jul 9, 2019 at 5:34 PM Andes wrote: > > From: Rick Chen > > Use CCTL command to do d-cache write back > and invalidate instead of fence. > > Signed-off-by: Rick Chen > Cc: Greentime Hu > Cc: KC Lin > --- > arch/riscv/cpu/ax25/cache.c | 22 +- > 1 file changed, 13

Re: [U-Boot] [u-boot][xhci] Dealing with XHCI controllers with spurious success

2019-07-10 Thread Bin Meng
Hi Aaron, On Thu, Jul 11, 2019 at 12:50 PM Aaron Williams wrote: > > Hi All, > > I'm running into a problem with the XHCI driver on our SOC where I am getting > spurious success TRBs after a short packet response. In this particular case, > the driver for a USB network controller has a receive

Re: [U-Boot] [PATCH 1/1 v1] arm: mvebu: crs305-1g-4s: Enable CMD_BOOTZ and increase SYS_BOOTM_LEN

2019-07-10 Thread Stefan Roese
On 10.07.19 22:24, Luka Kovacic wrote: On 2019-06-26 07:17, Stefan Roese wrote: On 25.06.19 13:57, Luka Kovacic wrote: This change enables CMD_BOOTZ and increases SYS_BOOTM_LEN to make it easier to work with kernel images. Signed-off-by: Luka Kovacic Reviewed-by: Stefan Roese Thanks,

[U-Boot] [u-boot][xhci] Dealing with XHCI controllers with spurious success

2019-07-10 Thread Aaron Williams
Hi All, I'm running into a problem with the XHCI driver on our SOC where I am getting spurious success TRBs after a short packet response. In this particular case, the driver for a USB network controller has a receive buffer that crosses a 64K boundary. This results in two TRBs being created

Re: [U-Boot] [PATCH v7 7/9] riscv: sifive: fu540: Setup ethaddr env variable using OTP

2019-07-10 Thread Anup Patel
> -Original Message- > From: Troy Benjegerdes > Sent: Wednesday, July 10, 2019 10:45 PM > To: Anup Patel ; Sagar Karandikar > ; Joey Hewitt > Cc: Rick Chen ; Bin Meng ; > Lukas Auer ; Simon Glass > ; Ramon Fried ; Joe > Hershberger ; Palmer Dabbelt > ; Paul Walmsley ; Atish > Patra ;

Re: [U-Boot] [PATCH v2 6/7] riscv: dts: move out AE350 L2 node from cpus node

2019-07-10 Thread Bin Meng
On Tue, Jul 9, 2019 at 5:34 PM Andes wrote: > > From: Rick Chen > > When L2 node exists inside cpus node, uclass_get_device > can not parse L2 node successfully. So move it outside > from cpus node. > > Also add tag-ram-ctl and data-ram-ctl attributes for > v5l2 cache controller driver. This can

Re: [U-Boot] [PATCH v2 5/7] riscv: cache: Flush L2 cache before jump to linux

2019-07-10 Thread Bin Meng
On Tue, Jul 9, 2019 at 5:34 PM Andes wrote: > > From: Rick Chen > > Flush and disable cache in cleanup_before_linux() > which will be called before jump to linux. > > The sequence will be preferred as below: > L1 flush -> L1 disable -> L2 flush -> L2 disable > > Signed-off-by: Rick Chen > Cc:

Re: [U-Boot] [PATCH] mmc: fsl_esdhc_imx: fix config check issue when building in SPL

2019-07-10 Thread Bin Meng
On Thu, Jul 11, 2019 at 11:29 AM Ye Li wrote: > > Should use CONFIG_IS_ENABLED not IS_ENABLED for clock and regulator drivers, > CONFIG_IS_ENABLED will check the CONFIG_SPL_CLK and CONFIG_SPL_DM_REGULATOR > when building SPL. > > Signed-off-by: Ye Li > --- > drivers/mmc/fsl_esdhc_imx.c | 4 ++--

Re: [U-Boot] [PATCH] serial_lpuart: Fix config check issue when using clk driver in SPL

2019-07-10 Thread Bin Meng
On Thu, Jul 11, 2019 at 11:33 AM Ye Li wrote: > > Should use CONFIG_IS_ENABLED not IS_ENABLED for CLK driver, so it will > check the CONFIG_SPL_CLK when building SPL > > Signed-off-by: Ye Li > --- > drivers/serial/serial_lpuart.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) >

[U-Boot] [PATCH] rpi3: Enable verified boot from FIT image

2019-07-10 Thread Jun Nie
Enable verified boot from FIT image with select configs and specify boot script image node in FIT image, the FIT image is verified before it is run. Code that reusing dtb in firmware is disabled, so that the dtb with pubic key packed in u-boot.bin can be used to verify the signature of next stage

[U-Boot] [PATCH] serial_lpuart: Fix config check issue when using clk driver in SPL

2019-07-10 Thread Ye Li
Should use CONFIG_IS_ENABLED not IS_ENABLED for CLK driver, so it will check the CONFIG_SPL_CLK when building SPL Signed-off-by: Ye Li --- drivers/serial/serial_lpuart.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/serial/serial_lpuart.c

[U-Boot] [PATCH] mmc: fsl_esdhc_imx: fix config check issue when building in SPL

2019-07-10 Thread Ye Li
Should use CONFIG_IS_ENABLED not IS_ENABLED for clock and regulator drivers, CONFIG_IS_ENABLED will check the CONFIG_SPL_CLK and CONFIG_SPL_DM_REGULATOR when building SPL. Signed-off-by: Ye Li --- drivers/mmc/fsl_esdhc_imx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [U-Boot] [PATCH v2 4/7] riscv: ax25: add imply v5l2 cache controller

2019-07-10 Thread Bin Meng
On Tue, Jul 9, 2019 at 5:34 PM Andes wrote: > > From: Rick Chen > > Select the v5l2 UCLASS_CACHE driver for ax25. > > Signed-off-by: Rick Chen > Cc: Greentime Hu > Cc: KC Lin > --- > arch/riscv/cpu/ax25/Kconfig | 1 + > 1 file changed, 1 insertion(+) > Reviewed-by: Bin Meng

Re: [U-Boot] [PATCH v2 3/7] riscv: ae350: use the v5l2 driver to configure the cache

2019-07-10 Thread Bin Meng
On Tue, Jul 9, 2019 at 5:34 PM Andes wrote: > > From: Rick Chen > > Find the UCLASS_CACHE driver to configure the cache controller's > settings. > > Signed-off-by: Rick Chen > Cc: Greentime Hu > Cc: KC Lin > --- > board/AndesTech/ax25-ae350/ax25-ae350.c | 9 + > 1 file changed, 9

Re: [U-Boot] [PATCH v2 2/7] dm: cache: add v5l2 cache controller driver

2019-07-10 Thread Bin Meng
On Tue, Jul 9, 2019 at 5:34 PM Andes wrote: > > From: Rick Chen > > Add a v5l2 cache controller driver that is usually found on > Andes RISC-V ae350 platform. It will parse the cache settings > from the dtb. > > In this version tag and data ram control timing can be adjusted > by the requirement

Re: [U-Boot] [PATCH v2 1/7] dm: cache: Add enable and disable ops for cache uclass

2019-07-10 Thread Bin Meng
On Tue, Jul 9, 2019 at 5:33 PM Andes wrote: > > From: Rick Chen > > The L2 cache will be enabled in init flow of dm cache > driver when it detect L2 node in dtb. > > When U-Boot jump to Linux Kernel, the disable ops will jumps > be called to flush and disable the L2 cache via the dm > cache

Re: [U-Boot] [PATCH v7 7/9] riscv: sifive: fu540: Setup ethaddr env variable using OTP

2019-07-10 Thread Alistair Francis
On Wed, 2019-07-10 at 12:15 -0500, Troy Benjegerdes wrote: > > On Jun 23, 2019, at 11:03 PM, Anup Patel > > wrote: > > > > This patch extends SiFive FU540 board support to setup ethaddr > > env variable based on board serialnum read from OTP. > > > > Signed-off-by: Anup Patel > > --- > >

Re: [U-Boot] [RESEND PATCH v2 08/15] arm: socfpga: agilex: Add clock manager support

2019-07-10 Thread Ley Foon Tan
On Tue, Jul 9, 2019 at 1:16 PM Simon Goldschmidt wrote: > > Am 04.07.2019 um 10:56 schrieb Ley Foon Tan: > > Add clock manager support for Agilex. > > > > Signed-off-by: Ley Foon Tan > > > > --- > > v2: > > - Get clocks from clock DM. > > Wait, can you explain this a bit more? If you get clocks

Re: [U-Boot] [RESEND PATCH v2 07/15] clk: agilex: Add clock driver for Agilex.

2019-07-10 Thread Ley Foon Tan
On Tue, Jul 9, 2019 at 1:13 PM Simon Goldschmidt wrote: > > Am 04.07.2019 um 10:56 schrieb Ley Foon Tan: > > Add clock manager driver for Agilex. Provides clock initialization > > and get_rate functions. > > Thanks for adding this to the patchset. This is quite a big change, I > don't have the

Re: [U-Boot] [RESEND PATCH v2 06/15] arm: socfpga: agilex: Add system manager support

2019-07-10 Thread Ley Foon Tan
On Tue, Jul 9, 2019 at 1:09 PM Simon Goldschmidt wrote: > > Am 04.07.2019 um 10:56 schrieb Ley Foon Tan: > > Add system manager support for Agilex. > > > > Signed-off-by: Ley Foon Tan > > > > --- > > v2: > > - Include system_manager_s10_agilex_common.h in system_manager_agilex.h > > --- > >

[U-Boot] [PATCH v2 01/21] patman: Update cros_subprocess to use bytes

2019-07-10 Thread Simon Glass
At present this function uses lists and strings. This does not work so well with Python 3, and testing against '' does not work for a bytearray. Update the code to fix these issues. Signed-off-by: Simon Glass --- Changes in v2: - Update to use bytes instead of bytearray

Re: [U-Boot] [RESEND PATCH v2 03/15] arm: socfpga: Move Stratix10 and Agilex reset manager common code

2019-07-10 Thread Ley Foon Tan
On Tue, Jul 9, 2019 at 12:57 PM Simon Goldschmidt wrote: > > Am 04.07.2019 um 10:56 schrieb Ley Foon Tan: > > Move Stratix10 and Agilex reset manager common code to reset_manager.h. > > Hmm, I'd feel better if this was in a file common to these two > architectures, not in such a generic file. Do

Re: [U-Boot] [RESEND PATCH v2 14/15] arm: dts: agilex: Add base dtsi and devkit dts

2019-07-10 Thread Ley Foon Tan
On Tue, Jul 9, 2019 at 1:42 PM Simon Goldschmidt wrote: > > Am 04.07.2019 um 10:56 schrieb Ley Foon Tan: > > Add device tree files for Agilex SoC platform. > > > > Based on Linux Commit ID 4b36daf9ada30. > > > > Signed-off-by: Ley Foon Tan > > Reviewed-by: Simon Goldschmidt > > Tiny nit

[U-Boot] [RFC] bug.h: Drop filename from BUG/WARNING logs if building for TPL/SPL

2019-07-10 Thread Andreas Dannenberg
On several platforms space is very tight when building for SPL or TPL. To claw back a few bytes to be used for code remove the __FILE__ name from the BUG() and WARN() type macros. Since those macros still print the function name plus a line number this should not really affect the ability to

Re: [U-Boot] [PATCH 1/1 v1] arm: mvebu: crs305-1g-4s: Enable CMD_BOOTZ and increase SYS_BOOTM_LEN

2019-07-10 Thread Luka Kovacic
On 2019-06-26 07:17, Stefan Roese wrote: On 25.06.19 13:57, Luka Kovacic wrote: This change enables CMD_BOOTZ and increases SYS_BOOTM_LEN to make it easier to work with kernel images. Signed-off-by: Luka Kovacic Reviewed-by: Stefan Roese Thanks, Stefan Hi, When will the patch be applied

Re: [U-Boot] Please pull from u-boot-i2c

2019-07-10 Thread Tom Rini
On Wed, Jul 10, 2019 at 07:25:02AM +0200, Heiko Schocher wrote: > Hello Tom, > > please pull from u-boot-i2c.git master > > The following changes since commit e5aee22e4be75e75a854ab64503fc80598bc2004: > > Prepare v2019.07 (2019-07-08 15:23:28 -0400) > > are available in the Git repository

Re: [U-Boot] Pull request: u-boot-ubi/master

2019-07-10 Thread Tom Rini
On Wed, Jul 10, 2019 at 07:21:46AM +0200, Heiko Schocher wrote: > Hello Tom, > > please pull from u-boot-ubi-git master > > The following changes since commit e5aee22e4be75e75a854ab64503fc80598bc2004: > > Prepare v2019.07 (2019-07-08 15:23:28 -0400) > > are available in the Git repository

[U-Boot] [PATCH v2] arm: socfpga: fix 3 boards missing env var "socfpga_legacy_reset_compat"

2019-07-10 Thread Simon Goldschmidt
This fixes 3 boards that don't use CONFIG_EXTRA_ENV_SETTINGS from socfpga_common.h. They need to enable reset manager compatibility mode unless all peripheral drivers in Linux support reset handling. Fixes: commit 4b2e32efa4e7 ("arm: socfpga: gen5: deassert peripheral reset by default")

Re: [U-Boot] [PATCH] arm: socfpga: fix 3 boards missing env var "socfpga_legacy_reset_compat"

2019-07-10 Thread Simon Goldschmidt
Am 09.05.2019 um 21:51 schrieb Marek Vasut: On 5/9/19 8:42 PM, Simon Goldschmidt wrote: [...] diff --git a/include/configs/socfpga_vining_fpga.h b/include/configs/socfpga_vining_fpga.h index 29a92b9146..737a304217 100644 --- a/include/configs/socfpga_vining_fpga.h +++

[U-Boot] [PATCH v2] x86: Avoid writing temporary asl files into the source tree

2019-07-10 Thread Simon Glass
At present the iasl tool (Intel ACPI (Advanced Configuration and Power Interface) Source Language compiler) is called in such a way that it uses the source directory for its temporary files. This means we end up with these files when building x86 boards: board/dfi/dfi-bt700/dsdt.aml

Re: [U-Boot] [PATCH v3 2/4] sysreset: socfpga: gen5: add sysreset driver

2019-07-10 Thread Simon Goldschmidt
Am 09.05.2019 um 21:53 schrieb Marek Vasut: On 5/9/19 8:55 PM, Simon Goldschmidt wrote: On 09.05.19 20:08, Simon Goldschmidt wrote: This adds a UCLASS_SYSRESET sysreset driver for socfgpa gen5. Signed-off-by: Simon Goldschmidt --- Changes in v3: - moved socfpga gen5 sysreset driver to

[U-Boot] [PATCH v2] arm: socfpga: do not reboot via SRAM

2019-07-10 Thread Simon Goldschmidt
This removes the code that enables the Boot ROM to just jump to SRAM instead of loading SPL from the original boot source on warm reboot. The reason for removing this is that it is insecure: SRAM might be overwritten at the time the warm reboot is done. Instead, use the default behaviour of

[U-Boot] [PATCH V2 3/3] ARM: da850-evm: Enable the USB PHY and MUSB Driver

2019-07-10 Thread Adam Ford
This patch will enable the MUSB driver to support mass storage devices connected to the OTG port in host mode. Signed-off-by: Adam Ford --- configs/da850evm_defconfig| 6 ++ configs/da850evm_direct_nor_defconfig | 6 ++ configs/da850evm_nand_defconfig | 6 ++

[U-Boot] [PATCH V2 2/3] usb: musb-new: Add support for da8xx-musb

2019-07-10 Thread Adam Ford
With the recently added phy driver, this patch will enable the musb driver on the da8xx to operate in host mode. Signed-off-by: Adam Ford --- drivers/usb/musb-new/Kconfig | 8 + drivers/usb/musb-new/Makefile | 1 + drivers/usb/musb-new/da8xx.c | 350 ++ 3

[U-Boot] [PATCH V2 1/3] phy: Add support for phy-da8xx-usb

2019-07-10 Thread Adam Ford
In preparation for supporting the musb driver, this patch adds support for the usb phy associated with the musb driver. Signed-off-by: Adam Ford --- drivers/phy/Kconfig | 6 drivers/phy/Makefile| 1 + drivers/phy/phy-da8xx-usb.c | 64 +

Re: [U-Boot] [PATCH] cmd: reset: add parameters to specify reboot_mode

2019-07-10 Thread Simon Goldschmidt
Simon, I know I've slept for a while before retriggering this, but... Am 04.05.2019 um 20:23 schrieb Simon Goldschmidt: Am 03.05.2019 um 23:10 schrieb Simon Glass: Hi Simon, On Fri, 3 May 2019 at 14:43, Marek Vasut wrote: On 5/3/19 10:40 PM, Simon Goldschmidt wrote: On 03.05.19 22:37,

Re: [U-Boot] [PATCH] arm: socfpga: control reboot from SRAM via env callback

2019-07-10 Thread Simon Goldschmidt
Am 06.05.2019 um 23:12 schrieb Marek Vasut: On 5/6/19 9:50 PM, Simon Goldschmidt wrote: Am 06.05.2019 um 00:51 schrieb Marek Vasut: On 5/5/19 10:21 PM, Simon Goldschmidt wrote: Am 05.05.2019 um 22:17 schrieb Marek Vasut: On 5/5/19 8:05 AM, Simon Goldschmidt wrote: On 05.05.19 03:42, Marek

[U-Boot] [PATCH 2/2] board: siemens: extend factoryset reading for giedi and deneb boards

2019-07-10 Thread Anatolij Gustschin
giedi and deneb are i.MX8X based and have additional data with WLAN MAC in factoryset container. Enable building for these boards and adapt factoryset functions to set WLAN MAC and dtb name in environment. Signed-off-by: Anatolij Gustschin --- board/siemens/common/factoryset.c | 78

[U-Boot] [PATCH 1/2] board: siemens: adapt factoryset reading for DM_I2C enabled boards

2019-07-10 Thread Anatolij Gustschin
For new boards we always enable DM_I2C. Extend factoryset functions to support EEPROM reading on these boards. Signed-off-by: Anatolij Gustschin --- board/siemens/common/factoryset.c | 45 +-- 1 file changed, 43 insertions(+), 2 deletions(-) diff --git

Re: [U-Boot] [PATCH v7 7/9] riscv: sifive: fu540: Setup ethaddr env variable using OTP

2019-07-10 Thread Troy Benjegerdes
> On Jun 23, 2019, at 11:03 PM, Anup Patel wrote: > > This patch extends SiFive FU540 board support to setup ethaddr > env variable based on board serialnum read from OTP. > > Signed-off-by: Anup Patel > --- > board/sifive/fu540/fu540.c | 122 + >

[U-Boot] [PATCH] chromium: Update docs to clone vboot_reference directly

2019-07-10 Thread Simon Glass
We don't need a full checkout of Chrome OS to build U-Boot with Chromium OS verified boot. Update the instructions accordingly and fix a typo which joins the output directory and defconfig. Signed-off-by: Simon Glass --- doc/README.chromium | 12 +--- 1 file changed, 9 insertions(+), 3

[U-Boot] [PATCH] ARM: imx: Support larger SPL size on IMX6DQ

2019-07-10 Thread Robert Hancock
Previously the SPL size on all iMX6 platforms was restricted to 68KB because the OCRAM size on iMX6SL/DL parts is only 128KB. However, the other iMX6 variants have 256KB of OCRAM. Add an option CONFIG_MX6_OCRAM_256KB which allows using the full size on boards which don't need to support the SL/DL

Re: [U-Boot] [PATCH v3 5/7] usb: add usb_int_msg_nonblock

2019-07-10 Thread Michal Suchánek
On Fri, 5 Jul 2019 14:13:50 +0200 Marek Vasut wrote: > On 7/5/19 12:44 PM, Michal Suchanek wrote: > > Variant of the int_msg wrapper that does not introduce excessive retry > > delay on error. > > > > Signed-off-by: Michal Suchanek > > --- > > v2: usb_submit_int_msg -> usb_int_msg > > --- > >

Re: [U-Boot] [PATCH v3 2/7] usb: usb_submit_int_msg -> usb_int_msg

2019-07-10 Thread Michal Suchánek
On Fri, 5 Jul 2019 21:51:43 +0800 Bin Meng wrote: > On Fri, Jul 5, 2019 at 6:44 PM Michal Suchanek wrote: > > > > This aligns naming with usb_bulk_msg and usb_control_msg. > > > > Signed-off-by: Michal Suchanek > > --- > > v2: new patch > > --- > > common/usb.c | 2 +- > >

Re: [U-Boot] [PATCH v3 1/7] usb_kdb: only process events succesfully received

2019-07-10 Thread Michal Suchánek
On Fri, 5 Jul 2019 14:12:36 +0200 Marek Vasut wrote: > On 7/5/19 12:44 PM, Michal Suchanek wrote: > > Causes unbound key repeat on error otherwise. > > > > Signed-off-by: Michal Suchanek > > --- > > v2: fix indentation > > What changed in V3 ? > > > --- > > common/usb_kbd.c | 7 +++ >

[U-Boot] Standalone program help needed

2019-07-10 Thread Szabolcs Báder
Hello, I read the past posts (eg. from 2014) in this topic, but wasn't helpful. I would like to run from u-boot a test binary or test image, both good. I thought, I could solve this with standalone applications. I use gcc-linaro-6.2-2016.11.tar.xz > arm-linux-gnuabi- I downloaded the u-boot

[U-Boot] RPi3B rainbow screen for u-boot v2019.07 rpi_3_32b_defconfig

2019-07-10 Thread Victor Seryodkin
u-boot v2019.07 (rpi_3_32b_defconfig) failed to boot on Raspberry Pi3B Configuration Raspberry Pi 3B (not 3B plus) OS: Raspbian stretch lite Distro: 2018-11-13-raspbian-stretch.zip http://downloads.raspberrypi.org/raspbian/images/raspbian-2018-11-15/2018-11-13-raspbian-stretch.zip Booting RPi

[U-Boot] Splash image Connect Core Imx53

2019-07-10 Thread Ignacio Castellano
Hi, i need information about use splash image in connectcore Imx53. I habilitated #CONFIG_UBOOT_SPLASH in the ccimx53.h config and update display list to add my LVDS (AUO G104STN01.0) display but its not function.I use the video driver mxc_ipuv3_fb.c. When Kernel use the "same driver" ( only

[U-Boot] [PATCH v2] arm: mvebu: set 38x and 39x AVS on lower frequency

2019-07-10 Thread Baruch Siach
Reduce Auto Voltage Scaling VDD limit when core frequency is lower than 1600MHz. This reduces core voltage level from 1.25V to 1.15V, which saves power. The code is taken from Marvell's U-Boot 2013.01 revision 18.06. Reviewed-by: Chris Packham Tested-by: Chris Packham Signed-off-by: Baruch

Re: [U-Boot] [ANN] U-Boot v2019.07 released

2019-07-10 Thread Wolfgang Denk
Dear Tom. In message <20190708192531.GO8554@bill-the-cat> you wrote: > > So it is release day and once again we've had a few important fixes come > in over the last few days. But I still feel comfortable doing the > release today. Our next release is v2019.10 and I am hopeful this cycle > of

Re: [U-Boot] Please pull u-boot-dm

2019-07-10 Thread Tom Rini
On Tue, Jul 09, 2019 at 11:16:18AM -0600, Simon Glass wrote: > Hi Tom, > > Build is here: > > https://travis-ci.org/sglass68/u-boot/builds/556001438 > > (looks like there is a unicode issue I need to look at) > > The following changes since commit e5aee22e4be75e75a854ab64503fc80598bc2004: >

Re: [U-Boot] [PATCH V2 28/51] clk: imx: add i.MX8MM clk driver

2019-07-10 Thread Schrempf Frieder
Hi Peng, On 08.07.19 03:39, Peng Fan wrote: > Add i.MX8MM clk driver support. > > Signed-off-by: Peng Fan > --- > arch/arm/mach-imx/imx8m/clock_imx8mm.c | 203 > + > drivers/clk/imx/Makefile | 1 + > drivers/clk/imx/clk-imx8mm.c |

Re: [U-Boot] [PATCH V2 04/51] i2c: mxc: add CONFIG_CLK support

2019-07-10 Thread Schrempf Frieder
Hi Peng, On 08.07.19 03:38, Peng Fan wrote: > When CONFIG_CLK enabled, use CLK UCLASS for clk related settings. > > Signed-off-by: Peng Fan > --- > arch/arm/include/asm/mach-imx/mxc_i2c.h | 6 ++ > drivers/i2c/mxc_i2c.c | 17 + > 2 files changed, 23

[U-Boot] [PATCH 2/2] serial: lpuart: request dm device removal when booting OS

2019-07-10 Thread Anatolij Gustschin
Extend the driver to allow dm device removal, but always let the console serial device power domain enabled, so that U-Boot doesn't crash when i. e. the serial output is enabled for debugging. Signed-off-by: Anatolij Gustschin --- drivers/serial/serial_lpuart.c | 9 + 1 file changed, 9

[U-Boot] [PATCH 1/2] dm: core: device: switch off power domain after device removal

2019-07-10 Thread Anatolij Gustschin
The power domain associated with a device is enabled when probing, but currently the domain remains enabled when the device is removed. Some boards started to disable power domains for selected devices via custom board_quiesce_devices(), but it doesn't work in many cases, i. e. because devices

[U-Boot] [PATCH v4 4/4] armv8: dts: ls1028ardb: Add slave nodes under the i2c0 controller

2019-07-10 Thread Chuanhua Han
This patch adds some slave nodes to support the i2c dm on the device side under the i2c0 controller. Signed-off-by: Chuanhua Han --- depends on: - https://patchwork.ozlabs.org/project/uboot/list/?series=113364 - https://patchwork.ozlabs.org/project/uboot/list/?series=110856

[U-Boot] [PATCH v4 3/4] configs: ls1028a: enable DM support for pcf2127 rtc

2019-07-10 Thread Chuanhua Han
Enable related configs to support pcf2127 rtc DM feature for ls1028ardb board. Signed-off-by: Chuanhua Han --- depends on: - https://patchwork.ozlabs.org/project/uboot/list/?series=113364 - https://patchwork.ozlabs.org/project/uboot/list/?series=110856 -

[U-Boot] [PATCH v4 2/4] gpio: do not include on ARCH_LS1028A

2019-07-10 Thread Chuanhua Han
As no gpio.h is defined for this architecture, to avoid compilation failure, do not include for arch ls1028a. Signed-off-by: Chuanhua Han --- depends on: - https://patchwork.ozlabs.org/project/uboot/list/?series=113364 -

[U-Boot] [PATCH v4 1/4] armv8: ls1028a: The ls1028a platform supports the I2C driver model

2019-07-10 Thread Chuanhua Han
DM_I2C_COMPAT is a compatibility layer that allows using the non-DM I2C API when DM_I2C is used.When DM_I2C_COMPAT is not enabled for compilation, a compilation error will be generated. This patch solves the problem that the i2c-related api of the ls1028a platform does not support dm.

[U-Boot] [PATCH v3 1/2] configs: lx2160aqds: enable DM support for pcf2127 rtc

2019-07-10 Thread Chuanhua Han
Enable related configs on all lx2160aqds boards to support pcf2127 rtc DM function. Signed-off-by: Chuanhua Han --- depends on: - https://patchwork.ozlabs.org/project/uboot/list/?series=117203 - https://patchwork.ozlabs.org/project/uboot/list/?series=114242 Changes in v3: -

[U-Boot] [PATCH v3 2/2] armv8: lx2160aqds : Add pcf2127 node

2019-07-10 Thread Chuanhua Han
This patch adds the pcf2127-rtc node under the i2c0->i2c-mux@77->i2c@3 for lx2160aqds boards. Signed-off-by: Chuanhua Han --- depends on: - https://patchwork.ozlabs.org/project/uboot/list/?series=117203 - https://patchwork.ozlabs.org/project/uboot/list/?series=114242 Changes in

[U-Boot] [PATCH v4 3/7] drivers: i2c: mxc: Solve the compiler error when using i2c dm mode

2019-07-10 Thread Chuanhua Han
This patch solved the following compilation error: 1.Remove the definition of CONFIG_SYS_I2C to solve the following compilation issue: In file included from include/config.h:8:0, from include/common.h:20: include/config_fallbacks.h:51:4: error: #error "Cannot define

[U-Boot] [PATCH v4 5/7] armv8: dts: fsl-lx2160a: add i2c controller and gpio DT nodes

2019-07-10 Thread Chuanhua Han
In lx2160a soc, there are eight i2c controllers, this patch adds i2c nodes for lx2160a, and the gpio2 nodes on which the i2c4 controller depends. Signed-off-by: Chuanhua Han --- Changes in v4: - No change. Changes in v3: - No change. Changes in v2: - Delete unnecessary

[U-Boot] [PATCH v4 4/7] gpio: do not include on ARCH_LX2160A

2019-07-10 Thread Chuanhua Han
As no gpio.h is defined for this architecture, to avoid compilation failure, do not include for arch ls2160a. Signed-off-by: Chuanhua Han --- Changes in v4: - No change. Changes in v3: - No change. Changes in v2: - No change. arch/arm/include/asm/gpio.h |3 ++-

[U-Boot] [PATCH v4 7/7] armv8: lx2160ardb : Add the "u-boot, dm-pre-reloc" property for i2c0 node

2019-07-10 Thread Chuanhua Han
Lx2160ardb need to use i2c0 before relocation, so we also need to set u-boot,dm-pre-reloc to initialize node before relocation. Signed-off-by: Chuanhua Han --- Changes in v4: - No change. Changes in v3: - Delete unnecessary i2c slave nodes. - Modify the subject and

[U-Boot] [PATCH v4 6/7] armv8: lx2160ardb: Add pcf2127 node

2019-07-10 Thread Chuanhua Han
This patch adds the pcf2127-rtc node under the i2c4 node for lx2160ardb boards. Signed-off-by: Chuanhua Han --- Changes in v4: - No change. Changes in v3: - Modify the submission information of the patch. Changes in v2: - Delete unnecessary aliases about i2c.

[U-Boot] [PATCH v4 1/7] armv8: lx2160a: The lx2160a platform supports the I2C driver model.

2019-07-10 Thread Chuanhua Han
DM_I2C_COMPAT is a compatibility layer that allows using the non-DM I2C API when DM_I2C is used.When DM_I2C_COMPAT is not enabled for compilation, a compilation error will be generated. This patch solves the problem that the i2c-related api of the lx2160a platform does not support dm.

[U-Boot] [PATCH v4 2/7] configs: lx2160ardb: enable DM support for pcf2127 rtc

2019-07-10 Thread Chuanhua Han
Enable related configs on all lx2160ardb boards to support pcf2127 rtc DM feature. Signed-off-by: Chuanhua Han Signed-off-by: Biwen Li --- Changes in v4: - Add configuration options for i2c dm to set default bus number Settings. Changes in v3: - Modify the subject and

Re: [U-Boot] [RESEND PATCH v2 00/15] Add Intel Agilex SoC support

2019-07-10 Thread Simon Goldschmidt
Tom Rini schrieb am Mi., 10. Juli 2019, 14:36: > On Tue, Jul 09, 2019 at 09:35:32PM +0200, Simon Goldschmidt wrote: > > > Tom, Marek, > > > > I'd like to assign these patches to me in patchwork but failed to do so. > > Does anyone need to add me there as co-custodian for socfpga? > > Yes, I need

Re: [U-Boot] imx7d: CPU core issue in secure mode

2019-07-10 Thread Philippe Schenker
+ Stefan Agner On Thu, 2019-07-04 at 10:13 +0200, Tobias Junghans wrote: > Hi, > > I'm trying to get an imx7d-based Colibris board running in secure mode in > order to be able to use the CAAM, especially the HWRNG. However it seems like > it's currently not possible to boot a mainline kernel

Re: [U-Boot] [PATCH v1] colibri_imx7: boot kernel in secure mode

2019-07-10 Thread Philippe Schenker
On Wed, 2019-07-10 at 14:35 +0200, Tobias Junghans wrote: > > > NXP downstream kernel uses legacy method to enable other cores, > > > which requires kernel to run in a security mode (althought upstream > > > kernel > > > uses PSCI for this). > > > > > > As we're using NXP kernel in our BSPs, lets

Re: [U-Boot] [PATCH] rockchip: derive ethaddr from cpuid

2019-07-10 Thread Heiko Stübner
Hi Rohan, Am Mittwoch, 10. Juli 2019, 14:08:31 CEST schrieb Rohan Garg: > Hey Heiko > > Also, that code looks pretty much like the same in rk3399-puma. > > > > So maybe it might be good to have this in a common location so > > more boards can access common code instead of duplicating that > >

Re: [U-Boot] UUID returning 00000000 in 2019.07

2019-07-10 Thread Eugeniu Rosca
jFTR/FWIW, the SD card UUIDs on my H3-Salvator-X [1] are reported correctly [2] on v2019.07-39-gb4944e25744a. [1] https://elinux.org/R-Car/Boards/Salvator-X [2] https://gist.github.com/erosca/829986fe0567ccdba56e6e4849f4d458 -- Best Regards, Eugeniu.

Re: [U-Boot] [RESEND PATCH v2 00/15] Add Intel Agilex SoC support

2019-07-10 Thread Tom Rini
On Tue, Jul 09, 2019 at 09:35:32PM +0200, Simon Goldschmidt wrote: > Tom, Marek, > > I'd like to assign these patches to me in patchwork but failed to do so. > Does anyone need to add me there as co-custodian for socfpga? Yes, I need your patchwork user name and I'll get you added to the

Re: [U-Boot] [PATCH v1] colibri_imx7: boot kernel in secure mode

2019-07-10 Thread Tobias Junghans
> > NXP downstream kernel uses legacy method to enable other cores, > > which requires kernel to run in a security mode (althought upstream > > kernel > > uses PSCI for this). > > > > As we're using NXP kernel in our BSPs, lets enable this by default. > > > > Signed-off-by: Igor Opaniuk How

Re: [U-Boot] [PATCH 2/2] colibri/apalis imx: drop DFU support

2019-07-10 Thread Philippe Schenker
On Fri, 2019-06-14 at 10:59 +0300, Igor Opaniuk wrote: > From: Igor Opaniuk > > We never really added a sensible DFU configuration for platforms > based on eMMC. Most of the things one might want to do can also be done > with UMS or fastboot, so drop the DFU configuration. > > Signed-off-by:

Re: [U-Boot] [PATCH 1/2] colibri/apalis tegra: drop DFU support

2019-07-10 Thread Philippe Schenker
On Fri, 2019-06-14 at 10:59 +0300, Igor Opaniuk wrote: > From: Igor Opaniuk > > We never really added a sensible DFU configuration for platforms > based on eMMC. Most of the things one might want to do can also be done > with UMS or fastboot, so drop the DFU configuration. > > Signed-off-by:

Re: [U-Boot] [PATCH v1] colibri_imx7: boot kernel in secure mode

2019-07-10 Thread Philippe Schenker
On Wed, 2019-07-03 at 16:50 +0300, Igor Opaniuk wrote: > From: Igor Opaniuk > > NXP downstream kernel uses legacy method to enable other cores, > which requires kernel to run in a security mode (althought upstream kernel > uses PSCI for this). > > As we're using NXP kernel in our BSPs, lets

[U-Boot] Regression after "distro: not taint environment variables if possible"

2019-07-10 Thread Nuno Gonçalves
Hi, I found out that my Beaglebone didn't boot after: https://github.com/u-boot/u-boot/commit/13dd6665ed18f72380ca596931d609bc108d4b82 I digged out the reason that this patch makes devnum a local variable, and it ends up shadowed by other code that sets devnum as a env variable. For example to

Re: [U-Boot] [PATCH v1 3/3] colibri_imx6: configs: remove legacy usbboot command

2019-07-10 Thread Oleksandr Suvorov
On Wed, 10 Jul 2019 at 14:57, Igor Opaniuk wrote: > > + Oleksandr > > On Tue, Jun 25, 2019 at 5:07 PM Igor Opaniuk wrote: > > > > Remove obsolete legacy usbboot wrapper, as distroboot can handle > > booting from USB drivers. > > > > Signed-off-by: Igor Opaniuk > > > > --- > > > >

Re: [U-Boot] [PATCH V2 51/51] imx: add i.MX8MN DDR4 board support

2019-07-10 Thread Lukasz Majewski
Hi Peng, > > Subject: Re: [U-Boot] [PATCH V2 51/51] imx: add i.MX8MN DDR4 board > > support > > > [...] > > > + > > > MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE 0x190 > > > > Those changes looks identical. Why do you need to change those > > lines? (Wrong formatting) ? > > Wrongly

Re: [U-Boot] [PATCH] rockchip: derive ethaddr from cpuid

2019-07-10 Thread Rohan Garg
Hey Heiko > Also, that code looks pretty much like the same in rk3399-puma. > > So maybe it might be good to have this in a common location so > more boards can access common code instead of duplicating that > whole function numerous times? Sounds good to me, do you have any recommendations

Re: [U-Boot] [PATCH v1 1/3] apalis-tk1: configs: remove legacy usbboot command

2019-07-10 Thread Oleksandr Suvorov
On Wed, 10 Jul 2019 at 14:58, Igor Opaniuk wrote: > > + Oleksandr > > On Tue, Jun 25, 2019 at 5:07 PM Igor Opaniuk wrote: > > > > Remove obsolete legacy usbboot wrapper, as distroboot can handle > > booting from USB drivers. > > > > Signed-off-by: Igor Opaniuk > > --- > > > >

Re: [U-Boot] [PATCH] rockchip: derive ethaddr from cpuid

2019-07-10 Thread Rohan Garg
Hey Kever > the rock pi config update into another patch? Will do. Cheers Rohan Garg signature.asc Description: This is a digitally signed message part. ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH v1 2/3] apalis_imx6: configs: remove legacy usbboot command

2019-07-10 Thread Oleksandr Suvorov
On Wed, 10 Jul 2019 at 14:58, Igor Opaniuk wrote: > > + Oleksandr > > On Tue, Jun 25, 2019 at 5:07 PM Igor Opaniuk wrote: > > > > Remove obsolete legacy usbboot wrapper, as distroboot can handle > > booting from USB drivers. > > > > Signed-off-by: Igor Opaniuk > > --- > > > >

Re: [U-Boot] [PATCH v1 0/3] Remove obsolete usbboot wrapper usage

2019-07-10 Thread Igor Opaniuk
+ Oleksandr On Tue, Jun 25, 2019 at 5:07 PM Igor Opaniuk wrote: > > This patch-series removes obsolete usbboot wrapper usage in Apalis > TK1/iMX6 and Colibri iMX6 platforms. > > Igor Opaniuk (3): > apalis-tk1: configs: remove legacy usbboot command > apalis_imx6: configs: remove legacy

Re: [U-Boot] [PATCH v1 1/3] apalis-tk1: configs: remove legacy usbboot command

2019-07-10 Thread Igor Opaniuk
+ Oleksandr On Tue, Jun 25, 2019 at 5:07 PM Igor Opaniuk wrote: > > Remove obsolete legacy usbboot wrapper, as distroboot can handle > booting from USB drivers. > > Signed-off-by: Igor Opaniuk > --- > > include/configs/apalis-tk1.h | 19 --- > 1 file changed, 19 deletions(-) >

Re: [U-Boot] [PATCH v1 2/3] apalis_imx6: configs: remove legacy usbboot command

2019-07-10 Thread Igor Opaniuk
+ Oleksandr On Tue, Jun 25, 2019 at 5:07 PM Igor Opaniuk wrote: > > Remove obsolete legacy usbboot wrapper, as distroboot can handle > booting from USB drivers. > > Signed-off-by: Igor Opaniuk > --- > > include/configs/apalis_imx6.h | 22 -- > 1 file changed, 22

Re: [U-Boot] [PATCH v1 3/3] colibri_imx6: configs: remove legacy usbboot command

2019-07-10 Thread Igor Opaniuk
+ Oleksandr On Tue, Jun 25, 2019 at 5:07 PM Igor Opaniuk wrote: > > Remove obsolete legacy usbboot wrapper, as distroboot can handle > booting from USB drivers. > > Signed-off-by: Igor Opaniuk > > --- > > include/configs/colibri_imx6.h | 20 > 1 file changed, 20

Re: [U-Boot] [PATCH 01/14] net: davinci_emac: convert to using the driver model

2019-07-10 Thread Ramon Fried
On Tue, Jul 9, 2019 at 10:55 AM Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > Now that we removed all legacy boards selecting TI_EMAC we can > completely convert the driver code to using the driver model. > This patch also updates all remaining users of davinci_emac. > >

Re: [U-Boot] [PATCH] colibri-imx6ull: fix vidargs

2019-07-10 Thread Igor Opaniuk
On Wed, Jul 10, 2019 at 10:43 AM Marcel Ziswiler wrote: > > From: Marcel Ziswiler > > Unfortunately, that missing M makes the current downstream NXP BSP > 4.14.98_2.0.0_ga crash early during Linux kernel boot. Fix this. > > Signed-off-by: Marcel Ziswiler > > --- > >

Re: [U-Boot] Boot Linux using EFI environment from u-boot

2019-07-10 Thread Poonam Aggrwal
Thanks Bin, > -Original Message- > From: Bin Meng > Sent: Wednesday, July 10, 2019 9:43 AM > To: Poonam Aggrwal > Cc: Alexander Graf ; u-boot@lists.denx.de > Subject: Re: [U-Boot] Boot Linux using EFI environment from u-boot > > On Wed, Jul 10, 2019 at 12:09 PM Poonam Aggrwal >

[U-Boot] [PATCH v2 22/22] ARM: uniphier: set {kernel, ramdisk, fdt}_addr_r at boot-time

2019-07-10 Thread Masahiro Yamada
The base of DRAM will be changed for the next generation SoC. The addresses needed for booting the kernel should be shifted according to the DRAM base. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/board_late_init.c | 4 include/configs/uniphier.h | 14

[U-Boot] [PATCH v2 09/22] ARM: uniphier: check DT to determine whether to initialize SBC

2019-07-10 Thread Masahiro Yamada
If CONFIG_MICRO_SUPPORT_CARD is enabled, U-Boot initialize SBC (System Bus Controller), which may not be really necessary. Check the "socionext,uniphier-system-bus" node in DT run-time. If and only if it is found and its "status" property is okay, initialize the SBC block. Signed-off-by:

[U-Boot] [PATCH v2 18/22] ARM: uniphier: remove CONFIG_SYS_SDRAM_BASE

2019-07-10 Thread Masahiro Yamada
The base address of DRAM was 0x8000 for all the ARM SoCs of this family in the past. It will be changed to 0x2000 for a planned new SoC. To support multiple SoCs by the single uniphier_v8_defconfig, the base must be run-time determined. Signed-off-by: Masahiro Yamada ---

[U-Boot] [PATCH v2 16/22] ARM: uniphier: make dram_init() more generic

2019-07-10 Thread Masahiro Yamada
Make this function work with any channel being empty. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/dram_init.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-uniphier/dram_init.c b/arch/arm/mach-uniphier/dram_init.c index

[U-Boot] [PATCH v2 05/22] ARM: uniphier: use bool type for have_internal_stm parameter

2019-07-10 Thread Masahiro Yamada
This is boolean logic. Signed-off-by: Masahiro Yamada --- .../mach-uniphier/boot-device/boot-device.c | 20 +-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/arm/mach-uniphier/boot-device/boot-device.c b/arch/arm/mach-uniphier/boot-device/boot-device.c

[U-Boot] [PATCH v2 19/22] ARM: uniphier: turn uniphier_set_fdt_file() into void function

2019-07-10 Thread Masahiro Yamada
For consistency with a function that will be added. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/board_late_init.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/arch/arm/mach-uniphier/board_late_init.c

[U-Boot] [PATCH v2 06/22] ARM: uniphier: include from boot-device.c

2019-07-10 Thread Masahiro Yamada
This file calls readl(), so needs to include . Currently, it relies on someone else including it. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/boot-device/boot-device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-uniphier/boot-device/boot-device.c

[U-Boot] [PATCH v2 13/22] ARM: uniphier: de-couple SC macros into base address and offset

2019-07-10 Thread Masahiro Yamada
The SC_* macros represent the address of SysCtrl registers. For a planned new SoC, its base address will be changed. Turn the SC_* macros into the offset from the base address. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/arm32/debug_ll.S | 8 +-

  1   2   >