Re: [U-Boot] [PATCH v2 4/5] riscv: sifive: fu540: Enable SiFive SPI and MMC SPI drivers

2019-07-04 Thread Bin Meng
On Fri, Jul 5, 2019 at 2:29 PM Bin Meng wrote: > > On Sat, Jun 29, 2019 at 2:57 PM Anup Patel wrote: > > > > From: Bhargav Shah > > > > This patch enables SiFive SPI and MMC SPI drivers for the > > SiFive Unleashed board. > > > > Signed-off-by: Bhargav Shah > > Signed-off-by: Anup Patel > > --

Re: [U-Boot] [PATCH v2 4/5] riscv: sifive: fu540: Enable SiFive SPI and MMC SPI drivers

2019-07-04 Thread Bin Meng
On Sat, Jun 29, 2019 at 2:57 PM Anup Patel wrote: > > From: Bhargav Shah > > This patch enables SiFive SPI and MMC SPI drivers for the > SiFive Unleashed board. > > Signed-off-by: Bhargav Shah > Signed-off-by: Anup Patel > --- > board/sifive/fu540/Kconfig | 8 > 1 file changed, 8 inse

Re: [U-Boot] [PATCH v2 3/5] mmc: mmc_spi: Re-write driver using DM framework

2019-07-04 Thread Bin Meng
On Sat, Jun 29, 2019 at 2:57 PM Anup Patel wrote: > > From: Bhargav Shah > > This patch rewrites MMC SPI driver using U-Boot DM > framework and get it's working on SiFive Unleashed > board. > > Signed-off-by: Bhargav Shah > Signed-off-by: Anup Patel > --- > drivers/mmc/Kconfig | 18 ++ > dr

Re: [U-Boot] [PATCH v2 5/5] doc: sifive-fu540: Update README for SiFive SPI and MMC SPI drivers

2019-07-04 Thread Bin Meng
On Sat, Jun 29, 2019 at 2:57 PM Anup Patel wrote: > > This patch removes SiFive SPI driver and MMC SPI drive from the TODO > list in SiFive FU540 README. > > Signed-off-by: Anup Patel > --- > doc/README.sifive-fu540 | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > Reviewed-by: Bin M

Re: [U-Boot] [PATCH v2 2/5] mmc: skip select_mode_and_width for MMC SPI host

2019-07-04 Thread Bin Meng
On Sat, Jun 29, 2019 at 2:57 PM Anup Patel wrote: > > The MMC mode and width are fixed for MMC SPI host hence we skip > sd_select_mode_and_width() and mmc_select_mode_and_width() for > MMC SPI host. > > Signed-off-by: Anup Patel > --- > drivers/mmc/mmc.c | 14 ++ > 1 file changed, 14

Re: [U-Boot] [PATCH v2 1/5] spi: Add SiFive SPI driver

2019-07-04 Thread Bin Meng
On Sat, Jun 29, 2019 at 2:56 PM Anup Patel wrote: > > From: Bhargav Shah > > This patch adds SiFive SPI driver. The driver is 100% DM driver > and it determines input clock using clk framework. > > The SiFive SPI block is found on SiFive FU540 SOC and is used to > access flash and MMC devices on

[U-Boot] buildman cause PC hang for long time

2019-07-04 Thread Peng Fan
Hi Simon, I am adding i.MX8MM/8MN to upstream, but when run " ./tools/buildman/buildman aarch64 -x tegra,ls1,ls2,mvebu,uniphier,sunxi,samsung,rockchip,xilinx -j8 " It cause my host pc response very slow, seems it exhausted my CPU resources. aarch64: w+ hikey += WARNING

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

2019-07-04 Thread Peng Fan
> Subject: Re: [U-Boot] [PATCH 05/52] tools: imx8m_image: align spl bin image > size > > Hi Peng, > > I just tried your patches for i.MX8MM and the first issue I faced is with this > patch. See below. > > I have a few other things that I stumbled upon. I will send some comments > about them in t

[U-Boot] [PATCH] ARM: Stalling secondary CPUs when Qemu starts U-boot with more than one CPU

2019-07-04 Thread Rossier Daniel
Dear Maintainers, I would have a patch to integrate in U-boot/board/armltd/vExpress which allows Qemu/vExpress to start U-boot on multiple CPUs. The patch has been generated with tools/patman, but it still claims for warnings and errors I don't understand. This patch is related to the following

Re: [U-Boot] [PATCH v2 5/9] usb: storage: submit_int_msg -> usb_int_msg

2019-07-04 Thread Bin Meng
On Fri, Jul 5, 2019 at 12:01 AM Michal Suchánek wrote: > > On Wed, 3 Jul 2019 09:39:10 +0800 > Bin Meng wrote: > > > On Wed, Jul 3, 2019 at 1:57 AM Michal Suchanek wrote: > > > > > > Use the wrapper because the unwrapped function prototype will be changed > > > in the following patch. > > > > >

[U-Boot] [PATCH v2] spi: Add SPI controller driver for UniPhier SoCs

2019-07-04 Thread Kunihiko Hayashi
Add SPI controller driver implemented in Socionext UniPhier SoCs. This controller has the SPI master mode only. Signed-off-by: Kunihiko Hayashi --- Changes since v1: - Replace with and sort headers in ascending order - Change register accesses from structure use to direct macro use - Remove un

Re: [U-Boot] [GIT PULL] Pull request: u-boot-imx u -boot-imx-20190704

2019-07-04 Thread Tom Rini
6eb: > > Merge tag 'rockchip-for-v2019.07-rc5-2' of > https://gitlab.denx.de/u-boot/custodians/u-boot-rockchip (2019-07-02 > 08:18:19 -0400) > > are available in the Git repository at: > > https://gitlab.denx.de/u-boot/custodians/u-boot-imx.git > ta

Re: [U-Boot] [PATCH] board: amlogic: add mailing-list to MAINTAINERS

2019-07-04 Thread Tom Rini
On Thu, Jul 04, 2019 at 03:59:38PM +0200, Neil Armstrong wrote: > Add missing mailing-list to the amlogic boards MAINTAINERS file. > > Signed-off-by: Neil Armstrong Since you're going on vacation and this makes sense for the current release, I'm grabbing this for you, I hope you don't mind! Ap

Re: [U-Boot] [PATCH 2/3] bouncebuf: Add DMA validation check to addr_aligned().【请注意,邮件由u-boot-boun...@lists.denx.de代发】 addr_aligned().

2019-07-04 Thread Heiko Stübner
Hi Simon, Am Dienstag, 4. Juni 2019, 05:23:14 CEST schrieb Kever Yang: > On 05/19/2019 12:08 AM, Simon Glass wrote: > > On Tue, 7 May 2019 at 03:05, Christoph Muellner > > wrote: > >> Currently addr_aligned() performs an alignment and a length check > >> to validate the DMA address. However, some

Re: [U-Boot] [PATCH v2 2/9] usb: sl811-hcd: return -ENOTSUPP from unimplemented submit_int_msg

2019-07-04 Thread Michal Suchánek
On Thu, 4 Jul 2019 21:05:26 +0200 Marek Vasut wrote: > On 7/4/19 8:54 PM, Michal Suchánek wrote: > > On Thu, 4 Jul 2019 18:19:20 +0200 > > Marek Vasut wrote: > > > >> On 7/4/19 6:00 PM, Michal Suchánek wrote: > >>> On Tue, 2 Jul 2019 23:20:52 +0200 > >>> Marek Vasut wrote: > >>> > >>>

Re: [U-Boot] [PATCH v2 2/9] usb: sl811-hcd: return -ENOTSUPP from unimplemented submit_int_msg

2019-07-04 Thread Marek Vasut
On 7/4/19 8:54 PM, Michal Suchánek wrote: > On Thu, 4 Jul 2019 18:19:20 +0200 > Marek Vasut wrote: > >> On 7/4/19 6:00 PM, Michal Suchánek wrote: >>> On Tue, 2 Jul 2019 23:20:52 +0200 >>> Marek Vasut wrote: >>> On 7/2/19 9:35 PM, Michal Suchánek wrote: > On Tue, 2 Jul 2019 20:41:04

Re: [U-Boot] [PATCH v2 2/9] usb: sl811-hcd: return -ENOTSUPP from unimplemented submit_int_msg

2019-07-04 Thread Michal Suchánek
On Thu, 4 Jul 2019 18:19:20 +0200 Marek Vasut wrote: > On 7/4/19 6:00 PM, Michal Suchánek wrote: > > On Tue, 2 Jul 2019 23:20:52 +0200 > > Marek Vasut wrote: > > > >> On 7/2/19 9:35 PM, Michal Suchánek wrote: > >>> On Tue, 2 Jul 2019 20:41:04 +0200 > >>> Marek Vasut wrote: > >>> > >>>

Re: [U-Boot] [RFC] env: ti: Handle reboot reason from BCB

2019-07-04 Thread Sam Protsenko
Hi Eugeniu, On Sun, Jun 30, 2019 at 9:49 PM Eugeniu Rosca wrote: > > Hi Sam, > > All below is my 2 cents and FWIW, so feel free to just skip it. > > On Fri, Jun 21, 2019 at 12:25:44AM +0300, Sam Protsenko wrote: > > *** PLEASE DO NOT MERGE. > > *** This is only RFC, a discussion thread. Patch is

Re: [U-Boot] [PATCH v2 2/9] usb: sl811-hcd: return -ENOTSUPP from unimplemented submit_int_msg

2019-07-04 Thread Marek Vasut
On 7/4/19 6:00 PM, Michal Suchánek wrote: > On Tue, 2 Jul 2019 23:20:52 +0200 > Marek Vasut wrote: > >> On 7/2/19 9:35 PM, Michal Suchánek wrote: >>> On Tue, 2 Jul 2019 20:41:04 +0200 >>> Marek Vasut wrote: >>> On 7/2/19 7:55 PM, Michal Suchanek wrote: Commit message is still m

Re: [U-Boot] [PATCH v2] fastboot: Remove "bootloader-version" variable

2019-07-04 Thread Eugeniu Rosca
On Wed, Jul 03, 2019 at 07:34:07PM +0300, Sam Protsenko wrote: > As per [1], there is no such fastboot variable as "bootloader-version". > Only "version-bootloader" is supported. Let's reflect this and not > confuse users further. > > [1] > https://android.googlesource.com/platform/system/core/+/

Re: [U-Boot] [PATCH v2 5/9] usb: storage: submit_int_msg -> usb_int_msg

2019-07-04 Thread Michal Suchánek
On Wed, 3 Jul 2019 09:39:10 +0800 Bin Meng wrote: > On Wed, Jul 3, 2019 at 1:57 AM Michal Suchanek wrote: > > > > Use the wrapper because the unwrapped function prototype will be changed > > in the following patch. > > > > Signed-off-by: Michal Suchanek > > --- > > v2: usb_submit_int_msg -> usb

Re: [U-Boot] [PATCH v2 2/9] usb: sl811-hcd: return -ENOTSUPP from unimplemented submit_int_msg

2019-07-04 Thread Michal Suchánek
On Tue, 2 Jul 2019 23:20:52 +0200 Marek Vasut wrote: > On 7/2/19 9:35 PM, Michal Suchánek wrote: > > On Tue, 2 Jul 2019 20:41:04 +0200 > > Marek Vasut wrote: > > > >> On 7/2/19 7:55 PM, Michal Suchanek wrote: > >> > >> Commit message is still missing ... > >> > >>> Signed-off-by: Michal Suc

Re: [U-Boot] [PATCH] fastboot: Remove "bootloader-version" variable

2019-07-04 Thread Eugeniu Rosca
Hi Sam, Last comment was posted in the wrong thread. On Thu, Jul 04, 2019 at 05:31:45PM +0200, Eugeniu Rosca wrote: > > --- a/doc/README.android-fastboot > > +++ b/doc/README.android-fastboot > > This patch seems to depend on the BCB series [1]. This observation is valid for the v2, found here:

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

2019-07-04 Thread Schrempf Frieder
Hi Peng, I just tried your patches for i.MX8MM and the first issue I faced is with this patch. See below. I have a few other things that I stumbled upon. I will send some comments about them in the coming days. On 02.07.19 04:31, peng@nxp.com wrote: > From: Peng Fan > > Align spl bin ima

Re: [U-Boot] [PATCH] fastboot: Remove "bootloader-version" variable

2019-07-04 Thread Eugeniu Rosca
Hi Sam, On Thu, Jun 20, 2019 at 05:00:01PM +0300, Sam Protsenko wrote: > As per [1], there is no such fastboot variable as "bootloader-version". > Only "version-bootloader" is supported. Let's reflect this and not > confuse users further. > > [1] > https://android.googlesource.com/platform/syste

Re: [U-Boot] [PATCH 3/8] usb_kdb: only process events succesfully received

2019-07-04 Thread Marek Vasut
On 7/3/19 6:41 PM, Michal Suchánek wrote: > On Wed, 3 Jul 2019 13:48:00 +0200 > Marek Vasut wrote: > >> On 7/3/19 1:43 PM, Michal Suchánek wrote: >>> On Wed, 3 Jul 2019 13:26:50 +0200 >>> Marek Vasut wrote: >>> On 7/3/19 11:46 AM, Michal Suchánek wrote: > On Tue, 2 Jul 2019 23:20:2

Re: [U-Boot] [PATCH] ARM: imx6: DHCOM i.MX6 PDK: Switch to DM for I2C

2019-07-04 Thread Marek Vasut
On 7/4/19 9:09 AM, Ludwig Zenz wrote: > Marek Vasut Wednesday 3rd July 2019 14:06: >> >> On 7/3/19 10:20 AM, Ludwig Zenz wrote: >> [...] >> >>> static int setup_dhcom_mac_from_fuse(void) >>> { >>> + struct udevice *dev; >>> unsigned char enetaddr[6]; >>> int ret; >>> >>> @@ -228,13 +

Re: [U-Boot] [RESEND PATCH v3 13/18] usb: dwc3: Kconfig: get rid of obsolete mode selection

2019-07-04 Thread Marek Vasut
On 7/4/19 9:37 AM, Jean-Jacques Hiblot wrote: > Hi Marek, > > On 02/07/2019 14:32, Jean-Jacques Hiblot wrote: >> >> On 02/07/2019 14:10, Marek Vasut wrote: >>> On 7/2/19 2:06 PM, Jean-Jacques Hiblot wrote: On 02/07/2019 13:38, Marek Vasut wrote: > On 7/2/19 4:11 AM, Kever Yang wrote:

Re: [U-Boot] [PATCH v2] fastboot: getvar: Add "is-userspace" variable

2019-07-04 Thread Eugeniu Rosca
On Wed, Jul 03, 2019 at 07:00:22PM +0300, Sam Protsenko wrote: > As per documentation [1], Android-Q requires for bootloader to provide > "is-userspace" variable. "no" value should be always returned. This > patch implements this fastboot variable. > > [1] > https://android.googlesource.com/platf

[U-Boot] [PULL u-boot] Please pull u-boot-amlogic-20190704

2019-07-04 Thread Neil Armstrong
ry at: https://gitlab.denx.de/u-boot/custodians/u-boot-amlogic.git tags/u-boot-amlogic-20190704 for you to fetch changes up to 3f1f9f08eb2031e14a7e2037feed18a69f1437c6: board: amlogic: Generate unique MAC address for Q200 and P212 based boards (2019-07-04

Re: [U-Boot] [PATCH 0/3] amlogic: add unique MAC address generatio

2019-07-04 Thread Neil Armstrong
On 12/06/2019 11:49, Neil Armstrong wrote: > This patchset adds support for generating an unique MAC address per-SoC, > and enables it on the q200 (VIM2) and P212 (libretech-cc, khadas-vim, > libretech-ac) > based boards. > > Neil Armstrong (3): > ARM: meson: sm: Add secure monitor calls to ret

[U-Boot] [PATCH] board: amlogic: add mailing-list to MAINTAINERS

2019-07-04 Thread Neil Armstrong
Add missing mailing-list to the amlogic boards MAINTAINERS file. Signed-off-by: Neil Armstrong --- board/amlogic/p200/MAINTAINERS | 1 + board/amlogic/p201/MAINTAINERS | 1 + board/amlogic/p212/MAINTAINERS | 1 + board/amlogic/q200/MAINTAINERS | 1 + board/amlogic/s400/MAINTAINERS | 1 + board/a

[U-Boot] [PATCH 3/3] video: meson: dw-hdmi: add EDID mode filtering to only select supported modes

2019-07-04 Thread Neil Armstrong
Add support for the new mode_valid() display op to filter out unsupported display DMT timings. This is useful when connected to 4k displays, since we only support DMT monitors up to 1920x1080, the 4k native timings are discarded to select supported timings. Signed-off-by: Neil Armstrong --- dri

[U-Boot] [PATCH 2/3] video: display: use edid_get_timing_validate() variant to filter supported EDID modes

2019-07-04 Thread Neil Armstrong
Introduce a new display op, mode_valid() to be used with the newly introduced edid_get_timing_validate() function, to filter supported monitor timings if handled by the display driver. Signed-off-by: Neil Armstrong --- drivers/video/display-uclass.c | 15 ++- include/display.h

[U-Boot] [PATCH 1/3] edid: add edid_get_timing_validate() variant to filter out edid modes

2019-07-04 Thread Neil Armstrong
The original edid_get_timing() function returns the first valid timing, but on some plaforms, we could only supports a subset of the listed monitot's navite timing. Let's introduce a edid_get_timing_validate() adding a mode_valid callback including a private cookie pointer. If the callback return

[U-Boot] [PATCH 0/3] video: add support for EDID timings validation

2019-07-04 Thread Neil Armstrong
This patch introduces an edid_get_timing_validate() variant function with a mode_valid() callback in order to filter supported timings from a display driver while adding a new mode_valid() display op. This permits selecting a valid timing on Amlogic SoCs when plugged on 4K monitors/TVs for example

Re: [U-Boot] [PATCH 0/4] davinci: fix build warnings

2019-07-04 Thread Tom Rini
On Thu, Jul 04, 2019 at 09:38:38AM +0200, Bartosz Golaszewski wrote: > pon., 24 cze 2019 o 10:18 Bartosz Golaszewski napisał(a): > > > > pon., 27 maj 2019 o 10:57 Bartosz Golaszewski napisał(a): > > > > > > From: Bartosz Golaszewski > > > > > > There are several build warnings related to driver-

Re: [U-Boot] [PATCH] env: ti: Improve "fastboot reboot bootloader" handling

2019-07-04 Thread Sam Protsenko
Please ignore this one. I came to the conclusion that it's an abuse of "preboot" feature, as user can change it anytime. Anyway, seems like booting into fastboot should be the part of Android boot procedure, which is done before "bootm" command execution. On Thu, Jun 20, 2019 at 9:58 PM Sam Prots

Re: [U-Boot] Question regarding the Common Clock Framework CCF v5 patches

2019-07-04 Thread Lukasz Majewski
Hi Stefano, > Hi Lukasz, > > On 04/07/19 13:31, Tom Rini wrote: > > On Thu, Jul 04, 2019 at 10:37:42AM +0200, Lukasz Majewski wrote: > > > >> Hi Tom, > >> > >> I'm a bit puzzled about the CCF v5 patches for i.MX6 (the series > >> can be found below): > >> http://patchwork.ozlabs.org/cover/1121

[U-Boot] [GIT PULL] Pull request: u-boot-imx u -boot-imx-20190704

2019-07-04 Thread Stefano Babic
ans/u-boot-rockchip (2019-07-02 08:18:19 -0400) are available in the Git repository at: https://gitlab.denx.de/u-boot/custodians/u-boot-imx.git tags/u-boot-imx-20190704 for you to fetch changes up to 4d981f5f27ab30af5e248245696b6a051c872ec4: wandboard: README: Adjust the U-Boot proper binary

Re: [U-Boot] Question regarding the Common Clock Framework CCF v5 patches

2019-07-04 Thread Stefano Babic
Hi Lukasz, On 04/07/19 13:31, Tom Rini wrote: > On Thu, Jul 04, 2019 at 10:37:42AM +0200, Lukasz Majewski wrote: > >> Hi Tom, >> >> I'm a bit puzzled about the CCF v5 patches for i.MX6 (the series can >> be found below): >> http://patchwork.ozlabs.org/cover/1121348/ >> >> I'm delegated to merge t

Re: [U-Boot] Question regarding the Common Clock Framework CCF v5 patches

2019-07-04 Thread Tom Rini
On Thu, Jul 04, 2019 at 10:37:42AM +0200, Lukasz Majewski wrote: > Hi Tom, > > I'm a bit puzzled about the CCF v5 patches for i.MX6 (the series can > be found below): > http://patchwork.ozlabs.org/cover/1121348/ > > I'm delegated to merge those, but I don' think that I shall merge my > own patch

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

2019-07-04 Thread Tobias Junghans
Hi, I'm trying to get an imx7d-based Colibris board running in secure mode in order to be able to use the CAAM, especially the HWRNG. However it seems like it's currently not possible to boot a mainline kernel (4.19) in secure mode with both CPU cores powered up, likely due to the missing PSCI

Re: [U-Boot] [PATCH v2 00/99] ram: rk3399: Add LPDDR4 support

2019-07-04 Thread Jagan Teki
Hi Kever, On Thu, Jul 4, 2019 at 3:57 PM Kever Yang wrote: > > Jagan, > > > On 06/26/2019 06:22 PM, Jagan Teki wrote: > > On Wed, Jun 26, 2019 at 12:12 AM Ezequiel Garcia > wrote: > > Hi Jagan, > > Thanks for your hard work. I'm sure everyone in the Rockchip community > is excited about finally

Re: [U-Boot] [PATCH v2 00/99] ram: rk3399: Add LPDDR4 support

2019-07-04 Thread Kever Yang
Jagan, On 06/26/2019 06:22 PM, Jagan Teki wrote: > On Wed, Jun 26, 2019 at 12:12 AM Ezequiel Garcia > wrote: >> Hi Jagan, >> >> Thanks for your hard work. I'm sure everyone in the Rockchip community >> is excited about finally having this support in U-Boot. >> >> On Tue, 25 Jun 2019 at 12:46, Ja

[U-Boot] [PATCH] rockchip: make_fit_atf.py: fix loadables property set error

2019-07-04 Thread Andy Yan
Commit b238e4b00ced ("rockchip: Cleanup of make_fit_atf.py.") set firmware = "atf_1"; loadables = "uboot","atf_1","atf_2"; Actually it should be: firmware = "atf_1"; loadables = "uboot","atf_2","atf_3"; Signed-off-by: Andy Yan --- arch/arm/mach-rockchip/make_fit_atf.py | 2 +- 1 file changed,

[U-Boot] [RESEND PATCH v2 15/15] arm: socfpga: agilex: Enable Agilex SoC build

2019-07-04 Thread Ley Foon Tan
Add build support for Agilex SoC. Signed-off-by: Ley Foon Tan --- v2: - Remove IC_CLK define, use clock DM method to get i2c clock - Change CONFIG_ENV_SIZE to 4KB since CONFIG_SPI_FLASH_USE_4K_SECTORS is enabled. --- arch/arm/Kconfig | 4 +- arch/arm/mach-socfpga/Kconfi

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

2019-07-04 Thread Ley Foon Tan
Add device tree files for Agilex SoC platform. Based on Linux Commit ID4b36daf9ada30. Signed-off-by: Ley Foon Tan --- v2: - Add clock property to device node. - Change memory size to 8GB - Enable i2c1 --- arch/arm/dts/Makefile | 1 + arch/arm/dts/socfpga_agile

[U-Boot] [RESEND PATCH v2 13/15] arm: socfpga: agilex: Add SPL for Agilex SoC

2019-07-04 Thread Ley Foon Tan
Add SPL support for Agilex SoC. Signed-off-by: Ley Foon Tan --- v2: - Change clock driver probing to DM. - Remove unused OSC1TIMER0 reset - Remove debug_uart_init(). UART depends on clock driver setup, no point to call debug_uart_init() after spl_early_init() and clock driver initialization. -

[U-Boot] [RESEND PATCH v2 12/15] board: intel: agilex: Add socdk board support for Intel Agilex SoC

2019-07-04 Thread Ley Foon Tan
Add socdk board support for Intel Agilex SoC Signed-off-by: Ley Foon Tan --- board/intel/agilex-socdk/MAINTAINERS | 7 +++ board/intel/agilex-socdk/Makefile| 7 +++ board/intel/agilex-socdk/socfpga.c | 7 +++ 3 files changed, 21 insertions(+) create mode 100644 board/intel/agi

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

2019-07-04 Thread Ley Foon Tan
Add clock manager driver for Agilex. Provides clock initialization and get_rate functions. stratix10-clock.h is from Linux commit ID 89727949ea1e. Signed-off-by: Chee Hong Ang Signed-off-by: Ley Foon Tan --- v2: - Convert Clock driver to DM --- .../mach-socfpga/include/mach/clock_manage

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

2019-07-04 Thread Ley Foon Tan
Add clock manager support for Agilex. Signed-off-by: Ley Foon Tan --- v2: - Get clocks from clock DM. --- arch/arm/mach-socfpga/Makefile| 4 + arch/arm/mach-socfpga/clock_manager_agilex.c | 87 +++ .../include/mach/clock_manager_agilex.h | 2 + 3 files c

[U-Boot] [RESEND PATCH v2 04/15] arm: socfpga: agilex: Add reset manager support

2019-07-04 Thread Ley Foon Tan
Add reset manager support for Agilex. Signed-off-by: Ley Foon Tan --- .../mach-socfpga/include/mach/reset_manager.h | 5 ++- .../include/mach/reset_manager_agilex.h | 38 +++ arch/arm/mach-socfpga/reset_manager.c | 9 +++-- 3 files changed, 48 insertions(+), 4 del

[U-Boot] [RESEND PATCH v2 09/15] arm: socfpga: agilex: Add CCU support for Agilex

2019-07-04 Thread Ley Foon Tan
Add Cache Coherency Unit (CCU) support for Agilex. CCU is to ensures consistency of shared data between multi masters in the system. Software need to initialize CCU's directories and coherency agent interfaces in CCU IP. Signed-off-by: Ley Foon Tan --- arch/arm/mach-socfpga/Makefile

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

2019-07-04 Thread Ley Foon Tan
Move Stratix10 and Agilex reset manager common code to reset_manager.h. Remove unused RSTMGR_XXX defines. Signed-off-by: Ley Foon Tan --- .../mach-socfpga/include/mach/reset_manager.h | 26 ++ .../include/mach/reset_manager_s10.h | 79 --- 2 files changed, 26 insert

[U-Boot] [RESEND PATCH v2 11/15] ddr: altera: agilex: Add SDRAM driver for Agilex

2019-07-04 Thread Ley Foon Tan
Add SDRAM driver for Agilex SoC. Signed-off-by: Tien Fong Chee Signed-off-by: Ley Foon Tan --- drivers/ddr/altera/Kconfig| 6 +- drivers/ddr/altera/Makefile | 1 + drivers/ddr/altera/sdram_agilex.c | 158 ++ drivers/ddr/altera/sdram_common.c | 1 +

[U-Boot] [RESEND PATCH v2 10/15] ddr: altera: Restructure Stratix 10 SDRAM driver

2019-07-04 Thread Ley Foon Tan
Restructure Stratix 10 SDRAM driver. Move common code to separate file, in preparation to support SDRAM driver for Agilex. Signed-off-by: Ley Foon Tan --- drivers/ddr/altera/Makefile | 2 +- drivers/ddr/altera/sdram_common.c | 307 ++ .../altera/{s

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

2019-07-04 Thread Ley Foon Tan
Add system manager support for Agilex. Signed-off-by: Ley Foon Tan --- v2: - Include system_manager_s10_agilex_common.h in system_manager_agilex.h --- .../include/mach/system_manager.h | 2 + .../include/mach/system_manager_agilex.h | 129 ++ .../mach/system_m

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

2019-07-04 Thread Ley Foon Tan
Move Stratix10 and Agilex system manager common code new header file. Signed-off-by: Ley Foon Tan --- v2: - Move common defines for Stratix 10 and Agilex to system_manager_s10_agilex_common.h --- .../include/mach/system_manager_s10.h | 46 +-- .../mach/system_manager_s10_ag

[U-Boot] [RESEND PATCH v2 02/15] arm: socfpga: Move firewall code to firewall file

2019-07-04 Thread Ley Foon Tan
Move firewall related code to new firewall.c, to share code in Stratix 10 and Agilex. No functional change. Signed-off-by: Ley Foon Tan --- arch/arm/mach-socfpga/Makefile| 1 + arch/arm/mach-socfpga/firewall.c | 97 +++ .../mach/{firewall_s10.h => f

[U-Boot] [RESEND PATCH v2 01/15] arm: socfpga: agilex: Add base address for Intel Agilex SoC

2019-07-04 Thread Ley Foon Tan
Add base address for Intel Agilex SoC. Reuse base_addr_s10.h for Agilex, only one base address is different from S10. Signed-off-by: Ley Foon Tan --- v2: - Reuse base_addr_s10.h and add #ifdef Agilex for SOCFPGA_FW_MPU_DDR_SCR_ADDRESS --- arch/arm/mach-socfpga/include/mach/base_addr_s10.h | 4

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

2019-07-04 Thread Ley Foon Tan
This is 2nd version of patchset (RESEND) to add Intel Agilex SoC[1] support. This patchset needs to apply after patch in [2] for Designware i2c clock from DM. Patch 1, 5, 6, 7, 8, 13, 14, 15 have changed, the rest have not. *Patch 7 is new patch for clock manager driver with DM. Detail change log

[U-Boot] Question regarding the Common Clock Framework CCF v5 patches

2019-07-04 Thread Lukasz Majewski
Hi Tom, I'm a bit puzzled about the CCF v5 patches for i.MX6 (the series can be found below): http://patchwork.ozlabs.org/cover/1121348/ I'm delegated to merge those, but I don' think that I shall merge my own patches. Hence, I would like to ask you to change the delegation (or I can do it mysel

Re: [U-Boot] [PATCH] usb: gadget: f_dfu.c: fix memory leak

2019-07-04 Thread Lukasz Majewski
Hi Ralph, > dfu_prepare_function() allocates N+1 descriptor header structures, > the last one being the "DFU Functional Descriptor". > > dfu_unbind() handles de-allocation, but failes to free the final > one (eg. "DFU Functional Descriptor"), leading to memory leak. > > Fixed by incrementing cou

Re: [U-Boot] [PATCH 01/15] arm: socfpga: agilex: Add base address for Intel Agilex SoC

2019-07-04 Thread Ley Foon Tan
On Tue, Jun 25, 2019 at 10:03 PM Dinh Nguyen wrote: > > > > On 6/24/19 8:16 PM, Ley Foon Tan wrote: > > On Tue, Jun 25, 2019 at 4:00 AM Simon Goldschmidt > > wrote: > >> > >> Am 30.05.2019 um 11:03 schrieb Ley Foon Tan: > >>> Add base address for Intel Agilex SoC. > >>> > >>> Reuse base_addr_s10.

Re: [U-Boot] [PATCH 0/4] davinci: fix build warnings

2019-07-04 Thread Bartosz Golaszewski
pon., 24 cze 2019 o 10:18 Bartosz Golaszewski napisał(a): > > pon., 27 maj 2019 o 10:57 Bartosz Golaszewski napisał(a): > > > > From: Bartosz Golaszewski > > > > There are several build warnings related to driver-model usage emitted > > when building u-boot for da850-evm and da850-lcdk. This ser

Re: [U-Boot] [RESEND PATCH v3 13/18] usb: dwc3: Kconfig: get rid of obsolete mode selection

2019-07-04 Thread Jean-Jacques Hiblot
Hi Marek, On 02/07/2019 14:32, Jean-Jacques Hiblot wrote: On 02/07/2019 14:10, Marek Vasut wrote: On 7/2/19 2:06 PM, Jean-Jacques Hiblot wrote: On 02/07/2019 13:38, Marek Vasut wrote: On 7/2/19 4:11 AM, Kever Yang wrote: On 06/27/2019 09:06 PM, Jean-Jacques Hiblot wrote: The mode selection

Re: [U-Boot] [PATCH] rockchip: dts: rk3399: Add spl-boot-order for Rock PI 4

2019-07-04 Thread Mark Kettenis
> From: Andy Yan > Date: Thu, 4 Jul 2019 14:52:47 +0800 > > RK3399 use sdhci for eMMC and DW MMC for SD Card, and > spl will only try to boot from SDMMC if we don't specify > other boot device for spl-boot-order. So add sdhci and sdmmc > for spl-boot-order here. Do you really not want "same-as-

Re: [U-Boot] [PATCH] ARM: imx6: DHCOM i.MX6 PDK: Switch to DM for I2C

2019-07-04 Thread Ludwig Zenz
Marek Vasut Wednesday 3rd July 2019 14:06: > > On 7/3/19 10:20 AM, Ludwig Zenz wrote: > [...] > > > static int setup_dhcom_mac_from_fuse(void) > > { > > + struct udevice *dev; > > unsigned char enetaddr[6]; > > int ret; > > > > @@ -228,13 +145,14 @@ static int setup_dhcom_mac_from_