Re: [U-Boot] [U-Boot, 3/3] mmc: sd_sdhi: Enable clock using clock framework

2017-08-16 Thread Jaehoon Chung
On 07/22/2017 06:22 AM, Marek Vasut wrote: > Since we now have clock driver for the RCar Gen3 , add support for > enabling the clock into the SH SDHI driver to prevent hacks in the > board files. > > Signed-off-by: Marek Vasut > Cc: Nobuhiro Iwamatsu

Re: [U-Boot] [U-Boot,2/3] mmc: sh_sdhi: Fix the ACMD handling

2017-08-16 Thread Jaehoon Chung
On 07/22/2017 06:22 AM, Marek Vasut wrote: > The command handling in this driver is awful, esp. because the driver > depends on command numbers to determine whether this is APPCMD or not. > Also, handling of command RSP response types is totally wrong. > > This patch at least plucks out some of

Re: [U-Boot] [U-Boot, 1/3] mmc: sh_sdhi: Add DM and DT probing support

2017-08-16 Thread Jaehoon Chung
On 07/22/2017 06:22 AM, Marek Vasut wrote: > Add MMC DM and DT probing support into the SH SDHI driver. > This patch abstracts out the common bits of the send command > and set ios functions, so they can be used both by DM and non > DM setups and adds the DM probe support. > > Signed-off-by:

Re: [U-Boot] mmc: uniphier-sd: Fix long response processing

2017-08-16 Thread Jaehoon Chung
On 07/22/2017 06:11 AM, Marek Vasut wrote: > The long response entry 0..3 LSByte comes from the next response > register MSByte, not from the next response register LSByte. Fix > this to make the driver report correct values in response 136 . > > Signed-off-by: Marek Vasut

Re: [U-Boot] [PATCH] ARM: sun8i: a83t: Add device tree for Sinovoip Bananapi BPI-M3

2017-08-16 Thread icenowy
在 2017-08-17 11:40,Chen-Yu Tsai 写道: The BPI-M3 is an Allwinner A83T based SBC in the Bananapi/Bpi family. It is roughly the same form factor as the BPI-M1+, with roughly the same peripherals and connectors: - 2GB LPDDR3 DRAM - 8GB eMMC - Micro-SD card slot - HDMI output - Headset

[U-Boot] [PATCH] ARM: sun8i: a83t: Add device tree for Sinovoip Bananapi BPI-M3

2017-08-16 Thread Chen-Yu Tsai
The BPI-M3 is an Allwinner A83T based SBC in the Bananapi/Bpi family. It is roughly the same form factor as the BPI-M1+, with roughly the same peripherals and connectors: - 2GB LPDDR3 DRAM - 8GB eMMC - Micro-SD card slot - HDMI output - Headset (stereo + mic) jack - Onboard mic -

Re: [U-Boot] [PATCH] ls1046aqds: update the defaule mtdparts

2017-08-16 Thread Xiaowei Bao
Hi york, Yes, I think so. Thanks -Original Message- From: York Sun Sent: Thursday, August 17, 2017 12:15 AM To: Xiaowei Bao ; Mingkai Hu ; Sumit Garg ; u-boot@lists.denx.de Subject: Re: [U-Boot] [PATCH] ls1046aqds: update

Re: [U-Boot] Pull request, u-boot-tegra/master

2017-08-16 Thread Tom Rini
On Wed, Aug 16, 2017 at 08:30:20AM -0700, Tom Warren wrote: > Tom, > > Please pull u-boot-tegra/master into U-Boot/master. Thanks! > > All Tegra builds are OK, and Stephen's automated test system reports that > all tests pass. > > The following changes since commit

Re: [U-Boot] Pull request: u-boot-spi/master

2017-08-16 Thread Tom Rini
On Wed, Aug 16, 2017 at 06:30:39PM +0530, Jagan Teki wrote: > Hi Tom, > > Please pull this PR. > > thanks! > Jagan. > > The following changes since commit eaa90e5df2a4a1cb12fb73571978a9379242d0b5: > > common/env_embedded.c: rename PPCENV/PPCTEXT macros (2017-08-04 20:38:39 > -0400) > >

Re: [U-Boot] Pull request: u-boot-sunxi/master

2017-08-16 Thread Tom Rini
On Wed, Aug 16, 2017 at 06:41:09PM +0530, Jagan Teki wrote: > Hi Tom, > > Please pull this PR. > > thanks! > Jagan. > > The following changes since commit b24065c4ef21687787a74eef22dfa9232096f965: > > Merge git://git.denx.de/u-boot-i2c (2017-08-10 07:22:59 -0400) > > are available in the

Re: [U-Boot] [PULL] Please pull u-boot-imx

2017-08-16 Thread Tom Rini
On Wed, Aug 16, 2017 at 01:18:40PM +0200, Stefano Babic wrote: > Hi Tom, > > please pull from u-boot-imx, thanks ! > > The following changes since commit f19955a01482d118eac0fdaf530ec6e5b08cf414: > > Merge git://git.denx.de/u-boot-uniphier (2017-07-26 11:29:25 -0400) > > are available in

[U-Boot] [PATCHv2 2/2] igep00x0: merge igep0020 and igep0030 defconfigs to igep00x0_defconfig

2017-08-16 Thread Ladislav Michl
From: Pau Pajuelo Update igep00x0 code with the following features: - Add board and revision detection for the boards: - IGEP0020-RF - IGEP0020-RC - IGEP0030-RG - IGEP0030-RE - Merge IGEP0020 and IGEP0030 mux tables - Add suport to use GPIO_126, GPIO_127 and GPIO_129 -

[U-Boot] [PATCH 1/2] igep00x0: move SPL routines into separate file

2017-08-16 Thread Ladislav Michl
Avoid cluttering board file with CONFIG_SPL_BUILD ifdefs by moving SPL related functions into separate file. Signed-off-by: Ladislav Michl --- board/isee/igep00x0/Makefile | 6 +- board/isee/igep00x0/common.c | 80 ++

[U-Boot] [PATCH 0/2] igep00x0: defconfig merge

2017-08-16 Thread Ladislav Michl
Hi Pau, code with your patch "igep00x0: merge igep0020 and igep0030 defconfigs to igep00x0_defconfig" applied no longer fits to sram (and patch even does not apply anymore), so here's an update: - move spl related functions to separate file - update defconfig merge patch to current git - use

Re: [U-Boot] [PATCH 05/18] net: phy: micrel: Convert to livetree

2017-08-16 Thread Joe Hershberger
On Wed, Aug 16, 2017 at 12:32 PM, Philipp Tomsich wrote: > Update the Micrel KSZ90x1 driver for a live tree. > > Signed-off-by: Philipp Tomsich Acked-by: Joe Hershberger

Re: [U-Boot] [PATCH 04/18] net: designware: Convert to livetree

2017-08-16 Thread Joe Hershberger
On Wed, Aug 16, 2017 at 12:32 PM, Philipp Tomsich wrote: > Update the Designware Ethernet MAC driver to support a live device > tree. > > Signed-off-by: Philipp Tomsich Acked-by: Joe Hershberger

[U-Boot] [PATCH v3 15/19] mmc: dw_mmc: rockchip: add support for rk3066 sdmmc

2017-08-16 Thread Paweł Jarosz
This patch enables support for the Rockchip RK3066 SD/MMC controller, which is based on Designware IP. The device supports SD, SDIO, MMC and eMMC. Signed-off-by: Paweł Jarosz --- Changes since v1: - dropped OF_PLATDATA Changes since v2: - none

[U-Boot] [PATCH v3 14/19] mmc: dw_mmc: support transfer mode autodetection

2017-08-16 Thread Paweł Jarosz
dw_mmc supports two transfer modes in u-boot: idma and fifo. This patch adds autodetection of transfer mode and eliminates setting this in host config struct Signed-off-by: Paweł Jarosz --- Changes since v1: - none Changes since v2: - none drivers/mmc/dw_mmc.c | 8

[U-Boot] [PATCH v3 10/19] mtd: nand: add the rockchip nand controller driver

2017-08-16 Thread Paweł Jarosz
Add basic Rockchip nand driver. Driver in current state has 16, 24, 40, 60 per 1024B BCH/ECC ability and 8 bit asynchronous flash interface support. Other features will come later. Signed-off-by: Paweł Jarosz --- Changes since v1: - none Changes since v2: - fixed

[U-Boot] [PATCH v3 18/19] dfu: fix spl build

2017-08-16 Thread Paweł Jarosz
In current state dfu depends on cmd/mtdparts.c which isn't build in SPL. This patch resolves it by cutting out unwanted code in SPL build. Signed-off-by: Paweł Jarosz --- Changes since v1: - none Changes since v2: - none drivers/dfu/dfu_nand.c | 6 +- 1 file

[U-Boot] [PATCH v3 19/19] mtd: nand: spl: allow build nand_bbt, nand_ids and nand_util

2017-08-16 Thread Paweł Jarosz
This patch allows building of nand_bbt, nand_ids, nand_util for nand drivers that need it. Signed-off-by: Paweł Jarosz --- Changes since v1: - none Changes since v2: - none drivers/mtd/nand/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git

[U-Boot] [PATCH v3 16/19] armv7: support rk3066 early back to bootrom in vector.S

2017-08-16 Thread Paweł Jarosz
Rockchip bootrom first reads 1KB data from nand at offset 0x10080C00 and executes it. Then waits for back to bootrom and loads another 32KB to sram which also executes. Sdram initialisation code needs to be in one of these two steps. Then bootloader loads another ~200KB of data at offset

[U-Boot] [PATCH v3 17/19] rockchip: sysreset: deduplicate rk3066 and rk3188 sysreset drivers

2017-08-16 Thread Paweł Jarosz
Sysreset drivers for rk3066 and rk3188 contain common elements which can be reused. Signed-off-by: Paweł Jarosz --- Changes since v1: - none Changes since v2: - none .../include/asm/arch-rockchip/sysreset_common.h| 20 +++

[U-Boot] [PATCH v3 11/19] rockchip: mkimage: add support for rockchip nand boot image

2017-08-16 Thread Paweł Jarosz
The Rockchip boot ROM requires a particular file format for booting from NAND: * It starts with 512-byte, rc4 encoded header and is aligned to nand page size * Then first 2KB of first stage loader (tpl) aligned to nand page size * n empty pages * second 2KB of first stage loader (tpl) aligned

[U-Boot] [PATCH v3 13/19] ARM: dts: rockchip: prefer u-boot, dm-pre-reloc rather than u-boot, dm-spl

2017-08-16 Thread Paweł Jarosz
rk3xxx.dtsi is used by rk3188 and rk3066. rk3188 uses alocated data in spl but rk3066 needs it in tpl. Signed-off-by: Paweł Jarosz --- Changes since v1: - none Changes since v2: - none arch/arm/dts/rk3xxx.dtsi | 8 1 file changed, 4 insertions(+), 4

[U-Boot] [PATCH v3 12/19] rockchip: board: rk3066: convert board_usb_init to live tree functions

2017-08-16 Thread Paweł Jarosz
Use live tree functions to fill dwc2_plat_otg_data structure in board_usb_init. Signed-off-by: Paweł Jarosz --- Changes since v1: - none Changes since v2: - none arch/arm/mach-rockchip/rk3066-board.c | 52 +-- 1 file changed, 7

[U-Boot] [PATCH v3 09/19] mtd: nand: add support for the Sandisk SDTNQGAMA chip

2017-08-16 Thread Paweł Jarosz
Sandisk SDTNQGAMA is a 8GB size, 3.3V 8 bit chip with 16KB page size, 1KB write size and 40 bit ecc support Signed-off-by: Paweł Jarosz --- Changes since v1: - none Changes since v2: - none drivers/mtd/nand/nand_ids.c | 3 +++ 1 file changed, 3 insertions(+) diff

[U-Boot] [PATCH v3 08/19] rockchip: rk3066: add sdram driver

2017-08-16 Thread Paweł Jarosz
Add rockchip rk3066 sdram driver Signed-off-by: Paweł Jarosz Acked-by: Simon Glass Acked-by: Philipp Tomsich --- Changes since v1: - use common rockchip_sdram_size - moved sdram init from sdram_init.c Changes

[U-Boot] [PATCH v3 07/19] rockchip: rk3066: add mk808 board files

2017-08-16 Thread Paweł Jarosz
mk808 is a tv stick with two usb ports, micro sd card slot, hdmi and nand onboard. Signed-off-by: Paweł Jarosz Acked-by: Simon Glass Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich

[U-Boot] [PATCH v3 05/19] rockchip: rk3066: add rk3066 platform devicetree file

2017-08-16 Thread Paweł Jarosz
rk3066 peripherials include usb, i2c, pwm, gpio, sdio, sdmmc, emmc, spi, watchdog and uart Signed-off-by: Paweł Jarosz Reviewed-by: Simon Glass Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich

[U-Boot] [PATCH v3 06/19] rockchip: rk3066: add core support

2017-08-16 Thread Paweł Jarosz
Add core skeleton for rk3066 Signed-off-by: Paweł Jarosz Acked-by: Philipp Tomsich --- Changes since v1: - updated to shifted masks - moved syscon.h below spl.h - changed error to debug and return error reason - changed Cortex-A7

[U-Boot] [PATCH v3 04/19] rockchip: rk3066: add clock driver for rk3066 soc

2017-08-16 Thread Paweł Jarosz
Add clock driver for rk3066 platform. Signed-off-by: Paweł Jarosz Acked-by: Philipp Tomsich --- Changes since v1: - updated to shifted masks - moved clk init to tpl Changes since v2: - none

[U-Boot] [PATCH v3 03/19] rockchip: rk3066: add sysreset driver

2017-08-16 Thread Paweł Jarosz
Add support for system reset for rk3066 socs. Signed-off-by: Paweł Jarosz Reviewed-by: Simon Glass Acked-by: Philipp Tomsich --- Changes since v1: - updated to shifted masks Changes since v2: - none

[U-Boot] [PATCH v3 02/19] rockchip: rk3066: add rk3066 pinctrl driver

2017-08-16 Thread Paweł Jarosz
Add driver supporting pin multiplexing on rk3066 platform. Signed-off-by: Paweł Jarosz Acked-by: Philipp Tomsich --- Changes since v1: - updated to shifted masks - added nand support Changes since v2: - none

[U-Boot] [PATCH v3 01/19] rockchip: rk3066: add grf header file

2017-08-16 Thread Paweł Jarosz
grf is needed by various drivers for rk3066 soc. Signed-off-by: Paweł Jarosz Acked-by: Philipp Tomsich --- Changes since v1: - updated to shifted masks Changes since v2: - none arch/arm/include/asm/arch-rockchip/grf_rk3066.h |

[U-Boot] [PATCH v3 00/19] add support for rk3066 platform.

2017-08-16 Thread Paweł Jarosz
This patch serie adds support for Rockchip RK3066 processor. Paweł Jarosz (19): rockchip: rk3066: add grf header file rockchip: rk3066: add rk3066 pinctrl driver rockchip: rk3066: add sysreset driver rockchip: rk3066: add clock driver for rk3066 soc rockchip: rk3066: add rk3066 platform

[U-Boot] [PATCH v2 7/8] apalis/colibri_imx6: use independent USB PID for SPL

2017-08-16 Thread Stefan Agner
From: Stefan Agner Use a completely independent USB Product ID for SPL. This allows to differentiate a SDP running in SPL and SDP running in a U-Boot which could not read the config block successfully. Signed-off-by: Stefan Agner Acked-by:

[U-Boot] [PATCH v2 5/8] spl: add serial download protocol (SDP) support

2017-08-16 Thread Stefan Agner
From: Stefan Agner Add USB serial download protocol support to SPL. If the SoC started in recovery mode the SPL will immediately switch to SDP and wait for further downloads/commands from the host side. Signed-off-by: Stefan Agner

[U-Boot] [PATCH v2 4/8] cmd: add sdp command

2017-08-16 Thread Stefan Agner
From: Stefan Agner Add a new command to start USB Serial Download Protocol (SDP) state machine. Signed-off-by: Stefan Agner Reviewed-by: Łukasz Majewski Reviewed-by: Stefano Babic --- Changes in v2: - Changed

[U-Boot] [PATCH v2 6/8] doc: add Serial Download Protocol documentation

2017-08-16 Thread Stefan Agner
From: Stefan Agner Document the U-Boot Serial Download Protocol implementation and some typical use cases. Signed-off-by: Stefan Agner --- This ended up to be almost more a imx_usb documentation. But there is really not much to document from

[U-Boot] [PATCH v2 8/8] apalis/colibri_imx6: enable SDP by default

2017-08-16 Thread Stefan Agner
From: Stefan Agner Enable Serial Download Protocol (SDP) in SPL and U-Boot. This is useful to make use of imx_usb to download the complete U-Boot (u-boot.img) after SPL has been downloaded. The U-Boot command sdp allows to enumerate as SDP capable device again, e.g. to

[U-Boot] [PATCH v2 3/8] usb: gadget: sdp: extend images compatible for jumps

2017-08-16 Thread Stefan Agner
From: Stefan Agner Support U-Boot images in SPL so that u-boot.img files can be directly downloaded and executed. Furthermore support U-Boot scripts download and execution in full U-Boot so that custom recovery actions can be downloaded from the host in a third step.

[U-Boot] [PATCH v2 2/8] usb: gadget: add SDP driver

2017-08-16 Thread Stefan Agner
From: Stefan Agner Add SDP (Serial Downloader Protocol) implementation for U-Boot. The protocol is used in NXP SoC's boot ROM and allows to download program images. Beside that, it can also be used to read/write registers and download complete Device Configuration Data

[U-Boot] [PATCH v2 1/8] imx: move imximage header to common location

2017-08-16 Thread Stefan Agner
From: Stefan Agner Move the imximage.h header file to a common location so we can make use of it from U-Boot too. Signed-off-by: Stefan Agner Reviewed-by: Łukasz Majewski --- Changes in v2: None {tools =>

[U-Boot] [PATCH v2 0/8] imx: add USB Serial Download Protocol (SDP) support

2017-08-16 Thread Stefan Agner
From: Stefan Agner This series adds NXP's Serial Download Protocol (SDP) support via USB for SPL/U-Boot. It allows to download U-Boot via USB from a (recovered) SPL using the same tools used to download SPL itself (specifically imx_usb, but also sb_loader seems to

[U-Boot] [PATCH 16/18] rockchip: gpio: remove outdate/misleading comment

2017-08-16 Thread Philipp Tomsich
Remove a comment claiming that this driver only supports the RK3288, as we also use it on the RK3368, RK3399 and (most likely) on other variants. Signed-off-by: Philipp Tomsich --- drivers/gpio/rk_gpio.c | 1 - 1 file changed, 1 deletion(-) diff --git

[U-Boot] [PATCH 17/18] rockchip: dts: rk3368-lion: add /chosen/tick-timer

2017-08-16 Thread Philipp Tomsich
To support bootstage recording, we want to mark our DM timer as the tick-timer; this triggers the support for 'trying harder' to read the timer in the Rockchip DM timer driver, even if the device model isn't ready yet. Signed-off-by: Philipp Tomsich ---

[U-Boot] [PATCH 14/18] rockchip: i2c: Convert to livetree

2017-08-16 Thread Philipp Tomsich
Update the Rockchip I2C driver to support livetree. Signed-off-by: Philipp Tomsich --- drivers/i2c/rk_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/rk_i2c.c b/drivers/i2c/rk_i2c.c index 8bc045a..c00b09a 100644 ---

[U-Boot] [PATCH 18/18] rockchip: lion-rk3368: defconfig: resync w/ OF_LIVE and BOOTSTAGE enabled

2017-08-16 Thread Philipp Tomsich
This adds OF_LIVE and BOOTSTAGE support for the RK3368-uQ7 and regenerates the defconfig (picking up a few changes/reorderings) from upstream Kconfig changes. Signed-off-by: Philipp Tomsich --- configs/lion-rk3368_defconfig | 9 +++-- 1 file changed,

[U-Boot] [PATCH 12/18] rockchip: sdhci: Convert to livetree

2017-08-16 Thread Philipp Tomsich
Update the Rockchip SDHCI wrapper to support a live device tree. Signed-off-by: Philipp Tomsich --- drivers/mmc/rockchip_sdhci.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mmc/rockchip_sdhci.c

[U-Boot] [PATCH 10/18] rockchip: pinctrl: rk3368: Convert to livetree

2017-08-16 Thread Philipp Tomsich
Update the pinctrl driver for the RK3368 to support a live device tree. Signed-off-by: Philipp Tomsich --- drivers/pinctrl/rockchip/pinctrl_rk3368.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[U-Boot] [PATCH 00/18] rockchip: convert the RK3368 to OF_LIVE and validate on the RK3368-uQ7

2017-08-16 Thread Philipp Tomsich
This series converts all dependencies for the RK3368-uQ7 to support a live tree and and tests w/ BOOTSTAGE enabled (thus introducing a few additional changes to the Rockchip DM timer driver). Note that updating the RK3399 support (which will have us look at video) for a live tree will be next: I

[U-Boot] [PATCH 11/18] rockchip: spi: Convert to livetree

2017-08-16 Thread Philipp Tomsich
Update the Rockchip SPI driver to support a live device tree. Signed-off-by: Philipp Tomsich --- drivers/spi/rk_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/rk_spi.c b/drivers/spi/rk_spi.c index c70d636..b18db74

[U-Boot] [PATCH 13/18] rockchip: rk8xx: remove unused header includes

2017-08-16 Thread Philipp Tomsich
Remove header file includes that have been left over after the conversion to livetree-support. Signed-off-by: Philipp Tomsich --- drivers/power/pmic/rk8xx.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/power/pmic/rk8xx.c

[U-Boot] [PATCH 06/18] rockchip: mmc: convert to livetree

2017-08-16 Thread Philipp Tomsich
Update the Rockchip-specific wrapper for the Designware driver to support a live device tree. Signed-off-by: Philipp Tomsich --- drivers/mmc/rockchip_dw_mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [PATCH 08/18] rockchip: timer: Convert to livetree

2017-08-16 Thread Philipp Tomsich
Update the Rockchip timer driver to support a live device tree. Signed-off-by: Philipp Tomsich --- drivers/timer/rockchip_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/timer/rockchip_timer.c

[U-Boot] [PATCH 07/18] rockchip: timer: implement timer_get_boot_us

2017-08-16 Thread Philipp Tomsich
To make the Rockchip DM timer driver useful for the timing of bootstages, we need a few enhancements: - This implements timer_get_boot_us. - This avoids reinitialising the timer, if it has already been set up (e.g. by our TPL and SPL stages). Now, we have a single timebase ticking from TPL

[U-Boot] [PATCH 05/18] net: phy: micrel: Convert to livetree

2017-08-16 Thread Philipp Tomsich
Update the Micrel KSZ90x1 driver for a live tree. Signed-off-by: Philipp Tomsich --- drivers/net/phy/micrel_ksz90x1.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/phy/micrel_ksz90x1.c

[U-Boot] [PATCH 15/18] rockchip: gpio: convert to livetree

2017-08-16 Thread Philipp Tomsich
Update the Rockchip GPIO-bank driver to support a live tree. Signed-off-by: Philipp Tomsich --- drivers/gpio/rk_gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/rk_gpio.c b/drivers/gpio/rk_gpio.c index

[U-Boot] [PATCH 09/18] rockchip: clk: rk3368: Convert to livetree

2017-08-16 Thread Philipp Tomsich
Update the clock driver for the RK3368 to support a live device tree. Signed-off-by: Philipp Tomsich --- drivers/clk/rockchip/clk_rk3368.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/rockchip/clk_rk3368.c

[U-Boot] [PATCH 04/18] net: designware: Convert to livetree

2017-08-16 Thread Philipp Tomsich
Update the Designware Ethernet MAC driver to support a live device tree. Signed-off-by: Philipp Tomsich --- drivers/net/designware.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/net/designware.c

[U-Boot] [PATCH 03/18] dm: timer: handle being called before dm_root is ready

2017-08-16 Thread Philipp Tomsich
When used with bootstage recording, dm_timer_init may be called surprisingly early: i.e. before dm_root is ready. To deal with this case, we explicitly check for this condition and return -EAGAIN to the caller (refer to drivers/timer/rockchip_timer.c for a case where this is needed/used).

[U-Boot] [PATCH 01/18] bootstage: adjust Makefile to allow including bootstage in SPL, but not in TPL

2017-08-16 Thread Philipp Tomsich
For timing our bootstages on the RK3368, which has a minimal TPL (and where we consequently don't want to time the bootstages) and a full-featured SPL (where we can bootstage recording), we need to adjust the Makefile. Use the $(SPL_TPL_) macro in the Makefile for bootstage.o Signed-off-by:

[U-Boot] [PATCH 02/18] dm: timer: Convert to livetree

2017-08-16 Thread Philipp Tomsich
This updates dm_timer_init to support a live tree and deals with some fallout (i.e. the need to restructure the code such, that we don't need multiple discontinuous #if CONFIG_IS_ENABLED blocks). Signed-off-by: Philipp Tomsich ---

[U-Boot] [PATCH] rockchip: rk3399: spl: remove unused header inclusion

2017-08-16 Thread Philipp Tomsich
fdtdec.h is included, but not used in rk3399-board-spl.c: remove the '#include'-statement. Signed-off-by: Philipp Tomsich --- arch/arm/mach-rockchip/rk3399-board-spl.c | 1 - 1 file changed, 1 deletion(-) diff --git

Re: [U-Boot] [PATCH] ls1046aqds: update the defaule mtdparts

2017-08-16 Thread York Sun
On 08/08/2017 07:27 PM, Xiaowei Bao wrote: > Hi York, > > The default partition is mainly to facilitate the test staff to view the > partition information of the storage medium, And the jira ticket also carry > by the test staff, I am not sure if it need to push the opensource. So you agree we

Re: [U-Boot] [PATCH v2 00/19] add support for rk3066 platform.

2017-08-16 Thread Dr. Philipp Tomsich
Either will be fine for me: u-boot-rockchip/master is only one DTS fix ahead of u-boot/master. > On 16 Aug 2017, at 17:48, Paweł Jarosz wrote: > > Hi, > > > W dniu 16.08.2017 o 16:28, Dr. Philipp Tomsich pisze: >> Pawel, >> >> Could you rebase this onto the current

Re: [U-Boot] [PATCH] serial: ns16550: Enhancements to the RX interrupt buffer support

2017-08-16 Thread Stefan Roese
Hi Bin, On 16.08.2017 12:09, Bin Meng wrote: Hi Stefan, On Wed, Aug 16, 2017 at 5:55 PM, Stefan Roese wrote: Hi Bin, On 16.08.2017 11:45, Bin Meng wrote: On Tue, Aug 15, 2017 at 5:33 PM, Stefan Roese wrote: This patch changes the RX interrupt buffer support

Re: [U-Boot] [PATCH v2 00/19] add support for rk3066 platform.

2017-08-16 Thread Paweł Jarosz
Hi, W dniu 16.08.2017 o 16:28, Dr. Philipp Tomsich pisze: Pawel, Could you rebase this onto the current master (the SPL/TPL changes for the RK3368 are likely to have affected a few things) and resubmit? By master you mean u-boot-rockchip master or u-boot master? Cheers, Paweł Thanks,

Re: [U-Boot] [PATCH 3/4] x86: conga-qeval20-qa3-e3845: Select SERIAL_RX_BUFFER via Kconfig

2017-08-16 Thread Stefan Roese
Hi Bin, On 16.08.2017 17:37, Stefan Roese wrote: To support more input characters (longer stings pasted into the U-Boot prompt) without dropping, lets selects the recently added UART RX buffer for these boards. Signed-off-by: Stefan Roese Cc: Simon Glass Cc:

[U-Boot] [PATCH 1/4] Revert "serial: ns16550: Add RX interrupt buffer support"

2017-08-16 Thread Stefan Roese
This reverts commit 6822cf3ec7c8768b8727573b8f4b2cb3d870b881. As Bin Meng has tested and pointed out, we don't need the RX interrupt for the RX buffer support at all. Just reading all available characters into a buffer is sufficient to solve the problem with the dropped characters upon long lines

[U-Boot] [PATCH 2/4] serial: serial-uclass: Add generic serial RX buffer support

2017-08-16 Thread Stefan Roese
Pasting longer lines into the U-Boot console prompt sometimes leads to characters missing. One problem here is the small 16-byte FIFO of the legacy NS16550 UART, e.g. on x86 platforms. This patch now introduces a Kconfig option to enable RX buffer support for all DM based serial drivers. With

[U-Boot] [PATCH 3/4] x86: conga-qeval20-qa3-e3845: Select SERIAL_RX_BUFFER via Kconfig

2017-08-16 Thread Stefan Roese
To support more input characters (longer stings pasted into the U-Boot prompt) without dropping, lets selects the recently added UART RX buffer for these boards. Signed-off-by: Stefan Roese Cc: Simon Glass Cc: Bin Meng ---

[U-Boot] [PATCH 4/4] x86: dfi-bt700: Select SERIAL_RX_BUFFER via Kconfig

2017-08-16 Thread Stefan Roese
To support more input characters (longer stings pasted into the U-Boot prompt) without dropping, lets selects the recently added UART RX buffer for these boards. Signed-off-by: Stefan Roese Cc: Simon Glass Cc: Bin Meng ---

[U-Boot] Pull request, u-boot-tegra/master

2017-08-16 Thread Tom Warren
Tom, Please pull u-boot-tegra/master into U-Boot/master. Thanks! All Tegra builds are OK, and Stephen's automated test system reports that all tests pass. The following changes since commit 2d3c4ae350fe8c196698681ab9410733bf9017e0: Prepare v2017.09-rc2 (2017-08-14 20:02:11 -0400) are

Re: [U-Boot] rk3288: 32KB SPL size restriction

2017-08-16 Thread Dr. Philipp Tomsich
Jagan, > On 16 Aug 2017, at 15:12, Jagan Teki wrote: > > Hi Simon, > > On Mon, Aug 14, 2017 at 11:01 PM, Jagan Teki wrote: >> On Mon, Aug 14, 2017 at 10:03 AM, Jagan Teki >> wrote: >>> Hi Simon, >>> >>> On Mon,

Re: [U-Boot] rockchip: rk3399-firefly: update gmac parameter

2017-08-16 Thread Philipp Tomsich
> Update the tx_deday and rx_delay to match the timing for > rk3399-firefly board to improve the stability of gmac data > transfer. > > Signed-off-by: Kever Yang > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich

[U-Boot] [PATCH] vbe: Drop vbe_get_video_info()

2017-08-16 Thread Bin Meng
With DM video, this is not used any more. Drop it. Signed-off-by: Bin Meng --- drivers/pci/pci_rom.c | 41 - include/vbe.h | 2 -- 2 files changed, 43 deletions(-) diff --git a/drivers/pci/pci_rom.c b/drivers/pci/pci_rom.c

Re: [U-Boot] [PATCH v2 00/19] add support for rk3066 platform.

2017-08-16 Thread Dr. Philipp Tomsich
Pawel, Could you rebase this onto the current master (the SPL/TPL changes for the RK3368 are likely to have affected a few things) and resubmit? Thanks, Philipp. > On 11 Aug 2017, at 22:53, Paweł Jarosz wrote: > > This patch serie adds support for Rockchip RK3066

Re: [U-Boot] [U-Boot,v5,15/30] env: Drop common init() functions

2017-08-16 Thread Tom Rini
On Thu, Aug 03, 2017 at 12:22:02PM -0600, Simon Glass wrote: > Most of the init() implementations just use the default environment. > Adjust env_init_new() to do this automatically, and drop the redundant > code. > > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini

Re: [U-Boot] [U-Boot, v5, 30/30] env: Adjust the load() method to return an error

2017-08-16 Thread Tom Rini
On Thu, Aug 03, 2017 at 12:22:17PM -0600, Simon Glass wrote: > The load() methods have inconsistent behaviour on error. Some of them load > an empty default environment. Some load an environment containing an error > message. Others do nothing. > > As a step in the right direction, have the

Re: [U-Boot] [U-Boot, v5, 28/30] env: Rename some other getenv()-related functions

2017-08-16 Thread Tom Rini
On Thu, Aug 03, 2017 at 12:22:15PM -0600, Simon Glass wrote: > We are now using an env_ prefix for environment functions. Rename these > other functions as well, for consistency: > >getenv_vlan() >getenv_bootm_size() >getenv_bootm_low() >getenv_bootm_mapsize() >

Re: [U-Boot] [U-Boot, v5, 23/30] env: Rename common functions related to setenv()

2017-08-16 Thread Tom Rini
On Thu, Aug 03, 2017 at 12:22:10PM -0600, Simon Glass wrote: > We are now using an env_ prefix for environment functions. Rename these > commonly used functions, for consistency. Also add function comments in > common.h. > > Suggested-by: Wolfgang Denk > Signed-off-by: Simon Glass

Re: [U-Boot] [U-Boot, v5, 29/30] env: Adjust the get_char() method to return an int

2017-08-16 Thread Tom Rini
On Thu, Aug 03, 2017 at 12:22:16PM -0600, Simon Glass wrote: > In principle this can fail, e.g. if the index is out of range. Adjust the > driver signature to allow returning an error code. > > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini Applied

Re: [U-Boot] [U-Boot, v5, 24/30] env: Rename eth_setenv_enetaddr() to eth_env_set_enetaddr()

2017-08-16 Thread Tom Rini
On Thu, Aug 03, 2017 at 12:22:11PM -0600, Simon Glass wrote: > Rename this function for consistency with env_set(). > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature

Re: [U-Boot] [U-Boot,v5,19/30] env: Drop env_get_char_spec()

2017-08-16 Thread Tom Rini
On Thu, Aug 03, 2017 at 12:22:06PM -0600, Simon Glass wrote: > We only have a single implementation of this function now and it is called > env_get_char(). Drop the old function and the weak version. > > Reviewed-by: Tom Rini > Signed-off-by: Simon Glass

Re: [U-Boot] [U-Boot, v5, 26/30] env: Rename getenv_hex(), getenv_yesno(), getenv_ulong()

2017-08-16 Thread Tom Rini
On Thu, Aug 03, 2017 at 12:22:13PM -0600, Simon Glass wrote: > We are now using an env_ prefix for environment functions. Rename these > for consistency. Also add function comments in common.h. > > Suggested-by: Wolfgang Denk > Signed-off-by: Simon Glass

Re: [U-Boot] [U-Boot, v5, 21/30] env: Drop saveenv() in favour of env_save()

2017-08-16 Thread Tom Rini
On Thu, Aug 03, 2017 at 12:22:08PM -0600, Simon Glass wrote: > Use the env_save() function directly now that there is only one > implementation of saveenv(). > > Signed-off-by: Simon Glass > Reviewed-by: Wolfgang Denk > Reviewed-by: Tom Rini

Re: [U-Boot] [U-Boot,v5,18/30] env: Drop env_init_new()

2017-08-16 Thread Tom Rini
On Thu, Aug 03, 2017 at 12:22:05PM -0600, Simon Glass wrote: > Now that env_init() is only defined once we can drop the env_init_new() > name and just use env_init(). > > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini Applied to u-boot/master,

Re: [U-Boot] [U-Boot, v5, 27/30] env: Rename eth_getenv_enetaddr() to eth_env_get_enetaddr()

2017-08-16 Thread Tom Rini
On Thu, Aug 03, 2017 at 12:22:14PM -0600, Simon Glass wrote: > Rename this function for consistency with env_get(). > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature

Re: [U-Boot] [U-Boot, v5, 25/30] env: Rename getenv/_f() to env_get()

2017-08-16 Thread Tom Rini
On Thu, Aug 03, 2017 at 12:22:12PM -0600, Simon Glass wrote: > We are now using an env_ prefix for environment functions. Rename these > two functions for consistency. Also add function comments in common.h. > > Quite a few places use getenv() in a condition context, provoking a > warning from

Re: [U-Boot] [U-Boot,v5,16/30] env: Drop the env_name_spec global

2017-08-16 Thread Tom Rini
On Thu, Aug 03, 2017 at 12:22:03PM -0600, Simon Glass wrote: > Add a name to the driver and use that instead of the global variable > declared by each driver. > > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! --

Re: [U-Boot] [U-Boot, v5, 04/30] env: common: Make env_get_addr/get_char_memory() static

2017-08-16 Thread Tom Rini
On Thu, Aug 03, 2017 at 12:21:51PM -0600, Simon Glass wrote: > These functions are not used outside this file. Make them static and order > them to avoid forward declarations. > > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini Applied to

Re: [U-Boot] [U-Boot, v5, 12/30] env: Convert CONFIG_ENV_IS_IN... to a choice

2017-08-16 Thread Tom Rini
On Thu, Aug 03, 2017 at 12:21:59PM -0600, Simon Glass wrote: > At present we support multiple environment drivers but there is not way to > select between them at run time. Also settings related to the position and > size of the environment area are global (i.e. apply to all locations). > >

Re: [U-Boot] [U-Boot,v5,17/30] env: Drop unused env_ptr variables

2017-08-16 Thread Tom Rini
On Thu, Aug 03, 2017 at 12:22:04PM -0600, Simon Glass wrote: > This variable is declared as a global in most environment location > drivers. But it is not used outside the drivers and most of the > declarations are unnecessary. > > Also some drivers call free() on env_ptr which seems wrong since

Re: [U-Boot] [U-Boot, v5, 08/30] env: common: Drop env_get_char_memory()

2017-08-16 Thread Tom Rini
On Thu, Aug 03, 2017 at 12:21:55PM -0600, Simon Glass wrote: > This function is the same as env_get_char_spec() apart from dropping the > brackets. Drop the brackets from env_get_char_spec() and use that instead > of env_get_char_memory(). > > Signed-off-by: Simon Glass >

Re: [U-Boot] [U-Boot, v5, 20/30] env: Drop env_relocate_spec() in favour of env_load()

2017-08-16 Thread Tom Rini
On Thu, Aug 03, 2017 at 12:22:07PM -0600, Simon Glass wrote: > This is a strange name for a function that loads the environment. There is > now only one implementation of this function, so use the new env_load() > function directly instead. > > Signed-off-by: Simon Glass >

Re: [U-Boot] [U-Boot, v5, 14/30] env: Switch over to use environment location drivers

2017-08-16 Thread Tom Rini
On Thu, Aug 03, 2017 at 12:22:01PM -0600, Simon Glass wrote: > Move over to use a the master implementation of the location drivers, with > each method calling out to the appropriate driver. > > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini Applied

Re: [U-Boot] [U-Boot, v5, 06/30] env: common: Factor out the common env_valid check

2017-08-16 Thread Tom Rini
On Thu, Aug 03, 2017 at 12:21:53PM -0600, Simon Glass wrote: > The check for gd->env_valid is used in both the 'if' and 'else' part of > env_get_char(). Move it into that function instead for simplicity. Drop > that code from the two leaf functions. > > Signed-off-by: Simon Glass

Re: [U-Boot] [U-Boot,v5,22/30] env: Rename setenv() to env_set()

2017-08-16 Thread Tom Rini
On Thu, Aug 03, 2017 at 12:22:09PM -0600, Simon Glass wrote: > We are now using an env_ prefix for environment functions. Rename setenv() > for consistency. Also add function comments in common.h. > > Suggested-by: Wolfgang Denk > Signed-off-by: Simon Glass

  1   2   >