Re: [U-Boot] [RFC] fastboot: sparse image handling and sessionId

2016-05-01 Thread Steve Rae
On Apr 15, 2016 21:14, "Steve Rae" wrote: > > Maxime, > > I suspect that the issue fixed > in commit c7529dbfastboot: sparse: fix block addressing for > don't care chunk type > > complicated the assumptions which led to the implementation of the "sessionId" > in commit 1f8690asparse: I

Re: [U-Boot] [PATCH] arm: dra7xx: Extend bootloader partition

2016-05-01 Thread Lokesh Vutla
On Tuesday 26 April 2016 11:46 PM, Sam Protsenko wrote: > With FIT images support enabled, u-boot.img size increases up to 612 KiB. > Extend "bootloader" partition size accordingly. > > With extended "bootloader" partition there is no gap between "misc" and > "efs" partitions anymore. Keep "efs"

Re: [U-Boot] [PATCH v2 00/15] Support for boot image creation for TI secure devices

2016-05-01 Thread Lokesh Vutla
On Thursday 28 April 2016 01:39 AM, Daniel Allred wrote: > Adds support for creating bootable images for AM43xx HS > and DRA7xx/AM57xx HS devices. Entire series looks good to me. Reviewed-by: Lokesh Vutla Thanks and regards, Lokesh > > Daniel Allred (9): > doc: Add info on using secure de

Re: [U-Boot] [PATCH v3 1/2] spl: Add an option to load a FIT containing U-Boot from FS

2016-05-01 Thread Lokesh Vutla
+ Michal Hi Simon, On Wednesday 20 April 2016 08:11 PM, Simon Glass wrote: > On 13 April 2016 at 23:15, Lokesh Vutla wrote: >> This provides a way to load a FIT containing U-Boot and a selection of device >> tree files from a File system. >> >> Signed-off-by: Lokesh Vutla >> --- >> Changes sinc

Re: [U-Boot] [PATCH 01/11] spi: davinci_spi: Convert to driver to adapt to DM

2016-05-01 Thread Vignesh R
Hi, On 05/02/2016 12:25 AM, Simon Glass wrote: > i Vignesh, > > On 21 April 2016 at 02:42, Vignesh R wrote: [...] +static int davinci_ofdata_to_platadata(struct udevice *bus) +{ + struct davinci_spi_slave *ds = dev_get_priv(bus); + const void *blob = gd->fdt_blo

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

2016-05-01 Thread Lokesh Vutla
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 Simek > --- > > common/spl/spl_fat.c | 50 +++

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

2016-05-01 Thread Lokesh Vutla
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 patch for solving this[1]. Can you see if it helps? [1] http

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

2016-05-01 Thread Derald D. Woods
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, 2016-04-30 3:06 GMT+09:00 Adam Ford : On Fri, Apr 29, 2016 at 12:53 PM, Tom Rini w

[U-Boot] [PATCH 10/10] sunxi: power: add AXP809 support

2016-05-01 Thread Chen-Yu Tsai
The A80 uses the AXP809 as its primary PMIC. Signed-off-by: Chen-Yu Tsai --- Without actual SPL support, this patch has only been compile tested. --- arch/arm/mach-sunxi/Makefile | 1 + arch/arm/mach-sunxi/pmic_bus.c | 6 +- board/sunxi/board.c| 20 +++- drivers/power/Kconfi

[U-Boot] [PATCH 08/10] sunxi: Enable AXP818 SW for Sinovoip BPI M3

2016-05-01 Thread Chen-Yu Tsai
The SW output of the PMIC supplies the ethernet PHY with power. Signed-off-by: Chen-Yu Tsai --- configs/Sinovoip_BPI_M3_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/Sinovoip_BPI_M3_defconfig b/configs/Sinovoip_BPI_M3_defconfig index 13dbb98689e3..29694ce1ef73 100644 ---

[U-Boot] [PATCH 09/10] sunxi: Implement poweroff support for axp818 pmic

2016-05-01 Thread Chen-Yu Tsai
Adds poweroff support for axp818 pmic. Signed-off-by: Chen-Yu Tsai --- drivers/power/Kconfig | 1 + drivers/power/axp818.c | 11 +++ include/axp818.h | 3 +++ 3 files changed, 15 insertions(+) diff --git a/drivers/power/Kconfig b/drivers/power/Kconfig index 02cb8e7ba687..d13753

[U-Boot] [PATCH 07/10] sunxi: power: axp818: Add support for switch SW

2016-05-01 Thread Chen-Yu Tsai
The AXP818 has a switchable output, SW. This is commonly used for controlling power to the LCD backlight. Signed-off-by: Chen-Yu Tsai --- board/sunxi/board.c| 1 + drivers/power/Kconfig | 7 +++ drivers/power/axp818.c | 10 ++ include/axp818.h | 1 + include/axp_pmic.h

[U-Boot] [PATCH 01/10] sunxi: make SoC variant choice mandatory

2016-05-01 Thread Chen-Yu Tsai
The user should always select an SoC variant to support. Not choosing one doesn't make sense for a bootloader. Signed-off-by: Chen-Yu Tsai --- board/sunxi/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig index fa7872031b9d..95500a1bcdb0 100644

[U-Boot] [PATCH 05/10] power: axp221: Remove switch case to simplify axp_set_eldo

2016-05-01 Thread Chen-Yu Tsai
The ELDO enable bits and registers are contiguous for axp221. Instead of a switch case testing against the index, just use the index to shift the bit or register offset. Signed-off-by: Chen-Yu Tsai --- drivers/power/axp221.c | 27 +++ 1 file changed, 7 insertions(+), 20 d

[U-Boot] [PATCH 04/10] sunxi: Disable VIDEO for SoCs without display support

2016-05-01 Thread Chen-Yu Tsai
The newer chips use a newer display pipeline, which is not supported. Signed-off-by: Chen-Yu Tsai --- board/sunxi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig index a24d5c238da9..059e9146cc5c 100644 --- a/board/sunxi/Kconfi

[U-Boot] [PATCH 06/10] power: axp818: Fix typo for fldo2 Kconfig description

2016-05-01 Thread Chen-Yu Tsai
Description said eldo2 instead of fldo2, a copy-paste error. Fixes: 38491d9c6515 ("power: axp818: Add support for FLDOs") Signed-off-by: Chen-Yu Tsai --- drivers/power/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/Kconfig b/drivers/power/Kconfig index

[U-Boot] [PATCH 03/10] sunxi: Add default MMC0 card detect pin for A83T, H3 and A64 SoCs

2016-05-01 Thread Chen-Yu Tsai
A83T, H3, and A64 have a dedicated pin for card detect on the PF pingroup. This is used in all designs. Set it as the default. Signed-off-by: Chen-Yu Tsai --- board/sunxi/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig index 49a937a8b61a..a24

[U-Boot] [PATCH 02/10] sunxi: Sort SoC variants by family (sunXi) first, chip name second

2016-05-01 Thread Chen-Yu Tsai
In most other places, we sort SoC descriptions by family (sunXi) first, then by the chip name (A20). Signed-off-by: Chen-Yu Tsai --- board/sunxi/Kconfig | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig index 95

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

2016-05-01 Thread Derald D. Woods
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, 2016-04-30 3:06 GMT+09:00 Adam Ford : On Fri, Apr 29, 2016 at 12:53 PM, Tom Rini wrote: On Fri, Apr 29, 2016 at 09:59:00AM -0500,

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

2016-05-01 Thread Masahiro Yamada
2016-05-02 10:57 GMT+09:00 Tom Rini : > 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, >> > >> > >> >2016-04-30 3:06 GMT+09:00 Adam Ford : >> >>On Fri, Apr 29, 2016 at 12:53 PM, Tom Rini wrote: >> >>>On Fri, Apr 29, 2

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

2016-05-01 Thread Tom Rini
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, > > > > > >2016-04-30 3:06 GMT+09:00 Adam Ford : > >>On Fri, Apr 29, 2016 at 12:53 PM, Tom Rini wrote: > >>>On Fri, Apr 29, 2016 at 09:59:00AM -0500, Adam Ford wrote: > >>>

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

2016-05-01 Thread Derald D. Woods
On 05/01/2016 03:37 AM, Masahiro Yamada wrote: Hi Adam, 2016-04-30 3:06 GMT+09:00 Adam Ford : On Fri, Apr 29, 2016 at 12:53 PM, Tom Rini wrote: On Fri, Apr 29, 2016 at 09:59:00AM -0500, Adam Ford wrote: Does anyone with an OMAP3 board have any issues with this patch? I will admit I haven'

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

2016-05-01 Thread Scott Wood
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 "empty/missing commit message" remarks when there's a one-line changelog (in the subject). Do you seriously want

Re: [U-Boot] buildman: arm: undefined reference to `__aeabi_ldivmod'

2016-05-01 Thread Simon Glass
Hi, On 17 March 2016 at 10:18, Stephen Warren wrote: > On 03/16/2016 11:48 PM, Jagan Teki wrote: >> >> On 16 March 2016 at 21:04, Stephen Warren wrote: >>> >>> On 03/16/2016 08:27 AM, Jagan Teki wrote: On 14 March 2016 at 23:44, Stephen Warren wrote: > > On 03/14/2016 11:32 AM

Re: [U-Boot] [PATCH v2 16/27] mkimage: Allow a FIT to include an image of any type

2016-05-01 Thread Simon Glass
Hi Andreas, On 27 April 2016 at 01:28, Andreas Bießmann wrote: > Hi Simon, > > On 23.02.2016 06:55, Simon Glass wrote: >> At present FIT images are set up by providing a device tree source file >> which is a file with a .its extension. We want to support automatically >> creating this file based

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

2016-05-01 Thread Simon Glass
There is an extra close() call which is not needed. Reported-by: Coverity (CID: 143065) Signed-off-by: Simon Glass --- tools/fit_image.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/fit_image.c b/tools/fit_image.c index ddefa72..0551572 100644 --- a/tools/fit_image.c +++ b/tools/fit

Re: [U-Boot] [PATCH 2/2] ARM: exynos: Disable serial support in SPL

2016-05-01 Thread Marek Vasut
On 05/01/2016 08:57 PM, Tom Rini wrote: > On Sun, May 01, 2016 at 12:36:12AM +0200, Marek Vasut wrote: > >> The exynos5 platforms use DM in U-Boot and do not use DM in SPL. The serial >> driver, serial_s5p.c, is DM-only. This is OK for U-Boot, but in SPL, this >> will fail with the following compi

[U-Boot] [PATCH v2 22/24] dm: sandbox: mmc: Enable building MMC code for sandbox

2016-05-01 Thread Simon Glass
Enable building the MMC code for sandbox. This increases build coverage for sandbox. Signed-off-by: Simon Glass --- Changes in v2: None configs/sandbox_defconfig | 2 ++ include/configs/sandbox.h | 2 ++ test/dm/blk.c | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff

[U-Boot] [PATCH v2 20/24] dm: mmc: Add support for driver-model block devices

2016-05-01 Thread Simon Glass
Add support for enabling CONFIG_BLK with MMC. This involves changing a few functions to use struct udevice and adding a MMC block device driver. Signed-off-by: Simon Glass --- Changes in v2: None drivers/mmc/mmc.c | 48 +-- drivers/mmc/mmc_pr

[U-Boot] [PATCH 1/2] image-fit: Don't display an error in fit_set_timestamp()

2016-05-01 Thread Simon Glass
This function returns an error code and its caller may be able to fix the error. For example fit_handle_file() expands the device tree to fit if there is a lack of space. In this case the caller does not want an error displayed. It is confusing, since it suggests that something is wrong, when it f

[U-Boot] [PATCH 2/2] mkimage: Add a quiet mode

2016-05-01 Thread Simon Glass
Some build systems want to be quiet unless there is a problem. At present mkimage displays quite a bit of information when generating a FIT file. Add a '-q' flag to silence this. Signed-off-by: Simon Glass --- tools/imagetool.c | 3 ++- tools/imagetool.h | 1 + tools/mkimage.c | 5 - 3 fi

[U-Boot] [PATCH v2 24/24] Revert "Revert "dm: sandbox: Drop the pre-DM host implementation""

2016-05-01 Thread Simon Glass
This reverts commit 6dd795d147f0aa6ed3df14a9ae2f0d66267f5724. Signed-off-by: Simon Glass --- Changes in v2: None drivers/block/sandbox.c | 97 - 1 file changed, 97 deletions(-) diff --git a/drivers/block/sandbox.c b/drivers/block/sandbox.c index

[U-Boot] [PATCH v2 16/24] dm: mmc: Adjust mmc_switch_part() to use a struct mmc

2016-05-01 Thread Simon Glass
Instead of looking up the MMC device by number, just pass it in. This makes it possible to use this function with driver model. Signed-off-by: Simon Glass --- Changes in v2: None drivers/mmc/mmc.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/mmc/mmc.

[U-Boot] [PATCH v2 13/24] dm: mmc: Set up the device pointer when using the MMC uclass

2016-05-01 Thread Simon Glass
Update the existing drivers to set up this new pointer. This will be required by the MMC uclass. Signed-off-by: Simon Glass --- Changes in v2: None drivers/mmc/omap_hsmmc.c | 1 + drivers/mmc/pic32_sdhci.c | 7 ++- drivers/mmc/rockchip_dw_mmc.c | 1 + drivers/mmc/socfpga_dw_mmc.c

[U-Boot] [PATCH v2 15/24] dm: blk: Use the correct error code for blk_get_device_by_str()

2016-05-01 Thread Simon Glass
Return -EINVAL instead of -1 in this function, to provide a more meaningful error. Signed-off-by: Simon Glass --- Changes in v2: None disk/part.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/disk/part.c b/disk/part.c index 3039f5f..6a1c02d 100644 --- a/disk/part.c

[U-Boot] [PATCH v2 17/24] dm: sandbox: Only enable the sandbox MMC driver when valid

2016-05-01 Thread Simon Glass
This driver will require generic MMC and block-device support in a future commit. To avoid test errors, make this change now. Signed-off-by: Simon Glass --- Changes in v2: None drivers/mmc/Makefile | 4 test/dm/Makefile | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff -

[U-Boot] [PATCH v2 21/24] dm: mmc: sandbox: Add an SD-card emulation

2016-05-01 Thread Simon Glass
Add an emulation of an SD card to sandbox, allowing MMC to be used in tests. The emulation is very simple, supporting only card detection and reading test data. Signed-off-by: Simon Glass --- Changes in v2: None drivers/mmc/Kconfig | 11 +++- drivers/mmc/sandbox_mmc.c | 134

[U-Boot] [PATCH v2 18/24] dm: mmc: Implement the MMC functions for block devices

2016-05-01 Thread Simon Glass
Implement the functions in mmc_legacy.c for driver-model block devices, so that MMC can use driver model for these. This allows CONFIG_BLK to be enabled with DM_MMC. Signed-off-by: Simon Glass --- Changes in v2: None drivers/mmc/Makefile | 4 +- drivers/mmc/mmc-uclass.c | 106 +++

[U-Boot] [PATCH v2 14/24] dm: mmc: Move the device list into a separate file

2016-05-01 Thread Simon Glass
At present the MMC subsystem maintains its own list of MMC devices. This cannot work with driver model, which needs to maintain this itself. Move the list code into a separate 'legacy' file. The core MMC code remains, and will be shared with the driver-model implementation. Signed-off-by: Simon Gl

[U-Boot] [PATCH v2 10/24] dm: part: Use the legacy block driver for hardware partition support

2016-05-01 Thread Simon Glass
Drop use of the table in part.c for this feature. Signed-off-by: Simon Glass --- Changes in v2: None disk/part.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/disk/part.c b/disk/part.c index e635d90..db5dd5d 100644 --- a/disk/part.c +++ b/disk/part.c @@ -71,9

[U-Boot] [PATCH v2 23/24] dm: mmc: test: Add tests for MMC

2016-05-01 Thread Simon Glass
Add a simple test which checks that a sandbox-emulated SD card can be used correctly. This tests plumbing through the MMC stack's block-device implementaion. Signed-off-by: Simon Glass --- Changes in v2: - Rebase to master test/dm/Makefile | 4 +--- test/dm/mmc.c| 19 +++

[U-Boot] [PATCH v2 19/24] dm: mmc: Add a way to bind MMC devices with driver model

2016-05-01 Thread Simon Glass
Binding an MMC device when CONFIG_BLK is enabled requires that a block device be bound as a child of the MMC device. Add a function to do this. The mmc_create() method will be used only when DM_BLK is disabled. Add an unbind method also. Signed-off-by: Simon Glass --- Changes in v2: None driv

[U-Boot] [PATCH v2 04/24] dm: mmc: Move mmc_switch_part() above its callers

2016-05-01 Thread Simon Glass
This function is defined after it is used. In preparation for making it static, move it up a little. Also drop the printf() which should not appear in a driver. Signed-off-by: Simon Glass --- Changes in v2: None drivers/mmc/mmc.c | 45 + 1 file chang

[U-Boot] [PATCH v2 12/24] dm: blk: Add a comment as to why the bdev member is needed

2016-05-01 Thread Simon Glass
This member should be explained, since it is not obvious why it is needed. Add a comment. Signed-off-by: Simon Glass --- Changes in v2: None include/blk.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/blk.h b/include/blk.h index 3fa373e..66a1c55 100644 --- a/include/blk.h ++

[U-Boot] [PATCH v2 11/24] dm: part: Drop the block_drvr table

2016-05-01 Thread Simon Glass
This is not needed since we can use the functions provided by the legacy block device support. Signed-off-by: Simon Glass --- Changes in v2: None disk/part.c | 67 ++- lib/efi_loader/efi_disk.c | 27 +++ 2 files changed,

[U-Boot] [PATCH v2 06/24] dm: mmc: Add a function to obtain the block device

2016-05-01 Thread Simon Glass
The MMC block device is contained within struct mmc. But with driver model this will not be the case. Add a function to obtain the block device. We can later implement this for CONFIG_BLK. Signed-off-by: Simon Glass --- Changes in v2: None drivers/mmc/mmc.c | 5 + include/mmc.h | 8 +++

[U-Boot] [PATCH v2 08/24] dm: mmc: Use the new select_hwpart() API

2016-05-01 Thread Simon Glass
Avoid calling directly into the MMC code - use the new API call instead. Signed-off-by: Simon Glass --- Changes in v2: None cmd/mmc.c | 8 +--- common/env_mmc.c| 4 ++-- common/spl/spl_mmc.c| 2 +- drivers/dfu/dfu_mmc.c | 13 + drivers/mmc/mmc.c

[U-Boot] [PATCH v2 09/24] dm: blk: Add functions to select a hardware partition

2016-05-01 Thread Simon Glass
The block device uclass does not currently support selecting a particular hardware partition but this is needed for MMC. Add it so that the blk API can support MMC properly. Signed-off-by: Simon Glass --- Changes in v2: None drivers/block/blk-uclass.c | 29 + includ

[U-Boot] [PATCH v2 07/24] dm: mmc: spl: Use the legacy block interface in SPL

2016-05-01 Thread Simon Glass
Bring this in for SPL so that we can use generic code for loading from block devices. Signed-off-by: Simon Glass --- Changes in v2: None drivers/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/Makefile b/drivers/Makefile index 696b3ac..99dd07f 100644 --- a/drivers/Makefile

[U-Boot] [PATCH v2 05/24] dm: mmc: Implement the select_hwpart() method

2016-05-01 Thread Simon Glass
Implement this method so that hardware partitions will work correctly with MMC. Signed-off-by: Simon Glass --- Changes in v2: None drivers/mmc/mmc.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 2211ac6..e270f5f 100644 -

[U-Boot] [PATCH v2 03/24] dm: blk: Free the block device name when unbound

2016-05-01 Thread Simon Glass
Mark the device name as allocated so that it will be freed correctly when the device is unbound. Signed-off-by: Simon Glass --- Changes in v2: None drivers/block/blk-uclass.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/block/blk-uclass.c b/drivers/

[U-Boot] [PATCH v2 02/24] dm: core: Allow device names to be freed automatically

2016-05-01 Thread Simon Glass
Some devices have a name that is stored in allocated memory. At present there is no mechanism to free this memory when the device is unbound. Add a device flag to track whether a name is allocated and a function to add the flag. Free the memory when the device is unbound. Signed-off-by: Simon Gla

[U-Boot] [PATCH v2 01/24] dm: blk: Fix allocation of block-device numbering

2016-05-01 Thread Simon Glass
Due to code ordering the block devices are not numbered sequentially. Fix this. Signed-off-by: Simon Glass --- Changes in v2: None drivers/block/blk-uclass.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/block/blk-uclass.c b/drivers/block/blk-uc

[U-Boot] [PATCH v2 00/24] dm: mmc: Add driver-model block-device support to MMC

2016-05-01 Thread Simon Glass
This series adds support for using CONFIG_BLK with MMC, such that it uses the block interface correctly. The old interface in part.c is removed. With driver model, when CONFIG_BLK is enabled, MMC devices must have a child block device. A new mmc_bind() function takes care of this. It should be cal

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

2016-05-01 Thread Simon Glass
Hi, On 27 April 2016 at 09:14, Andreas Dannenberg wrote: > On Wed, Apr 27, 2016 at 08:34:50AM -0600, Simon Glass wrote: >> Hi Andreas, >> >> On 14 April 2016 at 17:07, Andreas Dannenberg wrote: >> > >> > Hi Simon, thanks for the feedback. Additional comments inlined... >> > >> > On Mon, Apr 04,

Re: [U-Boot] [PATCH 8/8] net: Probe PCI before looking for ethernet devices

2016-05-01 Thread Simon Glass
Hi, On 26 April 2016 at 13:32, Joe Hershberger wrote: > On Fri, Jan 22, 2016 at 4:42 PM, Joe Hershberger > wrote: >> On Sun, Jan 17, 2016 at 3:52 PM, Simon Glass wrote: >>> Some ethernet devices may be on a PCI bus. Probe the first PCI controller to >>> find these, so that ethernet init will co

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

2016-05-01 Thread Simon Glass
Hi Andreas, On 30 April 2016 at 19:01, 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' switch

Re: [U-Boot] A problem about 'sf probe' using DM_SPI

2016-05-01 Thread Simon Glass
Hi, On 20 April 2016 at 21:22, Qianyu Gong wrote: > Hi Simon, > >> -Original Message- >> From: s...@google.com [mailto:s...@google.com] On Behalf Of Simon Glass >> Sent: Wednesday, April 20, 2016 10:41 PM >> To: Qianyu Gong >> Cc: u-boot@lists.denx.de; Mingkai Hu ; Yao Yuan >> ; jt...@op

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

2016-05-01 Thread Simon Glass
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 acheive this use the > (-p) switch which will replace the amended "data-offset" with "data-position" > indicating th

Re: [U-Boot] [PATCH] dm: allow setting driver_data before/during bind

2016-05-01 Thread Simon Glass
Hi Stephen, On 28 April 2016 at 17:08, Stephen Warren wrote: > From: Stephen Warren > > This will allow a driver's bind function to use the driver data. One > example is the Tegra186 GPIO driver, which instantiates child devices > for each of its GPIO ports, yet supports two different HW instanc

Re: [U-Boot] [PATCH 38/60] ARM: tegra: remove tegra_get_chip()

2016-05-01 Thread Simon Glass
Hi Stephen, On 29 April 2016 at 13:21, Stephen Warren wrote: > On 04/29/2016 11:42 AM, Simon Glass wrote: >> >> Hi Stephen, >> >> On 29 April 2016 at 10:53, Simon Glass wrote: >>> >>> Hi Stephen, >>> >>> On 29 April 2016 at 10:27, Stephen Warren wrote: On 04/29/2016 08:02 AM, Simon Gl

Re: [U-Boot] [PATCH 35/44] dm: sandbox: Enable IDE

2016-05-01 Thread Simon Glass
On 12 April 2016 at 14:50, Stephen Warren wrote: > On 04/09/2016 08:45 PM, Simon Glass wrote: >> >> Enable building the IDE code for sandbox. > > > It might be worth mentioning dumy/fake/compile-only in the commit > subject/description lest anyone think they can actually try out emulated > devices

Re: [U-Boot] [PATCH 40/44] dm: blk: Allow blk_create_device() to allocate the device number

2016-05-01 Thread Simon Glass
Hi Stephen, On 12 April 2016 at 14:56, Stephen Warren wrote: > On 04/09/2016 08:45 PM, Simon Glass wrote: >> >> Allow a devnum parameter of -1 to indicate that the device number should >> be >> alocated automatically. The next highest available device number for that >> interface type is used. >

Re: [U-Boot] [PATCH 34/44] dm: ide: Add support for driver-model block devices

2016-05-01 Thread Simon Glass
Hi Stephen, On 12 April 2016 at 14:49, Stephen Warren wrote: > On 04/09/2016 08:45 PM, Simon Glass wrote: >> >> Add driver-model block-device support to the IDE implementation. > > >> diff --git a/include/ide.h b/include/ide.h > > >> +struct udevice; >> +#ifdef CONFIG_BLK >> +ulong ide_read(struc

Re: [U-Boot] [PATCH v5 3/4] arm: add initial support for Amlogic Meson and ODROID-C2

2016-05-01 Thread Tom Rini
On Sun, May 01, 2016 at 12:56:21PM -0600, Simon Glass wrote: > Hi, > > On 24 April 2016 at 00:50, Beniamino Galvani wrote: > > This adds platform code for the Amlogic Meson GXBaby (S905) SoC and a > > board definition for ODROID-C2. This initial submission only supports > > UART and Ethernet (thr

Re: [U-Boot] [PATCH 2/2] ARM: exynos: Disable serial support in SPL

2016-05-01 Thread Tom Rini
On Sun, May 01, 2016 at 12:36:12AM +0200, Marek Vasut wrote: > The exynos5 platforms use DM in U-Boot and do not use DM in SPL. The serial > driver, serial_s5p.c, is DM-only. This is OK for U-Boot, but in SPL, this > will fail with the following compile error: > > drivers/built-in.o: In function

Re: [U-Boot] [PATCH 15/44] dm: blk: Add a legacy block interface

2016-05-01 Thread Simon Glass
Hi Stephen, On 12 April 2016 at 14:28, Stephen Warren wrote: > On 04/09/2016 08:45 PM, Simon Glass wrote: >> >> There is quite a bit of duplicated common code related to block devices >> in the IDE and SCSI implementations. >> >> Create some helper functions that can be used to reduce the duplica

Re: [U-Boot] [PATCH v5 3/4] arm: add initial support for Amlogic Meson and ODROID-C2

2016-05-01 Thread Simon Glass
Hi, On 24 April 2016 at 00:50, Beniamino Galvani wrote: > This adds platform code for the Amlogic Meson GXBaby (S905) SoC and a > board definition for ODROID-C2. This initial submission only supports > UART and Ethernet (through the existing Designware driver). DTS files > are the ones submitted

Re: [U-Boot] [PATCH 20/44] dm: mmc: Add an implementation of the 'devnum' functions

2016-05-01 Thread Simon Glass
Hi Stephen, On 12 April 2016 at 14:40, Stephen Warren wrote: > On 04/09/2016 08:45 PM, Simon Glass wrote: >> >> Now that the MMC code accesses devices by number, we can implement this >> same >> interface for driver model, allowing MMC to support using driver model for >> block devices. >> >> Add

Re: [U-Boot] [PATCH 16/44] dm: systemace: Add a legacy block interface

2016-05-01 Thread Simon Glass
Hi Stephen, On 12 April 2016 at 14:31, Stephen Warren wrote: > On 04/09/2016 08:45 PM, Simon Glass wrote: >> >> Add a legacy block interface for systemace. > > >> diff --git a/drivers/block/systemace.c b/drivers/block/systemace.c > > >> +static int systemace_get_devp(int dev, struct blk_desc **de

Re: [U-Boot] ARMv7 / RK3288 Hypervisor Support

2016-05-01 Thread Simon Glass
Hi Timothy, On 18 April 2016 at 15:30, Timothy Pearson wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > All, > > I recently ported U-Boot over to the RK3288-based Veyron Speedy 4GB > Chromebook in an attempt to gain KVM (hypervisor) support [1]. However, > in addition to the GIC bein

Re: [U-Boot] u-boot wiki page on "fdt" command full of "FDT_ERR_BADMAGIC"

2016-05-01 Thread Simon Glass
Hi Robert, On 29 April 2016 at 23:45, Robert P. J. Day wrote: > > was perusing the wiki page on "fdt": > > http://www.denx.de/wiki/view/DULG/UBootCmdFDT > > and it's fairly loaded with examples of commands that generate only > the error message: > > libfdt fdt_path_offset() returned FDT_ERR_B

Re: [U-Boot] u-boot hangs after enabling secured boot : gumstix-overo

2016-05-01 Thread Simon Glass
Hi Arun, On 28 April 2016 at 14:48, Arun Kuttiyara Varghese wrote: > Hi All, > > I was trying to enable the secured boot in u-boot for gumstix overo storm. > > based on http://www.denx-cs.de/doku/?q=m28verifiedboot > > After I prepared by SD cards, u-boot is not able to boot > and gives the below

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

2016-05-01 Thread Simon Glass
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 enrollment key > (KEK) and db/dbx model such that I can support on-line signing of new > kernels/rootfs/

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

2016-05-01 Thread Simon Glass
Hi Wenyou, On 24 April 2016 at 21:48, Wenyou Yang wrote: > Add driver model support while retaining the existing legacy code. > This allows the driver to support boards that have converted to > driver model as well as those that have not. > > Signed-off-by: Wenyou Yang It is possible to combine

Re: [U-Boot] Introduce clk framework

2016-05-01 Thread Simon Glass
+Masahiro Hi Peng, On 28 April 2016 at 07:13, Peng Fan wrote: > Hi, > > Since we are moving towards to use dtb and driver model, > we still lack of a clk framework. > > I just have an idea to introduce linux clk framework to u-boot, then > in driver code, we can do as linux "clk_enable/clk_disab

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

2016-05-01 Thread Simon Glass
Hi Thomas, On 28 April 2016 at 13:27, Thomas Hoff wrote: > Hello, > > Could someone help point me in the right direction about chainloading > u-boot on an acer cb5 chromebook (nyan_big)? I'd like to be able to do a > nonverified uboot similar to what was done here: > https://www.chromium.org/chro

Re: [U-Boot] [PATCH 1/2] ARM: exynos: Fix build error if SERIAL is disabled in SPL

2016-05-01 Thread Simon Glass
+Minkyu On 30 April 2016 at 16:36, Marek Vasut wrote: > If CONFIG_SPL_SERIAL_SUPPORT is not defined in > include/configs/exynos5-common.h > the following error is produced during the build of the SPL: > > arch/arm/mach-exynos/built-in.o: In function `do_lowlevel_init': > ...u-boot/arch/arm/mach-

Re: [U-Boot] in cmd/fdt.c, why is CONFIG_OF_CONTROL described as "temporary #ifdef"?

2016-05-01 Thread Simon Glass
Hi Robert, On 30 April 2016 at 00:12, Robert P. J. Day wrote: > > puzzled by this in cmd/fdt.c: > > /* Temporary #ifdef - some archs don't have fdt_blob yet */ > #ifdef CONFIG_OF_CONTROL > if (argc && !strcmp(*argv, "-c")) { > control = 1; >

Re: [U-Boot] [PATCH 2/2] ARM: exynos: Disable serial support in SPL

2016-05-01 Thread Simon Glass
On 30 April 2016 at 16:36, Marek Vasut wrote: > The exynos5 platforms use DM in U-Boot and do not use DM in SPL. The serial > driver, serial_s5p.c, is DM-only. This is OK for U-Boot, but in SPL, this > will fail with the following compile error: > > drivers/built-in.o: In function `get_current': >

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

2016-05-01 Thread Simon Glass
On 30 April 2016 at 16:35, 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' set but not used

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

2016-05-01 Thread Simon Glass
Hi, On 30 April 2016 at 20:18, Vagrant Cascadian wrote: Please can you add a commit message? > Signed-off-by: Vagrant Cascadian > --- > > board/bf533-ezkit/flash.c | 2 +- > board/mpl/pip405/pip405.c | 2 +- > board/tqc/tqm5200/cmd_stk52xx.c|

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

2016-05-01 Thread Simon Glass
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 mechanism where we can > easily plug new board in (like the BBB or the raspberry pi). > > However, so far, the usual m

Re: [U-Boot] [PATCH 01/11] spi: davinci_spi: Convert to driver to adapt to DM

2016-05-01 Thread Simon Glass
i Vignesh, On 21 April 2016 at 02:42, Vignesh R wrote: > Hi, > > On 04/20/2016 08:10 PM, Simon Glass wrote: >> On 12 April 2016 at 05:33, Vignesh R wrote: >>> Convert davinci_spi driver to comply with SPI DM framework. >>> >>> Signed-off-by: Vignesh R >>> --- >>> drivers/spi/davinci_spi.c | 32

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

2016-05-01 Thread Simon Glass
On 28 April 2016 at 03:31, 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 Simek > --- > > common/spl/spl_fat.c | 50 +

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

2016-05-01 Thread Simon Glass
On 28 April 2016 at 02:36, Michal Simek wrote: > If bl_len is not aligned it can caused a problem because another code > expects that start is aligned. > > Signed-off-by: Michal Simek > --- > > Not sure if this is the right way how to ensure it. > But patch is pointing to the problem. For example

Re: [U-Boot] [RFC PATCH] SPL: FIT: Enable SPL_FIT_LOAD in RAM based boot mode

2016-05-01 Thread Simon Glass
Hi Michal, On 28 April 2016 at 02:43, Michal Simek wrote: > Support loading FIT in SPL for RAM bootmode. > CONFIG_SPL_LOAD_FIT_ADRESS points to address where FIT image is stored > in memory. > > Signed-off-by: Michal Simek > --- > > Not sure if solution with CONFIG_SPL_LOAD_FIT_ADDRESS is accept

Re: [U-Boot] [PATCH] dm: fdtdec: Check full path for alias

2016-05-01 Thread Simon Glass
Hi Michal, On 20 April 2016 at 22:47, Michal Simek wrote: > Hi Simon, > > On 20.4.2016 16:41, Simon Glass wrote: >> Hi Michal, >> >> On 14 April 2016 at 07:02, Michal Simek wrote: >>> Fix fdtdec_get_alias_seq() which is not checking full path to certain >>> node and it incorrectly provides incor

Re: [U-Boot] [PATCH v3 01/12] drivers: core: device: add support to check dt compatible for a device/machine

2016-05-01 Thread Simon Glass
Hi Mugunthan, On 28 April 2016 at 04:06, Mugunthan V N wrote: > Provide an api to check whether the given device or machine is > compatible with the given compat string which helps in making > decisions in drivers based on device or machine compatible. > > Idea taken from Linux. > > Signed-off-by

Re: [U-Boot] [PATCH] dm: gpio: pca953x: Support PCA953X with 40 GPIOs

2016-05-01 Thread Simon Glass
On 25 April 2016 at 19:45, Peng Fan wrote: > Hi Mario, > > On Mon, Apr 25, 2016 at 03:25:37PM +0200, Mario Six wrote: >>A DM driver for PCA953x was recently introduced by Peng Fan, which lacked >>support for the 40 GPIO versions. >> >>This patch adds support for these chips. >> >>Signed-off-by: Ma

Re: [U-Boot] [PATCH 6/6 v4] i2c: designware_i2c: Add support for PCI(e) based I2C cores (x86)

2016-05-01 Thread Simon Glass
On 21 April 2016 at 02:14, Bin Meng wrote: > On Thu, Apr 21, 2016 at 3:31 PM, Heiko Schocher wrote: >> Hello Simon, >> >> Am 21.04.2016 um 08:19 schrieb Stefan Roese: >>> >>> This patch adds support for the PCI(e) based I2C cores. Which can be >>> found for example on the Intel Bay Trail SoC. It

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

2016-05-01 Thread Simon Glass
On 25 April 2016 at 19:20, Peng Fan wrote: > 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.

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

2016-05-01 Thread Simon Glass
Hi Peng, On 25 April 2016 at 19:20, Peng Fan wrote: > Introduce dm_spi_claim_bus, dm_spi_release_bus and dm_spi_xfer > > Signed-off-by: Peng Fan > Cc: Simon Glass > Cc: Jagan Teki > --- > > V3: > As Simon suggested, introduce new API. New patch. This looks great. But can you please adjust th

Re: [U-Boot] [PATCH 2/3] dm: gpio: Add methods for open drain setting

2016-05-01 Thread Simon Glass
Hi Mario, On 26 April 2016 at 08:08, Mario Six wrote: > Signed-off-by: Mario Six Please always add a commit message. > --- > drivers/gpio/gpio-uclass.c | 30 ++ > include/asm-generic/gpio.h | 29 + > 2 files changed, 59 insertions(+) > >

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

2016-05-01 Thread Simon Glass
On 25 April 2016 at 19:20, Peng Fan wrote: > 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 > --- > > V3: >

Re: [U-Boot] [PATCH 3/3] dm: gpio: Implement open drain for MPC85XX GPIO

2016-05-01 Thread Simon Glass
Hi Mario, On 26 April 2016 at 08:08, Mario Six wrote: > Signed-off-by: Mario Six Commit message please. > --- > drivers/gpio/mpc85xx_gpio.c | 41 + > 1 file changed, 41 insertions(+) Reviewed-by: Simon Glass > > diff --git a/drivers/gpio/mpc85xx_gpio

Re: [U-Boot] [PATCH] RFC: Secure boot to U-Boot proper from SPL

2016-05-01 Thread Teddy Reed
I've been using the following patch for my configurations, please excuse the top-posting. I think the only difference is enabling the uclass mod_exp driver to initialize without needing relocation. --- This allows a board to configure verified boot within the SPL using a FIT or FIT with externa

[U-Boot] [PATCH] RFC: Secure boot to U-Boot proper from SPL

2016-05-01 Thread Simon Glass
For those that have asked me about this, I have dug into the past and cannot find my experiment. In the end I managed to reduce U-Boot proper down to about 100KB of code (by dropping CONFIG_CMD and removing video and USB drivers) and this was small enough to fit in SRAM. So SPL was not needed. Tha

[U-Boot] [PATCH v2 29/44] dm: sata: Drop the get_dev() function

2016-05-01 Thread Simon Glass
This function is implemented by the legacy block functions now. Drop it. We cannot yet make sata_dev_desc[] private to common/sata.c as it is used by the SATA drivers. This will require the SATA interface to be reworked. Signed-off-by: Simon Glass --- Changes in v2: None disk/part.c| 2 +-

[U-Boot] [PATCH v2 28/44] dm: scsi: Drop the get_dev() function

2016-05-01 Thread Simon Glass
This function is implemented by the legacy block functions now. Drop it. Signed-off-by: Simon Glass --- Changes in v2: None common/scsi.c | 7 --- common/spl/spl_sata.c | 2 +- disk/part.c | 2 +- include/part.h| 2 -- 4 files changed, 2 insertions(+), 11 deletion

  1   2   >