Re: [U-Boot] [PATCH v4 00/35] ARM: i.MX6: SabreSD: Add dts support

2017-05-02 Thread Jagan Teki
On Sat, Apr 29, 2017 at 1:37 AM, Fabio Estevam wrote: > Hi Jagan, > > On Sun, Apr 9, 2017 at 4:12 PM, Jagan Teki wrote: > >>> Do you have a git tree with this series applied? I would like to test it. >> >> http://git.denx.de/?p=u-boot-spi.git;a=shortlog;h=refs/heads/sabresd > > I have tested imx6

Re: [U-Boot] [PATCH v4 00/35] ARM: i.MX6: SabreSD: Add dts support

2017-05-02 Thread Jagan Teki
On Wed, Apr 26, 2017 at 12:57 AM, Fabio Estevam wrote: > Hi Jagan, > > On Tue, Apr 25, 2017 at 3:35 PM, Jagan Teki wrote: >> >>> This isn't a limitation, all the defconfigs on various boards follows >>> the same but except by giving dtb explicitly doing make, like >>> make DEVICE_TREE=imx6l-sabre

[U-Boot] [PATCH V4 3/4] rockchip:usb: add a simple readme for rockusb

2017-05-02 Thread Eddie Cai
add a simple readme to introduce rockusb and tell people how to use it Signed-off-by: Eddie Cai Reviewed-by: Simon Glass Changes in v4: -add some blank line to make it look better Changes in v3: -fix checkpatch error --- doc/README.rockusb | 52

[U-Boot] [PATCH V4 4/4] rockchip: usb: enable rockusb on rk3288 based board

2017-05-02 Thread Eddie Cai
all rk3288 based boards support rockusb, so enable it Signed-off-by: Eddie Cai Reviewed-by: Lukasz Majewski Changes in v4: -move to rk3288_common.h Changes in v3: -move to defconfig --- include/configs/rk3288_common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/rk328

[U-Boot] [PATCH V4 2/4] usb: rockchip: add rockusb command

2017-05-02 Thread Eddie Cai
this patch add rockusb command. the usage is rockusb e.g. rockusb 0 mmc 0 Signed-off-by: Eddie Cai Reviewed-by: Simon Glass Changes in v4: -move USB_FUNCTION_ROCKUSB to drivers/usb/gadget/Kconfig -modify the dependence Changes in v3: -fix comment from Simon and Lukasz -fix checkpactch error

[U-Boot] [PATCH V4 1/4] usb: rockchip: add the rockusb gadget

2017-05-02 Thread Eddie Cai
this patch implement rockusb protocol on the device side. this is based on USB download gadget infrastructure. the rockusb function implements the rd, wl, rid commands. it can work with rkdeveloptool Signed-off-by: Eddie Cai Changes in v4: -use enum instead of macro define

[U-Boot] [PATCH V4 0/4] introduce Rockchip rockusb

2017-05-02 Thread Eddie Cai
rockusb is a protocol run between host pc and device. it help people get device info, flash image to device. this patch implement rockusb on device sid Changes in v4: -use enum instead of macro define -move some structure define and macro to f_rockusb.h -add some function comment as Simon required

Re: [U-Boot] [PATCH v2] drivers: spi: Remove duplicate .probe method

2017-05-02 Thread Jagan Teki
On Wed, May 3, 2017 at 11:47 AM, wrote: > From: Suniel Mahesh > > .probe method has been assigned twice when declaring > a driver with U_BOOT_DRIVER(). Removed one of them. > Here is the last commit which had the duplicate entry: > "spi: omap3: Convert to driver model" > (sha1: 77b8d04854f486741

[U-Boot] [PATCH v2] drivers: spi: Remove duplicate .probe method

2017-05-02 Thread suniel . spartan
From: Suniel Mahesh .probe method has been assigned twice when declaring a driver with U_BOOT_DRIVER(). Removed one of them. Here is the last commit which had the duplicate entry: "spi: omap3: Convert to driver model" (sha1: 77b8d04854f486741471ad02b93b473b5b3d72f8) Signed-off-by: Suniel Mahesh

Re: [U-Boot] [PATCH V2 07/12] spi: kconfig: add soft spi Kconfig entry

2017-05-02 Thread Jagan Teki
On Thu, Apr 13, 2017 at 11:39 AM, Peng Fan wrote: > Add the Kconfig entry for SOFT_SPI which uses gpio to simulate the > SPI signals. We use it for accessing 74x164 on some i.MX boards. > > Signed-off-by: Peng Fan > Cc: Jagan Teki > Cc: Stefano Babic > --- > > V2: > None > > drivers/spi/Kconf

Re: [U-Boot] [PATCH v2 0/4] env_sf: minor refactorings

2017-05-02 Thread Jagan Teki
On Sat, Apr 8, 2017 at 3:29 PM, Andreas Fenkart wrote: > rebased patches on master > fixed compiled error in 1st patch (missing variable declaration) > compile tested all patches with travis > > Andreas Fenkart (4): > env_sf: factor out prepare_flash_device > enf_sf: reuse setup_flash_device i

Re: [U-Boot] [PATCH] drivers: spi: Remove duplicate .probe method

2017-05-02 Thread Jagan Teki
On Tue, May 2, 2017 at 9:36 PM, Suniel Mahesh wrote: > On Tuesday 02 May 2017 04:19 PM, Jagan Teki wrote: >> >> On Sat, Apr 29, 2017 at 12:32 AM, wrote: >>> >>> From: Suniel Mahesh >>> >>> .probe method has been assigned twice when declaring a >>> a driver with U_BOOT_DRIVER(). Removed one of t

Re: [U-Boot] [PATCH][v2] board: ls2080ardb, ls2080aqds: Adjust memory map for NOR-boot

2017-05-02 Thread Santan Kumar
-Original Message- From: Sumit Garg Sent: Monday, May 01, 2017 11:23 AM To: Priyanka Jain ; u-boot@lists.denx.de Cc: york sun ; Santan Kumar Subject: RE: [PATCH][v2] board: ls2080ardb, ls2080aqds: Adjust memory map for NOR-boot > -Original Message- > From: Priyanka Jain > Sent

Re: [U-Boot] [PATCH 3/5] rockchip: video: rk3399: enable HDMI output (from the rk_vop) for the RK3399

2017-05-02 Thread Simon Glass
Hi Philipp, On 30 April 2017 at 06:31, Dr. Philipp Tomsich wrote: > Hi Simon, > > On 30 Apr 2017, at 05:49, Simon Glass wrote: > > Hi Philipp, > > On 28 April 2017 at 09:53, Philipp Tomsich > wrote: > > This commit enables RK3399 support for HDMI through the following > changes: > - adds a driv

Re: [U-Boot] [PATCH v2 4/5] power: regulator: rk808: add rk818 support

2017-05-02 Thread sjg
2017-05-02 14:54 GMT+08:00 Jacob Chen : > Add support for the rk818 regulator. The regulator module consists > of 4 DCDCs, 9 LDOs, 1 switch and 1 BOOST converter which is used to > power OTG and HDMI5V. > > > > Signed-off-by: Jacob Chen > Reviewed-by: Simon Glass > --- > > Changes in v2: None > >

Re: [U-Boot] [PATCH v8 3/9] rockchip: video: vop: Fix rk_display_init() return error

2017-05-02 Thread sjg
It's caused by the difference of clk_set_rate function implement between rk3288 andd rk3399. clk_set_rate() of rk3288 return 0 in normal condition. clk_set_rate() of rk3399 return input parameter in normal condition. So check clk_set_rate's return value by IS_ERR_VALUE. Signed-off-by: Eric Gao

Re: [U-Boot] [PATCH v2 2/5] power: pmic: rk808: add RK818 support

2017-05-02 Thread sjg
2017-05-02 14:54 GMT+08:00 Jacob Chen : > The RK818 chip is a Power Management IC (PMIC) for multimedia and handheld > devices. > > For boards use rk818, the input current should be set in the early stage, > before > ddr initialization. > > Signed-off-by: Jacob Chen > --- > > Changes in v2: > - r

Re: [U-Boot] [PATCH v2 3/5] power: regulator: rk808: replace vsel_bits with vsel_mask

2017-05-02 Thread sjg
Using mask is more flexible than bits. Signed-off-by: Jacob Chen Reviewed-by: Simon Glass --- Changes in v2: None drivers/power/regulator/rk808.c | 39 ++- 1 file changed, 22 insertions(+), 17 deletions(-) Applied to u-boot-rockchip/next, thanks! _

Re: [U-Boot] [PATCH v8 7/9] rockchip: board: evb_rk3399: initialize pwm0 for dispaly backlight

2017-05-02 Thread sjg
Enable pwm0 for display of rk3399 evb board. The PWM do not have decicated interrupt number in dts and can not get periph_id by pinctrl framework. So init them here. Signed-off-by: Eric Gao Reviewed-by: Simon Glass --- Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5:

Re: [U-Boot] [PATCH v2 1/5] power: pmic: append rk818 regs to rk808

2017-05-02 Thread sjg
Both RK808 and RK818 chips are using a similar register map, so we can reuse them. I have also add reg prefix to exist registers, to keep them same style. Signed-off-by: Jacob Chen Reviewed-by: Simon Glass --- Changes in v2: None drivers/power/regulator/rk808.c | 18 ++--- include/power/rk8

Re: [U-Boot] [PATCH v2 5/5] power: rk808: rename to rk8xx

2017-05-02 Thread sjg
Since this driver can be used for rk8xx series pmic, let's rename rk808 to rk8xx, to make it clear. Configs parts are done by sed -i "s/RK808/RK8XX/g" `grep RK808 -lr ./` Signed-off-by: Jacob Chen --- Changes in v2: - rename rk808 to rk8xx arch/arm/mach-rockchip/rk3288/sdram_rk3288.c | 6 +--

Re: [U-Boot] [PATCH v8 4/9] rockchip: video: vop: Add mipi display mode for rk3399

2017-05-02 Thread sjg
Add mipi display mode for rk3399 vop, so that we can use mipi panel for display. Signed-off-by: Eric Gao Reviewed-by: Simon Glass --- Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: -Add mipi display mode fo

Re: [U-Boot] [PATCH v8 5/9] rockchip: video: vop: Set different bitwidth for different display mode

2017-05-02 Thread sjg
Because the bitwidth is different for different display mode, so we need to set them according to demand. Signed-off-by: Eric Gao Reviewed-by: Simon Glass --- Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2:

Re: [U-Boot] [PATCH v8 2/9] rockchip: video: Add mipi driver support for rockchip soc

2017-05-02 Thread sjg
Add basic driver for mipi display on rockchip soc platform. Signed-off-by: Eric Gao Acked-by: Simon Glass --- Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: -Merge Kconfig and Makefile changes into this patch. Changes in v4: None Changes in v3: -Split mipi dsi driv

Re: [U-Boot] [PATCH v8 9/9] rockchip: defconfigs: Add mipi dsi support for rk3399 evb board

2017-05-02 Thread sjg
Add mipi dsi configs for rk3399 evb board Signed-off-by: Eric Gao Reviewed-by: Simon Glass --- Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: -Regenerate defconfig file using "make savedefconfig" Changes in v4: None Changes in v3: None Changes in v2: -Add defconfig

Re: [U-Boot] [PATCH v8 6/9] rockchip: video: vop: Reserve enough space for mipi dispaly

2017-05-02 Thread sjg
plat->size here is used to reserve frame buffer space befor relocation. our mipi panel use 24 bitwidth, and vop require 32bit align. So the frame buffer size should be at least 1920*1200*32/8. Signed-off-by: Eric Gao Reviewed-by: Simon Glass --- Changes in v8: None Changes in v7: None Changes

Re: [U-Boot] [PATCH v8 1/9] rockchip: include: grf: Add GRF register declaration for mipi dsi

2017-05-02 Thread sjg
Add GRF register declaration for mipi dsi. Signed-off-by: Eric Gao Reviewed-by: Simon Glass Reviewed-by: Philipp Tomsich --- Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: -Modify indentation for better readability. -Make all enum variate have explicit value. Chan

Re: [U-Boot] [PATCH v8 8/9] rockchip: dts: Add mipi dsi support for rk3399

2017-05-02 Thread sjg
Add dts config for mipi display, include vop, mipi controller, panel, backlight . And Enable rk808 for lcd_3v3 in another patch. Signed-off-by: Eric Gao Reviewed-by: Simon Glass Reviewed-by: Philipp Tomsich --- Changes in v8: -Set vop disabled by default. -Move unused config. Changes in v7:

Re: [U-Boot] [PATCH v4 1/4] rockchip: rk3288: grf: Add grf define for mipi dsi

2017-05-02 Thread sjg
Add grf register define for rk3288 mipi dsi Signed-off-by: Eric Gao Reviewed-by: Simon Glass --- Changes in v3: -Add Reviewer. Changes in v2: None Changes in v1: -Add grf define for mipi dsi arch/arm/include/asm/arch-rockchip/grf_rk3288.h | 62 + 1 file changed, 62 i

Re: [U-Boot] [PATCH v4 3/4] rockchip: dts: evb_rk3288: Add mipi display support

2017-05-02 Thread sjg
Add mipi dsi configuration for evb-rk3288 device tree. Signed-off-by: Eric Gao Reviewed-by: Simon Glass --- Changes in v3: -Add Reviewer. Changes in v2: -Move panel and backlight configuration to it's define node. Changes in v1: -Add dts configuration. arch/arm/dts/rk3288-evb.dtsi | 80 +++

Re: [U-Boot] [PATCH 0/20] tegra: Expand Nyan-big support

2017-05-02 Thread Simon Glass
Hi Matthew, On 2 May 2017 at 18:51, Matthew Gorski wrote: > I have yet to produce a u-boot command prompt. I can get the display to > flash using u-boot mainline with 0x81000100 as the SYS_TEXT_BASE and using: > > description = "Chrome OS kernel image with one or more FDT blobs"; > > but the bo

Re: [U-Boot] [PATCH 3/8] dm: blk: Add a function to find the next block device number

2017-05-02 Thread Simon Glass
Hi Andy, On 24 April 2017 at 02:04, Andy Shevchenko wrote: > On Mon, Apr 24, 2017 at 5:02 AM, Simon Glass wrote: >> At present this code is inline. Move it into a function to allow it to >> be used elsewhere. >> >> Signed-off-by: Simon Glass > >> +static int blk_next_free_devnum(enum if_type if

Re: [U-Boot] [PATCH v3 2/4] rockchip: video: Add mipi display support for rk3288

2017-05-02 Thread Simon Glass
Hi Eric, On 2 May 2017 at 03:05, Eric Gao wrote: > Because rk3288 and rk3399 use the same mipi dsi controller and phy with > only a few difference in grf register. So we share the mipi driver, and > handle the difference. > > Signed-off-by: Eric Gao > Reviewed-by: Simon Glass > > --- > > Change

Re: [U-Boot] [PATCH 1/8] dm: mmc: Don't re-init when accessing environment

2017-05-02 Thread Simon Glass
Hi, On 28 April 2017 at 18:27, Simon Glass wrote: > Hi Jean-Jacques, > > On 24 April 2017 at 02:55, Jean-Jacques Hiblot wrote: >> Hi Simon, >> >> On 24/04/2017 04:02, Simon Glass wrote: >>> >>> With driver model MMC is probed automatically when needed. We should not >>> re-init MMC each time. >>

Re: [U-Boot] [PATCH V3 0/4] introduce Rockchip rockusb

2017-05-02 Thread Eddie Cai
HI Lukasz 2017-05-02 18:47 GMT+08:00 Lukasz Majewski : > Hi Eddie, > >> Hi Lukasz >> >> 2017-04-30 5:46 GMT+08:00 Lukasz Majewski : >> > On Sat, 29 Apr 2017 08:41:34 +0800 >> > Eddie Cai wrote: >> > >> >> rockusb is a protocol run between host pc and device. it help >> >> people get device info,

Re: [U-Boot] arm: mxs: No arch specific invalidate_icache_all available!

2017-05-02 Thread Fabio Estevam
Hi Michael, On Sat, Apr 29, 2017 at 4:21 AM, Michael Heimpold wrote: > we could move the implementation in arch/arm/mach-at91/arm926ejs/cache.c > to a more generic place and re-use it. > > However, the warning is only generated because lib/efi_loader/efi_runtime.c > calls invalidate_icache_all f

Re: [U-Boot] [PATCH 0/20] tegra: Expand Nyan-big support

2017-05-02 Thread Matthew Gorski
I have yet to produce a u-boot command prompt. I can get the display to flash using u-boot mainline with 0x81000100 as the SYS_TEXT_BASE and using: description = "Chrome OS kernel image with one or more FDT blobs"; but the boot process forces a reboot into recovery. If I use: description = "U

Re: [U-Boot] [PATCH] spl: make image arg or fdt blob address reconfigurable

2017-05-02 Thread Vikas MANOCHA
Hi Tom, > -Original Message- > From: Vikas MANOCHA > Sent: Wednesday, April 12, 2017 12:47 PM > To: 'Tom Rini' > Cc: u-boot@lists.denx.de; Marek Vasut ; Stefan Agner > ; Jeremy Hunt > > Subject: RE: [U-Boot] [PATCH] spl: make image arg or fdt blob address > reconfigurable > > Hi Tom,

Re: [U-Boot] [U-Boot, v2, 1/1] meson: gxbb: increase CONFIG_SYS_BOOTM_LEN

2017-05-02 Thread Heinrich Schuchardt
On 04/14/2017 07:54 PM, xypron.g...@gmx.de wrote: > A feature rich Linux kernel needs more than 8 MiB. > Hence enlarge CONFIG_SYS_BOOTM_LEN to 64 MiB for the GXBB systems. > As all known GXBB systems have at least 512 MiB of RAM this poses no problem. > > Cc: Andreas Färber > Signed-off-by: Heinr

Re: [U-Boot] arm: mxs: No arch specific invalidate_icache_all available!

2017-05-02 Thread Michael Heimpold
Hi, Am Montag, 24. April 2017, 20:12:55 CEST schrieb Fabio Estevam: > Hi Stefan, > > On Mon, Apr 24, 2017 at 8:03 AM, Stefan Wahren wrote: > > Hi, > > > > i tried to port our Duckbill (based on NXP i.MX28 SoC) to U-Boot > > v2017.03 [1]. The startup works fine, except of this warning: > > > >

[U-Boot] [PATCH 07/11] ARM: at91: ma5d4: Enable support for booting from eMMC

2017-05-02 Thread Marek Vasut
The SoM has been redesigned to work around bug in the SoC and is now capable of booting from the eMMC. Add support for booting from eMMC. Signed-off-by: Marek Vasut Cc: Andreas Bießmann --- include/configs/ma5d4evk.h | 9 + 1 file changed, 9 insertions(+) diff --git a/include/configs/m

[U-Boot] [PATCH 06/11] ARM: at91: ma5d4: Swap SD/MMC controller order

2017-05-02 Thread Marek Vasut
The SDHCI1 is the primary boot controller on rev. 2.1 SoM, which is the version available on the market. Swap the controller order to match this and future versions of the SoM. Signed-off-by: Marek Vasut Cc: Andreas Bießmann --- board/aries/ma5d4evk/ma5d4evk.c | 5 ++--- include/configs/ma5d4e

[U-Boot] [PATCH 08/11] ARM: at91: ma5d4: Boot from MMC2 when using SAM-BA

2017-05-02 Thread Marek Vasut
Continue loading U-Boot from MMC2 when the SPL was loaded using SAM-BA loader. This allows the board to boot system from the removable media instead of the eMMC, which is useful for commissioning purposes. When booting from the eMMC, always boot from it as it is not possible to boot from the SD int

[U-Boot] [PATCH 09/11] ARM: at91: ma5d4: Switch environment start to eMMC

2017-05-02 Thread Marek Vasut
The redesigned version of the SoM which was released onto the market does no longer contain SPI flash, but boots from the eMMC. Move the environment storage to the eMMC. Signed-off-by: Marek Vasut Cc: Andreas Bießmann --- include/configs/ma5d4evk.h | 11 +-- 1 file changed, 5 insertions

[U-Boot] [PATCH 10/11] ARM: at91: ma5d4: Enable random ethaddr

2017-05-02 Thread Marek Vasut
Use random ethaddr by default in case no ethaddr is set. Signed-off-by: Marek Vasut --- configs/ma5d4evk_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/ma5d4evk_defconfig b/configs/ma5d4evk_defconfig index 8f8ce9b935..654193831c 100644 --- a/configs/ma5d4evk_defconfig +++

[U-Boot] [PATCH 11/11] ARM: at91: ma5d4: Support both SF and eMMC SoMs

2017-05-02 Thread Marek Vasut
Discern the SoMs based on the presence of SPI flash to support both variants of the SoM, one booting from SPI NOR and one booting from eMMC. Signed-off-by: Marek Vasut Cc: Andreas Bießmann --- board/aries/ma5d4evk/ma5d4evk.c | 26 -- include/configs/ma5d4evk.h | 22

[U-Boot] [PATCH 05/11] ARM: at91: ma5d4: Init SD/MMC controller in SPL

2017-05-02 Thread Marek Vasut
Init the controllers, otherwise the board cannot boot from SD/MMC. This boot option is new on rev. 2.1 SoM . Signed-off-by: Marek Vasut Cc: Andreas Bießmann --- board/aries/ma5d4evk/ma5d4evk.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/board/aries/ma5d4evk/ma5d4evk.c b/board/arie

[U-Boot] [PATCH 02/11] ARM: at91: ma5d4: Switch DDR2 controller to sequencial address decoding

2017-05-02 Thread Marek Vasut
According to the datasheet, sequential mapping is used for DDR SDRAM, while interleaved mapping is used for regular SDRAM. Incorrect configuration of this bit does indeed cause sporadic memory instability. Signed-off-by: Marek Vasut Cc: Andreas Bießmann Cc: Wenyou Yang --- board/aries/ma5d4evk

[U-Boot] [PATCH 04/11] ARM: at91: ma5d4: Enable DFU and UMS

2017-05-02 Thread Marek Vasut
Enable DFU and USB mass storage support for the DENX MA5D4 SoM. Signed-off-by: Marek Vasut Cc: Andreas Bießmann --- configs/ma5d4evk_defconfig | 8 include/configs/ma5d4evk.h | 4 2 files changed, 12 insertions(+) diff --git a/configs/ma5d4evk_defconfig b/configs/ma5d4evk_defconf

[U-Boot] [PATCH 03/11] ARM: at91: ma5d4: Reset CAN controllers late

2017-05-02 Thread Marek Vasut
The CAN controllers need slight delay between toggling of their reset line. Move this action into board_init(), otherwise timer will not be initialized and the board might hang. Signed-off-by: Marek Vasut Cc: Andreas Bießmann --- board/aries/ma5d4evk/ma5d4evk.c | 12 ++-- 1 file changed

[U-Boot] [PATCH 01/11] ARM: atmel: Rename MA5D4EVK

2017-05-02 Thread Marek Vasut
The board is now manufactured by Aries Embedded GmbH , rename it. Signed-off-by: Marek Vasut --- arch/arm/mach-at91/Kconfig | 4 ++-- board/{denx => aries}/ma5d4evk/Kconfig | 2 +- board/{denx => aries}/ma5d4evk/MAINTAINERS | 4 ++-- board/{denx => aries}/ma5d4evk/Makefile

Re: [U-Boot] [PATCH] drivers: spi: Remove duplicate .probe method

2017-05-02 Thread Suniel Mahesh
On Tuesday 02 May 2017 04:19 PM, Jagan Teki wrote: On Sat, Apr 29, 2017 at 12:32 AM, wrote: From: Suniel Mahesh .probe method has been assigned twice when declaring a a driver with U_BOOT_DRIVER(). Removed one of them. Thanks, Can you mark the details here like which commit has done this

Re: [U-Boot] [PATCH 0/20] tegra: Expand Nyan-big support

2017-05-02 Thread Matthew Gorski
On Tue, May 2, 2017 at 9:25 AM, Matthew Gorski wrote: > > > On Tue, May 2, 2017 at 2:54 AM, Sjoerd Simons < > sjoerd.sim...@collabora.co.uk> wrote: > >> On Tue, 2017-05-02 at 08:42 +0200, Tomeu Vizoso wrote: >> > On 2 May 2017 at 08:40, Tomeu Vizoso wrote: >> > > On 2 May 2017 at 03:19, Matthew

Re: [U-Boot] [PATCH v4 05/11] tegra: select ARM_GIC for Tegra SoCs

2017-05-02 Thread Stephen Warren
On 05/02/2017 12:51 AM, Antoine Tenart wrote: Hi Stephen, On Mon, May 01, 2017 at 09:34:43AM -0600, Stephen Warren wrote: Antoine Tenart wrote at Sunday, April 30, 2017 6:30 AM: Select the newly introduced ARM_GIC option to the relevant configuration which also have a psci implementation. I

Re: [U-Boot] [PATCH v2 2/3] common: dfu: ignore reset for spl-dfu

2017-05-02 Thread B, Ravi
>-Original Message- >From: Tom Rini [mailto:tr...@konsulko.com] >Sent: Tuesday, May 02, 2017 8:24 PM >To: B, Ravi >Cc: u-boot@lists.denx.de >Subject: Re: [U-Boot] [PATCH v2 2/3] common: dfu: ignore reset for spl-dfu >On Tue, May 02, 2017 at 01:56:45PM +, B, Ravi wrote: >> Tom >> >>

Re: [U-Boot] [PATCH v2 2/3] common: dfu: ignore reset for spl-dfu

2017-05-02 Thread Tom Rini
On Tue, May 02, 2017 at 01:56:45PM +, B, Ravi wrote: > Tom > > >>Can you give the exact bytes saved in each case, with your specific > >>compiler? I ask since I'm surprised it's more than a function being > >>dropped by the linker in this case. diff'ing the u-boot-spl.map files > >>would

[U-Boot] [PATCH 2/3] board: am335x: Introduce scale_vcores

2017-05-02 Thread Lokesh Vutla
Update voltages before programming plls. Signed-off-by: Lokesh Vutla --- board/ti/am335x/board.c | 267 +++- 1 file changed, 148 insertions(+), 119 deletions(-) diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c index 6786229680..c6e20b049

[U-Boot] [PATCH 1/3] arm: am33xx: Fix MPU opp selection

2017-05-02 Thread Lokesh Vutla
Update MPU frequencies and voltages as per the latest DM[1] dated: OCT 2011 Revised APRIL 2016, Section 5.4. Below is the consolidated data: MPU values for PG 2.0 and later(Package ZCZ and ZCE): --- | | ZCZ | ZCE

[U-Boot] [PATCH 3/3] arm: am33xx: Add support for mulitiple PLL input frequencies

2017-05-02 Thread Lokesh Vutla
am335x supports various sysclk frequencies which can be determined using sysboot pins. PLLs should be configures based on this sysclk frequency. Add PLL configurations for all supported frequencies. Signed-off-by: Lokesh Vutla --- arch/arm/include/asm/arch-am33xx/clock.h | 7 ++ arch/

[U-Boot] [PATCH 0/3] arm: am33xx: Add support for dynamic programming of PLL

2017-05-02 Thread Lokesh Vutla
As am33xx supports various sysclk frequencies, this series support PLL configuration for all supported sysclk frequencies. Lokesh Vutla (3): arm: am33xx: Fix MPU opp selection board: am335x: Introduce scale_vcores arm: am33xx: Add support for mulitiple PLL input frequencies arch/arm/includ

Re: [U-Boot] [PATCH v2 2/3] common: dfu: ignore reset for spl-dfu

2017-05-02 Thread B, Ravi
Tom >>Can you give the exact bytes saved in each case, with your specific compiler? >> I ask since I'm surprised it's more than a function being dropped by the >>linker in this case. diff'ing the u-boot-spl.map files would also say what >>is dropped and I'd be interested in that. > (And >yes,

Re: [U-Boot] [PATCH v2 2/3] common: dfu: ignore reset for spl-dfu

2017-05-02 Thread B, Ravi
Tom >> >> >I don't just mean dropping out CLI, I mean after dropping out CLI but >> >> >leaving in the reset logic. That's _still_ 7k? >> >> >> >> Without this fix, with cli_simple_run_command(), size of MLO with default >> >> dra7xx_evm_defconfig is 130K. >> >> With this fix, compile out cli.

Re: [U-Boot] [PATCH 0/20] tegra: Expand Nyan-big support

2017-05-02 Thread Matthew Gorski
On Tue, May 2, 2017 at 2:54 AM, Sjoerd Simons wrote: > On Tue, 2017-05-02 at 08:42 +0200, Tomeu Vizoso wrote: > > On 2 May 2017 at 08:40, Tomeu Vizoso wrote: > > > On 2 May 2017 at 03:19, Matthew Gorski > > > wrote: > > > > Seems if you change the FIT description from anything but > > > > > > >

Re: [U-Boot] [PATCH v2 2/3] common: dfu: ignore reset for spl-dfu

2017-05-02 Thread Tom Rini
On Tue, May 02, 2017 at 01:02:24PM +, B, Ravi wrote: > Tom > > >> >> > >> >> I observed around 7K reduced. > >> > >> >I don't just mean dropping out CLI, I mean after dropping out CLI but > >> >leaving in the reset logic. That's _still_ 7k? > >> > >> Without this fix, with cli_simple_run

Re: [U-Boot] [PATCH v2 2/3] common: dfu: ignore reset for spl-dfu

2017-05-02 Thread B, Ravi
Tom >> >> >> >> I observed around 7K reduced. >> >> >I don't just mean dropping out CLI, I mean after dropping out CLI but >> >leaving in the reset logic. That's _still_ 7k? >> >> Without this fix, with cli_simple_run_command(), size of MLO with default >> dra7xx_evm_defconfig is 130K. >> W

Re: [U-Boot] [PATCH v2 2/3] common: dfu: ignore reset for spl-dfu

2017-05-02 Thread Tom Rini
On Tue, May 02, 2017 at 12:41:48PM +, B, Ravi wrote: > Tom > > >> >> > >> >> static int dfu_find_alt_num(const char *s) > >> > >> >So do we still need the above, in order to save space? How much are we > >> >saving here even, now? Thanks! > >> > >> I observed around 7K reduced. > > >

Re: [U-Boot] [PATCH v2 2/3] common: dfu: ignore reset for spl-dfu

2017-05-02 Thread B, Ravi
>Tom >>> >> >>> >> static int dfu_find_alt_num(const char *s) >>> >>> >So do we still need the above, in order to save space? How much are we >>> >saving here even, now? Thanks! >>> >>> I observed around 7K reduced. Ignore 7K figure provided, that's wrong calculation. >I don't just mean

Re: [U-Boot] [PATCH v2 2/3] common: dfu: ignore reset for spl-dfu

2017-05-02 Thread B, Ravi
Tom >> >> >> >> static int dfu_find_alt_num(const char *s) >> >> >So do we still need the above, in order to save space? How much are we >> >saving here even, now? Thanks! >> >> I observed around 7K reduced. >I don't just mean dropping out CLI, I mean after dropping out CLI but leaving

[U-Boot] [PATCH 2/3] LS2080ARDB: QSPI boot: Secure Boot image validation

2017-05-02 Thread Udit Agarwal
Validates the images in the ESBC phase for LS2088ARDB platform and QSPI boot using esbc_validate command. Add images validation in default environment under mcinitcmd prior to MC initialization. Adds header address for PPA to be validated during ESBC phase for ARCH_LS2088 and QSPI_BOOT. Moves sec

[U-Boot] [PATCH 3/3] LS2080A: Adjust memory map for secure boot headers for NOR-boot

2017-05-02 Thread Udit Agarwal
This patch adjusts memory map for secure boot headers on LS2080AQDS and LS2080ARDB platforms. Secure boot headers are placed on NOR flash at offset 0x0060. Signed-off-by: Udit Agarwal --- https://patchwork.ozlabs.org/patch/756222/ https://patchwork.ozlabs.org/patch/756221/ https://patchwork.

[U-Boot] [PATCH 1/3] LS2080ARDB: Secure Boot defconfig for QSPI boot.

2017-05-02 Thread Udit Agarwal
Add the secure boot defconfig for QSPI boot on LS2088ARDB platform. Signed-off-by: Udit Agarwal --- https://patchwork.ozlabs.org/patch/756222/ https://patchwork.ozlabs.org/patch/756221/ https://patchwork.ozlabs.org/patch/756250/ configs/ls2088ardb_qspi_SECURE_BOOT_defconfig | 50 +++

Re: [U-Boot] [PATCH 1/5 v2] dm: device_remove: Don't return in device_chld_remove() upon error

2017-05-02 Thread Stefan Roese
Hi Simon, On 02.05.2017 13:27, Simon Glass wrote: On 1 May 2017 at 00:14, Stefan Roese wrote: Hi Simon, On 29.04.2017 02:26, Simon Glass wrote: On 24 April 2017 at 01:48, Stefan Roese wrote: On my x86 platform I've noticed, that calling dm_uninit() or the new function dm_remove_devices_

Re: [U-Boot] [PATCH v3 1/2] i2c_eeprom: add read and write functions

2017-05-02 Thread sjg
On 22 April 2017 at 02:57, Jonas Karlman wrote: > Signed-off-by: Jonas Karlman > --- > > Changes in v3: > - Add i2c_eeprom_{read,write} functions > > Changes in v2: None > > drivers/misc/i2c_eeprom.c | 32 ++-- > include/i2c_eeprom.h | 24

Re: [U-Boot] [PATCH v3 2/2] rockchip: tinker: set ethaddr in late init

2017-05-02 Thread sjg
On 22 April 2017 at 02:57, Jonas Karlman wrote: > Set ethernet mac address in late init for Tinker Board, > prevents getting a random mac address each boot. > > Read mac address from eeprom, first 6 bytes from m24c08@50. > Same as /etc/init.d/rockchip.sh on Tinker OS. > > Signed-off-by: Jonas Karl

Re: [U-Boot] [PATCH 2/2] asm-generic: global_data: change timebase_l/h to unsigned int

2017-05-02 Thread Simon Glass
Hi Peng, On 25 April 2017 at 14:51, Peng Fan wrote: > Hi Simon, > >> -Original Message- >> From: s...@google.com [mailto:s...@google.com] On Behalf Of Simon Glass >> Sent: Monday, April 24, 2017 11:38 AM >> To: Peng Fan >> Cc: U-Boot Mailing List ; Tom Rini >> ; Eddie Cai ; Jagan Teki >>

Re: [U-Boot] [U-boot] use of CONFIG_SYS_EARLY_PCI_INIT with DM PCI

2017-05-02 Thread Simon Glass
Hi Suneel, On 27 April 2017 at 05:29, Suneel Garapati wrote: > Hi Tom/Simon, > > Request to help on below query. > > Regards, > Suneel > > On Tue, Apr 25, 2017 at 16:25 Suneel Garapati > wrote: >> >> Hi Simon, >> >> Request your inputs on below query - >> >> Boards I work on have most of the dev

Re: [U-Boot] [PATCH 04/19] fdt: Move header files into lib/libfdt

2017-05-02 Thread sjg
These header files are actually part of libfdt. Move them there to make it easier to build pylibfdt and easier to merge changes from upstream. Update the license header to use SPDX at the same time. Signed-off-by: Simon Glass --- include/fdt.h | 68 +- include/libfdt.h| 2094 +-

Re: [U-Boot] [PATCH v4 3/3] rtc: Add DM support to ds1307

2017-05-02 Thread Simon Glass
Hi Chris, On 30 April 2017 at 21:11, Chris Packham wrote: > On Sun, Apr 30, 2017 at 3:49 PM, Simon Glass wrote: >> On 28 April 2017 at 21:20, Chris Packham wrote: >>> Add an implementation of the ds1307 driver that uses the driver model >>> i2c APIs. >>> >>> Signed-off-by: Chris Packham >>> >>

Re: [U-Boot] [PATCH 12/19] fdt: Makefile: Build python libfdt library if needed

2017-05-02 Thread sjg
This is needed by binman and dtoc, so if those are being used, check that the library is present and complain if not. This means that the fallback library (which uses fdtget) will not be used anymore and swig will need to be installed to use binman / dtoc. This affects any board which uses binman

Re: [U-Boot] [PATCH 05/19] fdt: Allow swig options to be provided by Makefile

2017-05-02 Thread sjg
U-Boot needs to provide some swig include directories. Add this feature. Signed-off-by: Simon Glass --- lib/libfdt/pylibfdt/setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Applied to u-boot-fdt/next, thanks! ___ U-Boot mailing list

Re: [U-Boot] [PATCH 00/19] fdt: Move to the new upstream pylibfdt library

2017-05-02 Thread Simon Glass
Hi, On 19 April 2017 at 08:27, Tom Rini wrote: > On Tue, Apr 18, 2017 at 10:48:07AM -0600, Simon Glass wrote: >> Hi Tom, >> >> On 18 April 2017 at 10:33, Tom Rini wrote: >> > On Tue, Apr 18, 2017 at 10:27:37AM -0600, Simon Glass wrote: >> >> Hi Tom, >> >> >> >> On 18 April 2017 at 10:25, Tom Rin

Re: [U-Boot] [PATCH 09/19] fdt: Update fdt_test to use 'dt' instead of 'fdt'

2017-05-02 Thread sjg
Since fdt is a module it conflicts with this variable name and prevents it being used in tests. Rename the variable. Signed-off-by: Simon Glass --- tools/binman/fdt_test.py | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) Applied to u-boot-fdt/next, thanks!

Re: [U-Boot] [PATCH 15/19] fdt: Drop fdt_fallback library

2017-05-02 Thread sjg
Drop this now-unused library and associated tests. Signed-off-by: Simon Glass --- tools/binman/fdt_test.py | 10 --- tools/binman/func_test.py | 42 --- tools/dtoc/fdt.py | 4 +- tools/dtoc/fdt_fallback.py | 181 - tools/dtoc/f

Re: [U-Boot] [PATCH 13/19] fdt: Stop building the old python libfdt module

2017-05-02 Thread sjg
This is no-longer needed, so stop building it. Signed-off-by: Simon Glass --- lib/libfdt/libfdt_legacy.swig | 112 -- lib/libfdt/setup.py | 38 -- tools/Makefile| 18 --- 3 files changed, 168 deletions(-) delet

Re: [U-Boot] [PATCH 01/19] pci: Correct cast for sandbox

2017-05-02 Thread sjg
This gives a warning with some native compilers: cmd/pci.c:152:11: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘u64 {aka long unsigned int}’ [-Wformat=] Fix it with a cast. Signed-off-by: Simon Glass --- cmd/pci.c | 3 ++- 1 file cha

Re: [U-Boot] [PATCH 02/19] fdt: Correct cast for sandbox in fdtdec_setup_memory_size()

2017-05-02 Thread sjg
This gives a warning with some native compilers: lib/fdtdec.c:1203:8: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘long unsigned int’ [-Wformat=] Fix it with a cast. Signed-off-by: Simon Glass --- lib/fdtdec.c | 3 ++- 1 file changed

Re: [U-Boot] [PATCH 06/19] fdt: Add all source files to the libfdt build

2017-05-02 Thread sjg
At present only a subset of source files are build. Add the rest and refactor this so that a source file list is available also. This will be used in later commit. Signed-off-by: Simon Glass --- tools/Makefile | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) Applied to u-boot-fdt/

Re: [U-Boot] [PATCH 08/19] fdt: Build the new python libfdt module

2017-05-02 Thread sjg
Build the upstream python libfdt module. At present the legacy module is still built and is the one that it used. Future work will switch this over. Signed-off-by: Simon Glass --- tools/Makefile | 18 ++ 1 file changed, 18 insertions(+) Applied to u-boot-fdt/next, thanks! _

Re: [U-Boot] [PATCH 1/5 v2] dm: device_remove: Don't return in device_chld_remove() upon error

2017-05-02 Thread Simon Glass
Hi Stefan, On 1 May 2017 at 00:14, Stefan Roese wrote: > Hi Simon, > > > On 29.04.2017 02:26, Simon Glass wrote: >> >> On 24 April 2017 at 01:48, Stefan Roese wrote: >>> >>> On my x86 platform I've noticed, that calling dm_uninit() or the new >>> function dm_remove_devices_flags() does not remov

Re: [U-Boot] [PATCH 07/19] fdt: Rename existing python libfdt module

2017-05-02 Thread sjg
Now that this module has been accepted upstream we should stop using the local U-Boot one. In preparation for this, rename it to indicate it is for legacy use. Signed-off-by: Simon Glass --- lib/libfdt/{libfdt.swig => libfdt_legacy.swig} | 3 +-- lib/libfdt/setup.py

Re: [U-Boot] [PATCH 11/19] fdt: Support use of the new python libfdt library

2017-05-02 Thread sjg
Use the new library if available, while retaining backwards compatibility with the old library for now. Signed-off-by: Simon Glass --- tools/Makefile | 4 +++- tools/binman/binman.py | 3 +++ tools/dtoc/fdt.py| 1 + tools/dtoc/fdt_normal.py | 35 ++

Re: [U-Boot] [PATCH 10/19] fdt: dtoc: Add a full set of property tests

2017-05-02 Thread sjg
The tests don't currently cover all the different property types. Add a new test which checks each property type in turn, to make sure each has the correct type and value. Signed-off-by: Simon Glass --- tools/binman/fdt_test.py | 46 ++ tools/binman

Re: [U-Boot] [PATCH 2/3] sunxi: Convert CONFIG_SUNXI_EMAC to Kconfig

2017-05-02 Thread Tom Rini
On Tue, May 02, 2017 at 04:31:47PM +0530, Jagan Teki wrote: > On Mon, Feb 20, 2017 at 8:08 PM, Tom Rini wrote: > > Migrate this option to Kconfig. > > > > Signed-off-by: Tom Rini > > Reviewed-by: Jagan Teki > > Can't apply this on my tree, would like to go this after the release > please resen

Re: [U-Boot] [PATCH 03/19] fdt: Use SPDX format for licenses in the libfdt headers

2017-05-02 Thread sjg
On Mon, Apr 17, 2017 at 07:47:34AM -0600, Simon Glass wrote: > Hi Tom, > > On 17 April 2017 at 07:33, Tom Rini wrote: > > > > On Mon, Apr 17, 2017 at 10:13:06PM +0900, Masahiro Yamada wrote: > > > Hi Tom, > > > > > > > > > 2017-04-17 22:05 GMT+09:00 Tom Rini : > > > > On Sun, Apr 16, 2017 at 08:22

Re: [U-Boot] [PATCH 6/7] rockchip: rk3368: Add PX5 Evaluation board

2017-05-02 Thread Simon Glass
Hi, On 1 May 2017 at 11:44, Andreas Färber wrote: > Am 21.04.2017 um 04:33 schrieb Andy Yan: >> diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile >> index fbc97e8..d786611 100644 >> --- a/arch/arm/dts/Makefile >> +++ b/arch/arm/dts/Makefile >> @@ -42,9 +42,10 @@ dtb-$(CONFIG_ARCH_ROCKCHI

Re: [U-Boot] [PATCH 14/19] fdt: Drop use of the legacy libfdt python module

2017-05-02 Thread sjg
Now that this is no-longer available, stop looking for it. The new module will be used if available. Signed-off-by: Simon Glass --- tools/dtoc/fdt_normal.py | 32 1 file changed, 8 insertions(+), 24 deletions(-) Applied to u-boot-fdt/next, thanks! _

Re: [U-Boot] [PATCH 17/19] fdt: Merge fdt_normal with its base class

2017-05-02 Thread sjg
Since we only have one Fdt implementation now we don't need to have a base class. Merge the implementation and the base class together. Signed-off-by: Simon Glass --- tools/dtoc/fdt.py| 176 +++- tools/dtoc/fdt_normal.py | 226

Re: [U-Boot] [PATCH 16/19] binman: Drop a special case related to fdt_fallback

2017-05-02 Thread sjg
Previously we were sometimes forced to collate x86 microcode due to not having access to the offset of each individual piece. Now that we never use fdt_fallback, we don't have this problem. Drop this special case from the code. Signed-off-by: Simon Glass --- tools/binman/etype/u_boot_dtb_with_u

Re: [U-Boot] [PATCH 19/19] fdt: Drop fdt_select.py

2017-05-02 Thread sjg
This file was used to select between the normal and fallback libfdt implementations. Now that we only have one, it is not needed. Drop it and fix up all users. Signed-off-by: Simon Glass --- tools/binman/control.py | 2 +- tools/binman/etype/u_boot_dtb_with_ucode.py | 2 +

Re: [U-Boot] [PATCH 18/19] binman: Rename fdt variable to dtb

2017-05-02 Thread sjg
Since fdt is the name of a module, use a different name for variables to avoid a conflict. Signed-off-by: Simon Glass --- tools/binman/control.py | 10 +- tools/binman/etype/u_boot_dtb_with_ucode.py | 9 - tools/binman/func_test.py | 4 ++-

  1   2   >