Re: [U-Boot] [PATCH] common: add new boot media kconfig entry

2016-06-16 Thread Peng Fan
Hello Heiko, On Wed, Jun 15, 2016 at 05:34:49PM +0200, Heiko Schocher wrote: >Hello Peng, > >Am 15.06.2016 um 08:15 schrieb Peng Fan: >>Add CONFIG_{SD|NOR|NAND|ONENAND|SPI|QSPI|SATA}_BOOT kconfig entries. >> >>SoCs supports loading U-Boot from different medias to DRAM, such as >>i.MX6/7 supports lo

Re: [U-Boot] [PATCH] common: add new boot media kconfig entry

2016-06-16 Thread Peng Fan
Hi Joe, On Wed, Jun 15, 2016 at 10:11:39AM -0500, Joe Hershberger wrote: >Hi Peng, > >On Wed, Jun 15, 2016 at 1:15 AM, Peng Fan wrote: >> Add CONFIG_{SD|NOR|NAND|ONENAND|SPI|QSPI|SATA}_BOOT kconfig entries. >> >> SoCs supports loading U-Boot from different medias to DRAM, such as >> i.MX6/7 suppo

[U-Boot] [PATCH] dm: ehci-mx6: support driver model

2016-06-16 Thread Peng Fan
Support driver model for ehci mx6 driver. Consolidate code to be shared between DM and non-DM, such as introducing ehci_mx6_common_init. For simplicity, some old fasion code are keeped for DM usage, such as board_ehci_power and board_usb_phy_mode. And 'dr-mode', usbphy and vbus handling code for DM

[U-Boot] [PATCH] ehci: mx7: Fix OTG ID detection

2016-06-16 Thread Peng Fan
From: Ye Li 1. The offset for phy_status register in usbnc_regs is not correct. 2. We should clear the USBNC_PHYCFG2_ACAENB bit to enable the OTG ID detection, not set it. When the bit is set, the ACA Resistance Detection is enabled, which disables the OTG ID detection, because the interna

[U-Boot] [PATCH] cmd: usb: check if_type before using this device

2016-06-16 Thread Peng Fan
For legacy usb storage driver, USB_MAX_STOR_DEV is defined as 7. If we only have one usb disk on board, `usb dev 0` is ok. But if `usb dev 1`, still ok, then `usb read xxx` will trigger system fault and reboot. So check if_type before using this device. Signed-off-by: Peng Fan Cc: Simon Glass C

Re: [U-Boot] [PATCH v2 2/2] clk: at91: Add new clock driver

2016-06-16 Thread Yang, Wenyou
Hi Simon, > -Original Message- > From: s...@google.com [mailto:s...@google.com] On Behalf Of Simon Glass > Sent: 2016年6月10日 8:34 > To: Yang, Wenyou > Cc: U-Boot Mailing List ; Andreas Bießmann > ; Stephen Warren > Subject: Re: [PATCH v2 2/2] clk: at91: Add new clock driver > > +Stephen

[U-Boot] [PATCH] env: avoid build error for boards without CONFIG_SYS_{CPU, BOARD}

2016-06-16 Thread Masahiro Yamada
If CONFIG_ENV_VARS_UBOOT_CONFIG is enabled (it is by distro), this code causes build error for boards without CONFIG_SYS_{CPU,_BOARD}. Signed-off-by: Masahiro Yamada --- include/env_default.h | 4 1 file changed, 4 insertions(+) diff --git a/include/env_default.h b/include/env_default.h i

Re: [U-Boot] [RFC] x86: baytrail: azalia DT configuration mock-up

2016-06-16 Thread Bin Meng
Hi George, On Wed, Jun 15, 2016 at 1:12 AM, George McCollister wrote: > On Mon, Jun 13, 2016 at 9:09 PM, Bin Meng wrote: >> Hi George, >> >> On Mon, Jun 13, 2016 at 9:09 PM, George McCollister >> wrote: >>> On Fri, Jun 10, 2016 at 7:17 PM, Bin Meng wrote: Hi George, On Fri, Jun

Re: [U-Boot] [PATCH v2 1/2] clk: clk-uclass: Add post binding for CLK uclass

2016-06-16 Thread Yang, Wenyou
HI Simon, > -Original Message- > From: s...@google.com [mailto:s...@google.com] On Behalf Of Simon Glass > Sent: 2016年6月16日 10:44 > To: Yang, Wenyou > Cc: U-Boot Mailing List ; Andreas Bießmann > > Subject: Re: [PATCH v2 1/2] clk: clk-uclass: Add post binding for CLK uclass > > Hi Wenyo

Re: [U-Boot] [PATCH 3/4] x86: acpi: Pack global NVS into ACPI table

2016-06-16 Thread Bin Meng
Hi Simon, On Fri, Jun 17, 2016 at 11:52 AM, Simon Glass wrote: > Hi Bin, > > On 15 June 2016 at 02:33, Bin Meng wrote: >> Now that platform-specific ACPI global NVS is added, pack it into >> ACPI table and get its address fixed up. >> >> Signed-off-by: Bin Meng >> --- >> >> arch/x86/include/as

Re: [U-Boot] [PATCH v6 02/12] spi: davinci_spi: Convert to driver to adapt to DM

2016-06-16 Thread Vignesh R
On Friday 17 June 2016 03:40 AM, Jagan Teki wrote: > On Jun 16, 2016 4:12 PM, Vignesh R wrote: >> >> >> >> On Tuesday 24 May 2016 09:54 AM, Vignesh R wrote: >>> Convert davinci_spi driver so that it complies with SPI DM framework. >>> >>> Signed-off-by: Vignesh R >>> --- >>> >>> v6: Fix ret

Re: [U-Boot] [PATCH 2/2] x86: fsp: Wrap setup_internal_uart() call with CONFIG_INTERNAL_UART

2016-06-16 Thread Bin Meng
On Fri, Jun 17, 2016 at 11:51 AM, Simon Glass wrote: > On 14 June 2016 at 22:33, Bin Meng wrote: >> For any FSP enabled boards that want to enable debug UART support, >> setup_internal_uart() will be called, but this API is only available >> on BayTrail platform. Change to wrap it with CONFIG_INT

Re: [U-Boot] [PATCH] x86: conga-qeval20-qa3: Add support for internal UART

2016-06-16 Thread Bin Meng
On Fri, Jun 17, 2016 at 11:51 AM, Simon Glass wrote: > On 15 June 2016 at 06:15, Stefan Roese wrote: >> This patch adds support to enable and use the internal BayTrail UART >> instead of the one integrated in the Super IO Winbond chip. For this, >> a 2nd defconfig file is added. >> >> This is use

Re: [U-Boot] [PATCH 1/2] x86: baytrail: Introduce a Kconfig option for the internal UART

2016-06-16 Thread Bin Meng
On Fri, Jun 17, 2016 at 11:51 AM, Simon Glass wrote: > On 14 June 2016 at 22:33, Bin Meng wrote: >> There are quite a number of BayTrail boards that uses an external >> SuperIO chipset to provide the legacy UART. For such cases, it's >> better to have a Kconfig option to enable the internal UART.

Re: [U-Boot] [PATCH] test/py: fix printenv signon message disable code

2016-06-16 Thread Heiko Schocher
Hello Stephen, Am 16.06.2016 um 20:59 schrieb Stephen Warren: From: Stephen Warren CONFIG_VERSION_VARIABLE isn't always defined, so we can't simply look up its value directly, or an exception will occur if it isn't defined. Instead, we must use .get() to supply a default value if the variable

Re: [U-Boot] [RFC 8/9] arm: am4x: add FIT image post process function

2016-06-16 Thread Lokesh Vutla
On Thursday 16 June 2016 12:56 AM, Andreas Dannenberg wrote: > From: Madan Srinivas > > Adds a board specific FIT image post processing function when u-boot is > compiled for the high-secure (HS) device variant. > > Signed-off-by: Madan Srinivas > Signed-off-by: Andreas Dannenberg > --- > b

Re: [U-Boot] [RFC 6/9] arm: omap5: add FIT image post process function

2016-06-16 Thread Lokesh Vutla
On Thursday 16 June 2016 12:56 AM, Andreas Dannenberg wrote: > From: Daniel Allred > > Adds a board specific FIT image post processing function for when > CONFIG_SECURE_BOOT is defined. Also update the omap common config > header to enable CONFIG_SECURE_BOOT always for secure TI devices > (CON

Re: [U-Boot] [PATCH] drivers: usb: fsl: Fix NULL terminating issue for usb controller name string

2016-06-16 Thread Rajesh Bhagat
> -Original Message- > From: Marek Vasut [mailto:ma...@denx.de] > Sent: Thursday, June 02, 2016 5:49 PM > To: Rajesh Bhagat ; u-boot@lists.denx.de > Cc: york sun ; Sriram Dash > Subject: Re: [PATCH] drivers: usb: fsl: Fix NULL terminating issue for usb > controller > name string > > On

Re: [U-Boot] [RFC 4/9] arm: omap-common: add secure rom call API for secure devices

2016-06-16 Thread Lokesh Vutla
On Thursday 16 June 2016 12:56 AM, Andreas Dannenberg wrote: > From: Daniel Allred > > Adds a generic C-callable API for making secure ROM calls on OMAP and > OMAP-compatible devices. This API provides the important function of > flushing the ROM call arguments to memory from the cache, so that

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

2016-06-16 Thread Rajesh Bhagat
> -Original Message- > From: york sun > Sent: Friday, June 17, 2016 9:07 AM > To: Rajesh Bhagat ; u-boot@lists.denx.de > Cc: qianyu.g...@freescale.com; mingkai...@freescale.com; > prabha...@freescale.com > Subject: Re: [PATCH v2] include: usb: Rename USB controller base address > mapping

Re: [U-Boot] [PATCH] x86: Add Advantech SOM-DB5800/SOM-6867 support

2016-06-16 Thread Simon Glass
On 15 June 2016 at 08:51, George McCollister wrote: > Add support for Advantech SOM-DB5800 with the SOM-6867 installed. > This is very similar to conga-qeval20-qa3-e3845 in that there is a > reference carrier board (SOM-DB5800) with a Baytrail based SoM (SOM-6867) > installed. > > Currently suppor

Re: [U-Boot] MinnowMax GPIO for USB3

2016-06-16 Thread Simon Glass
Hi George, On 14 June 2016 at 15:36, George McCollister wrote: > On Mon, Jun 13, 2016 at 8:55 PM, Bin Meng wrote: >> Hi George, >> >> On Sun, Jun 12, 2016 at 5:26 PM, Bin Meng wrote: >>> On Sun, Jun 12, 2016 at 4:43 PM, Bin Meng wrote: Hi, My testing shows that only pin_usb_host

Re: [U-Boot] [PATCH v7 1/3] common: usb_storage: Make common function for usb_read_10/usb_write_10

2016-06-16 Thread Simon Glass
On 16 June 2016 at 04:35, Rajesh Bhagat wrote: > Performs code cleanup by making common function for usb_read_10/ > usb_write_10. Currently only difference in these fucntions is use > of SCSI_READ10/SCSI_WRITE10 scsi commands. > > Signed-off-by: Rajesh Bhagat > --- > Changes in v7: > - Makes com

Re: [U-Boot] arc: axs103 compile broken ?

2016-06-16 Thread Simon Glass
Hi Alexey, On 16 June 2016 at 00:36, Alexey Brodkin wrote: > Hi Simon, > > On Wed, 2016-06-15 at 18:39 -0600, Simon Glass wrote: >> Hi Alexey, >> >> On 14 June 2016 at 01:15, Alexey Brodkin wrote: >> > >> > Hi Heiko, >> > >> > On Tue, 2016-06-14 at 07:07 +0200, Heiko Schocher wrote: >> > > >> >

Re: [U-Boot] [PATCH] Respect SOURCE_DATE_EPOCH when building FIT images.

2016-06-16 Thread Simon Glass
On 16 June 2016 at 13:28, Vagrant Cascadian wrote: > Embedding timestamps in FIT images results in unreproducible builds > for targets that generate a fit image, such as dra7xx_evm. > > This patch uses the SOURCE_DATE_EPOCH environment variable, when set, > to use specified value for the date. > >

Re: [U-Boot] [PATCH v7 2/3] common: usb_storage: Make common function for usb_stor_read/usb_stor_write

2016-06-16 Thread Simon Glass
On 16 June 2016 at 04:35, Rajesh Bhagat wrote: > Performs code cleanup by making common function for usb_stor_read/ > usb_stor_write. Currently only difference in these fucntions is call > to usb_read_10/usb_write_10 scsi commands. > > Signed-off-by: Rajesh Bhagat > --- > Changes in v7: > - Move

Re: [U-Boot] [RFC 9/9] ti: omap-common: Update to generate secure FIT

2016-06-16 Thread Simon Glass
Hi Andreas, On 15 June 2016 at 13:26, Andreas Dannenberg wrote: > From: Daniel Allred > > Adds commands so that when a secure device is in use and the SPL is > built to load a FIT image (with combined u-boot binary and various > DTBs), these components that get fed into the FIT are all processed

Re: [U-Boot] [RFC 8/9] arm: am4x: add FIT image post process function

2016-06-16 Thread Simon Glass
On 15 June 2016 at 13:26, Andreas Dannenberg wrote: > From: Madan Srinivas > > Adds a board specific FIT image post processing function when u-boot is board-specific > compiled for the high-secure (HS) device variant. > > Signed-off-by: Madan Srinivas > Signed-off-by: Andreas Dannenberg > ---

Re: [U-Boot] [RFC 7/9] arm: am4x: add secure ROM signature verify API

2016-06-16 Thread Simon Glass
Hi Andreas, On 15 June 2016 at 13:26, Andreas Dannenberg wrote: > From: Madan Srinivas > > Adds an API that verifies a signature attached to an image (binary > blob). This API is basically a entry to a secure ROM service provided by > the device and accessed via an SMC call, using a particular c

Re: [U-Boot] [RFC 6/9] arm: omap5: add FIT image post process function

2016-06-16 Thread Simon Glass
On 15 June 2016 at 13:26, Andreas Dannenberg wrote: > From: Daniel Allred > > Adds a board specific FIT image post processing function for when > CONFIG_SECURE_BOOT is defined. Also update the omap common config > header to enable CONFIG_SECURE_BOOT always for secure TI devices > (CONFIG_TI_SECU

Re: [U-Boot] [RFC 5/9] arm: omap5: add secure ROM signature verify API

2016-06-16 Thread Simon Glass
On 15 June 2016 at 13:26, Andreas Dannenberg wrote: > From: Daniel Allred > > Adds an API that verifies a signature attached to an image (binary > blob). This API is basically a entry to a secure ROM service provided by > the device and accessed via an SMC call, using a particular calling > conve

Re: [U-Boot] [RFC 3/9] arm: omap-common: add secure smc entry

2016-06-16 Thread Simon Glass
On 15 June 2016 at 13:26, Andreas Dannenberg wrote: > From: Daniel Allred > > Adds an interface for calling secure ROM APIs across a range of OMAP and > OMAP compatible devices. > > Signed-off-by: Daniel Allred > Signed-off-by: Andreas Dannenberg > --- > arch/arm/cpu/armv7/omap-common/lowlevel

Re: [U-Boot] [RFC 1/9] spl: fit: add support for post-processing of images

2016-06-16 Thread Simon Glass
Hi Andreas, On 15 June 2016 at 13:26, Andreas Dannenberg wrote: > From: Daniel Allred > > The next stage boot loader image and the selected FDT can be > post-processed by board/platform/device-specific code, which can include > modifying the size and altering the starting source address before >

Re: [U-Boot] [RFC PATCH] env: Add a setenv that allows passing flags

2016-06-16 Thread Simon Glass
On 14 June 2016 at 13:39, Joe Hershberger wrote: > In some cases an interactive feature will be implemented using the > programmatic APIs, so the developer will want "interactive" behavior as > a result, so provide an API that will allow that to be specified. > > Signed-off-by: Joe Hershberger >

Re: [U-Boot] [RFC 4/9] arm: omap-common: add secure rom call API for secure devices

2016-06-16 Thread Simon Glass
On 15 June 2016 at 13:26, Andreas Dannenberg wrote: > From: Daniel Allred > > Adds a generic C-callable API for making secure ROM calls on OMAP and > OMAP-compatible devices. This API provides the important function of > flushing the ROM call arguments to memory from the cache, so that the > secu

Re: [U-Boot] [RFC 2/9] arm: cache: add missing dummy functions for when dcache disabled

2016-06-16 Thread Simon Glass
On 15 June 2016 at 13:26, Andreas Dannenberg wrote: > From: Daniel Allred > > Adds missing flush_dcache_range and invalidate_dcache_range dummy > (empty) placeholder functions to the #else portion of the #ifndef > CONFIG_SYS_DCACHE_OFF, where full implementations of these functions > are defined.

Re: [U-Boot] [PATCH 3/4] x86: acpi: Pack global NVS into ACPI table

2016-06-16 Thread Simon Glass
Hi Bin, On 15 June 2016 at 02:33, Bin Meng wrote: > Now that platform-specific ACPI global NVS is added, pack it into > ACPI table and get its address fixed up. > > Signed-off-by: Bin Meng > --- > > arch/x86/include/asm/acpi_table.h | 4 > .../x86/include/asm/arch-baytra

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

2016-06-16 Thread Simon Glass
On 14 June 2016 at 11:52, 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 > --- > arch/arm/include/asm/fsl_s

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

2016-06-16 Thread Simon Glass
On 14 June 2016 at 11:52, 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 + > 1 file changed, 1 insertion(+) Reviewed

Re: [U-Boot] [PATCH 1/4] x86: baytrail: Introduce ACPI global NVS

2016-06-16 Thread Simon Glass
On 15 June 2016 at 02:33, Bin Meng wrote: > This introduces baytrail-specific ACPI global NVS structure, defined in > both C header file and ASL file. > > Signed-off-by: Bin Meng > --- > > arch/x86/cpu/baytrail/acpi.c | 26 > ++ > .../include/asm/arch-b

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

2016-06-16 Thread Simon Glass
On 14 June 2016 at 11:52, 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-bo

Re: [U-Boot] [PATCH v5 2/2] powerpc/mpc85xx: T104x: Add nand secure boot target

2016-06-16 Thread Simon Glass
On 14 June 2016 at 11:21, Sumit Garg wrote: > For mpc85xx SoCs, the core begins execution from address 0xFFFC. > In non-secure boot scenario from NAND, this address will map to CPC > configured as SRAM. But in case of secure boot, this default address > always maps to IBR (Internal Boot ROM).

Re: [U-Boot] [PATCH] x86: conga-qeval20-qa3: Add support for internal UART

2016-06-16 Thread Simon Glass
On 15 June 2016 at 06:15, Stefan Roese wrote: > This patch adds support to enable and use the internal BayTrail UART > instead of the one integrated in the Super IO Winbond chip. For this, > a 2nd defconfig file is added. > > This is useful for tests done for the congatec SoM used on baseboards >

Re: [U-Boot] [RESEND] common: block: fix compiler error with CONFIG_FASTBOOT_FLASH_MMC_DEV

2016-06-16 Thread Simon Glass
On 15 June 2016 at 02:56, Ziyuan Xu wrote: > This fixes the following compiler error: > > common/fb_mmc.c: In function ‘fb_mmc_erase’: > common/fb_mmc.c:209:17: error: ‘struct blk_desc’ has no member named > ‘block_erase’ > > Signed-off-by: Ziyuan Xu > --- > common/fb_mmc.c | 2 +- > 1 file chan

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

2016-06-16 Thread Simon Glass
On 14 June 2016 at 11:52, 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 > Signed-off-by:

Re: [U-Boot] [PATCH v5 1/2] powerpc/mpc85xx: SECURE BOOT- Enable chain of trust in SPL

2016-06-16 Thread Simon Glass
Hi, On 14 June 2016 at 11:21, Sumit Garg wrote: > As part of Chain of Trust for Secure boot, the SPL U-Boot will validate > the next level U-boot image. Add a new function spl_validate_uboot to > perform the validation. > > Enable hardware crypto operations in SPL using SEC block. > In case of Se

Re: [U-Boot] [PATCH 2/4] x86: quark: Introduce ACPI global NVS

2016-06-16 Thread Simon Glass
On 15 June 2016 at 02:33, Bin Meng wrote: > This introduces quark-specific ACPI global NVS structure, defined in > both C header file and ASL file. > > Signed-off-by: Bin Meng > --- > > arch/x86/cpu/quark/acpi.c | 7 +++ > arch/x86/include/asm/arch-quark/acpi/globa

Re: [U-Boot] [PATCH 1/2] x86: baytrail: Introduce a Kconfig option for the internal UART

2016-06-16 Thread Simon Glass
On 14 June 2016 at 22:33, Bin Meng wrote: > There are quite a number of BayTrail boards that uses an external > SuperIO chipset to provide the legacy UART. For such cases, it's > better to have a Kconfig option to enable the internal UART. > > So far BayleyBay and MinnowMax boards are using intern

Re: [U-Boot] [PATCH 2/2] x86: fsp: Wrap setup_internal_uart() call with CONFIG_INTERNAL_UART

2016-06-16 Thread Simon Glass
On 14 June 2016 at 22:33, Bin Meng wrote: > For any FSP enabled boards that want to enable debug UART support, > setup_internal_uart() will be called, but this API is only available > on BayTrail platform. Change to wrap it with CONFIG_INTERNAL_UART. > > Signed-off-by: Bin Meng > --- > > arch/x8

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

2016-06-16 Thread york sun
On 06/16/2016 08:28 PM, Rajesh Bhagat wrote: > > >> -Original Message- >> From: york sun >> Sent: Thursday, June 16, 2016 9:13 PM >> To: Rajesh Bhagat ; u-boot@lists.denx.de >> Cc: qianyu.g...@freescale.com; mingkai...@freescale.com; >> prabha...@freescale.com >> Subject: Re: [PATCH v2] inc

Re: [U-Boot] [PATCH v2 2/4] usb: dwc3: Add helper functions to enable snooping and burst settings

2016-06-16 Thread Simon Glass
Hi Rajesh, On 13 June 2016 at 22:09, Rajesh Bhagat wrote: > > >> -Original Message- >> From: s...@google.com [mailto:s...@google.com] On Behalf Of Simon Glass >> Sent: Friday, June 10, 2016 6:05 AM >> To: Rajat Srivastava >> Cc: U-Boot Mailing List ; Lukasz Majewski >> ; Marek Vašut ; Al

Re: [U-Boot] [PATCH v2] dm: gpio: MPC85XX GPIO platform data support

2016-06-16 Thread Simon Glass
On 13 June 2016 at 16:17, Hamish Martin wrote: > Define a platform data structure for the MPC85XX GPIO driver to allow > use of the driver without device tree. Users should define the GPIO > blocks for their platform like this: > struct mpc85xx_gpio_plat gpio_blocks[] = { > { >

Re: [U-Boot] [PATCH] Drivers: SPI: spi_slave struct has no member called bus nor cs.

2016-06-16 Thread Simon Glass
Hi Ahmen, On 11 June 2016 at 13:47, Ahmed Samir Khalil wrote: > In case of Driver Model, spi_slave structure (in spi.c) doesn't > have member called bus or cs. Compiler error will be reported > when using the new Driver Model while assigning bus & cs to > non-members. This compiler error becomes

Re: [U-Boot] RFC, dm: devices and device_info platdata manual relocation

2016-06-16 Thread Simon Glass
Hi Angelo, On 14 May 2016 at 04:59, Angelo Dureghello wrote: > Hi all, > > i have seen, updating u-boot in NOR parallel flash, > that the U_BOOT_DEVICE structure "platdata" ptr is > still pointing to flash, so the update (rewriting > flash) die silently and fails. > > I have found a workaround us

Re: [U-Boot] U-Boot Minnowboard Max USB3.0 port not powering up

2016-06-16 Thread Simon Glass
Hi, On 9 June 2016 at 04:57, vinoth eswaran wrote: > Hello Bin, > > I am using the latest U-Boot version : u-boot-2016.07-rc1 > > I am seeing that after the bootup the USB port 3.0 -- the bottom one > in the board is not powering up. > > I compared the dmesg logs with UEFI and with u-boot. I und

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

2016-06-16 Thread Rajesh Bhagat
> -Original Message- > From: york sun > Sent: Thursday, June 16, 2016 9:13 PM > To: Rajesh Bhagat ; u-boot@lists.denx.de > Cc: qianyu.g...@freescale.com; mingkai...@freescale.com; > prabha...@freescale.com > Subject: Re: [PATCH v2] include: usb: Rename USB controller base address > mappi

Re: [U-Boot] [PATCH] x86: Add Advantech SOM-DB5800/SOM-6867 support

2016-06-16 Thread Bin Meng
Hi George, On Wed, Jun 15, 2016 at 10:51 PM, George McCollister wrote: > Add support for Advantech SOM-DB5800 with the SOM-6867 installed. > This is very similar to conga-qeval20-qa3-e3845 in that there is a > reference carrier board (SOM-DB5800) with a Baytrail based SoM (SOM-6867) > installed.

Re: [U-Boot] u-boot-x86 sf probe fail

2016-06-16 Thread Bin Meng
Hi Hilbert, On Thu, Jun 16, 2016 at 3:46 PM, Hilbert Tu(杜睿哲_Pegatron) wrote: > Hi Bin, > > Sorry for the top-posting. > > After check the datasheet, I think my SPI address was wrong due to null > ops->read_config in pci_bus_read_config(). I don't think pci_bus_read_config() has null ops->read_c

Re: [U-Boot] [PATCH 3/3] pci: Add board_ prefix to should_load_oprom() and make it weak

2016-06-16 Thread Bin Meng
On Thu, Jun 16, 2016 at 8:40 AM, Simon Glass wrote: > On 14 June 2016 at 02:02, Bin Meng wrote: >> For consistency with board_should_run_oprom(), do the same to >> should_load_oprom(). Board support codes can provide this one >> to override the default weak one. >> >> Signed-off-by: Bin Meng >>

Re: [U-Boot] [PATCH 2/3] pci: Make load_oprom and run_oprom independent

2016-06-16 Thread Bin Meng
On Thu, Jun 16, 2016 at 8:40 AM, Simon Glass wrote: > On 14 June 2016 at 02:02, Bin Meng wrote: >> At present should_load_oprom() calls board_should_run_oprom() to >> determine whether oprom should be loaded. But sometimes we just >> want to load oprom without running. Make them independent. >> >

Re: [U-Boot] [PATCH 1/3] pci: Remove CONFIG_ALWAYS_LOAD_OPROM

2016-06-16 Thread Bin Meng
On Thu, Jun 16, 2016 at 8:40 AM, Simon Glass wrote: > On 14 June 2016 at 02:02, Bin Meng wrote: >> This option is defined at nowhere. Remove it. >> >> Signed-off-by: Bin Meng >> --- >> >> drivers/pci/pci_rom.c | 2 -- >> 1 file changed, 2 deletions(-) > > Reviewed-by: Simon Glass applied to u

Re: [U-Boot] u-boot for Galileo board

2016-06-16 Thread Bin Meng
Hi Changcheng, On Thu, Jun 16, 2016 at 7:22 PM, Liu, Changcheng wrote: > Hi all, > > I have some questions about the u-boot for Galileo2 board. > > > > 1. Code: https://github.com/LeMaker/u-boot (it's for Galileo board which > could be ported for Galileo2 board) > > What's Galileo2 boar

Re: [U-Boot] [PATCH v6 02/12] spi: davinci_spi: Convert to driver to adapt to DM

2016-06-16 Thread Simon Glass
Hi Vignesh, On 23 May 2016 at 22:24, Vignesh R wrote: > Convert davinci_spi driver so that it complies with SPI DM framework. > > Signed-off-by: Vignesh R > --- > > v6: Fix retval on dev_map_physmem() failure. > > drivers/spi/davinci_spi.c | 329 > +-

Re: [U-Boot] [PATCH v6 02/12] spi: davinci_spi: Convert to driver to adapt to DM

2016-06-16 Thread Jagan Teki
On Jun 16, 2016 4:12 PM, Vignesh R wrote: > > > > On Tuesday 24 May 2016 09:54 AM, Vignesh R wrote: > > Convert davinci_spi driver so that it complies with SPI DM framework. > > > > Signed-off-by: Vignesh R > > --- > > > > v6: Fix retval on dev_map_physmem() failure. > > > Gentle ping

Re: [U-Boot] [PATCH] ARM: board: cm-fx6: fix mmc for old revisions of utilite

2016-06-16 Thread Christopher Spinrath
Hi Igor, On 06/16/2016 11:05 AM, Igor Grinberg wrote: > Hi Christopher, > > On 06/15/2016 06:38 PM, Christopher Spinrath wrote: >> Hi Nikita, >> >> On 06/15/2016 05:15 PM, Nikita Kiryanov wrote: >>> Hi CHristopher, >>> >>> On Wed, Jun 08, 2016 at 09:02:36PM +0200, Christopher Spinrath wrote:

Re: [U-Boot] [PATCH] ARM: board: cm-fx6: fix mmc for old revisions of utilite

2016-06-16 Thread Christopher Spinrath
Hi Nikita, On 06/16/2016 12:40 PM, Nikita Kiryanov wrote: > Hi Christopher, > > On Wed, Jun 15, 2016 at 05:38:10PM +0200, Christopher Spinrath wrote: >> Hi Nikita, >> >> On 06/15/2016 05:15 PM, Nikita Kiryanov wrote: >>> Hi CHristopher, >>> >>> On Wed, Jun 08, 2016 at 09:02:36PM +0200, Christophe

[U-Boot] [PATCH v2] ARM: board: cm-fx6: fix mmc for old revisions of utilite

2016-06-16 Thread Christopher Spinrath
Old revisions of Utilite (based on cm-fx6) do not have a dedicated card detect pin. But the card is removable by the user and card detection can be realized with polling (e.g. supported by Linux). Add the broken-cd property to the mmc device tree instead of the non-removable property to make card

[U-Boot] u-boot for Galileo board

2016-06-16 Thread Liu, Changcheng
Hi all, I have some questions about the u-boot for Galileo2 board. 1. Code: https://github.com/LeMaker/u-boot (it's for Galileo board which could be ported for Galileo2 board) 2. Confusing at the building process. a. objcopy --gap-fill=0xff -O binary -R .start16 -R

[U-Boot] [PATCH v2] ARM: AM437x: Sync defconfig between GP and HS EVM

2016-06-16 Thread Madan Srinivas
Adds missing NAND option to CONFIG_SYS_EXTRA_OPTIONS for AM437x HS EVMs. This syncs up the config options between GP and HS EVMs. Signed-off-by: Madan Srinivas Reviewed-by: Lokesh Vutla --- Changes in v2: Rebased patch to apply without errors on u-boot master branch. configs/am437x_hs_

[U-Boot] u-boot for Galileo board

2016-06-16 Thread Liu, Changcheng
Hi all, I have some questions about the u-boot for Galileo2 board. 1. Code: https://github.com/LeMaker/u-boot (it's for Galileo board which could be ported for Galileo2 board) 2. Confusing at the building process. a. objcopy --gap-fill=0xff -O binary -R .start16 -R

[U-Boot] [PATCH] mmc: add MMC_VERSION_5_1

2016-06-16 Thread Stefan Wahren
Signed-off-by: Stefan Wahren --- drivers/mmc/mmc.c |3 +++ include/mmc.h |1 + 2 files changed, 4 insertions(+) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 7586558..aabfc71 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -1227,6 +1227,9 @@ static int mmc_startu

[U-Boot] [PATCH v3] ARM: AM437x: Enable FIT for hs platforms

2016-06-16 Thread Madan Srinivas
Adds FIT support to the SPL and u-boot for AM437x HS devices. Signed-off-by: Madan Srinivas Reviewed-by: Lokesh Vutla --- Changes in v3: Rebased patch to apply without errors on u-boot master branch. Changes in v2: Removes NAND that was incorrectly added in v1 to CONFIG_

Re: [U-Boot] u-boot-x86 sf probe fail

2016-06-16 Thread 杜睿哲_Pegatron
Hi Bin, Sorry for the top-posting. After check the datasheet, I think my SPI address was wrong due to null ops->read_config in pci_bus_read_config(). My dts file: spi: spi { #address-cells = <1>; #size-cells = <0>;

Re: [U-Boot] [PATCH v2] ARM: AM437x: Sync defconfig between GP and HS EVM

2016-06-16 Thread Andreas Dannenberg
On Thu, Jun 16, 2016 at 03:42:31PM -0400, Madan Srinivas wrote: > Adds missing NAND option to CONFIG_SYS_EXTRA_OPTIONS for > AM437x HS EVMs. This syncs up the config options between > GP and HS EVMs. > > Signed-off-by: Madan Srinivas > Reviewed-by: Lokesh Vutla Tested-by: Andreas Dannenberg >

Re: [U-Boot] [PATCH v3] ARM: AM437x: Enable FIT for hs platforms

2016-06-16 Thread Andreas Dannenberg
On Thu, Jun 16, 2016 at 03:42:32PM -0400, Madan Srinivas wrote: > Adds FIT support to the SPL and u-boot for AM437x HS devices. > > Signed-off-by: Madan Srinivas > Reviewed-by: Lokesh Vutla Tested-by: Andreas Dannenberg > --- > Changes in v3: > Rebased patch to apply without errors on u

[U-Boot] [PATCH] Respect SOURCE_DATE_EPOCH when building FIT images.

2016-06-16 Thread Vagrant Cascadian
Embedding timestamps in FIT images results in unreproducible builds for targets that generate a fit image, such as dra7xx_evm. This patch uses the SOURCE_DATE_EPOCH environment variable, when set, to use specified value for the date. Thanks to HW42 for debugging the issue and providing the patch:

Re: [U-Boot] [PATCH] net: rtl8169: fix switching between adapters

2016-06-16 Thread Stephen Warren
On 06/02/2016 04:06 PM, Joe Hershberger wrote: On Wed, Jun 1, 2016 at 11:40 AM, Stephen Warren wrote: On 04/26/2016 04:05 PM, Joe Hershberger wrote: On Tue, Apr 26, 2016 at 4:29 PM, Stephen Warren wrote: From: Stephen Warren The rtl8169 driver uses a global variable to store the register

[U-Boot] [PATCH] test/py: fix printenv signon message disable code

2016-06-16 Thread Stephen Warren
From: Stephen Warren CONFIG_VERSION_VARIABLE isn't always defined, so we can't simply look up its value directly, or an exception will occur if it isn't defined. Instead, we must use .get() to supply a default value if the variable isn't defined. Fixes: da37f006e7c5 ("tests: py: disable main_sig

Re: [U-Boot] [PATCH v2] ARM: AM437x: Enable FIT for hs platforms

2016-06-16 Thread Andreas Dannenberg
Hi Madan, On Fri, Jun 10, 2016 at 04:32:07PM -0400, Madan Srinivas wrote: > Adds FIT support to the SPL and u-boot for AM437x HS devices. as discussed offline your patch no longer cleanly applies to the U-Boot master. Can you please re-post your rebased version here, also including an updated ver

Re: [U-Boot] [PATCH v2 5/5] fastboot: sparse: improve CHUNK_TYPE_FILL write performance

2016-06-16 Thread Steve Rae
On Thu, Jun 16, 2016 at 10:34 AM, Steve Rae wrote: > On Wed, Jun 15, 2016 at 1:36 AM, Maxime Ripard > wrote: >> On Tue, Jun 07, 2016 at 11:19:39AM -0700, Steve Rae wrote: >>> - increase the size of the fill buffer >>> - testing has shown a 10x improvement when the sparse image >>> has large CHU

Re: [U-Boot] [PATCH v2 5/5] fastboot: sparse: improve CHUNK_TYPE_FILL write performance

2016-06-16 Thread Steve Rae
On Wed, Jun 15, 2016 at 1:36 AM, Maxime Ripard wrote: > On Tue, Jun 07, 2016 at 11:19:39AM -0700, Steve Rae wrote: >> - increase the size of the fill buffer >> - testing has shown a 10x improvement when the sparse image >> has large CHUNK_TYPE_FILL chunks >> >> Signed-off-by: Steve Rae >> --- >

Re: [U-Boot] [PATCH v2 2/5] fastboot: sparse: resync common/image-sparse.c (part 1)

2016-06-16 Thread Steve Rae
On Wed, Jun 15, 2016 at 1:18 AM, Maxime Ripard wrote: > > On Tue, Jun 07, 2016 at 11:19:36AM -0700, Steve Rae wrote: > > This file originally came from upstream code. > > > > While retaining the storage abstraction feature, this is the first > > set of the changes required to resync with the > >

Re: [U-Boot] [PATCH] arm: lib: Fix fix push/pop-section directives

2016-06-16 Thread Stephen Warren
On 06/04/2016 04:46 PM, Marek Vasut wrote: Repair typos in the previous "arm: lib: fix push/pop-section directives" patch, which prevented VCMA9 board from building. Reviewed-by: Stephen Warren Oops, I evidently didn't re-run buildman on enough boards after I fixed up some other typos:-( __

Re: [U-Boot] [PATCH v1 02/12] tests: py: disable main_signon check for printenv cmd

2016-06-16 Thread Stephen Warren
On 05/18/2016 10:37 AM, Stephen Warren wrote: On 05/18/2016 08:18 AM, Heiko Schocher wrote: if CONFIG_VERSION_VARIABLE is set, the U-Boot environment contains a "vers" variable with the current U-Boot version string. If now "printenv" is called, test/py fails as it detects the main_sign string,

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

2016-06-16 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 > diff --git a/include/linux/usb/xhci-fsl.

Re: [U-Boot] [PATCH] pico-imx6ul: Add NFS boot support

2016-06-16 Thread Fabio Estevam
On Wed, Jun 15, 2016 at 1:53 PM, Diego Dorta wrote: > Add script for retrieving the kernel via TFTP and mounting the > rootfs via NFS. > > Signed-off-by: Diego Dorta Acked-by: Fabio Estevam ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.den

Re: [U-Boot] [PATCH v7 0/3] common: usb_storage : Implement logic to calculate optimal

2016-06-16 Thread Marek Vasut
On 06/16/2016 12:35 PM, Rajesh Bhagat wrote: > Performs code cleanup by making common function for usb_stor_read/write > and implements the logic to calculate the optimal usb maximum trasfer blocks > instead of sending USB_MAX_XFER_BLK blocks which is 65535 and 20 in case > of EHCI and other USB pr

Re: [U-Boot] socfpga 2016.05, CV socdk Rev E1, SPL and u-boot fail when booting from QSPI

2016-06-16 Thread Marek Vasut
On 06/16/2016 12:13 PM, Christian Didriksson wrote: > Hi! Hi, >> On 06/15/2016 12:06 PM, Christian Didriksson wrote: >>> Trying again. >> >> Hi! >> >>> I have reverted back to a vanilla u-boot-2016.05, added the >>> not-enter-quad-mode patch >> >> What's this patch ? Can you share it ? [...] Th

Re: [U-Boot] [PATCH v2] ARM: board: cm-fx6: fix mmc for old revisions of utilite

2016-06-16 Thread Igor Grinberg
On 06/16/2016 03:02 PM, Christopher Spinrath wrote: > Old revisions of Utilite (based on cm-fx6) do not have a dedicated > card detect pin. But the card is removable by the user and card > detection can be realized with polling (e.g. supported by Linux). > > Add the broken-cd property to the mmc

Re: [U-Boot] [PATCH] ARM: board: cm-fx6: fix mmc for old revisions of utilite

2016-06-16 Thread Igor Grinberg
On 06/16/2016 02:21 PM, Christopher Spinrath wrote: > Hi Igor, > > On 06/16/2016 11:05 AM, Igor Grinberg wrote: >> Hi Christopher, >> >> On 06/15/2016 06:38 PM, Christopher Spinrath wrote: >>> Hi Nikita, [...] One nit-pick below: > > Fixes: 41855186afd3 ("arm: mx6: cm-fx6: modi

[U-Boot] what is Flash Address Table why we can use(Board/---/flash.c)?

2016-06-16 Thread Rama Chandra
Hai sir, I am using S29JL064H Spansion FLASH Memory, In this case 4 Banks used. For U-Boot i am taken OCOTEA Reference Board i am taken only 3 banks initialized in (Board/ocotea/flash.c) flash.c file Flash Address table why we are using and same addresses for starting thing -- Thanks & Regards, R

Re: [U-Boot] [PATCH v6 02/12] spi: davinci_spi: Convert to driver to adapt to DM

2016-06-16 Thread Vignesh R
On Tuesday 24 May 2016 09:54 AM, Vignesh R wrote: > Convert davinci_spi driver so that it complies with SPI DM framework. > > Signed-off-by: Vignesh R > --- > > v6: Fix retval on dev_map_physmem() failure. Gentle ping > > drivers/spi/davinci_spi.c | 329 >

Re: [U-Boot] [PATCH] ARM: board: cm-fx6: fix mmc for old revisions of utilite

2016-06-16 Thread Nikita Kiryanov
Hi Christopher, On Wed, Jun 15, 2016 at 05:38:10PM +0200, Christopher Spinrath wrote: > Hi Nikita, > > On 06/15/2016 05:15 PM, Nikita Kiryanov wrote: > > Hi CHristopher, > > > > On Wed, Jun 08, 2016 at 09:02:36PM +0200, Christopher Spinrath wrote: > >> Old revisions of Utilite (based on cmfx6) d

[U-Boot] [PATCH v7 2/3] common: usb_storage: Make common function for usb_stor_read/usb_stor_write

2016-06-16 Thread Rajesh Bhagat
Performs code cleanup by making common function for usb_stor_read/ usb_stor_write. Currently only difference in these fucntions is call to usb_read_10/usb_write_10 scsi commands. Signed-off-by: Rajesh Bhagat --- Changes in v7: - Moves unification of usb_read_10/usb_write_10 to other patch Chang

[U-Boot] [PATCH v7 3/3] common: usb_storage : Implement logic to calculate optimal usb maximum trasfer blocks

2016-06-16 Thread Rajesh Bhagat
Implements the logic to calculate the optimal usb maximum trasfer blocks instead of sending USB_MAX_XFER_BLK blocks which is 65535 and 20 in case of EHCI and other USB protocols respectively. It defines USB_MIN_XFER_BLK/USB_MAX_XFER_BLK trasfer blocks that should be checked for success starting fr

[U-Boot] [PATCH v7 1/3] common: usb_storage: Make common function for usb_read_10/usb_write_10

2016-06-16 Thread Rajesh Bhagat
Performs code cleanup by making common function for usb_read_10/ usb_write_10. Currently only difference in these fucntions is use of SCSI_READ10/SCSI_WRITE10 scsi commands. Signed-off-by: Rajesh Bhagat --- Changes in v7: - Makes common function for usb_read_10/usb_write_10 common/usb_storage.

[U-Boot] [PATCH v7 0/3] common: usb_storage : Implement logic to calculate optimal

2016-06-16 Thread Rajesh Bhagat
Performs code cleanup by making common function for usb_stor_read/write and implements the logic to calculate the optimal usb maximum trasfer blocks instead of sending USB_MAX_XFER_BLK blocks which is 65535 and 20 in case of EHCI and other USB protocols respectively. Rajesh Bhagat (3): common: u

[U-Boot] [PATCH] arc: Use "-mcpu=archs" instead of deprecated "-marchs" for ARC HS

2016-06-16 Thread Alexey Brodkin
Newer ARC toolchains don't support "-marchs" option any longer. Instead "-mcpu=archs" should be used. What's also important older toiolchains that support ARC HS cores will also happily accept "-mcpu=archs" so that's a very safe move. Signed-off-by: Alexey Brodkin --- arch/arc/config.mk | 4 ++--

Re: [U-Boot] socfpga 2016.05, CV socdk Rev E1, SPL and u-boot fail when booting from QSPI

2016-06-16 Thread Christian Didriksson
Hi! > On 06/15/2016 12:06 PM, Christian Didriksson wrote: > > Trying again. > > Hi! > > > I have reverted back to a vanilla u-boot-2016.05, added the > > not-enter-quad-mode patch > > What's this patch ? Can you share it ? > These are the changes I have made to 2016.05: diff --git a/board/al

Re: [U-Boot] [PATCH] i.MX6 nand bootupdate

2016-06-16 Thread Ladislav Michl
Hi Stefano, On Wed, Jun 15, 2016 at 12:14:21PM +0200, Stefano Babic wrote: > Hi Sergey, > > > On 14/06/2016 20:32, Sergey Kubushyn wrote: > > Here is the initial support for writing i.MX6 NAND U-Boot into NAND > > with all FCB and DBBT stuff as required. > > > > This is a very interesting feat

  1   2   >