Re: [U-Boot] [PATCH] kconfig: Convert CONFIG_MXS_GPIO to Kconfig

2019-08-14 Thread Jagan Teki
On Tue, Aug 13, 2019 at 9:41 PM Lukasz Majewski wrote: > > This converts the following to Kconfig: >CONFIG_MXS_GPIO > > Travis-CI: https://travis-ci.org/lmajewski/u-boot-dfu/builds/571260789 Not sure about linking build here, Otherwise, Acked-by: Jagan Teki

Re: [U-Boot] [PATCH 02/22] ddr: imx8m: fix ddr firmware location when enable SPL OF

2019-08-14 Thread Peng Fan
Hi, > Subject: Re: [PATCH 02/22] ddr: imx8m: fix ddr firmware location when enable > SPL OF > > On 09.08.19 06:14, Peng Fan wrote: > > With SPL_OF_SPERATE, the device tree will be padded to > > ^ Do you mean CONFIG_SPL_OF_CONTROL? Yes. Thanks. > > > end of the u-boot-spl-nodtb.bin,

Re: [U-Boot] [PATCH 03/22] imx8m: add image cfg for i.MX8MM lpddr4

2019-08-14 Thread Schrempf Frieder
On 09.08.19 06:14, Peng Fan wrote: > There is no HDMI on i.MX8MM, so we need to remove HDMI entry, then > we could not reuse imximage.cfg, so create a new one. > > Signed-off-by: Peng Fan > --- > arch/arm/mach-imx/imx8m/imximage-8mm-lpddr4.cfg | 16 > 1 file changed, 16

Re: [U-Boot] [EXT] Re: [PATCH v4 1/5] spl: dm: disable SPI DM flash for non-DM SPL

2019-08-14 Thread Chuanhua Han
> -Original Message- > From: Jagan Teki > Sent: 2019年8月14日 15:45 > To: Chuanhua Han > Cc: Wolfgang Denk ; Shengzhou Liu ; > Ruchika Gupta ; Jagan Teki ; > Simon Glass ; Prabhakar Kushwaha > ; U-Boot-Denx ; Pan > Jiafei > Subject: [EXT] Re: [U-Boot] [PATCH v4 1/5] spl: dm: disable SPI

[U-Boot] [PATCH] mmc: dw_mmc: fix timeout calculate method

2019-08-14 Thread Kever Yang
There are two cases not been considered: - use uint for timeout, it will overflow when size bigger than 512KB for it *8*1000 at the beginning, but we may use size up to 32MB; - The timeout is using clock speed for data rate, but the device may not have such high speed, eg. clock is 52MHz while

Re: [U-Boot] [PATCH 4/6] cbfs: Move result variable into the struct

2019-08-14 Thread Bin Meng
On Wed, Aug 14, 2019 at 11:09 AM Simon Glass wrote: > > Move the result variable into the struct also, so that it can be used when > BSS is not available. Add a function to read it. > > Note that all functions sill use the BSS version of the data. > > Signed-off-by: Simon Glass > --- > >

Re: [U-Boot] [PATCH 5/6] cbfs: Add functions to support multiple CBFSs

2019-08-14 Thread Bin Meng
On Wed, Aug 14, 2019 at 11:09 AM Simon Glass wrote: > > Sometimes an image has multiple CBFS. The current CBFS API is limited to > handling only one at time. Also it keeps track of the CBFS internally in > BSS, which does not work before relocation, for example. > > Add a few new functions to

Re: [U-Boot] [PATCH 6/6] cbfs: Rename camel-case variables

2019-08-14 Thread Bin Meng
On Wed, Aug 14, 2019 at 11:09 AM Simon Glass wrote: > > Rename some camel-case variables to match U-Boot style. > > Camel case is not generally allowed in U-Boot. Rename this variable to fit > in with the style. > > Signed-off-by: Simon Glass > --- > > fs/cbfs/cbfs.c | 44

Re: [U-Boot] [PATCH 2/6] cbfs: Move declarations above functions

2019-08-14 Thread Bin Meng
On Wed, Aug 14, 2019 at 11:09 AM Simon Glass wrote: > > At present this file has a function at the top, above declarations. This > is normally avoided, so fix it. > > Signed-off-by: Simon Glass > --- > > fs/cbfs/cbfs.c | 14 +- > 1 file changed, 5 insertions(+), 9 deletions(-) >

Re: [U-Boot] [PATCH] test/py: Fix MMC/SD block write test dependency

2019-08-14 Thread Michal Simek
On 13. 08. 19 23:21, Stephen Warren wrote: > On 8/1/19 10:48 PM, Michal Simek wrote: >> Test is using random command which has own Kconfig symbol CMD_RANDOM >> which >> already depends on CMD_MEMORY. That's why replace cmd_memory by >> cmd_random. > > This might not always be true; I think it'd

Re: [U-Boot] [PATCH v2] rockchip: ram: rk3399: fix setting for some type of dram

2019-08-14 Thread Jagan Teki
On Tue, Aug 13, 2019 at 6:45 PM Kever Yang wrote: > > We need to store all the ram related cap/map info back to register > after all the init has been done in case some of register was > reset during the process. > > Signed-off-by: YouMin Chen > Signed-off-by: Kever Yang > --- Commit head need

Re: [U-Boot] [PATCH 02/22] ddr: imx8m: fix ddr firmware location when enable SPL OF

2019-08-14 Thread Schrempf Frieder
On 09.08.19 06:14, Peng Fan wrote: > With SPL_OF_SPERATE, the device tree will be padded to ^ Do you mean CONFIG_SPL_OF_CONTROL? > end of the u-boot-spl-nodtb.bin, however we also put > the ddr firmware file to this location, so need to adapt > the code with SPL OF and align to 16bytes

Re: [U-Boot] [PATCH 1/6] cbfs: Allow CBFS to be used in SPL

2019-08-14 Thread Bin Meng
On Wed, Aug 14, 2019 at 11:09 AM Simon Glass wrote: > > Add a new Kconfig option to enable CBFS in SPL. This can be useful when > the memory-init code is in CBFS. > > Signed-off-by: Simon Glass > --- > > fs/Makefile | 1 + > fs/cbfs/Kconfig | 12 > 2 files changed, 13

Re: [U-Boot] [PATCH 1/4 v5] watchdog: Implement generic watchdog_reset() version

2019-08-14 Thread Stefan Roese
Hi Simon, (added Simon Glass and Bin to Cc) On 13.08.19 22:16, Simon Goldschmidt wrote: Am 25.04.2019 um 09:17 schrieb Stefan Roese: This patch tries to implement a generic watchdog_reset() function that can be used by all boards that want to service the watchdog device in U-Boot. This

Re: [U-Boot] [PATCH 01/22] tools: imx8m_image: align spl bin image size

2019-08-14 Thread Schrempf Frieder
Hi Peng, On 09.08.19 06:14, Peng Fan wrote: > Align spl bin image size to 4 byte aligned, because we need > to pad ddr firmware in the end of spl bin. However when enable > SPL OF, the spl dtb will be padded to u-boot-nodtb.bin, then > u-boot-spl.bin size might not be 4 bytes aligned. > >

Re: [U-Boot] instruction "xchgb" for x86_64

2019-08-14 Thread Bin Meng
Hi James, On Wed, Aug 14, 2019 at 1:08 PM James Wang wrote: > Hi Simon, > > > > This is James and am working on u-boot to bring back MinGW tool chain for > cross compiling host tools for Windows on Linux. After complete the code, I > plan to generate a patch for community review. > Do you mean

Re: [U-Boot] [PATCH v4 1/5] spl: dm: disable SPI DM flash for non-DM SPL

2019-08-14 Thread Jagan Teki
On Fri, Jun 21, 2019 at 7:51 AM Chuanhua Han wrote: > > This patch solves the problem that spiboot cannot be performed in > non-DM SPL. > > Signed-off-by: Pan Jiafei > Signed-off-by: Chuanhua Han > --- > Changes in v4: > - No change. > Changes in v3: > - Add a cover-letter for

Re: [U-Boot] [PATCH 02/22] ddr: imx8m: fix ddr firmware location when enable SPL OF

2019-08-14 Thread Schrempf Frieder
On 14.08.19 09:59, Peng Fan wrote: > Hi, > >> Subject: Re: [PATCH 02/22] ddr: imx8m: fix ddr firmware location when enable >> SPL OF >> >> On 09.08.19 06:14, Peng Fan wrote: >>> With SPL_OF_SPERATE, the device tree will be padded to >> >> ^ Do you mean CONFIG_SPL_OF_CONTROL? > Yes.

Re: [U-Boot] [PATCH 03/22] imx8m: add image cfg for i.MX8MM lpddr4

2019-08-14 Thread Peng Fan
Hi, > Subject: Re: [PATCH 03/22] imx8m: add image cfg for i.MX8MM lpddr4 > > On 09.08.19 06:14, Peng Fan wrote: > > There is no HDMI on i.MX8MM, so we need to remove HDMI entry, then we > > could not reuse imximage.cfg, so create a new one. > > > > Signed-off-by: Peng Fan > > --- > >

Re: [U-Boot] [PATCH 3/6] cbfs: Move static variables into a struct

2019-08-14 Thread Bin Meng
Hi Simon, On Wed, Aug 14, 2019 at 11:09 AM Simon Glass wrote: > > At present there are a number of static variables in BSS. This cannot work > with SPL, at least until BSS is available in board_init_r(). > > Move the variables into a struct, so it is possible to malloc() it and use > it before

Re: [U-Boot] [PATCH v5] board/BuR/zynq/brsmarc2: initial commit

2019-08-14 Thread Michal Simek
Hi, first of all sorry for delay I had vacation. On 17. 07. 19 14:25, Hannes Schmelzer wrote: > This commit adds the first of a few more Xilinx ZYNQ based SoM boards. > > The SoM is based on Xilinx Zynq 7000 SoC. > Mainly vxWorks 6.9.4.x is running on the board, > doing some PLC stuff on

[U-Boot] [NXP-IMX] please pull nxp-imx-8-13

2019-08-14 Thread Peng Fan
Hi Stefano, Please pull nxp-imx-8-13. CI: https://travis-ci.org/MrVan/u-boot/builds/571609583 I saw i.MX tree is not up to date, so this PR is based on Tom's tree. The PR includes: Sync dts for i.MX6UL/ULL Add i.MX6ULZ support SPL boot fix for i.MX6UL EVK DM_VIDEO migration for i.MX6UL EVK

Re: [U-Boot] [PATCH v3] qemu-x86: Use config_distro_bootcmd

2019-08-14 Thread Bin Meng
Hi Heinrich, On Wed, Aug 14, 2019 at 12:15 PM Heinrich Schuchardt wrote: > > On 7/19/19 11:46 AM, Bin Meng wrote: > > On Wed, Jul 17, 2019 at 1:43 PM Bin Meng wrote: > >> > >> On Thu, Jul 4, 2019 at 1:46 AM Joshua Watt wrote: > >>> > >>> Converts qemu x86 machines to boot using distro_config.

Re: [U-Boot] [PATCH u-boot-spi v2 1/1] spi: mvebu_a3700_spi: Fix clock prescale computation

2019-08-14 Thread Jagan Teki
On Tue, Jul 23, 2019 at 8:19 PM Marek Behún wrote: > > The prescaler value computation can yield wrong result if given 0x1f at > the beginning: the value is computed to be 0x20, but the maximum value > the register can hold 0x1f, so the actual stored value in this case is > 0, which is obviously

Re: [U-Boot] [RESEND PATCH] core: ofnode: Add ofnode_get_addr_size_index

2019-08-14 Thread Keerthy
On 13/08/19 3:25 PM, Keerthy wrote: On 13/08/19 3:03 PM, Simon Glass wrote: Hi Keethy, On Tue, 9 Jul 2019 at 13:38, Eugeniu Rosca wrote: Hi All, On Wed, Apr 24, 2019 at 05:19:53PM +0530, Keerthy wrote: Add ofnode_get_addr_size_index function to fetch the address and size of the reg

[U-Boot] [PATCH] x86: qemu: Fix build warnings with CONFIG_DISTRO_DEFAULTS=n

2019-08-14 Thread Bin Meng
Use DISTRO_BOOTENV to decouple BOOTENV from CONFIG_DISTRO_DEFAULTS. Reported-by: Heinrich Schuchardt Signed-off-by: Bin Meng --- include/configs/x86-common.h | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/include/configs/x86-common.h

Re: [U-Boot] [PATCH 01/22] tools: imx8m_image: align spl bin image size

2019-08-14 Thread Peng Fan
Hi Frieder > -Original Message- > From: Schrempf Frieder > Sent: 2019年8月14日 15:22 > To: Peng Fan ; lu...@denx.de; sba...@denx.de; > feste...@gmail.com > Cc: dl-uboot-imx ; u-boot@lists.denx.de > Subject: Re: [PATCH 01/22] tools: imx8m_image: align spl bin image size > > Hi Peng, > > On

Re: [U-Boot] [PATCH 2/2] drivers/spi: fsl_qspi: fix controller busy check

2019-08-14 Thread Prabhakar Kushwaha
Dear Thomas, > -Original Message- > From: U-Boot On Behalf Of Thomas > Schaefer > Sent: Wednesday, June 26, 2019 2:15 PM > To: ja...@amarulasolutions.com; feste...@gmail.com > Cc: tr...@konsulko.com; Thomas Schäfer ; > u-boot@lists.denx.de > Subject: [U-Boot] [PATCH 2/2] drivers/spi:

Re: [U-Boot] [PATCH v4 2/5] dm: spi: Convert Freescale ESPI driver to driver model

2019-08-14 Thread Jagan Teki
On Fri, Jun 21, 2019 at 7:52 AM Chuanhua Han wrote: > > Modify the Freescale ESPI driver to support the driver model. > Also resolved the following problems: > > = WARNING == > This board does not use CONFIG_DM_SPI. Please update > the board before v2019.04

[U-Boot] [RFT PATCH] core: of_addr: Correct the size type of of_get_address to fdt_size_t

2019-08-14 Thread Keerthy
Currently the size parameter is deined as u64 type. Correct the size type of of_get_address to fdt_size_t so that both 64 bit and 32 bit architectures are taken care of. Signed-off-by: Keerthy --- drivers/core/of_addr.c | 4 ++-- drivers/core/ofnode.c | 2 +- include/dm/of_addr.h | 2 +- 3

[U-Boot] [PATCH v2 1/4] spi: fsl_qspi: Fix DDR mode setting for latest iMX platforms

2019-08-14 Thread Ye Li
On latest iMX platforms like iMX7D/iMX6UL/iMX8MQ, the QSPI controller is updated to have TDH field in FLSHCR register. According to reference manual, this TDH must be set to 1 when DDR_EN is set. Otherwise, the TX DDR delay logic won't be enabled. Another issue in DDR mode is the MCR register

[U-Boot] [PATCH v2 4/4] spi: fsl_qspi: Add support for QSPI on iMX7ULP

2019-08-14 Thread Ye Li
Add the compatible string and driver data for iMX7ULP platform Signed-off-by: Ye Li --- Changes in v2: - None drivers/spi/fsl_qspi.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/spi/fsl_qspi.c b/drivers/spi/fsl_qspi.c index d759e98..8e2a09d 100644 ---

Re: [U-Boot] [EXT] [PATCH 2/6] spi: fsl_qspi: Fix erase issue to adapt spi-mem

2019-08-14 Thread Ashish Kumar
> -Original Message- > From: U-Boot On Behalf Of Ye Li > Sent: Wednesday, August 14, 2019 3:39 PM > To: ja...@amarulasolutions.com > Cc: Fabio Estevam ; u-boot@lists.denx.de; dl- > uboot-imx > Subject: [EXT] [U-Boot] [PATCH 2/6] spi: fsl_qspi: Fix erase issue to adapt > spi- > mem >

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

2019-08-14 Thread Ashish Kumar
> -Original Message- > From: U-Boot On Behalf Of Schrempf Frieder > Sent: Wednesday, August 14, 2019 5:07 PM > To: Ye Li ; ja...@amarulasolutions.com > Cc: Fabio Estevam ; u-boot@lists.denx.de; dl- > uboot-imx > Subject: [EXT] Re: [U-Boot] [PATCH 1/6] spi: fsl_qspi: Fix DDR mode

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

2019-08-14 Thread Schrempf Frieder
Hi Ashish, On 14.08.19 14:02, Ashish Kumar wrote: > > >> -Original Message- >> From: U-Boot On Behalf Of Schrempf Frieder >> Sent: Wednesday, August 14, 2019 5:07 PM >> To: Ye Li ; ja...@amarulasolutions.com >> Cc: Fabio Estevam ; u-boot@lists.denx.de; dl- >> uboot-imx >> Subject:

Re: [U-Boot] Configs resync question

2019-08-14 Thread Tom Rini
On Wed, Aug 14, 2019 at 07:05:08AM -0500, Adam Ford wrote: > Tom, > > Are you planning any config resync's soon? I was trying to make some > migrations with the moveconfig tool, but I noticed it changes more > than just the one item I want to change. I can do it and push it > myself, but in

[U-Boot] [PATCH V2] Convert CONFIG_FSL_USDHC to Kconfig

2019-08-14 Thread Adam Ford
This converts the following to Kconfig: CONFIG_FSL_USDHC Signed-off-by: Adam Ford --- V2: Based on re-sync'd defconfigs Remove references to non-FSL boards diff --git a/configs/apalis-imx8qm_defconfig b/configs/apalis-imx8qm_defconfig index 46a0a2a975..6a259381c2 100644 ---

[U-Boot] [PATCH v2 1/4] USB: gadget: Add the cadence USB3 gadget driver

2019-08-14 Thread sherry sun
From: Sherry Sun This driver is ported from NXP i.MX U-Boot version imx_v2019.04 and some changes have also been made to adapt to U-Boot. Add the Cadence USB3 IP(CDNS3) driver for the gadget (device mode). The CDNS3 gadget driver support DM mode. CONFIG_DM_USB_GADGET should be enabled when use

[U-Boot] [PATCH v2 4/4] USB: gadget: core: introduce ->udc_set_speed() method

2019-08-14 Thread sherry sun
From: Sherry Sun This patch was copied from kernel commit: 67fdfda4a99ed. Sometimes, the gadget driver we want to run has max_speed lower than what the UDC supports. In such situations, UDC might want to make sure we don't try to connect on speeds not supported by the gadget driver because that

[U-Boot] [PATCH v2 3/4] phy: Add USB PHY driver for the cadence USB3

2019-08-14 Thread sherry sun
From: Sherry Sun The cdns3-usb-phy driver supports both host and peripheral mode of usb driver which use cadence usb3 IP. Signed-off-by: Sherry Sun --- drivers/phy/Kconfig | 8 ++ drivers/phy/Makefile| 1 + drivers/phy/cdns3-usb-phy.c | 242

[U-Boot] [PATCH v2 2/4] USB: host: Add the USB3 host driver

2019-08-14 Thread sherry sun
From: Sherry Sun Add the USB3 host driver for NXP imx8 platform, and the cadence IP is in it. The USB3 host driver support DM mode, it will probe USB3 host node in dts. Signed-off-by: Sherry Sun --- drivers/usb/host/Kconfig | 9 ++ drivers/usb/host/Makefile| 1 +

Re: [U-Boot] [EXT] Re: [PATCH v4 1/5] spl: dm: disable SPI DM flash for non-DM SPL

2019-08-14 Thread Lukasz Majewski
Hi Chuanhua, > > -Original Message- > > From: Jagan Teki > > Sent: 2019年8月14日 15:45 > > To: Chuanhua Han > > Cc: Wolfgang Denk ; Shengzhou Liu > > ; Ruchika Gupta ; > > Jagan Teki ; Simon Glass ; > > Prabhakar Kushwaha ; U-Boot-Denx > > ; Pan Jiafei > > Subject: [EXT] Re: [U-Boot]

[U-Boot] [PATCH] imx: imx6qdl: dtsi: move U-Boot specific change to u-boot.dtsi

2019-08-14 Thread Peng Fan
The changes were added by following patch: commit <9002e735e717> ("imx: mx6sabresd: fix boot hang with video") commit ("imx6: dts: add 'u-boot, dm-pre-reloc' to soc and ipu nodes") Let's move the U-Boot specific change to imx6qdl-u-boot.dtsi Signed-off-by: Peng Fan ---

Re: [U-Boot] [PATCH v3 0/9] NXP LS1021A-TSN Board

2019-08-14 Thread Prabhakar Kushwaha
Dear Joe, > -Original Message- > From: Joe Hershberger > Sent: Thursday, July 25, 2019 12:26 AM > To: Vladimir Oltean > Cc: Joseph Hershberger ; Prabhakar > Kushwaha ; u-boot b...@lists.denx.de>; Joseph Hershberger > Subject: Re: [U-Boot] [PATCH v3 0/9] NXP LS1021A-TSN Board > > On

Re: [U-Boot] [v3] armv8: ls1028ardb: enable DisplayPort Power support

2019-08-14 Thread Prabhakar Kushwaha
> -Original Message- > From: U-Boot On Behalf Of Bin Meng > Sent: Thursday, July 25, 2019 1:57 PM > To: Wen He > Cc: U-Boot Mailing List > Subject: Re: [U-Boot] [v3] armv8: ls1028ardb: enable DisplayPort Power > support > > On Thu, Jul 25, 2019 at 3:18 PM Wen He wrote: > > > > Enable

Re: [U-Boot] [PATCH v3 0/9] NXP LS1021A-TSN Board

2019-08-14 Thread Vladimir Oltean
Hi Prabhakar, On Wed, 14 Aug 2019 at 12:37, Prabhakar Kushwaha wrote: > > Dear Joe, > > > -Original Message- > > From: Joe Hershberger > > Sent: Thursday, July 25, 2019 12:26 AM > > To: Vladimir Oltean > > Cc: Joseph Hershberger ; Prabhakar > > Kushwaha ; u-boot > b...@lists.denx.de>;

Re: [U-Boot] [PATCH 2/2] drivers/spi: fsl_qspi: fix controller busy check

2019-08-14 Thread Thomas Schaefer
Hi Prabhakar, I have already reworked this with different subjects and Jagan has applied patches to u-boot-spi/master on July, 1st. See c6d0c5eb30b5d677a6eeca5079a4e9a27630b530 and 733391e84bd9d67582b2ecd719b35585b70fe74c Best regards, Thomas -Ursprüngliche Nachricht- Von:

[U-Boot] [PATCH] Revert "net: macb: Fixed reading MII_LPA register"

2019-08-14 Thread Bin Meng
This reverts commit 1b0c9914cc75d1570359181ebd493cd5746cb0ed. Commit 1b0c9914cc75 ("net: macb: Fixed reading MII_LPA register") causes 100Mbps does not work any more with SiFive FU540 GEM on the HiFive Unleashed board. Revert it. Signed-off-by: Bin Meng --- drivers/net/macb.c | 2 +- 1 file

Re: [U-Boot] [PATCH 03/15] rockchip: rk3288: Print reset reason

2019-08-14 Thread Michael Nazzareno Trimarchi
Hi On Wednesday, August 14, 2019, Wadim Egorov wrote: > > On 14.08.19 11:40, Jagan Teki wrote: > > On Mon, Aug 5, 2019 at 6:00 PM Kever Yang > wrote: > >> > >> On 2019/7/29 下午3:46, Jagan Teki wrote: > >>> Print the reason for reset instead of storing it into > >>> env variable in rk3288. >

[U-Boot] [PATCH v2 3/4] spi: fsl_qspi: Update to use driver data

2019-08-14 Thread Ye Li
Add the driver data for each compatible string. So we can remove the SOC config and use driver data instead. Signed-off-by: Ye Li --- Changes in v2: - None drivers/spi/fsl_qspi.c | 113 ++--- 1 file changed, 79 insertions(+), 34 deletions(-) diff

[U-Boot] [PATCH v2 0/4] Update fsl qspi driver

2019-08-14 Thread Ye Li
Changes in v2: - Remove two patches below from v1, since spi-nor-core was changed to fix them in framework. [PATCH 2/6] spi: fsl_qspi: Fix erase issue to adapt spi-mem [PATCH 6/6] spi: fsl_qspi: Fix flash write issue with small TX FIFO - Remove a unused variable in [PATCH 1/6]

[U-Boot] [PATCH v2 2/4] spi: fsl_qspi: Update write data size for page program LUT

2019-08-14 Thread Ye Li
The write data size can be overwritten by writing to the IDATSZ field of IPCR register. Since the driver always updates the IDATSZ in page program operation. Set the LUT data size to 0 to align the codes with iMX. Signed-off-by: Ye Li --- Changes in v2: - None drivers/spi/fsl_qspi.c | 12

Re: [U-Boot] [RFT PATCH] core: of_addr: Correct the size type of of_get_address to fdt_size_t

2019-08-14 Thread Eugeniu Rosca
Superseded by https://patchwork.ozlabs.org/patch/1146933/ ("core: of_addr: Correct the size type of of_get_address to fdt_size_t") ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

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

2019-08-14 Thread Schrempf Frieder
Hi Ye, On 14.08.19 12:08, Ye Li wrote: > On latest iMX platforms like iMX7D/iMX6UL/iMX8MQ, the QSPI controller > is updated to have TDH field in FLSHCR register. According to reference > manual, this TDH must be set to 1 when DDR_EN is set. Otherwise, the TX > DDR delay logic won't be enabled.

Re: [U-Boot] [EXT] Re: [PATCH v4 1/5] spl: dm: disable SPI DM flash for non-DM SPL

2019-08-14 Thread Lukasz Majewski
On Wed, 14 Aug 2019 11:10:46 + Chuanhua Han wrote: > > -Original Message- > > From: Lukasz Majewski > > Sent: 2019年8月14日 18:53 > > To: Chuanhua Han > > Cc: Jagan Teki ; Xiaowei Bao > > ; U-Boot-Denx ; Pan > > Jiafei ; Jagan Teki ; > > Ruchika Gupta > > Subject: Re: [U-Boot] [EXT]

[U-Boot] Configs resync question

2019-08-14 Thread Adam Ford
Tom, Are you planning any config resync's soon? I was trying to make some migrations with the moveconfig tool, but I noticed it changes more than just the one item I want to change. I can do it and push it myself, but in the past, my attempts were denied because you wanted to do it. thanks

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

2019-08-14 Thread Schrempf Frieder
Sorry, I hit the "Send" button too early ;) On 14.08.19 14:07, Frieder Schrempf wrote: > Hi Ashish, > > On 14.08.19 14:02, Ashish Kumar wrote: >> >> >>> -Original Message- >>> From: U-Boot On Behalf Of Schrempf >>> Frieder >>> Sent: Wednesday, August 14, 2019 5:07 PM >>> To: Ye Li ;

[U-Boot] Beaglebone black booting from usb

2019-08-14 Thread Awadhesh
Hi, I want to set uboot setting such that it should boot from usb if correct usb device found else boot from sd/mmc I am searching net and forum but wonder that I am not getting support. You can please help us to set uboot setting for the same. Thanks & Regards, Awadhesh

Re: [U-Boot] Configs resync question

2019-08-14 Thread Tom Rini
On Wed, Aug 14, 2019 at 07:05:08AM -0500, Adam Ford wrote: > Tom, > > Are you planning any config resync's soon? I was trying to make some > migrations with the moveconfig tool, but I noticed it changes more > than just the one item I want to change. I can do it and push it > myself, but in

[U-Boot] [PATCH v2 0/4] USB: Add cadence USB3 gadget driver and host driver

2019-08-14 Thread sherry sun
From: Sherry Sun These patches introduce new Cadence USBSS driver to U-Boot. The first patch is to add the Cadence USB3 IP(CDNS3) core and driver for the usb gadget. The second patch introduce the xhci-imx8 usb host driver separately. The third patch introduce the cdns3 phy driver which can be

Re: [U-Boot] Configs resync question

2019-08-14 Thread Adam Ford
On Wed, Aug 14, 2019 at 7:32 AM Tom Rini wrote: > > On Wed, Aug 14, 2019 at 07:05:08AM -0500, Adam Ford wrote: > > > Tom, > > > > Are you planning any config resync's soon? I was trying to make some > > migrations with the moveconfig tool, but I noticed it changes more > > than just the one item

Re: [U-Boot] [PATCH 22/22] imx: Add i.MX8MM EVK board support.

2019-08-14 Thread Peng Fan
> Subject: Re: [PATCH 22/22] imx: Add i.MX8MM EVK board support. > > On 09.08.19 06:15, Peng Fan wrote: > > Add board and SoC dts > > Add ddr training code > > support SD/MMC/GPIO/PINCTRL/UART > > > > Signed-off-by: Peng Fan > > --- > > arch/arm/dts/Makefile |3 +-

Re: [U-Boot] [PATCH 00/22] i.MX8MM support

2019-08-14 Thread Peng Fan
Hi Frieder, > Subject: Re: [PATCH 00/22] i.MX8MM support > > Hi Peng, > > On 09.08.19 06:14, Peng Fan wrote: > > This is a splitted and updated patch from > > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpatc > > > hwork.ozlabs.org%2Fcover%2F1128799%2Fdata=02%7C01%7Cpeng.fa

[U-Boot] [PATCH v2 3/6] cbfs: Move static variables into a struct

2019-08-14 Thread Simon Glass
At present there are a number of static variables in BSS. This cannot work with SPL, at least until BSS is available in board_init_r(). Move the variables into a struct, so it is possible to malloc() it and use it before BSS is available. Signed-off-by: Simon Glass --- Changes in v2: - Make

[U-Boot] [PATCH v2 4/6] cbfs: Move result variable into the struct

2019-08-14 Thread Simon Glass
Move the result variable into the struct also, so that it can be used when BSS is not available. Add a function to read it. Note that all functions sill use the BSS version of the data. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None cmd/cbfs.c | 4 ++--

[U-Boot] [PATCH v2 6/6] cbfs: Rename camel-case variables

2019-08-14 Thread Simon Glass
Rename some camel-case variables to match U-Boot style. Camel case is not generally allowed in U-Boot. Rename this variable to fit in with the style. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None fs/cbfs/cbfs.c | 44 ++-- 1

Re: [U-Boot] [EXT] Re: [PATCH v4 1/5] spl: dm: disable SPI DM flash for non-DM SPL

2019-08-14 Thread Chuanhua Han
> -Original Message- > From: Lukasz Majewski > Sent: 2019年8月14日 19:39 > To: Chuanhua Han > Cc: Jagan Teki ; Xiaowei Bao > ; U-Boot-Denx ; Pan Jiafei > ; Jagan Teki ; Ruchika > Gupta > Subject: Re: [U-Boot] [EXT] Re: [PATCH v4 1/5] spl: dm: disable SPI DM flash > for > non-DM SPL > >

Re: [U-Boot] [PATCH 20/22] arm: dts: import i.MX8MM dtsi

2019-08-14 Thread Peng Fan
> Subject: Re: [PATCH 20/22] arm: dts: import i.MX8MM dtsi > > On 09.08.19 06:15, Peng Fan wrote: > > Import i.MX8MM dtsi from Linux Kernel, commit <0a8ad0ffa4d8> ("Merge > > tag 'for-linus-5.3-ofs1' of > > git://git.kernel.org/pub/scm/linux/kernel/git/hubcap/linux") > > > > Signed-off-by: Peng

Re: [U-Boot] [PATCH 09/22] imx8m: update imx-regs for i.MX8MM

2019-08-14 Thread Peng Fan
> Subject: Re: [PATCH 09/22] imx8m: update imx-regs for i.MX8MM > > On 09.08.19 06:15, Peng Fan wrote: > > i.MX8MM has similar architecture with i.MX8MQ, but it has totally > > different PLL design and some register layout change. > > > > Note: Some registers in this file are not updated because

Re: [U-Boot] [EXT] Re: [PATCH v4 2/5] dm: spi: Convert Freescale ESPI driver to driver model

2019-08-14 Thread Chuanhua Han
> -Original Message- > From: Jagan Teki > Sent: 2019年8月15日 2:03 > To: Chuanhua Han > Cc: Wolfgang Denk ; Shengzhou Liu ; > Ruchika Gupta ; Jagan Teki ; > Simon Glass ; Prabhakar Kushwaha > ; U-Boot-Denx ; > Xiaowei Bao > Subject: Re: [EXT] Re: [U-Boot] [PATCH v4 2/5] dm: spi: Convert

Re: [U-Boot] [PATCH] arm: dts: sync dts for Allwinner H6

2019-08-14 Thread Clément Péron
Hi On Sun, 11 Aug 2019 at 22:42, Clément Péron wrote: > > Sync Kernel DTS for Allwinner H6 boards. > > commit Linux 5.3-rc4 > > Signed-off-by: Clément Péron > --- > arch/arm/dts/sun50i-h6-beelink-gs1.dts | 76 ++ > arch/arm/dts/sun50i-h6-pine-h64.dts| 12 >

Re: [U-Boot] [PATCH 3/6] cbfs: Move static variables into a struct

2019-08-14 Thread Simon Glass
Hi Bin, On Wed, 14 Aug 2019 at 02:40, Bin Meng wrote: > > Hi Simon, > > On Wed, Aug 14, 2019 at 11:09 AM Simon Glass wrote: > > > > At present there are a number of static variables in BSS. This cannot work > > with SPL, at least until BSS is available in board_init_r(). > > > > Move the

[U-Boot] 答复: [PATCH v2 2/4] USB: host: Add the USB3 host driver

2019-08-14 Thread Sherry Sun
Hi Marek, > > On 8/14/19 2:16 PM, sherry sun wrote: > > From: Sherry Sun > > > > Add the USB3 host driver for NXP imx8 platform, and the cadence IP is > > in it. The USB3 host driver support DM mode, it will probe USB3 host > > node in dts. > > We already have a generic xhci driver, so why do

[U-Boot] [PATCH v2 5/6] cbfs: Add functions to support multiple CBFSs

2019-08-14 Thread Simon Glass
Sometimes an image has multiple CBFS. The current CBFS API is limited to handling only one at time. Also it keeps track of the CBFS internally in BSS, which does not work before relocation, for example. Add a few new functions to overcome these limitations. Signed-off-by: Simon Glass

[U-Boot] [PATCH v2 2/6] cbfs: Move declarations above functions

2019-08-14 Thread Simon Glass
At present this file has a function at the top, above declarations. This is normally avoided, so fix it. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None fs/cbfs/cbfs.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/fs/cbfs/cbfs.c

Re: [U-Boot] [U-Boot-Custodians] RFC: Migration target date for DM_ETH

2019-08-14 Thread Joe Hershberger
Hi Heinrich, On Fri, Aug 9, 2019 at 4:41 PM Heinrich Schuchardt wrote: > > On 8/9/19 7:02 PM, Simon Glass wrote: > > Hi Heinrich, > > > > On Fri, 9 Aug 2019 at 00:31, Heinrich Schuchardt wrote: > >> > >> Currently dozens of boards still do not use the driver model for the > >> network devices.

[U-Boot] [PATCH v2 1/6] cbfs: Allow CBFS to be used in SPL

2019-08-14 Thread Simon Glass
Add a new Kconfig option to enable CBFS in SPL. This can be useful when the memory-init code is in CBFS. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: - Fix typo in Kconfig help fs/Makefile | 1 + fs/cbfs/Kconfig | 12 2 files changed, 13 insertions(+)

[U-Boot] [PATCH v2 0/6] cbfs: Allow use before relocation / BSS

2019-08-14 Thread Simon Glass
At present CBFS cannot be used in SPL before BSS is available. This is inconvenient if CBFS holds the FSP code needed to init SDRAM. The problem is fairly easy to fix, by putting all static variables into a struct that can be allocated. This series updates CBFS towards this goal, but does not

[U-Boot] 答复: [PATCH v2 2/4] USB: host: Add the USB3 host driver

2019-08-14 Thread Sherry Sun
Hi Marek, > > Hi Marek, > > > > > On 8/14/19 2:16 PM, sherry sun wrote: > > > From: Sherry Sun > > > > > > Add the USB3 host driver for NXP imx8 platform, and the cadence IP > > > is in it. The USB3 host driver support DM mode, it will probe USB3 > > > host node in dts. > > > > We already have

[U-Boot] [PATCH 2/2] mmc: Rename timeout parameters for clarification

2019-08-14 Thread Sam Protsenko
It's quite hard to figure out time units for various function that have timeout parameters. This leads to possible errors when one forgets to convert ms to us, for example. Let's rename those parameters correspondingly to 'timeout_us' and 'timeout_ms' to prevent such issues further. While at it,

[U-Boot] [PATCH 1/2] mmc: Fix timeout values passed to mmc_wait_dat0()

2019-08-14 Thread Sam Protsenko
mmc_wait_dat0() expects timeout argument to be in usec units. But some overlying functions operate on timeout in msec units. Convert timeout from msec to usec when passing it to mmc_wait_dat0(). This fixes 'avb' commands on BeagleBoard X15, because next chain was failing: get_partition() ->

[U-Boot] [PATCH] jffs2: remove unused code files

2019-08-14 Thread Uwe Kleine-König
I failed to find where these two files are used and a few test compile runs with JFFS2 enabled succeeded also without these. --- The build-all script failed for me with $HOME/.buildman-toolchains/gcc-7.3.0-nolibc/arm-linux-gnueabi/bin/../libexec/gcc/arm-linux-gnueabi/7.3.0/cc1: error

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

2019-08-14 Thread Auer, Lukas
Hi Rick, On Wed, 2019-08-14 at 10:20 +0800, Rick Chen wrote: > Hi Lukas > > > > From: Tom Rini [mailto:tr...@konsulko.com] > > > Sent: Wednesday, August 14, 2019 12:50 AM > > > To: Open Source Project uboot > > > Cc: u-boot@lists.denx.de; Rick Jian-Zhi Chen(陳建志) > > > Subject: Re: [U-Boot] Pull

[U-Boot] [PATCH 3/6] spi: fsl_qspi: Update write data size for page program LUT

2019-08-14 Thread Ye Li
The write data size can be overwritten by writing to the IDATSZ field of IPCR register. Since the driver always updates the IDATSZ in page program operation. Set the LUT data size to 0 to align the codes with iMX. Signed-off-by: Ye Li --- drivers/spi/fsl_qspi.c | 12 +--- 1 file

[U-Boot] [PATCH 6/6] spi: fsl_qspi: Fix flash write issue with small TX FIFO

2019-08-14 Thread Ye Li
The page write sequence in spi-mem is changed with orignal spi-flash. When the max_write_size is set by driver, the orignal sequence is 1. WREN 2. write max_write_size data to flash 3. wait for WIP clean 4. back to #1 if having data remained in a page. The new sequence is: 1. WREN 2. write

Re: [U-Boot] [RFT PATCH] core: of_addr: Correct the size type of of_get_address to fdt_size_t

2019-08-14 Thread Eugeniu Rosca
Hi Keerthy, On Wed, Aug 14, 2019 at 10:21 AM Keerthy wrote: > > Currently the size parameter is deined as u64 type. s/deined/defined/ > Correct the size type of of_get_address to fdt_size_t > so that both 64 bit and 32 bit architectures are taken > care of. Please, reference the initial bug

Re: [U-Boot] [RESEND PATCH] core: ofnode: Add ofnode_get_addr_size_index

2019-08-14 Thread Keerthy
On 14/08/19 3:17 PM, Eugeniu Rosca wrote: Hi Keerthy, On Wed, Aug 14, 2019 at 01:53:50PM +0530, Keerthy wrote: Eugeniu, Could you kindly help me with the steps to reproduce the issue? Sure. My pleasure. See [0]. I am sending out a fix patch to convert all the size instances to

Re: [U-Boot] [PATCH 20/22] arm: dts: import i.MX8MM dtsi

2019-08-14 Thread Schrempf Frieder
On 09.08.19 06:15, Peng Fan wrote: > Import i.MX8MM dtsi from Linux Kernel, > commit <0a8ad0ffa4d8> ("Merge tag 'for-linus-5.3-ofs1' of > git://git.kernel.org/pub/scm/linux/kernel/git/hubcap/linux") > > Signed-off-by: Peng Fan > --- > arch/arm/dts/imx8mm.dtsi | 733 >

Re: [U-Boot] instruction "xchgb" for x86_64

2019-08-14 Thread James Wang
Hi Bin   >> This is James and am working on u-boot to bring back MinGW tool chain for >> cross compiling host tools for Windows on Linux. After complete the code, I >> plan to generate a patch for community review. >Do you mean cross compiling U-Boot's mkimage tool for Windows on Linux using

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

2019-08-14 Thread Ye Li
Please ignore the patch set. I will send out V2 to remove 2 patches. > On latest iMX platforms like iMX7D/iMX6UL/iMX8MQ, the QSPI controller > is updated to have TDH field in FLSHCR register. According to reference > manual, this TDH must be set to 1 when DDR_EN is set. Otherwise, the TX > DDR

Re: [U-Boot] [EXT] Re: [PATCH v4 1/5] spl: dm: disable SPI DM flash for non-DM SPL

2019-08-14 Thread Lukasz Majewski
On Wed, 14 Aug 2019 10:41:32 + Chuanhua Han wrote: > > -Original Message- > > From: Lukasz Majewski > > Sent: 2019年8月14日 16:57 > > To: Chuanhua Han > > Cc: Jagan Teki ; Xiaowei Bao > > ; U-Boot-Denx ; Pan > > Jiafei ; Jagan Teki ; > > Ruchika Gupta > > Subject: Re: [U-Boot] [EXT]

Re: [U-Boot] [EXT] Re: [PATCH v4 1/5] spl: dm: disable SPI DM flash for non-DM SPL

2019-08-14 Thread Chuanhua Han
> -Original Message- > From: Lukasz Majewski > Sent: 2019年8月14日 16:57 > To: Chuanhua Han > Cc: Jagan Teki ; Xiaowei Bao > ; U-Boot-Denx ; Pan Jiafei > ; Jagan Teki ; Ruchika > Gupta > Subject: Re: [U-Boot] [EXT] Re: [PATCH v4 1/5] spl: dm: disable SPI DM flash > for > non-DM SPL > >

[U-Boot] [PATCH] imx: mx6sabresd: fix usb start when DM enabled

2019-08-14 Thread Peng Fan
Enable CONFIG_DM_REGULATOR_FIXED to let vbus regulator work. Signed-off-by: Peng Fan --- configs/mx6sabresd_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/mx6sabresd_defconfig b/configs/mx6sabresd_defconfig index 9400805831..0df3f73d88 100644 ---

Re: [U-Boot] [PATCH 03/15] rockchip: rk3288: Print reset reason

2019-08-14 Thread Jagan Teki
On Mon, Aug 5, 2019 at 6:00 PM Kever Yang wrote: > > > On 2019/7/29 下午3:46, Jagan Teki wrote: > > Print the reason for reset instead of storing it into > > env variable in rk3288. > > > > This would help to find the reset reason directly > > on U-Boot proper logs. > > > > Cc: Wadim Egorov > >

Re: [U-Boot] [PATCH 09/15] wdt: dw: Rename to dw_wdt.c

2019-08-14 Thread Jagan Teki
On Mon, Aug 5, 2019 at 6:10 PM Kever Yang wrote: > > > On 2019/7/29 下午3:47, Jagan Teki wrote: > > - use dw instead of designware for driver file since > >Linux following the same. > > - add CONFIG macro start with CONFIG_WDT since the > >driver mode wdt drivers follow this. > > > > Cc:

Re: [U-Boot] [PATCH v2] i2c: mxc: add CONFIG_CLK support

2019-08-14 Thread Schrempf Frieder
On 13.08.19 10:05, Peng Fan wrote: > Hi Frieder > >> Subject: [PATCH v2] i2c: mxc: add CONFIG_CLK support >> >> When CONFIG_CLK enabled, use CLK UCLASS for clk related settings. > > Are you fine with this patch? Yes! Reviewed-by: Frieder Schrempf Tested-by: Frieder Schrempf > > Thanks, >

Re: [U-Boot] [PATCH] Convert CONFIG_FSL_USDHC to Kconfig

2019-08-14 Thread Peng Fan
> Subject: [PATCH] Convert CONFIG_FSL_USDHC to Kconfig > > This converts the following to Kconfig: >CONFIG_FSL_USDHC > > Signed-off-by: Adam Ford > > diff --git a/board/davinci/da8xxevm/omapl138_lcdk.c > b/board/davinci/da8xxevm/omapl138_lcdk.c > index 578d928443..94df37ab71 100644 > ---

Re: [U-Boot] [U-Boot-Custodians] [RFC] enforce CONFIG_DM=y

2019-08-14 Thread Łukasz Dałek
On 8/13/19 1:12 PM, Tom Rini wrote: On Tue, Aug 13, 2019 at 11:53:59AM +0200, Marek Vasut wrote: On 8/13/19 11:34 AM, Simon Glass wrote: On Fri, 9 Aug 2019 at 12:39, Heinrich Schuchardt wrote: The time lines set force in doc/driver-model/migration.rst for different subsystems to move to the

[U-Boot] instruction "xchgb" for x86_64

2019-08-14 Thread James Wang
Hi Simon, This is James and am working on u-boot to bring back MinGW tool chain for cross compiling host tools for Windows on Linux. After complete the code, I plan to generate a patch for community review. During work, I face an compiling error in file with macro CONFIG_IS_ENABLED. After

Re: [U-Boot] [EXT] Re: [PATCH v4 1/5] spl: dm: disable SPI DM flash for non-DM SPL

2019-08-14 Thread Chuanhua Han
> -Original Message- > From: Lukasz Majewski > Sent: 2019年8月14日 16:57 > To: Chuanhua Han > Cc: Jagan Teki ; Xiaowei Bao > ; U-Boot-Denx ; Pan Jiafei > ; Jagan Teki ; Ruchika > Gupta > Subject: Re: [U-Boot] [EXT] Re: [PATCH v4 1/5] spl: dm: disable SPI DM flash > for > non-DM SPL > >

  1   2   >