Re: [U-Boot] [PATCH] ARM: mx6: Add support for Kosagi Novena

2014-10-01 Thread Sean Cross
On 28/09/2014 04:19, Marek Vasut wrote: > On Wednesday, September 24, 2014 at 06:57:06 PM, Sean Cross wrote: > > [...] >>> +#define NOVENA_AUDIO_PWRON IMX_GPIO_NR(5, 17) >>> +#define NOVENA_HDMI_GHOST_HPD IMX_GPIO_NR(5, 4) >>> +#define NOVENA_PCIE_RESET_GPIO IMX_GPI

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 02.10.2014 01:07, Pavel Machek wrote: 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

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

2014-10-01 Thread Heiko Schocher
Hello Jagan, Am 01.10.2014 16:30, schrieb 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

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

2014-10-01 Thread Heiko Schocher
Hello Scott, Am 02.10.2014 03:17, schrieb 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

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

2014-10-01 Thread Masahiro Yamada
Hi Simon, On Wed, 1 Oct 2014 17:43:19 -0600 Simon Glass wrote: > > > > > > The pre-reloc malloc() area goes below global_data so uses the same > > > mechanism. > > > > > > Yes it is true that strictly speaking we should not use data before > > > relocation. I suppose we could move cur_dev to

[U-Boot] converting BeagleBone Black to use config_distro_bootcmd

2014-10-01 Thread Vagrant Cascadian
I've been working on standardizing the u-boot builds in Debian, and one platform I've been working on moving over to config_distro_defaults is the BeagleBone Black... In doing so, it took some moderate modification of config_distro_defaults to allow changing some hard-coded values, and implementin

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

2014-10-01 Thread Gregoire Gentil
On 10/01/2014 10:34 AM, Tom Rini wrote: 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

[U-Boot] U-Boot Sunxi breaks LCD output on Olimex Lime A10

2014-10-01 Thread Hendrik
I have always been using the sunxi u-boot from 'https://github.com/linux-sunxi/u-boot-sunxi' and that works fine, but now I want to boot the kernel from USB. That is not possible in that u-boot branch. Therefore I switched to the latest U-Boot 'git://git.denx.de/u-boot.git' for the Olimex Allwi

[U-Boot] u-boot compilation broken for OMAP4 if no USB_HOST_ETHER

2014-10-01 Thread Gregoire Gentil
Hello, If you try to compile u-boot head for OMAP4 without CONFIG_USB_HOST_ETHER, it's failing. --- a/arch/arm/cpu/armv7/omap-common/utils.c +++ b/arch/arm/cpu/armv7/omap-common/utils.c @@ -57,6 +57,8 @@ void __weak usb_fake_mac_from_die_id(u32 *id) device_mac[4] = id[0] & 0xff

Re: [U-Boot] Please sync u-boot-arm/master with u-boot/master

2014-10-01 Thread Masahiro Yamada
Ping? Albert, u-boot-arm/master is more than ten days old. I need to prepare my pull-request based on the latest commit. So, please update your repository. Thanks, Masahiro Yamada On Mon, 29 Sep 2014 00:14:30 +0900 Masahiro YAMADA wrote: > Hi Albert, > > Could you have your u-boot-arm/

[U-Boot] [PATCH v5 13/15] samsung: Enable device tree for s5p_goni

2014-10-01 Thread Simon Glass
Change this board to add a device tree. This also adds a pinmux header file although it is not used as yet. Signed-off-by: Simon Glass --- Changes in v5: None Changes in v4: - Rebase on top of master (CONFIG_OF settings moved to Kconfig) Changes in v3: - Adjust device tree file based on Robert

[U-Boot] [PATCH v5 14/15] samsung: Enable device tree for smdkc100

2014-10-01 Thread Simon Glass
Change this board to add a device tree. Signed-off-by: Simon Glass --- Changes in v5: - Rebase on top of samsung/master Changes in v4: - Rebase on top of master (CONFIG_OF settings moved to Kconfig) Changes in v3: None Changes in v2: - Avoid using a common file, and just add a device tree - Fi

[U-Boot] [PATCH v5 11/15] config: Move arndale to use common exynos5250 file

2014-10-01 Thread Simon Glass
Most of the arndale features are common with other exynos5250 boards. To permit easier addition of driver model support, use the common file. Signed-off-by: Simon Glass --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: - Reduce the number of common elements to avoid

[U-Boot] [PATCH v5 15/15] exynos: Enable pre-relocation malloc()

2014-10-01 Thread Simon Glass
Enable this feature to support driver model before relocation. Signed-off-by: Simon Glass --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None include/configs/exynos-common.h | 5 +++-- include/configs/odroid.h| 2 -- include/configs/s5p_goni.h | 5 +

[U-Boot] [PATCH v5 10/15] exynos: config: Move cros_ec and tps65090 out of smdk boards

2014-10-01 Thread Simon Glass
These boards do not in fact have a Chrome OS EC, nor a TPS565090 PMIC, so move the settings into a separate common file to be used by those that need it. Signed-off-by: Simon Glass --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None include/configs/exynos5-commo

[U-Boot] [PATCH v5 07/15] exynos: Rename -dt config files to -common

2014-10-01 Thread Simon Glass
We want exynos5250-dt.h to be a board which can support any exynos5250 device. This matches the naming used by Linux. As a first step, rename the existing -dt files to -common to make it clear they are common files, and not specific boards. Signed-off-by: Simon Glass --- Changes in v5: None Chan

[U-Boot] [PATCH v5 08/15] exynos: Move common exynos settings into a common file

2014-10-01 Thread Simon Glass
Since exynos4 and exyno5 share many settings, we should move these into a common file to avoid duplication. In effect the changes are that all exynos boards now have EXT4 and FAT write support. This affects exynos5250 and exynos5420 which previously did not. This also disables the ext2 commands wh

[U-Boot] [PATCH v5 02/15] exynos5: Enable data cache

2014-10-01 Thread Simon Glass
Things run faster when the data cache is enabled, so turn it on along with the 'dcache' command. Signed-off-by: Simon Glass Tested-by: Ajay Kumar --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: - Fix 'cashe' typo in commit subject include/configs/exynos5-dt.h |

[U-Boot] [PATCH v5 03/15] cros_ec: power: Add a tunnelled version of the tps65090 driver

2014-10-01 Thread Simon Glass
Unfortunately on Pit the AP has no direct access to the tps65090 but must talk through the EC (over SPI) to the EC's I2C bus. When driver model supports PMICs this will be relatively easy. In the meantime the best approach is to duplicate the driver. It will be refactored once driver model support

[U-Boot] [PATCH v5 09/15] exynos: Move common smdk5420 things to common file

2014-10-01 Thread Simon Glass
A few things are common but are not in the common file. Fix this and rename the file to fit with the other exynos*-common files. Signed-off-by: Simon Glass --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: - Leave CONFIG_SERIAL3 in the individual board files - Reduce

[U-Boot] [PATCH v5 12/15] config: Move smdkv310 to use common exynos4 file

2014-10-01 Thread Simon Glass
Most of the smdkv310 features are common with other exynos4 boards. To permit easier addition of driver model support, use the common file and add a device tree file. Signed-off-by: Simon Glass --- Changes in v5: None Changes in v4: - Rebase on top of master (CONFIG_OF settings moved to Kconfig)

[U-Boot] [PATCH v5 05/15] dm: exynos: Split out the cros_ec drivers

2014-10-01 Thread Simon Glass
With the driver model conversion we are going to be using driver model for SPI and not for I2C. This works OK so long as a board doesn't need both dm and non-dm versions of the cros_ec driver. Since pit uses SPI and snow uses I2C we need to split the configs so that only one driver is compiled for

[U-Boot] [PATCH v5 01/15] Exynos: Use 900MHz ARM frequency in SPL for peach_pit

2014-10-01 Thread Simon Glass
The device seems to hang in SPL if the full speed is used when booting from USB, perhaps because the PMIC has not been set to the maximum ARM core voltage yet. Slow it down to a reliable speed. Signed-off-by: Simon Glass --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in

[U-Boot] [PATCH v5 06/15] exynos: dts: Add device tree node for cros_ec keyboard

2014-10-01 Thread Simon Glass
Add a keyboard definition so that the keyboard can be used on pit. Signed-off-by: Simon Glass --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: - Add new patch to enable keyboard on pit arch/arm/dts/exynos5420-peach-pit.dts | 55 +++

[U-Boot] [PATCH v5 04/15] cros_ec: exynos: Use the correct tps65090 driver in each case

2014-10-01 Thread Simon Glass
Exynos 5250 boards (snow, spring) use the I2C driver but Exynos 5420 boards cannot due to a hardware design decision. Select the correct driver to use in each case. Signed-off-by: Simon Glass Tested-by: Ajay Kumar --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: -

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

2014-10-01 Thread Simon Glass
Hi Minkyu, On 1 October 2014 21:43, Simon Glass wrote: > This series tries to unify the Samsung board configs into a few header > files for exynos5 and exynos4. > > The purpose is to make it easier to move to driver model. In that case > I would like things like the GPIO drivers and serial driver

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

2014-10-01 Thread Simon Glass
This series tries to unify the Samsung board configs into a few header files for exynos5 and exynos4. The purpose is to make it easier to move to driver model. In that case I would like things like the GPIO drivers and serial drivers to work in a standard way, and not need to support device tree a

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

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] [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] 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 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] [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 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

[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

[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 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 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 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] 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

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 >

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] [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. > >>> > >>> >

[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] [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

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 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 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 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] [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] [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 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 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] 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 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] [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] 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] 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 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] 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] [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 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] [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] [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

[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] 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 >>

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 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] [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] [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] 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] [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] [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 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 >> >>

[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 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 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

[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 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 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

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

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

[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 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 >

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 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 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 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 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 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

[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

[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 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 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

  1   2   >