[U-Boot] [PATCH] ARM: dts: uniphier: rework System Bus nodes

2016-02-16 Thread Masahiro Yamada
Follow the changes of DTS in Linux. Signed-off-by: Masahiro Yamada --- arch/arm/dts/uniphier-common32.dtsi | 19 ++- arch/arm/dts/uniphier-ph1-sld3.dtsi | 20 ++-- 2 files changed, 20 insertions(+), 19 deletions(-) diff --git a/arch/arm/dts/uniphier-common32.dts

[U-Boot] [PATCH v4 4/4] ARM: dts: uniphier: add GPIO controller nodes

2016-02-16 Thread Masahiro Yamada
Make the GPIO driver really active. Signed-off-by: Masahiro Yamada --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/dts/uniphier-ph1-ld4.dtsi | 112 ++ arch/arm/dts/uniphier-ph1-pro4.dtsi| 203 + arch/arm/dts/uniph

[U-Boot] [PATCH v4 1/4] gpio: uniphier: add driver for UniPhier GPIO controller

2016-02-16 Thread Masahiro Yamada
This GPIO controller device is used on UniPhier SoCs. Signed-off-by: Masahiro Yamada Acked-by: Simon Glass --- Changes in v4: - set uc_priv->bank_name Changes in v3: - one gpio bank per register Changes in v2: - Do not use "ngpio" property to specify the number of GPIO pins. Instead

[U-Boot] [PATCH v4 2/4] gpio: do not include for UniPhier

2016-02-16 Thread Masahiro Yamada
I implemented a GPIO driver based on Driver Model for the UniPhier SoC family, but I could not find any good reason why such SoC specific GPIO headers are needed. Signed-off-by: Masahiro Yamada Acked-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/incl

[U-Boot] [PATCH v4 3/4] ARM: uniphier: enable GPIO command and driver for UniPhier SoCs

2016-02-16 Thread Masahiro Yamada
This allows to use the "gpio" command. Signed-off-by: Masahiro Yamada Acked-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/Kconfig | 1 + configs/uniphier_ld4_sld8_defconfig | 2 ++ configs/uniphier_pro4_defconfig | 2 ++ con

[U-Boot] [PATCH v4 0/4] UniPhier: add GPIO support

2016-02-16 Thread Masahiro Yamada
Changes in v4: - set uc_priv->bank_name Changes in v3: - one gpio bank per register Changes in v2: - Do not use "ngpio" property to specify the number of GPIO pins. Instead, use .data field of OF match table. Masahiro Yamada (4): gpio: uniphier: add driver for UniPhier GPIO control

[U-Boot] [PATCH v3 2/3] ARM: uniphier: enable UniPhier SD/MMC host driver

2016-02-16 Thread Masahiro Yamada
Enable the driver in all UniPhier defconfig files and add some needed defines to the common files. Signed-off-by: Masahiro Yamada --- Changes in v3: None Changes in v2: None arch/arm/Kconfig | 1 + configs/uniphier_ld4_sld8_defconfig | 1 + configs/uniphier_pro4_defconfig

[U-Boot] [PATCH v3 0/3] UniPhier SD/eMMC controller driver

2016-02-16 Thread Masahiro Yamada
Changes in v3: - Use dev_err/dev_dbg instead of pr_err/pr_debug - Tidy up uniphier_sd_set_ios() - Allow to use DMA even in SPL if the target address is DMA'able Changes in v2: - Fix the divisor bug on the older IP (on PH1-LD4, PH1-sLD8, PH1-Pro4) - Increase time out because "mmc erase"

[U-Boot] [PATCH v3 3/3] ARM: dts: uniphier: add SD/MMC host controller nodes

2016-02-16 Thread Masahiro Yamada
This host controller is available for all UniPhier SoCs. Signed-off-by: Masahiro Yamada --- Changes in v3: None Changes in v2: None arch/arm/dts/uniphier-ph1-ld4-ref.dts| 4 +++ arch/arm/dts/uniphier-ph1-ld4.dtsi | 25 +++ arch/arm/dts/uniphier-ph1-ld6b-ref.d

[U-Boot] [PATCH v3 1/3] mmc: uniphier: add driver for UniPhier SD/MMC host controller

2016-02-16 Thread Masahiro Yamada
Add a driver for the on-chip SD/eMMC host controller used by UniPhier SoC family. Signed-off-by: Masahiro Yamada --- Changes in v3: - Use dev_err/dev_dbg instead of pr_err/pr_debug - Tidy up uniphier_sd_set_ios() - Allow to use DMA even in SPL if the target address is DMA'able Changes in

[U-Boot] [PATCH 2/4] ARM: uniphier: add a command to find the first MMC (non-SD) device

2016-02-16 Thread Masahiro Yamada
UniPhier SoC family supports both (e)MMC boot and SD card boot; however, both of them are handled in the same uclass. When booting from the eMMC, we want to know the device number of the (e)MMC, not SD. This command is useful to find the first MMC (non-SD) device. Signed-off-by: Masahiro Yamada

[U-Boot] [PATCH 1/4] ARM: uniphier: add eMMC boot support

2016-02-16 Thread Masahiro Yamada
Export device nodes needed for eMMC boot (eMMC node, pinctrl, and clock) to the SPL DTB. CONFIG_SUPPORT_EMMC_BOOT is also necessary to use "mmc partconf" command. Signed-off-by: Masahiro Yamada --- arch/arm/dts/uniphier-ph1-pro4-sanji.dts | 12 arch/arm/dts/uniphier-proxstream

[U-Boot] [PATCH 4/4] ARM: uniphier: default to environment in eMMC

2016-02-16 Thread Masahiro Yamada
Of the several boot devices supported, it looks like the eMMC is the most commonly used. Enable CONFIG_ENV_IS_IN_MMC by default. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/boot-mode/boot-mode.c | 5 + include/configs/uniphier.h | 12 ++-- 2 files c

[U-Boot] [PATCH 0/4] ARM: uniphier: eMMC boot support

2016-02-16 Thread Masahiro Yamada
Masahiro Yamada (4): ARM: uniphier: add eMMC boot support ARM: uniphier: add a command to find the first MMC (non-SD) device ARM: uniphier: add emmcupdate command ARM: uniphier: default to environment in eMMC arch/arm/dts/uniphier-ph1-pro4-sanji.dts | 12 + arch/arm/dts/uniphier

[U-Boot] [PATCH 3/4] ARM: uniphier: add emmcupdate command

2016-02-16 Thread Masahiro Yamada
The Boot ROM expects the boot image (SPL) in the Boot Partition 1. So, updating images involves the hardware partition switch. It might be a bit advanced for some users. To be user-friendly, this commit adds a useful command to update the images; just put SPL and U-Boot proper into the public dir

Re: [U-Boot] [PATCH v2 1/3] mmc: uniphier: add driver for UniPhier SD/MMC host controller

2016-02-16 Thread Masahiro Yamada
Hi Marek, 2016-02-10 22:45 GMT+09:00 Marek Vasut : > On 02/10/2016 02:28 PM, Masahiro Yamada wrote: >> Add a driver for the on-chip SD/eMMC host controller used by >> UniPhier SoC family. >> >> Signed-off-by: Masahiro Yamada > > 前略 山田さん, > > [...] > >> +#include >> +#include >> +#include >> +

[U-Boot] [PATCH v2] ARM: at91: sama5d2: configure the L2 cache memory

2016-02-16 Thread Samuel Mescoff
The SAMA5D2 has a second internal SRAM that can be reassigned as a L2 cache memory. Make sure it is configured as a L2 cache memory when booting from a SPL image. Based on the commit b5ea95ef2b5b from the at91bootstrap repository. Signed-off-by: Samuel Mescoff --- Changes for v2: - removed use

Re: [U-Boot] [PATCH v2] ARM: at91: sama5d2: configure the L2 cache memory

2016-02-16 Thread Yang, Wenyou
> -Original Message- > From: Samuel Mescoff [mailto:samuel.mesc...@mobile-devices.fr] > Sent: 2016年2月16日 16:45 > To: u-boot@lists.denx.de > Cc: Samuel Mescoff ; > andreas.de...@googlemail.com; Yang, Wenyou ; > Ferre, Nicolas > Subject: [U-Boot] [PATCH v2] ARM: at91: sama5d2: configure th

Re: [U-Boot] [PATCH] fastboot: update error and warning messages

2016-02-16 Thread Lukasz Majewski
Hi Marek, > On 02/16/2016 02:20 AM, Steve Rae wrote: > > ping -- Thanks! > > > > On 16-01-27 03:42 PM, Marek Vasut wrote: > >> On Thursday, January 28, 2016 at 12:02:41 AM, Steve Rae wrote: > >>> Fix the formatting in error messages, and demote one error message > >>> to a warning, as it is only

[U-Boot] [PATCH] fixup! gpio: uniphier: add driver for UniPhier GPIO controller

2016-02-16 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- doc/README.uniphier | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/README.uniphier b/doc/README.uniphier index 47b4d78..5ac52bd 100644 --- a/doc/README.uniphier +++ b/doc/README.uniphier @@ -110,6 +110,7 @@ Supported devices - SD/eMMC - USB 2.0 (EH

Re: [U-Boot] [PATCH 04/16] trace: Fix compiler warnings in trace

2016-02-16 Thread Bin Meng
On Mon, Feb 15, 2016 at 9:36 AM, Simon Glass wrote: > With min() we must use the same type for each parameter. Fix two problems > in trace.c which produce compiler warnings. > > Signed-off-by: Simon Glass > --- > > cmd/trace.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > Review

Re: [U-Boot] [PATCH 05/16] lib: Don't instrument the div64 function

2016-02-16 Thread Bin Meng
On Mon, Feb 15, 2016 at 9:36 AM, Simon Glass wrote: > This function can be called from the timer code on instrumented functions. > Mark it as 'notrace' so that it doesn't cause infinite recursion. > > Signed-off-by: Simon Glass > --- > > lib/div64.c | 3 ++- > 1 file changed, 2 insertions(+), 1

Re: [U-Boot] [PATCH 08/16] timer: Provide an early timer

2016-02-16 Thread Bin Meng
Hi Simon, On Mon, Feb 15, 2016 at 9:36 AM, Simon Glass wrote: > In some cases the timer must be accessible before driver model is active. > Examples include when using CONFIG_TRACE to trace U-Boot's execution before > driver model is set up. Enable this option to use an early timer. These > funct

Re: [U-Boot] [PATCH 09/16] timer: Set up the real timer after driver model is available

2016-02-16 Thread Bin Meng
On Mon, Feb 15, 2016 at 9:36 AM, Simon Glass wrote: > When using the early timer, we need to manually trigger setting up the > real timer. This will not happen automatically. Do this immediately after > starting driver model. > > Signed-off-by: Simon Glass > --- > > common/board_f.c | 6 ++

Re: [U-Boot] [PATCH 07/16] timer: Support tracing fully

2016-02-16 Thread Bin Meng
Hi Simon, On Mon, Feb 15, 2016 at 9:36 AM, Simon Glass wrote: > A few of the functions in the timer uclass are not marked with 'notrace'. Fix > this so that tracing can be used with CONFIG_TRACE. > > Signed-off-by: Simon Glass > --- > > drivers/timer/timer-uclass.c | 6 +++--- > 1 file changed,

Re: [U-Boot] [PATCH 10/16] sandbox: timer: Support the early timer

2016-02-16 Thread Bin Meng
Hi Simon, On Mon, Feb 15, 2016 at 9:36 AM, Simon Glass wrote: > Add support for the early timer so we can use tracing with sandbox again. > > Signed-off-by: Simon Glass > --- > > drivers/timer/sandbox_timer.c | 14 -- > 1 file changed, 12 insertions(+), 2 deletions(-) > > diff --git

Re: [U-Boot] [PATCH 12/16] sandbox: Enable the early timer

2016-02-16 Thread Bin Meng
On Mon, Feb 15, 2016 at 9:36 AM, Simon Glass wrote: > Enable this so that tracing works with sandbox. > > Signed-off-by: Simon Glass > --- > > configs/sandbox_defconfig | 1 + > 1 file changed, 1 insertion(+) > Reviewed-by: Bin Meng ___ U-Boot mailin

Re: [U-Boot] [PATCH 1/2] dm: core: Add uclass_first_device_err() to return a valid device

2016-02-16 Thread Bin Meng
Hi Simon, On Fri, Feb 12, 2016 at 4:23 AM, Simon Glass wrote: > A common pattern is to call uclass_first_device() and then check if it > actually returns a device. Add a new function which does this, returning > an error if there are no devices in that uclass. > > Signed-off-by: Simon Glass > --

Re: [U-Boot] [PATCH 02/30] dm: pci: Break out the common region display code

2016-02-16 Thread Bin Meng
Hi Simon, On Mon, Feb 15, 2016 at 10:16 AM, Simon Glass wrote: > Each region is displayed in almost the same way. Break out this common code > into its own function. > > Signed-off-by: Simon Glass > --- > > drivers/pci/pci_auto_common.c | 51 > +++ > 1 f

Re: [U-Boot] [PATCH 03/30] dm: part: Correct a sandbox build warning

2016-02-16 Thread Bin Meng
Hi Simon, On Mon, Feb 15, 2016 at 10:16 AM, Simon Glass wrote: > Adjust the cast to avoid a warning when stdint.h is used. > > Signed-off-by: Simon Glass > --- > > disk/part_efi.c | 10 ++ > 1 file changed, 6 insertions(+), 4 deletions(-) > > diff --git a/disk/part_efi.c b/disk/part_efi

Re: [U-Boot] [PATCH 01/30] dm: Drop the block_dev_desc_t typedef

2016-02-16 Thread Bin Meng
On Mon, Feb 15, 2016 at 10:16 AM, Simon Glass wrote: > Use 'struct' instead of a typdef. Also since 'struct block_dev_desc' is long > and causes 80-column violations, rename it to struct blk_desc. > > Signed-off-by: Simon Glass > --- > > api/api.c | 2 +- > api/api_storage.c

Re: [U-Boot] [PATCH 05/30] dm: part: Drop the common.h header

2016-02-16 Thread Bin Meng
On Mon, Feb 15, 2016 at 10:16 AM, Simon Glass wrote: > We should not include in header files. Each C file should include > it if needed. > > Signed-off-by: Simon Glass > --- > > include/part.h | 1 - > 1 file changed, 1 deletion(-) > Reviewed-by: Bin Meng _

Re: [U-Boot] [PATCH 06/30] dm: Add a new header for block devices

2016-02-16 Thread Bin Meng
On Mon, Feb 15, 2016 at 10:16 AM, Simon Glass wrote: > At present block devices are tied up with partitions. But not all block > devices have partitions within them. They are in fact separate concepts. > > Create a separate blk.h header file for block devices. > > Signed-off-by: Simon Glass > ---

Re: [U-Boot] [PATCH 07/30] dm: blk: Convert interface type to an enum

2016-02-16 Thread Bin Meng
Hi Simon, On Mon, Feb 15, 2016 at 10:16 AM, Simon Glass wrote: > Since these are sequentially numbered it makes sense to use an enum. It > avoids having to maintain the maximum value, and provides a type we can use > if it useful. if it *is* useful? > > In fact the maximum value is not used. Re

Re: [U-Boot] [PATCH 09/30] dm: blk: Rename get_dev() to blk_get_dev()

2016-02-16 Thread Bin Meng
On Mon, Feb 15, 2016 at 10:16 AM, Simon Glass wrote: > The current name is too generic. Add a 'blk_' prefix to aid searching and > make its purpose clearer. > > Signed-off-by: Simon Glass > --- > > api/api_storage.c | 12 +++- > cmd/gpt.c | 2 +- > cmd/read.c| 2 +- > c

Re: [U-Boot] [PATCH 08/30] dm: blk: Add comments to a few functions

2016-02-16 Thread Bin Meng
On Mon, Feb 15, 2016 at 10:16 AM, Simon Glass wrote: > The block interface is not well documented in the code. Pick two important > functions and add comments. > > Signed-off-by: Simon Glass > --- > > include/part.h | 30 ++ > 1 file changed, 30 insertions(+) > Revie

Re: [U-Boot] [PATCH 2/3] common: env_flags: include common.h even for HOST_CC

2016-02-16 Thread Peter Robinson
>> When compiling with gcc 6 we get the following error due to ARRAY_SIZE being >> defined elsewhere. >> >> common/env_flags.c:155: undefined reference to `ARRAY_SIZE' >> >> Signed-off-by: Peter Robinson > > I'm going to take http://patchwork.ozlabs.org/patch/582527/ to fix this > instead as I don

Re: [U-Boot] [PATCH 00/26] spl: Support loading a FIT image containing U-Boot

2016-02-16 Thread Masahiro Yamada
Hi Simon, 2016-01-29 1:39 GMT+09:00 Simon Glass : > We need a way to support more than one board per binary in U-Boot with > device tree. Various methods have been discussed. The one that seems to make > the most sense is to adjust SPL so that it can load a FIT which contains > U-Boot and several

[U-Boot] test/py main_signon

2016-02-16 Thread Michal Simek
Hi Stephen, trying to run the latest testing on zynq board and getting this main_signon error. This is what I am running ./test/py/test.py --bd zynq_zc702 --build --board-identity zc702 and getting below. Thanks, Michal U-Boot 2016.03-rc2 (Feb 16 2016 - 13:10:03 +0100) Model: Zynq ZC702 Devel

[U-Boot] [PATCH] test/py: only check for SPL signature if SPL uses serial output

2016-02-16 Thread Heiko Schocher
check for U-Boot SPL signature only if SPL really has a serial output. So check if CONFIG_SPL_SERIAL_SUPPORT is active in board config. Signed-off-by: Heiko Schocher --- found this while trying test/py on the smartweb board, which has SPL but no SPL serial output. test/py/u_boot_console_base.py

Re: [U-Boot] [PATCH 00/26] spl: Support loading a FIT image containing U-Boot

2016-02-16 Thread Tom Rini
On Tue, Feb 16, 2016 at 08:34:59PM +0900, Masahiro Yamada wrote: > Hi Simon, > > > 2016-01-29 1:39 GMT+09:00 Simon Glass : > > We need a way to support more than one board per binary in U-Boot with > > device tree. Various methods have been discussed. The one that seems to make > > the most sense

Re: [U-Boot] [PATCH 2/3] common: env_flags: include common.h even for HOST_CC

2016-02-16 Thread Tom Rini
On Tue, Feb 16, 2016 at 11:19:43AM +, Peter Robinson wrote: > >> When compiling with gcc 6 we get the following error due to ARRAY_SIZE > >> being > >> defined elsewhere. > >> > >> common/env_flags.c:155: undefined reference to `ARRAY_SIZE' > >> > >> Signed-off-by: Peter Robinson > > > > I'm

Re: [U-Boot] [PATCH 00/26] spl: Support loading a FIT image containing U-Boot

2016-02-16 Thread Masahiro Yamada
2016-02-16 21:17 GMT+09:00 Tom Rini : > On Tue, Feb 16, 2016 at 08:34:59PM +0900, Masahiro Yamada wrote: >> Hi Simon, >> >> >> 2016-01-29 1:39 GMT+09:00 Simon Glass : >> > We need a way to support more than one board per binary in U-Boot with >> > device tree. Various methods have been discussed. T

Re: [U-Boot] i.MX286 U-Boot fails with code HTLLCL0x8050100b

2016-02-16 Thread Stuart Longland
On 15/02/16 14:09, Stuart Longland wrote: > I ask again: Is there somewhere else I should be looking for the cause > of the above issue? Well, found my issue in the end I think. In exasperation I dd'ed one of my working SD card images, proved that the machine booted, then dd'ed the newly build U-

[U-Boot] [PATCH] ARM: zynq: Enable u-boot,dm-pre-reloc for qspi

2016-02-16 Thread Nathan Rossi
Enable u-boot,dm-pre-reloc for qspi for zc706, zed and microzed. Signed-off-by: Nathan Rossi Cc: Albert Aribaud Cc: Michal Simek Cc: Simon Glass --- arch/arm/dts/zynq-microzed.dts | 1 + arch/arm/dts/zynq-zc706.dts| 1 + arch/arm/dts/zynq-zed.dts | 1 + 3 files changed, 3 insertions(

Re: [U-Boot] test/py main_signon

2016-02-16 Thread Heiko Schocher
Hello Michal, Am 16.02.2016 um 13:12 schrieb Michal Simek: Hi Stephen, trying to run the latest testing on zynq board and getting this main_signon error. This is what I am running ./test/py/test.py --bd zynq_zc702 --build --board-identity zc702 and getting below. Does this board has SPL sup

Re: [U-Boot] [PATCH 00/26] spl: Support loading a FIT image containing U-Boot

2016-02-16 Thread Tom Rini
On Tue, Feb 16, 2016 at 09:30:44PM +0900, Masahiro Yamada wrote: > 2016-02-16 21:17 GMT+09:00 Tom Rini : > > On Tue, Feb 16, 2016 at 08:34:59PM +0900, Masahiro Yamada wrote: > >> Hi Simon, > >> > >> > >> 2016-01-29 1:39 GMT+09:00 Simon Glass : > >> > We need a way to support more than one board per

Re: [U-Boot] [PATCH 10/30] dm: blk: Rename get_device() to blk_get_device_str()

2016-02-16 Thread Bin Meng
Hi Simon, On Mon, Feb 15, 2016 at 10:16 AM, Simon Glass wrote: > The current name is too generic. The function returns a block device based > on a provided string. Rename it to aid searching and make its purpose > clearer. Also add a few comments. > > Signed-off-by: Simon Glass > --- > > cmd/pa

Re: [U-Boot] [PATCH] Gracefully handle 64-bit Load Address and Entry Point Address mkimage parameters

2016-02-16 Thread William Cohen
On 02/15/2016 06:34 AM, Wolfgang Denk wrote: > Dear William, > > In message <1455506732-22307-1-git-send-email-wco...@redhat.com> you wrote: >> >> Recent MIPS Linux kernels are using a 64-bit value for the load >> address (0x8001) for the Creator CI20 board kernel. When >> this argume

[U-Boot] [PATCH] Gracefully handle 64-bit signed-extended 32-bit Load addresses

2016-02-16 Thread William Cohen
To follow the MIPS 32-bit and 64-bit memory map conventions (*) recent MIPS Linux kernels are using a 64-bit sign extended value (0x8001) for the 32-bit load address (0x8001) of the Creator CI20 board kernel. When this 64-bit argument was passed to mkimage running on a 32-bit machi

Re: [U-Boot] [PATCH 11/30] dm: blk: Rename get_device_and_partition()

2016-02-16 Thread Bin Meng
On Mon, Feb 15, 2016 at 10:16 AM, Simon Glass wrote: > Rename this function to blk_get_device_part_str(). This is a better name > because it makes it clear that the function returns a block device and > parses a string. > > Signed-off-by: Simon Glass > --- > > cmd/disk.c | 2 +- > cmd/fat

Re: [U-Boot] [PATCH 12/30] dm: part: Add a cast to avoid a compiler warning

2016-02-16 Thread Bin Meng
Hi Simon, On Mon, Feb 15, 2016 at 10:16 AM, Simon Glass wrote: > In part_amiga.c the name is unsigned by bcpl_strcpy() requires a signed > pointer. Add a cast to fix the warning. is unsigned *but* bcpl_strcpy() ? > > Signed-off-by: Simon Glass > --- > > disk/part_amiga.c | 2 +- > 1 file chan

Re: [U-Boot] [PATCH 13/30] dm: sandbox: Enable all partition types

2016-02-16 Thread Bin Meng
Hi Simon, On Mon, Feb 15, 2016 at 10:16 AM, Simon Glass wrote: > It is useful to have sandbox build as much code as possible to avoid having > to build every board to detect build errors. Also we may add tests for some > more partition types at some point. > > Enable all partition types in sandbo

Re: [U-Boot] [PATCH v2 1/3] mmc: uniphier: add driver for UniPhier SD/MMC host controller

2016-02-16 Thread Marek Vasut
On 02/16/2016 09:18 AM, Masahiro Yamada wrote: > Hi Marek, Hi! [...] >>> +static int uniphier_sd_wait_irq(struct uniphier_sd_priv *priv, >>> + unsigned int reg, u32 flag) >>> +{ >>> + long wait = 100; >>> + int ret; >> >> Replace this with wait_for_bit() p

Re: [U-Boot] [PATCH 14/30] dm: part: Convert partition API use to linker lists

2016-02-16 Thread Bin Meng
Hi Simon, On Mon, Feb 15, 2016 at 10:16 AM, Simon Glass wrote: > We can use linker lists instead of explicitly declaring each function. > This makes the code shorter by avoiding switch() statements and lots of > header file declarations. > > While this does clean up the code it introduces a few c

Re: [U-Boot] [PATCH 15/30] dm: part: Rename some partition functions

2016-02-16 Thread Bin Meng
Hi Simon, On Mon, Feb 15, 2016 at 10:16 AM, Simon Glass wrote: > Rename three partition functions so that they start with part_. This makes > it clear what they relate to. > > Signed-off-by: Simon Glass > --- > > board/cm5200/fwupdate.c | 2 +- > cmd/ide.c | 6 +++--- > cmd/

Re: [U-Boot] [PATCH 16/30] dm: cbfs: Fix handling of invalid type

2016-02-16 Thread Bin Meng
Hi Simon, On Mon, Feb 15, 2016 at 10:16 AM, Simon Glass wrote: > The comment for file_cbfs_type() says that it returns 0 for an invalid type. > The code appears to check for -1, except that it uses an unsigned variable > to store the type. This results in a warning on 64-bit machines. > > Adjust

Re: [U-Boot] [PATCH 17/30] dm: sandbox: Enable cbfs and cramfs

2016-02-16 Thread Bin Meng
Hi Simon, On Mon, Feb 15, 2016 at 10:16 AM, Simon Glass wrote: > Enable these two filesystems to provide better build coverage in sandbox. > > Signed-off-by: Simon Glass > --- > > include/configs/sandbox.h | 3 +++ > 1 file changed, 3 insertions(+) Reviewed-by: Bin Meng One comment below: >

Re: [U-Boot] [PATCH 18/30] dm: block: Rename device number member dev to devnum

2016-02-16 Thread Bin Meng
Hi Simon, On Mon, Feb 15, 2016 at 10:16 AM, Simon Glass wrote: > This is a device number, and we want to use 'dev' to mean a driver model > device. Rename the member. > > Signed-off-by: Simon Glass > --- > > board/sunxi/board.c | 4 ++-- > cmd/cbfs.c | 1 + > cmd/di

Re: [U-Boot] [PATCH 19/30] dm: block: Adjust device calls to go through helpers function

2016-02-16 Thread Bin Meng
On Mon, Feb 15, 2016 at 10:16 AM, Simon Glass wrote: > To ease conversion to driver model, add helper functions which deal with > calling each block device method. With driver model we can reimplement these > functions with the same arguments. > > Use inline functions to avoid increasing code size

[U-Boot] [PATCH] dm: ns16550: Add support for reg-offset property

2016-02-16 Thread Michal Simek
reg-offset is the part of standard 8250 binding in the kernel. It is shifting start of address space by reg-offset. On Xilinx platform this offset is typically 0x1000. Signed-off-by: Michal Simek --- drivers/serial/ns16550.c | 6 -- include/ns16550.h| 1 + 2 files changed, 5 inserti

Re: [U-Boot] [PATCH v2 00/23] dm: tegra: Convert tegra20 and tegra124 video drivers to driver model

2016-02-16 Thread Tom Warren
Simon > -Original Message- > From: s...@google.com [mailto:s...@google.com] On Behalf Of Simon Glass > Sent: Sunday, February 14, 2016 6:19 PM > To: Stephen Warren > Cc: U-Boot Mailing List ; Marcel Ziswiler > ; Tom Warren ; > Stephen Warren ; Pantelis Antoniou consulting.com>; Marek Vas

Re: [U-Boot] [PATCH v2 02/18] gpio: Add support for Qualcomm gpio controller

2016-02-16 Thread Simon Glass
Hi, On 9 February 2016 at 14:25, Jagan Teki wrote: > On 8 February 2016 at 02:27, Mateusz Kulikowski > wrote: >> Add support for gpio controllers on Qualcomm Snapdragon devices. >> This devices are usually called Top Level Mode Multiplexing in >> Qualcomm documentation. >> >> Signed-off-by: Mate

Re: [U-Boot] [PATCH] fdt: Try to read #address-cells/size-cells from parent

2016-02-16 Thread Simon Glass
Hi Michal, On 15 February 2016 at 02:58, Michal Simek wrote: > Hi Simon, > > On 10.2.2016 13:04, Michal Simek wrote: >> Read #address-cells and #size-cells from parent if they are not present in >> current node. >> >> Signed-off-by: Michal Simek >> --- >> >> I have code which read information ab

Re: [U-Boot] [PATCH 1/6] net: gem: Add support for reading MAC from I2C EEPROM

2016-02-16 Thread Simon Glass
Hi, On 15 February 2016 at 18:06, Bin Meng wrote: > +Simon, > > Hi Joe, > > On Tue, Feb 16, 2016 at 12:01 AM, Joe Hershberger > wrote: >> Hi Bin, >> >> On Sun, Feb 14, 2016 at 6:00 AM, Bin Meng wrote: >>> Hi Michal, >>> >>> On Sun, Feb 14, 2016 at 6:03 PM, Michal Simek wrote: Hi Bin,

Re: [U-Boot] [PATCH 3/3] spi: omap3: Convert to driver model

2016-02-16 Thread Simon Glass
On 11 February 2016 at 12:00, Jagan Teki wrote: > After this conversion the driver will able to support > both dm and non-dm and code is more extensible like we > can remove the non-dm part simply without touching anycode > if all the boards which are using this driver become dm driven. > > Cc: To

Re: [U-Boot] [PATCH 3/4] stm32x7: add support for stm32x7 serial driver

2016-02-16 Thread Simon Glass
On 11 February 2016 at 16:47, Vikas Manocha wrote: > This patch adds support for stm32f7 family usart peripheral. > > Signed-off-by: Vikas Manocha > --- > drivers/serial/Makefile | 1 + > drivers/serial/serial_stm32x7.c | 83 > +++ > driv

Re: [U-Boot] [PATCH v2 2/7] arm: omap: sata: compile out sata init apis when CONFIG_DISK is defined

2016-02-16 Thread Simon Glass
On 3 February 2016 at 04:59, Mugunthan V N wrote: > Compile out sata init/reset apis as this will be implemented in > disk-uclass driver to initialize sata devices. > > Signed-off-by: Mugunthan V N > --- > arch/arm/cpu/armv7/omap-common/sata.c | 2 ++ > 1 file changed, 2 insertions(+) Reviewed-

Re: [U-Boot] [PATCH v2 1/7] arm: omap: sata: move enable sata clocks to enable_basic_clocks()

2016-02-16 Thread Simon Glass
On 3 February 2016 at 04:59, Mugunthan V N wrote: > All the clocks which has to be enabled has to be done in > enable_basic_clocks(), so moving enable sata clock to common > clocks enable function. > > Signed-off-by: Mugunthan V N > Reviewed-by: Tom Rini > --- > arch/arm/cpu/armv7/omap-common/s

Re: [U-Boot] [PATCH V2 1/2] pinctrl: imx: Introduce pinctrl driver for i.MX6

2016-02-16 Thread Simon Glass
Hi Peng, On 15 February 2016 at 01:33, Peng Fan wrote: > Hi Simon, > > Gentle ping.. Do you mean Stefan? I reviewed the previous so did not think it necessary to look again. > > Thanks, > Peng. Regards, Simon > > On Wed, Feb 03, 2016 at 10:06:07AM +0800, Peng Fan wrote: >>Introduce pinctrl fo

Re: [U-Boot] how does board_init_f() -> board_init_r?

2016-02-16 Thread Simon Glass
+Stephen who will know more Hi, On 13 February 2016 at 18:52, quantumlight wrote: > I am trying to modify the bootloader code for NVIDIA's jetson board. > > So I am looking at crt0.S. It seems that two builds happen, one with > CONFIG_SPL_BUILD and one without. So you end up with two file, u-boo

Re: [U-Boot] [PATCH v2 4/7] arm: omap-common: sata: prepare driver for DM conversion

2016-02-16 Thread Simon Glass
On 3 February 2016 at 04:59, Mugunthan V N wrote: > Prepare sata driver for DM conversion by abstracting sata phy > init to seperate function. > > Signed-off-by: Mugunthan V N > Reviewed-by: Tom Rini > --- > arch/arm/cpu/armv7/omap-common/sata.c | 13 + > include/sata.h

Re: [U-Boot] [PATCH v2 6/7] defconfig: dra74_evm: enable disk driver model

2016-02-16 Thread Simon Glass
On 3 February 2016 at 04:59, Mugunthan V N wrote: > Enable disk driver model for dra74_evm as dwc_ahci supports > driver model > > Signed-off-by: Mugunthan V N > Reviewed-by: Tom Rini > --- > configs/dra74_evm_defconfig | 2 ++ > 1 file changed, 2 insertions(+) Reviewed-by: Simon Glass __

Re: [U-Boot] [PATCH v2 7/7] defconfig: dra72_evm: enable disk driver model

2016-02-16 Thread Simon Glass
On 3 February 2016 at 04:59, Mugunthan V N wrote: > Enable disk driver model for dra72_evm as dwc_ahci supports > driver model > > Signed-off-by: Mugunthan V N > Reviewed-by: Tom Rini > --- > configs/dra72_evm_defconfig | 2 ++ > 1 file changed, 2 insertions(+) Reviewed-by: Simon Glass __

Re: [U-Boot] [RFC PATCH v4 1/3] sandbox: Fix compiling warning on 32-bit host

2016-02-16 Thread Simon Glass
+Masahiro Hi York, On 12 February 2016 at 13:59, York Sun wrote: > Fix the following compiling warning on 32-bit host > > disk/part_efi.c: In function 'alloc_read_gpt_entries': > disk/part_efi.c:894:2: warning: format '%zu' expects argument of > type 'size_t', but argument 5 has type 'long unsi

Re: [U-Boot] [RFC PATCH v4 3/3] common: Fix load and entry addresses in FIT image

2016-02-16 Thread Simon Glass
Hi York, On 12 February 2016 at 13:59, York Sun wrote: > FIT image supports more than 32 bits in addresses by using #address-cell > field. However the address length is not handled when parsing FIT images. > nit: How about saying "fix this by adding support for 64-bit addresses" or similar > Si

Re: [U-Boot] [PATCH v2 00/23] dm: tegra: Convert tegra20 and tegra124 video drivers to driver model

2016-02-16 Thread Simon Glass
Hi Tom, On 16 February 2016 at 08:47, Tom Warren wrote: > > Simon > > > -Original Message- > > From: s...@google.com [mailto:s...@google.com] On Behalf Of Simon Glass > > Sent: Sunday, February 14, 2016 6:19 PM > > To: Stephen Warren > > Cc: U-Boot Mailing List ; Marcel Ziswiler > > ; To

Re: [U-Boot] test/py main_signon

2016-02-16 Thread Michal Simek
Hi Heiko, On 16.2.2016 14:32, Heiko Schocher wrote: > Hello Michal, > > Am 16.02.2016 um 13:12 schrieb Michal Simek: >> Hi Stephen, >> >> trying to run the latest testing on zynq board and getting this >> main_signon error. >> >> This is what I am running >> ./test/py/test.py --bd zynq_zc702 --b

Re: [U-Boot] [PATCH 1/6] net: gem: Add support for reading MAC from I2C EEPROM

2016-02-16 Thread Joe Hershberger
Hi Simon, On Tue, Feb 16, 2016 at 9:59 AM, Simon Glass wrote: > Hi, > > On 15 February 2016 at 18:06, Bin Meng wrote: >> +Simon, >> >> Hi Joe, >> >> On Tue, Feb 16, 2016 at 12:01 AM, Joe Hershberger >> wrote: >>> Hi Bin, >>> >>> On Sun, Feb 14, 2016 at 6:00 AM, Bin Meng wrote: Hi Michal,

Re: [U-Boot] [PATCH] fdt: Try to read #address-cells/size-cells from parent

2016-02-16 Thread Michal Simek
Hi Simon, On 16.2.2016 17:00, Simon Glass wrote: > Hi Michal, > > On 15 February 2016 at 02:58, Michal Simek wrote: >> Hi Simon, >> >> On 10.2.2016 13:04, Michal Simek wrote: >>> Read #address-cells and #size-cells from parent if they are not present in >>> current node. >>> >>> Signed-off-by: M

Re: [U-Boot] [PATCH 1/6] net: gem: Add support for reading MAC from I2C EEPROM

2016-02-16 Thread Simon Glass
Hi Joe, On 16 February 2016 at 09:06, Joe Hershberger wrote: > > Hi Simon, > > On Tue, Feb 16, 2016 at 9:59 AM, Simon Glass wrote: > > Hi, > > > > On 15 February 2016 at 18:06, Bin Meng wrote: > >> +Simon, > >> > >> Hi Joe, > >> > >> On Tue, Feb 16, 2016 at 12:01 AM, Joe Hershberger > >> wrote

Re: [U-Boot] Warnings from Tegra LCD conversion?

2016-02-16 Thread Simon Glass
Hi Stephen, On 15 February 2016 at 22:29, Stephen Warren wrote: > While checking on the travis-ci.org runs that include test/py testing of > sandbox, I noticed some new warnings on AArch64 Tegra boards. See the > log at: > > https://travis-ci.org/u-boot/u-boot/jobs/109471848 > >> Building current

Re: [U-Boot] [PATCH v2 3/7] drivers: block: disk-uclass: implement scsi_init()

2016-02-16 Thread Simon Glass
Hi Mugunthan and Bin, On 14 February 2016 at 20:03, Bin Meng wrote: > Hi Simon, > > On Sun, Feb 7, 2016 at 4:29 AM, Simon Glass wrote: >> Hi Bin, >> >> On 3 February 2016 at 04:59, Mugunthan V N wrote: >>> >>> Implement scsi_init() api to probe driver model based sata >>> devices. >>> >>> Signe

Re: [U-Boot] [PATCH] ARM: zynq: Enable u-boot, dm-pre-reloc for qspi

2016-02-16 Thread Michal Simek
On 16.2.2016 14:05, Nathan Rossi wrote: > Enable u-boot,dm-pre-reloc for qspi for zc706, zed and microzed. > > Signed-off-by: Nathan Rossi > Cc: Albert Aribaud > Cc: Michal Simek > Cc: Simon Glass > --- > arch/arm/dts/zynq-microzed.dts | 1 + > arch/arm/dts/zynq-zc706.dts| 1 + > arch/arm

Re: [U-Boot] [PATCH v2 00/23] dm: tegra: Convert tegra20 and tegra124 video drivers to driver model

2016-02-16 Thread Tom Warren
Simon, > -Original Message- > From: s...@google.com [mailto:s...@google.com] On Behalf Of Simon Glass > Sent: Tuesday, February 16, 2016 9:03 AM > To: Tom Warren > Cc: Stephen Warren ; U-Boot Mailing List b...@lists.denx.de>; Marcel Ziswiler ; Stephen > Warren ; Pantelis Antoniou consul

Re: [U-Boot] [RFC PATCH v4 2/3] common: Convert ulong to phys_addr_t for image addresses

2016-02-16 Thread Simon Glass
Hi York, On 12 February 2016 at 13:59, York Sun wrote: > When dealing with image addresses, ulong has been used. Some files > are used by both host and target. It is OK for the target, but not > always enough for host tools including mkimage. This patch replaces > "ulong" with "phys_addr_t" to ma

Re: [U-Boot] [PATCH 3/3] spi: omap3: Convert to driver model

2016-02-16 Thread Tom Rini
On Tue, Feb 16, 2016 at 09:00:28AM -0700, Simon Glass wrote: > On 11 February 2016 at 12:00, Jagan Teki wrote: > > After this conversion the driver will able to support > > both dm and non-dm and code is more extensible like we > > can remove the non-dm part simply without touching anycode > > if

Re: [U-Boot] [PATCH] test/py: only check for SPL signature if SPL uses serial output

2016-02-16 Thread Stephen Warren
On 02/16/2016 05:13 AM, Heiko Schocher wrote: check for U-Boot SPL signature only if SPL really has a serial output. So check if CONFIG_SPL_SERIAL_SUPPORT is active in board config. Nit: That's wrapped really narrow. Any chance of wrapping to more like 72-74 characters? diff --git a/test/py

Re: [U-Boot] test/py main_signon

2016-02-16 Thread Stephen Warren
On 02/16/2016 09:04 AM, Michal Simek wrote: Hi Heiko, On 16.2.2016 14:32, Heiko Schocher wrote: Hello Michal, Am 16.02.2016 um 13:12 schrieb Michal Simek: Hi Stephen, trying to run the latest testing on zynq board and getting this main_signon error. This is what I am running ./test/py/test.

Re: [U-Boot] how does board_init_f() -> board_init_r?

2016-02-16 Thread Stephen Warren
On 02/16/2016 09:01 AM, Simon Glass wrote: +Stephen who will know more Hi, On 13 February 2016 at 18:52, quantumlight wrote: I am trying to modify the bootloader code for NVIDIA's jetson board. So I am looking at crt0.S. It seems that two builds happen, one with CONFIG_SPL_BUILD and one with

Re: [U-Boot] [PATCH v2 00/23] dm: tegra: Convert tegra20 and tegra124 video drivers to driver model

2016-02-16 Thread Simon Glass
Hi Tom, On 16 February 2016 at 09:23, Tom Warren wrote: > Simon, > >> -Original Message- >> From: s...@google.com [mailto:s...@google.com] On Behalf Of Simon Glass >> Sent: Tuesday, February 16, 2016 9:03 AM >> To: Tom Warren >> Cc: Stephen Warren ; U-Boot Mailing List > b...@lists.denx.

[U-Boot] [PATCH] usb: gadget: composite: Correct recovery path for register

2016-02-16 Thread Semen Protsenko
From: Sam Protsenko In case when usb_composite_register() failed once (for whatever reason), it will fail further even if all conditions are correct. Example: => fastboot 2 Invalid Controller Index couldn't find an available UDC g_dnl_register: failed!, error: -19 exit not al

[U-Boot] Beaglebone Black broken since commit fd61d39970b9901217efc7536d9f3a61b4e1752a

2016-02-16 Thread Guillaume Gardet
Hi, Beaglebone black (am335x_evm_defconfig) is broken (with MMC boot and u-boot.img on ext4 partition). I bisected it to commit fd61d39970b9901217efc7536d9f3a61b4e1752a spl: mmc: add break statements in spl_mmc_load_image() from Nikita Kiryanov (in Cc). Working image gives:

[U-Boot] [PATCH v2] spi: omap3: Convert to driver model

2016-02-16 Thread Jagan Teki
After this conversion the driver will able to support both dm and non-dm and code is more extensible like we can remove the non-dm part simply without touching anycode if all the boards which are using this driver become dm driven. Cc: Tom Rini Reviewed-by: Simon Glass Acked-by: Christophe Ricar

Re: [U-Boot] test/py main_signon

2016-02-16 Thread Michal Simek
Hi Stephen, 2016-02-16 17:39 GMT+01:00 Stephen Warren : > On 02/16/2016 09:04 AM, Michal Simek wrote: > >> Hi Heiko, >> >> On 16.2.2016 14:32, Heiko Schocher wrote: >> >>> Hello Michal, >>> >>> Am 16.02.2016 um 13:12 schrieb Michal Simek: >>> Hi Stephen, trying to run the latest te

[U-Boot] [PATCH v7 09/76] mtd: spi-nor: Add dm spi-nor probing

2016-02-16 Thread Jagan Teki
This patch adds driver-model probe from cmd_sf through MTD_DM_SPI_NOR which is depends on MTD and DM_SPI uclass. Cc: Simon Glass Cc: Bin Meng Cc: Mugunthan V N Cc: Michal Simek Cc: Siva Durga Prasad Paladugu Signed-off-by: Jagan Teki --- Changes for v7: - Rename CONFIG_MTD_DM_SPI_NOR

[U-Boot] [PATCH v7 12/76] mtd: spi-nor: m25p80: Add spi_nor support for non-dm

2016-02-16 Thread Jagan Teki
Like adding spi_nor support for dm-driven code in m25p80 add the same way for non-dm code as well. - allocate spi_nor{} - basic initilization - install hooks - call to spi-nor core, using spi_nor_scan - register with mtd core Cc: Simon Glass Cc: Bin Meng Cc: Mugunthan V N Cc: Michal Simek Cc:

[U-Boot] [PATCH v7 16/76] spi_flash: Use mtd_info operation for SPI-NOR

2016-02-16 Thread Jagan Teki
Since spi-nor is using mtd layer for flash operations this patch used mtd ops from user commands instead of legacy spi_flash{} ops. Cc: Simon Glass Cc: Bin Meng Cc: Mugunthan V N Cc: Michal Simek Cc: Siva Durga Prasad Paladugu Signed-off-by: Jagan Teki --- Changes for v7: - Rename CO

[U-Boot] [PATCH v7 73/76] configs: Enable CONFIG_SPL_MTD_SUPPORT

2016-02-16 Thread Jagan Teki
Since SPI-NOR is driven by MTD core, so the SPL need to use the MTD as well. Cc: Simon Glass Cc: Bin Meng Cc: Mugunthan V N Cc: Michal Simek Cc: Siva Durga Prasad Paladugu Signed-off-by: Jagan Teki --- Changes v7: - Remove duplicate define on CONFIG_SPL_MTD_SUPPORT for zynq include

Re: [U-Boot] [PATCH v6 00/76] mtd: Add SPI-NOR core support

2016-02-16 Thread Jagan Teki
On 15 February 2016 at 02:16, Jagan Teki wrote: > Compared to previous patch series this series adds spi-nor > core with spi-nor controller drivers are of "mtd uclass" > > This is whole series for all spi-nor related changes, and while > series tested on spansion spi-nor chip. > > Know issue: > -

  1   2   >