[U-Boot] [PATCH 1/2] qe: transform parameter to compatible type

2015-05-05 Thread Zhao Qiang
when using printf, the parameter type need to be compatible type, so transform them to compatible type Signed-off-by: Zhao Qiang --- drivers/qe/qe.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/qe/qe.c b/drivers/qe/qe.c index 84e1433..f1df0a4 100644 --- a/driv

Re: [U-Boot] Add spi nand support in u-boot

2015-05-05 Thread Jagan Teki
On 4 May 2015 at 06:19, Peter Pan 潘栋 (peterpandong) wrote: > Hi All, > > I’d like to add spi nand support in u-boot. But I don’t know where should > the spi nand drivers put in and how to define the architecture. > > I find that currently spi_flash in u-boot means spi nor flash. Should I create >

[U-Boot] [PATCH 2/2] qe: use strncpy instead of strcpy

2015-05-05 Thread Zhao Qiang
strncpy is safer than strcpy, use it to instead of strcpy. Signed-off-by: Zhao Qiang --- drivers/qe/qe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/qe/qe.c b/drivers/qe/qe.c index f1df0a4..08620b2 100644 --- a/drivers/qe/qe.c +++ b/drivers/qe/qe.c @@ -435,7 +435,

Re: [U-Boot] [PATCH 3/3] net: Remove all calls to net_random_ethaddr()

2015-05-05 Thread Michael Walle
Hi Joe, Am 2015-05-04 21:55, schrieb Joe Hershberger: diff --git a/board/buffalo/lsxl/lsxl.c b/board/buffalo/lsxl/lsxl.c index 487875c..45dd788 100644 --- a/board/buffalo/lsxl/lsxl.c +++ b/board/buffalo/lsxl/lsxl.c @@ -230,16 +230,6 @@ static void rescue_mode(void) uchar enetaddr[6];

Re: [U-Boot] [PATCH 2/2] qe: use strncpy instead of strcpy

2015-05-05 Thread Michael Trimarchi
Hi On Tue, May 5, 2015 at 3:53 PM, Zhao Qiang wrote: > strncpy is safer than strcpy, use it to instead of strcpy. > > Signed-off-by: Zhao Qiang > --- > drivers/qe/qe.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/qe/qe.c b/drivers/qe/qe.c > index f1df0a4..086

Re: [U-Boot] [PATCH 1/6] mmc: Fix typo in MMC type checking macro

2015-05-05 Thread Pantelis Antoniou
Hi Andrew, > On Mar 19, 2015, at 14:44 , Andrew Gabbasov > wrote: > > The version flag constant name used in IS_MMC macro is incorrect/undefined. > > Signed-off-by: Andrew Gabbasov > --- > include/mmc.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/mmc.h b/i

Re: [U-Boot] [PATCH 2/6] mmc: Avoid extra duplicate entry in mmc device structure

2015-05-05 Thread Pantelis Antoniou
Hi Andrw, > On Mar 19, 2015, at 14:44 , Andrew Gabbasov > wrote: > > The 'op_cond_response' field in mmc structure contains the response > from the last SEND_OP_COND MMC command while making iterational > polling of the card. Later it is copied to 'ocr' field, designed > to contain the OCR regi

Re: [U-Boot] [PATCH 3/6] mmc: Do not pass external mmc_cmd structure to mmc_send_op_cond_iter()

2015-05-05 Thread Pantelis Antoniou
Hi Andrew, > On Mar 19, 2015, at 14:44 , Andrew Gabbasov > wrote: > > The previous change to use 'ocr' structure field for storing send_op_cond > command response also stopped using command response directly > outside of mmc_send_op_cond_iter(). Now it becomes possible to use > command structur

Re: [U-Boot] [PATCH 1/5] nand: sunxi: change BLOCK_SIZE in mksunxiboot to match NAND block size

2015-05-05 Thread Daniel Kochmański
Ian Campbell writes: > On Wed, 2015-04-29 at 17:02 +0200, Daniel Kochmański wrote: >> This change is necessary to calculate correct checksum for NAND >> boot. Works both for MMC and NAND. Without it BROM rejects boot image >> as invalid (bad checksum). (Changes block size from 0x200 to 0x2000). >

Re: [U-Boot] [PATCH 4/6] mmc: Continue polling MMC card for OCR only if it is still not ready

2015-05-05 Thread Pantelis Antoniou
Hi Andrew, > On Mar 24, 2015, at 21:02 , Andrew Gabbasov > wrote: > >> From: Troy Kisky [mailto:troy.ki...@boundarydevices.com] >> Sent: Tuesday, March 24, 2015 9:03 PM >> To: Gabbasov, Andrew; peng@freescale.com; u-boot@lists.denx.de >> Cc: Eric Nelson >> Subject: Re: [U-Boot] [PATCH 4/6]

Re: [U-Boot] [PATCH 4/6] mmc: Continue polling MMC card for OCR only if it is still not ready

2015-05-05 Thread Pantelis Antoniou
Hi Andrew, > On Mar 19, 2015, at 14:44 , Andrew Gabbasov > wrote: > > Some MMC cards come to ready state quite quickly, so that the respective > flag appears to be set in mmc_send_op_cond already. In this case trying > to continue polling the card with CMD1 in mmc_complete_op_cond is incorrect

Re: [U-Boot] [PATCH 5/6] mmc: Restructure polling loops to avoid extra delays

2015-05-05 Thread Pantelis Antoniou
Hi Andrew, > On Mar 19, 2015, at 14:44 , Andrew Gabbasov > wrote: > > The polling loops in sd_send_op_cond and mmc_complete_op_cond functions > check the ready flag state at the end of the loop, that is after executing > a delay inside the loop, which, in case of exiting with no error, > is not

Re: [U-Boot] [PATCH] mmc: fix OCR Polling

2015-05-05 Thread Pantelis Antoniou
Hi Peng, > On Mar 19, 2015, at 10:22 , Peng Fan wrote: > > If in mmc_send_op_cond, OCR_BUSY is set in CMD1's response, then > state is transfered to Ready state, and there is no need to send > CMD1 again. Otherwise following CMD1 will recieve no response, or > timeour error from driver such as f

Re: [U-Boot] [PATCH 6/6] mmc: Fix splitting device initialization

2015-05-05 Thread Pantelis Antoniou
Hi Andrew, > On Mar 19, 2015, at 14:44 , Andrew Gabbasov > wrote: > > Starting part of device initialization sets the init_in_progress flag > only if the MMC card did not yet come to ready state and needs to continue > polling. If the card is SD or if the MMC card became ready quickly, > the fl

Re: [U-Boot] [PATCH 2/2] qe: use strncpy instead of strcpy

2015-05-05 Thread qiang.z...@freescale.com
On Tue, May 5, 2015 at 4:33 PM, Michael Trimarchi wrote: > -Original Message- > From: Michael Trimarchi [mailto:mich...@amarulasolutions.com] > Sent: Tuesday, May 05, 2015 4:33 PM > To: Zhao Qiang-B45475 > Cc: u-boot@lists.denx.de; Sun York-R58495 > Subject: Re: [U-Boot] [PATCH 2/2] qe: use

Re: [U-Boot] [PATCH 5/5] nand: sunxi: And a20_nandread command utilizing spl nand read driver

2015-05-05 Thread Daniel Kochmański
Hans de Goede writes: > Hi, > > On 05/02/2015 04:26 PM, Ian Campbell wrote: >> On Wed, 2015-04-29 at 17:03 +0200, Daniel Kochmański wrote: >>> This patch adds a20_nandread command. It is simple function utilizing >>> function from SPL nand driver `nand_spl_load_image`. >>> >>> Usage: a20_nandread

Re: [U-Boot] [PATCH 2/5] nand: sunxi: Add support for booting from internal NAND memory

2015-05-05 Thread Daniel Kochmański
(sorry for resending, used wrong mail here - not sure how mailing list will handle that). Ian Campbell writes: > On Wed, 2015-04-29 at 17:02 +0200, Daniel Kochmański wrote: >> diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig >> index 88e3358..1a30684 100644 >> --- a/board/sunxi/Kconfig >>

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

2015-05-05 Thread Albert ARIBAUD
Hello Tom, The following changes since commit ace97d26176a3ebc9ec07738450de93eea35975c: Merge branch 'zynq' of git://www.denx.de/git/u-boot-microblaze (2015-04-29 06:46:33 -0400) are available in the git repository at: git://git.denx.de/u-boot-arm master for you to fetch changes up to b93

Re: [U-Boot] [PATCH v2 0/9] PSCI v0.2 framework for ARMv8

2015-05-05 Thread bhupesh.sha...@freescale.com
Hi Albert, > -Original Message- > From: Arnab Basu [mailto:arnab_b...@rocketmail.com] > Apologies for the long delay, this is v2 of the series of patches that > creates a generic PSCI v0.2 framework for ARMv8. > > The first 3 patches refactor existing code so that ARMv7 PSCI, > ARMv8 spin

Re: [U-Boot] [PATCH] mmc: remove the MMC_MODE_HC flag

2015-05-05 Thread Pantelis Antoniou
Hi Rob, > On Mar 24, 2015, at 00:56 , Rob Herring wrote: > > High capacity support is not a host capability, but a device capability > that is queried via the OCR. The flag in the operating conditions > request argument can just be set unconditionally. This matches the Linux > implementation. >

Re: [U-Boot] [PATCH] mmc: sdhci: add timeout setting for response busy command

2015-05-05 Thread Pantelis Antoniou
Hi Rob, > On Mar 24, 2015, at 00:57 , Rob Herring wrote: > > From: Kevin Liu > > Timeout interrupt also work for response busy command(R1b) like > cmd38/cmd6. So need to set it accordingly. Current code only > set timeout for data command. > > Signed-off-by: Kevin Liu > Signed-off-by: Rob He

Re: [U-Boot] [PATCH 1/3] arm: mx6: tqma6: Fix USB and add other filesystems

2015-05-05 Thread Stefan Roese
Hi Stefano, On 12.03.2015 13:34, Stefan Roese wrote: This patch fixes the USB EHCI support on the TQMa6 SoM. Additionally some filesystems are added, included the generic FS commands (e.g. ls...). Signed-off-by: Stefan Roese Cc: Markus Niebel Cc: Stefano Babic --- include/configs/tqma6.h |

Re: [U-Boot] [PATCH] mmc: fsl_esdhc: update eMMC44 adapter card erase timeout

2015-05-05 Thread Pantelis Antoniou
Hi Yango, > On Apr 15, 2015, at 05:13 , Yangbo Lu wrote: > > Freescale eMMC44 adapter card uses Micron N2M400FDB311A3CF eMMC > memory. According to the silicon datasheet, secure erase timeout > is 600ms. So increase erase timeout value from 250ms to 600ms. > > Signed-off-by: Yangbo Lu > Cc: Yo

Re: [U-Boot] [PATCH 1/1] mmc: bcm2835_sdhci: Use calloc to allocate bcm2835_sdhci_host

2015-05-05 Thread Pantelis Antoniou
Hi Alexander, > On Apr 17, 2015, at 18:33 , Alexander Stein wrote: > > We need to clear the allocated memory explicitly as the included > struct sdhci_host has function pointers. Those are compared to NULL to > test if this (optional) feature is supported. Leaving them undefined let > u-boot jum

Re: [U-Boot] [PATCH 23/24] tegra: mmc: Set the removable flag correctly

2015-05-05 Thread Pantelis Antoniou
Hi Simon, > On May 4, 2015, at 20:31 , Simon Glass wrote: > > If the mmc device is non-removable (as indicated by the device tree), set > the flag so that users of the device know. > > Signed-off-by: Simon Glass > --- > > drivers/mmc/tegra_mmc.c | 12 > 1 file changed, 8 insertion

Re: [U-Boot] [PATCH] sunxi: display: Align end of memory to work around a linux-4.0 bug

2015-05-05 Thread Mark Rutland
On Mon, May 04, 2015 at 10:36:43AM +0100, Ian Campbell wrote: > On Mon, 2015-05-04 at 10:51 +0200, Hans de Goede wrote: > > Hi, > > > > On 02-05-15 15:21, Ian Campbell wrote: > > > On Fri, 2015-04-24 at 20:39 +0200, Hans de Goede wrote: > > >> Linux-4.0 as shipped has a bug causing it to not boot

Re: [U-Boot] [PATCH 2/2] qe: use strncpy instead of strcpy

2015-05-05 Thread Michael Trimarchi
Hi On Tue, May 5, 2015 at 5:15 PM, qiang.z...@freescale.com wrote: > On Tue, May 5, 2015 at 4:33 PM, Michael Trimarchi wrote: >> -Original Message- >> From: Michael Trimarchi [mailto:mich...@amarulasolutions.com] >> Sent: Tuesday, May 05, 2015 4:33 PM >> To: Zhao Qiang-B45475 >> Cc: u-boo

Re: [U-Boot] [PATCH 3/4] ARM: mmc: bcm283x: Remove get_timer_us() from mmc driver

2015-05-05 Thread Pantelis Antoniou
Hi Marek, > On May 4, 2015, at 23:54 , Marek Vasut wrote: > > The get_timer_us() function is something which is no longer > existing in case we use generic timer framework, so replace > it with get_timer(). > > Signed-off-by: Marek Vasut > Cc: Stephen Warren > Cc: Tyler Baker > --- > drivers

Re: [U-Boot] [PATCH 2/3] arm: mx6: tqma6: Update to optionally configure an alternative SPI setup

2015-05-05 Thread Stefan Roese
Hi Stefano, On 12.03.2015 13:34, Stefan Roese wrote: By making the tqma6_iomuxc_spi() weak, this patch adds the possibility to add a different function for this SPI configuration. This can be used by other baseboards, that might have a different SPI setup. This patch will be used by the upcomin

[U-Boot] Pull request: u-boot-mmc 05052015

2015-05-05 Thread Pantelis Antoniou
Hi Tom, The following changes since commit ace97d26176a3ebc9ec07738450de93eea35975c: Merge branch 'zynq' of git://www.denx.de/git/u-boot-microblaze (2015-04-29 06:46:33 -0400) are available in the git repository at: git://git.denx.de/u-boot-mmc.git master for you to fetch changes up to 3

Re: [U-Boot] [PATCH v2] misc: led: Add PCA9551 LED driver

2015-05-05 Thread Stefan Roese
Hi Tom, On 12.03.2015 12:50, Fabio Estevam wrote: On Thu, Mar 12, 2015 at 7:22 AM, Stefan Roese wrote: This patch adds a driver for the PCA9551 LED controller. Originated-by: Timo Herbrecher Signed-off-by: Stefan Roese Reviewed-by: Tom Rini Cc: Fabio Estevam Reviewed-by: Fabio Estevam

Re: [U-Boot] [PATCH 5/5] nand: sunxi: And a20_nandread command utilizing spl nand read driver

2015-05-05 Thread Hans de Goede
Hi, On 05-05-15 11:17, Daniel Kochmański wrote: Hans de Goede writes: Hi, On 05/02/2015 04:26 PM, Ian Campbell wrote: On Wed, 2015-04-29 at 17:03 +0200, Daniel Kochmański wrote: This patch adds a20_nandread command. It is simple function utilizing function from SPL nand driver `nand_spl_lo

Re: [U-Boot] [PATCH v3] dm: usb: Copy over usb_device values from usb_scan_device() to final usb_device

2015-05-05 Thread Hans de Goede
Hi, On 04-05-15 23:35, Simon Glass wrote: On 4 May 2015 at 15:35, Simon Glass wrote: Hi Hans, On 4 May 2015 at 14:28, Simon Glass wrote: On 4 May 2015 at 11:19, Hans de Goede wrote: Currently we copy over a number of usb_device values stored in the on stack struct usb_device probed in usb

[U-Boot] [PATCH v4 1/9] dm: usb: Make usb_get_bus easier to use for callers

2015-05-05 Thread Hans de Goede
Make usb_get_bus easier to use for callers, by directly returning the bus rather then returning it via a pass-by-ref argument. This also removes the error checking from the current callers, as we already have an assert() for bus not being NULL in usb_get_bus(). Signed-off-by: Hans de Goede Acked

[U-Boot] [PATCH v4 2/9] dm: usb: Copy over usb_device values from usb_scan_device() to final usb_device

2015-05-05 Thread Hans de Goede
Currently we copy over a number of usb_device values stored in the on stack struct usb_device probed in usb_scan_device() to the final driver-model managed struct usb_device in usb_child_pre_probe() through usb_device_platdata, and then call usb_select_config() to fill in the rest. There are 3 pro

[U-Boot] [PATCH v4 3/9] dm: usb: Use usb_get_bus in dm ehci code

2015-05-05 Thread Hans de Goede
Use usb_get_bus in dm ehci code rather then re-implementing it. Signed-off-by: Hans de Goede Acked-by: Simon Glass --- Changes in v2: -New patch in v2 of this patch-set --- drivers/usb/host/ehci-hcd.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/usb/host/e

[U-Boot] [PATCH v4 0/9] dm usb fixes + sunxi dm ehci support

2015-05-05 Thread Hans de Goede
Hi Simon, et al, Here is v4 of my dm usb + driver-model support for the sunxi-ehci code set. New since v2 (v3 for one patch) is that this now no longer breaks sandbox usb emul devices. I had to reshuffle the order of 2 patches to fix this cleanly, and I've also added some extra comments to the la

[U-Boot] [PATCH v4 7/9] dm: usb: Prefix ehci interrupt-queue functions with _ehci_

2015-05-05 Thread Hans de Goede
This is a preparation patch for adding interrupt-queue support to the ehci dm code. Signed-off-by: Hans de Goede Acked-by: Simon Glass --- drivers/usb/host/ehci-hcd.c | 31 +-- 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/drivers/usb/host/ehci-hcd.c

[U-Boot] [PATCH v4 5/9] dm: usb: Set desc_before_addr from ehci dm code

2015-05-05 Thread Hans de Goede
Without this usb-1 device descriptors do not get read properly. Signed-off-by: Hans de Goede Acked-by: Simon Glass --- drivers/usb/host/ehci-hcd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index 9471bcb..46d01d4 100644 --- a

[U-Boot] [PATCH v4 8/9] dm: usb: Add support for interrupt queues to the dm ehci code

2015-05-05 Thread Hans de Goede
Add support for interrupt queues to the dm ehci code. Signed-off-by: Hans de Goede Acked-by: Simon Glass --- drivers/usb/host/ehci-hcd.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index 363ce38..0e842

[U-Boot] [PATCH v4 6/9] dm: usb: Add support for interrupt queues to the dm usb code

2015-05-05 Thread Hans de Goede
Interrupt endpoints typically are polled for a long time by the usb controller before they return anything, so calls to submit_int_msg() can take a long time to complete this. To avoid this the u-boot code has the an interrupt queue mechanism / API, add support for this to the driver-model usb cod

[U-Boot] [PATCH v4 9/9] sunxi: ehci: Convert to the driver-model

2015-05-05 Thread Hans de Goede
Convert sunxi-boards which use the sunxi-ehci code to the driver-model. Signed-off-by: Hans de Goede Acked-by: Simon Glass --- Changes in v4: -Add a comment to document the setting of some priv-data members based on the controller base-address --- board/sunxi/Kconfig | 3 ++ drivers

[U-Boot] [PATCH v4 4/9] dm: usb: Fix finding of first upstream usb-2 hub in the ehci dm code

2015-05-05 Thread Hans de Goede
The ehci driver model code for finding the first upstream usb-2 hub before this commit has a number of issues: 1) "if (!ttdev->speed != USB_SPEED_HIGH)" does not work because the '!' takes presedence over the '!=' this should simply be "if (ttdev->speed == USB_SPEED_HIGH)" 2) It makes ttdev

Re: [U-Boot] [PATCH 1/3] arm: mx6: tqma6: Fix USB and add other filesystems

2015-05-05 Thread Stefano Babic
On 05/05/2015 11:36, Stefan Roese wrote: > Hi Stefano, > > On 12.03.2015 13:34, Stefan Roese wrote: >> This patch fixes the USB EHCI support on the TQMa6 SoM. Additionally >> some filesystems are added, included the generic FS commands (e.g. >> ls...). >> >> Signed-off-by: Stefan Roese >> Cc: Mar

Re: [U-Boot] [PATCH 2/3] net: Remove all references to CONFIG_ETHADDR and friends

2015-05-05 Thread Albert ARIBAUD
Bonjour Simon, Le Mon, 4 May 2015 15:37:22 -0600, Simon Glass a écrit : > On 4 May 2015 at 13:55, Joe Hershberger wrote: > > We really don't want boards defining fixed MAC addresses in their config > > so we just remove the option to set it in a fixed way. If you must have > > a MAC address tha

Re: [U-Boot] [PATCH 2/3] net: Remove all references to CONFIG_ETHADDR and friends

2015-05-05 Thread Simon Glass
On 4 May 2015 at 13:55, Joe Hershberger wrote: > We really don't want boards defining fixed MAC addresses in their config > so we just remove the option to set it in a fixed way. If you must have > a MAC address that was not provisioned, then use the random MAC address > functionality. > > Signed-

Re: [U-Boot] [PATCH] bugfix i.mx6 pwm: prevent overflow of period_c * duty_ns by casting duty_ns to ull first. This bug came up when trying to create a 200 Hz PWM.

2015-05-05 Thread NEYRINCK Brecht
Hi Heiko, We didn't need the 200 Hz PWM in Linux, so I didn't test it right away. I did now, and the problem isn't present there, which I found weird given the fact that it is indeed similar code. So I dug into the kernel: The devil is in the details. :) Kernel: c = (unsigned long long)period_c

Re: [U-Boot] [PATCH 2/5] nand: sunxi: Add support for booting from internal NAND memory

2015-05-05 Thread Daniel Kochmański
Ian Campbell writes: > On Wed, 2015-04-29 at 17:02 +0200, Daniel Kochmański wrote: >> diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig >> index 88e3358..1a30684 100644 >> --- a/board/sunxi/Kconfig >> +++ b/board/sunxi/Kconfig >> @@ -239,6 +239,18 @@ config MMC_SUNXI_SLOT_EXTRA >> slot

[U-Boot] Debugging U-Boot on iMX6 with BDI3000

2015-05-05 Thread Armand Ciejak
Hello, I'm trying to debug U-Boot (version: imx_v2014.04_3.14.28_1.0.0_ga) for a custom board with a BDI3000. So far I can connect to the target and I see the U-Boot code at the correct location, but after reset the PC is at 0x1ffa870c which is somewhere outside of U-Boot. Here the state after

Re: [U-Boot] switching to single .config configuration issues

2015-05-05 Thread Yehuda Yitschak
Hi Simon > -Original Message- > From: s...@google.com [mailto:s...@google.com] On Behalf Of Simon Glass > Sent: Tuesday, May 05, 2015 6:28 > To: Yehuda Yitschak > Cc: Masahiro Yamada; Hanna Hawa; u-boot@lists.denx.de > Subject: Re: [U-Boot] switching to single .config configuration issues

[U-Boot] [PATCH 1/2] sunxi: Set SYS_MALLOC_CLEAR_ON_INIT to n

2015-05-05 Thread Hans de Goede
We don't need this on sunxi, and not having is shaves some time of out boot time. Signed-off-by: Hans de Goede --- board/sunxi/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig index bd1e988..940b6c7 100644 --- a/board/sunxi/Kconfig +++ b/bo

[U-Boot] [PATCH 2/2] console: Fix pre-console flushing via cfb_console being very slow

2015-05-05 Thread Hans de Goede
On my A10 OlinuxIno Lime I noticed a huge (5+ seconds) delay coming from console_init_r. This turns out to be caused by the preconsole buffer flushing to the cfb_console. The Lime only has a 16 bit memory bus and that is already heavy used to scan out the 1920x1080 framebuffer. The problem is that

[U-Boot] [PATCH v3] dm: sf: Add Atmel DataFlash spi flash driver

2015-05-05 Thread Haikun Wang
Atmel DataFlash chips have commands different from common spi flash commands. Atmel DataFlash also have special page-size. This driver add support for accessing Atmel DataFlash. It is based on the Driver Model. Signed-off-by: Haikun Wang --- Verified with AT45DB021B. Changes in v3: - 1. Rename f

Re: [U-Boot] [PATCH v1 1/2] cmd_sf: Add command "sf info" to show current device info

2015-05-05 Thread haikun.w...@freescale.com
On 5/1/2015 9:54 AM, Simon Glass wrote: > Hi, > > On 29 April 2015 at 04:40, Haikun Wang wrote: >> Add command "sf info" to show the information of the current SPI flash >> device. >> >> Signed-off-by: Haikun Wang >> --- >> In current sf driver, we show the debug information during the flash pro

Re: [U-Boot] [PATCH] fw_env.h: include autoconf.h

2015-05-05 Thread Marcel Ziswiler
On Thu, 2015-04-16 at 13:20 -0400, Tom Rini wrote: > I'll let Masahiro comment on if this is the best way to fix the compile > problem. What's the status on this one? ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-b

[U-Boot] [REGRESSION] commit 3ef46a9 "Fix hash verification" breaks crc32 verify

2015-05-05 Thread Marcel Ziswiler
U-Boot SPL 2015.04-00631-gace97d2 (May 05 2015 - 13:32:44) U-Boot 2015.04-00631-gace97d2 (May 05 2015 - 13:32:44) TEGRA30 Model: Toradex Colibri T30 DRAM: 1 GiB iC: Tegra SD/MMC: 0, Tegra SD/MMC: 1 In:serial Out: serial Err: serial Net: Net Initialization Skipped No ethernet found.

[U-Boot] [PATCH] common: hash: fix crc32 verify

2015-05-05 Thread Marcel Ziswiler
From: Marcel Ziswiler did not work: Colibri T30 # crc32 0x8000 0x100 crc32 for 8000 ... 80ff ==> 9eb4f5ca Colibri T30 # crc32 -v 0x8000 0x100 c9a057b3 crc32 for 8000 ... 80ff ==> 9eb4f5ca != ** ERROR ** Colibri T30 # crc32 -v 0x8000 0x100 9eb4f5ca crc32 for 8

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

2015-05-05 Thread Luka Perkov
Hi Tom, please pull from marvell/master. The changes include Stefan's Armada 38x series which reached v3 on the mailing list and two more Marvell Armada related fixes. The following changes since commit ace97d26176a3ebc9ec07738450de93eea35975c: Merge branch 'zynq' of git://www.denx.de/git/u-bo

[U-Boot] [PATCH 0/5] dm: usb: Add companion controller support + ehci fixes

2015-05-05 Thread Hans de Goede
Hi Simon, Marek, I'm making steady progress with adding ohci / companion controller support to the sunxi usb code. Things are progressing a bit slower then I would have liked as I've been hitting bugs in the usb-core, ehci and ohci code, but I've things mostly working now I just need to do some mo

[U-Boot] [PATCH 3/5] dm: usb: Do not scan companion busses if no devices where handed over

2015-05-05 Thread Hans de Goede
USB scanning is slow, and there is no need to scan the companion busses if no usb devices where handed over to the companinon controllers by any of the main controllers. This saves e.g. 2 seconds when booting a A10 OLinuxIno Lime with no USB-1 devices plugged into the root usb ports. The use of a

[U-Boot] [PATCH 1/5] dm: usb: Move printing of usb scan status to usb_scan_bus()

2015-05-05 Thread Hans de Goede
Move printing of usb scan status to usb_scan_bus(). This is a preparation patch for adding companion controller support to the usb uclass. Signed-off-by: Hans de Goede --- drivers/usb/host/usb-uclass.c | 22 +- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/d

[U-Boot] [PATCH 5/5] usb: ehci: Increase usb_companion_device_count when handing over devices

2015-05-05 Thread Hans de Goede
Increase usb_companion_device_count when handing over devices to the ehci's companion controller. usb_init() will use this to short-circuit companion bus scanning when no devices were handed over at all. Signed-off-by: Hans de Goede --- drivers/usb/host/ehci-hcd.c | 2 ++ 1 file changed, 2 inser

[U-Boot] [PATCH 4/5] usb: ehci: Fix handover of full-speed devices to companion

2015-05-05 Thread Hans de Goede
When after a reset the port status connection bit is still set and the enable bit is not then we're dealing with a full-speed device and should hand it over to the companion controller. Signed-off-by: Hans de Goede --- drivers/usb/host/ehci-hcd.c | 16 +--- 1 file changed, 13 inserti

[U-Boot] [PATCH 2/5] dm: usb: Add support for companion controllers

2015-05-05 Thread Hans de Goede
USB companion controllers must be scanned after the main controller has been scanned, so that any devices which the main controller which to hand over to the companion have actually been handed over before we scan the companion. As there are no guarantees that this will magically happen in the rig

Re: [U-Boot] [PATCH] bugfix i.mx6 pwm: prevent overflow of period_c * duty_ns by casting duty_ns to ull first. This bug came up when trying to create a 200 Hz PWM.

2015-05-05 Thread Fabio Estevam
Hi Brecht, On Mon, Apr 27, 2015 at 9:11 AM, Brecht Neyrinck wrote: > --- > drivers/pwm/pwm-imx-util.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > mode change 100644 => 100755 drivers/pwm/pwm-imx-util.c > > diff --git a/drivers/pwm/pwm-imx-util.c b/drivers/pwm/pwm-imx-util.c > inde

Re: [U-Boot] loading environment from SATA

2015-05-05 Thread Fabio Estevam
Hi Ben, On Thu, Apr 30, 2015 at 9:57 AM, Ben Hewson wrote: > booting from SATA works very well on my iMX6 based board, however if I do > > > #define CONFIG_ENV_IS_IN_FAT > > #if defined(CONFIG_ENV_IS_IN_FAT) > #define CONFIG_FAT_WRITE > #define FAT_ENV_INTERFACE "sata" > #de

Re: [U-Boot] [PATCH 3/5] nand: sunxi: Add secondary U-Boot offset on second syndrome partition

2015-05-05 Thread Tim Harvey
On Wed, Apr 29, 2015 at 8:02 AM, Daniel Kochmański wrote: > Introduces CONFIG_SYS_NAND_U_BOOT_BACKUP_OFFS, pointing to backup > U-Boot instance in nand memory. In case if first header doesn't match, > tries to load bootloader from this offset. In case of both failing, > hang() is called. > > Addit

Re: [U-Boot] [PATCH] autoboot.c: Add feature to stop autobooting via SHA256 encrypted password

2015-05-05 Thread Stefan Roese
Hi Simon, On 23.03.2015 21:28, Simon Glass wrote: > Hi Stefan, > > On 13 March 2015 at 01:15, Stefan Roese wrote: >> Hi Simon, >> >> On 13.03.2015 03:48, Simon Glass wrote: > > This patch adds the feature to only stop the autobooting, and therefor > boot into the U-Boot prompt, when

Re: [U-Boot] [PATCH] autoboot.c: Add feature to stop autobooting via SHA256 encrypted password

2015-05-05 Thread Simon Glass
Hi Stefan, On 5 May 2015 at 09:06, Stefan Roese wrote: > Hi Simon, > > On 23.03.2015 21:28, Simon Glass wrote: >> Hi Stefan, >> >> On 13 March 2015 at 01:15, Stefan Roese wrote: >>> Hi Simon, >>> >>> On 13.03.2015 03:48, Simon Glass wrote: >> >> This patch adds the feature to only stop t

Re: [U-Boot] [PATCH 2/3] arm: mx6: tqma6: Update to optionally configure an alternative SPI setup

2015-05-05 Thread Stefano Babic
On 05/05/2015 11:37, Stefan Roese wrote: > Hi Stefano, > > On 12.03.2015 13:34, Stefan Roese wrote: >> By making the tqma6_iomuxc_spi() weak, this patch adds the possibility to >> add a different function for this SPI configuration. This can be used >> by other baseboards, that might have a differ

Re: [U-Boot] [PATCH 1/3] arm: mx6: tqma6: Fix USB and add other filesystems

2015-05-05 Thread Stefano Babic
On 12/03/2015 13:34, Stefan Roese wrote: > This patch fixes the USB EHCI support on the TQMa6 SoM. Additionally > some filesystems are added, included the generic FS commands (e.g. > ls...). > > Signed-off-by: Stefan Roese > Cc: Markus Niebel > Cc: Stefano Babic > --- Applied to u-boot-imx, th

[U-Boot] [PATCH 1/5] x86: Support QEMU x86 targets

2015-05-05 Thread Bin Meng
This commit introduces the initial U-Boot support for QEMU x86 targets. U-Boot can boot from coreboot as a payload, or directly without coreboot. Signed-off-by: Bin Meng --- arch/x86/Kconfig | 5 +++ arch/x86/cpu/Makefile | 1 + arch/x86/cpu/qemu/Kconfig

[U-Boot] [PATCH 2/5] x86: Make QEMU the default vendor

2015-05-05 Thread Bin Meng
Now that we have QEMU support, make it the default vendor in the 'make menuconfig' screen. Signed-off-by: Bin Meng --- arch/x86/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 3d02620..0b78f10 100644 --- a/arch/x86/Kconfig ++

[U-Boot] [PATCH 3/5] x86: qemu: Wrap E1000 driver only when DM_PCI is not used

2015-05-05 Thread Bin Meng
E1000 driver has not been converted to driver model, so wrap it only when DM_PCI is not used. Signed-off-by: Bin Meng --- include/configs/qemu-x86.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/qemu-x86.h b/include/configs/qemu-x86.h index 463620d..281aaa5 100644 --- a/

[U-Boot] [PATCH 5/5] x86: Update README.x86 for QEMU support

2015-05-05 Thread Bin Meng
Document how to build and test U-Boot with QEMU. Signed-off-by: Bin Meng --- doc/README.x86 | 65 +++--- 1 file changed, 48 insertions(+), 17 deletions(-) diff --git a/doc/README.x86 b/doc/README.x86 index ef13fb4..4a30f68 100644 --- a/doc/RE

[U-Boot] [PATCH 4/5] x86: Change coreboot default build configuration to QEMU

2015-05-05 Thread Bin Meng
QEMU is much easier for us test booting U-Boot as a coreboot payload than having a real board like chromebook_link. Signed-off-by: Bin Meng --- board/coreboot/coreboot/Kconfig | 6 +++--- configs/coreboot-x86_defconfig | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/board

Re: [U-Boot] bringing up u-boot on qemu-x86

2015-05-05 Thread Bin Meng
Hi Saket, On Tue, May 5, 2015 at 2:05 AM, Saket Sinha wrote: > Hi Bin, > > I am one of the students working on adding ACPI support to u-boot for > Minnowboard as a part of GSOC-2015. > Good to know you will be working on U-Boot ACPI support! > In this endeavor, I have been trying to bring up u-

Re: [U-Boot] [PATCH v4 2/9] dm: usb: Copy over usb_device values from usb_scan_device() to final usb_device

2015-05-05 Thread Simon Glass
On 5 May 2015 at 03:54, Hans de Goede wrote: > Currently we copy over a number of usb_device values stored in the on stack > struct usb_device probed in usb_scan_device() to the final driver-model > managed > struct usb_device in usb_child_pre_probe() through usb_device_platdata, and > then call

Re: [U-Boot] [PATCH 3/5] x86: qemu: Wrap E1000 driver only when DM_PCI is not used

2015-05-05 Thread Bin Meng
Hi Simon, On Tue, May 5, 2015 at 11:24 PM, Bin Meng wrote: > E1000 driver has not been converted to driver model, so wrap it > only when DM_PCI is not used. > > Signed-off-by: Bin Meng > --- > > include/configs/qemu-x86.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/include/config

Re: [U-Boot] [PATCH 3/5] x86: qemu: Wrap E1000 driver only when DM_PCI is not used

2015-05-05 Thread Simon Glass
Hi Bin, On 5 May 2015 at 09:35, Bin Meng wrote: > Hi Simon, > > On Tue, May 5, 2015 at 11:24 PM, Bin Meng wrote: >> E1000 driver has not been converted to driver model, so wrap it >> only when DM_PCI is not used. >> >> Signed-off-by: Bin Meng >> --- >> >> include/configs/qemu-x86.h | 2 ++ >>

Re: [U-Boot] [PATCH 21/24] tegra124: Implement spl_was_boot_source()

2015-05-05 Thread Stephen Warren
On 05/04/2015 11:31 AM, Simon Glass wrote: Add an implementation of this function for Tegra. diff --git a/arch/arm/mach-tegra/board.c b/arch/arm/mach-tegra/board.c +#ifndef CONFIG_SPL_BUILD +void save_boot_params(u32 r0, u32 r1, u32 r2, u32 r3) +{ + from_spl = r0 != SPL_RUNNING_FROM_U

Re: [U-Boot] [PATCH 24/24] tegra124: Expand SPL space by 8KB

2015-05-05 Thread Stephen Warren
On 05/04/2015 11:31 AM, Simon Glass wrote: We are getting very close to running out of space in SPL, and with the currently Chrome OS gcc 4.9 we exceed the limit. Add a litle more space. 8K is quite a bump given we only had 24K allocated before. Why is gcc-4.9 less efficient that earlier compi

Re: [U-Boot] [PATCH 24/24] tegra124: Expand SPL space by 8KB

2015-05-05 Thread Simon Glass
Hi Stephen, On 5 May 2015 at 09:59, Stephen Warren wrote: > On 05/04/2015 11:31 AM, Simon Glass wrote: >> >> We are getting very close to running out of space in SPL, and with the >> currently Chrome OS gcc 4.9 we exceed the limit. Add a litle more space. > > > 8K is quite a bump given we only ha

Re: [U-Boot] [PATCH 21/24] tegra124: Implement spl_was_boot_source()

2015-05-05 Thread Simon Glass
Hi Stephen, On 5 May 2015 at 09:54, Stephen Warren wrote: > On 05/04/2015 11:31 AM, Simon Glass wrote: >> >> Add an implementation of this function for Tegra. > > >> diff --git a/arch/arm/mach-tegra/board.c b/arch/arm/mach-tegra/board.c > > >> +#ifndef CONFIG_SPL_BUILD >> +void save_boot_params(u

Re: [U-Boot] [PATCH 24/24] tegra124: Expand SPL space by 8KB

2015-05-05 Thread Simon Glass
+Tom Warren On 4 May 2015 at 11:31, Simon Glass wrote: > We are getting very close to running out of space in SPL, and with the > currently Chrome OS gcc 4.9 we exceed the limit. Add a litle more space. > > Signed-off-by: Simon Glass > --- > > include/configs/tegra124-common.h | 2 +- > 1 file

Re: [U-Boot] [PATCH 21/24] tegra124: Implement spl_was_boot_source()

2015-05-05 Thread Stephen Warren
On 05/05/2015 10:02 AM, Simon Glass wrote: Hi Stephen, On 5 May 2015 at 09:54, Stephen Warren wrote: On 05/04/2015 11:31 AM, Simon Glass wrote: Add an implementation of this function for Tegra. diff --git a/arch/arm/mach-tegra/board.c b/arch/arm/mach-tegra/board.c +#ifndef CONFIG_SPL

Re: [U-Boot] [PATCH 24/24] tegra124: Expand SPL space by 8KB

2015-05-05 Thread Stephen Warren
On 05/05/2015 10:03 AM, Simon Glass wrote: Hi Stephen, On 5 May 2015 at 09:59, Stephen Warren wrote: On 05/04/2015 11:31 AM, Simon Glass wrote: We are getting very close to running out of space in SPL, and with the currently Chrome OS gcc 4.9 we exceed the limit. Add a litle more space. 8

Re: [U-Boot] [PATCH 24/24] tegra124: Expand SPL space by 8KB

2015-05-05 Thread Tom Warren
LGTM, but it s/b 'Add a _little_ more space' in the commit msg. Should we change the TEXT_BASE for the CPU portion in all Tegra builds? > -Original Message- > From: s...@google.com [mailto:s...@google.com] On Behalf Of Simon Glass > Sent: Tuesday, May 05, 2015 9:04 AM > To: U-Boot Mailing

Re: [U-Boot] [PATCH 21/24] tegra124: Implement spl_was_boot_source()

2015-05-05 Thread Simon Glass
Hi Stephen, On 5 May 2015 at 10:10, Stephen Warren wrote: > On 05/05/2015 10:02 AM, Simon Glass wrote: >> >> Hi Stephen, >> >> On 5 May 2015 at 09:54, Stephen Warren wrote: >>> >>> On 05/04/2015 11:31 AM, Simon Glass wrote: Add an implementation of this function for Tegra. >>> >>>

Re: [U-Boot] [PATCH] powerpc/mpc85xx: Use GOT when loading IVORs post-relocation

2015-05-05 Thread York Sun
On 04/23/2015 08:48 PM, Xie Shaohui-B21989 wrote: >> -Original Message- >> From: Wood Scott-B07421 >> Sent: Friday, April 24, 2015 9:02 AM >> To: u-boot@lists.denx.de; Sun York-R58495 >> Cc: Wood Scott-B07421; Alexander Graf; Xie Shaohui-B21989 >> Subject: [PATCH] powerpc/mpc85xx: Use GOT

Re: [U-Boot] [PATCH 24/24] tegra124: Expand SPL space by 8KB

2015-05-05 Thread Simon Glass
Hi Stephen, On 5 May 2015 at 10:12, Stephen Warren wrote: > On 05/05/2015 10:03 AM, Simon Glass wrote: >> >> Hi Stephen, >> >> On 5 May 2015 at 09:59, Stephen Warren wrote: >>> >>> On 05/04/2015 11:31 AM, Simon Glass wrote: We are getting very close to running out of space in SPL,

Re: [U-Boot] [PATCH] mpc85xx/T4240EMU: Remove T4240EMU board

2015-05-05 Thread York Sun
On 04/21/2015 10:09 AM, York Sun wrote: > T4240 SoC has been available for a long time. Emulator support > is no longer needed. > > Signed-off-by: York Sun > --- Applied to u-boot-mpc85xx master. Awaiting upstream. York ___ U-Boot mailing list U-Bo

Re: [U-Boot] [PATCH] drivers: usb: fsl: Workaround for Erratum A004477

2015-05-05 Thread York Sun
On 04/23/2015 08:54 PM, Badola Nikhil-B46172 wrote: > > IP team has agreed to change previous workaround to the 1us delay workaround > > Applied to u-boot-mpc85xx master. Awaiting upstream. York ___ U-Boot mailing list U-Boot@lists.denx.de http://

Re: [U-Boot] [PATCH v3] T2080QDS/PCIe: Soft Reset PCIe on T2080QDS for down-training issue

2015-05-05 Thread York Sun
On 03/26/2015 01:13 AM, Zhao Qiang wrote: > T2080QDS PEX1/Slot#1 will down-train from x4 to x2, > with SRDS_PRTCL_S1 = 0x66 and SRDS_PRTCL_S2 = 0x15. > Soft reset PCIe can fix this issue. > > Signed-off-by: Zhao Qiang > --- > changes for v2 > - modify the commit message > changes for v3 >

Re: [U-Boot] [PATCH] powerpc/t4rdb: Add SD boot support for T4240RDB board

2015-05-05 Thread York Sun
On 03/20/2015 02:08 AM, Chunhe Lan wrote: > This patch adds SD boot support for T4240RDB board. SPL > framework is used. PBL initializes the internal RAM and > copies SPL to it. Then SPL initializes DDR using SPD and > copies u-boot from SD card to DDR, finally SPL transfers > control to u-boot.

Re: [U-Boot] [PATCH] fsl/pci: Set CFG_READY for PCIe v3.0 and later

2015-05-05 Thread York Sun
On 03/26/2015 10:24 PM, Minghuan Lian wrote: > Freescale PCIe controllers v3.0 and later need to set bit > CFG_READY to allow all inbound configuration transactions > to be processed normally when in EP mode. However, bit > CFG_READY has been moved from PCIe configuration space to > CCSR PCIe con

Re: [U-Boot] [PATCH v4] powerpc/t1023rdb: Add T1023 RDB board support

2015-05-05 Thread York Sun
On 03/27/2015 12:48 AM, Shengzhou Liu wrote: > T1023RDB is a Freescale Reference Design Board that hosts the T1023 SoC. > > T1023RDB board Overview > --- > - T1023 SoC integrating two 64-bit e5500 cores up to 1.4GHz > - CoreNet fabric supporting coherent and noncoherent trans

Re: [U-Boot] [U-Boot, RFC] powerpc: add 2 common dcache assembly functions

2015-05-05 Thread York Sun
On 03/27/2015 08:07 AM, Valentin Longchamp wrote: > This patch defines the 2 flush_dcache_range and invalidate_dcache_range > functions for all the powerpc architecture. Their implementation is > borrowed from the kernel's misc_32.S file and replace the ones from > mpc86xx and ppc4xx since they w

Re: [U-Boot] [PATCH] board/t102x: use fdt_setprop_string instead of fdt_setprop

2015-05-05 Thread York Sun
On 04/14/2015 02:56 AM, Shengzhou Liu wrote: > Use fdt_setprop_string instead of fdt_setprop to fix string length. > > Signed-off-by: Shengzhou Liu > --- > board/freescale/t102xqds/eth_t102xqds.c | 9 + > board/freescale/t102xrdb/eth_t102xrdb.c | 4 ++-- > 2 files changed, 7 insertions

Re: [U-Boot] [PATCH] powerpc/mpc85xx: Don't deref NULL if qman portal lacks cell-index

2015-05-05 Thread York Sun
On 04/17/2015 04:10 PM, Scott Wood wrote: > Signed-off-by: Scott Wood > Cc: Madalin-Cristian Bucur > --- Applied to u-boot-mpc85xx master. Awaiting upstream. York ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-

  1   2   3   >