Re: [U-Boot] [PATCH v3 08/10] armv7r: dts: am654: Add initial support

2018-11-01 Thread Lokesh Vutla
diff --git a/arch/arm/dts/k3-am654-base-board-ddr4-1333MHz.dtsi b/arch/arm/dts/k3-am654-base-board-ddr4-1333MHz.dtsi new file mode 100644 index 00..c07e6519e5 --- /dev/null +++ b/arch/arm/dts/k3-am654-base-board-ddr4-1333MHz.dtsi There is a nice EMIF tool[1] that HW team created to

Re: [U-Boot] [PATCH 08/13] mmc: tmio: Silence transfer errors when tuning

2018-11-01 Thread Masahiro Yamada
On Thu, Nov 1, 2018 at 9:14 PM Marek Vasut wrote: > > On 11/01/2018 12:42 PM, Masahiro Yamada wrote: > > On Thu, Nov 1, 2018 at 2:22 AM Marek Vasut wrote: > >> > >> In case the controller performs card tuning, that is, sends MMC > >> command 19 or 21, silence possible CRC error warning prints. Th

Re: [U-Boot] [PATCH 01/13] mmc: tmio: Simplify pinmux handling

2018-11-01 Thread Masahiro Yamada
On Thu, Nov 1, 2018 at 9:14 PM Marek Vasut wrote: > > On 11/01/2018 12:38 PM, Masahiro Yamada wrote: > > On Thu, Nov 1, 2018 at 2:21 AM Marek Vasut wrote: > >> > >> The SD UHS SDR12, SDR25, SDR50, SDR104, DDR50 and MMC HS200, HS400 > >> modes all use 1.8V signaling, while all the legacy modes use

Re: [U-Boot] [PATCH 00/13] dm: DM_FLAG_PRE_RELOC flag clean up

2018-11-01 Thread Bin Meng
On Sun, Oct 28, 2018 at 9:31 PM Adam Ford wrote: > > On Wed, Oct 24, 2018 at 8:32 AM Bin Meng wrote: > > > > When a driver declares DM_FLAG_PRE_RELOC flag, it wishes to be > > bound before relocation. However due to a bug in the DM core, > > the flag only takes effect when devices are statically

Re: [U-Boot] [PATCH V2 02/13] mmc: tmio: Switch to clock framework

2018-11-01 Thread Masahiro Yamada
On Thu, Nov 1, 2018 at 6:39 PM Marek Vasut wrote: > > Switch the driver to using clk_get_rate()/clk_set_rate() instead of > caching the mclk frequency in it's private data. This is required on > the SDHI variant of the controller, where the upstream mclk need to > be adjusted when using UHS modes.

Re: [U-Boot] [PATCH V2 02/13] mmc: tmio: Switch to clock framework

2018-11-01 Thread Masahiro Yamada
On Thu, Nov 1, 2018 at 8:38 PM Masahiro Yamada wrote: > > On Thu, Nov 1, 2018 at 6:39 PM Marek Vasut wrote: > > > > Switch the driver to using clk_get_rate()/clk_set_rate() instead of > > caching the mclk frequency in it's private data. This is required on > > the SDHI variant of the controller,

Re: [U-Boot] [PATCH 2/6] efi_loader: Initial HII database protocols

2018-11-01 Thread AKASHI Takahiro
On Thu, Nov 01, 2018 at 08:09:45AM +0100, Heinrich Schuchardt wrote: > On 11/01/2018 05:47 AM, AKASHI Takahiro wrote: > > From: Leif Lindholm > > > > This patch provides enough implementation of the following protocols to > > run EDKII's Shell.efi and UEFI SCT: > > > > * EfiHiiDatabaseProtocol

Re: [U-Boot] [PATCH 6/6] efi_selftest: add HII database protocols test

2018-11-01 Thread AKASHI Takahiro
On Thu, Nov 01, 2018 at 08:33:09AM +0100, Heinrich Schuchardt wrote: > On 11/01/2018 05:47 AM, AKASHI Takahiro wrote: > > This efi_selftest tests HII database protocol and HII string protocol. > > > > Signed-off-by: AKASHI Takahiro > > --- > > lib/efi_selftest/Makefile| 1 + > >

Re: [U-Boot] [PATCH 2/6] efi_loader: Initial HII database protocols

2018-11-01 Thread AKASHI Takahiro
On Thu, Nov 01, 2018 at 08:39:04AM +0100, Heinrich Schuchardt wrote: > On 11/01/2018 05:47 AM, AKASHI Takahiro wrote: > > From: Leif Lindholm > > > > This patch provides enough implementation of the following protocols to > > run EDKII's Shell.efi and UEFI SCT: > > > > * EfiHiiDatabaseProtocol

Re: [U-Boot] [PATCH 2/6] efi_loader: Initial HII database protocols

2018-11-01 Thread AKASHI Takahiro
On Thu, Nov 01, 2018 at 09:42:25AM +0100, Heinrich Schuchardt wrote: > On 11/01/2018 05:47 AM, AKASHI Takahiro wrote: > > From: Leif Lindholm > > > > This patch provides enough implementation of the following protocols to > > run EDKII's Shell.efi and UEFI SCT: > > > > * EfiHiiDatabaseProtocol

Re: [U-Boot] [PATCH 1/6] lib: add u16_strcpy/strdup functions

2018-11-01 Thread AKASHI Takahiro
On Thu, Nov 01, 2018 at 07:10:59AM +0100, Heinrich Schuchardt wrote: > On 11/01/2018 05:45 AM, AKASHI Takahiro wrote: > > From: "Akashi Takahiro" > > > > Add u16_strcpy() and u16_strdup(). The latter function will be > > used later in implementing efi HII database protocol. > > > > Signed-off-by

Re: [U-Boot] [PATCH] arm: socfpga: check total size of SPL

2018-11-01 Thread Marek Vasut
On 11/01/2018 08:26 PM, Simon Goldschmidt wrote: > On 31.10.2018 11:00, Marek Vasut wrote: >> On 10/31/2018 06:44 AM, Simon Goldschmidt wrote: >>> On Tue, Oct 30, 2018 at 11:02 PM Marek Vasut >>> wrote: On 10/30/2018 10:30 PM, Simon Goldschmidt wrote: > On 30.10.2018 22:26, Marek Vasut wr

Re: [U-Boot] [PATCH] arm: socfpga: check total size of SPL

2018-11-01 Thread Marek Vasut
On 11/01/2018 10:13 PM, Simon Goldschmidt wrote: > On 01.11.2018 21:59, Marek Vasut wrote: >> On 11/01/2018 09:31 PM, Simon Goldschmidt wrote: >>> On Thu, Nov 1, 2018 at 8:26 PM Simon Goldschmidt >>> wrote: On 31.10.2018 11:00, Marek Vasut wrote: > On 10/31/2018 06:44 AM, Simon Goldschmid

Re: [U-Boot] [PATCH] arm: socfpga: check total size of SPL

2018-11-01 Thread Simon Goldschmidt
On 01.11.2018 21:59, Marek Vasut wrote: On 11/01/2018 09:31 PM, Simon Goldschmidt wrote: On Thu, Nov 1, 2018 at 8:26 PM Simon Goldschmidt wrote: On 31.10.2018 11:00, Marek Vasut wrote: On 10/31/2018 06:44 AM, Simon Goldschmidt wrote: On Tue, Oct 30, 2018 at 11:02 PM Marek Vasut wrote: On 1

Re: [U-Boot] [PATCH] arm: socfpga: check total size of SPL

2018-11-01 Thread Marek Vasut
On 11/01/2018 09:31 PM, Simon Goldschmidt wrote: > On Thu, Nov 1, 2018 at 8:26 PM Simon Goldschmidt > wrote: >> >> On 31.10.2018 11:00, Marek Vasut wrote: >>> On 10/31/2018 06:44 AM, Simon Goldschmidt wrote: On Tue, Oct 30, 2018 at 11:02 PM Marek Vasut wrote: > On 10/30/2018 10:30 PM, Si

[U-Boot] Please pull ARC changes

2018-11-01 Thread Alexey Brodkin
Hi Tom, The following changes since commit fdaccfeb5e03e18c05be386b8a7c6be02be2cf15: Merge branch 'master' of git://git.denx.de/u-boot-socfpga (2018-10-31 17:15:55 -0400) are available in the Git repository at: git://git.denx.de/u-boot-arc.git tags/arc-for-2018.11 for you to fetch changes

Re: [U-Boot] [PATCH] arm: socfpga: check total size of SPL

2018-11-01 Thread Simon Goldschmidt
On Thu, Nov 1, 2018 at 8:26 PM Simon Goldschmidt wrote: > > On 31.10.2018 11:00, Marek Vasut wrote: > > On 10/31/2018 06:44 AM, Simon Goldschmidt wrote: > >> On Tue, Oct 30, 2018 at 11:02 PM Marek Vasut wrote: > >>> On 10/30/2018 10:30 PM, Simon Goldschmidt wrote: > On 30.10.2018 22:26, Mare

Re: [U-Boot] [PATCH] arm: socfpga: check total size of SPL

2018-11-01 Thread Simon Goldschmidt
On 31.10.2018 11:00, Marek Vasut wrote: On 10/31/2018 06:44 AM, Simon Goldschmidt wrote: On Tue, Oct 30, 2018 at 11:02 PM Marek Vasut wrote: On 10/30/2018 10:30 PM, Simon Goldschmidt wrote: On 30.10.2018 22:26, Marek Vasut wrote: On 10/30/2018 10:23 PM, Simon Goldschmidt wrote: Correctly de

Re: [U-Boot] [PATCH v3 0/8] Improvements for the dwc3_generic driver

2018-11-01 Thread Lukasz Majewski
Hi Tom, > On Thu, Nov 01, 2018 at 04:56:46PM +0100, Lukasz Majewski wrote: > > Hi Michal, > > > > > On 28. 10. 18 21:50, Lukasz Majewski wrote: > > > > Dear All, > > > > > > > >> Andy, Kerver, Lin, > > > >> > > > >> could you give a try to this series on evb-rk3328 please ? > > > >> This

Re: [U-Boot] [PATCH v3 0/8] Improvements for the dwc3_generic driver

2018-11-01 Thread Tom Rini
On Thu, Nov 01, 2018 at 04:56:46PM +0100, Lukasz Majewski wrote: > Hi Michal, > > > On 28. 10. 18 21:50, Lukasz Majewski wrote: > > > Dear All, > > > > > >> Andy, Kerver, Lin, > > >> > > >> could you give a try to this series on evb-rk3328 please ? This has > > >> been blocked for a long time a

Re: [U-Boot] [PATCH v3 0/8] Improvements for the dwc3_generic driver

2018-11-01 Thread Lukasz Majewski
Hi Michal, > On 28. 10. 18 21:50, Lukasz Majewski wrote: > > Dear All, > > > >> Andy, Kerver, Lin, > >> > >> could you give a try to this series on evb-rk3328 please ? This has > >> been blocked for a long time already. > > > > Yes, agree. Could somebody (who has this SoC) test this patch se

Re: [U-Boot] driver/spi: Add FSPI driver for NXP FlexSPI controller

2018-11-01 Thread York Sun
On 9/25/18 1:41 AM, Ashish Kumar wrote: > Add nxp_fspi driver for NXP FlexSPI controller. > This driver supports both IP Mode read/write and > AHB mode READ. > > It supports Single Bit mode read along with Fast Read cmd support. > Octal bit mode is supported for read. > Multi CS are supported test

[U-Boot] Issue with relocating code to DDR

2018-11-01 Thread SHEKHAR SINGH
Hi All, I am new to U-boot. Currently, I am working on developing U-boot for a new SOC. The SOC has arm926ej-s as the core and is implemented on Xilinx FPGA with SD-card as the boot device. With current setup DDR is already initialized by FPGA and SD card can be accessed using direct addressing. W

Re: [U-Boot] [PATCH 1/4] tools: imx8image: check lseek return value

2018-11-01 Thread Peng Fan
Hi Fabio, > -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: 2018年11月1日 20:18 > To: Peng Fan > Cc: Stefano Babic ; Fabio Estevam > ; U-Boot-Denx ; dl-linux-imx > > Subject: Re: [U-Boot] [PATCH 1/4] tools: imx8image: check lseek return value > > Hi Peng, > >

Re: [U-Boot] [PATCH 1/4] tools: imx8image: check lseek return value

2018-11-01 Thread Fabio Estevam
Hi Peng, On Thu, Nov 1, 2018 at 9:15 AM Peng Fan wrote: > lseek only returns -1 when error. Is the coding style you proposed is > preferred than > what this patch has? In case lseek changes someday to return something else, checking for (ret < 0) will still work, so it is a more robust error h

Re: [U-Boot] [PATCH 1/4] tools: imx8image: check lseek return value

2018-11-01 Thread Peng Fan
Hi Fabio, > -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: 2018年11月1日 18:18 > To: Peng Fan > Cc: Stefano Babic ; Fabio Estevam > ; U-Boot-Denx ; dl-linux-imx > > Subject: Re: [U-Boot] [PATCH 1/4] tools: imx8image: check lseek return value > Hi Peng, > > On

Re: [U-Boot] [PATCH 01/13] mmc: tmio: Simplify pinmux handling

2018-11-01 Thread Marek Vasut
On 11/01/2018 12:38 PM, Masahiro Yamada wrote: > On Thu, Nov 1, 2018 at 2:21 AM Marek Vasut wrote: >> >> The SD UHS SDR12, SDR25, SDR50, SDR104, DDR50 and MMC HS200, HS400 >> modes all use 1.8V signaling, while all the legacy modes use 3.3V >> signaling. While there are extra modes which use 1.2V

Re: [U-Boot] [PATCH 08/13] mmc: tmio: Silence transfer errors when tuning

2018-11-01 Thread Marek Vasut
On 11/01/2018 12:42 PM, Masahiro Yamada wrote: > On Thu, Nov 1, 2018 at 2:22 AM Marek Vasut wrote: >> >> In case the controller performs card tuning, that is, sends MMC >> command 19 or 21, silence possible CRC error warning prints. The >> warnings are bound to happen, since the tuning will fail f

Re: [U-Boot] [PATCH 05/13] mmc: tmio: Keep generating clock when clock are enabled

2018-11-01 Thread Marek Vasut
On 11/01/2018 12:46 PM, Masahiro Yamada wrote: > On Thu, Nov 1, 2018 at 2:21 AM Marek Vasut wrote: >> >> The TMIO core has a feature where it can automatically disable clock output >> when the bus is not in use. While this is useful, it also interferes with >> switching the bus to 1.8V and other b

Re: [U-Boot] [PATCH 03/13] mmc: tmio: Do not set divider to 1 in DDR mode

2018-11-01 Thread Marek Vasut
On 11/01/2018 12:39 PM, Masahiro Yamada wrote: > On Thu, Nov 1, 2018 at 2:22 AM Marek Vasut wrote: >> >> The TMIO core has a quirk where divider == 1 must not be set in DDR modes. >> Handle this by setting divider to 2, as suggested in the documentation. >> >> Signed-off-by: Marek Vasut >> Cc: Ma

Re: [U-Boot] [PULL] u-boot-socfpga/master

2018-11-01 Thread Tom Rini
On Wed, Oct 31, 2018 at 09:36:12PM +0100, Marek Vasut wrote: > The following changes since commit 454cf76184c65426b68033a23da086e73663f2fc: > > Prepare v2018.11-rc3 (2018-10-29 16:04:26 -0400) > > are available in the Git repository at: > > git://git.denx.de/u-boot-socfpga.git master > > f

Re: [U-Boot] [PATCH 05/13] mmc: tmio: Keep generating clock when clock are enabled

2018-11-01 Thread Masahiro Yamada
On Thu, Nov 1, 2018 at 2:21 AM Marek Vasut wrote: > > The TMIO core has a feature where it can automatically disable clock output > when the bus is not in use. While this is useful, it also interferes with > switching the bus to 1.8V and other background tasks of the SD/MMC cards, > which require

Re: [U-Boot] [PATCH 07/13] mmc: tmio: Improve error handling

2018-11-01 Thread Masahiro Yamada
On Thu, Nov 1, 2018 at 2:25 AM Marek Vasut wrote: > > Properly handle return values and abort operations when they are > non-zero. This is a minor improvement, which fixes two remaining > unchecked return values. > > Signed-off-by: Marek Vasut > Cc: Masahiro Yamada > --- Good catch! Thanks. >

Re: [U-Boot] [PATCH 08/13] mmc: tmio: Silence transfer errors when tuning

2018-11-01 Thread Masahiro Yamada
On Thu, Nov 1, 2018 at 2:22 AM Marek Vasut wrote: > > In case the controller performs card tuning, that is, sends MMC > command 19 or 21, silence possible CRC error warning prints. The > warnings are bound to happen, since the tuning will fail for some > settings while searching for the optimal co

Re: [U-Boot] [PATCH 03/13] mmc: tmio: Do not set divider to 1 in DDR mode

2018-11-01 Thread Masahiro Yamada
On Thu, Nov 1, 2018 at 2:22 AM Marek Vasut wrote: > > The TMIO core has a quirk where divider == 1 must not be set in DDR modes. > Handle this by setting divider to 2, as suggested in the documentation. > > Signed-off-by: Marek Vasut > Cc: Masahiro Yamada > --- > drivers/mmc/tmio-common.c | 4 +

Re: [U-Boot] [PATCH V2 02/13] mmc: tmio: Switch to clock framework

2018-11-01 Thread Masahiro Yamada
On Thu, Nov 1, 2018 at 6:39 PM Marek Vasut wrote: > > Switch the driver to using clk_get_rate()/clk_set_rate() instead of > caching the mclk frequency in it's private data. This is required on > the SDHI variant of the controller, where the upstream mclk need to > be adjusted when using UHS modes.

Re: [U-Boot] [PATCH 01/13] mmc: tmio: Simplify pinmux handling

2018-11-01 Thread Masahiro Yamada
On Thu, Nov 1, 2018 at 2:21 AM Marek Vasut wrote: > > The SD UHS SDR12, SDR25, SDR50, SDR104, DDR50 and MMC HS200, HS400 > modes all use 1.8V signaling, while all the legacy modes use 3.3V > signaling. While there are extra modes which use 1.2V signaling, > the existing hardware does not support t

Re: [U-Boot] [PATCH 1/4] tools: imx8image: check lseek return value

2018-11-01 Thread Fabio Estevam
Hi Peng, On Thu, Nov 1, 2018 at 3:42 AM Peng Fan wrote: > size = sbuf.st_size; > - lseek(ifd, offset, SEEK_SET); > + if (lseek(ifd, offset, SEEK_SET) == -1) { > + fprintf(stderr, "%s: lseek error %s\n", > + __func__, strerror(errno)); > +

[U-Boot] [PATCH V2 02/13] mmc: tmio: Switch to clock framework

2018-11-01 Thread Marek Vasut
Switch the driver to using clk_get_rate()/clk_set_rate() instead of caching the mclk frequency in it's private data. This is required on the SDHI variant of the controller, where the upstream mclk need to be adjusted when using UHS modes. Platforms which do not support clock framework or do not su

Re: [U-Boot] [PATCH v3 0/8] Improvements for the dwc3_generic driver

2018-11-01 Thread Michal Simek
On 28. 10. 18 21:50, Lukasz Majewski wrote: > Dear All, > >> Andy, Kerver, Lin, >> >> could you give a try to this series on evb-rk3328 please ? This has >> been blocked for a long time already. > > Yes, agree. Could somebody (who has this SoC) test this patch set? TBH if there is no reaction af

Re: [U-Boot] [PATCH 2/6] efi_loader: Initial HII database protocols

2018-11-01 Thread Heinrich Schuchardt
On 11/01/2018 05:47 AM, AKASHI Takahiro wrote: > From: Leif Lindholm > > This patch provides enough implementation of the following protocols to > run EDKII's Shell.efi and UEFI SCT: > > * EfiHiiDatabaseProtocol > * EfiHiiStringProtocol > > Not implemented are: > * ExportPackageLists() >

Re: [U-Boot] [PATCH 2/6] efi_loader: Initial HII database protocols

2018-11-01 Thread Heinrich Schuchardt
On 11/01/2018 05:47 AM, AKASHI Takahiro wrote: > From: Leif Lindholm > > This patch provides enough implementation of the following protocols to > run EDKII's Shell.efi and UEFI SCT: > > * EfiHiiDatabaseProtocol > * EfiHiiStringProtocol > > Not implemented are: > * ExportPackageLists() >

Re: [U-Boot] [PATCH 6/6] efi_selftest: add HII database protocols test

2018-11-01 Thread Heinrich Schuchardt
On 11/01/2018 05:47 AM, AKASHI Takahiro wrote: > This efi_selftest tests HII database protocol and HII string protocol. > > Signed-off-by: AKASHI Takahiro > --- > lib/efi_selftest/Makefile| 1 + > lib/efi_selftest/efi_selftest_hii.c | 882 +++ > lib/efi

Re: [U-Boot] [PATCH 2/6] efi_loader: Initial HII database protocols

2018-11-01 Thread Heinrich Schuchardt
On 11/01/2018 05:47 AM, AKASHI Takahiro wrote: > From: Leif Lindholm > > This patch provides enough implementation of the following protocols to > run EDKII's Shell.efi and UEFI SCT: > > * EfiHiiDatabaseProtocol > * EfiHiiStringProtocol > > Not implemented are: > * ExportPackageLists() >