Re: [U-Boot] [EXT] Re: [PATCH 1/6] spi: fsl_qspi: Fix DDR mode setting for latest iMX platforms

2019-09-11 Thread Ashish Kumar
> -Original Message- > From: Stefan Roese > Sent: Wednesday, September 11, 2019 11:17 AM > To: Schrempf Frieder ; Ashish Kumar > ; Ye Li ; > ja...@amarulasolutions.com > Cc: Fabio Estevam ; u-boot@lists.denx.de; dl- > uboot-imx > Subject: Re: [U-Boot] [EXT] Re: [PATCH 1/6] spi:

[U-Boot] [PATCH v2 2/2] efi_loader: device_path: show a host device in understandable form

2019-09-11 Thread AKASHI Takahiro
It would be better to give a user-friendly text to a host device on sandbox instead of just dumping its guid. => host bind 0 /opt/disk/uboot_sandbox_fat.img => efi devices Device Device Path 15c1f3a0

[U-Boot] [PATCH v2 0/2] efi_loader: device_path: support Sandbox's host device

2019-09-11 Thread AKASHI Takahiro
Changes in v2 (Sept 12, 2019) * use "vendor device path" with dedicate guid instead of LUN * add patch#2 for pretty printing AKASHI Takahiro (2): efi_loader: device_path: support Sandbox's "host" devices efi_loader: device_path: show a host device in understandable form include/efi_loader.h

[U-Boot] [PATCH v2 1/2] efi_loader: device_path: support Sandbox's "host" devices

2019-09-11 Thread AKASHI Takahiro
Sandbox's "host" devices are currently described as UCLASS_ROOT udevice with DEV_IF_HOST block device. As the current implementation of efi_device_path doesn't support such a type, any "host" device on sandbox cannot be seen as a distinct object. For example, => host bind 0 /foo/disk.img =>

[U-Boot] [PATCH v2 1/3] fs: export fs_close()

2019-09-11 Thread AKASHI Takahiro
This function is always paired with either fs_set_blk_desc() or fs_set_blk_desc_with_part(). So just export it. Signed-off-by: AKASHI Takahiro --- fs/fs.c | 2 +- include/fs.h | 7 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/fs/fs.c b/fs/fs.c index

[U-Boot] [PATCH v2 2/3] efi_loader: disk: install FILE_SYSTEM_PROTOCOL only if available

2019-09-11 Thread AKASHI Takahiro
In the current implementation, EFI_SIMPLEFILE_SYSTEM_PROTOCOL is always installed to all the partitions even if some of them may house no file system. With this patch, that protocol will be installed only if FAT file system exists. Signed-off-by: AKASHI Takahiro --- lib/efi_loader/efi_disk.c |

[U-Boot] [PATCH v2 0/3] efi_loader: disk: install FILE_SYSTEM_PROTOCOL to whole disk

2019-09-11 Thread AKASHI Takahiro
Changes in v2 (Sept 12, 2019) * add patch#1 and #2 * install the protocol only if a file system does exist AKASHI Takahiro (3): fs: export fs_close() efi_loader: disk: install FILE_SYSTEM_PROTOCOL only if available efi_loader: disk: install file system protocol to a whole disk fs/fs.c

[U-Boot] [PATCH v2 3/3] efi_loader: disk: install file system protocol to a whole disk

2019-09-11 Thread AKASHI Takahiro
Currently, a whole disk without any partitions is not associated with EFI_SIMPLE_FILE_SYSTEM_PROTOCOL. So even if it houses FAT file system, there is a chance that we may not be able to access it, particularly, when accesses are to be attempted after searching that protocol against a device

[U-Boot] Tinker-rk3288 SPL broken with MMC timeout

2019-09-11 Thread Jagan Teki
I have seen this even on v2019.07 release, and the only release that it got working with on v2019.01 (SPL, BROM_RETURN) Any idea? here is the log dump. U-Boot TPL 2019.10-rc3-00297-g5ba8b12543 (Sep 12 2019 - 08:50:36) Trying to boot from BOOTROM Returning to boot ROM... U-Boot SPL

[U-Boot] Pull request: u-boot-rockchip-20190912

2019-09-11 Thread Kever Yang
Hi Tom, Please pull the rockchip update: - add idbloader.img target for rockchip tpl+spl; - usb ehci/ohci: go on process if clock driver don't have clk_enable(); - remove clk_enable() for rockchip clock drivers; - add boot order for rockpro64 Gitlab CI:

Re: [U-Boot] [PATCH 2/4] habv4: tools: Avoid hardcoded CSF size for SPL targets

2019-09-11 Thread Peng Fan
Hi Breno, > Subject: [PATCH 2/4] habv4: tools: Avoid hardcoded CSF size for SPL targets I saw this patch in imx/master, not in Tom's tree. But this patch breaks build for other archs, such as arc and etc. Regards, Peng. > > Currently it's not possible to authenticate the U-Boot proper of >

Re: [U-Boot] efi_loader: LoadOptions (bootargs)

2019-09-11 Thread AKASHI Takahiro
On Wed, Sep 11, 2019 at 07:39:07PM +0200, Heinrich Schuchardt wrote: > On 9/11/19 8:14 AM, AKASHI Takahiro wrote: > >Heinrich, > > > >On Fri, Aug 23, 2019 at 08:42:27AM +0900, AKASHI Takahiro wrote: > >>On Thu, Aug 22, 2019 at 07:53:46PM +0200, Heinrich Schuchardt wrote: > >>>On 8/22/19 11:03 AM,

Re: [U-Boot] [PATCH] efi_loader: disk: install file system protocol to a whole disk

2019-09-11 Thread AKASHI Takahiro
On Wed, Sep 11, 2019 at 07:31:31PM +0200, Heinrich Schuchardt wrote: > On 9/11/19 8:16 AM, AKASHI Takahiro wrote: > >Heinrich, > > > >On Fri, Aug 23, 2019 at 09:04:21AM +0900, AKASHI Takahiro wrote: > >>On Thu, Aug 22, 2019 at 12:52:41PM +0200, Heinrich Schuchardt wrote: > >>>On 8/22/19 11:11 AM,

Re: [U-Boot] Issue in u-boot; TFTP error: trying to overwrite reserved memory...

2019-09-11 Thread Simon Goldschmidt
On 11.09.19 21:33, Moses Christopher wrote: On Wed, 11 Sep, 2019, 9:12 PM Simon Goldschmidt, > wrote: On 11.09.19 20:59, Moses Christopher wrote: > > On Wed, 11 Sep, 2019, 4:43 PM Simon Goldschmidt, >

[U-Boot] Why do we need both MDIO and MII commands

2019-09-11 Thread Ramon Fried
Hi. Marek raised this issue in IRC several weeks ago and I was wondering the same. why do we support this two commands which accomplish basically the same ? Can we ditch the mii comand and move the missing functionality to the mdio command ? Thanks, Ramon.

Re: [U-Boot] Issue in u-boot; TFTP error: trying to overwrite reserved memory...

2019-09-11 Thread Moses Christopher
On Wed, 11 Sep, 2019, 9:12 PM Simon Goldschmidt, < simon.k.r.goldschm...@gmail.com> wrote: > > > On 11.09.19 20:59, Moses Christopher wrote: > > > > On Wed, 11 Sep, 2019, 4:43 PM Simon Goldschmidt, > > > > wrote: > > > > On Wed, Sep 11, 2019 at 11:44

Re: [U-Boot] Issue in u-boot; TFTP error: trying to overwrite reserved memory...

2019-09-11 Thread Moses Christopher
On Wed, 11 Sep, 2019, 4:43 PM Simon Goldschmidt, < simon.k.r.goldschm...@gmail.com> wrote: > On Wed, Sep 11, 2019 at 11:44 AM Moses Christopher > wrote: > > > > > > > > On Wed, 11 Sep, 2019, 10:32 AM Simon Goldschmidt, < > simon.k.r.goldschm...@gmail.com> wrote: > >> > >> On Mon, Sep 9, 2019 at

Re: [U-Boot] Issue in u-boot; TFTP error: trying to overwrite reserved memory...

2019-09-11 Thread Simon Goldschmidt
On 11.09.19 20:59, Moses Christopher wrote: On Wed, 11 Sep, 2019, 4:43 PM Simon Goldschmidt, > wrote: On Wed, Sep 11, 2019 at 11:44 AM Moses Christopher mailto:moseschristoph...@gmail.com>> wrote: > > > > On Wed, 11

Re: [U-Boot] efi_loader: LoadOptions (bootargs)

2019-09-11 Thread Heinrich Schuchardt
On 9/11/19 8:14 AM, AKASHI Takahiro wrote: Heinrich, On Fri, Aug 23, 2019 at 08:42:27AM +0900, AKASHI Takahiro wrote: On Thu, Aug 22, 2019 at 07:53:46PM +0200, Heinrich Schuchardt wrote: On 8/22/19 11:03 AM, AKASHI Takahiro wrote: Heinrich, I'm now wondering whether LoadedImage's

Re: [U-Boot] [PATCH] efi_loader: disk: install file system protocol to a whole disk

2019-09-11 Thread Heinrich Schuchardt
On 9/11/19 8:16 AM, AKASHI Takahiro wrote: Heinrich, On Fri, Aug 23, 2019 at 09:04:21AM +0900, AKASHI Takahiro wrote: On Thu, Aug 22, 2019 at 12:52:41PM +0200, Heinrich Schuchardt wrote: On 8/22/19 11:11 AM, Mark Kettenis wrote: From: AKASHI Takahiro Date: Thu, 22 Aug 2019 17:06:25 +0900

Re: [U-Boot] [PATCH 2/2] efi_loader: device_path: support Sandbox's "host" devices

2019-09-11 Thread Heinrich Schuchardt
On 9/11/19 8:35 AM, AKASHI Takahiro wrote: Heinrich, Apologies for having not replied. On Fri, Aug 23, 2019 at 08:09:45PM +0200, Heinrich Schuchardt wrote: On 8/23/19 1:34 AM, AKASHI Takahiro wrote: On Thu, Aug 22, 2019 at 08:19:24PM +0200, Heinrich Schuchardt wrote: On 8/22/19 10:54 AM,

[U-Boot] [PATCH] net: rtl8169: Support RTL-8168c/8111c

2019-09-11 Thread Thierry Reding
From: Thierry Reding This version of the RTL-8168 chip can be found on some add-in cards sold by CSL-Computer GmbH & Co. KG. The chip isn't special in any way, but it needs to have the ChipCmd register programmed after the DMA descriptors have been set up, so make sure that happens by adding an

[U-Boot] [PATCH 1/1] efi_loader parameter checks EFI_FILE_PROTOCOL.SetInfo()

2019-09-11 Thread Heinrich Schuchardt
We do not support volume label changes. No parameter checks are needed here. When the info for as file is changed the buffer must always contain a file name. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_file.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff

[U-Boot] [PATCH 1/1] efi_loader: check parameters EFI_FILE_PROTOCOL.GetInfo()

2019-09-11 Thread Heinrich Schuchardt
Check the parameters of EFI_FILE_PROTOCOL.GetInfo() to avoid possible NULL dereference. Check the buffer size for EFI_FILE_SYSTEM_INFO. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_file.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/lib/efi_loader/efi_file.c

[U-Boot] [PATCH 1/1] efi_loader: volume name in EFI_FILE_PROTOCOL.GetInfo()

2019-09-11 Thread Heinrich Schuchardt
We cannot determine the volume name in U-Boot. Instead of providing a dummy volume name in case of EFI_FILE_SYSTEM_INFO and EFI_UNSUPPORTED in case of EFI_FILE_SYSTEM_VOLUME_LABEL consistently return an empty string. Signed-off-by: Heinrich Schuchardt --- include/efi_api.h | 4

[U-Boot] [PATCH] arm64: versal: Remove unneeded configs for mini configurations

2019-09-11 Thread Michal Simek
From: Siva Durga Prasad Paladugu The PSCI_RESET and EXPERT are not needed for mini configurations so remove them to save space. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- configs/xilinx_versal_mini_defconfig | 2 ++

[U-Boot] [PATCH] arm64: versal: mini_emmc: Enable fatwrite support

2019-09-11 Thread Michal Simek
From: Siva Durga Prasad Paladugu This patch enable fatwrite support for mini emmc configurations. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- configs/xilinx_versal_mini_emmc0_defconfig | 1 + configs/xilinx_versal_mini_emmc1_defconfig | 1 + 2 files changed, 2

[U-Boot] [PATCH] env: Kconfig: Add environment default offset in versal

2019-09-11 Thread Michal Simek
From: T Karthik Reddy This patch adds default offset & sector size values for environment variables to save in qspi/ospi flash for versal. Signed-off-by: T Karthik Reddy Signed-off-by: Michal Simek --- env/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH] drivers: usb: dwc3: setup phy before dwc3 core soft reset

2019-09-11 Thread Michal Simek
From: T Karthik Reddy Phy setup should be done before dwc3 soft core reset as it is done in linux & this fixes unreliable detection of usb cable on host side. Signed-off-by: T Karthik Reddy Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- drivers/usb/dwc3/core.c |

[U-Boot] [PATCH] arm64: zynqmp: Enable 2 NAND chips support for zynqmp_mini_nand

2019-09-11 Thread Michal Simek
From: T Karthik Reddy This patch enables 2 nand chips support for zynqmp mini nand Signed-off-by: T Karthik Reddy Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- configs/xilinx_zynqmp_mini_nand_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [U-Boot] Issue in u-boot; TFTP error: trying to overwrite reserved memory...

2019-09-11 Thread Simon Goldschmidt
On Wed, Sep 11, 2019 at 11:44 AM Moses Christopher wrote: > > > > On Wed, 11 Sep, 2019, 10:32 AM Simon Goldschmidt, > wrote: >> >> On Mon, Sep 9, 2019 at 11:29 AM Moses Christopher >> wrote: >> > >> > Hi Simon, >> > >> > >> > Thanks for the prompt reply. >> > >> > On Fri, 6 Sep, 2019, 8:13 AM

[U-Boot] [PATCH v2] doc: README.xilinx: Add dt bindings

2019-09-11 Thread Michal Simek
From: T Karthik Reddy Devicetree bindings are already specified in Linux kernel documentation. Instead of maintaining same dt bindings in U-Boot doc specify path to dt bindings in Linux kernel & documenting specific changes that are in U-Boot. Signed-off-by: T Karthik Reddy Signed-off-by:

Re: [U-Boot] [PATCH] env: Add CONFIG_ENV_SUPPORT

2019-09-11 Thread Patrick DELAUNAY
Hi Wolfgang an Tom, > > Dear Patrick, > > In message <9c7801afb8c94c638933cf33746ae...@sfhdag6node3.st.com> > you wrote: > > > > And I agree the name seens not perfect. > > > > > > - CONFIG_SPL_ENV_SUPPORT for SPL > > > > - CONFIG_TPL_ENV_SUPPORT for TPL > > > > These pre-existing name are

[U-Boot] [RFC PATCH] mmc: sdhci: add support for switching to UHS-I modes on ZynqMP Platform

2019-09-11 Thread Michal Simek
From: T Karthik Reddy This patch adds support for switching to UHS-I modes on ZynqMP platform. There is one issue with the ZynqMP ZCU102 where it is not able to power cycle the SD card. Due to this once the card is initialized in UHS-I mode it cannot be reinitialized in UHS-I mode again. So to

[U-Boot] [PATCH] mmc: zynq_sdhci: Remove check for DM_MMC config

2019-09-11 Thread Michal Simek
From: Siva Durga Prasad Paladugu The zynq_sdhci drivers depends on DM_MMC in Kconfig so no need to check for DM_MMC in the driver so this patch removes it. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- drivers/mmc/zynq_sdhci.c | 4 ++-- 1 file changed, 2

Re: [U-Boot] [PATCH 07/10] ufs: Add glue layer driver for TI J721E devices

2019-09-11 Thread Faiz Abbas
Vignesh, On 10/09/19 9:18 AM, Vignesh Raghavendra wrote: > > > On 09/09/19 1:49 PM, Faiz Abbas wrote: >> Add glue layer driver for the controller present on TI's J721E devices. >> >> Signed-off-by: Faiz Abbas >> --- >> drivers/ufs/Kconfig| 6 +++ >> drivers/ufs/Makefile | 1 +

[U-Boot] [PATCH] arm64: zynqmp: Switch spi-flash to jedec, spi-nor compatible

2019-09-11 Thread Michal Simek
Change has been done across the whole tree only zynqmp-mini-qspi hasn't been fixed. Origin changed done by commit ffd4c7c2ecb7 ("dts: switch spi-flash to jedec, spi-nor compatible") Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-mini-qspi.dts | 2 +- 1 file changed, 1 insertion(+), 1

Re: [U-Boot] [PATCH] doc: README.xilinx: Add dt bindings

2019-09-11 Thread Michal Simek
On 11. 09. 19 15:43, Bin Meng wrote: > On Wed, Sep 11, 2019 at 9:41 PM Michal Simek wrote: >> >> From: T Karthik Reddy >> >> Devicetree bindings are already specified in linux kernel >> documentation. Instead of maintaining same dt bindings in u-boot >> we are specifying path to dt bindings in

Re: [U-Boot] [PATCH] doc: README.xilinx: Add dt bindings

2019-09-11 Thread Bin Meng
On Wed, Sep 11, 2019 at 9:41 PM Michal Simek wrote: > > From: T Karthik Reddy > > Devicetree bindings are already specified in linux kernel > documentation. Instead of maintaining same dt bindings in u-boot > we are specifying path to dt bindings in linux kernel & documenting > specific changes

[U-Boot] [PATCH] doc: README.xilinx: Add dt bindings

2019-09-11 Thread Michal Simek
From: T Karthik Reddy Devicetree bindings are already specified in linux kernel documentation. Instead of maintaining same dt bindings in u-boot we are specifying path to dt bindings in linux kernel & documenting specific changes that are in u-boot. Signed-off-by: T Karthik Reddy

Re: [U-Boot] [PATCH PATCH v4 00/15] Add support for applications of overlays in SPL

2019-09-11 Thread Jean-Jacques Hiblot
Hi Simon, On 13/08/2019 11:33, Simon Glass wrote: Hi Jean-Jacques, On Mon, 5 Aug 2019 at 03:44, Jean-Jacques Hiblot wrote: The purpose of this series is to provide the SPL with ability to apply overlays for u-boot. this is only a RFC so far, to get a feedback on the approach. Our use-case

[U-Boot] [PATCH] cmd: avoid decimal conversion

2019-09-11 Thread Michal Simek
From: T Karthik Reddy This patch uses auto instead of decimal in simple_strtoul(). Signed-off-by: T Karthik Reddy Signed-off-by: Michal Simek --- cmd/test.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/cmd/test.c b/cmd/test.c index

Re: [U-Boot] Add support for imxrt

2019-09-11 Thread Giulio Benetti
Hi Stefano, On 9/11/19 8:50 AM, Stefano Babic wrote: Hi Giulio, On 10/09/19 20:32, Giulio Benetti wrote: Hello everybody, I would like to port imxrt to u-boot and I would like to ask you: - do you have the interest on upstreaming it? if yes: I've seen how they've dealt with 'stm32' and

Re: [U-Boot] Add support for imxrt

2019-09-11 Thread Giulio Benetti
Hi Fabio, On 9/11/19 12:23 AM, Fabio Estevam wrote: Hi Giulio, On Tue, Sep 10, 2019 at 3:32 PM Giulio Benetti wrote: Hello everybody, I would like to port imxrt to u-boot and I would like to ask you: - do you have the interest on upstreaming it? if yes: I've seen how they've dealt with

Re: [U-Boot] [PATCH PATCH v4 04/15] spl: fit: allocate a temporary buffer to load the overlays

2019-09-11 Thread Jean-Jacques Hiblot
Hi Simon, On 13/08/2019 11:33, Simon Glass wrote: Hi Jean-Jacques, On Mon, 5 Aug 2019 at 03:44, Jean-Jacques Hiblot wrote: If the node describing an overlay does not specify a load address, it will be loaded at the address previously used. Fixing it by allocating a temporary 64kB region that

Re: [U-Boot] [usb dwc3] xHCI driver -- a hint needed.

2019-09-11 Thread Jean-Jacques Hiblot
On 09/09/2019 18:03, Neil Armstrong wrote: Hi Bin, On 08/09/2019 14:35, Bin Meng wrote: Hi Neil, On Sun, Sep 8, 2019 at 8:33 PM Neil Armstrong wrote: Hi Bin, Le 07/09/2019 à 05:44, Bin Meng a écrit : Hi Neil, On Thu, Sep 5, 2019 at 11:48 PM Neil Armstrong wrote: Hi Bin, I've been

Re: [U-Boot] [PATCH] arm: at91: gardena-smart-gateway-at91sam: Enable CONFIG_SYS_NAND_USE_FLASH_BBT

2019-09-11 Thread Stefan Roese
Hi Eugen, On 27.08.19 09:54, eugen.hris...@microchip.com wrote: On 27.08.2019 09:14, Stefan Roese wrote: This patch enables the BBT in NAND on the AT91SAM based GARDENA smart Gateway. This is especially important, since the Linux driver also enables this option and uses the BBT table

[U-Boot] [PATCH] board: atmel: sama5d27_wlsom1_ek: fix SPL OFFS on SPI

2019-09-11 Thread Eugen.Hristev
From: Eugen Hristev Fixes redefinition of CONFIG_SYS_SPI_U_BOOT_OFFS This is now a Kconfig Fixes: 3e541a6e8fba ("board: atmel: sama5d2_wlsom1_ek: add qspi support and qspi boot config") Signed-off-by: Eugen Hristev --- From the initial submission of the board add patch until it was accepted,

Re: [U-Boot] [RFC PATCH v1 0/5] imx: nandbcb: support for i.MX7 and bcb only updates

2019-09-11 Thread Peng Fan
+Alice who is also working on same feature including more nand chips and i.MX family support. Regards, Peng. > Subject: [RFC PATCH v1 0/5] imx: nandbcb: support for i.MX7 and bcb only > updates > > This introduces support for writing BCB(FCB/FDDT) for i.MX7 and additional > subcommand for

[U-Boot] [NXP-IMX] please pull nxp-imx-9-11-2019

2019-09-11 Thread Peng Fan
Hi Stefano, Please pull nxp-imx-9-11-2019. This pull request was based on imx/master. But I also created a new branch based on origin/master, imx-master-9-11-2019 and CI is based the branch: https://travis-ci.org/MrVan/u-boot/builds/583504418

[U-Boot] [PATCH v2] arm64: versal: Also record versal name to versal fragment

2019-09-11 Thread Michal Simek
Just to make sure that also drivers with versal name are assigned to proper fragment. Signed-off-by: Michal Simek --- Changes in v2: - Avoid reporting myself with any universal platfrom - reported by Heinrich MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS

[U-Boot] [PATCH v3] net: phy: Add gmiitorgmii converter support

2019-09-11 Thread Michal Simek
From: Siva Durga Prasad Paladugu This patch adds support for gmiitorgmii converter. This converter sits between the MAC and the external phy MAC <==> GMII2RGMII <==> RGMII_PHY. The ethernet driver probes this bridge and this bridge driver probes real phy driver and invokes the real phy

Re: [U-Boot] Use of the go command

2019-09-11 Thread Wolfgang Denk
Dear Gregor, In message <42665f37f2da4296b1c923f92ac30...@tq-group.com> you wrote: > > i use the go command from the hush shell to execute a function > from environment. That function has been initially compiled in > U-Boot and was first called in board_late_init(). Urg... > I call the

Re: [U-Boot] [PATCH] xilinx: Add support for SBC

2019-09-11 Thread Michal Simek
On 11. 09. 19 9:18, Michal Simek wrote: > There is a need to differentiate fit images for Zynq and ZynqMP U-Boot. > Zynq is going to use u-boot-zynq.img and ZynqMP u-boot-zynqmp.img. > > Signed-off-by: Michal Simek > --- > > include/configs/topic_miami.h | 1 + >

[U-Boot] [PATCH 2/5] ARM: zynq: Enable USB1 as secondary boot device

2019-09-11 Thread Michal Simek
Xilinx Zynq SoC has two usb controllers and both could be used as secondary boot method. Signed-off-by: Michal Simek --- include/configs/zynq-common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h index

[U-Boot] [PATCH 3/5] ARM: zynq: Fix NOR boot mode

2019-09-11 Thread Michal Simek
There are two typos in this command that's why it couldn't work properly. This bootmode is almost unused from the beggining on this SoC. Fixes: 90e97ab31e02 ("arm: zynq: Define distro boot commnads for qspi, nand and nor") Signed-off-by: Michal Simek --- include/configs/zynq-common.h | 4 ++--

[U-Boot] [PATCH 5/5] ARM: zynq: Remove all Xilinx private commands

2019-09-11 Thread Michal Simek
All platforms have been moved to distro boot that's why remove the rest of configurations to have unified boot flow. Signed-off-by: Michal Simek --- include/configs/zynq-common.h | 54 ++- 1 file changed, 3 insertions(+), 51 deletions(-) diff --git

[U-Boot] [PATCH 4/5] ARM: zynq: Use {} around variables for qspi and nand boot cmds

2019-09-11 Thread Michal Simek
Follow conventions and used {} around variables. Fixes: 90e97ab31e02 ("arm: zynq: Define distro boot commnads for qspi, nand and nor") Signed-off-by: Michal Simek --- include/configs/zynq-common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH 1/5] ARM: zynq: Specify MMC controller number for boot sequence

2019-09-11 Thread Michal Simek
Xilinx Zynq SoC has two sdhci controllers but boot is only possible from the first one. That's why there is a need to specify controller number. mmc1 is supposed to be secondary boot device and should be also listed in distribution boot. Signed-off-by: Michal Simek ---

[U-Boot] [PATCH 0/5] ARM: zynq: Boot variables cleanup

2019-09-11 Thread Michal Simek
Hi, for quite a long time Xilinx was using private boot method. Pretty long time ago we have enabled distribution boot method and provided time to do transition to it. Right now it is good time to remove old methods and move to distro boot fully. It is also the part of unification between Xilinx

[U-Boot] Use of the go command

2019-09-11 Thread Herburger, Gregor
Hello, i use the go command from the hush shell to execute a function from environment. That function has been initially compiled in U-Boot and was first called in board_late_init(). I call the function by using go #address on my Arm Cortex A-7 machine the do_go_exec becomes: e1a03000

[U-Boot] [PATCH 5/5] ARM: MediaTek: add basic support for MT8518 boards

2019-09-11 Thread mingming lee
This adds a general board file based on MT8518 SoCs from MediaTek. Apart from the generic parts (cpu) we add some low level init codes and initialize the early clocks. This commit is adding the basic boot support for the MT8518 eMMC board. Signed-off-by: mingming lee --- arch/arm/dts/Makefile

[U-Boot] [PATCH 4/5] pinctrl: add driver for MT8518

2019-09-11 Thread mingming lee
Add Pinctrl driver for MediaTek MT8518 SoC. Signed-off-by: mingming lee --- arch/arm/dts/mt8518.dtsi | 9 + drivers/pinctrl/mediatek/Kconfig | 4 + drivers/pinctrl/mediatek/Makefile | 1 + drivers/pinctrl/mediatek/pinctrl-mt8518.c | 411

[U-Boot] [PATCH 3/5] mmc: mtk-sd: add HS200 support

2019-09-11 Thread mingming lee
add HS200 mode and tune support Signed-off-by: mingming lee --- drivers/mmc/mtk-sd.c | 30 -- 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-sd.c index f555357af2..bede4153b3 100644 --- a/drivers/mmc/mtk-sd.c +++

[U-Boot] [PATCH 2/5] clk: mediatek: add driver for MT8518

2019-09-11 Thread mingming lee
Add clock driver for MediaTek MT8518 SoC. Signed-off-by: mingming lee --- drivers/clk/mediatek/Makefile |1 + drivers/clk/mediatek/clk-mt8518.c | 1558 include/dt-bindings/clock/mt8518-clk.h | 249 3 files changed, 1808 insertions(+) create mode

[U-Boot] [PATCH 0/5] Add support for MediaTek MT8518 Soc

2019-09-11 Thread mingming lee
This patch series adds basic boot support on eMMC for the MediaTek MT8518 SoC based boards. This series add the clock, pinctrl drivers and the SoC initializaton code. mingming lee (5): ARM: MediaTek: Add support for MediaTek MT8518 SoC clk: mediatek: add driver for MT8518 mmc: mtk-sd: add

[U-Boot] [PATCH 1/5] ARM: MediaTek: Add support for MediaTek MT8518 SoC

2019-09-11 Thread mingming lee
Add support for MediaTek MT8518 SoC. This include the file that will initialize the SoC after boot and its device tree. Signed-off-by: mingming lee --- arch/arm/dts/mt8518.dtsi | 201 ++ arch/arm/mach-mediatek/Kconfig| 9 +

Re: [U-Boot] Issue in u-boot; TFTP error: trying to overwrite reserved memory...

2019-09-11 Thread Moses Christopher
On Wed, 11 Sep, 2019, 10:32 AM Simon Goldschmidt, < simon.k.r.goldschm...@gmail.com> wrote: > On Mon, Sep 9, 2019 at 11:29 AM Moses Christopher > wrote: > > > > Hi Simon, > > > > > > Thanks for the prompt reply. > > > > On Fri, 6 Sep, 2019, 8:13 AM Simon Goldschmidt, < >

[U-Boot] [PATCH v4 00/15] Improvement for the DWC3 USB generic driver and fixes for the K2 platforms

2019-09-11 Thread Jean-Jacques Hiblot
The K2 platforms have shown boot issues after switching to the DWC3 generic driver. Those are due to the fact that the USB domains are not turned off before booting linux and the phy were not properly initialized. Fixing it by improving the DWC3-generic driver and handling the USB power domain in

[U-Boot] [PATCH 1/5] ARM: MediaTek: Add support for MediaTek MT8518 SoC

2019-09-11 Thread mingming lee
Add support for MediaTek MT8518 SoC. This include the file that will initialize the SoC after boot and its device tree. Signed-off-by: mingming lee --- arch/arm/dts/mt8518.dtsi | 201 ++ arch/arm/mach-mediatek/Kconfig| 9 +

[U-Boot] Add support for imxrt

2019-09-11 Thread Giulio Benetti
Hello everybody, I would like to port imxrt to u-boot and I would like to ask you: - do you have the interest on upstreaming it? if yes: I've seen how they've dealt with 'stm32' and 'stm32mp' that is similar to 'imxrt' and 'imx'. So should follow the same criterias for porting? I mean adding

Re: [U-Boot] [EXT] [PATCH 2/2] spi-nor: spi-nor-ids: Disable SPI_NOR_4B_OPCODES for n25q512* and n25q256*

2019-09-11 Thread Vignesh Raghavendra
Hi Ashish, Simon, On 11/09/19 3:11 PM, Simon Goldschmidt wrote: > > > Ashish Kumar mailto:ashish.ku...@nxp.com>> > schrieb am Mi., 11. Sep. 2019, 10:49: > > > > > -Original Message- > > From: Vignesh Raghavendra mailto:vigne...@ti.com>> > > Sent: Tuesday, September 10,

Re: [U-Boot] [EXT] [PATCH 2/2] spi-nor: spi-nor-ids: Disable SPI_NOR_4B_OPCODES for n25q512* and n25q256*

2019-09-11 Thread Simon Goldschmidt
Ashish Kumar schrieb am Mi., 11. Sep. 2019, 10:49: > > > > -Original Message- > > From: Vignesh Raghavendra > > Sent: Tuesday, September 10, 2019 10:36 PM > > To: Jagan Teki > > Cc: Vignesh Raghavendra ; u-boot@lists.denx.de; Tom > > Rini ; Eugeniy Paltsev > > ;

[U-Boot] [PATCH v4 12/15] ARM: keystone: Do not enable the USB power domains at the board level

2019-09-11 Thread Jean-Jacques Hiblot
This breaks linux boot sequence. Observed on k2e and k2l platforms. Signed-off-by: Jean-Jacques Hiblot --- Changes in v4: None Changes in v3: None Changes in v2: None board/ti/ks2_evm/board.c | 13 - 1 file changed, 13 deletions(-) diff --git a/board/ti/ks2_evm/board.c

[U-Boot] [PATCH v4 03/15] usb: xhci: move xhci.h to include usb

2019-09-11 Thread Jean-Jacques Hiblot
The xhci.h header file is currently located under drivers/usb/xhci Move it to the include/usb folder to make it available to drivers that are not under drivers/usb/xhci Signed-off-by: Jean-Jacques Hiblot --- Changes in v4: None Changes in v3: None Changes in v2: None MAINTAINERS

[U-Boot] [PATCH v4 09/15] usb: dwc3: Add dwc3_of_parse() to get quirks information from DT

2019-09-11 Thread Jean-Jacques Hiblot
Add a new function that read quirk and configuration information from the DT. The goal is to allow platforms using their own version of DWC3 driver to migrate to the generic DWC3 driver. The function is adapted from the function dwc3_get_properties() in the linux dwc3 driver introduced in commit

[U-Boot] [PATCH v4 14/15] configs: k2g_evm_defconfig: disable XHCI_DWC3 and enable KEYSTONE_USB_PHY

2019-09-11 Thread Jean-Jacques Hiblot
KEYSTONE_USB_PHY is now required for proper USB operations. XHCI_DWC3 can be disabled as the xhci-dwc3 is not used anymore USB_DWC3_GADGET can also be removed, it is now selected automatically. Signed-off-by: Jean-Jacques Hiblot --- Changes in v4: None Changes in v3: None Changes in v2: None

[U-Boot] [PATCH v4 05/15] usb: dwc3-generic: use platdata

2019-09-11 Thread Jean-Jacques Hiblot
Separate platform data from the private data. This is one step toward adding host support. Signed-off-by: Jean-Jacques Hiblot --- Changes in v4: None Changes in v3: None Changes in v2: None drivers/usb/dwc3/dwc3-generic.c | 37 - 1 file changed, 23

[U-Boot] [PATCH v4 13/15] phy: keystone-usb: handle the transition of the USB power domain

2019-09-11 Thread Jean-Jacques Hiblot
There is no proper power domain support for the keystone platforms. However we need to turn off the USB domains before jumping to linux or it fail to boot (observed with k2e and k2l platforms). This can be done in the PHY driver as it is dedicated only to the keystone platforms and matches the

[U-Boot] [PATCH v4 08/15] usb: dwc3-generic: if no max speed is specified in DT, assume super speed

2019-09-11 Thread Jean-Jacques Hiblot
There is no need to fail if the maximum speed is not specified. If the speed is not specified, do the same as linux and assume super speed. Signed-off-by: Jean-Jacques Hiblot --- Changes in v4: None Changes in v3: - updated log message when defaulting to super speed Changes in v2: None

[U-Boot] [PATCH v4 10/15] usb: dwc3: Kconfig: get rid of obsolete mode selection

2019-09-11 Thread Jean-Jacques Hiblot
The mode selection for the DWC3 is kind of obsolete. The driver does not have to be host only or gadget only. This choice is confusing. All the remaining callers of dwc3_uboot_init() explicitly set dr_mode before calling the function, so none rely on a default behavior. Remove the choice menu and

[U-Boot] [PATCH v4 15/15] ARM: DTS: keystone: complete the description of the USB PHY devices

2019-09-11 Thread Jean-Jacques Hiblot
As the PHY driver now handles the transitions of USB power domain, we must add this information in the node of each PHY. Also, the phy are expected in the "phys" property, not "usb-phys". Also add the aliases for the USB ports on boards with more than a single port. Signed-off-by: Jean-Jacques

[U-Boot] [PATCH v4 04/15] usb: dwc3: always use the inlined version of dwc3_host_init/dwc3_host_exit

2019-09-11 Thread Jean-Jacques Hiblot
No one is actually implementing those functions. We could remove calls to these altogether, but it does not really hurt to keep the empty inlined version at the moment and it satisfies a symmetry with the gadget mode. Signed-off-by: Jean-Jacques Hiblot --- Changes in v4: None Changes in v3:

[U-Boot] [PATCH v4 11/15] ARM: keystone: increase PSC timeout

2019-09-11 Thread Jean-Jacques Hiblot
Turning off the USB clocks may take longer than 100us. Increase the timeout to 100ms. Signed-off-by: Jean-Jacques Hiblot --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/mach-keystone/include/mach/psc_defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[U-Boot] [PATCH v4 06/15] usb: dwc3-generic: factorize code

2019-09-11 Thread Jean-Jacques Hiblot
Factor code for re-usability. This is another step toward adding host support. Signed-off-by: Jean-Jacques Hiblot --- Changes in v4: None Changes in v3: None Changes in v2: None drivers/usb/dwc3/dwc3-generic.c | 55 + 1 file changed, 35 insertions(+), 20

[U-Boot] [PATCH v4 01/15] usb: host: remove the xhci-zynqmp driver

2019-09-11 Thread Jean-Jacques Hiblot
This driver is not used anymore. Signed-off-by: Jean-Jacques Hiblot --- Changes in v4: None Changes in v3: None Changes in v2: None configs/avnet_ultra96_rev1_defconfig | 1 - .../xilinx_zynqmp_zc1751_xm015_dc1_defconfig | 1 - .../xilinx_zynqmp_zc1751_xm016_dc2_defconfig | 1

[U-Boot] [PATCH v4 07/15] usb: dwc3-generic: add a new host driver that uses the dwc3 core

2019-09-11 Thread Jean-Jacques Hiblot
Currently the host driver used by dwc3-generic is "xhci-dwc3". This is a functional driver but it doesn't use the dwc3 core and, in particular, it lacks some bits that may be important. For example on the k2 platforms, it is important that the phy are properly suspended when the USB is not used

[U-Boot] [PATCH v4 02/15] usb: dwc3: switch to peripheral mode when exiting

2019-09-11 Thread Jean-Jacques Hiblot
This allow the phy to enter idle and then suspend. the K2 platforms require the PHY to be suspended before the USB domain clock can be turned off. Signed-off-by: Jean-Jacques Hiblot --- Changes in v4: None Changes in v3: None Changes in v2: None drivers/usb/dwc3/core.c | 13 + 1

[U-Boot] [PATCH] net: phy: Define init routine and register generic phy driver

2019-09-11 Thread Michal Simek
From: Siva Durga Prasad Paladugu This patch define init routine for generic phy driver and registers it using phy_register as this generic phy driver also needs to be relocated incase of manual reloc. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek ---

Re: [U-Boot] [EXT][xhci] XHCI Short Packet Issues

2019-09-11 Thread Bin Meng
Hi Aaron, On Tue, Sep 10, 2019 at 7:53 AM Aaron Williams wrote: > > Hi Bin, > > I have some more data. It looks like U-Boot is not properly handling the short > transfer case according to section 4.10.1.1.2 in the XHCI 3.1 specification. > In this case, when the data fits in the first TRB, two

Re: [U-Boot] [PATCH] zynqmp: firmware: Add Xilinx ZynqMP firmware driver

2019-09-11 Thread Michal Simek
On 11. 09. 19 10:54, Lokesh Vutla wrote: > > > On 11/09/19 1:17 PM, Michal Simek wrote: >> From: Rajan Vaja >> >> Add simple ZynqMP firmware drive to populate child nodes under >> zynqmp_firmware DT node. >> >> Signed-off-by: Rajan Vaja >> Signed-off-by: Michal Simek > > If this driver is

[U-Boot] [RFC PATCH v1 4/5] imx: nandbcb: refactor update function

2019-09-11 Thread Igor Opaniuk
From: Igor Opaniuk Move code for writing FCB/DBBT pages to a separate function Signed-off-by: Igor Opaniuk --- arch/arm/mach-imx/cmd_nandbcb.c | 221 ++-- 1 file changed, 122 insertions(+), 99 deletions(-) diff --git a/arch/arm/mach-imx/cmd_nandbcb.c

[U-Boot] [RFC PATCH v1 5/5] imx: nandbcb: add support for writing BCB only

2019-09-11 Thread Igor Opaniuk
From: Igor Opaniuk Add subcommand for add writing BCB only, where we provide appropriate offsets for firmware1 and firmware2 and size. Example of usage: > nandbcb bcbonly 0x0018 0x0008 0x0020 Writing 1024 bytes to 0x0: randomizing OK Writing 1024 bytes to 0x2: randomizing OK

[U-Boot] [RFC PATCH v1 2/5] nand: mxs_nand: add API for switching different BCH layouts

2019-09-11 Thread Igor Opaniuk
From: Igor Opaniuk On i.MX7 in a sake of reducing the disturbances caused by a neighboring cells in the FCB page in the NAND chip, a randomizer is enabled when reading the FCB page by ROM bootloader. Add API for setting BCH to specific layout (and restoring it back) used by ROM bootloader to be

[U-Boot] [RFC PATCH v1 3/5] imx: nandbcb: add support for i.MX7

2019-09-11 Thread Igor Opaniuk
From: Igor Opaniuk Add support for updating FCB/DBBT on i.MX7: - additional new fields in FCB structure - Leverage hardware BCH/randomizer for writing FCB Signed-off-by: Igor Opaniuk --- arch/arm/include/asm/mach-imx/imx-nandbcb.h | 12 ++ arch/arm/mach-imx/Kconfig | 2

[U-Boot] [RFC PATCH v1 1/5] imx: gpmi: add defines for hw randominizer

2019-09-11 Thread Igor Opaniuk
From: Igor Opaniuk Extend GPMI Integrated ECC Control Register Description, include additional defines for enabling randomizer function and providing proper randomizer type. For additional details check i.MX7 APR, section 9.6.6.3 GPMI Integrated ECC Control Register Description (GPMI_ECCCTRLn)

[U-Boot] [RFC PATCH v1 0/5] imx: nandbcb: support for i.MX7 and bcb only updates

2019-09-11 Thread Igor Opaniuk
This introduces support for writing BCB(FCB/FDDT) for i.MX7 and additional subcommand for writing BCB only (without firmware). Igor Opaniuk (5): imx: gpmi: add defines for hw randominizer nand: mxs_nand: add API for switching different BCH layouts imx: nandbcb: add support for i.MX7 imx:

[U-Boot] [PATCH] ARM: zynq: dts: Added alias for usb node

2019-09-11 Thread Michal Simek
From: Vipul Kumar This patch added alias for usb node in dts file. Signed-off-by: Vipul Kumar Signed-off-by: Michal Simek --- Vipul left Xilinx but he is origin author of this patch that's why I am keeping him here. --- arch/arm/dts/zynq-zc702.dts | 1 + 1 file changed, 1 insertion(+) diff

[U-Boot] [PATCH] ARM: zynq: Align model name with DT

2019-09-11 Thread Michal Simek
Use model property to distinguish different configurations. Signed-off-by: Michal Simek --- arch/arm/dts/zynq-cse-qspi-single.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/zynq-cse-qspi-single.dts b/arch/arm/dts/zynq-cse-qspi-single.dts index

Re: [U-Boot] [PATCH] zynqmp: firmware: Add Xilinx ZynqMP firmware driver

2019-09-11 Thread Lokesh Vutla
On 11/09/19 1:17 PM, Michal Simek wrote: > From: Rajan Vaja > > Add simple ZynqMP firmware drive to populate child nodes under > zynqmp_firmware DT node. > > Signed-off-by: Rajan Vaja > Signed-off-by: Michal Simek If this driver is only meant for populating child nodes, then simple-bus in

  1   2   >