Re: [U-Boot] [PATCH] usb: udc: Fix warnings on 64-bit builds

2015-12-07 Thread Lukasz Majewski
Hi Michal, > Hi Marek and Lukasz, > > On 3.11.2015 11:14, Lukasz Majewski wrote: > > Hi Michal, > > > >> Cast u32 bit value to 64bit before recasting to 64bit pointer to > >> avoid pointer from integer cast size mismatch warnings. > >> > >> Warning log: > >>

Re: [U-Boot] [PATCH v5] arm: Add sata support on Layerscape ARMv8 board

2015-12-07 Thread York Sun
On 12/07/2015 07:04 PM, Tang Yuantian-B29983 wrote: > Hi York, > >> -Original Message- >> From: York Sun [mailto:york...@freescale.com] >> Sent: Tuesday, December 08, 2015 12:27 AM >> To: Tang Yuantian-B29983 >> Cc: u-boot@lists.denx.de; si...@writeme.com

[U-Boot] Secure Boot Mode on rk3288 Radxa Rock2

2015-12-07 Thread Geoff Cleary
We have successfully built u-boot loader for rk3288 from the rock_bsp repository here: https://github.com/radxa/rock-bsp.git We were able to create keys and sign the loader image using the secureBootConsole tool we found here:

Re: [U-Boot] [PATCH] mkimage: Fix generating multi and script images again

2015-12-07 Thread Philippe De Swert
Hi, On 07/12/15 21:06, Tom Rini wrote: On Mon, Dec 07, 2015 at 06:01:54PM +0100, Marek Vasut wrote: Seems 6ae6e160 broke creating multi and script type images and even building of mkimage itself. There are two problems with that patch. First is that expression (!(x == 0) || !(x == 1)) is

Re: [U-Boot] [PATCH 5/7] lib: split out strtoxxxx functions out of vsprintf.c

2015-12-07 Thread Sjoerd Simons
On Mon, 2015-12-07 at 17:39 -0700, Simon Glass wrote: > Hi Sjoerd, > > On 4 December 2015 at 15:27, Sjoerd Simons > wrote: > > To allow the various string to number conversion functions to be > > used > > when using tiny-printf,split them out into their own file

Re: [U-Boot] [PATCH] usb: udc: Fix warnings on 64-bit builds

2015-12-07 Thread Michal Simek
On 8.12.2015 07:59, Lukasz Majewski wrote: > Hi Michal, > >> Hi Marek and Lukasz, >> >> On 3.11.2015 11:14, Lukasz Majewski wrote: >>> Hi Michal, >>> Cast u32 bit value to 64bit before recasting to 64bit pointer to avoid pointer from integer cast size mismatch warnings.

Re: [U-Boot] [PATCH 4/7] lib: Split panic functions out of vsprintf.c

2015-12-07 Thread Sjoerd Simons
On Mon, 2015-12-07 at 17:39 -0700, Simon Glass wrote: > > diff --git a/lib/Makefile b/lib/Makefile > > index 1f1ff6f..ae84833 100644 > > --- a/lib/Makefile > > +++ b/lib/Makefile > > @@ -85,13 +85,13 @@ obj-$(CONFIG_LIB_RAND) += rand.o > >  ifdef CONFIG_SPL_BUILD > >  # SPL U-Boot may use

Re: [U-Boot] [PATCH 6/7] mmc: mmc: Don't use sprintf when using tiny-printf

2015-12-07 Thread Sjoerd Simons
On Mon, 2015-12-07 at 17:40 -0700, Simon Glass wrote: > On 4 December 2015 at 15:27, Sjoerd Simons > wrote: > > There is no sprintf implementation in tiny-printf, so don't try to > > use > > it when tiny-printf if used. > > > > Signed-off-by: Sjoerd Simons

Re: [U-Boot] [PATCH] imx_common: check for Serial Downloader in spl_boot_device

2015-12-07 Thread Eric Nelson
Hi Stefano, On 12/07/2015 02:55 AM, Stefano Babic wrote: > Hi Eric, > > On 05/12/2015 21:13, Eric Nelson wrote: >> Hi Stefano, >> >> On 12/04/2015 02:02 AM, Stefano Babic wrote: >>> Check for bmode before reading the boot device >>> to check if a serial downloader is started, >>> and returns

Re: [U-Boot] mmc erase fails from U-Boot command line

2015-12-07 Thread Eric Nelson
Hi Fabio, On 12/06/2015 05:21 PM, Fabio Estevam wrote: > Hi Eric, > > On Fri, Dec 4, 2015 at 8:42 PM, Eric Nelson wrote: > >> I've figured out a way to repeat this on my machine. >> >> If I write 0xff's to the eMMC blocks, then issue an erase for the same, >> I get the problem

Re: [U-Boot] [PATCH 5/6] arm: socfpga: Introduce common board code

2015-12-07 Thread Chin Liang See
On Mon, 2015-12-07 at 15:37 +0100, Marek Vasut wrote: > On Monday, December 07, 2015 at 03:29:16 PM, Chin Liang See wrote: > > On Mon, 2015-12-07 at 15:23 +0100, Marek Vasut wrote: > > > On Monday, December 07, 2015 at 02:32:04 PM, Chin Liang See > > > wrote: > > > > On Mon, 2015-12-07 at 14:23

Re: [U-Boot] [PATCH] spi: Add cadence compatible string

2015-12-07 Thread Jagan Teki
On 7 December 2015 at 17:36, Michal Simek wrote: > Extend compatible list table for cdns,spi-r1p6 compatible string. > > Signed-off-by: Michal Simek > --- Applied to u-boot-spi/master thanks! -- Jagan.

[U-Boot] [PATCH] CONFIG_NEEDS_MANUAL_RELOC: Fix warnings when not set

2015-12-07 Thread Tom Rini
Now that we may compile (but not link) code calling fixup_cmdtable when this is not set, we need to always have the declaration available. We should also make sure that anyone calling the function includes as that's where the function declaration is. Signed-off-by: Tom Rini

Re: [U-Boot] [PATCH] imx: mx7: enable CONFIG_FSL_CLK

2015-12-07 Thread Stefano Babic
On 29/10/2015 08:59, Peng Fan wrote: > This commit "677f970bc62a661690b3431543d5a5d5e682ba70" introduce a new > macro "CONFIG_FSL_CLK" that get_clocks() should not be limited by ESDHC. > > But that patch missed to enable it for i.MX7. THis patch enables > CONFIG_FSL_CLK to let get_clocks work. >

Re: [U-Boot] [PATCH 5/6] arm: socfpga: Introduce common board code

2015-12-07 Thread Marek Vasut
On Monday, December 07, 2015 at 02:32:04 PM, Chin Liang See wrote: > On Mon, 2015-12-07 at 14:23 +0100, Marek Vasut wrote: > > On Monday, December 07, 2015 at 01:53:48 PM, Chin Liang See wrote: > > > > [...] > > > > > > diff --git a/arch/arm/mach-socfpga/board.c b/arch/arm/mach > > > >

Re: [U-Boot] [PATCH] imx_common: check for Serial Downloader in spl_boot_device

2015-12-07 Thread Stefano Babic
Hi Eric, On 07/12/2015 15:08, Eric Nelson wrote: >> I agree with you, in fact it does not work - but I do not see a way to >> inform the ROM that next time it should run with USB as boot device. >> From the fusemap, I tried to set BOOT_CFG4 as 0x40 ("Reserved for serial >> ROM"), and fixing

Re: [U-Boot] [PATCH] arm: socfpga: Fix cache configuration

2015-12-07 Thread Chin Liang See
On Mon, 2015-12-07 at 15:44 +0100, Marek Vasut wrote: > On Monday, December 07, 2015 at 03:37:17 PM, Chin Liang See wrote: > > On Thu, 2015-12-03 at 17:22 +0100, Marek Vasut wrote: > > > On Thursday, December 03, 2015 at 05:11:23 PM, Chin Liang See > > > wrote: > > > > > > [...] > > > > > > > >

Re: [U-Boot] [PATCH 5/6] arm: socfpga: Introduce common board code

2015-12-07 Thread Marek Vasut
On Monday, December 07, 2015 at 03:29:16 PM, Chin Liang See wrote: > On Mon, 2015-12-07 at 15:23 +0100, Marek Vasut wrote: > > On Monday, December 07, 2015 at 02:32:04 PM, Chin Liang See wrote: > > > On Mon, 2015-12-07 at 14:23 +0100, Marek Vasut wrote: > > > > On Monday, December 07, 2015 at

[U-Boot] [PATCH] CONFIG_NEEDS_MANUAL_RELOC: Fix warnings when not set

2015-12-07 Thread Tom Rini
Now that we may compile (but not link) code calling fixup_cmdtable when this is not set, we need to always have the declaration available. We should also make sure that anyone calling the function includes as that's where the function declaration is. Signed-off-by: Tom Rini

[U-Boot] [PATCH] x86: Fix PCI UART compatible string for crownbay and galileo

2015-12-07 Thread Bin Meng
With recent ns16550 driver changes, we only changed the legacy UART (at I/O port 0x3f8) compatible string, but forgot to change the PCI UART compatible string. Now fix it. Signed-off-by: Bin Meng --- arch/x86/dts/crownbay.dts | 8 arch/x86/dts/galileo.dts | 2 +-

Re: [U-Boot] [PATCH] imx: mx6: add missing return value

2015-12-07 Thread Stefano Babic
On 30/11/2015 02:46, Peng Fan wrote: > Hi Jeroen, > On Sun, Nov 29, 2015 at 06:30:34PM +0100, Jeroen Hofstee wrote: >> cc: Peng Fan >> Signed-off-by: Jeroen Hofstee >> --- >> not tested ;) >> >> arch/arm/cpu/armv7/mx6/clock.c | 2 ++ >> 1 file

Re: [U-Boot] [PATCH 5/6] arm: socfpga: Introduce common board code

2015-12-07 Thread Marek Vasut
On Monday, December 07, 2015 at 01:53:48 PM, Chin Liang See wrote: [...] > > diff --git a/arch/arm/mach-socfpga/board.c b/arch/arm/mach > > -socfpga/board.c > > new file mode 100644 > > index 000..a41d089 > > --- /dev/null > > +++ b/arch/arm/mach-socfpga/board.c > > I am thinking this can

Re: [U-Boot] [PATCH] mx6cuboxi: use load instead of fatload

2015-12-07 Thread Stefano Babic
On 14/11/2015 19:25, Thomas Bechtold wrote: > From: Thomas Bechtold > > That way the FS can also be ext2/3/4 . > --- > include/configs/mx6cuboxi.h | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/include/configs/mx6cuboxi.h

[U-Boot] [PATCH] mmc: update MMC_ERASE argument to match Linux kernel.

2015-12-07 Thread Eric Nelson
Table 41 of the JEDEC standard for eMMC says that bit 31 of the command argument is obsolete when issuing the ERASE command (CMD38) on page 115 of this document: http://www.jedec.org/sites/default/files/docs/jesd84-B45.pdf The SD Card Association Physical Layer Simplified Specification

Re: [U-Boot] [PATCH 6/6] arm: socfpga: Drop the board boilerplate

2015-12-07 Thread Marek Vasut
On Monday, December 07, 2015 at 01:56:23 PM, Chin Liang See wrote: > On Sat, 2015-12-05 at 21:44 +0100, Marek Vasut wrote: > > Drop all the common board code, since it is not completely useless. > > > > Signed-off-by: Marek Vasut > > Cc: Chin Liang See > > Cc:

Re: [U-Boot] [PATCH 6/6] arm: socfpga: Drop the board boilerplate

2015-12-07 Thread Chin Liang See
On Mon, 2015-12-07 at 14:22 +0100, Marek Vasut wrote: > On Monday, December 07, 2015 at 01:56:23 PM, Chin Liang See wrote: > > On Sat, 2015-12-05 at 21:44 +0100, Marek Vasut wrote: > > > Drop all the common board code, since it is not completely > > > useless. > > > > > > Signed-off-by: Marek

Re: [U-Boot] [PATCH V2 1/7] net: phy: micrel: Configure KSZ9021/KSZ9031 skew from OF

2015-12-07 Thread Chin Liang See
On Mon, 2015-12-07 at 14:18 +0100, Marek Vasut wrote: > Add code to process the KSZ9021/KSZ9031 OF props if they are present > and configure skew registers based on the information from the OF. > This code is only enabled if the DM support for ethernet is also > enabled. > > Signed-off-by: Marek

Re: [U-Boot] [PATCH v2] mx6sxsabresd: Fix Ethernet PHY reset sequence

2015-12-07 Thread Stefano Babic
On 04/12/2015 14:13, Fabio Estevam wrote: > Hi Stefano, > > On Mon, Nov 23, 2015 at 4:18 PM, Fabio Estevam wrote: >> From: Fabio Estevam >> >> Since commit 59370f3fcd1350 ("net: phy: delay only if reset handler is >> registered") Ethernet is no

Re: [U-Boot] Samsung I2C driver

2015-12-07 Thread Przemyslaw Marczak
Hello Simon, On 12/07/2015 02:07 PM, Simon Glass wrote: Hi Przemyslaw, At present this driver has a few implementations and supports non-device-tree and non-driver model. From I can see the odroid and perhaps one other platform need conversion and then all of this old stuff can be removed. Do

Re: [U-Boot] [PATCH] arm: socfpga: Fix cache configuration

2015-12-07 Thread Chin Liang See
On Thu, 2015-12-03 at 17:22 +0100, Marek Vasut wrote: > On Thursday, December 03, 2015 at 05:11:23 PM, Chin Liang See wrote: > > [...] > > > > I have another board where I cannot use UBI on QSPI NOR and > > > reverting > > > this > > > patch magically fixes things. > > > > I was testing this

Re: [U-Boot] [PATCH] arm: socfpga: Fix cache configuration

2015-12-07 Thread Marek Vasut
On Monday, December 07, 2015 at 03:37:17 PM, Chin Liang See wrote: > On Thu, 2015-12-03 at 17:22 +0100, Marek Vasut wrote: > > On Thursday, December 03, 2015 at 05:11:23 PM, Chin Liang See wrote: > > > > [...] > > > > > > I have another board where I cannot use UBI on QSPI NOR and > > > >

Re: [U-Boot] [PATCH] SPI: Fix correct target name for ZynqMP

2015-12-07 Thread Jagan Teki
On 7 December 2015 at 16:03, Michal Simek wrote: > ZynqMP is using different symbol. > Use correct one. > > Signed-off-by: Michal Simek > --- Applied to u-boot-spi/master thanks! -- Jagan. ___ U-Boot

Re: [U-Boot] [PATCH 5/6] arm: socfpga: Introduce common board code

2015-12-07 Thread Chin Liang See
On Mon, 2015-12-07 at 15:23 +0100, Marek Vasut wrote: > On Monday, December 07, 2015 at 02:32:04 PM, Chin Liang See wrote: > > On Mon, 2015-12-07 at 14:23 +0100, Marek Vasut wrote: > > > On Monday, December 07, 2015 at 01:53:48 PM, Chin Liang See > > > wrote: > > > > > > [...] > > > > > > > >

Re: [U-Boot] [PATCH 5/6] arm: socfpga: Introduce common board code

2015-12-07 Thread Chin Liang See
On Mon, 2015-12-07 at 14:23 +0100, Marek Vasut wrote: > On Monday, December 07, 2015 at 01:53:48 PM, Chin Liang See wrote: > > [...] > > > > diff --git a/arch/arm/mach-socfpga/board.c b/arch/arm/mach > > > -socfpga/board.c > > > new file mode 100644 > > > index 000..a41d089 > > > ---

Re: [U-Boot] [PATCH v2 09/26] dm: serial: Convert ns16550 driver to use driver model PCI API

2015-12-07 Thread Bin Meng
On Mon, Nov 30, 2015 at 4:17 AM, Simon Glass wrote: > Use the driver model version of the function to find the BAR. This updates > the fdtdec function, of which ns16550 is the only user. > > The fdtdec_get_pci_bdf() function is dropped for several reasons: > - with driver model

Re: [U-Boot] [PATCH] imx: mx6: fix reg base address when runtime usage

2015-12-07 Thread Stefano Babic
On 30/11/2015 09:04, Peng Fan wrote: > Should use parenthese to wrap the macro definition, otherwise > we will encounter error like the following: > > " > if (base_addr != LCDIF1_BASE_ADDR) { > puts("Wrong LCD interface!\n"); > return -EINVAL; > } > " > > Without this patch, we will

Re: [U-Boot] [PATCH V2] ARM: imx: fsl_esdhc: fix usage of low 4 bits of sysctl register

2015-12-07 Thread Stefano Babic
On 04/12/2015 20:32, Eric Nelson wrote: > The low four bits of the SYSCTL register are reserved on the USDHC > controller on i.MX6 and i.MX7 processors, but are used for clocking > operations on earlier models. > > Guard against their usage by hiding the bit mask macros on those > processors. >

Re: [U-Boot] [PATCH 3/5] ls102xa: Enable snoop and DVM message requests.

2015-12-07 Thread York Sun
On 12/04/2015 10:59 PM, Yuan Yao wrote: > Signed-off-by: Yuan Yao > --- > > arch/arm/cpu/armv7/ls102xa/soc.c | 8 +++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/cpu/armv7/ls102xa/soc.c > b/arch/arm/cpu/armv7/ls102xa/soc.c > index

Re: [U-Boot] [PATCH 5/6] arm: socfpga: Introduce common board code

2015-12-07 Thread Marek Vasut
On Monday, December 07, 2015 at 03:56:01 PM, Chin Liang See wrote: [...] > > The cpu_eth_init() could use improvement, but we don't support > > generic > > reset handling yet I believe. That's the only thing which is > > obviously > > visible there, which could be improved. > > > > The other

Re: [U-Boot] [PATCH] mkimage: Fix generating multi and script images again

2015-12-07 Thread Wolfgang Denk
Dear Marek, In message <1449507714-9599-1-git-send-email-ma...@denx.de> you wrote: > > Second is the coding which causes gcc 4.9.x and newer scream gruesome > death and murder. The expression !x == 0 && !x == 1 is ambiguous and > should instead be rewritten into (x != 0) && (x != 1) to be

Re: [U-Boot] [PATCH v5] arm: Add sata support on Layerscape ARMv8 board

2015-12-07 Thread York Sun
On 12/06/2015 07:09 PM, Tang Yuantian-B29983 wrote: > Hi York, > > Please see explanation inline. > >> -Original Message- >> From: York Sun [mailto:york...@freescale.com] >> Sent: Saturday, December 05, 2015 1:25 AM >> To: Tang Yuantian-B29983 >> Cc:

Re: [U-Boot] [PATCH 3/5] Data type defined for pointer addresses

2015-12-07 Thread York Sun
Guys, Please comment on this new typedef. I am not comfortable to accept it. On 11/18/2015 09:41 PM, Aneesh Bansal wrote: > A new data type uintptr_t has been defined for creating > pointers (32 or 64 bit depending on Core) from 32 bit variables > storing the address. > If a 32 bit variable

Re: [U-Boot] [PATCH 3/5] Data type defined for pointer addresses

2015-12-07 Thread Tom Rini
On Mon, Dec 07, 2015 at 09:33:45AM -0800, York Sun wrote: > > > On 12/07/2015 09:14 AM, Scott Wood wrote: > > On Mon, 2015-12-07 at 12:08 -0500, Tom Rini wrote: > >> On Mon, Dec 07, 2015 at 08:50:28AM -0800, York Sun wrote: > >>> Guys, > >>> > >>> Please comment on this new typedef. I am not

Re: [U-Boot] [PATCH v3] armv8: fsl-layerscale: Rewrite reserving memory for MC and debug server

2015-12-07 Thread York Sun
On 11/22/2015 09:53 AM, York Sun wrote: > > > On 11/22/2015 08:11 AM, Simon Glass wrote: >> Hi York, >> >>> diff --git a/common/board_f.c b/common/board_f.c >>> index 8061105..2fd1c21 100644 >>> --- a/common/board_f.c >>> +++ b/common/board_f.c >>> @@ -316,6 +316,15 @@ __weak ulong

Re: [U-Boot] [PATCH 3/5] Data type defined for pointer addresses

2015-12-07 Thread York Sun
On 12/07/2015 09:14 AM, Scott Wood wrote: > On Mon, 2015-12-07 at 12:08 -0500, Tom Rini wrote: >> On Mon, Dec 07, 2015 at 08:50:28AM -0800, York Sun wrote: >>> Guys, >>> >>> Please comment on this new typedef. I am not comfortable to accept it. >>> >>> On 11/18/2015 09:41 PM, Aneesh Bansal

Re: [U-Boot] ns16550: change reg-shift property default to zero

2015-12-07 Thread Stephen Warren
On 12/06/2015 03:07 PM, Tom Rini wrote: On Sun, Nov 29, 2015 at 02:01:03PM +0800, Thomas Chou wrote: Change reg-shift property default to zero. When the integer property is missing, it should be taken as zero. This is consistent to Linux drivers/tty/serial/of_serial.c. It's not generally

Re: [U-Boot] [PATCH] mkimage: Fix generating multi and script images again

2015-12-07 Thread Marek Vasut
On Monday, December 07, 2015 at 06:18:02 PM, Philippe De Swert wrote: > Hi, > > I haven't had time to check the previous report yet. > > On 07/12/15 19:01, Marek Vasut wrote: > > Seems 6ae6e160 broke creating multi and script type images and even > > building of mkimage itself. There are two

[U-Boot] [PATCH] mkimage: Fix generating multi and script images again

2015-12-07 Thread Marek Vasut
Seems 6ae6e160 broke creating multi and script type images and even building of mkimage itself. There are two problems with that patch. First is that expression (!(x == 0) || !(x == 1)) is always true for unsigned int x. The expression must use AND (&&) not OR (||) to be correct. Second is the

Re: [U-Boot] [PATCH 3/5] Data type defined for pointer addresses

2015-12-07 Thread Scott Wood
On Mon, 2015-12-07 at 12:08 -0500, Tom Rini wrote: > On Mon, Dec 07, 2015 at 08:50:28AM -0800, York Sun wrote: > > Guys, > > > > Please comment on this new typedef. I am not comfortable to accept it. > > > > On 11/18/2015 09:41 PM, Aneesh Bansal wrote: > > > A new data type uintptr_t has been

Re: [U-Boot] [PATCH 3/5] Data type defined for pointer addresses

2015-12-07 Thread Bansal Aneesh
It is required because the variable is 32 bit in length and it must be typecasted to a pointer before passing to some functions. The pointer length is 64 bit on 64 bit cores and 32 bit on 32 bit cores. So if I have (u8*)csf_hdr_addr, a warning is given on 64 bit cores like ARMv8 on LS1043.

Re: [U-Boot] [PATCH 3/5] Data type defined for pointer addresses

2015-12-07 Thread Tom Rini
On Mon, Dec 07, 2015 at 08:50:28AM -0800, York Sun wrote: > Guys, > > Please comment on this new typedef. I am not comfortable to accept it. > > On 11/18/2015 09:41 PM, Aneesh Bansal wrote: > > A new data type uintptr_t has been defined for creating > > pointers (32 or 64 bit depending on Core)

Re: [U-Boot] u-boot retries with fallback to other images

2015-12-07 Thread Wolfgang Denk
Dear Brendan, In message <5665634e.8050...@etrix.com.au> you wrote: > > > Note that the key problem with such a simplistic approach is that it > > will not help you in case an image looks OK, but hangs during boot - > > in that case, you need a watchdow and support for the bootcount > > feature.

Re: [U-Boot] [PATCH] usb: xhci: Fix vendor command error if the request type is USB_REQ_SET_ADDRESS or USB_REQ_SET_CONFIGURATION.

2015-12-07 Thread Joe Culler
Hi Anand, I have a odroid-xu4, but it doesn't detect the rtl8153: U-Boot 2016.01-rc1-00441-g75507d5-dirty (Dec 07 2015 - 15:46:09 +0800) for ODROID-XU3 CPU: Exynos5422 @ 800 MHz Model: Odroid XU3 based on EXYNOS5422 Board: Odroid XU3 based on EXYNOS5422 Type: xu4 DRAM: 2 GiB

[U-Boot] [GIT PULL] Zynq changes

2015-12-07 Thread Michal Simek
Hi Tom, please pull these changes. It is moving GEM to DM and fixes problems with SPL. The last three patches are fixing MANUAL_RELOC and enabling SPL_SIMPLE_BUS by default. Thanks, Michal The following changes since commit 75507d5d5496a691aecb731f87d4d8d5cdf62b77: am33xx: Update serial

Re: [U-Boot] [PATCH] net: eth_designware: select PHYLIB in Kconfig

2015-12-07 Thread Bin Meng
On Sun, Dec 6, 2015 at 9:19 PM, Thomas Chou wrote: > Select PHYLIB in drivers/net/Kconfig. And remove CONFIG_PHYLIB > from legacy board header files. > > This fixed the warnings when both ALTERA_TSE and ETH_DESIGNWARE > are selected. > > Reported-by: Pavel Machek

Re: [U-Boot] [PATCH] net: eth_designware: select PHYLIB in Kconfig

2015-12-07 Thread Bin Meng
Hi Thomas, On Mon, Dec 7, 2015 at 2:35 PM, Thomas Chou wrote: > Hi Bin, > > On 2015年12月07日 09:50, Bin Meng wrote: >> >> Hi Thomas, >> >> On Sun, Dec 6, 2015 at 9:19 PM, Thomas Chou wrote: >>> >>> Select PHYLIB in drivers/net/Kconfig. And remove

Re: [U-Boot] [PATCH 1/7] net: phy: micrel: Configure KSZ9021/KSZ9031 skew from OF

2015-12-07 Thread Chin Liang See
On Sat, 2015-12-05 at 21:41 +0100, Marek Vasut wrote: > Add code to process the KSZ9021/KSZ9031 OF props if they are present > and configure skew registers based on the information from the OF. > This code is only enabled if the DM support for ethernet is also > enabled. > Nice as I noticed the

Re: [U-Boot] [PATCH] net: eth_designware: select PHYLIB in Kconfig

2015-12-07 Thread Pavel Machek
On Sun 2015-12-06 21:19:56, Thomas Chou wrote: > Select PHYLIB in drivers/net/Kconfig. And remove CONFIG_PHYLIB > from legacy board header files. > > This fixed the warnings when both ALTERA_TSE and ETH_DESIGNWARE > are selected. > Acked-by: Pavel Machek Tested-by: Pavel Machek

[U-Boot] [PATCH 1/5] armv8/ls1043a: remove print info

2015-12-07 Thread Mingkai Hu
Signed-off-by: Mingkai Hu --- drivers/net/fm/ls1043.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/net/fm/ls1043.c b/drivers/net/fm/ls1043.c index cf2cc95..93ba318 100644 --- a/drivers/net/fm/ls1043.c +++ b/drivers/net/fm/ls1043.c

[U-Boot] [PATCH 3/5] armv8/ls1043a: Implement workaround for PEX erratum A009929

2015-12-07 Thread Mingkai Hu
Consecutive write transactions from core to PCI express outbound path hangs after 25 to 30 transactions depending on core freq. This erratum enable the mbist clock through COP register setting. Signed-off-by: Mingkai Hu --- arch/arm/cpu/armv8/fsl-layerscape/soc.c

[U-Boot] [PATCH 2/5] armv8/fsl_lsch2: fix DCSR_DCFG address

2015-12-07 Thread Mingkai Hu
Signed-off-by: Mingkai Hu --- arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h b/arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h

[U-Boot] [PATCH 5/5] armv8/ls1043aqds: change core frequency to 1600MHz

2015-12-07 Thread Mingkai Hu
For SD boot and NAND boot. Signed-off-by: Mingkai Hu --- board/freescale/ls1043aqds/ls1043aqds_rcw_nand.cfg | 4 ++-- board/freescale/ls1043aqds/ls1043aqds_rcw_sd_ifc.cfg | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git

Re: [U-Boot] fw_env.config settings for Digilent ZedBoard (Zynq 7020 Soc)

2015-12-07 Thread Anatolij Gustschin
Hi, On Sun, 6 Dec 2015 12:01:08 +1100 "Brendan Simon (eTRIX)" wrote: > Hi, > > I'm using a Digilent ZedBoard with a Xilinx Zynq 7020 SoC. The kernel > is from Analog Devices and is a fork of 4.0.0 (according to the Makefile). > > I am struggling to work out the

[U-Boot] [PATCH] fdt: Change OF_BAD_ADDR to FDT_ADDR_T_NONE

2015-12-07 Thread Bin Meng
Currently OF_BAD_ADDR is always -1ULL. When using OF_BAD_ADDR as the return value of dev_get_addr(), it creates potential size mismatch as dev_get_addr() uses FDT_ADDR_T_NONE as the return value which can be either -1U or -1ULL depending on CONFIG_PHYS_64BIT. Now we change OF_BAD_ADDR to

Re: [U-Boot] [PATCH] usb: xhci: Fix vendor command error if the request type is USB_REQ_SET_ADDRESS or USB_REQ_SET_CONFIGURATION.

2015-12-07 Thread Joe Culler
Oops, please ignore this message. The rtl8153 is detected :) On Mon, Dec 7, 2015 at 4:16 PM, Joe Culler wrote: > Hi Anand, > > I have a odroid-xu4, but it doesn't detect the rtl8153: > > U-Boot 2016.01-rc1-00441-g75507d5-dirty (Dec 07 2015 - 15:46:09 +0800) for >

Re: [U-Boot] [PATCH 4/6] arm: socfpga: Switch CONFIG_HOSTNAME to CONFIG_SYS_BOARD

2015-12-07 Thread Marek Vasut
On Monday, December 07, 2015 at 07:25:31 AM, Chin Liang See wrote: > On Sat, 2015-12-05 at 21:44 +0100, Marek Vasut wrote: > > We already have the CONFIG_SYS_BOARD variable, which defines the name > > of the board. The value in CONFIG_HOSTNAME is exactly the same and is > > thus just a duplicity,

Re: [U-Boot] [PATCH v5 2/3] cfi_flash: convert to driver model

2015-12-07 Thread Thomas Chou
Hi Jagan, On 2015年12月06日 23:03, Jagan Teki wrote: On 6 December 2015 at 19:05, Thomas Chou wrote: Hi Jagan, On 2015年12月06日 21:10, Jagan Teki wrote: This probing is not specific to CFI flash. It will probe all flash variants of MTD uclass. This is something I'm

Re: [U-Boot] [PATCH 002/159] arm: mx6: Reduce SPL malloc pool size

2015-12-07 Thread Stefano Babic
Hi Lin, On 07/12/2015 04:04, Lin Huang wrote: > From: Marek Vasut > > Using 50 MiB malloc pool in SPL is nonsense. Since the caches are not > enabled in SPL, it takes 2 seconds to init the pool and has no obvious > benefit. Reduce the size to 1 MiB. > > Signed-off-by: Marek

Re: [U-Boot] [PATCH 1/1] fsl_qspi: Pet the watchdog while reading/writing

2015-12-07 Thread Alexander Stein
Hi Fabio, On Friday 04 December 2015 18:54:15, Fabio Estevam wrote: > On Wed, Nov 4, 2015 at 6:19 AM, Alexander Stein > wrote: > > When reading a large blob. e.g. a linux kernel (several MiBs) a watchdog > > timeout might occur meanwhile. So pet the

Re: [U-Boot] [PATCH 1/1] fsl_qspi: Pet the watchdog while reading/writing

2015-12-07 Thread Alexander Stein
On Friday 04 December 2015 12:10:47, York Sun wrote: > > On 12/03/2015 05:56 PM, Wang Huan-B18965 wrote: > >> On 12/03/2015 01:49 AM, Wang Huan-B18965 wrote: > >> > >> > >> > > The actual command which results in a watchdog reset is 'sf read > 0x8104 0x20 0x40'. Please

[U-Boot] [PATCH 4/5] armv8/ls1043ardb: change core frequency to 1600MHz

2015-12-07 Thread Mingkai Hu
For SD boot and NAND boot. Signed-off-by: Mingkai Hu --- board/freescale/ls1043ardb/ls1043ardb_rcw_nand.cfg | 4 ++-- board/freescale/ls1043ardb/ls1043ardb_rcw_sd.cfg | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git

Re: [U-Boot] [PATCH] imx_common: check for Serial Downloader in spl_boot_device

2015-12-07 Thread Stefano Babic
Hi Eric, On 05/12/2015 21:13, Eric Nelson wrote: > Hi Stefano, > > On 12/04/2015 02:02 AM, Stefano Babic wrote: >> Check for bmode before reading the boot device >> to check if a serial downloader is started, >> and returns UART if the serial downloader is set, >> letting SPL to wait for an

Re: [U-Boot] [PATCH 4/6] arm: socfpga: Switch CONFIG_HOSTNAME to CONFIG_SYS_BOARD

2015-12-07 Thread Chin Liang See
On Mon, 2015-12-07 at 09:36 +0100, Marek Vasut wrote: > On Monday, December 07, 2015 at 07:25:31 AM, Chin Liang See wrote: > > On Sat, 2015-12-05 at 21:44 +0100, Marek Vasut wrote: > > > We already have the CONFIG_SYS_BOARD variable, which defines the > > > name > > > of the board. The value in

Re: [U-Boot] [PATCH v2 10/26] dm: x86: ivybridge: Convert graphics init to use DM PCI API

2015-12-07 Thread Bin Meng
On Mon, Nov 30, 2015 at 4:17 AM, Simon Glass wrote: > Use the driver-model PCI functions here where possible. For now we have to > search for the device with pci_bus_find_bdf() but at some point we can put > this in a proper driver and avoid this. > > Signed-off-by: Simon Glass

[U-Boot] [PATCH] SPI: Fix correct target name for ZynqMP

2015-12-07 Thread Michal Simek
ZynqMP is using different symbol. Use correct one. Signed-off-by: Michal Simek --- drivers/spi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index a0dbd8b640d8..2cdb11025f88 100644 ---

Re: [U-Boot] [PATCH v2 12/26] dm: pci: video: Convert video and pci_rom to use DM PCI API

2015-12-07 Thread Bin Meng
On Mon, Nov 30, 2015 at 4:17 AM, Simon Glass wrote: > Adjust these files to use the driver-model PCI API instead of the legacy > functions. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Rename pci_run_vga_bios() to dm_pci_run_vga_bios() > -

Re: [U-Boot] [PATCH v2 13/26] dm: x86: pci: Adjust bios_run_on_x86() to use the DM PCI API

2015-12-07 Thread Bin Meng
On Mon, Nov 30, 2015 at 4:17 AM, Simon Glass wrote: > This function should take a struct udevice rather than pci_dev_t. Update it. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v2: None > >

Re: [U-Boot] [PATCH v2 14/26] dm: pci: Drop the old version of pci_find_device/s()

2015-12-07 Thread Bin Meng
On Mon, Nov 30, 2015 at 4:17 AM, Simon Glass wrote: > Move these functions into the compatibility file so that they are not > available by default. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Move the functions into pci_common.c so they can

Re: [U-Boot] [PATCH v2 15/26] dm: pci: Drop the old version of pci_find_class()

2015-12-07 Thread Bin Meng
On Mon, Nov 30, 2015 at 4:18 AM, Simon Glass wrote: > Move this function into the compatibility file so that it is not available > by default. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Move the functions into pci_common.c so they can be

Re: [U-Boot] u-boot retries with fallback to other images

2015-12-07 Thread Brendan Simon (eTRIX)
Hi Wolfgang, On 7/12/2015 5:23 PM, Wolfgang Denk wrote: > Dear Brendan, > > In message <5663b74e.7000...@etrix.com.au> you wrote: >> Is there any documentation or u-boot support for having a list of boot >> images to try, starting with the first in the list, trying 1, 2 or 3 >> times, then trying

Re: [U-Boot] [PATCH v2 11/26] dm: Convert bios_interrupts to use DM PCI API

2015-12-07 Thread Bin Meng
On Mon, Nov 30, 2015 at 4:17 AM, Simon Glass wrote: > Adjust this code to use driver model for devices where possible. Since > existing users have not been converted the old code must remain. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Drop

Re: [U-Boot] [PATCH v2 21/26] dm: ahci: Convert to use new DM PCI API

2015-12-07 Thread Bin Meng
On Mon, Nov 30, 2015 at 4:18 AM, Simon Glass wrote: > Convert this driver to use the new driver model PCI API. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Fix use of 'pdev' instead of 'dev' > - Get the vendor from the PCI parent platdata > -

Re: [U-Boot] [PATCH v2 18/26] dm: pci: Add driver model API functions for address mapping

2015-12-07 Thread Bin Meng
Hi Simon, On Mon, Nov 30, 2015 at 4:18 AM, Simon Glass wrote: > At present the PCI address map functions use the old API. Add new functions > for this so that drivers can be converted. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Add missing

Re: [U-Boot] [PATCH v2 23/26] dm: Convert PCI MMC over to use DM PCI API

2015-12-07 Thread Bin Meng
On Mon, Nov 30, 2015 at 4:18 AM, Simon Glass wrote: > At present pci_mmc_init() does not correctly use the PCI function since the > list it passes is not terminated. The array size passed to pci_mmc_init() is > actually not used correctly. Fix this and adjust the pci_mmc_init()

Re: [U-Boot] [PATCH 7/7] arm: socfpga: socrates: Remove Micrel PHY configuration

2015-12-07 Thread Chin Liang See
On Sat, 2015-12-05 at 21:41 +0100, Marek Vasut wrote: > The Micrel PHY configuration is now done from OF, so hard-coding > the configuration into the board file is no longer necessary. > > Signed-off-by: Marek Vasut > Cc: Joe Hershberger > Cc: Chin Liang

Re: [U-Boot] [PATCH 1/7] net: phy: micrel: Configure KSZ9021/KSZ9031 skew from OF

2015-12-07 Thread Marek Vasut
On Monday, December 07, 2015 at 11:00:21 AM, Chin Liang See wrote: > On Sat, 2015-12-05 at 21:41 +0100, Marek Vasut wrote: > > Add code to process the KSZ9021/KSZ9031 OF props if they are present > > and configure skew registers based on the information from the OF. > > This code is only enabled

Re: [U-Boot] [PATCH 3/7] arm: socfpga: arria5-socdk: Remove Micrel PHY configuration

2015-12-07 Thread Chin Liang See
On Sat, 2015-12-05 at 21:41 +0100, Marek Vasut wrote: > The Micrel PHY configuration is now done from OF, so hard-coding > the configuration into the board file is no longer necessary. > > Signed-off-by: Marek Vasut > Cc: Joe Hershberger > Cc: Chin Liang

Re: [U-Boot] [PATCH] cgtqmx6eval: Fix defconfig name

2015-12-07 Thread Otavio Salvador
On Wed, Nov 25, 2015 at 9:09 AM, Otavio Salvador wrote: > After the conversion to SPL the defconfig was renamed, so adjust it. > > Signed-off-by: Otavio Salvador Ping? -- Otavio Salvador O.S. Systems

Re: [U-Boot] [PATCH 1/7] arm: socfpga: Allow DWC2 UDC probing from OF

2015-12-07 Thread Chin Liang See
On Sat, 2015-12-05 at 21:43 +0100, Marek Vasut wrote: > The USB gadget framework does not support DM yet, so add this bit > to let DWC2 UDC probe from OF on platforms which support it. > > Signed-off-by: Marek Vasut > Cc: Simon Glass > Cc: Chin Liang See

[U-Boot] [PATCH] usb: gadget: f_thor: free the allocated out request buffer

2015-12-07 Thread Michal Simek
From: Siva Durga Prasad Paladugu Fix the memory leak by freeing the allocated out request buffer Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- drivers/usb/gadget/f_thor.c | 4 1

Re: [U-Boot] [PATCH] usb: udc: Fix warnings on 64-bit builds

2015-12-07 Thread Michal Simek
Hi Marek and Lukasz, On 3.11.2015 11:14, Lukasz Majewski wrote: > Hi Michal, > >> Cast u32 bit value to 64bit before recasting to 64bit pointer to avoid >> pointer from integer cast size mismatch warnings. >> >> Warning log: >> +../drivers/usb/gadget/udc/udc-core.c: In function >>

[U-Boot] [PATCH] spi: Add cadence compatible string

2015-12-07 Thread Michal Simek
Extend compatible list table for cdns,spi-r1p6 compatible string. Signed-off-by: Michal Simek --- drivers/spi/zynq_spi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/zynq_spi.c b/drivers/spi/zynq_spi.c index 6ed216535578..09ae1be7e987 100644 ---

Re: [U-Boot] [PATCH 4/6] arm: socfpga: Switch CONFIG_HOSTNAME to CONFIG_SYS_BOARD

2015-12-07 Thread Chin Liang See
On Mon, 2015-12-07 at 13:01 +0100, Marek Vasut wrote: > On Monday, December 07, 2015 at 11:01:24 AM, Chin Liang See wrote: > > On Mon, 2015-12-07 at 09:36 +0100, Marek Vasut wrote: > > > On Monday, December 07, 2015 at 07:25:31 AM, Chin Liang See > > > wrote: > > > > On Sat, 2015-12-05 at 21:44

Re: [U-Boot] fw_env.config settings for Digilent ZedBoard (Zynq 7020 Soc)

2015-12-07 Thread Brendan Simon (eTRIX)
Hi. see inline comments below ... On 7/12/2015 8:35 PM, Anatolij Gustschin wrote: > On Sun, 6 Dec 2015 12:01:08 +1100 > "Brendan Simon (eTRIX)" wrote: > >> Here is info from /proc/mtd and my /etc/fw_env.config. >> >> root@bjs:~# cat >> /proc/mtd

Re: [U-Boot] [PATCH] imx_common: check for Serial Downloader in spl_boot_device

2015-12-07 Thread Stefano Babic
Hi Eric, On 07/12/2015 10:55, Stefano Babic wrote: > > I agree with you, in fact it does not work - but I do not see a way to > inform the ROM that next time it should run with USB as boot device. > From the fusemap, I tried to set BOOT_CFG4 as 0x40 ("Reserved for serial > ROM"), and fixing

Re: [U-Boot] [PATCH 4/6] arm: socfpga: Switch CONFIG_HOSTNAME to CONFIG_SYS_BOARD

2015-12-07 Thread Marek Vasut
On Monday, December 07, 2015 at 11:01:24 AM, Chin Liang See wrote: > On Mon, 2015-12-07 at 09:36 +0100, Marek Vasut wrote: > > On Monday, December 07, 2015 at 07:25:31 AM, Chin Liang See wrote: > > > On Sat, 2015-12-05 at 21:44 +0100, Marek Vasut wrote: > > > > We already have the CONFIG_SYS_BOARD

Re: [U-Boot] [PATCH 4/7] arm: socfpga: cyclone5-socdk: Remove Micrel PHY configuration

2015-12-07 Thread Chin Liang See
On Sat, 2015-12-05 at 21:41 +0100, Marek Vasut wrote: > The Micrel PHY configuration is now done from OF, so hard-coding > the configuration into the board file is no longer necessary. > > Signed-off-by: Marek Vasut > Cc: Joe Hershberger > Cc: Chin Liang

Re: [U-Boot] [PATCH 6/7] arm: socfpga: sockit: Remove Micrel PHY configuration

2015-12-07 Thread Chin Liang See
On Sat, 2015-12-05 at 21:41 +0100, Marek Vasut wrote: > The Micrel PHY configuration is now done from OF, so hard-coding > the configuration into the board file is no longer necessary. > > Signed-off-by: Marek Vasut > Cc: Joe Hershberger > Cc: Chin Liang

Re: [U-Boot] [PATCH 5/7] arm: socfpga: de0_nano: Remove Micrel PHY configuration

2015-12-07 Thread Chin Liang See
On Sat, 2015-12-05 at 21:41 +0100, Marek Vasut wrote: > The Micrel PHY configuration is now done from OF, so hard-coding > the configuration into the board file is no longer necessary. > > Signed-off-by: Marek Vasut > Cc: Joe Hershberger > Cc: Chin Liang

Re: [U-Boot] [PATCH v3] armv8: fsl-layerscale: Rewrite reserving memory for MC and debug server

2015-12-07 Thread Simon Glass
Hi York, On 7 December 2015 at 10:43, York Sun wrote: > > > > On 11/22/2015 09:53 AM, York Sun wrote: > > > > > > On 11/22/2015 08:11 AM, Simon Glass wrote: > >> Hi York, > >> > > > > >>> diff --git a/common/board_f.c b/common/board_f.c > >>> index 8061105..2fd1c21 100644

  1   2   3   >