Re: [U-Boot] [PATCH] dm: at91: Add driver model support for the spi driver

2016-05-02 Thread Heiko Schocher
Hello Simon, Wenyou, Am 03.05.2016 um 02:47 schrieb Yang, Wenyou: Hi Simon, Thank you for your support. -Original Message- From: s...@google.com [mailto:s...@google.com] On Behalf Of Simon Glass Sent: 2016年5月2日 2:56 To: Yang, Wenyou Cc: U-Boot Mailing List

Re: [U-Boot] Porting Linux's MTD/NAND changes into U-Boot

2016-05-02 Thread Scott Wood
On Mon, 2016-04-25 at 22:53 +0200, Boris Brezillon wrote: > On Mon, 25 Apr 2016 13:36:46 -0400 > Tom Rini wrote: > > > On Mon, Apr 25, 2016 at 04:43:14PM +0200, Boris Brezillon wrote: > > > > > Hi Scott, > > > > > > I've recently contributed a lot of MTD/NAND related

Re: [U-Boot] [Patch v2] fsl-layerscape: fdt: add IFC fixup if no IFC is avaliable in U-Boot

2016-05-02 Thread Scott Wood
On Thu, 2016-04-28 at 14:04 +0800, Gong Qianyu wrote: > IFC is considered as a required component in Layerscape platforms' Linux. What does this mean? > But if IFC is not enabled in U-Boot on some boards, accessing IFC memory > space would cause kernel call trace. So disable IFC node in such

Re: [U-Boot] [PATCH] Fix spelling of "occurred".

2016-05-02 Thread Scott Wood
On Mon, 2016-05-02 at 13:26 -0600, Simon Glass wrote: > Hi Scott, > > On 2 May 2016 at 13:03, Scott Wood wrote: > > On Mon, 2016-05-02 at 12:57 -0600, Simon Glass wrote: > > > Hi Scott, > > > > > > On 1 May 2016 at 17:34, Scott Wood wrote: > > > > On Sun,

[U-Boot] [PATCH] imx: correct speed grading info for i.MX6UL

2016-05-02 Thread Peng Fan
Correct speed grading info for i.MX6UL Signed-off-by: Peng Fan Cc: Stefano Babic --- arch/arm/cpu/armv7/mx6/soc.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c index

Re: [U-Boot] [PATCH] armv8/ls1043ardb: fix the limitation of using 'cpld reset'

2016-05-02 Thread Qianyu Gong
Hi Mingkai, > -Original Message- > From: Mingkai Hu > Sent: Saturday, April 30, 2016 8:26 PM > To: Qianyu Gong ; u-boot@lists.denx.de; york sun > > Cc: Shaohui Xie ; Zhiqiang Hou ; > Wenbin Song

Re: [U-Boot] [PATCH] x86: qemu: Move qfw command over to cmd and add Kconfig entry

2016-05-02 Thread Miao Yan
Hi Tom, 2016-04-30 9:39 GMT+08:00 Tom Rini : > - Move the command portion of arch/x86/cpu/qemu/fw_cfg.c into > cmd/qemu_fw_cfg.c > - Move arch/x86/include/asm/fw_cfg.h to include/qemu_fw_cfg.h > - Rename ACPI table portion to arch/x86/cpu/qemu/acpi_table.c > > Signed-off-by:

Re: [U-Boot] [PATCH] arm: imx-common: introduce back usec2ticks

2016-05-02 Thread Peng Fan
Hi Tom, On Mon, May 02, 2016 at 10:04:47PM -0400, Tom Rini wrote: >On Tue, May 03, 2016 at 09:17:51AM +0800, Peng Fan wrote: >> Hi Tom, >> >> On Mon, May 02, 2016 at 07:41:35PM -0400, Tom Rini wrote: >> >On Fri, Apr 29, 2016 at 09:56:09AM +0800, Peng Fan wrote: >> > >> >> This commit

[U-Boot] [PATCH] dfu: avoid memory leak

2016-05-02 Thread Peng Fan
When dfu_fill_entity fail, need to free dfu to avoid memory leak. Reported by Coverity: " Resource leak (RESOURCE_LEAK) leaked_storage: Variable dfu going out of scope leaks the storage it points to. " Signed-off-by: Peng Fan Cc: "Łukasz Majewski"

[U-Boot] [PATCH] usb: gadget: dfu: discard dead code

2016-05-02 Thread Peng Fan
Reported by Coverity: Logically dead code (DEADCODE) dead_error_line: Execution cannot reach this statement: (f_dfu->strings + --i).s = If calloc failed, i is still 0 and no need to call free, so discard the dead code. Signed-off-by: Peng Fan Cc: "Łukasz Majewski"

Re: [U-Boot] [PATCH] arm: imx-common: introduce back usec2ticks

2016-05-02 Thread Tom Rini
On Tue, May 03, 2016 at 09:17:51AM +0800, Peng Fan wrote: > Hi Tom, > > On Mon, May 02, 2016 at 07:41:35PM -0400, Tom Rini wrote: > >On Fri, Apr 29, 2016 at 09:56:09AM +0800, Peng Fan wrote: > > > >> This commit "2bb014820c49a63902103bac710bc86b5772e843" > >> do some clean up to use the code in

[U-Boot] [PATCH V4 3/4] dm: spi: introduce dm api

2016-05-02 Thread Peng Fan
Introduce dm_spi_claim_bus, dm_spi_release_bus and dm_spi_xfer Convert spi_claim_bus, spi_release_bus and spi_xfer to use the new API. Signed-off-by: Peng Fan Cc: Simon Glass Cc: Jagan Teki --- V4: Convert spi_claim_bus,

[U-Boot] [PATCH V4 4/4] dm: gpio: introduce 74x164 driver

2016-05-02 Thread Peng Fan
Introduce driver to support "fairchild,74hc595" devices. 1. Take linux drivers/drivers/gpio/gpio-74x164.c as reference. 2. Following the naming used in Linux driver with gen_7x164 as the prefix. 3. Enable CONFIG_DM_74X164 to use this driver. 4. Follow

[U-Boot] [PATCH V4 2/4] dm: spi: soft_spi: switch to use linux compatible string

2016-05-02 Thread Peng Fan
1. Support compatible string "spi-gpio" which is used by Linux Linux use different bindings, so use UBOOT_COMPAT and LINUX_COMPAT to differentiate them. 2. Introduce SPI_MASTER_NO_RX and SPI_MASTER_NO_TX to handle no rx or no tx case. 3. Tested on i.MX6 UltraLite board with 74LV595

[U-Boot] [PATCH V4 1/4] dm: spi: soft_spi bug fix

2016-05-02 Thread Peng Fan
When doing xfer, should use device->parent, but not device When doing bit xfer, should use "!!(tmpdout & 0x80)", but not "(tmpdout & 0x80)" Signed-off-by: Peng Fan Cc: Simon Glass Cc: Jagan Teki Reviewed-by: Simon Glass

[U-Boot] [PATCH V4 1/4] dm: spi: soft_spi bug fix

2016-05-02 Thread Peng Fan
When doing xfer, should use device->parent, but not device When doing bit xfer, should use "!!(tmpdout & 0x80)", but not "(tmpdout & 0x80)" Signed-off-by: Peng Fan Cc: Simon Glass Cc: Jagan Teki Reviewed-by: Simon Glass

Re: [U-Boot] [PATCH] arm: imx-common: introduce back usec2ticks

2016-05-02 Thread Peng Fan
Hi Tom, On Mon, May 02, 2016 at 07:41:35PM -0400, Tom Rini wrote: >On Fri, Apr 29, 2016 at 09:56:09AM +0800, Peng Fan wrote: > >> This commit "2bb014820c49a63902103bac710bc86b5772e843" >> do some clean up to use the code in lib/time.c. >> But usec2ticks is still being used by security related job

Re: [U-Boot] [U-Boot, v2] mx6ul_evk: Remove CONFIG_SUPPORT_EMMC_BOOT

2016-05-02 Thread Tom Rini
On Wed, Apr 20, 2016 at 10:48:13PM -0300, Fabio Estevam wrote: > From: Fabio Estevam > > mx6ul_evk does not come with a eMMC populated, so we should not > define CONFIG_SUPPORT_EMMC_BOOT as it causes SPL to not be able > to boot some brands of SD cards, such as SanDisk

Re: [U-Boot] [PATCH v2] mx6ul_evk: Remove CONFIG_SUPPORT_EMMC_BOOT

2016-05-02 Thread Tom Rini
On Mon, May 02, 2016 at 09:59:33PM -0300, Fabio Estevam wrote: > Tom, > > On Tue, Apr 26, 2016 at 1:33 PM, Stefano Babic wrote: > > > Fine with me if you want to pick it up directly without PR. > > Are you applying this one directly? Thanks for the reminder. -- Tom

Re: [U-Boot] [PATCH v2 07/44] sandbox: Add dummy SCSI functions

2016-05-02 Thread Tom Rini
On Sun, May 01, 2016 at 11:35:55AM -0600, Simon Glass wrote: > Add some functions needed by the SCSI code. This allows it to be compiled > for sandbox, thus increasing build coverage. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > drivers/block/Makefile

Re: [U-Boot] [PATCH v2] mx6ul_evk: Remove CONFIG_SUPPORT_EMMC_BOOT

2016-05-02 Thread Fabio Estevam
Tom, On Tue, Apr 26, 2016 at 1:33 PM, Stefano Babic wrote: > Fine with me if you want to pick it up directly without PR. Are you applying this one directly? ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH] dm: at91: Add driver model support for the spi driver

2016-05-02 Thread Yang, Wenyou
Hi Simon, Thank you for your support. > -Original Message- > From: s...@google.com [mailto:s...@google.com] On Behalf Of Simon Glass > Sent: 2016年5月2日 2:56 > To: Yang, Wenyou > Cc: U-Boot Mailing List > Subject: Re: [U-Boot] [PATCH] dm:

Re: [U-Boot] [PATCH] arm: imx-common: introduce back usec2ticks

2016-05-02 Thread Tom Rini
On Fri, Apr 29, 2016 at 09:56:09AM +0800, Peng Fan wrote: > This commit "2bb014820c49a63902103bac710bc86b5772e843" > do some clean up to use the code in lib/time.c. > But usec2ticks is still being used by security related job ring code. > Bring back the function to avoid build break. > >

Re: [U-Boot] config: am335x_evm: detect BoneGreen using BBG1

2016-05-02 Thread Tom Rini
On Sun, May 01, 2016 at 07:58:31PM +0300, matwey.korni...@gmail.com wrote: > Since 770e68c0a37fded897d4bdda661614fc81cb33d2 > BoneGreen is detected in board_late_init as board_name 'BBG1' > > Signed-off-by: Matwey V. Kornilov Applied to u-boot/master, thanks! --

Re: [U-Boot] Fix spelling of "occurred".

2016-05-02 Thread Tom Rini
On Sat, Apr 30, 2016 at 07:18:00PM -0700, Vagrant Cascadian wrote: > Signed-off-by: Vagrant Cascadian > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature

Re: [U-Boot] mkimage: fix argument parsing on BSD systems

2016-05-02 Thread Tom Rini
On Sun, May 01, 2016 at 03:01:27AM +0200, Andreas Bießmann wrote: > The getopt(3) optstring '-' is a GNU extension which is not available on BSD > systems like OS X. > > Remove this dependency by implementing argument parsing in another way. This > will also change the lately introduced '-b'

Re: [U-Boot] Change my mailaddress

2016-05-02 Thread Tom Rini
On Sun, May 01, 2016 at 03:46:16AM +0200, Andreas Bießmann wrote: > I'll switch my mails to my own server, so drop all gmail references. > > Signed-off-by: Andreas Bießmann Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature

Re: [U-Boot] tools: env: fix config file loading in env library

2016-05-02 Thread Tom Rini
On Fri, Apr 29, 2016 at 10:00:11PM +0200, Anatolij Gustschin wrote: > env library is broken as the config file pointer is only initialized > in main(). When running in the env library parse_config() fails: > > Cannot parse config file '(null)': Bad address > > Ensure that config file pointer

Re: [U-Boot] [U-Boot, v2] kbuild: Do not append dtb for OF_EMBED case

2016-05-02 Thread Tom Rini
On Thu, Apr 28, 2016 at 09:08:18AM +0200, Michal Simek wrote: > dtb is already included in binary that's why there is no need to replace > u-boot-spl.bin with u-boot-spl-dtb.bin. This is only needed for > OF_SEPARATE is enabled. Only copy -nodtb.bin version which is straight > output from objcopy

Re: [U-Boot] [U-Boot,v2] fs: ext4: fix symlink read function

2016-05-02 Thread Tom Rini
On Thu, Apr 28, 2016 at 07:08:34AM +0200, Stefan Roese wrote: > From: Ronald Zachariah > > The function ext4fs_read_symlink was unable to handle a symlink > which had target name of exactly 60 characters. > > Signed-off-by: Ronald Zachariah >

Re: [U-Boot] Revert "rockchip: rk3288: correct sdram setting"

2016-05-02 Thread Tom Rini
On Fri, Apr 15, 2016 at 01:43:25PM -0700, Vagrant Cascadian wrote: > This reverts commit b5788dc0dd9570e98552833767f4373db965985d. > > Ram size is incorrectly reported as 512MB on a firefly-rk3288 board > with 2GB of ram. Reverting this patch displays the full amount of ram. > > Signed-off-by:

Re: [U-Boot] [PATCH] cmd: disk: Fix unused variable warning

2016-05-02 Thread Tom Rini
On Sun, May 01, 2016 at 12:35:54AM +0200, Marek Vasut wrote: > If serial support is not compiled into U-Boot, which may be the case > for some SPL builds, the following warning will be generated in disk.c: > > cmd/disk.c: In function 'common_diskboot': > cmd/disk.c:16:6: warning: variable 'dev'

Re: [U-Boot] fit_image: Fix a double close() on the error path

2016-05-02 Thread Tom Rini
On Sun, May 01, 2016 at 05:12:24PM -0600, Simon Glass wrote: > There is an extra close() call which is not needed. > > Reported-by: Coverity (CID: 143065) > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature

Re: [U-Boot] [PATCH] arch/arm/imx-common/Makefile: Update u-boot.uim MKIMAGEFLAGS

2016-05-02 Thread Tom Rini
On Mon, May 02, 2016 at 06:38:58PM -0400, Tom Rini wrote: > We need to be passing -T firmware here and aren't. > > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature

Re: [U-Boot] [PATCH 2/2] Revert "omap3: Use raw SPL by default for mmc1"

2016-05-02 Thread Tom Rini
On Mon, May 02, 2016 at 12:16:26PM -0400, Tom Rini wrote: > Unfortunately with this change we now are unable to do FS mode boots > from MMC1 as with the way the code works today we will always load and > assume that the hard-coded raw location contains U-Boot. Further, we > cannot fix this by

Re: [U-Boot] [PATCH 1/2] Revert "ti_armv7_common.h: Fix U-Boot location on eMMC"

2016-05-02 Thread Tom Rini
On Mon, May 02, 2016 at 12:16:25PM -0400, Tom Rini wrote: > We cannot change the long standing hard-coded offset for raw boot mode > for everyone to accommodate how Android expects things to be done here. > > This reverts commit ef5ebe951bec72631cdbc7cef9079e6c684e5d0b. > > Signed-off-by: Tom

Re: [U-Boot] pull request: u-boot-uniphier/master

2016-05-02 Thread Tom Rini
On Sun, May 01, 2016 at 01:18:57AM +0900, Masahiro Yamada wrote: > Hi Tom, > > Please pull some more fixes for v2016.05. > > > The following changes since commit fccdb287f5f5f2349d3ca1c7cdf972015417d46d: > > Merge branch 'master' of git://git.denx.de/u-boot-video (2016-04-28 > 13:15:52

Re: [U-Boot] [PATCH] efi_loader: Add network access support

2016-05-02 Thread Peter Robinson
On Mon, May 2, 2016 at 10:43 PM, Alexander Graf wrote: > We can now successfully boot EFI applications from disk, but users > may want to also run them from a PXE setup. > > This patch implements rudimentary network support, allowing a payload > to send and receive network packets.

[U-Boot] [PATCH] arch/arm/imx-common/Makefile: Update u-boot.uim MKIMAGEFLAGS

2016-05-02 Thread Tom Rini
We need to be passing -T firmware here and aren't. Signed-off-by: Tom Rini --- arch/arm/imx-common/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/imx-common/Makefile b/arch/arm/imx-common/Makefile index c208628..d34a784 100644 ---

Re: [U-Boot] [verified-boot] Multiple levels of signing keys

2016-05-02 Thread Simon Glass
Hi Teddy, On 2 May 2016 at 02:57, Teddy Reed wrote: > On Sun, May 1, 2016 at 11:56 AM, Simon Glass wrote: >> Hi Teddy, >> >> On 27 April 2016 at 11:32, Teddy Reed wrote: >>> Hello all, >>> >>> I'm looking to support "multiple

Re: [U-Boot] [verified-boot] Compile 'key store' DTB without mkimage and private key

2016-05-02 Thread Simon Glass
Hi Teddy, On 2 May 2016 at 14:24, Teddy Reed wrote: > > On Mon, May 2, 2016 at 7:06 AM, Simon Glass wrote: > > Hi Teddy, > > > > On 29 April 2016 at 18:44, Teddy Reed wrote: > >> On Fri, Apr 29, 2016 at 4:09 PM, Simon Glass

[U-Boot] [PATCH] efi_loader: Add network access support

2016-05-02 Thread Alexander Graf
We can now successfully boot EFI applications from disk, but users may want to also run them from a PXE setup. This patch implements rudimentary network support, allowing a payload to send and receive network packets. With this patch, I was able to successfully run grub2 with network access

Re: [U-Boot] spl_mmc: allow to load raw image

2016-05-02 Thread Alexander Graf
On 02.05.16 18:14, Tom Rini wrote: > On Mon, May 02, 2016 at 11:12:11AM +0200, Alexander Graf wrote: > > [snip] >> So Tom, how would you like to roll this? We can either >> >> 1) Check raw after fs, default to fs and revert my patch or >> 2) Leave fs boot broken (regression) or >> 3)

[U-Boot] [PATCH] configs: sunxi: fix device tree name for Pine64+

2016-05-02 Thread Peter Robinson
Fix the device tree name for the Pine64+ for the naming that's going into the upstream kernel. Signed-off-by: Peter Robinson --- configs/pine64_plus_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/pine64_plus_defconfig

[U-Boot] [PATCH v8 7/7] net: phy: dp83867: Add SGMII helper for configuration

2016-05-02 Thread Dan Murphy
The code assumed that if the interface is not RGMII configured then it must be SGMII configured. This device has the ability to support most of the MII interfaces. Therefore add the helper for SGMII and only configure the device if the interface is configured for SGMII. Signed-off-by: Dan

[U-Boot] [PATCH v8 6/7] net: phy: Add phy_interface_is_sgmii to phy.h

2016-05-02 Thread Dan Murphy
Add a helper to phy.h to identify whether the phy is configured for SGMII all variables. Signed-off-by: Dan Murphy Reviewed-by: Mugunthan V N Reviewed-by: Michal Simek Tested-by: Mugunthan V N Acked-by: Joe

[U-Boot] [PATCH v8 2/7] net: zynq_gem: Add the passing of the phy-handle node

2016-05-02 Thread Dan Murphy
Add the ability to pass the phy-handle node offset to the phy driver. This allows the phy driver to access the DT subnode's data and parse accordingly. Signed-off-by: Dan Murphy Tested-by: Michal Simek Acked-by: Joe Hershberger

[U-Boot] [PATCH v8 5/7] net: phy: Move is_rgmii helper to phy.h

2016-05-02 Thread Dan Murphy
Move the phy_interface_is_rgmii to the phy.h file for all phy's to be able to use the API. This now aligns with the Linux kernel based on commit e463d88c36d42211aa72ed76d32fb8bf37820ef1 Signed-off-by: Dan Murphy Reviewed-by: Mugunthan V N Reviewed-by:

[U-Boot] [PATCH v8 3/7] net: phy: dp83867: Add device tree bindings and documentation

2016-05-02 Thread Dan Murphy
Add the device tree bindings and the accompanying documentation for the TI DP83867 Giga bit ethernet phy driver. The original document was from: [commit 2a10154abcb75ad0d7b6bfea6210ac743ec60897 from the Linux kernel] Signed-off-by: Dan Murphy Reviewed-by: Mugunthan V N

[U-Boot] [PATCH v8 4/7] net: phy: ti: Allow the driver to be more configurable

2016-05-02 Thread Dan Murphy
Not all devices use the same internal delay or fifo depth. Add the ability to set the internal delay for rx or tx and the fifo depth via the devicetree. If the value is not set in the devicetree then set the delay to the default. If devicetree is not used then use the default defines within the

[U-Boot] [PATCH v8 1/7] drivers: net: cpsw: Add reading of DT phy-handle node

2016-05-02 Thread Dan Murphy
Add the ability to read the phy-handle node of the cpsw slave. Upon reading this handle the phy-id can be stored based on the reg node in the DT. The phy-handle also needs to be stored and passed to the phy to access any phy data that is available. Signed-off-by: Dan Murphy

Re: [U-Boot] [verified-boot] Compile 'key store' DTB without mkimage and private key

2016-05-02 Thread Teddy Reed
On Mon, May 2, 2016 at 7:06 AM, Simon Glass wrote: > Hi Teddy, > > On 29 April 2016 at 18:44, Teddy Reed wrote: >> On Fri, Apr 29, 2016 at 4:09 PM, Simon Glass wrote: >>> Hi Teddy, >>> >>> On 25 April 2016 at 10:25, Teddy Reed

Re: [U-Boot] [PATCH] Fix spelling of "occurred".

2016-05-02 Thread Simon Glass
Hi Scott, On 2 May 2016 at 13:03, Scott Wood wrote: > On Mon, 2016-05-02 at 12:57 -0600, Simon Glass wrote: >> Hi Scott, >> >> On 1 May 2016 at 17:34, Scott Wood wrote: >> > On Sun, 2016-05-01 at 12:55 -0600, Simon Glass wrote: >> > > Hi, >> > > >> > > On

Re: [U-Boot] chainloading u-boot on an acer cb5 chromebook (nyan_big)

2016-05-02 Thread Thomas Hoff
Thanks Simon! Hey Sjoerd, Were you able to chainboot u-boot for your acer cb5? Cheers, Thomas On Sun, May 1, 2016 at 11:55 AM, Simon Glass wrote: > Hi Thomas, > > On 28 April 2016 at 13:27, Thomas Hoff wrote: > > Hello, > > > > Could someone help

Re: [U-Boot] [PATCH] Fix spelling of "occurred".

2016-05-02 Thread Scott Wood
On Mon, 2016-05-02 at 12:57 -0600, Simon Glass wrote: > Hi Scott, > > On 1 May 2016 at 17:34, Scott Wood wrote: > > On Sun, 2016-05-01 at 12:55 -0600, Simon Glass wrote: > > > Hi, > > > > > > On 30 April 2016 at 20:18, Vagrant Cascadian wrote: > > > > >

Re: [U-Boot] [PATCH] Fix spelling of "occurred".

2016-05-02 Thread Simon Glass
Hi Scott, On 1 May 2016 at 17:34, Scott Wood wrote: > On Sun, 2016-05-01 at 12:55 -0600, Simon Glass wrote: >> Hi, >> >> On 30 April 2016 at 20:18, Vagrant Cascadian wrote: >> >> Please can you add a commit message? > > I don't understand these

[U-Boot] [PATCH] imx: tools: imximage: fix CLR bit command

2016-05-02 Thread Adrian Alonso
Fix incorrect parametr in CMD_CHECK_BITS_CLR command Pass CLR parameter to DCD header for CMD_CHECK_BITS_CLR Signed-off-by: Adrian Alonso --- tools/imximage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/imximage.c b/tools/imximage.c index

Re: [U-Boot] [PATCH v2] fdt: fix setting MAC addresses for multiple interfaces

2016-05-02 Thread Lev Iserovich
Hi, Updated with C-style comments: For multiple ethernet interfaces the FDT offset of '/aliases' will change as we are adding MAC addresses to the FDT. Therefore only the first interface ('ethernet0') will get properly updated in the FDT, with the rest getting FDT errors when we try to set

Re: [U-Boot] [PATCH v7 1/7] drivers: net: cpsw: Add reading of DT phy-handle node

2016-05-02 Thread Joe Hershberger
On Mon, May 2, 2016 at 1:03 PM, Dan Murphy wrote: > Tom > > On 05/02/2016 12:58 PM, Tom Rini wrote: >> On Mon, May 02, 2016 at 12:54:43PM -0500, Dan Murphy wrote: >>> Joe >>> >>> On 05/02/2016 11:08 AM, Joe Hershberger wrote: On Fri, Apr 29, 2016 at 6:59 AM, Dan Murphy

Re: [U-Boot] [PATCH v7 1/7] drivers: net: cpsw: Add reading of DT phy-handle node

2016-05-02 Thread Dan Murphy
Tom On 05/02/2016 12:58 PM, Tom Rini wrote: > On Mon, May 02, 2016 at 12:54:43PM -0500, Dan Murphy wrote: >> Joe >> >> On 05/02/2016 11:08 AM, Joe Hershberger wrote: >>> On Fri, Apr 29, 2016 at 6:59 AM, Dan Murphy wrote: Add the ability to read the phy-handle node of the

Re: [U-Boot] [PATCH v7 1/7] drivers: net: cpsw: Add reading of DT phy-handle node

2016-05-02 Thread Tom Rini
On Mon, May 02, 2016 at 12:54:43PM -0500, Dan Murphy wrote: > Joe > > On 05/02/2016 11:08 AM, Joe Hershberger wrote: > > On Fri, Apr 29, 2016 at 6:59 AM, Dan Murphy wrote: > >> Add the ability to read the phy-handle node of the > >> cpsw slave. Upon reading this handle the

Re: [U-Boot] [PATCH v7 1/7] drivers: net: cpsw: Add reading of DT phy-handle node

2016-05-02 Thread Dan Murphy
Joe On 05/02/2016 11:08 AM, Joe Hershberger wrote: > On Fri, Apr 29, 2016 at 6:59 AM, Dan Murphy wrote: >> Add the ability to read the phy-handle node of the >> cpsw slave. Upon reading this handle the phy-id >> can be stored based on the reg node in the DT. >> >> The phy-handle

Re: [U-Boot] [PATCH v2] fdt: fix setting MAC addresses for multiple interfaces

2016-05-02 Thread Joe Hershberger
On Tue, Apr 26, 2016 at 8:57 PM, Bin Meng wrote: > On Wed, Apr 27, 2016 at 8:06 AM, Bin Meng wrote: >> Hi Lev, >> >> On Fri, Jan 8, 2016 at 7:04 AM, Lev Iserovich >> wrote: >>> For multiple ethernet interfaces the FDT

Re: [U-Boot] [PATCH] test/py: Add support for extending timeout for large files

2016-05-02 Thread Stephen Warren
On 05/02/2016 06:29 AM, Michal Simek wrote: Slow network or big image filesize is not able to be finished in 30s. Add option to user to extend timeout(in miliseconds). env__net_tftp_readable_file = { "fn": "192.168.0.105:zc706/image.ub", "addr": 0x2000, "size": 20484981,

[U-Boot] [PATCH 2/2] Revert "omap3: Use raw SPL by default for mmc1"

2016-05-02 Thread Tom Rini
Unfortunately with this change we now are unable to do FS mode boots from MMC1 as with the way the code works today we will always load and assume that the hard-coded raw location contains U-Boot. Further, we cannot fix this by just changing other logic to try FS-then-RAW as it would also make us

[U-Boot] [PATCH 1/2] Revert "ti_armv7_common.h: Fix U-Boot location on eMMC"

2016-05-02 Thread Tom Rini
We cannot change the long standing hard-coded offset for raw boot mode for everyone to accommodate how Android expects things to be done here. This reverts commit ef5ebe951bec72631cdbc7cef9079e6c684e5d0b. Signed-off-by: Tom Rini --- include/configs/ti_armv7_common.h | 4

Re: [U-Boot] spl_mmc: allow to load raw image

2016-05-02 Thread Tom Rini
On Mon, May 02, 2016 at 11:12:11AM +0200, Alexander Graf wrote: [snip] > So Tom, how would you like to roll this? We can either > > 1) Check raw after fs, default to fs and revert my patch or > 2) Leave fs boot broken (regression) or > 3) Leave raw boot broken (same as 2016.03) > > Given

Re: [U-Boot] [PATCH v7 1/7] drivers: net: cpsw: Add reading of DT phy-handle node

2016-05-02 Thread Joe Hershberger
On Fri, Apr 29, 2016 at 6:59 AM, Dan Murphy wrote: > Add the ability to read the phy-handle node of the > cpsw slave. Upon reading this handle the phy-id > can be stored based on the reg node in the DT. > > The phy-handle also needs to be stored and passed > to the phy to access

Re: [U-Boot] [PATCH 1/2] mtd: cqspi: Simplify indirect write code

2016-05-02 Thread Stefan Roese
On 29.04.2016 12:13, Marek Vasut wrote: >> On 28.04.2016 00:36, Marek Vasut wrote: >>> The indirect write code is buggy pile of nastiness which fails horribly >>> when the system runs fast enough to saturate the controller. The failure >>> results in some pages (256B) not being written to the

Re: [U-Boot] [RFC] SPL -> U-Boot Chain of Trust

2016-05-02 Thread Andreas Dannenberg
On Sun, May 01, 2016 at 01:45:35PM -0600, Simon Glass wrote: > Hi, > On 27 April 2016 at 09:14, Andreas Dannenberg wrote: > > Yeah please let me/us know if there is something you have that could be > > recycled. > > I just sent a patch referring to this. I didn't find anything

Re: [U-Boot] [verified-boot] Compile 'key store' DTB without mkimage and private key

2016-05-02 Thread Simon Glass
Hi Teddy, On 29 April 2016 at 18:44, Teddy Reed wrote: > On Fri, Apr 29, 2016 at 4:09 PM, Simon Glass wrote: >> Hi Teddy, >> >> On 25 April 2016 at 10:25, Teddy Reed wrote: >>> Hi all, >>> >>> I'm curious if anyone has a script (or

Re: [U-Boot] spl_mmc: allow to load raw image

2016-05-02 Thread Tom Rini
On Mon, May 02, 2016 at 09:08:27AM +0200, Alexander Graf wrote: > > > On 02.05.16 04:29, Derald D. Woods wrote: > > On 05/01/2016 09:17 PM, Derald D. Woods wrote: > >> On 05/01/2016 08:57 PM, Tom Rini wrote: > >>> On Sun, May 01, 2016 at 08:32:48PM -0500, Derald D. Woods wrote: > On

[U-Boot] [PATCH v1] disk: part_efi: fix check of the max partition size

2016-05-02 Thread Patrick Delaunay
the last value acceptable value for offset is last_usable_lba + 1 and not last_usable_lba - 1 issue found with SDCARD partition commands on u-boot 2015.10 but this part of code don't change 1- create GPT partion on all the card > gpt write mmc 0 name=test,start=0,size=0 > part list mmc 0

[U-Boot] [PATCH] test/py: Add support for extending timeout for large files

2016-05-02 Thread Michal Simek
Slow network or big image filesize is not able to be finished in 30s. Add option to user to extend timeout(in miliseconds). env__net_tftp_readable_file = { "fn": "192.168.0.105:zc706/image.ub", "addr": 0x2000, "size": 20484981, "crc32": "873a30ae", "timeout": 5, }

Re: [U-Boot] [PATCH 1/3] dm: gpio: Add driver for MPC85XX GPIO controller

2016-05-02 Thread Mario Six
Hi Simon, On Sun, May 1, 2016 at 7:46 PM, Simon Glass wrote: > Hi Mario, > > On 26 April 2016 at 08:08, Mario Six wrote: > > > > Signed-off-by: Mario Six > > --- > > arch/powerpc/include/asm/arch-mpc85xx/gpio.h | 2 + > >

[U-Boot] [PATCH 1/2] ARM: tegra124: Add an option to disable CoreSight

2016-05-02 Thread Julian Scheel
From: Alban Bedel When running on a SoC with a secure bootloader CoreSight isn't allowed, so add an option to disable the CoreSight init. Signed-off-by: Alban Bedel Reviewed-by: Julian Scheel Signed-off-by: Julian

[U-Boot] [PATCH 2/2] tegra: Add watchdog driver

2016-05-02 Thread Julian Scheel
Add support for the tegra (t30 and newer) watchdog component. Signed-off-by: Julian Scheel --- arch/arm/include/asm/arch-tegra/tegra.h | 2 ++ arch/arm/include/asm/arch-tegra/wdt.h | 41 ++ arch/arm/mach-tegra/board2.c| 4 +++

[U-Boot] [PATCHv4 2/2] Add support the Avionic Design Meerkat COM and Kein Baseboard

2016-05-02 Thread Julian Scheel
Add support for platforms based on the Meerkat COM module. Includes support for the minimal reference platform called Kein Baseboard, which in fact is sufficient to run most existing Meerkat carriers. Signed-off-by: Julian Scheel --- Changes in v4: - rebased to tegra/master

[U-Boot] [PATCHv4 1/2] power: as3722: Allow using on any i2c bus with any address

2016-05-02 Thread Julian Scheel
From: Alban Bedel The init simply hardcoded the i2c bus and address to those used on jetson. Extend the init function to take the bus number and device address as parameter. As only jetson is using this code for now just fix this single use of the function.

Re: [U-Boot] spl_mmc: allow to load raw image

2016-05-02 Thread Alexander Graf
On 05/02/2016 11:45 AM, Guillaume Gardet wrote: Le 02/05/2016 11:12, Alexander Graf a écrit : On 05/02/2016 10:58 AM, Guillaume Gardet wrote: Le 02/05/2016 09:35, Alexander Graf a écrit : On 02.05.16 04:29, Derald D. Woods wrote: On 05/01/2016 09:17 PM, Derald D. Woods wrote: On

Re: [U-Boot] [PATCH RESEND 2/2] cmd: fdt: add fdt overlay application subcommand

2016-05-02 Thread Maxime Ripard
Hi Simon, On Sun, May 01, 2016 at 12:55:07PM -0600, Simon Glass wrote: > Hi Maxime, > > On 4 April 2016 at 12:25, Maxime Ripard > wrote: > > The device tree overlays are a good way to deal with user-modifyable > > boards or boards with some kind of an expansion

Re: [U-Boot] spl_mmc: allow to load raw image

2016-05-02 Thread Guillaume Gardet
Le 02/05/2016 11:12, Alexander Graf a écrit : On 05/02/2016 10:58 AM, Guillaume Gardet wrote: Le 02/05/2016 09:35, Alexander Graf a écrit : On 02.05.16 04:29, Derald D. Woods wrote: On 05/01/2016 09:17 PM, Derald D. Woods wrote: On 05/01/2016 08:57 PM, Tom Rini wrote: On Sun, May 01,

Re: [U-Boot] spl_mmc: allow to load raw image

2016-05-02 Thread Alexander Graf
On 05/02/2016 10:58 AM, Guillaume Gardet wrote: Le 02/05/2016 09:35, Alexander Graf a écrit : On 02.05.16 04:29, Derald D. Woods wrote: On 05/01/2016 09:17 PM, Derald D. Woods wrote: On 05/01/2016 08:57 PM, Tom Rini wrote: On Sun, May 01, 2016 at 08:32:48PM -0500, Derald D. Woods wrote:

Re: [U-Boot] spl_mmc: allow to load raw image

2016-05-02 Thread Guillaume Gardet
Le 02/05/2016 09:35, Alexander Graf a écrit : On 02.05.16 04:29, Derald D. Woods wrote: On 05/01/2016 09:17 PM, Derald D. Woods wrote: On 05/01/2016 08:57 PM, Tom Rini wrote: On Sun, May 01, 2016 at 08:32:48PM -0500, Derald D. Woods wrote: On 05/01/2016 03:37 AM, Masahiro Yamada wrote:

Re: [U-Boot] [verified-boot] Multiple levels of signing keys

2016-05-02 Thread Teddy Reed
On Sun, May 1, 2016 at 11:56 AM, Simon Glass wrote: > Hi Teddy, > > On 27 April 2016 at 11:32, Teddy Reed wrote: >> Hello all, >> >> I'm looking to support "multiple levels" of keys within u-boot's >> verified boot. I need something similar to UEFI's key

Re: [U-Boot] [PATCH] mkimage: fit: spl: Add an optional static offset for external data

2016-05-02 Thread Teddy Reed
Hey Simon! On Sun, May 1, 2016 at 12:32 PM, Simon Glass wrote: > Hi Teddy, > > On 1 May 2016 at 11:10, Teddy Reed wrote: >> When building a FIT with external data (-E), an SPL may require absolute >> positioning for executing the external firmware. To

Re: [U-Boot] [RFC PATCH] SPL: FIT: Enable SPL_FIT_LOAD for sd bootmode for fat partions

2016-05-02 Thread Michal Simek
On 2.5.2016 06:06, Lokesh Vutla wrote: > Hi Michal, > > On Thursday 28 April 2016 03:01 PM, Michal Simek wrote: >> Support U-Boot SPL to load FIT image from fat partition. >> Fit image can be setup via CONFIG_SPL_FS_LOAD_KERNEL_NAME. >> Falcon mode is not supported. >> >> Signed-off-by: Michal

Re: [U-Boot] [RFC PATCH] SPL: FIT: Align loading address for header

2016-05-02 Thread Michal Simek
Hi, On 2.5.2016 05:46, Lokesh Vutla wrote: > > > On Thursday 28 April 2016 02:06 PM, Michal Simek wrote: >> If bl_len is not aligned it can caused a problem because another code >> expects that start is aligned. > > What about loading of U-boot image and dtb image? I have posted a > similar

Re: [U-Boot] spl_mmc: allow to load raw image

2016-05-02 Thread Alexander Graf
On 02.05.16 04:29, Derald D. Woods wrote: > On 05/01/2016 09:17 PM, Derald D. Woods wrote: >> On 05/01/2016 08:57 PM, Tom Rini wrote: >>> On Sun, May 01, 2016 at 08:32:48PM -0500, Derald D. Woods wrote: On 05/01/2016 03:37 AM, Masahiro Yamada wrote: > Hi Adam, > > >

[U-Boot] [PATCH 25/26] x86: doc: Minor update for accuracy

2016-05-02 Thread Bin Meng
This updates the doc for the following places: - Mention CRB for Bayley Bay - Limit part of the QEMU paragraphs to 80 cols - Correct some typos (drive, it's, Ubuntu) - Add description for "console=ttyS0,115200" - Remove CONFIG_BOOTDELAY description which is already in x86-common.h

[U-Boot] [PATCH 21/26] x86: baytrail: Generate ACPI FADT/MADT tables

2016-05-02 Thread Bin Meng
FADT/MADT tables are platform specific. Generate them for BayTrail. Signed-off-by: Bin Meng --- arch/x86/cpu/baytrail/Makefile | 1 + arch/x86/cpu/baytrail/acpi.c | 162 + 2 files changed, 163 insertions(+) create mode 100644

[U-Boot] [PATCH 26/26] x86: doc: Document ACPI support

2016-05-02 Thread Bin Meng
Remove ACPI from the TODO list and add a new section to document current ACPI support in U-Boot. Signed-off-by: Bin Meng --- doc/README.x86 | 36 +++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/doc/README.x86

[U-Boot] [PATCH 24/26] x86: Remove acpi=off boot parameter when ACPI is on

2016-05-02 Thread Bin Meng
Remove the kernel boot parameter acpi=off so that kernel can turn on ACPI support. Signed-off-by: Bin Meng --- include/configs/x86-common.h | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/configs/x86-common.h

[U-Boot] [PATCH 23/26] x86: baytrail: Add .gitignore for ACPI enabled boards

2016-05-02 Thread Bin Meng
Let git ignore dsdt.aml and dsdt.asl.tmp files. Signed-off-by: Bin Meng --- board/congatec/conga-qeval20-qa3-e3845/.gitignore | 3 +++ board/intel/bayleybay/.gitignore | 3 +++ board/intel/minnowmax/.gitignore | 3 +++ 3 files changed, 9

[U-Boot] [PATCH 19/26] x86: acpi: Add some generic ASL libraries

2016-05-02 Thread Bin Meng
This adds several generic ASL libraries that can be included by other ASL files, which are: - debug.asl: for debug output using POST I/O port and legacy serial port - globutil.asl: for string compare routines - statdef.asl: for _STA status values Signed-off-by: Bin Meng ---

[U-Boot] [PATCH 22/26] x86: baytrail: Enable ACPI table generation for all boards

2016-05-02 Thread Bin Meng
Enable ACPI table generation by creating a DSDT table for all baytrail boards: conga-qeval20-qa3-e3845, bayleybay and minnowmax. Signed-off-by: Bin Meng --- board/congatec/conga-qeval20-qa3-e3845/Makefile | 1 +

[U-Boot] [PATCH 18/26] x86: acpi: Align FACS table to a 64 byte boundary

2016-05-02 Thread Bin Meng
Per ACPI spec, the FACS table address must be aligned to a 64 byte boundary (Windows checks this, but Linux does not). Signed-off-by: Bin Meng --- arch/x86/lib/acpi_table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/lib/acpi_table.c

[U-Boot] [PATCH 15/26] x86: acpi: Change fill_header()

2016-05-02 Thread Bin Meng
Rename fill_header() to acpi_fill_header() for consistency. Change its signature to remove the 'length' parameter and make it a public API. Also remove the unnecessary include files, and improve the AmlCode[] comment a little bit. Signed-off-by: Bin Meng ---

[U-Boot] [PATCH 20/26] x86: baytrail: Add platform ASL files

2016-05-02 Thread Bin Meng
This adds basic BayTrail platform ASL files. They are intended to be included in dsdt.asl of any board that is based on this platform. Note: ACPI mode support for GPIO/LPSS/SCC/LPE are not supported for now. They will be added in the future. Signed-off-by: Bin Meng ---

[U-Boot] [PATCH 13/26] x86: acpi: Reorder codes in acpi_table.h

2016-05-02 Thread Bin Meng
Reorder the ACPI tables appearance by following the order: RSDP, RSDT, XSDT, FADT, FACS, MADT, MCFG. And adjust the table flags defines accordingly. Signed-off-by: Bin Meng --- arch/x86/include/asm/acpi_table.h | 347 +++--- 1 file changed,

  1   2   >