Re: [U-Boot] [PATCH 2/2] pci: Change the first CFG read to Vendor ID in enumeration

2018-10-08 Thread Bin Meng
Hi Simon, On Tue, Oct 9, 2018 at 11:41 AM Simon Glass wrote: > > Hi Bin, > > On 8 October 2018 at 02:54, Bin Meng wrote: > > On Mon, Oct 8, 2018 at 4:36 PM Zhiqiang Hou wrote: > >> > >> From: Hou Zhiqiang > >> > >> As the PCIe specification recommend reading the Vendor ID register > >> to

Re: [U-Boot] [PATCH] debug uart: don't print before initialization

2018-10-08 Thread Simon Goldschmidt
On Tue, Oct 9, 2018 at 5:41 AM Simon Glass wrote: > > Hi, > > On 7 October 2018 at 11:52, Simon Goldschmidt > wrote: > > At least on socfpga gen5, _debug_uart_putc() can be called > > before debug_uart_init(), which leaves us stuck in an > > infinite loop in the ns16550 debug uart driver. > >

[U-Boot] [PATCH v1 09/19] clk: MediaTek: add clock driver for MT7623 SoC.

2018-10-08 Thread Ryder Lee
This patch adds a driver for MT7623 clock blocks. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger --- drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt7623.c | 867 ++ 2 files changed, 868 insertions(+) create mode 100644

[U-Boot] [PATCH v1 07/19] configs: MediaTek: add MT7623 Bananapi R2 board support

2018-10-08 Thread Ryder Lee
From: Weijie Gao This patch adds defconfig for the MT7623 Bananapi R2 board. Signed-off-by: Weijie Gao Signed-off-by: Ryder Lee Tested-by: Matthias Brugger --- configs/mt7623n_bpir2_defconfig | 53 + 1 file changed, 53 insertions(+) create mode

[U-Boot] [PATCH v1 19/19] MAINTAINERS: add an entry for MediaTek

2018-10-08 Thread Ryder Lee
This patch adds an entry for MediaTek. Signed-off-by: Ryder Lee --- MAINTAINERS | 17 + 1 file changed, 17 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 6147a4f..0837d3c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -157,6 +157,23 @@ T: git

[U-Boot] [PATCH v1 10/19] timer: MediaTek: add timer driver for MediaTek SoCs

2018-10-08 Thread Ryder Lee
This patch adds clock source and clock event for the timer found on the Mediatek SoCs. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger --- drivers/timer/Kconfig | 7 drivers/timer/Makefile| 1 + drivers/timer/mtk_timer.c | 85 +++

[U-Boot] [PATCH v1 12/19] pinctrl: MediaTek: add pinctrl driver for MT7629 SoC

2018-10-08 Thread Ryder Lee
This patch adds pinctrl support for MT7629 SoC. The IO core found on the SoC has the registers for pinctrl, pinconf and gpio mixed up in the same register range. Hence the driver also implements the gpio functionality through UCLASS_GPIO. This also creates a common file as there might be other

[U-Boot] [PATCH v1 13/19] pinctrl: MediaTek: add pinctrl driver for MT7623 SoC

2018-10-08 Thread Ryder Lee
This patch adds pinctrl support for MT7623 SoC. And most of the structures are used to hold the hardware configuration for each pin. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger --- drivers/pinctrl/mediatek/Kconfig |4 + drivers/pinctrl/mediatek/Makefile |

[U-Boot] [PATCH v1 08/19] clk: MediaTek: add clock driver for MT7629 SoC.

2018-10-08 Thread Ryder Lee
This patch adds clock modules for MediaTek SoCs: - Shared part: a common driver which contains the general operations for plls, muxes, dividers and gates so that we can reuse it in future. - Specific SoC part: the group of structures used to hold the hardware configuration for each SoC. We take

[U-Boot] [PATCH v1 02/19] arm: dts: MediaTek: add device tree for MT7629

2018-10-08 Thread Ryder Lee
This patch adds MT7629 device tree and the includes it needs. Signed-off-by: Ryder Lee --- arch/arm/dts/Makefile| 3 + arch/arm/dts/mt7629-rfb.dts | 71 + arch/arm/dts/mt7629.dtsi | 244 +++

[U-Boot] [PATCH v1 06/19] configs: MediaTek: add MT7629 reference board support

2018-10-08 Thread Ryder Lee
This patch adds defconfig for the MT7629 reference board. Signed-off-by: Ryder Lee --- configs/mt7629_rfb_defconfig | 72 1 file changed, 72 insertions(+) create mode 100644 configs/mt7629_rfb_defconfig diff --git a/configs/mt7629_rfb_defconfig

[U-Boot] [PATCH v1 04/19] arm: MediaTek: add basic support for MT7629 boards

2018-10-08 Thread Ryder Lee
This adds a general board file based on MT7629 SoCs from MediaTek. Apart from the generic parts (cpu) we add some low level init codes and initialize the early clocks. Signed-off-by: Ryder Lee Signed-off-by: Weijie Gao --- arch/arm/Kconfig | 14 +++

[U-Boot] [PATCH v1 17/19] ram: MediaTek: add DDR3 driver for MT7629 SoC

2018-10-08 Thread Ryder Lee
This patch adds a DDR3 driver for MT7629 SoC. Signed-off-by: Wu Zou Signed-off-by: Ryder Lee --- drivers/ram/Makefile | 1 + drivers/ram/mediatek/Makefile | 7 + drivers/ram/mediatek/ddr3-mt7629.c | 766 + 3 files changed, 774

[U-Boot] [PATCH v1 14/19] power domain: MediaTek: add power domain driver for MT7629 SoC

2018-10-08 Thread Ryder Lee
This adds a power domain driver for the Mediatek SCPSYS unit. The System Control Processor System (SCPSYS) has several power management related tasks in the system. The tasks include thermal measurement, dynamic voltage frequency scaling (DVFS), interrupt filter and lowlevel sleep control. The

[U-Boot] [PATCH v1 11/19] watchdog: MediaTek: add watchdog driver for MediaTek SoCs

2018-10-08 Thread Ryder Lee
This patch adds a common driver for the Mediatek SoC integrated watchdog. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger --- drivers/watchdog/Kconfig | 8 +++ drivers/watchdog/Makefile | 1 + drivers/watchdog/mtk_wdt.c | 135 + 3 files

[U-Boot] [PATCH v1 01/19] tools: MediaTek: add MTK boot header generation to mkimage

2018-10-08 Thread Ryder Lee
This patch adds support for MTK boot image generation. Signed-off-by: Weijie Gao Signed-off-by: Ryder Lee --- Makefile | 20 ++ common/image.c | 1 + include/image.h | 1 + scripts/Makefile.spl | 11 + tools/Makefile | 1 + tools/mtkimage.c | 749

[U-Boot] [PATCH v1 05/19] arm: MediaTek: add basic support for MT7623 boards

2018-10-08 Thread Ryder Lee
From: Weijie Gao This adds a general board file based on MT7623 SoCs from MediaTek. As this u-boot is loaded by preloader, there is no low level initializtion codes. Signed-off-by: Weijie Gao Signed-off-by: Ryder Lee Tested-by: Matthias Brugger --- arch/arm/mach-mediatek/Kconfig

[U-Boot] [PATCH v1 18/19] mmc: mtk-sd: add SD/MMC host controller driver for MT7623 SoC

2018-10-08 Thread Ryder Lee
From: Weijie Gao This patch adds MT7623 host controller driver for accessing SD/MMC. Cc: Jaehoon Chung Signed-off-by: Weijie Gao Signed-off-by: Ryder Lee Tested-by: Matthias Brugger --- drivers/mmc/Kconfig |9 + drivers/mmc/Makefile |1 + drivers/mmc/mtk-sd.c | 1331

[U-Boot] [PATCH v1 16/19] serial: 16550: allow the driver to support MediaTek serial

2018-10-08 Thread Ryder Lee
This patch adds an extra operation in ns16550.c to suuport MediaTek SoCs as we have a highspeed register which influences the calcualtion of the divisor. Note that we don't support the baudrate greater than 115200 currently. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger ---

[U-Boot] [PATCH v1 15/19] power domain: MediaTek: add power domain driver for MT7623 SoC

2018-10-08 Thread Ryder Lee
This adds power domain (scpsys) support for MT7623 SoC. Signed-off-by: Ryder Lee --- drivers/power/domain/mtk-power-domain.c | 80 + 1 file changed, 80 insertions(+) diff --git a/drivers/power/domain/mtk-power-domain.c b/drivers/power/domain/mtk-power-domain.c

[U-Boot] [PATCH v1 03/19] arm: dts: MediaTek: add device tree for MT7623

2018-10-08 Thread Ryder Lee
This adds device tree for MT7623 development board - Bananapi R2 Detailed hardware information for BPI-R2 which could be found on http://wiki.banana-pi.org/Banana_Pi_BPI-R2. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger --- arch/arm/dts/Makefile| 1 +

[U-Boot] [PATCH v1 00/19] AddU-Boot support for MediaTek SoCs - MT7623n & MT7629

2018-10-08 Thread Ryder Lee
Hello, This is the second round to add U-Boot support for MediaTek SoCs - MT7623n & MT7629, and the most of the drivers are based on mainline Linux, such as clock, timer, mmc, pinctrl, watchdog, power domain and device tree. The following are the major differences between mainline Linux and

Re: [U-Boot] [PATCH] travis: Add sandbox/clang-7 support

2018-10-08 Thread Simon Glass
Hi Tom, On 7 October 2018 at 12:20, Tom Rini wrote: > > To make testing with clang support easier, add sandbox/clang-7 > combination to our testing matrix. To facilitate this, switch to using > the "sources" method that the travis.yml file supports to list > additional repositories and add the

Re: [U-Boot] [PATCH] debug uart: don't print before initialization

2018-10-08 Thread Simon Glass
Hi, On 7 October 2018 at 11:52, Simon Goldschmidt wrote: > At least on socfpga gen5, _debug_uart_putc() can be called > before debug_uart_init(), which leaves us stuck in an > infinite loop in the ns16550 debug uart driver. Can you fix that? That is a bug. > > Since this prevents debugging

Re: [U-Boot] [PATCH 43/45] video: at91: Adjust vidconsole_position_cursor() to use char pos

2018-10-08 Thread Simon Glass
Hi Anatolij, On 1 October 2018 at 14:22, Anatolij Gustschin wrote: > Hi Simon, > > On Mon, 1 Oct 2018 12:22:47 -0600 > Simon Glass s...@chromium.org wrote: > >> At present this function uses pixels but it seems more useful for it to >> position in terms of characters on the screen. This also

Re: [U-Boot] [PATCH v2 03/23] Add core support for a bloblist to convey data from SPL

2018-10-08 Thread Simon Glass
Hi Kever, On 7 October 2018 at 20:42, Kever Yang wrote: > Hi Simon, > > I didn't notice you already have a V2 for this patch set just now > and have send a reply to V1. > > My question is: > Is it possible to use ATAGs instead of a new 'bloblist'? > I thought that was a way of

Re: [U-Boot] [PATCH 2/2] pci: Change the first CFG read to Vendor ID in enumeration

2018-10-08 Thread Simon Glass
Hi Bin, On 8 October 2018 at 02:54, Bin Meng wrote: > On Mon, Oct 8, 2018 at 4:36 PM Zhiqiang Hou wrote: >> >> From: Hou Zhiqiang >> >> As the PCIe specification recommend reading the Vendor ID register >> to determine if a Function is present, read the Vendor ID of a >> non-existent Function

Re: [U-Boot] [PATCH 43/45] video: at91: Adjust vidconsole_position_cursor() to use char pos

2018-10-08 Thread Simon Glass
Hi Eugen, On 2 October 2018 at 01:37, Eugen Hristev wrote: > > > > On 01.10.2018 23:22, Anatolij Gustschin wrote: >> >> Hi Simon, >> >> On Mon, 1 Oct 2018 12:22:47 -0600 >> Simon Glass s...@chromium.org wrote: >> >>> At present this function uses pixels but it seems more useful for it to >>>

Re: [U-Boot] [PATCH v4 00/19] AVB using OP-TEE

2018-10-08 Thread Simon Glass
Hi Jens, On 8 October 2018 at 01:18, Jens Wiklander wrote: > Hi Simon, > > On Tue, Oct 2, 2018 at 1:21 PM, Simon Glass wrote: >> Hi Jen, >> >> On 25 September 2018 at 07:40, Jens Wiklander >> wrote: >>> Hi, >>> >>> This adds support for storing AVB rollback indexes in the RPMB partition. >>>

Re: [U-Boot] Rockchip RV1108 eMMC support not working

2018-10-08 Thread Andy Yan
Hi Otavio: I sent a mmc patch to you which I got from vincent, please have a try. Otavio Salvador 于2018年10月9日周二 上午10:21写道: > Hello Andy, > > On Mon, Oct 8, 2018 at 11:03 PM Andy Yan wrote: > > Otavio Salvador 于2018年10月9日周二 > 上午3:29写道: > > I don't have a 1108 board with emmc on my

[U-Boot] [PATCH v3 4/4] arm: socfpga: stratix10: Enable Stratix10 FPGA Reconfiguration

2018-10-08 Thread chee . hong . ang
From: "Ang, Chee Hong" Enable Stratix10 FPGA reconfiguration support in defconfig. Signed-off-by: Ang, Chee Hong --- configs/socfpga_stratix10_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/socfpga_stratix10_defconfig b/configs/socfpga_stratix10_defconfig index

[U-Boot] [PATCH v3 3/4] arm: socfpga: stratix10: Add Stratix10 FPGA into FPGA device table

2018-10-08 Thread chee . hong . ang
From: "Ang, Chee Hong" Enable 'fpga' command in u-boot. User will be able to use the fpga command to program the FPGA on Stratix10 SoC. Signed-off-by: Ang, Chee Hong --- arch/arm/mach-socfpga/misc.c | 22 ++ arch/arm/mach-socfpga/misc_s10.c | 2 ++

[U-Boot] [PATCH v3 2/4] arm: socfpga: stratix10: Add Stratix 10 FPGA Reconfiguration Driver

2018-10-08 Thread chee . hong . ang
From: "Ang, Chee Hong" Enable FPGA reconfiguration support for Stratix 10 SoC. Signed-off-by: Ang, Chee Hong --- drivers/fpga/Kconfig | 11 ++ drivers/fpga/Makefile| 1 + drivers/fpga/stratix10.c | 288 +++ include/altera.h | 4

[U-Boot] [PATCH v3 1/4] arm: socfpga: stratix10: Add macros for mailbox's arguments

2018-10-08 Thread chee . hong . ang
From: "Ang, Chee Hong" Add macros for specifying number of arguments in mailbox command. Signed-off-by: Ang, Chee Hong --- arch/arm/mach-socfpga/include/mach/mailbox_s10.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-socfpga/include/mach/mailbox_s10.h

[U-Boot] [PATCH v3 0/4] Stratix10 FPGA reconfiguration support

2018-10-08 Thread chee . hong . ang
From: "Ang, Chee Hong" Summary of v3 changes: - Patch 1/4, 2/4 and 4/4 are unchanged - Patch 3/4: Removed unnecessary empty socfpga_fpga_add() from misc.c - Patch 3/4: Removed unnecessary '#ifdef CONFIG_FPGA' from misc_s10.c v2 patchsets:

Re: [U-Boot] [PATCH v2 3/4] arm: socfpga: stratix10: Add Stratix10 FPGA into FPGA device table

2018-10-08 Thread Ang, Chee Hong
On Mon, 2018-10-08 at 22:32 +0200, Marek Vasut wrote: > On 10/08/2018 05:10 PM, Ang, Chee Hong wrote: > > > > On Mon, 2018-10-08 at 11:57 +0200, Marek Vasut wrote: > > > > > > On 10/08/2018 11:48 AM, chee.hong@intel.com wrote: > > > > > > > > > > > > From: "Ang, Chee Hong" > > > > > > >

Re: [U-Boot] [PATCH] arm: socfpga: make socfpga_socrates_defconfig boot from QSPI

2018-10-08 Thread Marek Vasut
On 10/08/2018 08:45 PM, Simon Goldschmidt wrote: > On Mon, Oct 8, 2018 at 2:20 AM Marek Vasut wrote: >> >> On 10/07/2018 08:43 AM, Simon Goldschmidt wrote: >>> On 09.08.2018 23:57, Marek Vasut wrote: On 08/09/2018 09:17 PM, Simon Goldschmidt wrote: > On Mon, Aug 6, 2018 at 3:45 PM Simon

Re: [U-Boot] [PATCH v2] arm: socfpga: fix SPL booting from fpga OnChip RAM

2018-10-08 Thread Marek Vasut
On 10/08/2018 08:26 PM, Simon Goldschmidt wrote: > This patch prevents disabling the FPGA bridges when > SPL or U-Boot is executed from FPGA onchip RAM. > > Signed-off-by: Simon Goldschmidt > --- > > Changes in v2: > - use less ifdefs and more C code for address checks > (but this gives a

Re: [U-Boot] [PATCH 2/2] travis: Switch to i386 version toolchain for x86

2018-10-08 Thread Tom Rini
On Tue, Oct 09, 2018 at 09:21:05AM +0800, Bin Meng wrote: > Hi Tom, > > On Tue, Oct 9, 2018 at 7:53 AM Tom Rini wrote: > > > > On Mon, Oct 08, 2018 at 04:53:54PM -0700, Bin Meng wrote: > > > > > Currently this uses x86_64 version toolchain for x86 build in > > > travis-ci. Change it to i386

Re: [U-Boot] Rockchip RV1108 eMMC support not working

2018-10-08 Thread Otavio Salvador
Hello Andy, On Mon, Oct 8, 2018 at 11:03 PM Andy Yan wrote: > Otavio Salvador 于2018年10月9日周二 上午3:29写道: > I don't have a 1108 board with emmc on my hand. > > the mmc info show that the eMMC has been detected. So would try other mmc > commands such as: mmc read/write ? => mmc read 0x6200 0

Re: [U-Boot] Rockchip RV1108 eMMC support not working

2018-10-08 Thread Andy Yan
Hi Otavio: Otavio Salvador 于2018年10月9日周二 上午3:29写道: > Hi, > > We have a custom board based on rv1108 evb where we are trying to add > eMMC support. > > Here are the changes we made so far: > > arch/arm/dts/rv1108-evb.dts | 45 > + >

Re: [U-Boot] [PATCH 2/2] travis: Switch to i386 version toolchain for x86

2018-10-08 Thread Bin Meng
Hi Tom, On Tue, Oct 9, 2018 at 7:53 AM Tom Rini wrote: > > On Mon, Oct 08, 2018 at 04:53:54PM -0700, Bin Meng wrote: > > > Currently this uses x86_64 version toolchain for x86 build in > > travis-ci. Change it to i386 version to avoid updating the > > buildman toolchain path every time when the

Re: [U-Boot] [PATCH v2 07/13] x86: Fix signed shift overflow in MSR_IA32_APICBASE_BASE

2018-10-08 Thread Eugeniu Rosca
Hi Bin, On Tue, Sep 25, 2018 at 10:06:52AM +0800, Bin Meng wrote: > Hi Eugeniu, > > On Sun, Sep 23, 2018 at 7:10 AM Eugeniu Rosca wrote: > > > > Hi Bin, > > > > jFYI, I've created https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87392 > > ("UBSAN behavior on left-shifting 1 into the sign bit is

Re: [U-Boot] [PATCH 2/2] travis: Switch to i386 version toolchain for x86

2018-10-08 Thread Tom Rini
On Mon, Oct 08, 2018 at 04:53:54PM -0700, Bin Meng wrote: > Currently this uses x86_64 version toolchain for x86 build in > travis-ci. Change it to i386 version to avoid updating the > buildman toolchain path every time when the toolchain version > number is changed, eg: from 7.3.0 to 8.1.0. > >

[U-Boot] [PATCH 2/2] travis: Switch to i386 version toolchain for x86

2018-10-08 Thread Bin Meng
Currently this uses x86_64 version toolchain for x86 build in travis-ci. Change it to i386 version to avoid updating the buildman toolchain path every time when the toolchain version number is changed, eg: from 7.3.0 to 8.1.0. Signed-off-by: Bin Meng --- .travis.yml | 16 1

[U-Boot] [PATCH 1/2] travis: Remove or32 toolchain info

2018-10-08 Thread Bin Meng
or32 is not supported by U-Boot anymore. Signed-off-by: Bin Meng --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 2b759c9..c0154da 100644 --- a/.travis.yml +++ b/.travis.yml @@ -66,7 +66,6 @@ before_script: - if [[ "${TOOLCHAIN}" == *m68k*

Re: [U-Boot] [BUG] efi-x86_app_defconfig does not build with gcc 8.2

2018-10-08 Thread Bin Meng
Hi Andy, On Tue, Oct 9, 2018 at 12:31 AM Andy Shevchenko wrote: > > On Mon, Oct 08, 2018 at 11:31:32PM +0800, Bin Meng wrote: > > +Andy > > > > On Sat, Sep 8, 2018 at 5:00 PM Heinrich Schuchardt > > wrote: > > > > > > make mrproper && make efi-x86_app_defconfig && make > > > > > > results in >

Re: [U-Boot] [U-Boot, 1/1] docs: kernel-doc: fix parsing of function pointers

2018-10-08 Thread Heinrich Schuchardt
On 10/08/2018 08:06 PM, Tom Rini wrote: > On Mon, Sep 03, 2018 at 08:50:03PM +0200, Heinrich Schuchardt wrote: > >> kernel-doc fails to parse function definitions like the one below >> >> efi_status_t efi_create_event(uint32_t type, efi_uintn_t notify_tpl, >>void

Re: [U-Boot] [PATCH v4 3/3] net: phy: ti: Add binding for the CLK_OUT pin muxing

2018-10-08 Thread Joe Hershberger
On Tue, Aug 28, 2018 at 1:32 AM Janine Hagemann wrote: > > The DP83867 has a muxing option for the CLK_OUT pin. It is possible > to set CLK_OUT for different channels. > Create a binding to select a specific clock for CLK_OUT pin. > > Based on commit 9708fb630d19 ("net: phy: dp83867: Add binding

Re: [U-Boot] [PATCH v3 4/4] pico-imx7d: Add USB Host support

2018-10-08 Thread Stefano Babic
On 08/10/2018 21:36, Otavio Salvador wrote: > On Fri, Sep 28, 2018 at 11:23 AM Otavio Salvador > wrote: >> >> From: Fabio Estevam >> >> USB OTG2 port is connected to the USB host connector. >> >> Add support for it. >> >> Signed-off-by: Fabio Estevam >> Signed-off-by: Otavio Salvador > > I

Re: [U-Boot] [PATCH v2 3/4] arm: socfpga: stratix10: Add Stratix10 FPGA into FPGA device table

2018-10-08 Thread Marek Vasut
On 10/08/2018 05:10 PM, Ang, Chee Hong wrote: > On Mon, 2018-10-08 at 11:57 +0200, Marek Vasut wrote: >> On 10/08/2018 11:48 AM, chee.hong@intel.com wrote: >>> >>> From: "Ang, Chee Hong" >>> >>> Enable 'fpga' command in u-boot. User will be able to use the fpga >>> command to program the FPGA

Re: [U-Boot] [PATCH V3] mtd: uboot: Fix hanging during mtd list command

2018-10-08 Thread Miquel Raynal
Hi Adam, +Tom Adam Ford wrote on Mon, 8 Oct 2018 14:13:03 -0500: > Some boards (like omap3_logic) hang when trying to access > address 0. This happens when executing the new 'mtd list' command. > This patch enhances the checks for conditions that would > preclude mtd_probe_devices() from

Re: [U-Boot] [PATCH v3 4/4] pico-imx7d: Add USB Host support

2018-10-08 Thread Otavio Salvador
On Fri, Sep 28, 2018 at 11:23 AM Otavio Salvador wrote: > > From: Fabio Estevam > > USB OTG2 port is connected to the USB host connector. > > Add support for it. > > Signed-off-by: Fabio Estevam > Signed-off-by: Otavio Salvador I think the serie wasn't Cced for you, by mistake. Do you mind to

[U-Boot] Rockchip RV1108 eMMC support not working

2018-10-08 Thread Otavio Salvador
Hi, We have a custom board based on rv1108 evb where we are trying to add eMMC support. Here are the changes we made so far: arch/arm/dts/rv1108-evb.dts | 45 + configs/evb-rv1108_defconfig| 4 include/configs/evb_rv1108.h| 14

Re: [U-Boot] [PATCH v13 5/7] cmd: mtd: add 'mtd' command

2018-10-08 Thread Adam Ford
On Mon, Oct 8, 2018 at 2:10 PM Thomas Petazzoni wrote: > > Hello, > > On Mon, 8 Oct 2018 19:46:27 +0200, Boris Brezillon wrote: > > > > + /* Check if mtdparts/mtdids changed since last call, otherwise: exit > > > */ > > > + if (!strcmp(mtdparts, old_mtdparts) && !strcmp(mtdids, old_mtdids))

[U-Boot] [PATCH V3] mtd: uboot: Fix hanging during mtd list command

2018-10-08 Thread Adam Ford
Some boards (like omap3_logic) hang when trying to access address 0. This happens when executing the new 'mtd list' command. This patch enhances the checks for conditions that would preclude mtd_probe_devices() from operating. Fixes: 5db66b3aee6f ("cmd: mtd: add 'mtd' command") Suggested-by:

Re: [U-Boot] [PATCH v13 5/7] cmd: mtd: add 'mtd' command

2018-10-08 Thread Thomas Petazzoni
Hello, On Mon, 8 Oct 2018 19:46:27 +0200, Boris Brezillon wrote: > > + /* Check if mtdparts/mtdids changed since last call, otherwise: exit */ > > + if (!strcmp(mtdparts, old_mtdparts) && !strcmp(mtdids, old_mtdids)) > > + return 0; > > Should be: > > if ((!mtdparts &&

Re: [U-Boot] [PATCH V2] mtd: uboot: Fix hanging during mtd list command

2018-10-08 Thread Boris Brezillon
On Mon, 8 Oct 2018 13:39:31 -0500 Adam Ford wrote: > Some boards using simple NAND drivers (like omap3_logic) hang > when executing the new 'mtd list' command. This patch enhances ^One too many spaces here. Also, i don't think it has to do with

Re: [U-Boot] [PATCH] arm: socfpga: make socfpga_socrates_defconfig boot from QSPI

2018-10-08 Thread Simon Goldschmidt
On Mon, Oct 8, 2018 at 2:20 AM Marek Vasut wrote: > > On 10/07/2018 08:43 AM, Simon Goldschmidt wrote: > > On 09.08.2018 23:57, Marek Vasut wrote: > >> On 08/09/2018 09:17 PM, Simon Goldschmidt wrote: > >>> On Mon, Aug 6, 2018 at 3:45 PM Simon Goldschmidt > >>> wrote: > > > Marek

[U-Boot] [PATCH V2] mtd: uboot: Fix hanging during mtd list command

2018-10-08 Thread Adam Ford
Some boards using simple NAND drivers (like omap3_logic) hang when executing the new 'mtd list' command. This patch enhances the checks for conditions that would preclude mtd_probe_devices() from operating. Fixes: 5db66b3aee6f ("cmd: mtd: add 'mtd' command") Suggested-by: Boris Brezillon

Re: [U-Boot] [PATCH] mtd: uboot: Fix hanging during mtd list command

2018-10-08 Thread Adam Ford
On Mon, Oct 8, 2018 at 1:28 PM Boris Brezillon wrote: > > On Mon, 8 Oct 2018 13:23:06 -0500 > Adam Ford wrote: > > > Some boards using simple NAND drivers (like omap3_logic) hang > > when executing the new 'mtd list' command. This patch enhances > > the checks for conditions that would

Re: [U-Boot] [PATCH] mtd: uboot: Fix hanging during mtd list command

2018-10-08 Thread Boris Brezillon
On Mon, 8 Oct 2018 13:23:06 -0500 Adam Ford wrote: > Some boards using simple NAND drivers (like omap3_logic) hang > when executing the new 'mtd list' command. This patch enhances > the checks for conditions that would preclude mtd_probe_devices() > from operating. > > Fixes: 5db66b3aee6f

[U-Boot] [PATCH v2] arm: socfpga: fix SPL booting from fpga OnChip RAM

2018-10-08 Thread Simon Goldschmidt
This patch prevents disabling the FPGA bridges when SPL or U-Boot is executed from FPGA onchip RAM. Signed-off-by: Simon Goldschmidt --- Changes in v2: - use less ifdefs and more C code for address checks (but this gives a checkpatch warning because of comparing two upper case constants) -

Re: [U-Boot] [PATCH v13 5/7] cmd: mtd: add 'mtd' command

2018-10-08 Thread Adam Ford
On Mon, Oct 8, 2018 at 12:46 PM Boris Brezillon wrote: > > On Mon, 1 Oct 2018 15:43:29 +0200 > Miquel Raynal wrote: > > > +#if defined(CONFIG_MTD_PARTITIONS) > > +int mtd_probe_devices(void) > > +{ > > + static char *old_mtdparts; > > + static char *old_mtdids; > > + const char

[U-Boot] [PATCH] mtd: uboot: Fix hanging during mtd list command

2018-10-08 Thread Adam Ford
Some boards using simple NAND drivers (like omap3_logic) hang when executing the new 'mtd list' command. This patch enhances the checks for conditions that would preclude mtd_probe_devices() from operating. Fixes: 5db66b3aee6f ("cmd: mtd: add 'mtd' command") Signed-off-by: Adam Ford diff

Re: [U-Boot] [U-Boot, 1/1] docs: kernel-doc: fix parsing of function pointers

2018-10-08 Thread Tom Rini
On Mon, Sep 03, 2018 at 08:50:03PM +0200, Heinrich Schuchardt wrote: > kernel-doc fails to parse function definitions like the one below > > efi_status_t efi_create_event(uint32_t type, efi_uintn_t notify_tpl, > void (EFIAPI *notify_function) ( >

Re: [U-Boot] [PATCH v13 5/7] cmd: mtd: add 'mtd' command

2018-10-08 Thread Boris Brezillon
On Mon, 1 Oct 2018 15:43:29 +0200 Miquel Raynal wrote: > +#if defined(CONFIG_MTD_PARTITIONS) > +int mtd_probe_devices(void) > +{ > + static char *old_mtdparts; > + static char *old_mtdids; > + const char *mtdparts = env_get("mtdparts"); > + const char *mtdids =

Re: [U-Boot] [PATCH v13 5/7] cmd: mtd: add 'mtd' command

2018-10-08 Thread Boris Brezillon
On Mon, 8 Oct 2018 11:58:40 -0500 Adam Ford wrote: > On Mon, Oct 8, 2018 at 11:52 AM Adam Ford wrote: > > > > On Mon, Oct 8, 2018 at 11:28 AM Boris Brezillon > > wrote: > > > > > > Hi Adam, > > > > > > On Mon, 8 Oct 2018 11:13:40 -0500 > > > Adam Ford wrote: > > > > > > > On Wed, Oct 3,

Re: [U-Boot] [PATCH v13 5/7] cmd: mtd: add 'mtd' command

2018-10-08 Thread Adam Ford
On Mon, Oct 8, 2018 at 11:52 AM Adam Ford wrote: > > On Mon, Oct 8, 2018 at 11:28 AM Boris Brezillon > wrote: > > > > Hi Adam, > > > > On Mon, 8 Oct 2018 11:13:40 -0500 > > Adam Ford wrote: > > > > > On Wed, Oct 3, 2018 at 8:41 AM Adam Ford wrote: > > > > > > > > On Wed, Oct 3, 2018 at 8:35 AM

Re: [U-Boot] [PATCH v13 5/7] cmd: mtd: add 'mtd' command

2018-10-08 Thread Adam Ford
On Mon, Oct 8, 2018 at 11:28 AM Boris Brezillon wrote: > > Hi Adam, > > On Mon, 8 Oct 2018 11:13:40 -0500 > Adam Ford wrote: > > > On Wed, Oct 3, 2018 at 8:41 AM Adam Ford wrote: > > > > > > On Wed, Oct 3, 2018 at 8:35 AM Miquel Raynal > > > wrote: > > > > > > > > Hi Adam, > > > > > > > > > >

Re: [U-Boot] [PATCH v2 00/33] TF-A Boot support for NXP Chassis 2 platforms

2018-10-08 Thread York Sun
On 10/07/2018 03:21 AM, Rajesh Bhagat wrote: > Includes changes in u-boot framework to support TF-A for NXP Chassis 2 > > platforms. A new defconfig is added namely ls*_ram_defconfig which will > > be used for all boot sources when TF-A is used.

Re: [U-Boot] [BUG] efi-x86_app_defconfig does not build with gcc 8.2

2018-10-08 Thread Andy Shevchenko
On Mon, Oct 08, 2018 at 11:31:32PM +0800, Bin Meng wrote: > +Andy > > On Sat, Sep 8, 2018 at 5:00 PM Heinrich Schuchardt wrote: > > > > make mrproper && make efi-x86_app_defconfig && make > > > > results in > > > > CC common/image.o > > {standard input}: Assembler messages: > > {standard

Re: [U-Boot] [PATCH v13 5/7] cmd: mtd: add 'mtd' command

2018-10-08 Thread Boris Brezillon
Hi Adam, On Mon, 8 Oct 2018 11:13:40 -0500 Adam Ford wrote: > On Wed, Oct 3, 2018 at 8:41 AM Adam Ford wrote: > > > > On Wed, Oct 3, 2018 at 8:35 AM Miquel Raynal > > wrote: > > > > > > Hi Adam, > > > > > > > > > > > > > > > > > > > > > > > > > > > > I can use the nand read/write

Re: [U-Boot] [PATCH v13 5/7] cmd: mtd: add 'mtd' command

2018-10-08 Thread Adam Ford
On Wed, Oct 3, 2018 at 8:41 AM Adam Ford wrote: > > On Wed, Oct 3, 2018 at 8:35 AM Miquel Raynal > wrote: > > > > Hi Adam, > > > > > > > > > > > > > > > > > > > > > > > I can use the nand read/write functions and mtdparts lists the > > > > > > partitions, so I know nand works. My defconfig > >

Re: [U-Boot] [PATCH 1/2] riscv: configs: Separate ax25-ae350 for 32/64 bit.

2018-10-08 Thread Bin Meng
Hi Rick, On Mon, Oct 8, 2018 at 1:36 PM Andes wrote: > > From: Rick Chen > > Separate ax25-ae350 from one to two for > 32 and 64 bit individually. And also select > different dts for 32 and 64 bit. > > Signed-off-by: Rick Chen > Cc: Greentime Hu > --- > configs/ax25-ae350-32_defconfig | 33

Re: [U-Boot] [PATCH 2/2] riscv: dts: Add ae350_32.dts for 32 bit

2018-10-08 Thread Bin Meng
Hi Rick, On Mon, Oct 8, 2018 at 1:37 PM Andes wrote: > > From: Rick Chen > > Add ae350_32.dts for 32 bit. And also rename > ae350.dts to ae350_64.dts for 64 bit. > > Signed-off-by: Rick Chen > Cc: Greentime Hu > --- > arch/riscv/dts/ae350.dts| 229 >

Re: [U-Boot] [BUG] efi-x86_app_defconfig does not build with gcc 8.2

2018-10-08 Thread Bin Meng
+Andy On Sat, Sep 8, 2018 at 5:00 PM Heinrich Schuchardt wrote: > > make mrproper && make efi-x86_app_defconfig && make > > results in > > CC common/image.o > {standard input}: Assembler messages: > {standard input}:21662: Error: junk at end of line, first unrecognized > character is `@'

Re: [U-Boot] [PATCH] fs: btrfs: Fix tree traversal with btrfs_next_slot()

2018-10-08 Thread Tom Rini
On Tue, Oct 02, 2018 at 01:22:28PM +0200, Marek Behún wrote: > Tested-by: Marek Behún > > Hello Tom, could you please apply the patch by Yevgeny? Sorry, I'll just lament that patchwork no longer has the ability to list unassigned patches anymore. I've given this to myself in patchwork and

Re: [U-Boot] [PATCH v2 3/4] arm: socfpga: stratix10: Add Stratix10 FPGA into FPGA device table

2018-10-08 Thread Ang, Chee Hong
On Mon, 2018-10-08 at 11:57 +0200, Marek Vasut wrote: > On 10/08/2018 11:48 AM, chee.hong@intel.com wrote: > > > > From: "Ang, Chee Hong" > > > > Enable 'fpga' command in u-boot. User will be able to use the fpga > > command to program the FPGA on Stratix10 SoC. > > > > Signed-off-by: Ang,

Re: [U-Boot] [PATCH 1/2] powerpc: t1040: Correct RCW MAC2_GMII_SEL value

2018-10-08 Thread York Sun
On 10/08/2018 06:51 AM, Bin Meng wrote: > Per T1040RM (Rev. 1, 08/2015), the value of > FSL_CORENET_RCWSR13_MAC2_GMII_SEL_ENET_PORT is wrong > and should be 0x0080 (bit 440 in the RCW). > > Signed-off-by: Bin Meng > --- Poonam, Please review and confirm on T1040. Thanks. York

Re: [U-Boot] [PATCH v2 21/33] armv8: ls1046ardb: Add TFABOOT support

2018-10-08 Thread York Sun
On 10/07/2018 03:22 AM, Rajesh Bhagat wrote: > TFABOOT support includes: > - ls1046ardb_tfa_defconfig to be loaded by trusted firmware > - environment address and size changes for TFABOOT > - FMAN address changes for TFABOOT > - define BOOTCOMMAND for TFABOOT > > Signed-off-by: York Sun >

Re: [U-Boot] [PATCH v2 10/33] armv8: layerscape: remove EL3 specific erratas for TFABOOT

2018-10-08 Thread York Sun
On 10/07/2018 03:21 AM, Rajesh Bhagat wrote: > Removes EL3 specific erratas for TFABOOT, And now taken care in TFA. > > ARM_ERRATA_855873, SYS_FSL_ERRATUM_A008850, SYS_FSL_ERRATUM_A008511, > SYS_FSL_ERRATUM_A008336, SYS_FSL_ERRATUM_A009663, SYS_FSL_ERRATUM_A009803 > SYS_FSL_ERRATUM_A009942,

Re: [U-Boot] [PATCH v2 01/33] move data structure out of cpu.h

2018-10-08 Thread York Sun
On 10/07/2018 03:21 AM, Rajesh Bhagat wrote: > From: York Sun > > Move static definitions to cpu.c file, as it doesn't allow > the cpu.h file to be included in multiple c files. > > Signed-off-by: York Sun > --- > Change in v2: None > Rajesh, Did you send your patch set twice? I received

Re: [U-Boot] [PATCH 0/3] Add support for new Xilinx Versal ACAPs

2018-10-08 Thread Michal Simek
Hi, st 3. 10. 2018 v 7:58 odesílatel Michal Simek napsal: > Xilinx is introducing Versal, an adaptive compute acceleration platform > (ACAP), built on 7nm FinFET process technology. Versal ACAPs combine > Scalar Processing Engines, Adaptable Hardware Engines, and Intelligent > Engines with

Re: [U-Boot] [PATCH] Revert "fdt: fdtdec_setup_memory_banksize() use livetree"

2018-10-08 Thread Michal Simek
On 8.10.2018 14:39, Simon Glass wrote: > On 6 October 2018 at 07:33, Patrice CHOTARD wrote: >> >> Hi >> >> I got same issue on STM32F746 >> >> Patrice >> >> On 10/04/2018 09:24 AM, Michal Simek wrote: >>> This reverts commit c35a7d375ec8f0a8ee343ae4868be3242172632e. >>> This commit is breaking

Re: [U-Boot] [PATCH] arm: zynq: Add efuse node for Zynq-7000S devices

2018-10-08 Thread Michal Simek
čt 4. 10. 2018 v 9:39 odesílatel Michal Simek napsal: > Add access to efuse for Zynq-7000S device detection. > > Signed-off-by: Michal Simek > --- > > arch/arm/dts/zynq-7000.dtsi | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/arch/arm/dts/zynq-7000.dtsi

Re: [U-Boot] [PATCH v2] arm: zynq: Add support for DLC20 board

2018-10-08 Thread Michal Simek
út 2. 10. 2018 v 8:49 odesílatel Michal Simek napsal: > Xilinx DLC20 has I2C0 with EEPROM(1KB), UART1, GPIO, SD0 (EMMC 4GB), > USB0 device, ENET0, QSPI (16MB) and DDR(two of 256MB each). > > Boards have mix of Winbond/ST QSPIs. > > Signed-off-by: Michal Simek > --- > > Changes in v2: > -

Re: [U-Boot] [PATCH 2/2] arm: zynq: Enable FIT fpga loading in SPL for zc706

2018-10-08 Thread Michal Simek
st 26. 9. 2018 v 10:56 odesílatel Michal Simek napsal: > Enable loading FPGA from FIT image in SPL. > > Signed-off-by: Michal Simek > --- > > configs/zynq_zc706_defconfig | 4 > 1 file changed, 4 insertions(+) > > diff --git a/configs/zynq_zc706_defconfig b/configs/zynq_zc706_defconfig >

Re: [U-Boot] [PATCH] arm: socfpga: fix SPL booting from fpga OnChip RAM

2018-10-08 Thread Marek Vasut
On 10/08/2018 03:17 PM, Simon Goldschmidt wrote: > On Mon, Oct 8, 2018 at 1:42 PM Marek Vasut wrote: >> >> On 10/08/2018 06:04 AM, Simon Goldschmidt wrote: >>> >>> >>> Marek Vasut mailto:ma...@denx.de>> schrieb am Mo., 8. >>> Okt. 2018, 02:20: >>> >>> On 10/07/2018 01:08 PM, Simon Goldschmidt

Re: [U-Boot] [PPC] Internet connection on qemu-ppce500

2018-10-08 Thread Wolfgang Denk
Dear Vincenzo, In message you wrote: > > > qemu-system-ppc -cpu e500v2 -M ppce500 -nographic -kernel ~/u-boot -net nic > > -net tap,ifname=tap0,script=no > > I tried to use different -net options in qemu but the problem is always the > same. > > And from the u-boot source code I have

[U-Boot] [PATCH 2/2] powerpc: t1040: Correct RCW EC2 settings

2018-10-08 Thread Bin Meng
Per T1040RM (Rev. 1, 08/2015), there are 2 issues with the RCW EC2 settings. - The value of FSL_CORENET_RCWSR13_EC2_FM1_GPIO is wrong and should be 0x0400 (value of 1 in RCW bit [420:421]) - Value of 2/3 are reserved in RCW bit [420:421], hence there is no macro

[U-Boot] [PATCH 1/2] powerpc: t1040: Correct RCW MAC2_GMII_SEL value

2018-10-08 Thread Bin Meng
Per T1040RM (Rev. 1, 08/2015), the value of FSL_CORENET_RCWSR13_MAC2_GMII_SEL_ENET_PORT is wrong and should be 0x0080 (bit 440 in the RCW). Signed-off-by: Bin Meng --- arch/powerpc/include/asm/immap_85xx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v2] net: Add MT76xx ethernet driver

2018-10-08 Thread Stefan Roese
This patch adds ethernet support for the Mediatek MT76xx SoC, including a minimum setup of the integrated switch. This driver is loosly based on the driver version included in this MediaTek github repository: https://github.com/MediaTek-Labs/linkit-smart-uboot.git Tested on the MT7688 LinkIt

Re: [U-Boot] [PATCH] net: Add MT76xx ethernet driver

2018-10-08 Thread Stefan Roese
Hi Daniel, On 07.10.2018 20:51, Daniel Schwierzeck wrote: On 04.10.2018 13:39, Stefan Roese wrote: This patch adds ethernet support for the Mediatek MT76xx SoC, including a minimum setup of the integrated switch. This driver is loosly based on the driver version included in this MediaTek

[U-Boot] [PPC] Internet connection on qemu-ppce500

2018-10-08 Thread vnktux
Hello guys, I am running an image of U-boot 2018.09 in qemu 3.0, the goal would be to load an OS-9 rom file from tftp. The problem is that I can't manage to have an Internet connection in U-boot. No matter how I run the image I always have Net: "No Ethernet found". I run qemu 3.0 with the

Re: [U-Boot] [PATCH] arm: socfpga: fix SPL booting from fpga OnChip RAM

2018-10-08 Thread Simon Goldschmidt
On Mon, Oct 8, 2018 at 1:42 PM Marek Vasut wrote: > > On 10/08/2018 06:04 AM, Simon Goldschmidt wrote: > > > > > > Marek Vasut mailto:ma...@denx.de>> schrieb am Mo., 8. > > Okt. 2018, 02:20: > > > > On 10/07/2018 01:08 PM, Simon Goldschmidt wrote: > > > On 06.10.2018 22:38, Tom Rini

Re: [U-Boot] [PATCH 18/20] spi: mtk_qspi: add qspi driver for MT7629 SoC

2018-10-08 Thread Guochun Mao
On Thu, 2018-10-04 at 21:31 +0530, Jagan Teki wrote: > On Tue, Oct 2, 2018 at 4:38 PM Ryder Lee wrote: > > > > From: Guochun Mao > > > > This patch adds MT7629 qspi driver for accessing SPI NOR flash. > > > > Cc: Jagan Teki > > Signed-off-by: Guochun Mao > > --- > > drivers/spi/Kconfig|

Re: [U-Boot] [PATCH] Revert "fdt: fdtdec_setup_memory_banksize() use livetree"

2018-10-08 Thread Simon Glass
On 6 October 2018 at 07:33, Patrice CHOTARD wrote: > > Hi > > I got same issue on STM32F746 > > Patrice > > On 10/04/2018 09:24 AM, Michal Simek wrote: > > This reverts commit c35a7d375ec8f0a8ee343ae4868be3242172632e. > > This commit is breaking SPL on zc706. > > > > Signed-off-by: Michal Simek

Re: [U-Boot] [PATCH] bootm: Add board specific OS preboot hook

2018-10-08 Thread Tom Rini
On Mon, Oct 08, 2018 at 01:39:44PM +0200, Marek Vasut wrote: > On 10/08/2018 01:34 PM, Christian Gmeiner wrote: > > Am Do., 4. Okt. 2018 um 21:16 Uhr schrieb Marek Vasut : > >> > >> Add board-specific hook which is executed before the code hands over > >> control to the OS. This lets the board

Re: [U-Boot] Keystone 2 sram scratch address?

2018-10-08 Thread Tom Rini
On Mon, Oct 08, 2018 at 10:47:06AM +0530, Lokesh Vutla wrote: > Hi Tom, > > On 10/7/2018 7:29 PM, Tom Rini wrote: > > Hey folks, > > > > So as part of Simon's patch[1] to move CONFIG_SPL_TEXT_BASE to Kconfig > > I've run into a problem on Keystone 2 platforms, specifically the HS > > variants.

  1   2   >