Re: [U-Boot] [PATCH v3] imx6sx: Fix i.MX6SX HAB api function table offset

2014-10-01 Thread Stefano Babic
Hi Nitin, On 30/09/2014 18:39, Nitin Garg wrote: > i.MX6SX ROM implements unified table sections. > The HAB function table is at offset 0x100. Update > the HAB function pointers accordingly. > > Signed-off-by: Nitin Garg > Tested-by: Fabio Estevam > > --- > Applied to u-boot-imx, thanks! Be

Re: [U-Boot] [PATCH] ARM: mx6: gw_ventana: Remove superfluous memset of GD in board_init_f

2014-10-01 Thread Stefano Babic
On 30/09/2014 12:41, Stefan Roese wrote: > Zeroing GD in board_init_f() is not needed any more. As its now done in > crt0.S. The patch that clears the GD in crt0.S is this one: > > aae2aef9 [arm: Set up global data before board_init_f()] from Simon. > > Signed-off-by: Stefan Roese > Cc: Tim Harv

Re: [U-Boot] [PATCH] wandboard: Select CONFIG_CMD_FUSE

2014-10-01 Thread Stefano Babic
On 24/09/2014 20:21, Fabio Estevam wrote: > From: Fabio Estevam > > Select CONFIG_CMD_FUSE so that the fuse API commands can be used. > > Signed-off-by: Fabio Estevam > --- Applied to u-boot-imx, thanks ! Best regards, Stefano Babic -- ==

Re: [U-Boot] [PATCH v4 1/5] mx6: crm_regs: Add bit definitions for anadig registers

2014-10-01 Thread Stefano Babic
Hi Nitin, Tom, Wolfgang, On 16/09/2014 18:48, Nitin Garg wrote: > Add bit definitons for various anadig registers as > required by various drivers. > > Signed-off-by: Nitin Garg > --- > > Changes in v4: None > Changes in v3: None > Changes in v2: None > > arch/arm/include/asm/arch-mx6/crm_reg

Re: [U-Boot] [PATCH 03/51] net: dwc: Fix cache alignment issues

2014-10-01 Thread Chin Liang See
Hi Marek, On Sun, 2014-09-21 at 14:58 +0200, ma...@denx.de wrote: > Fix remaining cache alignment issues in the DWC Ethernet driver. > Please note that the cache handling in the driver is making the > code hideous and thus the next patch cleans that up. In order to > make this change reviewable t

Re: [U-Boot] [PATCH v3 07/11] imx: Add error checking to setup_i2c()

2014-10-01 Thread Stefano Babic
On 17/09/2014 17:02, Simon Glass wrote: > Since this function can fail, check its return value. > > Signed-off-by: Simon Glass > --- > > Changes in v3: > - Just warn when one of the board init stages fails > > Changes in v2: > - Add new patch to add error checking to setup_i2c() > > arch/arm/

Re: [U-Boot] [PATCH v3 08/11] dm: imx: Use gpio_request() to request GPIOs

2014-10-01 Thread Stefano Babic
On 17/09/2014 17:02, Simon Glass wrote: > GPIOs should be requested before use. Without this, driver model will not > permit the GPIO to be used. > > Signed-off-by: Simon Glass > --- > > Changes in v3: > - Add a check for the Ethernet gpio_request() also > - Add a comment for the CONFIG_SPL_BUIL

Re: [U-Boot] [PATCH 04/51] net: dwc: Make the cache handling less cryptic

2014-10-01 Thread Chin Liang See
On Sun, 2014-09-21 at 14:58 +0200, ma...@denx.de wrote: > Add a few new variables to make the cache handling less cryptic. > Add a variable for DMA and DATA descriptor start and end, so the > correctness of the code is easier to inspect. > > Signed-off-by: Marek Vasut > Cc: Chin Liang See > Cc:

Re: [U-Boot] [PATCH 05/51] mmc: dw_mmc: cleanups

2014-10-01 Thread Chin Liang See
On Sun, 2014-09-21 at 14:58 +0200, ma...@denx.de wrote: > From: Pavel Machek > > The dw_mmc driver was responding to errors with debug(). Change that > to prinf()/puts() respectively so that any errors are immediately > obvious. Also adjust english in comments. > > Signed-off-by: Pavel Machek >

Re: [U-Boot] [PATCH 06/51] mmc: dw_mmc: Fix cache alignment issue

2014-10-01 Thread Chin Liang See
Hi Marek, On Sun, 2014-09-21 at 14:58 +0200, ma...@denx.de wrote: > The DMA descriptors used by the DW MMC block must be aligned to cacheline > size, otherwise we are unable to properly flush/inval cache over them and > we get data corruption. > > The reason I chose this approach of expanding the

Re: [U-Boot] [PATCH 07/51] tools: socfpga: Add socfpga preloader signing to mkimage

2014-10-01 Thread Chin Liang See
Hi Charles, On Sun, 2014-09-21 at 14:58 +0200, ma...@denx.de wrote: > From: Charles Manning > > Like many platforms, the Altera socfpga platform requires that the > preloader be "signed" in a certain way or the built-in boot ROM will > not boot the code. > > This change automatically creates an

Re: [U-Boot] [PATCH 08/51] arm: socfpga: Complete the list of base addresses

2014-10-01 Thread Chin Liang See
On Sun, 2014-09-21 at 14:58 +0200, ma...@denx.de wrote: > From: Pavel Machek > > Add base addresses for all subsystems as documented in the > Cyclone V HPS documentation. > > Signed-off-by: Pavel Machek > Signed-off-by: Marek Vasut > Cc: Chin Liang See > Cc: Dinh Nguyen > Cc: Albert Aribaud

Re: [U-Boot] [PATCH 09/51] arm: socfpga: Clean up base address file

2014-10-01 Thread Chin Liang See
On Sun, 2014-09-21 at 14:58 +0200, ma...@denx.de wrote: > Sort the list of functional block addresses and fix indentation. > No functional change. > > Signed-off-by: Marek Vasut > Cc: Chin Liang See > Cc: Dinh Nguyen > Cc: Albert Aribaud > Cc: Tom Rini > Cc: Wolfgang Denk > Cc: Pavel Machek

Re: [U-Boot] [PATCH V2 10/51] arm: socfpga: Add watchdog disable for socfpga

2014-10-01 Thread Chin Liang See
On Sun, 2014-09-21 at 14:58 +0200, ma...@denx.de wrote: > From: Pavel Machek > > This adds watchdog disable. It is neccessary for running Linux kernel. > > Signed-off-by: Pavel Machek > Signed-off-by: Marek Vasut > Cc: Chin Liang See > Cc: Dinh Nguyen > Cc: Albert Aribaud > Cc: Tom Rini >

Re: [U-Boot] [PATCH 0/5] ARM: sheevaplug: refresh for 201410

2014-10-01 Thread Prafulla Wadaskar
> -Original Message- > From: drEagle [mailto:drea...@doukki.net] > Sent: 26 September 2014 14:47 > To: Prafulla Wadaskar; Albert ARIBAUD > Cc: Nobuhiro Iwamatsu; U-Boot; Pantelis Antoniou; Tom > Rini > Subject: Re: [PATCH 0/5] ARM: sheevaplug: refresh for > 201410 > > Hi, > > Is there a

[U-Boot] [Question] Driver-Model UART on NOR-boot ? Work?

2014-10-01 Thread Masahiro Yamada
Hi Simon, I am looking at the driver-model serial code. I notice driver-model serial code uses ".data" section for storing the current device even before relocation. This code in drivers/serial/serial-uclass.c: /* The currently-selected console serial device */ struct udevice *cur_dev _

Re: [U-Boot] [PATCH v4 1/5] mx6: crm_regs: Add bit definitions for anadig registers

2014-10-01 Thread Nitin Garg
Hi Stefano, On 10/01/2014 02:21 AM, Stefano Babic wrote: > Hi Nitin, Tom, Wolfgang, > > On 16/09/2014 18:48, Nitin Garg wrote: >> Add bit definitons for various anadig registers as >> required by various drivers. >> >> Signed-off-by: Nitin Garg >> --- >> >> Changes in v4: None >> Changes in v3: N

Re: [U-Boot] [PATCH v3 07/11] imx: Add error checking to setup_i2c()

2014-10-01 Thread Nikita Kiryanov
Hi Simon, On 17/09/14 18:02, Simon Glass wrote: Since this function can fail, check its return value. Signed-off-by: Simon Glass --- Changes in v3: - Just warn when one of the board init stages fails Changes in v2: - Add new patch to add error checking to setup_i2c() arch/arm/imx-common/i

Re: [U-Boot] UBI issues on SAMA5D31 NOR flash

2014-10-01 Thread Heiko Schocher
Am 30.09.2014 13:19, schrieb Andy Pont: Hello Heiko, Hmm.. I thought to see something like this: "too large reserved_pebs %d, good PEBs %d" I am not familiar with this HW ... I think, you have to debug into it Changing the dbg_err() to ubi_err() and also adding a bit more output then I ge

Re: [U-Boot] [PATCH v3 08/11] dm: imx: Use gpio_request() to request GPIOs

2014-10-01 Thread Nikita Kiryanov
Hi Simon, On 17/09/14 18:02, Simon Glass wrote: GPIOs should be requested before use. Without this, driver model will not permit the GPIO to be used. Signed-off-by: Simon Glass This patch introduces a bunch of errors (once the driver model stuff is turned on), all related to the gpios never

[U-Boot] [PATCH v5] mx6: thermal: Check cpu temperature via thermal sensor

2014-10-01 Thread Nitin Garg
read cpu temperature using the onchip thermal sensor. Signed-off-by: Nitin Garg --- Changes in v5: -Don't modify the copyright of cpu.c file Changes in v4: -Added imx6 thermal sensor as a driver -Renamed the config define to be more meaningful -Move the clock code to clock.c -Reusing ocotp dri

[U-Boot] [PATCH v5] mx6: crm_regs: Add bit definitions for anadig registers

2014-10-01 Thread Nitin Garg
Add bit definitons for various anadig registers as required by various drivers. Signed-off-by: Nitin Garg --- Changes in v5: -Don't modify the copyright of crm_regs.h file Changes in v4: -Added imx6 thermal sensor as a driver -Renamed the config define to be more meaningful -Move the clock cod

Re: [U-Boot] [PATCH] imx6: add Bachmann OT1200 board v2

2014-10-01 Thread Christian Gmeiner
Hi Stefano > On 22/09/2014 13:57, Christian Gmeiner wrote: > > This patch adds support for the OT1200 series of devices. > > > > Following components are used in u-boot: > > + ethernet > > + i2c > > + emmc > > + gpio > > > > For more details see README. > > > > Changes v1 > v2 > > Can you also ver

Re: [U-Boot] [PATCH v5] mx6: crm_regs: Add bit definitions for anadig registers

2014-10-01 Thread Fabio Estevam
Hi Nitin, On Wed, Oct 1, 2014 at 9:19 AM, Nitin Garg wrote: > Add bit definitons for various anadig registers as > required by various drivers. > > Signed-off-by: Nitin Garg In the previous v4 version this was a patch series 1/4. Now it is a single patch. What about the other patches?

Re: [U-Boot] [PATCH v5] mx6: crm_regs: Add bit definitions for anadig registers

2014-10-01 Thread Nitin Garg
On 10/01/2014 07:26 AM, Fabio Estevam wrote: > Hi Nitin, > > On Wed, Oct 1, 2014 at 9:19 AM, Nitin Garg wrote: >> Add bit definitons for various anadig registers as >> required by various drivers. >> >> Signed-off-by: Nitin Garg > > In the previous v4 version this was a patch series 1/4. > > N

[U-Boot] [PATCH v5 0/5] add i.MX6 thermal sensor driver

2014-10-01 Thread Nitin Garg
This patch set adds i.MX6 thermal sensor driver and enables it for mx6sabre boards. Also adds various anadig bit definitions as required for upcoming drivers. Changes in v5: -Don't modify the copyright of cpu.c and crm_regs.h file Changes in v4: -Added imx6 thermal sensor as a driver -Renamed th

[U-Boot] [PATCH v5 4/5] mx6: thermal: Check cpu temperature via thermal sensor

2014-10-01 Thread Nitin Garg
read cpu temperature using the onchip thermal sensor. Signed-off-by: Nitin Garg --- arch/arm/imx-common/cpu.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/imx-common/cpu.c b/arch/arm/imx-common/cpu.c index ed826a0..a7b49bd 100644 --- a/arch/arm/imx-common/cpu.c +++ b/ar

[U-Boot] [PATCH v5 2/5] mx6: clock: Add api to enable pll3

2014-10-01 Thread Nitin Garg
Add api to check and enable pll3 as required for thermal sensor driver. Signed-off-by: Nitin Garg --- arch/arm/cpu/armv7/mx6/clock.c| 25 + arch/arm/include/asm/arch-mx6/clock.h |1 + 2 files changed, 26 insertions(+) diff --git a/arch/arm/cpu/armv7/mx6/cl

[U-Boot] [PATCH v5 1/5] mx6: crm_regs: Add bit definitions for anadig registers

2014-10-01 Thread Nitin Garg
Add bit definitons for various anadig registers as required by various drivers. Signed-off-by: Nitin Garg --- arch/arm/include/asm/arch-mx6/crm_regs.h | 541 ++ 1 file changed, 541 insertions(+) diff --git a/arch/arm/include/asm/arch-mx6/crm_regs.h b/arch/arm/incl

[U-Boot] [PATCH v5 3/5] mx6: thermal: Add i.MX6 CPU thermal sensor support

2014-10-01 Thread Nitin Garg
i.MX6 SoC has onchip temperature sensor. Add driver for this sensor. Signed-off-by: Nitin Garg --- drivers/Makefile |1 + drivers/thermal/Makefile |8 +++ drivers/thermal/imx_thermal.c | 137 + include/imx_thermal.h |

[U-Boot] [PATCH v5 5/5] mx6: thermal: Enable thermal sensor for mx6 sabre boards.

2014-10-01 Thread Nitin Garg
Add CONFIG_IMX6_THERMAL to mx6sabre_common.h file. Since thermal driver depends on ocotp, make sure to enable CONFIG_MXC_OCOTP when CONFIG_IMX6_THERMAL is slected. Signed-off-by: Nitin Garg --- Changes in v5: -Don't modify the copyright of cpu.c and crm_regs.h file Changes in v4: -Added imx6 t

Re: [U-Boot] [PATCH 08/51] arm: socfpga: Complete the list of base addresses

2014-10-01 Thread Marek Vasut
On Wednesday, October 01, 2014 at 12:19:14 PM, Chin Liang See wrote: > On Sun, 2014-09-21 at 14:58 +0200, ma...@denx.de wrote: > > From: Pavel Machek > > > > Add base addresses for all subsystems as documented in the > > Cyclone V HPS documentation. > > > > Signed-off-by: Pavel Machek > > Signe

Re: [U-Boot] [PATCH V2 10/51] arm: socfpga: Add watchdog disable for socfpga

2014-10-01 Thread Marek Vasut
On Wednesday, October 01, 2014 at 12:50:52 PM, Chin Liang See wrote: [...] > > + /* > > +* If the HW watchdog is NOT enabled, make sure it is not running, > > +* for example because it was enabled in the preloader. This might > > +* trigger a watchdog-triggered reboot of Linux kernel

Re: [U-Boot] [PATCH 0/3] usb: gadget: fastboot miscellaneous patches

2014-10-01 Thread Marek Vasut
On Wednesday, October 01, 2014 at 04:03:21 AM, Eric Nelson wrote: > Hi Marek, > > On 09/30/2014 04:59 PM, Marek Vasut wrote: > > On Tuesday, September 30, 2014 at 09:47:07 PM, Eric Nelson wrote: > >> Hi Marek, > >> > >> On 09/30/2014 12:37 PM, Marek Vasut wrote: > >>> On Tuesday, September 30, 20

Re: [U-Boot] [PATCH 03/51] net: dwc: Fix cache alignment issues

2014-10-01 Thread Marek Vasut
On Wednesday, October 01, 2014 at 09:23:51 AM, Chin Liang See wrote: > Hi Marek, > > On Sun, 2014-09-21 at 14:58 +0200, ma...@denx.de wrote: > > Fix remaining cache alignment issues in the DWC Ethernet driver. > > Please note that the cache handling in the driver is making the > > code hideous and

Re: [U-Boot] [PATCH 07/51] tools: socfpga: Add socfpga preloader signing to mkimage

2014-10-01 Thread Marek Vasut
On Wednesday, October 01, 2014 at 12:10:47 PM, Chin Liang See wrote: [...] > > + * The image is padded out to 64k, because that is what is > > + * typically used to write the image to the boot medium. > > + */ > > + > > +#include "pbl_crc32.h" > > Seems I cannot find this file See tools/pbl_crc

Re: [U-Boot] [PATCH 00/51] arm: socfpga: Usability fixes

2014-10-01 Thread Marek Vasut
On Wednesday, October 01, 2014 at 08:18:58 AM, Chin Liang See wrote: > On Sun, 2014-09-21 at 14:58 +0200, ma...@denx.de wrote: > > This entire series is the second stab at making SoCFPGA usable with > > mainline U-Boot again. There are much fewer bits missing than in the > > last series, more clean

Re: [U-Boot] [PATCH 06/51] mmc: dw_mmc: Fix cache alignment issue

2014-10-01 Thread Marek Vasut
On Wednesday, October 01, 2014 at 11:45:30 AM, Chin Liang See wrote: > Hi Marek, > > On Sun, 2014-09-21 at 14:58 +0200, ma...@denx.de wrote: > > The DMA descriptors used by the DW MMC block must be aligned to cacheline > > size, otherwise we are unable to properly flush/inval cache over them and >

[U-Boot] [PATCH] sunxi: Add support for the Mele M3 board

2014-10-01 Thread Hans de Goede
The Mele M3 is yet another Allwinnner based Android top set box from Mele. It uses a housing similar to the A2000, but without the USM sata storage slot at the top. It features an A20 SoC, 1G RAM, 4G eMMC (unique for Allwinner devices), 100Mbit ethernet, HDMI out, 3 USB A receptacles, VGA, and A/

Re: [U-Boot] [PATCH] arm, at91: add spi dataflash support for the taurus board

2014-10-01 Thread Jagan Teki
On 1 October 2014 10:56, Heiko Schocher wrote: > Signed-off-by: Heiko Schocher > Cc: Andreas Bießmann > Cc: Bo Shen > --- > board/siemens/taurus/taurus.c | 22 ++ > include/configs/taurus.h | 11 +++ > 2 files changed, 33 insertions(+) > > diff --git a/board/si

Re: [U-Boot] Commit 294b91a5817147d4b7f47be2ac69bac2a1f26491 broke mpc85xx

2014-10-01 Thread Simon Glass
Hi York, On 30 September 2014 22:06, York Sun wrote: > Simon, > > I didn't notice until today the commit > 294b91a5817147d4b7f47be2ac69bac2a1f26491 broke at least T4240QDS. I have > narrowed down to these two lines in common/board_r.c > > initr_barrier, > initr_malloc, > > If I move thes

[U-Boot] [PATCH 3/4 v3] arm: socfpga: Don't define CONFIG_SPI_FLASH_QUAD

2014-10-01 Thread Stefan Roese
This define is currently not supported in mainline U-Boot. So don't define it. Otherwise the drivers doesn't work correctly. Signed-off-by: Stefan Roese Cc: Chin Liang See Cc: Dinh Nguyen Cc: Vince Bridgers Cc: Marek Vasut Cc: Pavel Machek Cc: Michael Trimarchi Cc: Jagannadha Sutradharudu T

[U-Boot] [PATCH 2/4 v3] arm: socfpga: Add Cadence QSPI support to config header

2014-10-01 Thread Stefan Roese
Signed-off-by: Stefan Roese Cc: Chin Liang See Cc: Dinh Nguyen Cc: Vince Bridgers Cc: Marek Vasut Cc: Pavel Machek Cc: Michael Trimarchi Cc: Jagannadha Sutradharudu Teki --- include/configs/socfpga_cyclone5_common.h | 31 +++ 1 file changed, 31 insertions(+) di

[U-Boot] [PATCH 0/2 v3] arm: socfpga: Add Cadence QSPI support

2014-10-01 Thread Stefan Roese
Hi! So this is my 3rd posting regarding the Candence SPI driver on SoCFPGA. The current status is, that SPI NOR flash works now without problems. And dcache is still enabled. The previous disabling was not needed. And only caused problems while booting into Linux. No cache flush or invalidate is

[U-Boot] [PATCH 1/4 v3] spi: Add Cadence QSPI driver used by SoCFPGA

2014-10-01 Thread Stefan Roese
This driver is copied directly from the Altera Rockerboard.org U-Boot repository. I used this git tag: ACDS14.0.1_REL_GSRD_RC2. With minimal changes to enable compilation in mainline U-Boot. Signed-off-by: Stefan Roese Cc: Chin Liang See Cc: Dinh Nguyen Cc: Vince Bridgers Cc: Marek Vasut Cc:

[U-Boot] [RFC PATCH 4/4 v3] mtd: sf: Add CONFIG_SPI_N25Q256A_RESET for software-reset

2014-10-01 Thread Stefan Roese
This is needed for the SoCFPGA booting from SPI NOR flash e.g. (N25Q256A). With these changes, the SoCrates can boot and re-boot (reset) from SPI NOR flash without any problems. Signed-off-by: Stefan Roese Cc: Chin Liang See Cc: Dinh Nguyen Cc: Vince Bridgers Cc: Marek Vasut Cc: Pavel Machek

Re: [U-Boot] [PATCH v3 08/11] dm: imx: Use gpio_request() to request GPIOs

2014-10-01 Thread Simon Glass
Hi Nikita, On 1 October 2014 05:58, Nikita Kiryanov wrote: > Hi Simon, > > On 17/09/14 18:02, Simon Glass wrote: >> >> GPIOs should be requested before use. Without this, driver model will not >> permit the GPIO to be used. >> >> Signed-off-by: Simon Glass > > > This patch introduces a bunch of

[U-Boot] [PATCH] multiconfig.sh: replace GNU sed specific match

2014-10-01 Thread Jeroen Hofstee
A SPL/TPL enabled target would was not recognized as such by BSD sed, since it relies on a GNU extension. Instead of or-ing just spell out both matches. Cc: Masahiro Yamada Signed-off-by: Jeroen Hofstee --- https://www.gnu.org/software/sed/manual/sed.html: regexp1\|regexp2 Matches either r

Re: [U-Boot] [PATCH v3 07/11] imx: Add error checking to setup_i2c()

2014-10-01 Thread Simon Glass
Hi Nikita, On 1 October 2014 05:31, Nikita Kiryanov wrote: > Hi Simon, > > > On 17/09/14 18:02, Simon Glass wrote: >> >> Since this function can fail, check its return value. >> >> Signed-off-by: Simon Glass >> --- >> >> Changes in v3: >> - Just warn when one of the board init stages fails >> >>

Re: [U-Boot] [GENERIC_BOARD] env problems before relocation with ppc8360

2014-10-01 Thread Simon Glass
+York Hi Valentin, On 30 September 2014 01:03, Valentin Longchamp wrote: > Hi Simon, > > I'm very glad you answered this, I was busy with other stuff these last weeks > but I had planed to pick this issue again this week. > > On 09/28/2014 06:27 AM, Simon Glass wrote: >> Hi, >> >> On 26 August 2

Re: [U-Boot] [PATCH v2] kconfig: show an error message when defconfig is not found

2014-10-01 Thread York Sun
On 09/04/2014 06:16 AM, Masahiro Yamada wrote: > When a non-existing defconfig is specified, > display an easy-to-understand message > (fake the error message on Linux Kernel): > > $ make foo_defconfig > *** > *** Can't find default configuration "confis/foo_defconfig"! > *** > > Signed-o

Re: [U-Boot] compile issue with U-boot-2014.10-rc2 & Cubieboard

2014-10-01 Thread Jeroen Hofstee
Hello Tom, On 30-09-14 03:29, Tom Everett wrote: I am getting this compile error: scripts/Makefile.build:55: /tank/home/tom/freebsd/uboot/u-boot-2014.10-rc2/board/amd/sunxi/Makefile: No such file or directory gmake[1]: *** No rule to make target `/tank/home/tom/freebsd/uboot/u-boot-2014.10-rc2

Re: [U-Boot] [Question] Driver-Model UART on NOR-boot ? Work?

2014-10-01 Thread Simon Glass
Hi Masahiro, On 1 October 2014 05:23, Masahiro Yamada wrote: > Hi Simon, > > > > I am looking at the driver-model serial code. > > > I notice driver-model serial code uses ".data" section > for storing the current device even before relocation. > > > This code in drivers/serial/serial-uclass.c: >

Re: [U-Boot] [GENERIC_BOARD] env problems before relocation with ppc8360

2014-10-01 Thread York Sun
+Kim. Valentin, I haven't touched 83xx for a while. I remember I had to fix gd->flags when converting some 85xx boards to use generic board. Please see these commits 701e640145474131161de53a407d95d0d2f77082 8bae330f5c6542638da7136f39bc9c13214592cc 15672c6dbd7e5a110773480ccfe47b98ba1dc6f8 York

Re: [U-Boot] Please increase the image size for km boards

2014-10-01 Thread Valentin Longchamp
Hi York, On 09/30/2014 05:48 PM, York Sun wrote: > Valentin, > > We are seeing the image size of kmcoge4 and kmlion1 are on the edge. Attempts > to > add new features cause overflow. Would you consider to increase the image size > for km boards. You may have noticed several patches doing this fo

Re: [U-Boot] [PATCH v2] kconfig: show an error message when defconfig is not found

2014-10-01 Thread Masahiro YAMADA
Hi York. 2014-10-02 0:29 GMT+09:00 York Sun : >> + if [ ! -r $defconfig_path ]; then >> + echo >&2 "***" >> + echo >&2 "*** Can't find default configuration \"confis/$1\"!" > > s/confis/configs/ > Oops! Thanks for spotting this. Could send a patch, please? -- Be

Re: [U-Boot] Please increase the image size for km boards

2014-10-01 Thread York Sun
On 10/01/2014 08:39 AM, Valentin Longchamp wrote: > Hi York, > > On 09/30/2014 05:48 PM, York Sun wrote: >> Valentin, >> >> We are seeing the image size of kmcoge4 and kmlion1 are on the edge. >> Attempts to >> add new features cause overflow. Would you consider to increase the image >> size >>

[U-Boot] [PATCH] scripts/multiconfig.sh: Fix a typo

2014-10-01 Thread York Sun
Fix the spelling of "configs". Signed-off-by: York Sun CC: Masahiro Yamada --- scripts/multiconfig.sh |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/multiconfig.sh b/scripts/multiconfig.sh index 4a8737f..811fa6e 100644 --- a/scripts/multiconfig.sh +++ b/scripts/m

Re: [U-Boot] [PATCH] multiconfig.sh: replace GNU sed specific match

2014-10-01 Thread Masahiro YAMADA
Hi Jeroen, 2014-10-02 0:22 GMT+09:00 Jeroen Hofstee : > A SPL/TPL enabled target would was not recognized as > such by BSD sed, since it relies on a GNU extension. > Instead of or-ing just spell out both matches. > > Cc: Masahiro Yamada > Signed-off-by: Jeroen Hofstee > Acked-by: Masahiro Yamad

Re: [U-Boot] [PATCH] scripts/multiconfig.sh: Fix a typo

2014-10-01 Thread Masahiro YAMADA
Hi York, 2014-10-02 0:44 GMT+09:00 York Sun : > Fix the spelling of "configs". > > Signed-off-by: York Sun > CC: Masahiro Yamada > --- > scripts/multiconfig.sh |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/multiconfig.sh b/scripts/multiconfig.sh > index 4a

Re: [U-Boot] Commit 294b91a5817147d4b7f47be2ac69bac2a1f26491 broke mpc85xx

2014-10-01 Thread York Sun
On 10/01/2014 08:11 AM, Simon Glass wrote: > Hi York, > > > On 30 September 2014 22:06, York Sun wrote: >> Simon, >> >> I didn't notice until today the commit >> 294b91a5817147d4b7f47be2ac69bac2a1f26491 broke at least T4240QDS. I have >> narrowed down to these two lines in common/board_r.c >> >>

Re: [U-Boot] [Question] Driver-Model UART on NOR-boot ? Work?

2014-10-01 Thread Masahiro YAMADA
Hi Simon, 2014-10-02 0:31 GMT+09:00 Simon Glass : > Hi Masahiro, > > On 1 October 2014 05:23, Masahiro Yamada wrote: >> Hi Simon, >> >> >> >> I am looking at the driver-model serial code. >> >> >> I notice driver-model serial code uses ".data" section >> for storing the current device even before

Re: [U-Boot] Commit 294b91a5817147d4b7f47be2ac69bac2a1f26491 broke mpc85xx

2014-10-01 Thread Simon Glass
Hi York, On 1 October 2014 10:27, York Sun wrote: > On 10/01/2014 08:11 AM, Simon Glass wrote: > > Hi York, > > > > > > On 30 September 2014 22:06, York Sun wrote: > >> Simon, > >> > >> I didn't notice until today the commit > >> 294b91a5817147d4b7f47be2ac69bac2a1f26491 broke at least T4240QDS.

Re: [U-Boot] Commit 294b91a5817147d4b7f47be2ac69bac2a1f26491 broke mpc85xx

2014-10-01 Thread York Sun
On 10/01/2014 09:37 AM, Simon Glass wrote: > > Gosh. Is there something else relatively common in the PPC world that sells > for > $100-200? > Unlikely. This is high end SoC. York ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mai

Re: [U-Boot] Boot reason in SPL for OMAP4

2014-10-01 Thread Tom Rini
On Tue, Sep 30, 2014 at 10:26:08AM -0700, Gregoire Gentil wrote: > Hello, > > In TI x-loader, the boot reason is copied to a scratchpad 0x4A326000 > as shown here: > https://gitorious.org/x-loader/x-loader/source/HEAD:cpu/omap4/start.S#L102 > > How can I access the boot reason in u-boot or in th

Re: [U-Boot] Commit 294b91a5817147d4b7f47be2ac69bac2a1f26491 broke mpc85xx

2014-10-01 Thread Simon Glass
Hi York, On 1 October 2014 10:52, York Sun wrote: > On 10/01/2014 09:37 AM, Simon Glass wrote: >> >> Gosh. Is there something else relatively common in the PPC world that sells >> for >> $100-200? >> > > Unlikely. This is high end SoC. Well is there is some PPC board that is supported by U-Boot

Re: [U-Boot] [PATCH 6/7] arm: ls102xa: Add SD boot support for LS1021AQDS board

2014-10-01 Thread Albert ARIBAUD
Hi Huan, On Thu, 25 Sep 2014 06:45:00 +, Huan Wang wrote: > Hi, Albert, > > > On Mon, 22 Sep 2014 06:46:20 +, Huan Wang > > wrote: > > > > > Hi, Albert, > > > > > > > > On Thu, 18 Sep 2014 13:47:18 +0800, Alison Wang > > > > > > > > > > wrote: > > > > > > > > > > > + > > > > > > +

Re: [U-Boot] [RFC PATCH 4/4 v3] mtd: sf: Add CONFIG_SPI_N25Q256A_RESET for software-reset

2014-10-01 Thread Marek Vasut
On Wednesday, October 01, 2014 at 05:13:11 PM, Stefan Roese wrote: > This is needed for the SoCFPGA booting from SPI NOR flash > e.g. (N25Q256A). With these changes, the SoCrates can boot and > re-boot (reset) from SPI NOR flash without any problems. Seems like your SPI NOR reset logic is buggy. D

Re: [U-Boot] Commit 294b91a5817147d4b7f47be2ac69bac2a1f26491 broke mpc85xx

2014-10-01 Thread York Sun
On 10/01/2014 11:01 AM, Simon Glass wrote: > Hi York, > > On 1 October 2014 10:52, York Sun wrote: >> On 10/01/2014 09:37 AM, Simon Glass wrote: >>> >>> Gosh. Is there something else relatively common in the PPC world that sells >>> for >>> $100-200? >>> >> >> Unlikely. This is high end SoC. >

Re: [U-Boot] [RFC PATCH 4/4 v3] mtd: sf: Add CONFIG_SPI_N25Q256A_RESET for software-reset

2014-10-01 Thread Jagan Teki
On 1 October 2014 20:43, Stefan Roese wrote: > This is needed for the SoCFPGA booting from SPI NOR flash > e.g. (N25Q256A). With these changes, the SoCrates can boot and > re-boot (reset) from SPI NOR flash without any problems. > > Signed-off-by: Stefan Roese > Cc: Chin Liang See > Cc: Dinh Ngu

Re: [U-Boot] [RFC PATCH 4/4 v3] mtd: sf: Add CONFIG_SPI_N25Q256A_RESET for software-reset

2014-10-01 Thread Stefan Roese
On 01.10.2014 20:25, Marek Vasut wrote: On Wednesday, October 01, 2014 at 05:13:11 PM, Stefan Roese wrote: This is needed for the SoCFPGA booting from SPI NOR flash e.g. (N25Q256A). With these changes, the SoCrates can boot and re-boot (reset) from SPI NOR flash without any problems. Seems lik

Re: [U-Boot] [RFC PATCH 4/4 v3] mtd: sf: Add CONFIG_SPI_N25Q256A_RESET for software-reset

2014-10-01 Thread Jagan Teki
On 2 October 2014 00:27, Stefan Roese wrote: > On 01.10.2014 20:25, Marek Vasut wrote: >> >> On Wednesday, October 01, 2014 at 05:13:11 PM, Stefan Roese wrote: >>> >>> This is needed for the SoCFPGA booting from SPI NOR flash >>> e.g. (N25Q256A). With these changes, the SoCrates can boot and >>> r

Re: [U-Boot] [RFC PATCH 4/4 v3] mtd: sf: Add CONFIG_SPI_N25Q256A_RESET for software-reset

2014-10-01 Thread Stefan Roese
On 01.10.2014 21:04, Jagan Teki wrote: This is needed for the SoCFPGA booting from SPI NOR flash e.g. (N25Q256A). With these changes, the SoCrates can boot and re-boot (reset) from SPI NOR flash without any problems. Seems like your SPI NOR reset logic is buggy. Does any of [1] apply to your b

Re: [U-Boot] [PATCH 1/3] usb: gadget: fastboot: add max-download-size variable

2014-10-01 Thread Steve Rae
On 14-09-30 12:05 PM, Eric Nelson wrote: Current Android Fastboot seems to use 'max-download-size' instead of 'downloadsize' variable to indicate the maximum size of sparse segments. See function get_target_sparse_limit() in file fastboot/fastboot.c in the AOSP: https://android.google

Re: [U-Boot] [PATCH 2/3] usb: gadget: fastboot: explicitly set radix of maximum download size

2014-10-01 Thread Steve Rae
On 14-09-30 12:05 PM, Eric Nelson wrote: The processing of the max-download-size variable requires a radix specifier, or the fastboot host tool will interpret it as an octal number. See function get_target_sparse_limit() in file fastboot/fastboot.c in the AOSP: https://android.googles

Re: [U-Boot] [PATCH 3/3] usb: gadget: fastboot: terminate commands with NULL

2014-10-01 Thread Steve Rae
On 14-09-30 12:05 PM, Eric Nelson wrote: Without NULL termination, various commands will read past the end of input. In particular, this was noticed with error() calls in cb_getvar and simple_strtoul() in cb_download. Since the download callback happens elsewhere, the 4k buffer should always b

Re: [U-Boot] [PATCH 0/3] usb: gadget: fastboot miscellaneous patches

2014-10-01 Thread Steve Rae
On 14-10-01 05:13 AM, Marek Vasut wrote: On Wednesday, October 01, 2014 at 04:03:21 AM, Eric Nelson wrote: Hi Marek, On 09/30/2014 04:59 PM, Marek Vasut wrote: On Tuesday, September 30, 2014 at 09:47:07 PM, Eric Nelson wrote: Hi Marek, On 09/30/2014 12:37 PM, Marek Vasut wrote: On Tuesday

Re: [U-Boot] [PATCH 3/3] usb: gadget: fastboot: terminate commands with NULL

2014-10-01 Thread Eric Nelson
Thanks Steve, On 10/01/2014 01:40 PM, Steve Rae wrote: > > > On 14-09-30 12:05 PM, Eric Nelson wrote: >> Without NULL termination, various commands will read past the >> end of input. In particular, this was noticed with error() >> calls in cb_getvar and simple_strtoul() in cb_download. >> >> Si

[U-Boot] [PATCH V2 3/3] usb: gadget: fastboot: terminate commands with NULL

2014-10-01 Thread Eric Nelson
Without NULL termination, various commands will read past the end of input. In particular, this was noticed with error() calls in cb_getvar and simple_strtoul() in cb_download. Since the download callback happens elsewhere, the 4k buffer should always be sufficient to handle command arguments. Si

Re: [U-Boot] [RFC PATCH 4/4 v3] mtd: sf: Add CONFIG_SPI_N25Q256A_RESET for software-reset

2014-10-01 Thread Pavel Machek
On Wed 2014-10-01 21:25:12, Stefan Roese wrote: > On 01.10.2014 21:04, Jagan Teki wrote: > This is needed for the SoCFPGA booting from SPI NOR flash > e.g. (N25Q256A). With these changes, the SoCrates can boot and > re-boot (reset) from SPI NOR flash without any problems. > >>> > >>> >

Re: [U-Boot] [Question] Driver-Model UART on NOR-boot ? Work?

2014-10-01 Thread Simon Glass
Hi Masahiro, On 1 October 2014 10:27, Masahiro YAMADA wrote: > > Hi Simon, > > 2014-10-02 0:31 GMT+09:00 Simon Glass : > > Hi Masahiro, > > > > On 1 October 2014 05:23, Masahiro Yamada wrote: > >> Hi Simon, > >> > >> > >> > >> I am looking at the driver-model serial code. > >> > >> > >> I notice

Re: [U-Boot] [PATCH v1 06/10] spl, nand, atmel_nand: add erase one block function

2014-10-01 Thread Scott Wood
On Wed, 2014-10-01 at 07:54 +0200, Heiko Schocher wrote: > diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h > index 8438490..ee2c3fe 100644 > --- a/include/linux/mtd/nand.h > +++ b/include/linux/mtd/nand.h > @@ -1020,5 +1020,6 @@ void nand_write_buf16(struct mtd_info *mtd, const >

[U-Boot] [PATCH] nitrogen6x: Update DDR timings for 2G memory arrangement

2014-10-01 Thread Eric Nelson
Update DDR calibration settings based on a larger test set. The initial values were gathered on a small number of boards, and have been found to fail on some boards under load. Signed-off-by: Eric Nelson --- board/boundary/nitrogen6x/1066mhz_4x256mx16.cfg | 24 1 file c

[U-Boot] [PATCH v4 2/9] dm: core: Allow a list of devices to be declared in one step

2014-10-01 Thread Simon Glass
The U_BOOT_DEVICE macro allows the declaration of a single U-Boot device. Add an equivalent macro to declare an array of devices, for convenience. Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: None include/dm/platdata.h | 4 1 file changed, 4 insert

[U-Boot] [PATCH v4 0/9] dm: imx: Add driver model support for GPIO and serial on cm_fx6

2014-10-01 Thread Simon Glass
This series adjusts the IMX serial and GPIO drivers to support driver model. As an example of its use, the recently-added cm_fx6 board is converted over to driver model. Some minor driver model core changed are required to make this work and these are included with this series. Thanks to the Comp

[U-Boot] [PATCH v4 3/9] initcall: Display error number when an error occurs

2014-10-01 Thread Simon Glass
Now that some initcall functions return a useful error number, display it when something goes wrong. Signed-off-by: Simon Glass Acked-by: Igor Grinberg --- Changes in v4: None Changes in v3: None Changes in v2: - Add patch to display error number when an error occurs in initcall lib/initcall.

[U-Boot] [PATCH v4 1/9] dm: linker_lists: Add a way to declare multiple objects

2014-10-01 Thread Simon Glass
The existing ll_entry_declare() permits a single element of the list to be added to a linker list. Sometimes we want to add several objects at once. To avoid lots of messy declarations, add a macro to support this. Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in

[U-Boot] [PATCH v4 8/9] dm: imx: serial: Support driver model in the MXC serial driver

2014-10-01 Thread Simon Glass
Add driver model support with this driver. Boards which use this driver should define platform data in their board files. Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: None drivers/serial/serial_mxc.c | 170 +--- i

[U-Boot] [PATCH v4 9/9] dm: imx: Move cm_fx6 to use driver model for serial and GPIO

2014-10-01 Thread Simon Glass
Now that serial and GPIO are available for iMX.6, move cm_fx6 over as an example. Acked-by: Igor Grinberg Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: - Use the correct namespace for the platform data board/compulab/cm_fx6/cm_fx6.c | 10 ++ inc

[U-Boot] [PATCH v4 4/9] dm: serial: Put common code into separate functions

2014-10-01 Thread Simon Glass
Avoid duplicating the code which deals with getc() and putc(). It is fairly simple, but may expand later. Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: None drivers/serial/serial-uclass.c | 32 +--- 1 file changed, 17 insertio

[U-Boot] [PATCH v4 5/9] imx: Add error checking to setup_i2c()

2014-10-01 Thread Simon Glass
Since this function can fail, check its return value. Signed-off-by: Simon Glass Tested-by: Nikita Kiryanov --- Changes in v4: - Move SATA changes into the next patch Changes in v3: - Just warn when one of the board init stages fails Changes in v2: - Add new patch to add error checking to set

[U-Boot] [PATCH v4 7/9] dm: imx: gpio: Support driver model in MXC gpio driver

2014-10-01 Thread Simon Glass
Add driver model support with this driver. In this case the platform data is in the driver. It would be better to put this into an SOC-specific file, but this is best attempted when more boards are moved over to use driver model. Signed-off-by: Simon Glass Acked-by: Igor Grinberg --- Changes in

[U-Boot] [PATCH v4 6/9] dm: imx: Use gpio_request() to request GPIOs

2014-10-01 Thread Simon Glass
GPIOs should be requested before use. Without this, driver model will not permit the GPIO to be used. Signed-off-by: Simon Glass --- Changes in v4: - Adjust error checking to permit calling gpio_request() multiple times - Avoid doing low-level SATA init multiple times - Move SATA changes into th

Re: [U-Boot] [PATCH v4 0/15] samsung: Use common config files with Samsung boards

2014-10-01 Thread Minkyu Kang
Hi, On 01/10/14 11:12, Simon Glass wrote: > Hi Minkyu, > > On 30 September 2014 07:47, Minkyu Kang wrote: >> Dear Simon Glass, >> >>> >> >> patch failed at latest u-boot-samsung tree. >> >> error: patch failed: include/configs/smdk5250.h:9 >> error: include/configs/smdk5250.h: patch does not app

Re: [U-Boot] [PATCH v4 0/9] dm: imx: Add driver model support for GPIO and serial on cm_fx6

2014-10-01 Thread Simon Glass
Hi Nikita, On 1 October 2014 19:57, Simon Glass wrote: > This series adjusts the IMX serial and GPIO drivers to support driver model. > As an example of its use, the recently-added cm_fx6 board is converted over > to driver model. > > Some minor driver model core changed are required to make this

Re: [U-Boot] [PATCH v4 0/15] samsung: Use common config files with Samsung boards

2014-10-01 Thread Simon Glass
Hi Minkyu, On 1 October 2014 19:59, Minkyu Kang wrote: > Hi, > > On 01/10/14 11:12, Simon Glass wrote: >> Hi Minkyu, >> >> On 30 September 2014 07:47, Minkyu Kang wrote: >>> Dear Simon Glass, >>> >>> >>> patch failed at latest u-boot-samsung tree. >>> >>> error: patch failed: include/config

Re: [U-Boot] Commit 294b91a5817147d4b7f47be2ac69bac2a1f26491 broke mpc85xx

2014-10-01 Thread Scott Wood
On Wed, 2014-10-01 at 09:27 -0700, York Sun wrote: > On 10/01/2014 08:11 AM, Simon Glass wrote: > > Hi York, > > > > > > On 30 September 2014 22:06, York Sun wrote: > >> Simon, > >> > >> I didn't notice until today the commit > >> 294b91a5817147d4b7f47be2ac69bac2a1f26491 broke at least T4240QDS.

Re: [U-Boot] [PATCH 1/3] usb: gadget: fastboot: add max-download-size variable

2014-10-01 Thread Marek Vasut
On Wednesday, October 01, 2014 at 10:38:57 PM, Steve Rae wrote: > On 14-09-30 12:05 PM, Eric Nelson wrote: > > Current Android Fastboot seems to use 'max-download-size' instead > > of 'downloadsize' variable to indicate the maximum size of sparse > > segments. > > > > See function get_target_spars

Re: [U-Boot] [RFC PATCH 4/4 v3] mtd: sf: Add CONFIG_SPI_N25Q256A_RESET for software-reset

2014-10-01 Thread Marek Vasut
On Wednesday, October 01, 2014 at 09:04:48 PM, Jagan Teki wrote: > On 2 October 2014 00:27, Stefan Roese wrote: > > On 01.10.2014 20:25, Marek Vasut wrote: > >> On Wednesday, October 01, 2014 at 05:13:11 PM, Stefan Roese wrote: > >>> This is needed for the SoCFPGA booting from SPI NOR flash > >>>

Re: [U-Boot] Commit 294b91a5817147d4b7f47be2ac69bac2a1f26491 broke mpc85xx

2014-10-01 Thread York Sun
On 10/01/2014 07:15 PM, Scott Wood wrote: >> >> I can change init sequence as far as I put initr_unlock_ram_in_cache before >> initr_malloc, T4240QDS still boots. > > Yes, we shouldn't have any reason to keep the cache locked that long. > >> I examine the code but don't understand why I have to d

  1   2   >