Re: [U-Boot] [PULL] Please pull u-boot-rockchip:tags/for-master-20190201

2019-02-05 Thread Vignesh R
On 01/02/19 10:45 PM, Philipp Tomsich wrote: > Tom, > > I am a little late this time with our changes for rc1. Hope this doesn’t > impact your workflow too much. > Things got a bit messy this time, as some of the series introduced unexpected > isses during testing > (such as the debug UART no

Re: [U-Boot] [PATCH v2 0/7] Align U-Boot I2C DM bus ID handling with Linux

2019-02-05 Thread Heiko Schocher
Hello Michal, Am 05.02.2019 um 08:57 schrieb Michal Simek: Hi Simon, On 02. 02. 19 15:10, Simon Glass wrote: Hi Michal, On Thu, 31 Jan 2019 at 08:31, Michal Simek wrote: U-Boot with I2C_DM enabled is not capable to list i2c busses connected to i2c mux. For getting this work there is a need

Re: [U-Boot] [RFC PATCH] dm: device: Do not probe parents which are probed already

2019-02-05 Thread Michal Simek
On 02. 02. 19 7:05, Simon Glass wrote: > Hi Michal, > > On Thu, 31 Jan 2019 at 03:28, Michal Simek wrote: >> >> On 31. 01. 19 11:04, Simon Glass wrote: >>> Hi Michal, >>> >>> On Fri, 18 Jan 2019 at 02:41, Michal Simek > wrote: From the first look there is no reason to probe parent node

Re: [U-Boot] [PATCH v2 0/7] Align U-Boot I2C DM bus ID handling with Linux

2019-02-05 Thread Michal Simek
On 05. 02. 19 9:20, Heiko Schocher wrote: > Hello Michal, > > Am 05.02.2019 um 08:57 schrieb Michal Simek: >> Hi Simon, >> >> On 02. 02. 19 15:10, Simon Glass wrote: >>> Hi Michal, >>> >>> On Thu, 31 Jan 2019 at 08:31, Michal Simek >>> wrote: U-Boot with I2C_DM enabled is not capable to

[U-Boot] [PATCH] rockchip: Remove rejected files with .rej suffix

2019-02-05 Thread Michal Simek
Probably output of incorrect applying introduced by "rockchip: defconfig: Clean the unused pinctrl config" (sha1: 2ec3d25f8faab51c2334174a582a96ad28d96344) Signed-off-by: Michal Simek --- configs/kylin-rk3036_defconfig.rej | 10 -- configs/puma-rk3399_defconfig.rej | 10 -- 2

Re: [U-Boot] [PATCH] rockchip: Remove rejected files with .rej suffix

2019-02-05 Thread Philipp Tomsich
> On 05.02.2019, at 10:29, Michal Simek wrote: > > Probably output of incorrect applying introduced by > > "rockchip: defconfig: Clean the unused pinctrl config" > (sha1: 2ec3d25f8faab51c2334174a582a96ad28d96344) Thanks for catching this one! > Signed-off-by: Michal Simek Reviewed-by: Phil

Re: [U-Boot] [PATCH] core: ofnode: Add ofnode_pci_get_devfn()

2019-02-05 Thread Stefan Roese
Hi Simon, On 02.02.19 07:05, Simon Glass wrote: On Thu, 31 Jan 2019 at 03:45, Stefan Roese mailto:s...@denx.de>> wrote: > > Hi Simon, > > On 31.01.19 11:04, Simon Glass wrote: > > Hi Stefan, > > > > On Tue, 22 Jan 2019 at 02:36, Stefan Roese mailto:s...@denx.de>> wrote: > >> > >> Hi Si

Re: [U-Boot] [PATCH] rockchip: Remove rejected files with .rej suffix

2019-02-05 Thread Philipp Tomsich
On 05.02.2019, at 10:29, Michal Simek wrote: > > Probably output of incorrect applying introduced by > > "rockchip: defconfig: Clean the unused pinctrl config" > (sha1: 2ec3d25f8faab51c2334174a582a96ad28d96344) > > Signed-off-by: Michal Simek Applied to u-boot-rockchip/master. __

[U-Boot] [PULL] Please pull u-boot-rockchip: tags/for-master-20190205

2019-02-05 Thread Philipp Tomsich
27; of git://git.denx.de/u-boot-rockchip (2019-02-02 10:11:20 -0500) are available in the git repository at: git://git.denx.de/u-boot-rockchip tags/for-master-20190205 for you to fetch changes up to 30477f0500dac67e988498df3b6783372a31c22c: rockchip: Remove rejected files with .rej suffix (2019-02-0

Re: [U-Boot] [PULL] Please pull u-boot-rockchip:tags/for-master-20190201

2019-02-05 Thread Philipp Tomsich
Vignesh, > On 05.02.2019, at 09:08, Vignesh R wrote: > > > > On 01/02/19 10:45 PM, Philipp Tomsich wrote: >> Tom, >> >> I am a little late this time with our changes for rc1. Hope this doesn’t >> impact your workflow too much. >> Things got a bit messy this time, as some of the series intro

[U-Boot] [PATCH] .gitignore: ignore patch rejects (*.rej) files

2019-02-05 Thread Philipp Tomsich
As my last merge (and the successive follow-up patch) shows, *.rej files are not covered by our .gitignore. To protect against future accidental addition of *.rej artifacts, this adds a pattern for these to our .gitignore. Signed-off-by: Philipp Tomsich Series-Cc: michal.si...@xilinx.com Series-

[U-Boot] [PATCH 0/6] arm64: versal: Misc patches

2019-02-05 Thread Michal Simek
Hi, I am sending some patches in series to make sure that they are applied in the proper order. They can be applied an reviewed independently. Thanks, Michal Michal Simek (3): arm64: versal: Disable showing information about console arm64: versal: Remove one level of indentation in board_ear

[U-Boot] [PATCH 4/6] arm64: versal: Remove one level of indentation in board_early_init_r()

2019-02-05 Thread Michal Simek
Simplify code indentation. Signed-off-by: Michal Simek --- board/xilinx/versal/board.c | 57 +++-- 1 file changed, 29 insertions(+), 28 deletions(-) diff --git a/board/xilinx/versal/board.c b/board/xilinx/versal/board.c index fd6c8d8cb737..b49a4f473a72 1

[U-Boot] [PATCH 1/6] arm64: versal: Disable showing information about console

2019-02-05 Thread Michal Simek
There is no need to see this info. It is just wasting of space/time. It saves 308Bytes. Signed-off-by: Michal Simek --- configs/xilinx_versal_mini_emmc0_defconfig | 1 + configs/xilinx_versal_mini_emmc1_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/xilinx_versal_mini_e

[U-Boot] [PATCH 5/6] arm64: versal: Move IOU_SWITCH_DIVISOR0 to Kconfig

2019-02-05 Thread Michal Simek
Move hardcoded IOU_SWITCH_DIVISOR0 to Kconfig to be able to set it up for different platforms. Signed-off-by: Michal Simek --- arch/arm/mach-versal/Kconfig | 6 ++ board/xilinx/versal/board.c | 5 - 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-versal/Kco

[U-Boot] [PATCH 2/6] arm64: versal: Define distro boot commnads for qspi ospi and mmc

2019-02-05 Thread Michal Simek
From: Siva Durga Prasad Paladugu This patch adds distro boot commands for qspi, ospi and mmc. The distro boot commands now reads the script from flash offset of 63.5MB for qspi and ospi and executes it. For mmc its same as generic distro boot command. As either one of the qspi or ospi can exist

[U-Boot] [PATCH 6/6] arm64: versal: Add mini configuration for Versal

2019-02-05 Thread Michal Simek
From: Siva Durga Prasad Paladugu This patch adds new mini target for versal. This configuration is very minimal in size which runs from OCM. It contains support for mtest which can be used for running DDR memory tests. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek ---

[U-Boot] [PATCH 3/6] arm64: versal: Define board_late_init for versal

2019-02-05 Thread Michal Simek
From: Siva Durga Prasad Paladugu Define board_late_init which performs bootmode detection and prepares corresponding distro boot commaand sequence. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- arch/arm/Kconfig | 1 + arch/arm/mach-ve

[U-Boot] [PATCH v2 1/7] ARM: zynq: Convert Syzygy to DM_I2C

2019-02-05 Thread Michal Simek
Boards have only one controller enabled that's why move to DM_I2C is easy. Add also i2c alias for not to be shown as i2c bus -1 because alias doesn't exist. Config file points to MAC stored in eeprom but it is not listed that's why I have added 24c08 part. Signed-off-by: Michal Simek --- Changes

[U-Boot] [PATCH v2 2/7] ARM: zynq: Convert dlc20 and zc70x board to DM_I2C

2019-02-05 Thread Michal Simek
All these board have also eeprom enabled that's why it is also enabled via defconfig. There is also no need to have zc70x specific config file that's why also remove it. Signed-off-by: Michal Simek --- Changes in v2: None configs/zynq_dlc20_rev1_0_defconfig | 9 ++--- configs/zynq_zc702_d

[U-Boot] [PATCH v2 4/7] arm64: zynqmp: Switch all platfroms to DM_I2C

2019-02-05 Thread Michal Simek
CONFIG_PCA953X is not needed because of PCA953X is integrated in gpio subsystem already. That's why also remove CMD_PCA953X which is only for this driver. zcu102/zcu104-revC/zcu106/zcu111 contain links to eeprom which stores MAC address. DM_I2C is not enabled for the whole SoC because it increas

[U-Boot] [PATCH v2 5/7] arm64: zynqmp: Remove addresses for i2c controllers

2019-02-05 Thread Michal Simek
All platforms have been converted to DM that's why there is no reason to keep addresses in headers. They are all read from DT now. Signed-off-by: Michal Simek --- Changes in v2: None arch/arm/mach-zynqmp/include/mach/hardware.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/mac

[U-Boot] [PATCH v2 6/7] i2c: Remove ancient zynq_i2c driver

2019-02-05 Thread Michal Simek
This driver is replaced by drivers/i2c/i2c-cdns.c DM based driver. Signed-off-by: Michal Simek --- Changes in v2: None README | 5 - drivers/i2c/Kconfig| 33 -- drivers/i2c/Makefile | 1 - drivers/i2c/zynq_i2c.c | 313 -

[U-Boot] [PATCH v2 3/7] ARM: zynq: Remove addresses for i2c controllers

2019-02-05 Thread Michal Simek
All platforms have been converted to DM that's why there is no reason to keep addresses in headers. They are all read from DT now. Signed-off-by: Michal Simek --- Changes in v2: None arch/arm/mach-zynq/include/mach/hardware.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/mach-z

[U-Boot] [PATCH v2 7/7] xilinx: common: Remove !DM_i2C code for reading mac from eeprom

2019-02-05 Thread Michal Simek
All platforms are converted to DM_I2C that's why there is no reason to keep this code here. Signed-off-by: Michal Simek --- Changes in v2: - Add dependency board/xilinx/common/board.c | 19 --- configs/zynq_zybo_defconfig | 1 - drivers/misc/Kconfig| 1 + 3 files chan

Re: [U-Boot] [PATCH v2 1/2] fs: fat: dynamically allocate memory for temporary buffer

2019-02-05 Thread Marek Vasut
On 2/1/19 4:20 PM, Chee, Tien Fong wrote: > On Fri, 2019-02-01 at 09:19 +0100, Marek Vasut wrote: >> On 2/1/19 9:11 AM, Chee, Tien Fong wrote: >>> >>> On Thu, 2019-01-31 at 15:22 +0100, Marek Vasut wrote: On 1/31/19 1:42 PM, tien.fong.c...@intel.com wrote: > > > From: Tien Fon

Re: [U-Boot] [PATCH v7 3/7] ARM: socfpga: Add FPGA drivers for Arria 10 FPGA bitstream loading

2019-02-05 Thread Marek Vasut
On 2/2/19 4:27 AM, Chee, Tien Fong wrote: > On Fri, 2019-02-01 at 12:12 -0800, Dalon L Westergreen wrote: >> On Thu, 2019-01-31 at 22:51 +0800, tien.fong.c...@intel.com wrote: >>> >>> From: Tien Fong Chee >>> >>> Add FPGA driver to support program FPGA with FPGA bitstream loading >>> from >>> file

Re: [U-Boot] [PATCH v7 1/7] ARM: socfpga: Description on FPGA bitstream type and file name for Arria 10

2019-02-05 Thread Marek Vasut
On 2/1/19 5:02 PM, Chee, Tien Fong wrote: > On Fri, 2019-02-01 at 09:25 +0100, Marek Vasut wrote: >> On 2/1/19 4:48 AM, Chee, Tien Fong wrote: >>> >>> On Thu, 2019-01-31 at 15:54 +0100, Marek Vasut wrote: On 1/31/19 3:51 PM, tien.fong.c...@intel.com wrote: > > > From: Tien Fon

Re: [U-Boot] [PATCH v7 2/7] ARM: socfpga: Add default FPGA bitstream fitImage for Arria10 SoCDK

2019-02-05 Thread Marek Vasut
On 2/1/19 5:50 PM, Chee, Tien Fong wrote: > On Fri, 2019-02-01 at 09:29 +0100, Marek Vasut wrote: >> On 2/1/19 4:59 AM, Chee, Tien Fong wrote: >>> >>> On Thu, 2019-01-31 at 15:54 +0100, Marek Vasut wrote: On 1/31/19 3:51 PM, tien.fong.c...@intel.com wrote: > > > From: Tien Fon

Re: [U-Boot] [PATCH 1/2] fdt: Allow indicating a node is for U-Boot proper only

2019-02-05 Thread Marek Vasut
On 2/4/19 3:40 PM, Simon Glass wrote: > On Mon, 4 Feb 2019 at 03:15, Patrick Delaunay wrote: >> >> This add missing parts for previous commit 06f94461a9f4 >> ("fdt: Allow indicating a node is for U-Boot proper only") >> >> At present it is not possible to specify that a node should be used before

[U-Boot] [PATCH] MAINTAINERS: update u-boot-atmel tree

2019-02-05 Thread Eugen.Hristev
From: Eugen Hristev Update Atmel AT91 maintainership Signed-off-by: Eugen Hristev --- MAINTAINERS | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index e3a1586..d32851e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -113,12 +113,6 @@ F

Re: [U-Boot] [U-Boot, v2, 7/9] rockchip: defconfig: Clean the unused pinctrl config

2019-02-05 Thread Philipp Tomsich
Emmanuel, Thanks for the heads-up. The follow-on PR is already on the list (+ an additional patch to include these in .gitignore). Thanks, Phil. > On 05.02.2019, at 11:49, Emmanuel Vadot wrote: > > > Hi Philipp, > > On Thu, 31 Jan 2019 22:12:36 +0100 > Philipp Tomsich wrote: > >>> If we u

[U-Boot] [PATCH] rockchip: make_fit_atf: Use BL31 environ variable for file location

2019-02-05 Thread Emmanuel Vadot
Other make_fit script (like imx or sunxi) use the BL31 environment variable to indicate the location of the file. Also do that for rockchip so we don't need to copy the file in the source directory. Signed-off-by: Emmanuel Vadot --- arch/arm/mach-rockchip/make_fit_atf.py | 2 +- 1 file changed,

Re: [U-Boot] [PATCH] rockchip: make_fit_atf: Use BL31 environ variable for file location

2019-02-05 Thread Philipp Tomsich
> On 05.02.2019, at 11:54, Emmanuel Vadot wrote: > > Other make_fit script (like imx or sunxi) use the BL31 environment > variable to indicate the location of the file. > Also do that for rockchip so we don't need to copy the file in the source > directory. > > Signed-off-by: Emmanuel Vadot >

Re: [U-Boot] [PATCH] MAINTAINERS: update u-boot-atmel tree

2019-02-05 Thread Nicolas.Ferre
On 05/02/2019 at 11:20, Eugen Hristev - M18282 wrote: > From: Eugen Hristev > > Update Atmel AT91 maintainership > > Signed-off-by: Eugen Hristev > --- > MAINTAINERS | 13 +++-- > 1 file changed, 7 insertions(+), 6 deletions(-) > > diff --git a/MAINTAINERS b/MAINTAINERS > index e3a1

[U-Boot] [PATCH v1] x86: tangier: Add initial ACPI support for PMIC device

2019-02-05 Thread Andy Shevchenko
Basin Cove PMIC is connected to I2C0 bus which is hidden from the OS and access is going via SCU device, enumerated via PCI. For now, we add just a minimum support of PMIC device to allow enabling, e.g. USB OTG, in the OS. Signed-off-by: Andy Shevchenko --- .../asm/arch-tangier/acpi/southcluste

Re: [U-Boot] [PATCH] rockchip: make_fit_atf: Use BL31 environ variable for file location

2019-02-05 Thread Philipp Tomsich
> On 05.02.2019, at 12:14, Emmanuel Vadot wrote: > > On Tue, 5 Feb 2019 12:05:57 +0100 > Philipp Tomsich wrote: > >> >> >>> On 05.02.2019, at 11:54, Emmanuel Vadot wrote: >>> >>> Other make_fit script (like imx or sunxi) use the BL31 environment >>> variable to indicate the location of th

Re: [U-Boot] [PATCH 04/11] net: macb: Fix clk API usage for RISC-V systems

2019-02-05 Thread Anup Patel
> -Original Message- > From: Simon Glass [mailto:s...@chromium.org] > Sent: Thursday, January 31, 2019 3:34 PM > To: Alexander Graf > Cc: Anup Patel ; Rick Chen ; > Bin Meng ; Joe Hershberger > ; Lukas Auer ; > Masahiro Yamada ; Palmer Dabbelt > ; Paul Walmsley ; Atish > Patra ; Christop

Re: [U-Boot] [PATCH 1/3] x86: Change 4-level page table base address to low memory

2019-02-05 Thread Heinrich Schuchardt
On 2/2/19 7:06 AM, Simon Glass wrote: > On Thu, 31 Jan 2019 at 09:17, Bin Meng wrote: >> >> At present the 4-level page table base address for 64-bit U-Boot >> proper is assigned an address that conflicts with CONFIG_LOADADDR. >> Change it to an address within the low memory range instead. >> >> F

[U-Boot] [PATCH v4 0/7] AM65x: Add DMA support

2019-02-05 Thread Vignesh R
This series adds DMA support for TI's AM654 SoC. v4: Convert debug prints to pr_debug()s Collect R-bs v3: Minor comment/whitespace cleanups as pointed out by Tom Rini v2: Align DT bindings with latest proposed bindings as pointed out by Peter. Merge drivers/soc/keystone into drivers/soc/ti Back

[U-Boot] [PATCH v4 3/7] soc: ti: k3: add CPPI5 description and helpers

2019-02-05 Thread Vignesh R
From: Grygorii Strashko Add TI Communications Port Programming Interface (CPPI) 5 interface description and helpers Signed-off-by: Grygorii Strashko Signed-off-by: Vignesh R Reviewed-by: Tom Rini --- include/linux/soc/ti/cppi5.h | 995 +++ 1 file changed, 995

[U-Boot] [PATCH v4 2/7] soc: ti: k3: add navss ringacc driver

2019-02-05 Thread Vignesh R
From: Grygorii Strashko The Ring Accelerator (RINGACC or RA) provides hardware acceleration to enable straightforward passing of work between a producer and a consumer. There is one RINGACC module per NAVSS on TI AM65x SoCs. The RINGACC converts constant-address read and write accesses to equiva

[U-Boot] [PATCH v4 1/7] firmware: ti_sci: Add support for NAVSS resource management

2019-02-05 Thread Vignesh R
From: Grygorii Strashko Texas Instruments' System Control Interface (TI-SCI) Message Protocol abstracts management of NAVSS resources, like PSI-L pairing and unpairing, UDMAP tx/rx/flow configuration and Rings. This patch adds support for requesting and configuring such resources from TI-SCI fir

[U-Boot] [PATCH v4 4/7] dma: ti: add driver to K3 UDMA

2019-02-05 Thread Vignesh R
The UDMA-P is intended to perform similar (but significantly upgraded) functions as the packet-oriented DMA used on previous SoC devices. The UDMA-P module supports the transmission and reception of various packet types. The UDMA-P also supports acting as both a UTC and UDMA-C for its internal chan

[U-Boot] [PATCH v4 6/7] arm64: dts: ti: k3-am65: add mcu navss nodes

2019-02-05 Thread Vignesh R
From: Grygorii Strashko Add DT node for MCU NAVSS its components to get DMA working on AM654 SoC. Signed-off-by: Grygorii Strashko Signed-off-by: Vignesh R Reviewed-by: Tom Rini --- arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 47 1 file changed, 47 insertions(+) diff

[U-Boot] [PATCH v4 5/7] soc: keystone: Merge into ti specific directory

2019-02-05 Thread Vignesh R
Merge drivers/soc/keystone/ into drivers/soc/ti/ and convert CONFIG_TI_KEYSTONE_SERDES into Kconfig. Signed-off-by: Vignesh R Reviewed-by: Tom Rini --- arch/arm/mach-keystone/Kconfig | 8 drivers/soc/Makefile | 1 - drivers/soc/keystone/Makefil

[U-Boot] [PATCH v4 7/7] configs: am65x_evm_a53: Enable DMA related configs

2019-02-05 Thread Vignesh R
From: Grygorii Strashko Enable TI K3 AM65x PSI-L, Ring Accelerator and UDMA drivers Signed-off-by: Grygorii Strashko Signed-off-by: Vignesh R Reviewed-by: Tom Rini --- configs/am65x_evm_a53_defconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configs/am65x_evm_a53

Re: [U-Boot] [PATCH v2 11/11] riscv: Add SiFive FU540 board support

2019-02-05 Thread Anup Patel
On Mon, Feb 4, 2019 at 6:40 PM Andreas Schwab wrote: > > On Feb 04 2019, Atish Patra wrote: > > > Probably your cross compilation is not set. Can you try this ? > > > > export ARCH=riscv > > export CROSS_COMPILE= > > There is no cross compile prefix. > The OpenSBI build is similar to Linux and

[U-Boot] eMMC boot partition possible with an eMMC 4.2 controller ?

2019-02-05 Thread Joakim Tjernlund
Trying to figure out if it will be possible to boot u-boot from an eMMC boot partition using an eMMC 4.2 controller(eMMC boot part. was introduced in 4.3) ? I know this might not be the best list to ask this but I have been unable to find this out using Google and I hope there is someone here th

[U-Boot] [PATCH] imx8qxp: Fix the reported CPU frequency

2019-02-05 Thread Fabio Estevam
Currently the CPU frequency is incorrectly reported: CPU: NXP i.MX8QXP RevB A35 at 147228 MHz Fix this problem by using a direct call to the SCU firmware to retrieve the Cortex A35 CPU frequency. With this change applied the CPU frequency is displayed correctly: CPU: NXP i.MX8QXP RevB A35 a

Re: [U-Boot] [PATCH v2 11/11] riscv: Add SiFive FU540 board support

2019-02-05 Thread Andreas Schwab
On Feb 05 2019, Anup Patel wrote: > The OpenSBI build is similar to Linux and U-Boot. We expect > CROSS_COMPILE environment variable to be set. Why? That doesn't make sense. > Example, if you cross-compiler I don't have a cross compiler. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.d

Re: [U-Boot] [PATCH v2 07/11] clk: Add fixed-factor clock driver

2019-02-05 Thread Anup Patel
> -Original Message- > From: Simon Glass [mailto:s...@chromium.org] > Sent: Thursday, January 31, 2019 3:34 PM > To: Anup Patel > Cc: Rick Chen ; Bin Meng ; > Joe Hershberger ; Lukas Auer > ; Masahiro Yamada > ; Alexander Graf ; > Palmer Dabbelt ; Paul Walmsley > ; Atish Patra ; > Christ

Re: [U-Boot] [PATCH v2 11/11] riscv: Add SiFive FU540 board support

2019-02-05 Thread Anup Patel
On Tue, Feb 5, 2019 at 6:21 PM Andreas Schwab wrote: > > On Feb 05 2019, Anup Patel wrote: > > > The OpenSBI build is similar to Linux and U-Boot. We expect > > CROSS_COMPILE environment variable to be set. > > Why? That doesn't make sense. Use of CROSS_COMPILE environment variable is pretty co

[U-Boot] [PATCH v5 00/15] SiFive FU540 Support

2019-02-05 Thread Anup Patel
This patchset adds SiFive Freedom Unleashed (FU540) support to RISC-V U-Boot. The patches are based upon latest RISC-V U-Boot tree (git://git.denx.de/u-boot-riscv.git) at commit id 91882c472d8c0aef4db699d3f2de55bf43d4ae4b All drivers namely: SiFive PRCI, SiFive Serial, and Cadance MACB Ethernet w

[U-Boot] [PATCH v5 01/15] .gitignore: Don't ignore arch/riscv/include/asm/arch

2019-02-05 Thread Anup Patel
We will be adding place-holder headers under include/asm/arch for RISC-V so this patch updates .gitignore to not consider files under arch/riscv/include/asm/arch Signed-off-by: Anup Patel --- arch/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/.gitignore b/arch/.gitignore in

[U-Boot] [PATCH v5 02/15] Makefile: Fix mrproper make target

2019-02-05 Thread Anup Patel
Currently, the mrproper make target tries to force remove all "arch/*/include/asm/arch" paths assuming they are symlinks but this prevents us from adding place-holder headers under the arch/riscv/include/asm/arch directory. To solve this, we fix mrproper make target to only remove "arch/*/include/

[U-Boot] [PATCH v5 03/15] riscv: Rename cpu/qemu to cpu/generic

2019-02-05 Thread Anup Patel
The QEMU CPU support under arch/riscv is pretty much generic and works fine for SiFive Unleashed as well. In fact, there will be quite a few RISC-V SOCs for which QEMU CPU support will work fine. This patch renames cpu/qemu to cpu/generic to indicate the above fact. If there are SOC specific errat

[U-Boot] [PATCH v5 05/15] riscv: Add place-holder asm/arch/clk.h for driver compilation

2019-02-05 Thread Anup Patel
Some of the drivers expect asm/arch/clk.h to be provided by arch support code so we add place-holder asm/arch/clk.h for RISC-V support. Signed-off-by: Anup Patel --- arch/riscv/include/asm/arch/clk.h | 14 ++ 1 file changed, 14 insertions(+) create mode 100644 arch/riscv/include/asm

[U-Boot] [PATCH v5 09/15] clk: Add SiFive FU540 PRCI clock driver

2019-02-05 Thread Anup Patel
Add driver code for the SiFive FU540 PRCI IP block. This IP block handles reset and clock control for the SiFive FU540 device and implements SoC-level clock tree controls and dividers. Based on code written by Wesley Terpstra found in commit 999529edf517ed75b56659d456d221b2ee56bb60 of: https://g

[U-Boot] [PATCH v5 06/15] riscv: generic: Ensure that U-Boot runs within 4GB for 64bit systems

2019-02-05 Thread Anup Patel
On 64bit systems, the DRAM top can be easily beyond 4GB and U-Boot DMA mapping APIs will generate DMA addresses beyond 4GB. This breaks DMA programming in 32bit DMA capable devices (such as Cadence MACB ethernet). For example, If DRAM is more then 2GB on QEMU sifive_u machine then Cadence MACB ethe

[U-Boot] [PATCH v5 04/15] riscv: Add asm/dma-mapping.h for DMA mappings

2019-02-05 Thread Anup Patel
This patch adds asm/dma-mapping.h for Linux-like DMA mappings APIs required by some of the drivers (such as, Cadance MACB Ethernet driver). Signed-off-by: Anup Patel Reviewed-by: Bin Meng Reviewed-by: Alexander Graf Reviewed-by: Lukas Auer --- arch/riscv/include/asm/dma-mapping.h | 38 +++

[U-Boot] [PATCH v5 12/15] drivers: serial_sifive: Skip baudrate config if no input clock

2019-02-05 Thread Anup Patel
From: Atish Patra It is possible that input clock is not available because clk device was not available and 'clock-frequency' DT property is also not available. In this case, instead of failing we should just skip baudrate config by returning zero. Signed-off-by: Atish Patra Signed-off-by: Anu

[U-Boot] [PATCH v5 11/15] drivers: serial_sifive: Fix baud rate calculation

2019-02-05 Thread Anup Patel
From: Atish Patra Compute the baud rate multipler with more precision. Signed-off-by: Atish Patra Signed-off-by: Anup Patel Reviewed-by: Alexander Graf Reviewed-by: Lukas Auer --- drivers/serial/serial_sifive.c | 28 ++-- 1 file changed, 26 insertions(+), 2 deletions

[U-Boot] [PATCH v5 07/15] net: macb: Fix clk API usage for RISC-V systems

2019-02-05 Thread Anup Patel
Don't fail in macb_enable_clk() if clk_enable() returns -ENOSYS because we get -ENOSYS for fixed-rate clocks. Signed-off-by: Anup Patel Reviewed-by: Bin Meng --- drivers/net/macb.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/net/macb.c b/drivers/net/macb

[U-Boot] [PATCH v5 13/15] cpu: Bind timer driver for boot hart

2019-02-05 Thread Anup Patel
From: Atish Patra Currently, timer driver is bound only for hart0. There is no mandatory requirement that hart0 should always come up. In fact, HiFive Unleashed SoC hart0 doesn't boot in S-mode because it only has M-mode. The timer driver should be bound for boot hart. Signed-off-by: Atish Pat

[U-Boot] [PATCH v5 08/15] net: macb: Fix GEM hardware detection

2019-02-05 Thread Anup Patel
From: Atish Patra Fix MID bit field check to correctly identify all GEM hardwares. The check is updated as per macb driver in Linux location: /drivers/net/ethernet/cadence/macb_main.c:259 Signed-off-by: Atish Patra Signed-off-by: Anup Patel Reviewed-by: Alexander Graf Reviewed-by: Lukas Auer

[U-Boot] [PATCH v5 10/15] clk: Add fixed-factor clock driver

2019-02-05 Thread Anup Patel
This patch adds fixed-factor clock driver which derives clock rate by dividing (div) and multiplying (mult) fixed factors to a parent clock. Signed-off-by: Atish Patra Signed-off-by: Anup Patel --- arch/sandbox/dts/test.dts | 8 drivers/clk/Makefile | 4 +- drivers/clk/clk

[U-Boot] [PATCH v5 14/15] riscv: Add SiFive FU540 board support

2019-02-05 Thread Anup Patel
This patch adds SiFive FU540 board support. For now, only SiFive serial, SiFive PRCI, and Cadance MACB drivers are only enabled. The SiFive FU540 defconfig by default builds U-Boot for S-Mode because U-Boot on SiFive FU540 will run in S-Mode as payload of BBL or OpenSBI. Signed-off-by: Atish Patra

[U-Boot] [PATCH v5 15/15] doc: Add a readme guide for SiFive FU540

2019-02-05 Thread Anup Patel
From: Atish Patra The readme guide describes the procedure to build, flash and boot Linux using U-boot on HiFive Unleashed. It also explains the current state of U-boot support and future action items. Signed-off-by: Atish Patra Signed-off-by: Anup Patel --- doc/README.sifive-fu540 | 302

Re: [U-Boot] [PATCH v4] arm64: mvebu: Add basic support for uDPU board

2019-02-05 Thread Stefan Roese
On 28.01.19 17:27, Vladimir Vid wrote: This adds initial support for micro-DPU (uDPU) board which is based on Armada-3720 SoC. micro-DPU is the single-port FTTdp "distribution point unit" made by Methode Electronics which offers complete modularity with replaceable SFP modules both for uplink

Re: [U-Boot] [PATCH 1/4 v3] pci: Add pci_get_devfn() to extract devfn from the fdt_pci_addr

2019-02-05 Thread Stefan Roese
On 31.01.19 11:04, Simon Glass wrote: On Fri, 25 Jan 2019 at 03:52, Stefan Roese wrote: This function will be used by the Marvell Armada XP/38x PCIe driver, which is moved to DM right now. So let's extract the functionality from pci_uclass_child_post_bind() to make it available. Signed-off-by

Re: [U-Boot] [PATCH 2/4 v3] pci: pci_mvebu: Add DM_PCI support and move CONFIG_PCI_MVEBU to defconfig

2019-02-05 Thread Stefan Roese
On 25.01.19 11:52, Stefan Roese wrote: This patch adds DM_PCI support to the MVEBU PCIe driver. This is necessary, since all PCI drivers have to be moved to DM (driver model) until the v2019.07 release. To not break git bisect'ablility, this patch also moves CONFIG_PCI_MVEBU from config headers

Re: [U-Boot] [PATCH 3/4 v3] arm: mvebu: armada-xp/37x.dtsi: Sync PCIe DT nodes with Linux v4.20

2019-02-05 Thread Stefan Roese
On 25.01.19 11:52, Stefan Roese wrote: This patch sync's the PCIe DT nodes with the recent Linux v4.20 version. This change makes it easier to reference specific PCIe nodes in the board dts files to e.g. enable a PCIe port as this is now necessary with the new DM PCI driver for these platforms.

Re: [U-Boot] [PATCH 4/4 v3] arm: mvebu: armada-xp-theadorable.dts: Enable PCIe DT nodes

2019-02-05 Thread Stefan Roese
On 25.01.19 11:52, Stefan Roese wrote: Now that the PCIe driver supports DM and DT parsing, enable the PCIe DT nodes that are used by this board. Signed-off-by: Stefan Roese Cc: Dirk Eibach Cc: Mario Six Cc: Chris Packham Cc: Phil Sutter Cc: Marek Behún Cc: VlaoMao Applied to u-boot-mar

Re: [U-Boot] [PATCH v2] video: Armada XP: Move driver to DM_VIDEO

2019-02-05 Thread Stefan Roese
On 30.01.19 09:02, Anatolij Gustschin wrote: On Wed, 30 Jan 2019 08:54:11 +0100 Stefan Roese s...@denx.de wrote: This patch moves the Armada XP video / LCD driver to DM_VIDEO. With this move, the legacy interface board_video_init() is removed from the theadorable board code (only user of this v

Re: [U-Boot] [PATCH v2] arm: mvebu: theadorable: Enable video / LCD support with the new DM driver

2019-02-05 Thread Stefan Roese
On 30.01.19 09:09, Anatolij Gustschin wrote: On Wed, 30 Jan 2019 08:54:13 +0100 Stefan Roese s...@denx.de wrote: With the new DM_VIDEO support in the Armada XP LCD driver, this patch adds the needed DT node for the LCD controller to the theadorable dts file. This DT property is not added to the

[U-Boot] Please pull u-boot-marvell/master

2019-02-05 Thread Stefan Roese
Hi Tom, please pull the following Marvell related patches, mostly dealing with the move to driver model (DM_VIDEO & DM_PCI) for the MVEBU Armada XP / 38x platforms: - Move Armada XP / 38x PCIe driver to DM_PCI from me - Move Armada

Re: [U-Boot] [PATCH v2 11/11] riscv: Add SiFive FU540 board support

2019-02-05 Thread Andreas Schwab
On Feb 05 2019, Anup Patel wrote: > Okay, if you are doing native compilation then > make sure CROSS_COMPILE is not set so that > makefile will take native compiler instead of > cross-compiler. AS-DEPplatform/sifive/fu540/firmware/fw_payload.dep /bin/sh: -g: command not found Andreas. --

Re: [U-Boot] [PATCH] test: fs: Add filesystem integrity checks

2019-02-05 Thread Tom Rini
On Mon, Feb 04, 2019 at 12:19:19PM +0100, Jean-Jacques Hiblot wrote: > We need to make sure that file writes,file creation, etc. are properly > performed and do not corrupt the filesystem. > To help with this, introduce the assert_fs_integrity() function that > executes the appropriate fsck tool. I

[U-Boot] [PATCH] configs: tbs_a711: lower dram frequency

2019-02-05 Thread Tomas Novotny
The dram chip on the tablet was changed. The new one requires a lower frequency, so change it. Frequency 564 was also stable in the tests, but use slightly lower one to be on a safe side. Signed-off-by: Tomas Novotny --- configs/tbs_a711_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 delet

[U-Boot] [PATCH v2 00/13] Add Support for eMMC in AM65x-evm

2019-02-05 Thread Faiz Abbas
Add Support for eMMC in TI's AM65x-evm. The series starts by syncing the sdhci0 node from the kernel. Then it adds APIs and changes to the driver required for handling the driver's integrated phy. The current maximum supported speed is DDR52. Higher speeds and tuning support will be added in a subs

[U-Boot] [PATCH v2 02/13] mmc: am654_mmc: Change driver name

2019-02-05 Thread Faiz Abbas
This driver works with the sdhci controller present on TI's AM65x devices. Change the name to make this clearer and match the compatible with kernel. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- configs/am65x_evm_a53_defconfig | 2 +- configs/am65x_evm_r5_defconfig

[U-Boot] [PATCH v2 01/13] arm64: dts: k3: Sync sdhci0 node from kernel

2019-02-05 Thread Faiz Abbas
Sync the sdhci0 node from kernel. This changes the compatible that is required to be there in the driver. Change the same for the SD card node which is not yet supported in kernel. Also sync the main_pmx0 node as a side effect. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- arch/arm/dts/k

[U-Boot] [PATCH v2 05/13] regmap: Add support for polling on a register

2019-02-05 Thread Faiz Abbas
Add an API to continuously read a register until a condition is satisfied or a timeout occurs. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- include/regmap.h | 34 ++ 1 file changed, 34 insertions(+) diff --git a/include/regmap.h b/include/regmap.h index 3

[U-Boot] [PATCH v2 03/13] mmc: am654_sdhci: Remove quirks

2019-02-05 Thread Faiz Abbas
The host controller works perfectly well without having to add any quirks. Remove them. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers/mmc/am654_sdhci.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c index 3afdb58293..699

[U-Boot] [PATCH v2 09/13] mmc: sdhci: Make set_ios_post() return int

2019-02-05 Thread Faiz Abbas
Make set_ios_post() return int to faciliate error handling in platform drivers. Signed-off-by: Faiz Abbas --- drivers/mmc/sdhci.c | 8 ++-- drivers/mmc/xenon_sdhci.c | 4 +++- include/sdhci.h | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/

[U-Boot] [PATCH v2 07/13] mmc: sdhci: Make sdhci_set_clock() non static

2019-02-05 Thread Faiz Abbas
The am654_sdhci driver needs to switch the clock off before disabling its phy dll and needs to re-enable the clock before enabling the phy again. Therefore, make the sdhci_set_clock() function accessible in the am654_sdhci driver. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers/mmc

[U-Boot] [PATCH v2 06/13] mmc: sdhci: Add support for sdhci-caps-mask

2019-02-05 Thread Faiz Abbas
Add Support for masking some bits in the capabilities register of a host controller. Also remove the redundant readl() into caps1. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers/mmc/sdhci.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/driver

[U-Boot] [PATCH v2 08/13] arm: dts: k3: Add phy specific properties to SD card node

2019-02-05 Thread Faiz Abbas
With changes in the driver requiring phy related properties, add the same for the SD card node to prevent breaking boot with the driver update. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a

[U-Boot] [PATCH v2 11/13] configs: am65x_evm: Enable CONFIG_REGMAP

2019-02-05 Thread Faiz Abbas
Add Support for CONFIG_REGMAP. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- configs/am65x_evm_a53_defconfig | 2 ++ configs/am65x_evm_r5_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configs/am65x_evm_a53_defconfig b/configs/am65x_evm_a53_defconfig index 6db3dac4c7..8

[U-Boot] [PATCH v2 04/13] regmap: Add API regmap_init_mem_index()

2019-02-05 Thread Faiz Abbas
In device nodes with more than one entry in the reg property, it is sometimes useful to regmap only of the entries. Add an API regmap_init_mem_index() to facilitate this. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers/core/regmap.c | 42 ++ i

[U-Boot] [PATCH v2 13/13] mmc: am654_sdhci: Add a platform specific set_control_reg() callback

2019-02-05 Thread Faiz Abbas
From: Faiz Abbas Add a platform specific set_control_reg() callback to help switch to UHS speed modes. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers/mmc/am654_sdhci.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/am654_sdhci.c

[U-Boot] [PATCH v2 10/13] mmc: am654_sdhci: Add Support for PHY

2019-02-05 Thread Faiz Abbas
Add support in the driver for handling phy specific registers. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers/mmc/Kconfig | 1 + drivers/mmc/am654_sdhci.c | 224 +- 2 files changed, 222 insertions(+), 3 deletions(-) diff --git a/drivers/

[U-Boot] [PATCH v2 12/13] mmc: sdhci: Add support for HOST_CONTROL2 and setting UHS timings

2019-02-05 Thread Faiz Abbas
From: Faiz Abbas The HOST_CONTROL2 register is a part of SDHC v3.00 and not just specific to arasan/zynq controllers. Add the same to sdhci.h. Also create a common API to set UHS timings in HOST_CONTROL2. Signed-off-by: Faiz Abbas --- drivers/mmc/sdhci.c | 28

Re: [U-Boot] [PATCH v2 11/11] riscv: Add SiFive FU540 board support

2019-02-05 Thread Anup Patel
On Tue, Feb 5, 2019 at 7:10 PM Andreas Schwab wrote: > > On Feb 05 2019, Anup Patel wrote: > > > Okay, if you are doing native compilation then > > make sure CROSS_COMPILE is not set so that > > makefile will take native compiler instead of > > cross-compiler. > > AS-DEPplatform/sifive/fu540

Re: [U-Boot] [PATCH v2 11/11] riscv: Add SiFive FU540 board support

2019-02-05 Thread Andreas Schwab
mkdir -p `dirname /net/hawking/daten/src/riscv/opensbi/build/platform/sifive/fu540/firmware/fw_payload.dep`; echo " AS-DEPplatform/sifive/fu540/firmware/fw_payload.dep"; echo -n `dirname /net/hawking/daten/src/riscv/opensbi/build/platform/sifive/fu540/firmware/fw_payload.dep`/ > /net/hawk

Re: [U-Boot] [PATCH v2 11/11] riscv: Add SiFive FU540 board support

2019-02-05 Thread Anup Patel
On Tue, Feb 5, 2019 at 8:09 PM Andreas Schwab wrote: > > mkdir -p `dirname > /net/hawking/daten/src/riscv/opensbi/build/platform/sifive/fu540/firmware/fw_payload.dep`; > echo " AS-DEPplatform/sifive/fu540/firmware/fw_payload.dep"; echo -n > `dirname > /net/hawking/daten/src/riscv/opensbi/b

Re: [U-Boot] [PATCH] test: fs: Add filesystem integrity checks

2019-02-05 Thread Jean-Jacques Hiblot
On 05/02/2019 14:45, Tom Rini wrote: On Mon, Feb 04, 2019 at 12:19:19PM +0100, Jean-Jacques Hiblot wrote: We need to make sure that file writes,file creation, etc. are properly performed and do not corrupt the filesystem. To help with this, introduce the assert_fs_integrity() function that exec

Re: [U-Boot] [PATCH v2 11/11] riscv: Add SiFive FU540 board support

2019-02-05 Thread Andreas Schwab
On Feb 05 2019, Anup Patel wrote: > Ahh, looks like it is not picking up "CC" set by Makefile. This might > be because you have removed "-R" from MAKEFLAGS. Nope. That fixed it. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88

Re: [U-Boot] [PATCH v2 11/11] riscv: Add SiFive FU540 board support

2019-02-05 Thread Anup Patel
On Tue, Feb 5, 2019 at 8:30 PM Andreas Schwab wrote: > > On Feb 05 2019, Anup Patel wrote: > > > Ahh, looks like it is not picking up "CC" set by Makefile. This might > > be because you have removed "-R" from MAKEFLAGS. > > Nope. That fixed it. Cool, I had already approved your PR on OpenSBI Gi

  1   2   >