[U-Boot] Q: erase.raw for NAND ?

2016-07-26 Thread Ran Shalit
Hello, I am trying to detect bad blocks in nand by erasing blocks and checking if all bytes are 0x... I want to include the OOB area in such testing (so that I treat them as regular bytes in nand, which can be read,write, and erased) In u-boot there is support for nand read.raw & write.raw,

[U-Boot] [PATCH 6/7] cmd/bdinfo: extract print_baudrate

2016-07-26 Thread Max Filippov
print_baudrate outputs serial baud rate. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 39 +-- 1 file changed, 25 insertions(+), 14 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index ab56ea5..b4abb91 100644 --- a/cmd/bdinfo.c

[U-Boot] [PATCH 7/7] cmd/bdinfo: extract print_std_bdinfo

2016-07-26 Thread Max Filippov
print_std_bdinfo outputs typical set of board information entries: boot params location, memory and flash addresses and sizes, network interfaces information and configured serial baud rate. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 32

[U-Boot] [PATCH 4/7] cmd/bdinfo: extract print_bi_flash

2016-07-26 Thread Max Filippov
print_bi_flash outputs flashstart, flashsize and flashoffset lines. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 54 +++--- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index

[U-Boot] [PATCH 2/7] cmd/bdinfo: extract print_bi_mem

2016-07-26 Thread Max Filippov
print_bi_mem outputs memstart and memsize lines. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 42 ++ 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index 60aaafb..df68b58 100644 ---

[U-Boot] [PATCH 5/7] cmd/bdinfo: extract print_eth_ip_addr

2016-07-26 Thread Max Filippov
print_eth_ip_addr outputs eth configurations for up to 6 interfaces and configured IP address. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 113 +++ 1 file changed, 36 insertions(+), 77 deletions(-) diff --git

[U-Boot] [PATCH 0/7] cmd/bdinfo: extract common parts and reuse them

2016-07-26 Thread Max Filippov
Hi, this series extracts common parts of cmd/bdinfo.c used by various architectures into reusable functions. Please review. Max Filippov (7): cmd/bdinfo: extract print_bi_boot_params cmd/bdinfo: extract print_bi_mem cmd/bdinfo: extract print_bi_dram cmd/bdinfo: extract print_bi_flash

[U-Boot] [PATCH 1/7] cmd/bdinfo: extract print_bi_boot_params

2016-07-26 Thread Max Filippov
print_bi_boot_params outputs boot parameters structure location. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index f2435ab..60aaafb 100644 ---

[U-Boot] [PATCH 3/7] cmd/bdinfo: extract print_bi_dram

2016-07-26 Thread Max Filippov
print_bi_dram outputs start address and size for each DRAM bank. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 58 +- 1 file changed, 17 insertions(+), 41 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index

[U-Boot] [PATCH 6/6] cmd/bdinfo: extract print_std_bdinfo

2016-07-26 Thread Max Filippov
print_std_bdinfo outputs typical set of board information entries: boot params location, memory and flash addresses and sizes, network interfaces information and configured serial baud rate. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 32

Re: [U-Boot] [PATCH 0/7] cmd/bdinfo: extract common parts and reuse them

2016-07-26 Thread Max Filippov
On Wed, Jul 27, 2016 at 8:27 AM, Max Filippov wrote: > Hi, > > this series extracts common parts of cmd/bdinfo.c used by various > architectures into reusable functions. Sorry, messed up my patch directory, will resend. -- Thanks. -- Max

[U-Boot] [PATCH 4/7] cmd/bdinfo: extract print_bi_flash

2016-07-26 Thread Max Filippov
print_bi_flash outputs flashstart, flashsize and flashoffset lines. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 54 +++--- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index

[U-Boot] [PATCH 6/7] cmd/bdinfo: extract print_baudrate

2016-07-26 Thread Max Filippov
print_baudrate outputs serial baud rate. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 39 +-- 1 file changed, 25 insertions(+), 14 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index ab56ea5..b4abb91 100644 --- a/cmd/bdinfo.c

[U-Boot] [PATCH 5/7] cmd/bdinfo: extract print_eth_ip_addr

2016-07-26 Thread Max Filippov
print_eth_ip_addr outputs eth configurations for up to 6 interfaces and configured IP address. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 113 +++ 1 file changed, 36 insertions(+), 77 deletions(-) diff --git

[U-Boot] [PATCH 4/6] cmd/bdinfo: extract print_eth_ip_addr

2016-07-26 Thread Max Filippov
print_eth_ip_addr outputs eth configurations for up to 6 interfaces and configured IP address. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 113 +++ 1 file changed, 36 insertions(+), 77 deletions(-) diff --git

[U-Boot] [PATCH 5/6] cmd/bdinfo: extract print_baudrate

2016-07-26 Thread Max Filippov
print_baudrate outputs serial baud rate. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 39 +-- 1 file changed, 25 insertions(+), 14 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index ab56ea5..b4abb91 100644 --- a/cmd/bdinfo.c

[U-Boot] [PATCH 3/6] cmd/bdinfo: extract print_bi_flash

2016-07-26 Thread Max Filippov
print_bi_flash outputs flashstart, flashsize and flashoffset lines. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 54 +++--- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index

[U-Boot] [PATCH 3/7] cmd/bdinfo: extract print_bi_dram

2016-07-26 Thread Max Filippov
print_bi_dram outputs start address and size for each DRAM bank. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 58 +- 1 file changed, 17 insertions(+), 41 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index

[U-Boot] [PATCH 2/6] cmd/bdinfo: extract print_bi_dram

2016-07-26 Thread Max Filippov
print_bi_dram outputs start address and size for each DRAM bank. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 58 +- 1 file changed, 17 insertions(+), 41 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index

[U-Boot] [PATCH 1/6] cmd/bdinfo: extract print_bi_mem

2016-07-26 Thread Max Filippov
print_bi_mem outputs memstart and memsize lines. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 42 ++ 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index 60aaafb..df68b58 100644 ---

[U-Boot] [PATCH 0/7] cmd/bdinfo: extract common parts and reuse them

2016-07-26 Thread Max Filippov
Hi, this series extracts common parts of cmd/bdinfo.c used by various architectures into reusable functions. Please review. Max Filippov (7): cmd/bdinfo: extract print_bi_boot_params cmd/bdinfo: extract print_bi_mem cmd/bdinfo: extract print_bi_dram cmd/bdinfo: extract print_bi_flash

[U-Boot] [PATCH 1/7] cmd/bdinfo: extract print_bi_boot_params

2016-07-26 Thread Max Filippov
print_bi_boot_params outputs boot parameters structure location. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index f2435ab..60aaafb 100644 ---

[U-Boot] [PATCH 2/7] cmd/bdinfo: extract print_bi_mem

2016-07-26 Thread Max Filippov
print_bi_mem outputs memstart and memsize lines. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 42 ++ 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index 60aaafb..df68b58 100644 ---

Re: [U-Boot] [PATCH 1/2] mmc: sdhci: set to INT_DATA_END when there are data

2016-07-26 Thread Jaehoon Chung
Hi On 07/27/2016 01:10 AM, Steve Rae wrote: > HI Lukasz, > > On Tue, Jul 26, 2016 at 2:13 AM, Lukasz Majewski > wrote: >> Hi Steve, >> >>> with this change, I can also set the following back to 100: >>> >>> diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c >>>

Re: [U-Boot] [Patch v3] armv8: ls1043aqds: add IFC fixup in case QSPI is enabled

2016-07-26 Thread york sun
On 07/20/2016 09:51 PM, Gong Qianyu wrote: > QSPI and IFC are pin-multiplexed on LS1043AQDS board. If QSPI is > enabled, IFC would not be initialized correctly. So disable the IFC > node for Linux. > > Signed-off-by: Gong Qianyu > --- > v3: > - Moved the fixup to board file.

Re: [U-Boot] [PATCH 23/30] binman: Introduce binman, a tool for building binary images

2016-07-26 Thread Heiko Schocher
Hello Simon, Am 26.07.2016 um 02:59 schrieb Simon Glass: This adds the basic code for binman, including command parsing, processing of entries and generation of images. So far no entry types are supported. These will be added in future commits as examples of how to add new types. See the

[U-Boot] [PATCH 1/2] ARM: Introduce function to switch to hypervisor mode

2016-07-26 Thread Keerthy
On some of the SoCs one cannot enable hypervisor mode directly from the u-boot because the ROM code puts the chip to supervisor mode after it jumps to boot loader. Hence introduce a weak function which can be overridden based on the SoC type and switch to hypervisor mode in a custom way. Cc:

[U-Boot] [PATCH 2/2] ARM: OMAP5+: Override switch_to_hypervisor function

2016-07-26 Thread Keerthy
Override the switch_to_hypervisor function to switch cpu to hypervisor mode using the available ROM code hook early in the boot phase before the boot loader checks for HYP mode. Based on the work done by Jonathan Bergsagel jbergsa...@ti.com. Cc: beagleboard-...@googlegroups.com Signed-off-by:

Re: [U-Boot] [PATCH 0/2] ARM: Introduce function to switch to hypervisor mode

2016-07-26 Thread Keerthy
On Wednesday 27 July 2016 09:05 AM, Keerthy wrote: On SoCs like DRA7, OMAP5 one cannot enable hypervisor mode directly from the u-boot because the ROM code puts the chip to supervisor mode after it jumps to boot loader. Patch 1: Introduces a weak function which can be overridden specific to

[U-Boot] [PATCH 0/2] ARM: Introduce function to switch to hypervisor mode

2016-07-26 Thread Keerthy
On SoCs like DRA7, OMAP5 one cannot enable hypervisor mode directly from the u-boot because the ROM code puts the chip to supervisor mode after it jumps to boot loader. Patch 1: Introduces a weak function which can be overridden specific to SoCs to switch to hypervisor mode. Patch 2: overrides

Re: [U-Boot] [PATCH 01/30] x86: Add debugging when a microcode update fails

2016-07-26 Thread Heiko Schocher
Hello Simon, Am 26.07.2016 um 02:58 schrieb Simon Glass: Add a debug() at this point to help figure out what is wrong. Signed-off-by: Simon Glass --- arch/x86/cpu/intel_common/cpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) Reviewed-by: Heiko

Re: [U-Boot] [PATCH v6 1/4] ARMv7: PSCI: add PSCI v1.0 functions skeleton

2016-07-26 Thread Hongbo Zhang
Thanks York. On Wed, Jul 27, 2016 at 4:24 AM, york sun wrote: > On 07/21/2016 03:10 AM, macro.wav...@gmail.com wrote: >> From: Hongbo Zhang >> >> This patch adds all the PSCI v1.0 functions in to the common framework, with >> all the functions returning

Re: [U-Boot] [PATCH] serial: Enable checking UART is ready for console based on device tree

2016-07-26 Thread Tien Fong Chee
On Tue, 2016-07-26 at 15:20 +0200, Marek Vasut wrote: > On 07/26/2016 12:55 PM, Tien Fong Chee wrote: > > This patch would do checking on device tree to ensure the UART > > exist > > in the system and ready for console before setting have_console to > > true. > > This is required to avoid

Re: [U-Boot] Please pull u-boot-sunxi master

2016-07-26 Thread Chen-Yu Tsai
Hi Hans On Wed, Jul 27, 2016 at 6:30 AM, Hans de Goede wrote: > Hi Tom, > > Here is the second sunxi pull-req for v2016.09, > this adds some fixes to the h3 ethernet driver > and disables it for now as it has too much issues. > > It also adds 1 new board. > > The following

Re: [U-Boot] [PATCH 1/2] mmc: sdhci: remove the unused argument for sdhci_setup_cfg

2016-07-26 Thread Minkyu Kang
Hi, On 26/07/16 19:06, Jaehoon Chung wrote: > buswidth isn't used anywhere in sdhci_setup_cfg. > > Signed-off-by: Jaehoon Chung > --- > drivers/mmc/msm_sdhci.c | 4 ++-- > drivers/mmc/sdhci.c | 4 ++-- > drivers/mmc/zynq_sdhci.c | 2 +- > include/sdhci.h

Re: [U-Boot] Please pull u-boot-sunxi master

2016-07-26 Thread Tom Rini
On Wed, Jul 27, 2016 at 12:30:56AM +0200, Hans de Goede wrote: > Hi Tom, > > Here is the second sunxi pull-req for v2016.09, > this adds some fixes to the h3 ethernet driver > and disables it for now as it has too much issues. > > It also adds 1 new board. > > The following changes since

Re: [U-Boot] Please pull from u-boot-i2c

2016-07-26 Thread Tom Rini
On Tue, Jul 26, 2016 at 02:26:08PM +0200, Heiko Schocher wrote: > Hello Tom, > > Sorry for being a little late, but I was on vacation ... > > In this pull request there is a fix for debug warnings in tools/env from > Marcin. > A DM conversion and improvements series for the mvtwsi driver from

Re: [U-Boot] ARM: uniphier: move CONFIG_I2C_EEPROM to defconfig

2016-07-26 Thread Tom Rini
On Wed, Jul 27, 2016 at 03:47:58AM +0900, Masahiro Yamada wrote: > We already have the entry for this option in Kconfig, so let's > migrate to it. > > Signed-off-by: Masahiro Yamada Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital

Re: [U-Boot] Please pull u-boot-fsl-qoriq master

2016-07-26 Thread Tom Rini
On Tue, Jul 26, 2016 at 08:28:50PM +, york sun wrote: > Tom, > > The following changes since commit 29d63a59eaf1c9f3b37e249cda2a97e5e4f183f8: > >ARM: uniphier: add clock/reset settings for xHCI of ProXstream2 > (2016-07-24 00:44:55 +0900) > > are available in the git repository at: >

Re: [U-Boot] Please pull u-boot-mpc86xx master

2016-07-26 Thread Tom Rini
On Tue, Jul 26, 2016 at 08:31:09PM +, york sun wrote: > Tom, > > The following changes since commit 29d63a59eaf1c9f3b37e249cda2a97e5e4f183f8: > >ARM: uniphier: add clock/reset settings for xHCI of ProXstream2 > (2016-07-24 00:44:55 +0900) > > are available in the git repository at: >

Re: [U-Boot] Please pull u-boot-rockchip

2016-07-26 Thread Tom Rini
On Mon, Jul 25, 2016 at 09:56:39PM -0600, Simon Glass wrote: > Hi Tom, > > Here's an interim pull request for rockchip including RK3399 SoC > support. I hope to come up with another one by the end of the week. > > > The following changes since commit 4579720412744dd13266a3505bb38ce2da819b4f: >

[U-Boot] [PATCH] MAINTAINERS: i.MX: Add board/freescale/*mx* path

2016-07-26 Thread Fabio Estevam
From: Fabio Estevam Pass the board/freescale/*mx*/ path as files maintained by Stefano Babic. While this is not ideal and does not cover all the i.MX board cases, it gives at least a better hint for the /scripts/get_maintainer.pl tool. Signed-off-by: Fabio Estevam

[U-Boot] [PATCH] mx7dsabresd: MAINTAINERS: Add mx7dsabresd_secure_defconfig

2016-07-26 Thread Fabio Estevam
From: Fabio Estevam Add an entry for the mx7dsabresd_secure_defconfig target. Signed-off-by: Fabio Estevam --- board/freescale/mx7dsabresd/MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/board/freescale/mx7dsabresd/MAINTAINERS

Re: [U-Boot] [PATCH 1/4] DM: crypto/fsl: Enable rsa DM driver usage before relocation

2016-07-26 Thread york sun
On 06/14/2016 04:36 AM, Sumit Garg wrote: > Enable rsa signature verification in SPL framework before relocation for > verification of main u-boot. > > Reviewed-by: Aneesh Bansal > Signed-off-by: Sumit Garg > --- > drivers/crypto/fsl/fsl_rsa.c | 1 + >

Re: [U-Boot] [PATCH 29/30] RFC: Use binman for a sunxi board

2016-07-26 Thread Simon Glass
Hi Ian, On 26 July 2016 at 07:35, Ian Campbell wrote: > (adding Hans) > > On Mon, 2016-07-25 at 18:59 -0600, Simon Glass wrote: >> Add an example usage of binman for a sunxi board. This involves adding the >> > image definition to the device tree and using it in the

Re: [U-Boot] [PATCH 1/7] serial: ns16550: Support clocks via phandle

2016-07-26 Thread Simon Glass
Hi Paul, On 26 July 2016 at 16:24, Paul Burton wrote: > Previously ns16550 compatible UARTs probed via device tree have needed > their device tree nodes to contain a clock-frequency property. An > alternative to this commonly used with Linux is to reference a clock via >

Re: [U-Boot] [PATCH 4/7] pci: Flip condition for detecting non-PCI parent devices

2016-07-26 Thread Simon Glass
On 26 July 2016 at 16:24, Paul Burton wrote: > In pci_uclass_pre_probe an attempt is made to detect whether the parent > of a device is a PCI device and that the device is thus a bridge. This > was being done by checking whether the parent of the device is of the >

Re: [U-Boot] [PATCH 3/7] pci: xilinx: Add a driver for Xilinx AXI to PCIe bridge

2016-07-26 Thread Simon Glass
Hi Paul, On 26 July 2016 at 16:24, Paul Burton wrote: > This patch adds a driver for the Xilinx AXI bridge for PCI express, an > IP block which can be used on some generations of Xilinx FPGAs. This is > mostly a case of implementing PCIe ECAM specification, but with some

Re: [U-Boot] How to support ATF on u-boot

2016-07-26 Thread Simon Glass
Hi, On 14 July 2016 at 06:14, Kever Yang wrote: > Hi Andre, > > > On 07/13/2016 08:45 PM, Andre Przywara wrote: >> >> Hi, >> >> On 13/07/16 13:27, Andreas Färber wrote: >>> >>> Hi Kever, >>> >>> Am 20.06.2016 um 04:59 schrieb Kever Yang: I want to

[U-Boot] Please pull u-boot-mpc86xx master

2016-07-26 Thread york sun
Tom, The following changes since commit 29d63a59eaf1c9f3b37e249cda2a97e5e4f183f8: ARM: uniphier: add clock/reset settings for xHCI of ProXstream2 (2016-07-24 00:44:55 +0900) are available in the git repository at: git://git.denx.de/u-boot-mpc86xx.git for you to fetch changes up to

Re: [U-Boot] [PATCH] powerpc/86xx: Pass -mcpu=7400 to GCC

2016-07-26 Thread york sun
On 07/19/2016 02:26 PM, Scott Wood wrote: > Without this, GCC uses the toolchain default, which may be incompatible > with -maltivec. > > Signed-off-by: Scott Wood > --- > arch/powerpc/cpu/mpc86xx/config.mk | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Applied to

Re: [U-Boot] [PATCH 1/2] armv8: ls2080aqds: Update MAINTAINERS

2016-07-26 Thread york sun
On 07/01/2016 07:41 AM, York Sun wrote: > Add ls2080aqds_qspi_defconfig to file list. > > Signed-off-by: York Sun > --- > > board/freescale/ls2080aqds/MAINTAINERS | 1 + > 1 file changed, 1 insertion(+) > Applied to fsl-qoriq master. Awaiting upstream. York

[U-Boot] [PATCH 7/7] boston: Introduce support for the MIPS Boston development board

2016-07-26 Thread Paul Burton
This patch introduces support for building U-Boot to run on the MIPS Boston development board. This is a board built around an FPGA & an Intel EG20T Platform Controller Hub, used largely as part of the development of new CPUs and their software support. It is essentially the successor to the older

[U-Boot] [PATCH 5/7] net: pch_gbe: Use dm_pci_map_bar to discover MMIO base

2016-07-26 Thread Paul Burton
Reading the PCI BAR & converting the result to a physical address is not safe across all architectures. For example on MIPS the virtual:physical mapping is not 1:1, so we cannot directly make use of the physical address. Use the more generic BAR-mapping function dm_pci_map_bar to discover the

[U-Boot] [PATCH 6/7] net: pch_gbe: Make 64 bit safe

2016-07-26 Thread Paul Burton
The pch_gbe driver previously casted pointers to & from unsigned 32 bit integers in many locations. This breaks the driver on 64 bit systems, producing streams of compiler warnings about mismatched pointer & integer sizes and then failing to keep track of addresses correctly at runtime. Fix the

[U-Boot] [PATCH 1/7] serial: ns16550: Support clocks via phandle

2016-07-26 Thread Paul Burton
Previously ns16550 compatible UARTs probed via device tree have needed their device tree nodes to contain a clock-frequency property. An alternative to this commonly used with Linux is to reference a clock via a phandle. This patch allows U-Boot to support that, retrieving the clock frequency by

[U-Boot] [PATCH 3/7] pci: xilinx: Add a driver for Xilinx AXI to PCIe bridge

2016-07-26 Thread Paul Burton
This patch adds a driver for the Xilinx AXI bridge for PCI express, an IP block which can be used on some generations of Xilinx FPGAs. This is mostly a case of implementing PCIe ECAM specification, but with some quirks about what devices are valid to access. Signed-off-by: Paul Burton

[U-Boot] [PATCH 2/7] dt-bindings: Add interrupt-controller/mips-gic.h header

2016-07-26 Thread Paul Burton
Import a copy of the dt-bindings/interrupt-controller/mips-gic.h header from Linux, such that we can use device trees which include it without modification. Signed-off-by: Paul Burton --- include/dt-bindings/interrupt-controller/mips-gic.h | 9 + 1 file changed,

[U-Boot] [PATCH 0/7] MIPS Boston Development Board Support

2016-07-26 Thread Paul Burton
This series introduces initial support for the MIPS Boston, and FPGA based development board & successor to the older Malta board. Further peripheral work is needed but this introduces the basics. This can be tested in a currently out-of-tree QEMU port if desired, which can be found in the boston

[U-Boot] [PATCH 4/7] pci: Flip condition for detecting non-PCI parent devices

2016-07-26 Thread Paul Burton
In pci_uclass_pre_probe an attempt is made to detect whether the parent of a device is a PCI device and that the device is thus a bridge. This was being done by checking whether the parent of the device is of the UCLASS_ROOT class. This causes problems if the PCI controller is a child of some

Re: [U-Boot] Stepping down as sunxi u-boot custodian

2016-07-26 Thread Tom Rini
On Mon, Jul 25, 2016 at 09:42:27AM +0200, Maxime Ripard wrote: > On Fri, Jul 15, 2016 at 10:45:34AM +0200, Hans de Goede wrote: > > Hi, > > > > On 04-07-16 14:57, Hans de Goede wrote: > > >Hi All, > > > > > >Between my $dayjob, linux-sunxi, other foss projects and last but > > >not least spending

Re: [U-Boot] [PATCH 1/3] sunxi: Add EMAC ethernet0 alias for H3 dtsi

2016-07-26 Thread Hans de Goede
Hi, On 07/22/2016 12:16 PM, Chen-Yu Tsai wrote: The sunxi ethernet address generation code looks for ethernet[0-3] aliases to find ethernet controllers to generate MAC addresses for. Without a valid address, the driver fails to register. Signed-off-by: Chen-Yu Tsai Thanks

[U-Boot] Please pull u-boot-sunxi master

2016-07-26 Thread Hans de Goede
Hi Tom, Here is the second sunxi pull-req for v2016.09, this adds some fixes to the h3 ethernet driver and disables it for now as it has too much issues. It also adds 1 new board. The following changes since commit 4579720412744dd13266a3505bb38ce2da819b4f: Prepare v2016.09-rc1 (2016-07-25

[U-Boot] [PATCH] sunxi: Disable sun8i emac driver

2016-07-26 Thread Hans de Goede
Disable the sun8i emac driver for now, there are 2 issues with it: 1) It is causing issues with network connectivity under the kernel driver, when booting the kernel with v2 of Corentin's sun8i-h3 emac driver, I get the connection status bouncing between connected at 100mbps full-duplex and being

[U-Boot] [PATCH] sunxi: Add defconfig and dts file for the Orange Pi PC Plus SBC

2016-07-26 Thread Hans de Goede
There is a new Orange Pi PC *Plus* version available now, this is an extended version of the regular Orange Pi PC with sdio wifi and an eMMC. The upstream kernel devs have decided that they want a separate dts for the PC Plus rather then sharing a single dts between the regular PC and the PC

[U-Boot] Please pull u-boot-fsl-qoriq master

2016-07-26 Thread york sun
Tom, The following changes since commit 29d63a59eaf1c9f3b37e249cda2a97e5e4f183f8: ARM: uniphier: add clock/reset settings for xHCI of ProXstream2 (2016-07-24 00:44:55 +0900) are available in the git repository at: git://git.denx.de/u-boot-fsl-qoriq.git for you to fetch changes up to

Re: [U-Boot] [PATCH v6 1/4] ARMv7: PSCI: add PSCI v1.0 functions skeleton

2016-07-26 Thread york sun
On 07/21/2016 03:10 AM, macro.wav...@gmail.com wrote: > From: Hongbo Zhang > > This patch adds all the PSCI v1.0 functions in to the common framework, with > all the functions returning "not implemented" by default, as a common > framework > all the dummy functions are

Re: [U-Boot] [PATCH] Trimslice config: update for Trimslice so SPI flash works

2016-07-26 Thread Stephen Warren
On 07/26/2016 03:45 PM, Steve Arnold wrote: So is there a fix to be had by maybe shifting both CONFIG_SPL_TEXT_BASE and CONFIG_SYS_TEXT_BASE a little bit? Steve On Tue, Jul 26, 2016 at 2:14 PM, Stephen Warren > wrote: On 07/26/2016

Re: [U-Boot] [Patch v3 5/5] drivers: net/fm: Add Fman support for LS1046A

2016-07-26 Thread york sun
On 07/05/2016 01:13 AM, Gong Qianyu wrote: > From: Mingkai Hu > > The Fman module on LS1046A is similiar with that on LS1043A but > LS1046A has one more XFI (10GbE) interface. > > Signed-off-by: Shaohui Xie > Signed-off-by: Mingkai Hu

Re: [U-Boot] [PATCH v6 2/4] ARMv7: PSCI: ls102xa: check target CPU ID before further operations

2016-07-26 Thread york sun
On 07/21/2016 03:10 AM, macro.wav...@gmail.com wrote: > From: Hongbo Zhang > > The input parameter CPU ID needs to be validated before furher oprations such > as CPU_ON, this patch introduces the function to do this. > > Signed-off-by: Wang Dongsheng

Re: [U-Boot] [PATCH] Trimslice config: update for Trimslice so SPI flash works

2016-07-26 Thread Steve Arnold
I did mention it was black and showed nothing on serial console with the default values, ie, building as-is doesn't even show u-boot trying to load (after flashing it to the SPI flash the last thing you see is "Resetting..."). Power it back up and nothing happens, no u-boot, nada. U-Boot

Re: [U-Boot] [Patch v3 3/5] armv8: fsl_lsch2: Add SerDes 2 support

2016-07-26 Thread york sun
On 07/05/2016 01:13 AM, Gong Qianyu wrote: > New SoC LS1046A belongs to Freescale Chassis Generation 2 and > has two SerDes so we need to add this support in fsl_lsch2. > The SoC related SerDes 2 support will be added in SoC patch. > > Signed-off-by: Gong Qianyu > --- > v3: >

Re: [U-Boot] [PATCH v2] include: usb: Rename USB controller base address mapping

2016-07-26 Thread york sun
On 06/07/2016 06:29 AM, Rajesh Bhagat wrote: > Remove Soc specific defines and use generic chasis specific defines > for USB controller base address mapping. > > Signed-off-by: Rajesh Bhagat > --- > Changes in v2: > - Rebased patch for latest u-boot > >

Re: [U-Boot] [PATCH] Trimslice config: update for Trimslice so SPI flash works

2016-07-26 Thread Steve Arnold
So is there a fix to be had by maybe shifting both CONFIG_SPL_TEXT_BASE and CONFIG_SYS_TEXT_BASE a little bit? Steve On Tue, Jul 26, 2016 at 2:14 PM, Stephen Warren wrote: > On 07/26/2016 12:49 PM, Steve Arnold wrote: > >> I did mention it was black and showed nothing on

[U-Boot] loading u-boot env from flash (eMMC 1) and not eMMC0 on am335x_evm

2016-07-26 Thread Shmuel Weiss
Hi All, I had to made a change into this file common/env_mmc.c in order to be able to Load u-boot env from the MMC1 in SPL. I had to change all occurrence of dev = 0 to dev = 1 inside this file, is it sound right ? Is the code not adapted to have this part configurable ? I have feeling that I

Re: [U-Boot] [PATCH] mx7_common: initialize generic timer on all CPU's

2016-07-26 Thread Max Krummenacher
Hi Stefan > From: Stefan Agner [mailto:ste...@agner.ch] > Sent: Dienstag, 26. Juli 2016 07:58 > > Use CONFIG_TIMER_CLK_FREQ to let the non-secure init code initialize the > generic timer on all CPU's. This allows to make use of the timer freuquency > register also on other CPU than the start CPU

Re: [U-Boot] [PATCH 2/2] uniphier: Drop CONFIG_I2C_EEPROM

2016-07-26 Thread Tom Rini
On Wed, Jul 27, 2016 at 03:54:31AM +0900, Masahiro Yamada wrote: > Hi Tom, > > > 2016-07-26 11:23 GMT+09:00 Tom Rini : > > On Tue, Jul 26, 2016 at 11:07:02AM +0900, Masahiro Yamada wrote: > >> Hi Tom, > >> > >> 2016-07-26 7:21 GMT+09:00 Tom Rini : > >> >

Re: [U-Boot] [PATCH v5 1/4] dts: add support for Rockchip rk3399 soc

2016-07-26 Thread Andreas Färber
Am 19.07.2016 um 15:16 schrieb Kever Yang: > These files are from kernel upstream: > "649a371 Add linux-next specific files for 20160616" > with some modification need by U-Boot: > - chosen with stdout-path to uart2. > - add clock-frequency for uart2 > > Signed-off-by: Kever Yang

Re: [U-Boot] [PATCH] Trimslice config: update for Trimslice so SPI flash works

2016-07-26 Thread Stephen Warren
On 07/26/2016 12:49 PM, Steve Arnold wrote: I did mention it was black and showed nothing on serial console with the default values, ie, building as-is doesn't even show u-boot trying to load (after flashing it to the SPI flash the last thing you see is "Resetting..."). Power it back up and

Re: [U-Boot] [Patch v3 4/5] armv8: fsl_lsch2: Add LS1046A SoC support

2016-07-26 Thread york sun
On 07/05/2016 01:13 AM, Gong Qianyu wrote: > From: Mingkai Hu > > The LS1046A processor is built on the QorIQ LS series architecture > combining four ARM A72 processor cores with DPAA 1.0 support. > > Signed-off-by: Hou Zhiqiang > Signed-off-by: Mihai

Re: [U-Boot] [PATCH] ARMv8/ls1046a: Cleanup the environment variables

2016-07-26 Thread york sun
On 07/21/2016 03:42 AM, Wenbin song wrote: > Cleanup the variables: "kernel_addr","ramdisk_addr", > "ramdisk_size","console". > > Signed-off-by: Wenbin Song > --- > include/configs/ls1043a_common.h | 5 + > 1 file changed, 1 insertion(+), 4 deletions(-) > Applied to

Re: [U-Boot] [Patch v3 1/5] armv8: fsl-layerscape: Add A72 core detection

2016-07-26 Thread york sun
On 07/05/2016 01:12 AM, Gong Qianyu wrote: > From: Alison Wang > > Add support to detect Cortex-A72 core for printing it out. > The Initiator Version of A72 core should be 0x4. > > Signed-off-by: Alison Wang > Signed-off-by: Mingkai Hu

Re: [U-Boot] [PATCH 2/2] armv8: ls1043aqds: Update MAINTAINERS

2016-07-26 Thread york sun
On 07/01/2016 07:41 AM, York Sun wrote: > Add ls1043aqds_lpuart_defconfig to file list. > > Signed-off-by: York Sun > > --- > > board/freescale/ls1043aqds/MAINTAINERS | 1 + > 1 file changed, 1 insertion(+) > Applied to fsl-qoriq master. Awaiting upstream. York

Re: [U-Boot] i2c: fsl: Fix driver initialization

2016-07-26 Thread york sun
On 05/23/2016 01:12 AM, mario@gdsys.cc wrote: > Due to a oversight in testing, the initialization of the recently > introduced Freescale I2C DM driver works only for 36 bit mode of e.g. > the MPC85XX SoCs (specifically, if the physical addresses are 64 bit > wide and the DT addresses 32 bit

Re: [U-Boot] [Patch v3 2/5] armv8: fsl-layerscape: Consolidate the LSCH2 common defines

2016-07-26 Thread york sun
On 07/05/2016 01:12 AM, Gong Qianyu wrote: > Both LS1012A and LS1043A belong to FSL_LSCH2 and share some common > configurations. So put the common define under FSL_LSCH2 to increase > readability. > > Signed-off-by: Gong Qianyu > --- > v3: > - New Patch. > >

Re: [U-Boot] [patch v2] armv8/ls1043a: Add MTD partition scheme

2016-07-26 Thread york sun
On 07/21/2016 04:06 AM, Wenbin song wrote: > From: Wenbin Song > > Add and share the the MTD partition scheme with kernel by defualt bootargs. > And add the "mtdparts" env. > > Signed-off-by: Wenbin Song > --- > Changes for v2: rebase > --- >

Re: [U-Boot] [PATCH v6 4/4] ARMv7: PSCI: ls102xa: move secure text section into OCRAM

2016-07-26 Thread york sun
On 07/21/2016 03:10 AM, macro.wav...@gmail.com wrote: > From: Hongbo Zhang > > LS1021 offers two secure OCRAM blocks for trustzone. > This patch moves all the secure text sections into the OCRAM. > > Signed-off-by: Wang Dongsheng > Signed-off-by:

Re: [U-Boot] [PATCH] armv8: fsl-layerscape: mmu: Fix enabling MMU

2016-07-26 Thread york sun
On 07/22/2016 10:52 AM, York Sun wrote: > MMU bit in SCTLR needs to be set explicitly after tables are > created. It isn't an issue for EL3 becuase this bit is already > set by early MMU setup. But for other exception levels this > bit was not set. > > Signed-off-by: York Sun >

Re: [U-Boot] [PATCH v6 3/4] ARMv7: PSCI: ls102xa: add more PSCI v1.0 functions implemention

2016-07-26 Thread york sun
On 07/21/2016 03:10 AM, macro.wav...@gmail.com wrote: > From: Hongbo Zhang > > This patch implements PSCI functions for ls102xa SoC following PSCI v1.0, > they are as the list: > psci_version, > psci_features, > psci_cpu_suspend, > psci_affinity_info, >

Re: [U-Boot] [PATCH 4/4] arm: ls1021atwr: Add SD secure boot target

2016-07-26 Thread york sun
On 06/14/2016 04:37 AM, Sumit Garg wrote: > Add SD secure boot target for ls1021atwr. > Implement board specific spl_board_init() to setup CAAM stream ID and > corresponding stream ID in SMMU. Change the u-boot size defined by a > macro for copying the main U-Boot by SPL to also include the u-boot

Re: [U-Boot] [PATCH 2/4] SECURE_BOOT: Enable chain of trust in SPL framework

2016-07-26 Thread york sun
On 06/14/2016 04:36 AM, Sumit Garg wrote: > Override jump_to_image_no_args function to include validation of > u-boot image using spl_validate_uboot before jumping to u-boot image. > Also define macros in SPL framework to enable crypto operations. > > Reviewed-by: Aneesh Bansal

Re: [U-Boot] [PATCH 3/4] SECURE_BOOT: Enable SD as a source for bootscript

2016-07-26 Thread york sun
On 06/14/2016 04:36 AM, Sumit Garg wrote: > Add support for reading bootscript and bootscript header from SD. Also > renamed macros *_FLASH to *_DEVICE to represent SD alongwith NAND and > NOR flash. > > Reviewed-by: Aneesh Bansal > Signed-off-by: Sumit Garg

Re: [U-Boot] [PATCH 2/2] uniphier: Drop CONFIG_I2C_EEPROM

2016-07-26 Thread Masahiro Yamada
Hi Tom, 2016-07-26 11:23 GMT+09:00 Tom Rini : > On Tue, Jul 26, 2016 at 11:07:02AM +0900, Masahiro Yamada wrote: >> Hi Tom, >> >> 2016-07-26 7:21 GMT+09:00 Tom Rini : >> > This option was set in the main uniphier config file, but was not >> > causing the

[U-Boot] [PATCH] ARM: uniphier: move CONFIG_I2C_EEPROM to defconfig

2016-07-26 Thread Masahiro Yamada
We already have the entry for this option in Kconfig, so let's migrate to it. Signed-off-by: Masahiro Yamada --- configs/uniphier_ld11_defconfig | 2 ++ configs/uniphier_ld20_defconfig | 2 ++ configs/uniphier_ld4_sld8_defconfig | 2 ++

Re: [U-Boot] [PATCH] Trimslice config: update for Trimslice so SPI flash works

2016-07-26 Thread Stephen Warren
On 07/25/2016 01:02 PM, Stephen Arnold wrote: From: Steve Arnold This updates the defaults for trimslice so it matches the last vendor config. Use the tegra-uboot-flasher tools to create mmc and spi flash images and flash to the device. Can optionally replace

Re: [U-Boot] [PATCH] mx7_common: initialize generic timer on all CPU's

2016-07-26 Thread Stefan Agner
Hi Max, On 2016-07-26 02:31, Max Krummenacher wrote: > Hi Stefan > >> From: Stefan Agner [mailto:ste...@agner.ch] >> Sent: Dienstag, 26. Juli 2016 07:58 >> >> Use CONFIG_TIMER_CLK_FREQ to let the non-secure init code initialize the >> generic timer on all CPU's. This allows to make use of the

Re: [U-Boot] a few questions about saving bootcount in the environment

2016-07-26 Thread Heiko Schocher
Hello Robert, Am 26.07.2016 um 14:21 schrieb Robert P. J. Day: On Mon, 25 Jul 2016, Heiko Schocher wrote: ... snip ... Yep ... why do we need "upgrade_available"? in ./common/autoboot.c on *every* boot bootcount_store() gets called, so on every boot (which can happen very often) the

Re: [U-Boot] [PATCH 1/2] mmc: sdhci: set to INT_DATA_END when there are data

2016-07-26 Thread Steve Rae
HI Lukasz, On Tue, Jul 26, 2016 at 2:13 AM, Lukasz Majewski wrote: > Hi Steve, > >> with this change, I can also set the following back to 100: >> >> diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c >> index de8d8ea..d593dc6 100644 >> --- a/drivers/mmc/sdhci.c >>

Re: [U-Boot] [PATCH v2] net: usb: r8152: Add DM support

2016-07-26 Thread Marek Vasut
On 07/26/2016 03:19 PM, Marek Vasut wrote: > On 07/26/2016 01:42 PM, Stefan Roese wrote: >> On 01.07.2016 04:01, Joe Hershberger wrote: >>> On Wed, Jun 29, 2016 at 12:58 AM, Stefan Roese wrote: Add support for driver model, so that CONFIG_DM_ETH can be defined and used

Re: [U-Boot] [PATCH] serial: Enable checking UART is ready for console based on device tree

2016-07-26 Thread Marek Vasut
On 07/26/2016 12:55 PM, Tien Fong Chee wrote: > This patch would do checking on device tree to ensure the UART exist > in the system and ready for console before setting have_console to true. > This is required to avoid unexpected behavior such as hang during UART > initialization. Can you

  1   2   >