[U-Boot] [PATCH v8 02/19] arm: socfpga: Move firewall code to firewall file

2019-11-26 Thread Ley Foon Tan
Move firewall related code to new firewall.c, to share code in Stratix 10 and Agilex. SDMMC will transfer data to OCRAM in SPL. So, enable privilege for SDMMC to allow DMA transfer to OCRAM. Signed-off-by: Ley Foon Tan Reviewed-by: Simon Goldschmidt --- v4: - Move SYSMGR_DMA* to firewall.c v3

[U-Boot] [PATCH v8 03/19] arm: socfpga: Move Stratix10 and Agilex reset manager common code

2019-11-26 Thread Ley Foon Tan
Move Stratix10 and Agilex reset manager common code to reset_manager_soc64.h. Changed macros to RSTMGR_SOC64_*. Remove unused RSTMGR_XXX defines. Signed-off-by: Ley Foon Tan Reviewed-by: Simon Goldschmidt --- v5: - Remove reset_manager_s10.h and use reset_manager_soc64.h directly. v4: - Chang

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

2019-11-26 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 Reviewed-by: Simon Goldschmidt --- v2: - Reuse base_addr_s10.h and add #ifdef Agilex for SOCFPGA_FW_MPU_DDR_SCR_ADDRESS --- arch/arm/mach-socfpga/i

[U-Boot] [PATCH v8 00/19] Add Intel Agilex SoC support

2019-11-26 Thread Ley Foon Tan
This is 8th version of patchset to add Intel Agilex SoC[1] support. This patchset needs to apply after patchset in [2] for manager driver struct to defines conversion and [3] for enable cache driver build in SPL. Patch status: Have changes: Patch 12, 17 Other patches unchanged. Detail changelog

Re: [U-Boot] [PATCH] drivers: optee: rpmb: fix returning CID to TEE

2019-11-26 Thread Jens Wiklander
On Tue, Nov 26, 2019 at 05:19:34PM +0100, Jorge Ramirez-Ortiz wrote: > The mmc CID value is one of the input parameters used to provision the > RPMB key. The trusted execution environment expects this value to be > specified in big endian format. > > Before this fix, on little endian systems, the

Re: [U-Boot] [PATCH v4] configs/ls1046afrwy: Add TFA secure boot defconfig

2019-11-26 Thread Priyanka Jain
>-Original Message- >From: Udit Agarwal >Sent: Wednesday, November 20, 2019 2:09 PM >To: u-boot@lists.denx.de >Cc: Priyanka Jain ; Arun Pathak >; Ruchika Gupta ; Udit >Agarwal >Subject: [PATCH v4] configs/ls1046afrwy: Add TFA secure boot defconfig > >Enables secure boot related configs

Re: [U-Boot] [PATCH v5 075/101] spi: ich: Add TPL support

2019-11-26 Thread Bin Meng
Hi Simon, On Mon, Nov 25, 2019 at 12:12 PM Simon Glass wrote: > > In TPL we want to reduce code size and support running with CONFIG_PCI > disabled. Add special code to handle this using a fixed BAR programmed > into the SPI on boot. Also cache the SPI flash to speed up boot. > > Signed-off-by: S

Re: [U-Boot] [PATCH v5 072/101] spi: ich: Support of-platdata for fast-spi

2019-11-26 Thread Bin Meng
On Mon, Nov 25, 2019 at 12:12 PM Simon Glass wrote: > > The Intel Fast SPI interface is similar to ICH. Add of-platdata support > for this using the "intel,fast-spi" compatible string. > > Signed-off-by: Simon Glass > --- > > Changes in v5: None > Changes in v4: > - Use the new pci_ofplat_get_dev

Re: [U-Boot] [PATCH v5 071/101] spi: ich: Correct max-size bug in ich_spi_adjust_size()

2019-11-26 Thread Bin Meng
Hi Simon, On Mon, Nov 25, 2019 at 12:12 PM Simon Glass wrote: > > This incorrectly shortens read operations if there is a maximum write size > but no maximum read size. Fix it. > > Signed-off-by: Simon Glass > --- > > Changes in v5: None > Changes in v4: None > Changes in v3: None > Changes in v

Re: [U-Boot] [PATCH v5 073/101] spi: ich: Support hardware sequencing

2019-11-26 Thread Bin Meng
Hi Simon, On Mon, Nov 25, 2019 at 12:12 PM Simon Glass wrote: > > Apollo Lake (APL) only supports hardware sequencing. Add support for this > into the SPI driver, as an option. > > Signed-off-by: Simon Glass > > --- > > Changes in v5: None > Changes in v4: > - Fix comment for exec_sync_hwseq_xfe

Re: [U-Boot] [PATCH v5 074/101] spi: ich: Add support for get_mmap() method

2019-11-26 Thread Bin Meng
On Mon, Nov 25, 2019 at 12:12 PM Simon Glass wrote: > > Add this method so that the memory-mapped location of the SPI flash can > be queried. > > Signed-off-by: Simon Glass > --- > > Changes in v5: None > Changes in v4: > - Use the new pci_ofplat_get_devfn() function > > Changes in v3: None > Cha

Re: [U-Boot] [PATCH v5 070/101] dm: doc: Add a note about of-platdata and header files

2019-11-26 Thread Bin Meng
On Mon, Nov 25, 2019 at 12:12 PM Simon Glass wrote: > > We don't want to include dt-structs.h in header files, so add a note about > that. > > Signed-off-by: Simon Glass > --- > > Changes in v5: None > Changes in v4: > - Add a patch to explain of-platdata and header files > > Changes in v3: None

Re: [U-Boot] [PATCH v5 069/101] spi: ich: Add mmio_base to struct ich_spi_platdata

2019-11-26 Thread Bin Meng
On Mon, Nov 25, 2019 at 12:12 PM Simon Glass wrote: > > It is useful to store the mmio base in platdata. It reduces the amount of > casting needed. Update the code and move the struct to the C file at the > same time, as we will need to use with of-platdata. > > Signed-off-by: Simon Glass > --- >

Re: [U-Boot] [PATCH v5 063/101] x86: spi: Don't enable SPI_FLASH_BAR by default

2019-11-26 Thread Bin Meng
On Mon, Nov 25, 2019 at 12:11 PM Simon Glass wrote: > > We don't normally need this on x86 unless the size of SPI flash devices is > larger than 16MB. This can be enabled by particular SoCs as needed, since > it adds to code size. > > Drop the default enabling of this option on x86. > > Signed-off

Re: [U-Boot] [PATCH v5 060/101] x86: Separate out U-Boot and device tree in ROM image

2019-11-26 Thread Bin Meng
On Mon, Nov 25, 2019 at 12:11 PM Simon Glass wrote: > > At present binman does not support updating a device tree that is part of > U-Boot (i.e u-boot.bin). Separate the entries into two so that we can get > updated entry information. This makes binman_entry_find() work correctly. > > Do the same

Re: [U-Boot] [PATCH v5 056/101] x86: Add an option to control the position of U-Boot

2019-11-26 Thread Bin Meng
On Mon, Nov 25, 2019 at 12:11 PM Simon Glass wrote: > > The existing work-around for positioning U-Boot in the ROM when it > actually runs from RAM still exists and there is not obvious way to change > this. > > Add a proper Kconfig option to handle this case. This also adds a new bool > property

Re: [U-Boot] [PATCH v2] armv8: layerscape: Manage PCIe EP compatible string via Kconfig

2019-11-26 Thread Priyanka Jain
>-Original Message- >From: Pankaj Bansal >Sent: Monday, November 18, 2019 2:02 PM >To: Priyanka Jain ; Xiaowei Bao >; Z.q. Hou >Cc: u-boot@lists.denx.de; Pankaj Bansal >Subject: [PATCH v2] armv8: layerscape: Manage PCIe EP compatible string via >Kconfig > >The ep node device tree name

Re: [U-Boot] [PATCH v5 054/101] x86: Update the fsp command for FSP2

2019-11-26 Thread Bin Meng
On Mon, Nov 25, 2019 at 12:11 PM Simon Glass wrote: > > The current 'fsp' command only works with FSP1. Update it to handle FSP2 > as well. Convert everything to hex which is what U-Boot uses. > > Signed-off-by: Simon Glass > --- > > Changes in v5: None > Changes in v4: > - Explain why FSP-M cann

Re: [U-Boot] [PATCH v5 051/101] x86: Add an option to include a FIT

2019-11-26 Thread Bin Meng
On Mon, Nov 25, 2019 at 12:11 PM Simon Glass wrote: > > Many Intel SoCs require a FIT in order to boot properly. Add an option to > include this and enable it by default. > > This term can be confused with FIT (Flat Image Tree) in U-Boot so the > CONFIG option has to include 'X86'. > > Signed-off-

Re: [U-Boot] [PATCH v5 052/101] x86: Add support for newer CAR schemes

2019-11-26 Thread Bin Meng
On Mon, Nov 25, 2019 at 12:11 PM Simon Glass wrote: > > Newer Intel SoCs have different ways of setting up cache-as-ram (CAR). > Add support for these along with suitable configuration options. > > To make the code cleaner, adjust a few definitions in processor.h so that > they can be used from as

Re: [U-Boot] [PATCH 2/3] arm: dts: Add mac node for rk3308 at dtsi level

2019-11-26 Thread Kever Yang
David, On 2019/11/26 上午9:39, David Wu wrote: The rk3308 only support RMII mode, and if it is output clock mode, better to use ref_clk pin with drive strength 12ma. Signed-off-by: David Wu Did you send this to kernel list at the same time? Thanks, - Kever --- arch/arm/dts/rk3308.dtsi

Re: [U-Boot] [BUG] fs: fat: incorrect creation of files with Unicode file name

2019-11-26 Thread AKASHI Takahiro
On Wed, Nov 13, 2019 at 12:53:17AM +0100, Heinrich Schuchardt wrote: > In the UEFI Shell I create a file with > > FS0:\> echo привет_мир.текст > привет_мир.текст > > FS0:\> ls > Directory of: FS0:\ > 00/00/ 00:00 38 привет_мир.текст > > The U-Boot console shows it correctl

Re: [U-Boot] [PATCH v5 045/101] x86: fsp: Add FSP2 base support

2019-11-26 Thread Bin Meng
Hi Simon, On Wed, Nov 27, 2019 at 1:08 AM Simon Glass wrote: > > Hi Bin, > > On Tue, 26 Nov 2019 at 01:36, Bin Meng wrote: > > > > Hi Simon, > > > > On Mon, Nov 25, 2019 at 12:11 PM Simon Glass wrote: > > > > > > Add support for some important configuration options and FSP memory init. > > > Th

Re: [U-Boot] [PATCH v3] arm: add acpi support for the arm

2019-11-26 Thread Bin Meng
Hi Simon, On Wed, Nov 27, 2019 at 11:42 AM Simon Glass wrote: > > Hi Heinrich, > > On Mon, 25 Nov 2019 at 18:12, Heinrich Schuchardt wrote: > > > > On 11/26/19 12:40 AM, Simon Glass wrote: > > > Hi, > > > > > > On Mon, 25 Nov 2019 at 15:57, Heinrich Schuchardt > > > wrote: > > >> > > >> On 11/

Re: [U-Boot] [PATCH] bootm: vxworks: Support Linux compatible standard DTB for ARM and PPC

2019-11-26 Thread Bin Meng
Hi Tom, On Wed, Nov 20, 2019 at 10:22 PM Tom Rini wrote: > > On Wed, Nov 20, 2019 at 10:11:00AM +0800, Bin Meng wrote: > > Hi Tom, > > > > On Fri, Nov 15, 2019 at 4:21 PM Bin Meng wrote: > > > > > > From: Lihua Zhao > > > > > > Enhance do_bootm_vxworks() to support Linux compatible standard DTB

Re: [U-Boot] [PATCH v2 2/3] env: Tidy up some of the env code

2019-11-26 Thread AKASHI Takahiro
On Thu, Nov 21, 2019 at 02:32:47PM +, James Byrne wrote: > This commit tidies up a few things in the env code to make it safer and > easier to extend: > > - The hsearch_r() function took a 'struct env_entry' as its first > parameter, but only used the 'key' and 'data' fields. Some callers woul

Re: [U-Boot] [PATCH] fs: fat: handle deleted directory entries correctly

2019-11-26 Thread AKASHI Takahiro
On Tue, Nov 26, 2019 at 05:29:31PM +0900, AKASHI Takahiro wrote: > Unlink test for FAT file system seems to fail at test_unlink2. > (When I added this test, I haven't seen any errors though.) FYI, once the following patches are merged, file system pytests under /test/py/tests/test_fs will start to

Re: [U-Boot] [PATCH v3] arm: add acpi support for the arm

2019-11-26 Thread Simon Glass
Hi Heinrich, On Mon, 25 Nov 2019 at 18:12, Heinrich Schuchardt wrote: > > On 11/26/19 12:40 AM, Simon Glass wrote: > > Hi, > > > > On Mon, 25 Nov 2019 at 15:57, Heinrich Schuchardt > > wrote: > >> > >> On 11/25/19 3:42 AM, Steven Hao wrote:> 获取 Outlook for iOS > >> > >>>

Re: [U-Boot] [PATCH 2/2] pinctrl: rockchip: Add pinctrl support for rk3308

2019-11-26 Thread Kever Yang
David, On 2019/11/26 上午9:06, David Wu wrote: The most pins of rk3308 are 2bits iomux, but the banks's register width is 0x8. Could you make more explanation about the difference for rk3308 iomux? It will be better to have a simple example here. Thanks, - Kever Signed-off-by: David Wu

Re: [U-Boot] [PATCH v3 2/6] fat: write: fix broken write at non-zero file offset

2019-11-26 Thread AKASHI Takahiro
# I still need to understand the issues reported here. On Tue, Nov 26, 2019 at 11:57:34AM -0500, Tom Rini wrote: > On Tue, Nov 26, 2019 at 09:15:08AM +0100, Marek Szyprowski wrote: > > > Handling of the start file offset was broken in the current code. Although > > the code skipped the needed clu

Re: [U-Boot] [PATCH 1/2] arm: rockchip: rk3308: Initialize the iomux configuration

2019-11-26 Thread Kever Yang
On 2019/11/26 上午9:06, David Wu wrote: When we want to use plus iomux feature, we need to enable them at spl. Signed-off-by: David Wu --- arch/arm/mach-rockchip/rk3308/rk3308.c | 33 ++ 1 file changed, 33 insertions(+) diff --git a/arch/arm/mach-rockchip/rk3308/rk330

Re: [U-Boot] [PATCH] pwm: rk_pwm: Make PWM driver to support all Rockchip Socs

2019-11-26 Thread Kever Yang
Hi David, On 2019/11/25 下午3:38, David Wu wrote: The new PWM driver supports PWM polarity, lock and more functions. Please add a little bit more info about the patch, eg. the difference for pwm v1 vs v2 vs v3. Thanks, - Kever Signed-off-by: David Wu --- arch/arm/include/asm/arch-rock

Re: [U-Boot] [U-boot] RK3399 + CortexM0

2019-11-26 Thread Kever Yang
Hi Anand, On 2019/11/25 下午1:06, Anand Moon wrote: Hi Kever, As per Rockchip RK3399 TRM V1.4 Part1 RK3399 have dual-core Cortex-A72 and a quad-core Cortex-A53 + Cortex-M0 for power management firmware. U-Boot use the default primary core which is power on enabled Cortex-A53 0, and other Corte

Re: [U-Boot] [PATCH v3 1/6] fat: write: fix broken write to fragmented files

2019-11-26 Thread AKASHI Takahiro
Thank you for the heads-up. On Tue, Nov 26, 2019 at 11:57:29AM -0500, Tom Rini wrote: > On Tue, Nov 26, 2019 at 09:15:07AM +0100, Marek Szyprowski wrote: > > > The code for handing file overwrite incorrectly assumed that the file on > > disk is always contiguous. This resulted in corrupting disk

[U-Boot] 回复: [PATCH v3] arm: add acpi support for the arm

2019-11-26 Thread Steven Hao
It seems like a hard thing that how to support arm apci. 发件人: Heinrich Schuchardt 发送时间: 2019年11月26日 8:58 收件人: Simon Glass 抄送: Steven Hao ; Bin Meng ; liu...@phytium.com.cn ; ag...@csgraf.de ; ja...@amarulasolutions.com ; marek.va...@gmail.com ; s...@denx.de ;

[U-Boot] [PATCH 2/2] mtd: mtdcore: Drop unused mtd_table

2019-11-26 Thread Tom Rini
The array 'mtd_table' is unused in the code. Remove this as gcc doesn't always discard unused global variables. Signed-off-by: Tom Rini --- drivers/mtd/mtdcore.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c index 89ac8229f584..dd04d676d56c 1

[U-Boot] [PATCH 1/2] pci: Only link pci_rom.o in some cases

2019-11-26 Thread Tom Rini
The content of pci_rom.c is only used in a few cases. Only build and link in these cases to avoid a global variable as gcc doesn't always discard those when they are unused. Signed-off-by: Tom Rini --- drivers/pci/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/

Re: [U-Boot] [PATCH v2 03/16] efi_loader: add signature verification functions

2019-11-26 Thread AKASHI Takahiro
On Tue, Nov 26, 2019 at 01:55:29PM +0200, Ilias Apalodimas wrote: > [...] > > + /* verify signature */ > > + /* against digest */ > > + c = 0x31; > > + regtmp[0].data = &c; > > + regtmp[0].size = 1; > > Is there a reason for '1' instea of sizeof(c)? Yes,

Re: [U-Boot] [PATCH v3 06/16] linux/time.h: include vsprintf.h

2019-11-26 Thread AKASHI Takahiro
Heinrich, On Tue, Nov 26, 2019 at 08:31:18AM +0100, Heinrich Schuchardt wrote: > On 11/26/19 4:56 AM, Heinrich Schuchardt wrote: > >On 11/13/19 1:44 AM, AKASHI Takahiro wrote: > >>Without this commit, time.h possibly causes a build error as > >>asctime_r() uses sprintf(). > > > >asctime_r() is not

Re: [U-Boot] [PATCH v3 05/16] include: kernel.h: include printk.h

2019-11-26 Thread AKASHI Takahiro
Heinrich, On Tue, Nov 26, 2019 at 04:35:00AM +0100, Heinrich Schuchardt wrote: > On 11/13/19 1:44 AM, AKASHI Takahiro wrote: > >Adding "printk.h" will help improve portability from linux kernel > >code (in my case, lib/asn1_decoder.c and others) where printf and > > nits: > > %s/printf/printk/g

Re: [U-Boot] [PATCH] warp7: Fix U-Boot corruption after saving the environment

2019-11-26 Thread Fabio Estevam
Hi Stefano, On Mon, Oct 21, 2019 at 11:23 AM Fabio Estevam wrote: > > U-Boot binary has grown in such a way that it goes beyond the reserved > area for the environment variables. > > Running "saveenv" followed by a "reset" causes U-Boot to hang because > of this overlap. > > Fix this problem by i

[U-Boot] [PATCH 2/2] Convert CONFIG_SYS_CORTINA_FW_IN_MMC et al to Kconfig

2019-11-26 Thread Tom Rini
This converts the following to Kconfig: CONFIG_SYS_CORTINA_FW_IN_MMC CONFIG_SYS_CORTINA_FW_IN_NAND CONFIG_SYS_CORTINA_FW_IN_NOR CONFIG_SYS_CORTINA_FW_IN_REMOTE CONFIG_SYS_CORTINA_FW_IN_SPIFLASH Signed-off-by: Tom Rini --- configs/T2080RDB_NAND_defconfig | 1 + configs/T

[U-Boot] [PATCH 1/2] Convert CONFIG_PHY_CORTINA to Kconfig

2019-11-26 Thread Tom Rini
This converts the following to Kconfig: CONFIG_PHY_CORTINA Signed-off-by: Tom Rini --- configs/T2080RDB_NAND_defconfig | 1 + configs/T2080RDB_SDCARD_defconfig | 1 + configs/T2080RDB_SECURE_BOOT_defconfig| 1 + configs/T2080RDB_SPIFLASH_defconfig |

[U-Boot] [PATCH 1/4] mmc: meson-gx: Fix tx phase in the tuning process

2019-11-26 Thread Anand Moon
odroid n2 eMMC module would failed to boot up, because of TX phase clk failure, fix the typo in TX phase macro to help tune correct clk freqency. Before these changes. clock is enabled (380953Hz) clock is enabled (2500Hz) after these changes clock is enabled (380953Hz) clock is enabled

[U-Boot] [PATCH 3/4] board: amlogic: select PWRSEQ for all amlogic platform

2019-11-26 Thread Anand Moon
commit a10388dc6982 ("mmc: meson-gx: add support for mmc-pwrseq-emmc") introduce CONFIG_PWESEQ for power sequence for eMMC module on amlogic platform, so enable this to all amlogic boards. Signed-off-by: Anand Moon --- arch/arm/mach-meson/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git

[U-Boot] [PATCH 2/4] configs: meson64: enable GIC support for G12A/G12B

2019-11-26 Thread Anand Moon
Enable GIC support for G12A/G12B platform. Signed-off-by: Anand Moon --- include/configs/meson64.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/meson64.h b/include/configs/meson64.h index 736081277d..50707a3197 100644 --- a/include/configs/meson64.h +++ b/i

[U-Boot] [PATCH 4/4] board: amlogic: Add missing config option

2019-11-26 Thread Anand Moon
Add missing config option CONFIG_MESON_GXBB and CONFIG_SYS_BOARD, for odroid-c2 and nanopi k2 board Signed-off-by: Anand Moon --- configs/nanopi-k2_defconfig | 2 ++ configs/odroid-c2_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configs/nanopi-k2_defconfig b/configs/nanopi-k2

[U-Boot] [PATCH 0/4] Odroid n2 using eMMC would fail to boot up

2019-11-26 Thread Anand Moon
Here are some small changes to fix booting of Odroid N2 Tested on below eMMC module new orange - eMMC AJNB4R 14.6 GiB MMC 5.1 old back - eMMC CGND3R 58.2 GiB MMC 5.0 -Anand Anand Moon (4): mmc: meson-gx: Fix tx phase in the tuning process configs: meson64: enable GIC support for G12A/G12B

Re: [U-Boot] [PATCH] cmd: Add command to display or save Linux PStore dumps

2019-11-26 Thread Heinrich Schuchardt
On 11/18/19 11:09 AM, Frédéric Danis wrote: This patch adds a new pstore command allowing to display or save ramoops logs (oops, panic, console, ftrace and user) generated by a previous kernel crash. PStore parameters can be set in U-Boot configuration file, or at run-time using "pstore set" comm

[U-Boot] [PATCH v3 1/2] dt-bindings: Documentation on BRCM xHCI controller

2019-11-26 Thread Vladimir Olovyannikov
From: Bharat Kumar Reddy Gooty DT bindings document for Broadcom xHCI controller. Signed-off-by: Bharat Kumar Reddy Gooty Signed-off-by: Vladimir Olovyannikov --- .../devicetree/bindings/usb/brcm,generic-xhci.txt| 12 1 file changed, 12 insertions(+) create mode 100644 Docum

[U-Boot] [PATCH v3 2/2] drivers: usb: host: Add BRCM xHCI driver

2019-11-26 Thread Vladimir Olovyannikov
From: Bharat Kumar Reddy Gooty Base driver for Broadcom xHCI controllers Signed-off-by: Bharat Kumar Reddy Gooty Signed-off-by: Vladimir Olovyannikov --- drivers/usb/host/Kconfig | 8 +++ drivers/usb/host/Makefile| 1 + drivers/usb/host/xhci-brcm.c | 105 ++

[U-Boot] [PATCH v3 0/2] Add Broadcom XHCI driver for iproc platforms

2019-11-26 Thread Vladimir Olovyannikov
This patchset adds Broadcom XHCI driver for iproc platforms. This USB controller is based on the Broadcom USB3 IP Core. Supports USB2/3 functionality. Bharat Kumar Reddy Gooty (2): dt-bindings: Documentation on BRCM xHCI controller drivers: usb: host: Add BRCM xHCI driver .../bindings/usb/br

[U-Boot] [PATCH v3 1/2] dt-bindings: Documentation on BRCM xHCI controller

2019-11-26 Thread Vladimir Olovyannikov
From: Bharat Kumar Reddy Gooty DT bindings document for Broadcom xHCI controller. Signed-off-by: Bharat Kumar Reddy Gooty Signed-off-by: Vladimir Olovyannikov --- .../devicetree/bindings/usb/brcm,generic-xhci.txt| 12 1 file changed, 12 insertions(+) create mode 100644 Docum

[U-Boot] [PATCH v3 2/2] drivers: usb: host: Add BRCM xHCI driver

2019-11-26 Thread Vladimir Olovyannikov
From: Bharat Kumar Reddy Gooty Base driver for Broadcom xHCI controllers Signed-off-by: Bharat Kumar Reddy Gooty Signed-off-by: Vladimir Olovyannikov --- drivers/usb/host/Kconfig | 8 +++ drivers/usb/host/Makefile| 1 + drivers/usb/host/xhci-brcm.c | 105 ++

[U-Boot] [PATCH v2 0/2] Add Broadcom XHCI driver for iproc platforms

2019-11-26 Thread Vladimir Olovyannikov
This patchset adds Broadcom XHCI driver for iproc platforms. This USB controller is based on the Broadcom USB3 IP Core. Supports USB2/3 functionality. Bharat Kumar Reddy Gooty (2): dt-bindings: Documentation on BRCM xHCI controller drivers: usb: host: Add BRCM xHCI driver .../bindings/usb/br

Re: [U-Boot] [PATCH v2 2/2] drivers: usb: host: Add BRCM xHCI driver

2019-11-26 Thread Vladimir Olovyannikov
> -Original Message- > From: Marek Vasut > Sent: Tuesday, November 26, 2019 10:22 AM [...] > On 11/26/19 7:18 PM, Vladimir Olovyannikov wrote: > [...] > > + /* Enable AXI read and write attributes. */ > > + clrsetbits_le32((hc_base + DRD2U3H_XHC_REGS_AXIWRA), > > Here is another extra

Re: [U-Boot] [PATCH 0/2] Add support for booting EFI FIT images

2019-11-26 Thread Heinrich Schuchardt
On 11/24/19 9:11 PM, Cristian Ciocaltea wrote: Currently the only way to run an EFI binary like GRUB2 is via the 'bootefi' command, which cannot be used in a verified boot scenario. The obvious solution to this limitation is to add support for booting FIT images containing those EFI binaries. T

Re: [U-Boot] [PATCH v2 2/2] drivers: usb: host: Add BRCM xHCI driver

2019-11-26 Thread Marek Vasut
On 11/26/19 7:18 PM, Vladimir Olovyannikov wrote: [...] > + /* Enable AXI read and write attributes. */ > + clrsetbits_le32((hc_base + DRD2U3H_XHC_REGS_AXIWRA), Here is another extra parenthesis ;-) > + (USBAXIWR_UA_MASK | USBAXIWR_SA_MASK), > + (US

[U-Boot] [PATCH v2 2/2] drivers: usb: host: Add BRCM xHCI driver

2019-11-26 Thread Vladimir Olovyannikov
From: Bharat Kumar Reddy Gooty Base driver for Broadcom xHCI controllers Signed-off-by: Bharat Kumar Reddy Gooty Signed-off-by: Vladimir Olovyannikov --- drivers/usb/host/Kconfig | 8 +++ drivers/usb/host/Makefile| 1 + drivers/usb/host/xhci-brcm.c | 105 ++

[U-Boot] [PATCH v2 1/2] dt-bindings: Documentation on BRCM xHCI controller

2019-11-26 Thread Vladimir Olovyannikov
From: Bharat Kumar Reddy Gooty DT bindings document for Broadcom xHCI controller. Signed-off-by: Bharat Kumar Reddy Gooty Signed-off-by: Vladimir Olovyannikov --- .../devicetree/bindings/usb/brcm,generic-xhci.txt| 12 1 file changed, 12 insertions(+) create mode 100644 Docum

[U-Boot] [PATCH v2 0/2] Add Broadcom XHCI driver for iproc platforms

2019-11-26 Thread Vladimir Olovyannikov
This patchset adds Broadcom XHCI driver for iproc platforms. This USB controller is based on the Broadcom USB3 IP Core. Supports USB2/3 functionality. Bharat Kumar Reddy Gooty (2): dt-bindings: Documentation on BRCM xHCI controller drivers: usb: host: Add BRCM xHCI driver .../bindings/usb/br

[U-Boot] [PATCH 2/4] ppc/km: convert KM_DEF_NETDEV to Kconfig

2019-11-26 Thread Holger Brunck
Remove this from the board header files and move it to Kconfig. Also use the correct default address for kmtegr1. Signed-off-by: Holger Brunck CC: Priyanka Jain CC: Valentin Longchamp --- board/keymile/Kconfig | 6 ++ configs/kmcoge5ne_defconfig | 1 + configs/kmeter1

[U-Boot] [PATCH 3/4] board/km: remove CONFIG_KM_BOARD_NAME

2019-11-26 Thread Holger Brunck
We can use the existing CONFIG_SYS_CONFIG_NAME define for that and remove the option. Also fix the boot string for all km83xx boards. Signed-off-by: Holger Brunck CC: Priyanka Jain CC: Valentin Longchamp --- board/keymile/km83xx/km83xx.c | 2 +- board/keymile/kmp204x/kmp204x.c | 2 +- includ

[U-Boot] [PATCH 1/4] ppc/km/tegr1: support second localbus clock signal

2019-11-26 Thread Holger Brunck
On kmtegr1 we have to specify the second localbus clock signal also instead of using the default for our ppc 8309 boards. Signed-off-by: Holger Brunck CC: Priyanka Jain CC: Valentin Longchamp --- include/configs/km/km-mpc8309.h | 2 ++ include/configs/kmtegr1.h | 17 + 2

Re: [U-Boot] Raspberry Pi Compute Module 1 mini-UART

2019-11-26 Thread Matthias Brugger
Hi Ed, On 25/11/2019 21:47, edrose wrote: > Hi, > > I'm working on a project that uses the Raspberry Pi Compute Module 1. Much > like the CM 3, the CM 1 has two UART interfaces - the main UART at ttyAMA0, > and a second "mini-UART" at ttyS0. The project uses the main UART since it > works better

[U-Boot] [PATCH 4/4] ppc/kmeter1: remove unused define

2019-11-26 Thread Holger Brunck
CONFIG_CONS_INDEX is nowhere used for this board, we can drop it. Signed-off-by: Holger Brunck CC: Priyanka Jain CC: Valentin Longchamp --- include/configs/kmeter1.h | 5 - 1 file changed, 5 deletions(-) diff --git a/include/configs/kmeter1.h b/include/configs/kmeter1.h index 4129d97505..

Re: [U-Boot] [PATCH] board_f.c: Insure gd->new_bootstage alignment

2019-11-26 Thread Heinrich Schuchardt
On 11/26/19 1:16 PM, Patrick DELAUNAY wrote: Hi, From: Patrice CHOTARD Sent: lundi 25 novembre 2019 14:48 In reserve_bootstage(), in case size is odd, gd->new_bootstage is not aligned. In bootstage_relocate(), the platform hangs when getting access to data- record[i].name. To avoid this is

Re: [U-Boot] [PATCH v5 045/101] x86: fsp: Add FSP2 base support

2019-11-26 Thread Simon Glass
Hi Bin, On Tue, 26 Nov 2019 at 01:36, Bin Meng wrote: > > Hi Simon, > > On Mon, Nov 25, 2019 at 12:11 PM Simon Glass wrote: > > > > Add support for some important configuration options and FSP memory init. > > The memory init uses swizzle tables from the device tree. > > > > Support for the FSP_

Re: [U-Boot] [PATCH v5 024/101] sandbox: Add PCI driver and test for p2sb

2019-11-26 Thread Simon Glass
Hi Bin, On Tue, 26 Nov 2019 at 00:39, Bin Meng wrote: > > Hi Simon, > > On Mon, Nov 25, 2019 at 12:11 PM Simon Glass wrote: > > > > Add a sandbox driver and PCI-device emulator for p2sb. Also add a test > > which uses a simple 'adder' driver to test the p2sb functionality. > > > > Signed-off-by:

Re: [U-Boot] [PATCH v5 013/101] RFC: sandbox: net: Suppress the MAC-address warnings

2019-11-26 Thread Simon Glass
Hi Bin, On Mon, 25 Nov 2019 at 23:13, Bin Meng wrote: > > Hi Simon, Joe, > > On Mon, Nov 25, 2019 at 12:11 PM Simon Glass wrote: > > > > These warnings appear every thing sandbox is run (see below) and dwarf the > > actual useful output. Suppress them in two ways: > > > > 1. For the mismatch war

Re: [U-Boot] [PATCH v5 009/101] i2c: designware: Support use in SPL

2019-11-26 Thread Simon Glass
Hi Bin, On Mon, 25 Nov 2019 at 22:13, Bin Meng wrote: > > Hi Simon, > > On Mon, Nov 25, 2019 at 12:11 PM Simon Glass wrote: > > > > Allow this driver to set up an IO address in SPL using an 'early-regs' > > property. This allows SPL to use the I2C driver without having to enable > > the full PCI

Re: [U-Boot] [PATCH v5 012/101] board_r: Move early-timer init later

2019-11-26 Thread Simon Glass
Hi Bin, On Mon, 25 Nov 2019 at 23:11, Bin Meng wrote: > > Hi Simon, > > On Mon, Nov 25, 2019 at 12:11 PM Simon Glass wrote: > > > > At present the early timer init happens as soon as driver mode is set up. > > mode -> model > > > This makes it impossible to do any in that needs driver model but

Re: [U-Boot] [PATCH v5 007/101] i2c: designware: Tidy up PCI support

2019-11-26 Thread Simon Glass
Hi Bin, On Mon, 25 Nov 2019 at 22:09, Bin Meng wrote: > > Hi Simon, > > > On Mon, Nov 25, 2019 at 12:11 PM Simon Glass wrote: > > > > This is hacked into the driver at present. It seems better to have it as > > a separate driver that uses the base driver. Create a new file and put > > the X86 co

Re: [U-Boot] [U-Boot-Custodians] [U-Boot-Board-Maintainers] [RFC] Eliminate boards not using CONFIG_DM=y

2019-11-26 Thread Marek Vasut
On 11/26/19 5:52 PM, Tom Rini wrote: > On Tue, Nov 26, 2019 at 05:47:48PM +0100, Marek Vasut wrote: >> On 11/26/19 5:26 PM, Tom Rini wrote: >>> On Tue, Nov 26, 2019 at 09:11:51AM +0100, Marek Vasut wrote: On 11/26/19 12:16 AM, Heinrich Schuchardt wrote: > Dear maintainers, Hi, >>

Re: [U-Boot] [PATCH v3 2/6] fat: write: fix broken write at non-zero file offset

2019-11-26 Thread Tom Rini
On Tue, Nov 26, 2019 at 09:15:08AM +0100, Marek Szyprowski wrote: > Handling of the start file offset was broken in the current code. Although > the code skipped the needed clusters, it then tried to continue write with > current cluster set to EOF, what caused assertion. It also lacked adjusting

Re: [U-Boot] [PATCH v3 1/6] fat: write: fix broken write to fragmented files

2019-11-26 Thread Tom Rini
On Tue, Nov 26, 2019 at 09:15:07AM +0100, Marek Szyprowski wrote: > The code for handing file overwrite incorrectly assumed that the file on > disk is always contiguous. This resulted in corrupting disk structure > every time when write to existing fragmented file happened. Fix this > by adding pr

Re: [U-Boot] [U-Boot-Board-Maintainers] [U-Boot-Custodians] [RFC] Eliminate boards not using CONFIG_DM=y

2019-11-26 Thread Tom Rini
On Tue, Nov 26, 2019 at 05:31:26PM +0100, Lukasz Majewski wrote: > Hi Tom, > > > On Tue, Nov 26, 2019 at 09:11:51AM +0100, Marek Vasut wrote: > > > On 11/26/19 12:16 AM, Heinrich Schuchardt wrote: > > > > Dear maintainers, > > > > > > Hi, > > > > > > > we have been trying to move to the dr

Re: [U-Boot] [U-Boot-Custodians] [U-Boot-Board-Maintainers] [RFC] Eliminate boards not using CONFIG_DM=y

2019-11-26 Thread Tom Rini
On Tue, Nov 26, 2019 at 05:47:48PM +0100, Marek Vasut wrote: > On 11/26/19 5:26 PM, Tom Rini wrote: > > On Tue, Nov 26, 2019 at 09:11:51AM +0100, Marek Vasut wrote: > >> On 11/26/19 12:16 AM, Heinrich Schuchardt wrote: > >>> Dear maintainers, > >> > >> Hi, > >> > >>> we have been trying to move to

Re: [U-Boot] [U-Boot-Custodians] [U-Boot-Board-Maintainers] [RFC] Eliminate boards not using CONFIG_DM=y

2019-11-26 Thread Marek Vasut
On 11/26/19 5:26 PM, Tom Rini wrote: > On Tue, Nov 26, 2019 at 09:11:51AM +0100, Marek Vasut wrote: >> On 11/26/19 12:16 AM, Heinrich Schuchardt wrote: >>> Dear maintainers, >> >> Hi, >> >>> we have been trying to move to the driver model for several years now. >>> Starting in 2018 we have added wa

Re: [U-Boot] [U-Boot-Board-Maintainers] [U-Boot-Custodians] [RFC] Eliminate boards not using CONFIG_DM=y

2019-11-26 Thread Lukasz Majewski
Hi Tom, > On Tue, Nov 26, 2019 at 09:11:51AM +0100, Marek Vasut wrote: > > On 11/26/19 12:16 AM, Heinrich Schuchardt wrote: > > > Dear maintainers, > > > > Hi, > > > > > we have been trying to move to the driver model for several years > > > now. Starting in 2018 we have added warnings to

Re: [U-Boot] [PATCH] ARM: mx6: pmu: Expose PMU LDO configuration interface

2019-11-26 Thread Eric Nelson
Hi Marek, On 11/26/19 1:35 AM, Marek Vasut wrote: Make the PMU LDO configuration interface available to board code, so that board code can reconfigure the internal LDOs of the SoC. Signed-off-by: Marek Vasut Cc: Eric Nelson Cc: Fabio Estevam Cc: Stefano Babic --- arch/arm/include/asm/arch

Re: [U-Boot] [PATCH 3/4] ARM: mx6: ddr: Configure all SDQS pullups using loop

2019-11-26 Thread Eric Nelson
Hi Marek, On 11/26/19 1:34 AM, Marek Vasut wrote: Instead of explicitly setting up each SDQS register, use a loop. No functional change. Signed-off-by: Marek Vasut Cc: Eric Nelson Cc: Fabio Estevam Cc: Stefano Babic --- arch/arm/mach-imx/mx6/ddr.c | 27 --- 1 file

Re: [U-Boot] [U-Boot-Custodians] [U-Boot-Board-Maintainers] [RFC] Eliminate boards not using CONFIG_DM=y

2019-11-26 Thread Tom Rini
On Tue, Nov 26, 2019 at 09:11:51AM +0100, Marek Vasut wrote: > On 11/26/19 12:16 AM, Heinrich Schuchardt wrote: > > Dear maintainers, > > Hi, > > > we have been trying to move to the driver model for several years now. > > Starting in 2018 we have added warnings to the Makefile that boards not >

Re: [U-Boot] [PATCH 4/4] ARM: mx6: ddr: Add support for iMX6SX

2019-11-26 Thread Eric Nelson
Hi Marek, On 11/26/19 1:34 AM, Marek Vasut wrote: This patch adds support for iMX6SX MMDC into the DDR calibration code. The only difference between MX6DQ and MX6SX is that the SX has 2 SDQS registers, while the DQ has 8. Signed-off-by: Marek Vasut Cc: Eric Nelson Cc: Fabio Estevam Cc: Stefa

Re: [U-Boot] [PATCH 2/4] ARM: mx6: ddr: Factor out SDQS configuration code

2019-11-26 Thread Eric Nelson
Hi Marek, On 11/26/19 1:34 AM, Marek Vasut wrote: Pull out the code turning SDQS pullups on and off into a separate function, since it is replicated in two places in the code and it is the single place in the entire function which is SoC dependent. Signed-off-by: Marek Vasut Cc: Eric Nelson C

Re: [U-Boot] [PATCH 1/4] ARM: mx6: ddr: Make debug prints work with tiny printf

2019-11-26 Thread Eric Nelson
Hi Marek, On 11/26/19 1:34 AM, Marek Vasut wrote: The %08X format returns just zeroes with tiny printf, which is horribly confusing, especially when debugging DRAM calibration problems. Change the format to %08x (with lowercase x), which behaves correctly with either implementation of printf in

[U-Boot] [PATCH] drivers: optee: rpmb: fix returning CID to TEE

2019-11-26 Thread Jorge Ramirez-Ortiz
The mmc CID value is one of the input parameters used to provision the RPMB key. The trusted execution environment expects this value to be specified in big endian format. Before this fix, on little endian systems, the value returned by the linux kernel mmc driver differed from the one returned by

Re: [U-Boot] [PATCH] drivers: optee: rpmb: fix returning CID to TEE

2019-11-26 Thread Jorge Ramirez-Ortiz, Foundries
On 26/11/19 12:46:04, Jens Wiklander wrote: > On Tue, Nov 26, 2019 at 09:22:38AM +0100, Jorge Ramirez-Ortiz, Foundries > wrote: > > On 20/11/19 11:33:10, Jens Wiklander wrote: > > > On Wed, Nov 20, 2019 at 09:21:35AM +0100, Jorge Ramirez-Ortiz wrote: > > > > On 11/20/19 8:20 AM, Jens Wiklander wro

Re: [U-Boot] [PATCH v2 2/4] arm: sunxi: add a config option to fixup a Bluetooth address

2019-11-26 Thread Andre Heider
On 26/11/2019 13:40, Ondřej Jirman wrote: On Tue, Nov 26, 2019 at 01:15:42PM +0100, Andre Heider wrote: On 26/11/2019 11:46, Ondřej Jirman wrote: Hello Andre, On Tue, Nov 26, 2019 at 09:16:00AM +0100, Andre Heider wrote: Some Bluetooth controllers, like the BCM4345C5 of the Orange Pi 3, ship

Re: [U-Boot] [PATCH 3/4] rockchip: px5: enable spl-fifo-mode for emmc for px5-evb

2019-11-26 Thread Philipp Tomsich
> On 26.11.2019, at 14:15, Andy Yan wrote: > > We need load some parts of ATF to sram, but rockchip > dwmmc controllers can't do dma to non-ddr addresses > space, so set the mmc controller into fifo mode in spl. > > Signed-off-by: Andy Yan Reviewed-by: Philipp Tomsich __

Re: [U-Boot] [PATCH 4/4] boards/km_arm: enable support for Macronix SPI NOR flash

2019-11-26 Thread Stefan Roese
On 25.11.19 17:24, Holger Brunck wrote: The M25P80 and M25P32 SPI flashes from Numonix/Micron will be replaced by Marconix MX25L80 and MX25L32 flashes. Signed-off-by: Holger Brunck CC: Stefan Roese CC: Valentin Longchamp Reviewed-by: Stefan Roese Thanks, Stefan --- configs/km_kirkwood

Re: [U-Boot] [PATCH 3/4] arm/km: remove board KMCOGE3UN

2019-11-26 Thread Stefan Roese
On 25.11.19 17:24, Holger Brunck wrote: This target is out of maintenance and can be removed. Signed-off-by: Holger Brunck CC: Stefan Roese CC: Valentin Longchamp Reviewed-by: Stefan Roese Thanks, Stefan --- board/keymile/km_arm/MAINTAINERS | 1 - board/keymile/km_arm/km_arm.c|

Re: [U-Boot] [PATCH 2/4] km/boards: add MAC address offset as argument to ivm_populate_env

2019-11-26 Thread Stefan Roese
On 25.11.19 17:24, Holger Brunck wrote: For upcoming SECU board we have different MAC address offsets depending on which functional unit we are running. In this case we need to pass this value to the ivm_populate_env function instead of using the hard coded config option there. Signed-off-by: Ho

Re: [U-Boot] [PATCH 1/4] km/boards: fix typo for MAC address offset config option

2019-11-26 Thread Stefan Roese
On 25.11.19 17:24, Holger Brunck wrote: This patch only fixes a typo. Signed-off-by: Holger Brunck CC: Stefan Roese CC: Valentin Longchamp Reviewed-by: Stefan Roese Thanks, Stefan --- board/keymile/Kconfig | 2 +- board/keymile/common/ivm.c | 6 +++--- configs/kmcoge5un_defco

[U-Boot] [PATCH 2/4] rockchip: rk3308: enable spl-fifo-mode for emmc

2019-11-26 Thread Andy Yan
We need load some parts of ATF to sram, but rockchip dwmmc controllers can't do dma to non-ddr addresses space, so set the mmc controller into fifo mode in spl. And show my best respect to Heiko's work for this solution. Signed-off-by: Andy Yan --- arch/arm/dts/rk3308-u-boot.dtsi | 2 ++ 1 fil

[U-Boot] [PATCH 4/4] rockchip: evb-px5: disable NET

2019-11-26 Thread Andy Yan
PX5 evb has no ETH port, so disable it. Signed-off-by: Andy Yan --- configs/evb-px5_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/evb-px5_defconfig b/configs/evb-px5_defconfig index f9b17be10e..2d18da6cc8 100644 --- a/configs/evb-px5_defconfig +++ b/confi

[U-Boot] [PATCH 1/4] doc: rockchip: Update build instruction for rk3308

2019-11-26 Thread Andy Yan
After commit d8765e2422cd ("Enable building of u-boot.itb on Rockchip platform"), u-boot.itb will automatically generated by "make all" command, manually command "make u-boot.itb" is no longer needed. Signed-off-by: Andy Yan --- doc/README.rockchip | 1 - 1 file changed, 1 deletion(-) diff --g

[U-Boot] [PATCH 3/4] rockchip: px5: enable spl-fifo-mode for emmc for px5-evb

2019-11-26 Thread Andy Yan
We need load some parts of ATF to sram, but rockchip dwmmc controllers can't do dma to non-ddr addresses space, so set the mmc controller into fifo mode in spl. Signed-off-by: Andy Yan --- arch/arm/dts/rk3368-px5-evb-u-boot.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/dts

Re: [U-Boot] [PATCH v2 2/4] arm: sunxi: add a config option to fixup a Bluetooth address

2019-11-26 Thread Ondřej Jirman
On Tue, Nov 26, 2019 at 01:15:42PM +0100, Andre Heider wrote: > On 26/11/2019 11:46, Ondřej Jirman wrote: > > Hello Andre, > > > > On Tue, Nov 26, 2019 at 09:16:00AM +0100, Andre Heider wrote: > > > Some Bluetooth controllers, like the BCM4345C5 of the Orange Pi 3, > > > ship with the controller d

Re: [U-Boot] [PATCH] board_f.c: Insure gd->new_bootstage alignment

2019-11-26 Thread Patrick DELAUNAY
Hi, > From: Patrice CHOTARD > Sent: lundi 25 novembre 2019 14:48 > > In reserve_bootstage(), in case size is odd, gd->new_bootstage is not > aligned. In > bootstage_relocate(), the platform hangs when getting access to data- > >record[i].name. > To avoid this issue, make gd->new_bootstage 16 by

  1   2   3   >