Re: [U-Boot] [PATCH v3] qemu-x86: Use config_distro_bootcmd

2019-07-16 Thread Bin Meng
On Thu, Jul 4, 2019 at 1:46 AM Joshua Watt wrote: > > Converts qemu x86 machines to boot using distro_config. The intent is to > allow u-boot in qemu to be maximally compatible with many boot methods > without having to change the config. Previously, u-boot would only boot > in a very limited set

Re: [U-Boot] [PATCH 2/3] pico-imx7d: Support distro boot for FIT image case

2019-07-16 Thread Joris OFFOUGA
Hi Jun, Le mar. 16 juil. 2019 à 09:48, Jun Nie a écrit : > Support distro boot for pico imx7d in FIT image case. > > Signed-off-by: Jun Nie > --- > include/configs/pico-imx7d.h | 37 +++-- > 1 file changed, 11 insertions(+), 26 deletions(-) > > diff --git

Re: [U-Boot] [PATCH v5 0/4] SiFive SPI MMC Support

2019-07-16 Thread Anup Patel
On Wed, Jul 17, 2019 at 10:46 AM Jagan Teki wrote: > > On Wed, Jul 17, 2019 at 10:00 AM Anup Patel wrote: > > > > On Wed, Jul 17, 2019 at 9:38 AM Jagan Teki > > wrote: > > > > > > On Wed, Jul 17, 2019 at 9:20 AM Anup Patel wrote: > > > > > > > > This patchset adds: > > > > 1. SiFive SPI

Re: [U-Boot] [PATCH v5 1/4] mmc: mmc_spi: Use SPI_XFER_BEGIN and SPI_XFER_END flags

2019-07-16 Thread Jagan Teki
On Wed, Jul 17, 2019 at 9:40 AM Jagan Teki wrote: > > Hi Peng, > > On Wed, Jul 17, 2019 at 9:34 AM Jagan Teki wrote: > > > > On Wed, Jul 17, 2019 at 9:20 AM Anup Patel wrote: > > > > > > Most DM based SPI host controller drivers use SPI_XFER_BEGIN and > > > SPI_XFER_END flags to enable/disable

Re: [U-Boot] [PATCH v6 2/4] spi: Add SiFive SPI driver

2019-07-16 Thread Jagan Teki
On Wed, Jul 17, 2019 at 9:53 AM Anup Patel wrote: > > From: Bhargav Shah > > This patch adds SiFive SPI driver. The driver is 100% DM driver > and it determines input clock using clk framework. > > The SiFive SPI block is found on SiFive FU540 SOC and is used to > access flash and MMC devices on

Re: [U-Boot] [PATCH v5 0/4] SiFive SPI MMC Support

2019-07-16 Thread Jagan Teki
On Wed, Jul 17, 2019 at 10:00 AM Anup Patel wrote: > > On Wed, Jul 17, 2019 at 9:38 AM Jagan Teki wrote: > > > > On Wed, Jul 17, 2019 at 9:20 AM Anup Patel wrote: > > > > > > This patchset adds: > > > 1. SiFive SPI driver > > > 2. New MMC SPI driver based on DM_MMC and DM_SPI > > > 3. Enables

Re: [U-Boot] [RFC PATCH 9/9] doc: board: Add Intel Crown Bay board doc

2019-07-16 Thread Bin Meng
Hi Heinrich, On Wed, Jul 17, 2019 at 2:03 AM Heinrich Schuchardt wrote: > > On 7/16/19 6:42 PM, Bin Meng wrote: > > This extracts Intel Crown Bay board specific information from > > README.x86, converts plain text documentation to reST format and > > adds it to Sphinx TOC tree. No essential

[U-Boot] [PATCH v1] gpio: fixes for gpio-hog support

2019-07-16 Thread Heiko Schocher
recently added gpio hog patch was "in discussion" state with Simon Glass. This patch now adds most of comments from Simon Glass. Signed-off-by: Heiko Schocher --- clean travis build, see result: https://travis-ci.org/hsdenx/u-boot-test/builds/558774593 Based on mainline: 6070ef409c - Merge

[U-Boot] [PATCH v5 5/8] x86: slimbootloader: Set TSC information for timer driver

2019-07-16 Thread Park, Aiden
Slim Bootloader provides TSC clock information in its performance info hob. For now, TSC clock information is only used for timer driver from the performance info hob. - Get TSC frequency from performance info hob - Set tsc_base and clock_rate for timer driver Signed-off-by: Aiden Park

[U-Boot] [PATCH v5 6/8] x86: slimbootloader: Add a slimbootloader device tree

2019-07-16 Thread Park, Aiden
Add a new device tree which has very minimum nodes - x86 reset - x86 tsc_timer - x86 pci - Slim Bootloader serial Signed-off-by: Aiden Park Reviewed-by: Bin Meng --- Changes in v3: * Move slimbootloader.dtb before baytrail_som-db5800-som-6867.dtb arch/x86/dts/Makefile | 1 +

[U-Boot] [PATCH v5 8/8] x86: Skip setting up MTRRs in slimbootloader

2019-07-16 Thread Park, Aiden
The setting up MTRRs have already been done in previous Slim Bootloader stages. Signed-off-by: Aiden Park Reviewed-by: Bin Meng --- arch/x86/lib/init_helpers.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/lib/init_helpers.c b/arch/x86/lib/init_helpers.c index

[U-Boot] [PATCH v5 7/8] board: intel: Add new slimbootloader board

2019-07-16 Thread Park, Aiden
Add slimbootloader board to run U-boot as a Slim Bootloader payload - Add new board/intel/slimbootloader directory with minimum codes - Add slimbootloader configuration files - Add README in board/intel/slimbootloader Signed-off-by: Aiden Park Reviewed-by: Bin Meng --- Changes in v5: *

[U-Boot] [PATCH v5 3/8] x86: slimbootloader: Add memory configuration

2019-07-16 Thread Park, Aiden
Slim Bootloader provides memory map info thru its HOB list pointer. Configure memory size and relocation memory from the HOB data, and provide e820 entries as well. - Get memory size from the memory map info hob - Set ram top for U-Boot relocation lower than 4GB - Provide e820 entries from the

[U-Boot] [PATCH v5 4/8] x86: slimbootloader: Add serial driver

2019-07-16 Thread Park, Aiden
Slim Bootloader provides serial port info thru its HOB list pointer. All these HOBs are eligible for Slim Bootloader based board only. - Get serial port information from the serial port info hob - Leverage ns16550 driver with slimbootloader specific platform data Signed-off-by: Aiden Park

[U-Boot] [PATCH v5 1/8] x86: Add new slimbootloader CPU type

2019-07-16 Thread Park, Aiden
This slimbootloader cpu type is to enable U-Boot as a payload which runs on top of Slim Bootloader(https://github.com/slimbootloader). The Slim Bootloader is designed with multi-stage architecture for the execution from reset vector to OS booting, and supports qemu, Apollolake, Whiskeylake and

[U-Boot] [PATCH v5 2/8] x86: Add a common hob library

2019-07-16 Thread Park, Aiden
FSP(CONFIG_HAVE_FSP) and Slim Bootloader(CONFIG_SYS_SLIMBOOTLOADER) consume HOB data from the each HOB list pointer. Add a common hob library/header in lib/hob.c and include/asm/hob.h. Signed-off-by: Aiden Park Reviewed-by: Bin Meng --- Changes in v3: * Create a common HOB libary from

[U-Boot] [PATCH v5 0/8] x86: Add basic Slim Bootloader payload support

2019-07-16 Thread Park, Aiden
This patch is to enable U-Boot as a payload which runs on top of Slim Bootloader(https://github.com/slimbootloader/slimbootloader) boot firmware for x86 platforms. The Slim Bootloader is designed with multi-stage architecture for the execution from reset vector to OS hand-off, and supports

Re: [U-Boot] [PATCH v4] spl: kconfig: separate sysreset and firmware drivers from misc

2019-07-16 Thread Lokesh Vutla
On 17/07/19 12:59 AM, Simon Goldschmidt wrote: > This adds separate kconfig options for drivers/sysreset and > drivers/firmware. > > Up to now, CONFIG_SPL_DRIVERS_MISC_SUPPORT added drivers/misc to SPL > build but also added drivers/firmware and drivers/sysreset at the same > time. > > Since

Re: [U-Boot] [PATCH v5 0/4] SiFive SPI MMC Support

2019-07-16 Thread Anup Patel
On Wed, Jul 17, 2019 at 9:38 AM Jagan Teki wrote: > > On Wed, Jul 17, 2019 at 9:20 AM Anup Patel wrote: > > > > This patchset adds: > > 1. SiFive SPI driver > > 2. New MMC SPI driver based on DM_MMC and DM_SPI > > 3. Enables SiFive SPI driver and MMC SPI driver for SiFive Unleashed board > > > >

[U-Boot] [PATCH v6 3/4] riscv: sifive: fu540: Enable SiFive SPI and MMC SPI drivers

2019-07-16 Thread Anup Patel
From: Bhargav Shah This patch enables SiFive SPI and MMC SPI drivers for the SiFive Unleashed board. Signed-off-by: Bhargav Shah Signed-off-by: Anup Patel Reviewed-by: Bin Meng Tested-by: Bin Meng Reviewed-by: Jagan Teki --- board/sifive/fu540/Kconfig | 6 ++ 1 file changed, 6

[U-Boot] [PATCH v6 4/4] doc: sifive-fu540: Update README for SiFive SPI and MMC SPI drivers

2019-07-16 Thread Anup Patel
This patch removes SiFive SPI driver and MMC SPI drive from the TODO list in SiFive FU540 README. Signed-off-by: Anup Patel Reviewed-by: Bin Meng Tested-by: Bin Meng Reviewed-by: Jagan Teki --- doc/README.sifive-fu540 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

[U-Boot] [PATCH v6 2/4] spi: Add SiFive SPI driver

2019-07-16 Thread Anup Patel
From: Bhargav Shah This patch adds SiFive SPI driver. The driver is 100% DM driver and it determines input clock using clk framework. The SiFive SPI block is found on SiFive FU540 SOC and is used to access flash and MMC devices on SiFive Unleashed board. This driver implementation is inspired

[U-Boot] [PATCH v6 1/4] mmc: mmc_spi: Use SPI_XFER_BEGIN and SPI_XFER_END flags

2019-07-16 Thread Anup Patel
Most DM based SPI host controller drivers use SPI_XFER_BEGIN and SPI_XFER_END flags to enable/disable slave chip select. This patch extends MMC SPI driver to pass SPI_XFER_BEGIN flag when MMC command is send at start and pass SPI_XFER_END flag using a dummy transfer (of bitlen = 0) at the end of

[U-Boot] [PATCH v6 0/4] SiFive SPI MMC Support

2019-07-16 Thread Anup Patel
This patchset adds: 1. SiFive SPI driver 2. New MMC SPI driver based on DM_MMC and DM_SPI 3. Enables SiFive SPI driver and MMC SPI driver for SiFive Unleashed board With this patch series, we can now load files from SD card on SiFive Unleashed board. Many thanks to Bhargav for porting SiFive SPI

Re: [U-Boot] [PATCH v5 1/4] mmc: mmc_spi: Use SPI_XFER_BEGIN and SPI_XFER_END flags

2019-07-16 Thread Jagan Teki
Hi Peng, On Wed, Jul 17, 2019 at 9:34 AM Jagan Teki wrote: > > On Wed, Jul 17, 2019 at 9:20 AM Anup Patel wrote: > > > > Most DM based SPI host controller drivers use SPI_XFER_BEGIN and > > SPI_XFER_END flags to enable/disable slave chip select. > > > > This patch extends MMC SPI driver to pass

Re: [U-Boot] [PATCH v5 0/4] SiFive SPI MMC Support

2019-07-16 Thread Jagan Teki
On Wed, Jul 17, 2019 at 9:20 AM Anup Patel wrote: > > This patchset adds: > 1. SiFive SPI driver > 2. New MMC SPI driver based on DM_MMC and DM_SPI > 3. Enables SiFive SPI driver and MMC SPI driver for SiFive Unleashed board > > With this patch series, we can now load files from SD card on SiFive

Re: [U-Boot] [PATCH v5 2/4] spi: Add SiFive SPI driver

2019-07-16 Thread Anup Patel
On Wed, Jul 17, 2019 at 9:31 AM Jagan Teki wrote: > > On Wed, Jul 17, 2019 at 9:20 AM Anup Patel wrote: > > > > From: Bhargav Shah > > > > This patch adds SiFive SPI driver. The driver is 100% DM driver > > and it determines input clock using clk framework. > > > > The SiFive SPI block is found

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

2019-07-16 Thread Jagan Teki
On Wed, Jul 17, 2019 at 9:20 AM Anup Patel wrote: > > From: Bhargav Shah > > This patch enables SiFive SPI and MMC SPI drivers for the > SiFive Unleashed board. > > Signed-off-by: Bhargav Shah > Signed-off-by: Anup Patel > Reviewed-by: Bin Meng > Tested-by: Bin Meng > --- Reviewed-by: Jagan

Re: [U-Boot] [PATCH v5 1/4] mmc: mmc_spi: Use SPI_XFER_BEGIN and SPI_XFER_END flags

2019-07-16 Thread Jagan Teki
On Wed, Jul 17, 2019 at 9:20 AM Anup Patel wrote: > > Most DM based SPI host controller drivers use SPI_XFER_BEGIN and > SPI_XFER_END flags to enable/disable slave chip select. > > This patch extends MMC SPI driver to pass SPI_XFER_BEGIN flag when > MMC command is send at start and pass

Re: [U-Boot] [PATCH v5 2/4] spi: Add SiFive SPI driver

2019-07-16 Thread Jagan Teki
On Wed, Jul 17, 2019 at 9:20 AM Anup Patel wrote: > > From: Bhargav Shah > > This patch adds SiFive SPI driver. The driver is 100% DM driver > and it determines input clock using clk framework. > > The SiFive SPI block is found on SiFive FU540 SOC and is used to > access flash and MMC devices on

[U-Boot] [PATCH v5 3/4] riscv: sifive: fu540: Enable SiFive SPI and MMC SPI drivers

2019-07-16 Thread Anup Patel
From: Bhargav Shah This patch enables SiFive SPI and MMC SPI drivers for the SiFive Unleashed board. Signed-off-by: Bhargav Shah Signed-off-by: Anup Patel Reviewed-by: Bin Meng Tested-by: Bin Meng --- board/sifive/fu540/Kconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git

[U-Boot] [PATCH v5 4/4] doc: sifive-fu540: Update README for SiFive SPI and MMC SPI drivers

2019-07-16 Thread Anup Patel
This patch removes SiFive SPI driver and MMC SPI drive from the TODO list in SiFive FU540 README. Signed-off-by: Anup Patel Reviewed-by: Bin Meng Tested-by: Bin Meng --- doc/README.sifive-fu540 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/doc/README.sifive-fu540

[U-Boot] [PATCH v5 2/4] spi: Add SiFive SPI driver

2019-07-16 Thread Anup Patel
From: Bhargav Shah This patch adds SiFive SPI driver. The driver is 100% DM driver and it determines input clock using clk framework. The SiFive SPI block is found on SiFive FU540 SOC and is used to access flash and MMC devices on SiFive Unleashed board. This driver implementation is inspired

[U-Boot] [PATCH v5 0/4] SiFive SPI MMC Support

2019-07-16 Thread Anup Patel
This patchset adds: 1. SiFive SPI driver 2. New MMC SPI driver based on DM_MMC and DM_SPI 3. Enables SiFive SPI driver and MMC SPI driver for SiFive Unleashed board With this patch series, we can now load files from SD card on SiFive Unleashed board. Many thanks to Bhargav for porting SiFive SPI

[U-Boot] [PATCH v5 1/4] mmc: mmc_spi: Use SPI_XFER_BEGIN and SPI_XFER_END flags

2019-07-16 Thread Anup Patel
Most DM based SPI host controller drivers use SPI_XFER_BEGIN and SPI_XFER_END flags to enable/disable slave chip select. This patch extends MMC SPI driver to pass SPI_XFER_BEGIN flag when MMC command is send at start and pass SPI_XFER_END flag using a dummy transfer (of bitlen = 0) at the end of

Re: [U-Boot] [PATCH 0/5] travis: Build and test ASPEED board

2019-07-16 Thread Joel Stanley
Hello, On Thu, 4 Jul 2019 at 01:35, Joel Stanley wrote: > > Tom suggested I add support for booting the ASPEED EVB configuration in > Qemu. This series fixes up a few things with the defconfig so buildman > passes, and makes u-boot testable: > >

Re: [U-Boot] [PATCH 1/1] efi_loader: add more sources to Sphinx documentation

2019-07-16 Thread Bin Meng
On Sun, Jul 14, 2019 at 8:47 PM Heinrich Schuchardt wrote: > > Add more C files as sources to the Sphinx generated documentaton > (make htmldocs). > > Signed-off-by: Heinrich Schuchardt > --- > doc/efi.rst | 87 +++-- > 1 file changed, 85

Re: [U-Boot] [PATCH 1/1] travis-ci: qemu-system-riscv64: Parameter 'id' is missing

2019-07-16 Thread Bin Meng
On Wed, Jul 17, 2019 at 7:36 AM Heinrich Schuchardt wrote: > > When testing qemu-riscv64_defconfig on Travis CI I got a QEMU erorr > "Parameter 'id' is missing". > > A command launching qemu-riscv64_defconfig successfully on Debian is: > > qemu-system-riscv64 \ > -machine virt \ > -kernel u-boot

Re: [U-Boot] [RFC PATCH 1/9] doc: Move existing rst files into api sub-directory

2019-07-16 Thread Bin Meng
Hi Heinrich, On Wed, Jul 17, 2019 at 7:43 AM Heinrich Schuchardt wrote: > > On 7/16/19 8:03 PM, Heinrich Schuchardt wrote: > > On 7/16/19 6:42 PM, Bin Meng wrote: > >> Currently the Sphinx doc only contains API descriptions of several > >> U-Boot subsystems. For future extension, group these

Re: [U-Boot] [PATCH v3 1/2] rockchip: make_fit_atf.py: Eliminate pyelftools dependency

2019-07-16 Thread Andy Yan
Hi Chris: On 7/17/19 3:52 AM, Chris Webb wrote: make_fit_aft.py depends on the non-standard library pyelftools to pull out PT_LOAD segments from ELF files. However, this is as easy to do manually, without imposing the extra dependency on users. Structures in the ELF file are unpacked into

Re: [U-Boot] [RFC PATCH 1/9] doc: Move existing rst files into api sub-directory

2019-07-16 Thread Heinrich Schuchardt
On 7/16/19 8:03 PM, Heinrich Schuchardt wrote: On 7/16/19 6:42 PM, Bin Meng wrote: Currently the Sphinx doc only contains API descriptions of several U-Boot subsystems. For future extension, group these existing docs into an API sub-directory. Signed-off-by: Bin Meng Reviewed-by: Heinrich

[U-Boot] [PATCH 1/1] travis-ci: qemu-system-riscv64: Parameter 'id' is missing

2019-07-16 Thread Heinrich Schuchardt
When testing qemu-riscv64_defconfig on Travis CI I got a QEMU erorr "Parameter 'id' is missing". A command launching qemu-riscv64_defconfig successfully on Debian is: qemu-system-riscv64 \ -machine virt \ -kernel u-boot \ -m 1G -nographic -netdev user,id=net0,tftp=$tftpdir \ -device

[U-Boot] [PATCH v2 1/1] disk: efi: avoid unaligned pointer error

2019-07-16 Thread Heinrich Schuchardt
When building with GCC 9.1 an error occurs: disk/part_efi.c: In function ‘gpt_verify_partitions’: disk/part_efi.c:737:49: error: taking address of packed member of ‘struct _gpt_entry’ may result in an unaligned pointer value [-Werror=address-of-packed-member] 737 |

[U-Boot] [PATCH] spl: implement stack usage check

2019-07-16 Thread Simon Goldschmidt
This implements a stack usage check in SPL. Many boards start up SPL to run code + data from one common, rather small SRAM. To implement a sophisticated SPL binary size limit on such boards, the stack size (as well as malloc size and global data size) must be subtracted from this SRAM size.

[U-Boot] [PATCH v3 2/2] rockchip: Remove obsolete references to pyelftools

2019-07-16 Thread Chris Webb
make_fit_atf.py no longer requires pyelftools, and nothing else in the rockchip build requires it either, so remove references to installing it from the documentation. Signed-off-by: Chris Webb --- board/rockchip/evb_rk3399/README | 6 -- doc/README.rockchip | 4 2 files

[U-Boot] [PATCH v3 1/2] rockchip: make_fit_atf.py: Eliminate pyelftools dependency

2019-07-16 Thread Chris Webb
make_fit_aft.py depends on the non-standard library pyelftools to pull out PT_LOAD segments from ELF files. However, this is as easy to do manually, without imposing the extra dependency on users. Structures in the ELF file are unpacked into variables named to exactly match the ELF spec to ensure

[U-Boot] [PATCH v3 0/2] rockchip: make_fit_atf.py Eliminate pyelftools dependency

2019-07-16 Thread Chris Webb
Building for rockchip, make_fit_atf.py depends on pyelftools, a non-bundled python module that is not used elsewhere in building u-boot or the kernel. We only use pyelftools to pull out PT_LOAD segments. ELF is very simple, so doing this manually is easy and spares users the extra dependency. In

[U-Boot] [PATCH v4] spl: kconfig: separate sysreset and firmware drivers from misc

2019-07-16 Thread Simon Goldschmidt
This adds separate kconfig options for drivers/sysreset and drivers/firmware. Up to now, CONFIG_SPL_DRIVERS_MISC_SUPPORT added drivers/misc to SPL build but also added drivers/firmware and drivers/sysreset at the same time. Since that is confusing, this patch uses CONFIG_SPL_SYSRESET for

[U-Boot] pci_ep dm test failure

2019-07-16 Thread Ramon Fried
Hi Tom, Can you please merge this patch https://patchwork.ozlabs.org/patch/1132255/ which fixes the pcie_ep dm test that failed in travis ? you can later re-enable the test of course. Thanks and sorry for the mess.. Ramon. ___ U-Boot mailing list

[U-Boot] [PATCH v2 3/6] net: macb: use bit access macro from header file

2019-07-16 Thread Ramon Fried
macb.h provides macros for reading/setting bitfields, in macb registers and descriptors. use that instead of redefining them in the source file. Signed-off-by: Ramon Fried Reviewed-by: Anup Patel Tested-by: Anup Patel Acked-by: Joe Hershberger --- v2: nothing. drivers/net/macb.c | 48

[U-Boot] [PATCH v2 6/6] net: macb: apply sane DMA configuration

2019-07-16 Thread Ramon Fried
DMA configuration was heavily dependent on the HW defaults, add function to properly set the required fields, including the new dma_burst_length. Signed-off-by: Ramon Fried Reviewed-by: Anup Patel Tested-by: Anup Patel Acked-by: Joe Hershberger --- v2: nothing. drivers/net/macb.c | 28

[U-Boot] [PATCH v2 2/6] net: macb: add support for faster clk rates

2019-07-16 Thread Ramon Fried
add support for clock rates higher than 2.4Mhz Signed-off-by: Ramon Fried Reviewed-by: Anup Patel Tested-by: Anup Patel Acked-by: Joe Hershberger --- v2: nothing. drivers/net/macb.c | 6 +- drivers/net/macb.h | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v2 5/6] net: macb: add dma_burst_length config

2019-07-16 Thread Ramon Fried
GEM support higher DMA burst writes/reads than the default (4). add configuration structure with dma burst length so it could be applied later to DMA configuration. Signed-off-by: Ramon Fried Reviewed-by: Anup Patel Tested-by: Anup Patel Acked-by: Joe Hershberger --- v2: nothing.

[U-Boot] [PATCH v2 4/6] net: macb: add support for SGMII phy interface

2019-07-16 Thread Ramon Fried
This patch adds support for the sgmii phy interface, available only to DM users, dictated by current driver design. Signed-off-by: Ramon Fried Reviewed-by: Anup Patel Tested-by: Anup Patel Acked-by: Joe Hershberger --- v2: nothing. drivers/net/macb.c | 7 +++ 1 file changed, 7

[U-Boot] [PATCH 4/6] net: macb: add support for SGMII phy interface

2019-07-16 Thread Ramon Fried
This patch adds support for the sgmii phy interface, available only to DM users, dictated by current driver design. Signed-off-by: Ramon Fried Reviewed-by: Anup Patel Tested-by: Anup Patel Acked-by: Joe Hershberger --- v2: nothing. drivers/net/macb.c | 7 +++ 1 file changed, 7

[U-Boot] [PATCH 5/6] net: macb: add dma_burst_length config

2019-07-16 Thread Ramon Fried
GEM support higher DMA burst writes/reads than the default (4). add configuration structure with dma burst length so it could be applied later to DMA configuration. Signed-off-by: Ramon Fried Reviewed-by: Anup Patel Tested-by: Anup Patel Acked-by: Joe Hershberger --- v2: nothing.

[U-Boot] [PATCH 3/6] net: macb: use bit access macro from header file

2019-07-16 Thread Ramon Fried
macb.h provides macros for reading/setting bitfields, in macb registers and descriptors. use that instead of redefining them in the source file. Signed-off-by: Ramon Fried Reviewed-by: Anup Patel Tested-by: Anup Patel Acked-by: Joe Hershberger --- v2: nothing. drivers/net/macb.c | 48

[U-Boot] [PATCH 6/6] net: macb: apply sane DMA configuration

2019-07-16 Thread Ramon Fried
DMA configuration was heavily dependent on the HW defaults, add function to properly set the required fields, including the new dma_burst_length. Signed-off-by: Ramon Fried Reviewed-by: Anup Patel Tested-by: Anup Patel Acked-by: Joe Hershberger --- v2: nothing. drivers/net/macb.c | 28

[U-Boot] [PATCH 2/6] net: macb: add support for faster clk rates

2019-07-16 Thread Ramon Fried
add support for clock rates higher than 2.4Mhz Signed-off-by: Ramon Fried Reviewed-by: Anup Patel Tested-by: Anup Patel Acked-by: Joe Hershberger --- v2: nothing. drivers/net/macb.c | 6 +- drivers/net/macb.h | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v2 1/6] net: macb: sync header definitions as taken from Linux

2019-07-16 Thread Ramon Fried
Few registers and bits were added by Cadence and they were not updated in the headers. Take the latest definitions as defined in Linux header (5.1) that also includes some comments about existing registers. One register was improperly named (UR), fix that. Signed-off-by: Ramon Fried

Re: [U-Boot] [PATCH 00/16] Raspberry Pi 32/64 support

2019-07-16 Thread Andrei Gherzan
Hi, On 16 July 2019 15:17:46 BST, Matthias Brugger wrote: > > >On 16/07/2019 15:37, and...@gherzan.ro wrote: >> From: Andrei Gherzan >> >> This PR consolidates the work we've done to support the new Raspberry >Pi > >I don't understand why you posted these while you asked me if I'll >submit

Re: [U-Boot] [PATCH 1/6] net: macb: sync header definitions as taken from Linux

2019-07-16 Thread Ramon Fried
On Tue, Jul 16, 2019 at 9:42 PM Joe Hershberger wrote: > > On Tue, Jul 16, 2019 at 12:03 AM Ramon Fried wrote: > > > > On Mon, Jul 15, 2019 at 11:48 PM Joe Hershberger > > wrote: > > > > > > On Mon, Jul 15, 2019 at 3:26 PM Ramon Fried wrote: > > > > > > > > On Mon, Jul 15, 2019 at 11:19 PM

Re: [U-Boot] [PATCH 1/6] net: macb: sync header definitions as taken from Linux

2019-07-16 Thread Joe Hershberger
On Tue, Jul 16, 2019 at 12:03 AM Ramon Fried wrote: > > On Mon, Jul 15, 2019 at 11:48 PM Joe Hershberger > wrote: > > > > On Mon, Jul 15, 2019 at 3:26 PM Ramon Fried wrote: > > > > > > On Mon, Jul 15, 2019 at 11:19 PM Ramon Fried wrote: > > > > > > > > On Mon, Jul 15, 2019 at 9:31 PM Joe

Re: [U-Boot] [RFC PATCH 0/9] Initial layout for Sphinx HTML docs

2019-07-16 Thread Heinrich Schuchardt
On 7/16/19 6:42 PM, Bin Meng wrote: > At present there is Sphinx doc build system in U-Boot, however the > contents are very limited, that only a few API descriptions for EFI, > are included. > > This series proposes an initial Sphinx doc layout for future extension, > by converting some of the

Re: [U-Boot] [RFC PATCH 1/9] doc: Move existing rst files into api sub-directory

2019-07-16 Thread Heinrich Schuchardt
On 7/16/19 6:42 PM, Bin Meng wrote: > Currently the Sphinx doc only contains API descriptions of several > U-Boot subsystems. For future extension, group these existing docs > into an API sub-directory. > > Signed-off-by: Bin Meng Reviewed-by: Heinrich Schuchardt

Re: [U-Boot] [RFC PATCH 9/9] doc: board: Add Intel Crown Bay board doc

2019-07-16 Thread Heinrich Schuchardt
On 7/16/19 6:42 PM, Bin Meng wrote: > This extracts Intel Crown Bay board specific information from > README.x86, converts plain text documentation to reST format and > adds it to Sphinx TOC tree. No essential content change. > > Signed-off-by: Bin Meng > > --- > > doc/README.x86 |

Re: [U-Boot] [RFC PATCH 8/9] doc: Add board to Sphinx TOC tree

2019-07-16 Thread Heinrich Schuchardt
On 7/16/19 6:42 PM, Bin Meng wrote: > Add index.rst for board. More docs will be added later. > > Signed-off-by: Bin Meng Reviewed-by: Heinrich Schuchardt ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [RFC PATCH 7/9] doc: arch: Convert README.mips to reST

2019-07-16 Thread Heinrich Schuchardt
On 7/16/19 6:42 PM, Bin Meng wrote: > Convert plain text documentation to reStructuredText format and add > it to Sphinx TOC tree. No essential content change. > > Signed-off-by: Bin Meng Reviewed-by: Heinrich Schuchardt ___ U-Boot mailing list

Re: [U-Boot] [RFC PATCH 6/9] doc: Add architecture specific info to Sphinx TOC tree

2019-07-16 Thread Heinrich Schuchardt
On 7/16/19 6:42 PM, Bin Meng wrote: > Add index.rst for architecture specific info. More docs will be > added later. > > Signed-off-by: Bin Meng Reviewed-by: Heinrich Schuchardt ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [RFC PATCH 5/9] doc: driver-model: Convert MIGRATION.txt to reST

2019-07-16 Thread Heinrich Schuchardt
On 7/16/19 6:42 PM, Bin Meng wrote: > Convert plain text documentation to reStructuredText format and add > it to Sphinx TOC tree. No essential content change. > > Signed-off-by: Bin Meng The conversion to RST is correct but we should rethink the values and effect of the deadlines. Reviewed-by:

Re: [U-Boot] [RFC PATCH 4/9] doc: driver-model: Convert README.txt to reST

2019-07-16 Thread Heinrich Schuchardt
On 7/16/19 6:42 PM, Bin Meng wrote: > Convert plain text documentation to reStructuredText format and add > it to Sphinx TOC tree. No essential content change. > > Signed-off-by: Bin Meng > --- I think these could be converted to level 3 sub-headings 1. Bind stage 2. Activation/probe 3. Running

Re: [U-Boot] [RFC PATCH 3/9] doc: Add driver-model to Sphinx TOC tree

2019-07-16 Thread Heinrich Schuchardt
On 7/16/19 6:42 PM, Bin Meng wrote: > Add index.rst for driver model. More docs will be added later. > > Signed-off-by: Bin Meng Reviewed-by: Heinrich Schuchardt ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [RFC PATCH 2/9] doc: Add top-level description about U-Boot documentation

2019-07-16 Thread Heinrich Schuchardt
On 7/16/19 6:42 PM, Bin Meng wrote: > This updates the index.rst to add top-level description about > U-Boot documentation. Words are taken from Linux kernel docs > and modified for U-Boot. > > Signed-off-by: Bin Meng Reviewe-by: Heinrich Schuchardt

Re: [U-Boot] [PATCH v4 1/1] efi_loader: Change return type of efi_add_memory_map()

2019-07-16 Thread Heinrich Schuchardt
On 7/15/19 1:00 PM, Bryan O'Donoghue wrote: > We currently have some inconsistent use of efi_add_memory_map() > throughout the code. In particular the return value of efi_add_memory_map() > is not interpreted the same way by various users in the codebase. > > This patch does the following: > > -

[U-Boot] [RFC PATCH 2/9] doc: Add top-level description about U-Boot documentation

2019-07-16 Thread Bin Meng
This updates the index.rst to add top-level description about U-Boot documentation. Words are taken from Linux kernel docs and modified for U-Boot. Signed-off-by: Bin Meng --- doc/index.rst | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git

[U-Boot] [RFC PATCH 9/9] doc: board: Add Intel Crown Bay board doc

2019-07-16 Thread Bin Meng
This extracts Intel Crown Bay board specific information from README.x86, converts plain text documentation to reST format and adds it to Sphinx TOC tree. No essential content change. Signed-off-by: Bin Meng --- doc/README.x86 | 37 -

[U-Boot] [RFC PATCH 8/9] doc: Add board to Sphinx TOC tree

2019-07-16 Thread Bin Meng
Add index.rst for board. More docs will be added later. Signed-off-by: Bin Meng --- doc/board/index.rst | 6 ++ doc/index.rst | 11 +++ 2 files changed, 17 insertions(+) create mode 100644 doc/board/index.rst diff --git a/doc/board/index.rst b/doc/board/index.rst new file

[U-Boot] [RFC PATCH 7/9] doc: arch: Convert README.mips to reST

2019-07-16 Thread Bin Meng
Convert plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Bin Meng --- doc/arch/index.rst | 2 ++ doc/{README.mips => arch/mips.rst} | 14 -- 2 files changed, 10 insertions(+), 6

[U-Boot] [RFC PATCH 4/9] doc: driver-model: Convert README.txt to reST

2019-07-16 Thread Bin Meng
Convert plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Bin Meng --- doc/driver-model/{README.txt => design.rst} | 538 +++- doc/driver-model/index.rst | 2 + 2 files

[U-Boot] [RFC PATCH 3/9] doc: Add driver-model to Sphinx TOC tree

2019-07-16 Thread Bin Meng
Add index.rst for driver model. More docs will be added later. Signed-off-by: Bin Meng --- doc/driver-model/index.rst | 6 ++ doc/index.rst | 11 +++ 2 files changed, 17 insertions(+) create mode 100644 doc/driver-model/index.rst diff --git

[U-Boot] [RFC PATCH 5/9] doc: driver-model: Convert MIGRATION.txt to reST

2019-07-16 Thread Bin Meng
Convert plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Bin Meng --- doc/driver-model/index.rst| 1 + doc/driver-model/{MIGRATION.txt => migration.rst} | 42 ++- 2 files

[U-Boot] [RFC PATCH 6/9] doc: Add architecture specific info to Sphinx TOC tree

2019-07-16 Thread Bin Meng
Add index.rst for architecture specific info. More docs will be added later. Signed-off-by: Bin Meng --- doc/arch/index.rst | 6 ++ doc/index.rst | 11 +++ 2 files changed, 17 insertions(+) create mode 100644 doc/arch/index.rst diff --git a/doc/arch/index.rst

[U-Boot] [RFC PATCH 1/9] doc: Move existing rst files into api sub-directory

2019-07-16 Thread Bin Meng
Currently the Sphinx doc only contains API descriptions of several U-Boot subsystems. For future extension, group these existing docs into an API sub-directory. Signed-off-by: Bin Meng --- doc/{ => api}/efi.rst | 3 +++ doc/api/index.rst | 10 ++ doc/{ =>

[U-Boot] [RFC PATCH 0/9] Initial layout for Sphinx HTML docs

2019-07-16 Thread Bin Meng
At present there is Sphinx doc build system in U-Boot, however the contents are very limited, that only a few API descriptions for EFI, are included. This series proposes an initial Sphinx doc layout for future extension, by converting some of the plain text documentation to reStructuredText

[U-Boot] [PATCH 2/2] doc: Add the U-Boot logo to the html doc

2019-07-16 Thread Bin Meng
Now we have a logo for U-Boot, we can include it in the Sphinx html doc. Signed-off-by: Bin Meng --- doc/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/conf.py b/doc/conf.py index 168c313..0772fb6 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -170,7 +170,7 @@

[U-Boot] [PATCH 1/2] doc: Add .gitignore for the Sphinx build output directory

2019-07-16 Thread Bin Meng
With Sphinx documentation moving from Documentation directory to doc directory, we missed updating .gitignore for the Sphinx build output directory. Signed-off-by: Bin Meng --- Documentation/.gitignore | 1 - doc/.gitignore | 1 + 2 files changed, 1 insertion(+), 1 deletion(-)

[U-Boot] [PATCH] fpga: arria10: Fix error in fpga pin configuration

2019-07-16 Thread Dalon Westergreen
From: Dalon Westergreen Pin configuration of the FPGA devicetree block should be done after core configuration in the arria10 fpga driver. This fix corrects the check of status, and ensures that the fpga pin mux is configured on correct configuration of the core fpga image. Signed-off-by:

Re: [U-Boot] [PATCH v2 1/2] flash: Script to create a flash image from u-boot

2019-07-16 Thread Stephen Warren
On 7/15/19 5:14 PM, Joel Stanley wrote: This creates an empty flash image and places u-boot at the start of it. It will be used by the ASPEED Qemu tests which boot u-boot from an emaulated flash device. diff --git a/bin/flash.create_image_32mb b/bin/flash.create_image_32mb I can foresee a

Re: [U-Boot] [PATCH 12/16] config: rpi4: Add defconfig for rpi4-32

2019-07-16 Thread Peter Robinson
On Tue, Jul 16, 2019 at 3:25 PM Matthias Brugger wrote: > > > > On 16/07/2019 15:37, and...@gherzan.ro wrote: > > From: Andrei Gherzan > > > > Signed-off-by: Andrei Gherzan > > --- > > configs/rpi_4_32b_defconfig | 43 + > > 1 file changed, 43 insertions(+)

Re: [U-Boot] [PATCH] ARM: bcm283x mbox: Fix send status register

2019-07-16 Thread Stephen Warren
On 7/16/19 5:09 AM, matthias@kernel.org wrote: From: Fabian Vogt Before we can send a message to the mailbox we have to check that there is space to do so. Therefore we poll the status register. But up to now the wrong status register, the one of mailbox 0, was checked. Fix this by polling

[U-Boot] Pull request: u-boot-sunxi/master

2019-07-16 Thread Jagan Teki
Hi Tom, Please pull this PR. Summary: - Beelink-x2 STB support (Marcus) - H6 DDR3, LPDDR3 changes (Andre, Jernej) - H6 pin controller, USB PHY (Andre) thanks, Jagan. The following changes since commit 6070ef409c1018860e8dd1f077297546d9d80115: Merge branch '2019-07-12-master-imports'

Re: [U-Boot] Pull request: u-boot-net.git master

2019-07-16 Thread Tom Rini
On Mon, Jul 15, 2019 at 05:49:01PM -0500, Joe Hershberger wrote: > Hi Tom, > > These patches passed travis [1] and are ready for master. > > Thanks, > -Joe > > [1] - https://travis-ci.org/jhershbe/u-boot/builds/559064493 > > The following changes since commit

Re: [U-Boot] [PATCH 08/16] mmc: bcm2835_sdhci: Add support for bcm2711 device

2019-07-16 Thread Matthias Brugger
On 16/07/2019 15:37, and...@gherzan.ro wrote: > From: Matthias Brugger > > The bcm2711 has two emmc controller. The difference is the clocks > they use. Add support for the second emmc contoller. > > Signed-off-by: Matthias Brugger missing your signed-off-by. > --- >

Re: [U-Boot] [PATCH 05/16] rpi: Add rpi_model entry for RaspberryPi 4

2019-07-16 Thread Matthias Brugger
On 16/07/2019 15:37, and...@gherzan.ro wrote: > From: Andrei Gherzan > > Signed-off-by: Andrei Gherzan Commit message missing. > --- > board/raspberrypi/rpi/rpi.c | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c >

Re: [U-Boot] [PATCH 13/16] dts: bcm2838-rpi-4-b: Use the emmc2 interface for sdhci

2019-07-16 Thread Matthias Brugger
On 16/07/2019 15:38, and...@gherzan.ro wrote: > From: Andrei Gherzan > > Signed-off-by: Andrei Gherzan Commit message. You fix a file that you introduced in this series. Any reason why you don't just send the file already fixed? > --- > arch/arm/dts/bcm2838-rpi-4-b.dts | 16

Re: [U-Boot] [PATCH 12/16] config: rpi4: Add defconfig for rpi4-32

2019-07-16 Thread Matthias Brugger
On 16/07/2019 15:37, and...@gherzan.ro wrote: > From: Andrei Gherzan > > Signed-off-by: Andrei Gherzan > --- > configs/rpi_4_32b_defconfig | 43 + > 1 file changed, 43 insertions(+) > create mode 100644 configs/rpi_4_32b_defconfig > > diff --git

Re: [U-Boot] [PATCH 06/16] dt-bindings: Define BCM2838_CLOCK_EMMC2 needed for RaspberryPi 4

2019-07-16 Thread Matthias Brugger
On 16/07/2019 15:37, and...@gherzan.ro wrote: > From: Andrei Gherzan > > On BCM2838 there is an additional clock. This clock was added in the > same bcm2835-cprman driver and is used by the emmc2 dt node. > > Signed-off-by: Andrei Gherzan > --- > include/dt-bindings/clock/bcm2835.h | 2 ++ >

Re: [U-Boot] [PATCH 04/16] arm: mach-bcm283x: Define mbox address for BCM2838

2019-07-16 Thread Matthias Brugger
On 16/07/2019 15:37, and...@gherzan.ro wrote: > From: Andrei Gherzan > > Signed-off-by: Andrei Gherzan > --- > arch/arm/mach-bcm283x/include/mach/mbox.h | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/arch/arm/mach-bcm283x/include/mach/mbox.h >

Re: [U-Boot] [PATCH 02/16] dts: Add initial support for bcm2838

2019-07-16 Thread Matthias Brugger
On 16/07/2019 15:37, and...@gherzan.ro wrote: > From: Andrei Gherzan > > Signed-off-by: Andrei Gherzan > --- > arch/arm/dts/Makefile| 4 +- > arch/arm/dts/bcm2838-rpi-4-b.dts | 56 > arch/arm/dts/bcm2838.dtsi| 237 +++ > 3 files

Re: [U-Boot] [PATCH 01/16] dts: Create a dtsi for BCM2835/6/7 specific configuration

2019-07-16 Thread Matthias Brugger
On 16/07/2019 15:37, and...@gherzan.ro wrote: > From: Andrei Gherzan > > This follows a similar change in kernel[1]. The change moves > configuration that was not applicable for all bcm2835/6/7/8 out of > bcm283x.dtsi. The new file is bcm2835-common.dtsi and contains > conifguration that is

  1   2   3   4   >