Re: [U-Boot] [PATCH v4 09/19] sunxi: disable direct MMC environment

2018-03-14 Thread Maxime Ripard
On Wed, Mar 14, 2018 at 01:57:05AM +, Andre Przywara wrote: > Since the dawn of time for the Allwinner support in mainline U-Boot > we store the environment to the SD card and write directly at > 544KB from the beginning of the device. This leads to problems when > the U-Boot proper image

Re: [U-Boot] [PATCH 1/1] MAINTAINERS: ARM SAMSUNG: remove invalid paths

2018-03-14 Thread Minkyu Kang
2018년 3월 13일 (화) 07:17, Heinrich Schuchardt 님이 작성: > Remove non-existing directories. > > Signed-off-by: Heinrich Schuchardt > --- > MAINTAINERS | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/MAINTAINERS b/MAINTAINERS > index

Re: [U-Boot] [PATCH v4 11/19] Revert "sunxi: Pine64: temporarily remove extra Pine64 non-plus DT"

2018-03-14 Thread Maxime Ripard
On Wed, Mar 14, 2018 at 01:57:07AM +, Andre Przywara wrote: > Now with the MMC environment gone, we have enough space to accomodate > the Pine64 "non-plus" .dtb again. > > This reverts commit 47952b8e42c2790150e16d3d4235b3a1ee0ba9bb. > > Signed-off-by: Andre Przywara

Re: [U-Boot] [PATCH v3 1/2] i.MX6: nand: add nandbcb update command

2018-03-14 Thread Stefan Agner
Hi, On March 13, 2018 4:51:12 PM GMT+01:00, Jagan Teki wrote: >On Tue, Mar 13, 2018 at 9:16 PM, Fabio Estevam >wrote: >> Hi Jagan, >> >> On Tue, Mar 13, 2018 at 12:38 PM, Jagan Teki > wrote: >> >>> Sorry, I'm just writing

[U-Boot] net: fec_mxc: multiple calls to fec_mii_setspeed()

2018-03-14 Thread Yasushi SHOJI
Hello, I just noticed that in fec_mxc.c, fec_mii_setspeed() is called twice if you are calling fecmxc_initialize_multi(), once from fec_get_miibus(), and the other from fec_probe(). Is this intended? If so, would you mind to elaborate a bit? Thanks, -- yashi

[U-Boot] [PATCH] tools: xilinx: Fix zynq/zynqmp image recognition

2018-03-14 Thread Michal Simek
There is an issue to recognize zynq or zynqmp image because header checking is just the same. That's why zynqmp images are recognized as zynq one. Check unused fields which are initialized to zero in zynq format (__reserved1 0x38 and __reserved2 0x44) which are initialized for zynqmp. This should

Re: [U-Boot] [U-Boot, v1, 1/2] rockchip: pinctrl: rk3399: fix GPIO2B1 and GPIO2B2 shift value

2018-03-14 Thread Philipp Tomsich
> From: Philipp Tomsich > > The shift values for GPIO2B1 and GPIO2B2 had in fact referred to > GPIO2B0 and GPIO2B1, respectively. This substitutes the correct > values. > > Signed-off-by: Philipp Tomsich >

Re: [U-Boot] [U-Boot, v1, 2/2] rockchip: pinctrl: rk3399: add support for I2C[123467]

2018-03-14 Thread Philipp Tomsich
> From: Philipp Tomsich > > This adds support for the (to date unsupported) I2C controllers 1~4 > and 6~7 (i.e. now all controllers except I2C5, which is not accessible > on the RK3399-Q7, are supported by pinctrl). > > Signed-off-by: Philipp Tomsich

[U-Boot] [PATCH v1 1/2] imx: board: Add support for the K+P's kp_imx6q_tpc board

2018-03-14 Thread Lukasz Majewski
This commit provides support for Kieback & Peter GmbH IMX6Q based TPC board. Signed-off-by: Lukasz Majewski --- arch/arm/mach-imx/mx6/Kconfig | 11 ++ board/k+p/kp_imx6q_tpc/Kconfig| 12 ++ board/k+p/kp_imx6q_tpc/MAINTAINERS| 6 +

[U-Boot] [PATCH v1 2/2] boot: script: The boot.scr file for K+P's boards

2018-03-14 Thread Lukasz Majewski
By using this file one can avoid cluttering .h file with u-boot HUSH commands necessary for booting target device. With such approach the commands are stored only in one place and can be reused if needed. Signed-off-by: Lukasz Majewski --- board/k+p/bootscripts/tpcboot.cmd |

Re: [U-Boot] [PATCH 1/1] configs: sunxi: enable BLK, DM_MMC for Bananapi

2018-03-14 Thread Maxime Ripard
On Tue, Mar 13, 2018 at 08:09:18PM +0100, Heinrich Schuchardt wrote: > On 03/13/2018 07:41 PM, Maxime Ripard wrote: > > Hi, > > > > On Tue, Mar 13, 2018 at 06:37:23PM +0100, Heinrich Schuchardt wrote: > >> doc/driver-model/MIGRATION.txt requires to move block drivers to the > >> the driver model

Re: [U-Boot] [PATCH 1/2] ARM: dts: zynq: Update dts for Z-turn board

2018-03-14 Thread Michal Simek
On 13.3.2018 22:21, Alexander Graf wrote: > > > On 13.03.18 21:35, tos...@gmail.com wrote: >> From: Anton Gerasimov >> >> Delete devices implemented in PL, stylistic changes. >> >> Signed-off-by: Anton Gerasimov >> --- >> arch/arm/dts/zynq-zturn-myir.dts |

[U-Boot] [PATCH 00/14] at91: Add boards with OF_CONTROL/DM/DM_SPI

2018-03-14 Thread Jagan Teki
This series add support for missing at91 board with - OF_CONTROL - DM - DM_SPI - Drop non-dm code from atmel_spi Boards like taurus, vinco and ma5d4evk need move GPIO code into drivers instead of configuring them in board file. request to board maintainers to do this job. Jagan Teki (14): spi:

[U-Boot] [PATCH 01/14] spi: atmel: Add ifdef for DM_GPIO code

2018-03-14 Thread Jagan Teki
Few boards are configuring gpio directly from board instead using drivers/gpio so add ifdef for DM_GPIO to compatible for both the cases. Signed-off-by: Jagan Teki --- drivers/spi/atmel_spi.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff

Re: [U-Boot] [U-Boot, v2, 1/2] common/memsize.c: prepare get_ram_size update

2018-03-14 Thread Tom Rini
On Thu, Jan 25, 2018 at 06:07:45PM +0100, Patrick Delaunay wrote: > Save the content of the base address in a new variable > in stack (save_base) to prepare restore this content. > > This patch don't modified code behavior and stack usage. > > Signed-off-by: Patrick Delaunay

Re: [U-Boot] [U-Boot, v1, 4/4] ARM: dts: dra7x: Make pinctrl and IOdelays for MMC2 available in SPL

2018-03-14 Thread Tom Rini
On Tue, Feb 27, 2018 at 05:05:50PM +0100, Jean-Jacques Hiblot wrote: > The SPL can't use high speed MMC modes if the associated pinctrl and > IOdelays are described in the DTS. > Make them available in SPL by tagging the nodes with 'u-boot,dm-spl;' > > Signed-off-by: Jean-Jacques Hiblot

Re: [U-Boot] [U-Boot,1/2] test/py: add MMC/SD block read test

2018-03-14 Thread Tom Rini
On Tue, Feb 20, 2018 at 12:51:54PM -0700, Stephen Warren wrote: > From: Stephen Warren > > Add a standalone MMC block read test. This allows direct testing of MMC > access rather than relying on doing so as a side-effect of e.g. DFU or > UMS testing, which may not be enabled

Re: [U-Boot] [U-Boot, v1, 3/4] configs: dra7xx_evm: Enable support for the HS200 mmc mode in the SPL

2018-03-14 Thread Tom Rini
On Tue, Feb 27, 2018 at 05:05:49PM +0100, Jean-Jacques Hiblot wrote: > Beside enabling the support for HS200 in mmc core, enabling the HS200 > support in the SPL requires multi-dtb support in the SPL because pinctrl > and IOdelays vary across SOCs. > > Also we need to make sure that the pinctrl

Re: [U-Boot] [U-Boot,7/7] clk: clk_stm32f: Add DSI clock support

2018-03-14 Thread Tom Rini
On Thu, Feb 08, 2018 at 05:20:51PM +0100, patrice.chot...@st.com wrote: > From: Patrice Chotard > > DSI clock is available on STM32F769-disco and > STM32F469-disco board. > > Signed-off-by: Yannick Fertre > Signed-off-by: Patrice Chotard

Re: [U-Boot] [U-Boot, v2, 2/2] disk: part: use common api to lookup part driver

2018-03-14 Thread Tom Rini
On Sat, Feb 10, 2018 at 05:55:38PM +0800, Kever Yang wrote: > Do not need to scan disk every time when we get part info > by name. > > Signed-off-by: Kever Yang Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot, 1/3] cmd: part: Allow passing partition name to start and size

2018-03-14 Thread Tom Rini
On Mon, Feb 26, 2018 at 11:17:59PM +0200, Sam Protsenko wrote: > Allow passing the partition name to "part start" and "part size" > commands, so we can avoid magic numbers in the environment. > > Consider one real use-case: in include/environment/ti/boot.h we have > commands like these: > >

Re: [U-Boot] [U-Boot, 2/3] cmd: part: Extract common code to separate function

2018-03-14 Thread Tom Rini
On Mon, Feb 26, 2018 at 11:18:00PM +0200, Sam Protsenko wrote: > Refactor the code for "part start" and "part size" commands to avoid > code duplication. > > Signed-off-by: Sam Protsenko > Reviewed-by: Lukasz Majewski Applied to u-boot/master,

Re: [U-Boot] [U-Boot, v1, 1/4] ARM: dts: dra76x: create a common file with MMC/SD IOdelay data

2018-03-14 Thread Tom Rini
On Tue, Feb 27, 2018 at 05:05:47PM +0100, Jean-Jacques Hiblot wrote: > Add a common device-tree include file with MMC/SD IOdelay data > for DRA76x SoC based on the linux DTSI file. > > In the most common case, IOdelay data available in datamanual > can directly be used. This file caters to that

[U-Boot] [PATCH 0/6] Update ohci/ehci-generic drivers

2018-03-14 Thread patrice.chotard
From: Patrice Chotard This series updates ohci-generic and ehci-generic drivers by: _ Add generic_phy_power_on() and generic_phy_power_off() needed to work with phy driver which implement these callbacks. _ Factorize PHY operations. _ Replace pr_err() with

[U-Boot] [PATCH 5/6] usb: ohci-generic: factorize PHY operation

2018-03-14 Thread patrice.chotard
From: Patrice Chotard Factorize PHY get/init/poweron and PHY poweroff/exit operations into separate function, it simplify the error path. Signed-off-by: Patrice Chotard --- drivers/usb/host/ohci-generic.c | 99

[U-Boot] [PATCH 4/6] usb: ohci-generic: handle phy power on/off

2018-03-14 Thread patrice.chotard
From: Patrice Chotard Add generic_phy_power_on() and generic_phy_power_off() calls to switch ON/OFF phy during probe and remove functions. Signed-off-by: Patrice Chotard --- drivers/usb/host/ohci-generic.c | 17 + 1 file changed,

[U-Boot] [RFC 0/7] Beginning of migration of MPC8xx to DM model

2018-03-14 Thread Christophe Leroy
This serie is the beginning of MPC8xx migration to DM model. Please comment and help me get the good direction. Christophe Leroy (7): powercp: mpc8xx: move commproc.h powerpc: mpc8xx: redistribute data in CPM dpram board: MCR3000: properly setup initial RAM board: MCR3000: Activate

[U-Boot] [RFC 1/7] powercp: mpc8xx: move commproc.h

2018-03-14 Thread Christophe Leroy
include/commproc.h is dedicated to the 8xx, rename it cpm_8xx.h and move it into arch/powerpc/include/asm Signed-off-by: Christophe Leroy --- arch/powerpc/cpu/mpc8xx/cpu.c| 2 +- arch/powerpc/cpu/mpc8xx/cpu_init.c | 2 +-

[U-Boot] [RFC 7/7] board: MCR3000: use new DM watchdog

2018-03-14 Thread Christophe Leroy
Signed-off-by: Christophe Leroy --- arch/powerpc/dts/mcr3000.dts | 3 +++ board/cssi/MCR3000/MCR3000.c | 19 +++ configs/MCR3000_defconfig| 2 ++ include/configs/MCR3000.h| 1 + 4 files changed, 25 insertions(+) diff --git

[U-Boot] [PATCH v2 6/7] bootcount: display5: spl: Extend DISPLAY5 board SPL to support bootcount checking

2018-03-14 Thread Lukasz Majewski
This patch is necessary for providing basic bootcount checking in the case of using "falcon" boot mode in that board. It forces u-boot proper boot, when we exceed the number of errors. Signed-off-by: Lukasz Majewski --- Changes in v2: - Remove bootcount_init() from SPL specific

[U-Boot] [PATCH v2 4/7] bootcount: u-boot: Do not increment bootcount if already done in SPL

2018-03-14 Thread Lukasz Majewski
If the CONFIG_SPL_BOOTCOUNT_LIMIT is defined, the bootcount variable is already incremented after each boot attempt. For that reason we shall not increment it again in u-boot. Signed-off-by: Lukasz Majewski --- Changes in v2: - None common/autoboot.c | 2 ++ 1 file changed, 2

[U-Boot] [PATCH v2 0/7] Provide SPL support for bootcount (in the case of using falcon boot mode)

2018-03-14 Thread Lukasz Majewski
This patch series provides support for controlling bootcount limits in SPL. It also enables this feature on display5 board to present usage patterns. This patch has been applied on top of u-boot/master: SHA1 (tag): v2018.03 Changes in v2: - New patch - None - None - New patch - as suggested by

[U-Boot] [PATCH v2 5/7] bootcount: spl: Extend SPL to support bootcount incrementation

2018-03-14 Thread Lukasz Majewski
This patch adds support for incrementation of the bootcount in SPL. Such feature is necessary when we do want to use this feature with 'falcon' boot mode (which loads OS directly in SPL). Signed-off-by: Lukasz Majewski --- Changes in v2: - New patch - as suggested by Stefan

[U-Boot] [PATCH v3 09/11] sunxi: Add DRAM_SUN8I_A23 kconfig entry

2018-03-14 Thread Jagan Teki
Add proper and simple kconfig option for dram_sun8i_a23.c instead of using MACH type on Makefile. Signed-off-by: Jagan Teki --- arch/arm/mach-sunxi/Kconfig | 7 +++ arch/arm/mach-sunxi/Makefile | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v3 08/11] sunxi: Add DRAM_SUN9I kconfig entry

2018-03-14 Thread Jagan Teki
Add proper and simple kconfig option for dram_sun9i.c instead of using MACH type on Makefile. Signed-off-by: Jagan Teki --- arch/arm/mach-sunxi/Kconfig | 7 +++ arch/arm/mach-sunxi/Makefile | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v3 06/11] sunxi: add DRAM_SUN6I kconfig

2018-03-14 Thread Jagan Teki
Add proper and simple kconfig option for dram_sun6i.c instead of using MACH type on Makefile. Signed-off-by: Jagan Teki --- arch/arm/mach-sunxi/Kconfig | 7 +++ arch/arm/mach-sunxi/Makefile | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v3 02/11] sunxi: Add I2C_SUN6I_P2WI kconfig entry

2018-03-14 Thread Jagan Teki
Add simple and meaningful kconfig option for p2wi.c instead of using MACH type on Makefile. p2wi is an I2C controller, so used the same on kconfig definition. Signed-off-by: Jagan Teki --- arch/arm/mach-sunxi/Kconfig | 12 arch/arm/mach-sunxi/Makefile

[U-Boot] [PATCH 04/14] at91: taurus: Enable DM_SPI

2018-03-14 Thread Jagan Teki
Enable DM_SPI for atmel SPI driver on taurus board. Kept few functions related to non-dm and gpio on board files for reference and will be remove once code moved to relevant drivers. Cc: Heiko Schocher Signed-off-by: Jagan Teki ---

[U-Boot] [PATCH 02/14] at91: gurnard: Enable DM_SPI

2018-03-14 Thread Jagan Teki
Enable DM_SPI for atmel SPI driver on gurnard board. Cc: Simon Glass Signed-off-by: Jagan Teki --- arch/arm/mach-at91/Kconfig| 1 + board/bluewater/gurnard/gurnard.c | 20 2 files changed, 1 insertion(+), 20

[U-Boot] [PATCH 03/14] configs: gurnard: Move CONFIG_ATMEL_SPI to defconfigs

2018-03-14 Thread Jagan Teki
Now CONFIG_ATMEL_SPI is defined in Kconfig, so move the same into defconfig file. Cc: Simon Glass Signed-off-by: Jagan Teki --- configs/gurnard_defconfig | 1 + include/configs/snapper9g45.h | 2 -- 2 files changed, 1 insertion(+), 2

[U-Boot] [PATCH 12/14] spi: atmel: Drop non-dm code

2018-03-14 Thread Jagan Teki
All board configs are now enabled DM_SPI for SPL and U-Boot proper, so now its time to drop non-dm code. Signed-off-by: Jagan Teki --- drivers/spi/atmel_spi.c | 201 --- drivers/spi/atmel_spi.h | 16

[U-Boot] [PATCH 13/14] spi: atmel: Drop atmel_spi.h

2018-03-14 Thread Jagan Teki
atmel_spi.h has register offsets, and atmel_spi_slave structure, move it into .c file for better readability and drop atmel_spi.h Signed-off-by: Jagan Teki --- drivers/spi/atmel_spi.c | 97 - drivers/spi/atmel_spi.h |

[U-Boot] [PATCH 10/14] at91: ma5d4evk: Enable DM_SPI

2018-03-14 Thread Jagan Teki
AT91 ma5d4evk board uses atmel spi driver, enable DM_SPI to use dm functionality. Kept few functions related to non-dm and gpio on board files for reference and will be remove once code moved to relevant drivers. Signed-off-by: Jagan Teki ---

Re: [U-Boot] [U-Boot,6/6] board: stm32: switch to DM STM32 timer

2018-03-14 Thread Tom Rini
On Wed, Feb 07, 2018 at 10:44:50AM +0100, patrice.chot...@st.com wrote: > From: Patrice Chotard > > Use available DM stm32_timer driver instead of dedicated > mach-stm32/stm32fx/timer.c. > > Remove all defines or files previously used for timer usage in >

Re: [U-Boot] [U-Boot, 2/2] configs: am335x_boneblack: Enable fastboot flash capability

2018-03-14 Thread Tom Rini
On Tue, Feb 27, 2018 at 11:45:04PM +0200, Sam Protsenko wrote: > Signed-off-by: Sam Protsenko > Acked-by: Lukasz Majewski > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [U-Boot] [PATCH v3 7/7] test/py: add spi_flash tests

2018-03-14 Thread Michal Simek
On 14.3.2018 03:03, Liam Beguin wrote: > Add basic tests for the spi_flash subsystem. > > Signed-off-by: Liam Beguin > --- > test/py/tests/test_sf.py | 217 > +++ > 1 file changed, 217 insertions(+) > create mode 100644

[U-Boot] [PATCH 3/6] usb: ehci-generic: replace pr_err() by dev_err()

2018-03-14 Thread patrice.chotard
From: Patrice Chotard As we get access to struct udevice, use dev_err() instead of pr_err(). Signed-off-by: Patrice Chotard --- drivers/usb/host/ehci-generic.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git

[U-Boot] [PATCH 6/6] usb: ohci-generic: replace pr_err() by dev_err()

2018-03-14 Thread patrice.chotard
From: Patrice Chotard As we get access to struct udevice, use dev_err() instead of pr_err(). Signed-off-by: Patrice Chotard --- drivers/usb/host/ohci-generic.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git

[U-Boot] [RFC 3/7] board: MCR3000: properly setup initial RAM

2018-03-14 Thread Christophe Leroy
In order to use CONFIG_DM, some initial RAM is needed for malloc() Signed-off-by: Christophe Leroy --- arch/powerpc/cpu/mpc8xx/cpu_init.c | 2 +- arch/powerpc/cpu/mpc8xx/start.S| 5 +++-- include/configs/MCR3000.h | 7 --- 3 files changed, 8

[U-Boot] [RFC 6/7] drivers: watchdog: add a driver for the MPC8xx watchdog

2018-03-14 Thread Christophe Leroy
This patch adds a DM driver for the MPC8xx watchdog. Basically, the watchdog is enabled by default from the start and SYPCR register has to be writen once to set the timeout and/or deactivate the watchdog. Once written, it cannot be written again. It means that wdt_stop() can be called before

[U-Boot] [PATCH 1/6] usb: ehci-generic: handle phy power on/off

2018-03-14 Thread patrice.chotard
From: Patrice Chotard Add generic_phy_power_on() and generic_phy_power_off() calls to switch ON/OFF phy during probe and remove functions. Signed-off-by: Christophe Kerello Signed-off-by: Patrice Chotard ---

[U-Boot] [PATCH 2/6] usb: ehci-generic: factorize PHY operation

2018-03-14 Thread patrice.chotard
From: Patrice Chotard Factorize PHY get/init/poweron and PHY poweroff/exit operations into separate function, it simplify the error path. Signed-off-by: Patrice Chotard --- drivers/usb/host/ehci-generic.c | 99

Re: [U-Boot] [PATCH v2 04/10] phy: Add a new driver for OMAP's USB2 PHYs

2018-03-14 Thread Patrice CHOTARD
Hi Jean Jacques On 03/14/2018 05:18 PM, Jean-Jacques Hiblot wrote: > This drivers supports the USB2 PHY found on omap5 and dra7 SOCs. > > Signed-off-by: Jean-Jacques Hiblot > > --- > > Changes in v2: > - omap-usb2-phy: Implement power_on and power_off callbacks > >

[U-Boot] [RFC 2/7] powerpc: mpc8xx: redistribute data in CPM dpram

2018-03-14 Thread Christophe Leroy
Some malloc memory is needed at startup for DM model. Lets reorganise the use of the CPM dpram. The MPC866/885 dpram, we have 8kbytes dual port RAM, which is usable as: IMMR + 0x2000..0x2800: BD/Data/Microcode IMMR + 0x2800..0x2e00: BD/Data IMMR + 0x2e00..0x3800: BD/Data/Microcode IMMR +

[U-Boot] [RFC 4/7] board: MCR3000: Activate CONFIG_DM and CONFIG_OF_CONTROL

2018-03-14 Thread Christophe Leroy
Add mcr3000 device tree and activate CONFIG_DM and CONFIG_OF_CONTROL Signed-off-by: Christophe Leroy --- arch/powerpc/dts/Makefile | 16 arch/powerpc/dts/mcr3000.dts | 12 board/cssi/MCR3000/u-boot.lds | 6 ++

[U-Boot] [RFC 5/7] powerpc: mpc8xx: move watchdog into drivers/watchdog

2018-03-14 Thread Christophe Leroy
In preparation of DM watchdog, move basic actions into drivers/watchdog Signed-off-by: Christophe Leroy --- arch/powerpc/Kconfig| 2 +- arch/powerpc/cpu/mpc8xx/Kconfig | 4 arch/powerpc/cpu/mpc8xx/cpu.c | 13 - drivers/watchdog/Makefile

Re: [U-Boot] efi_loader: Allow width smaller than buffer stride in efi_gop Blt()

2018-03-14 Thread Heinrich Schuchardt
On 03/14/2018 04:31 AM, Ivan Gorinov wrote: > Current implementation of Blt() in EFI_GRAPHICS_OUTPUT_PROTOCOL > assumes the memory buffer stride (number of bytes in a row) > always matches the rectangle Width, ignoring non-zero Delta. > > Signed-off-by: Ivan Gorinov > ---

[U-Boot] [PATCH v2 2/7] bootcount: Add include guards into bootcount.h file

2018-03-14 Thread Lukasz Majewski
Signed-off-by: Lukasz Majewski --- Changes in v2: - New patch include/bootcount.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/bootcount.h b/include/bootcount.h index 06fb4d3578..e3b3f7028e 100644 --- a/include/bootcount.h +++ b/include/bootcount.h @@ -4,6

[U-Boot] [PATCH v2 3/7] bootcount: Add function wrappers to handle bootcount increment and error checking

2018-03-14 Thread Lukasz Majewski
Those two functions can be used to provide easy bootcount management. Signed-off-by: Lukasz Majewski --- Changes in v2: - None include/bootcount.h | 25 + 1 file changed, 25 insertions(+) diff --git a/include/bootcount.h b/include/bootcount.h index

[U-Boot] [PATCH v2 1/7] bootcount: spl: Enable bootcount support in SPL

2018-03-14 Thread Lukasz Majewski
New, SPL related config option - CONFIG_SPL_BOOTCOUNT_LIMIT has been added to allow drivers/bootcount code re-usage in SPL. This code is necessary to use and setup bootcount in SPL in the case of falcon boot mode. Signed-off-by: Lukasz Majewski --- Changes in v2: None

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

2018-03-14 Thread Tom Rini
On Wed, Mar 14, 2018 at 07:32:07PM +0530, Jagan Teki wrote: > Hi Tom, > > Please pull this PR. > > thanks, > Jagan. > > The following changes since commit f95ab1fb6e37f0601f397091bb011edf7a98b890: > > Prepare v2018.03 (2018-03-13 08:02:19 -0400) > > are available in the Git repository at:

[U-Boot] [PATCH v2 7/7] bootcount: display5: config: Enable boot count feature in the display5 board

2018-03-14 Thread Lukasz Majewski
The boot count is enabled in both SPL and proper u-boot. Signed-off-by: Lukasz Majewski --- Changes in v2: - None configs/display5_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/configs/display5_defconfig b/configs/display5_defconfig index

[U-Boot] [PATCH] ARM: uniphier: dts: sync with Linux 4.16-rc5

2018-03-14 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- arch/arm/dts/uniphier-ld11.dtsi| 3 +++ arch/arm/dts/uniphier-ld4.dtsi | 21 + arch/arm/dts/uniphier-pro4-ref.dts | 4 arch/arm/dts/uniphier-pro4.dtsi| 25 +

[U-Boot] [PATCH v4 0/7] add inital SF tests

2018-03-14 Thread Liam Beguin
Hi all, This is the inital step to adding tests for the SF subsystem plus very minor fixes. It is based on work I found on the mailing list[1]. For now, it doesn't do much but I plan on adding code to reset the flash to its initial state (based on an env flag) and more code to test the `sf

[U-Boot] [PATCH v4 1/7] spi: spi_flash: do not fail silently on bad user input

2018-03-14 Thread Liam Beguin
Make sure the user is notified instead of silently returning an error. Signed-off-by: Liam Beguin Reviewed-by: Stephen Warren --- drivers/mtd/spi/spi_flash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v4 5/7] test/py: do not import pytest multiple times

2018-03-14 Thread Liam Beguin
Signed-off-by: Liam Beguin Reviewed-by: Stephen Warren --- test/py/u_boot_utils.py | 1 - 1 file changed, 1 deletion(-) diff --git a/test/py/u_boot_utils.py b/test/py/u_boot_utils.py index 9acb92ddc448..64584494e463 100644 --- a/test/py/u_boot_utils.py

[U-Boot] [PATCH v4 3/7] test/py: README: fix typo

2018-03-14 Thread Liam Beguin
Fix a minor typo causing vim (and possibly other) to get confused with coloring. Signed-off-by: Liam Beguin Reviewed-by: Stephen Warren --- test/py/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/py/README.md

[U-Boot] [PATCH v4 4/7] test/py: README: add HOSTNAME to PYTHONPATH

2018-03-14 Thread Liam Beguin
As opposed to PATH, HOSTNAME is not appended to PYTHONPATH automatically. Lets add it to the examples to make it more obvious to new users. Signed-off-by: Liam Beguin Reviewed-by: Stephen Warren --- test/py/README.md | 4 ++-- 1 file changed, 2

[U-Boot] [PATCH] davinci: omapl138_lcdk: fix PLL0 frequency

2018-03-14 Thread David Lechner
commit 1601dd97edc6 ("davinci: omapl138_lcdk: increase PLL0 frequency") changed the PLL0 frequency to 456MHz, which is needed for the LCDC IP block. However, in doing so, it caused the PLLOUT clock to be outside of the allowable specifications given in the OMAP-L138 data sheet. (It says PLLOUT

[U-Boot] [PATCH 2/3] riscv: dts: AE250 support sd High-Speed mode

2018-03-14 Thread Andes
From: Rick Chen Enable High-Speed mode with cap-sd-highspeed in dts. Signed-off-by: Rick Chen Signed-off-by: Rick Chen --- arch/riscv/dts/ae250.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/dts/ae250.dts

[U-Boot] [PATCH 3/3] nds32: dts: AG101P support sd High-Speed mode

2018-03-14 Thread Andes
From: Rick Chen Enable High-Speed mode with cap-sd-highspeed in dts Signed-off-by: Rick Chen Signed-off-by: Rick Chen --- arch/nds32/dts/ag101p.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/nds32/dts/ag101p.dts

[U-Boot] [PATCH 1/3] mmc: ftsdc010: Support High-Speed mode

2018-03-14 Thread Andes
From: Rick Chen ftsdc010 dm driver has been disable High-Speed mode as default to work around Andes AE3XX platform's problem, because of it does not support High-Speed mode in commit id 73cd56b2df213c629191139e5c6705e069b6214f. But other platforms or SoCs maybe support this

[U-Boot] [PATCH v4 6/7] test/py: add generic CRC32 function

2018-03-14 Thread Liam Beguin
Add a generic function which can be used to compute the CRC32 value of a region of RAM. Signed-off-by: Liam Beguin Reviewed-by: Stephen Warren --- test/py/u_boot_utils.py | 23 +++ 1 file changed, 23 insertions(+) diff --git

[U-Boot] [PATCH v4 7/7] test/py: add spi_flash tests

2018-03-14 Thread Liam Beguin
Add basic tests for the spi_flash subsystem. Signed-off-by: Liam Beguin Reviewed-by: Stephen Warren --- test/py/tests/test_sf.py | 218 +++ 1 file changed, 218 insertions(+) create mode 100644

[U-Boot] [PATCH v4 2/7] cmd: sf: fix map_physmem check

2018-03-14 Thread Liam Beguin
Make sure 0x00 is a valid address to read to. If `addr` is 0x00 then map_physmem() will return 0 which should be a valid address. Signed-off-by: Liam Beguin Reviewed-by: Stephen Warren --- cmd/sf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [U-Boot] [PATCH v4 7/7] test/py: add spi_flash tests

2018-03-14 Thread Stephen Warren
On 03/14/2018 05:15 PM, Liam Beguin wrote: Add basic tests for the spi_flash subsystem. Signed-off-by: Liam Beguin Reviewed-by: Stephen Warren It's useful if you put a brief description of what changed between patch versions below the --- line so

[U-Boot] U-boot Hush Environment

2018-03-14 Thread Duncan Hare
In the past the Hush shell would print a variable when edited, and on could back arrow (move position) or backspace (delete characters). Currently is does not print the command on edit, and if one hits carriage return the variable is deleted. Is this an enhancement, or do I have the

Re: [U-Boot] [PATCH v4 7/7] test/py: add spi_flash tests

2018-03-14 Thread Liam Beguin
Hi, On Wed, 14 Mar 2018 at 19:27 Stephen Warren wrote: > On 03/14/2018 05:15 PM, Liam Beguin wrote: > > Add basic tests for the spi_flash subsystem. > > > > Signed-off-by: Liam Beguin > > Reviewed-by: Stephen Warren > > It's

[U-Boot] [PATCH] .travis.yml: Add lzop

2018-03-14 Thread Tom Rini
We need lzop now in order to make some FIT images that use LZO compression on the contents. Signed-off-by: Tom Rini --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 7b53b3dddc1b..6cad65fd378d 100644 --- a/.travis.yml +++

Re: [U-Boot] [PATCH] spi: omap3: Fix redeclared error

2018-03-14 Thread Jagan Teki
On Wed, Mar 14, 2018 at 11:15 PM, Jagan Teki wrote: > omap3_spi_set_speed|mode redeclared bus symbol, fix the same. > > error: > drivers/spi/omap3_spi.c: In function ‘omap3_spi_set_speed’: > drivers/spi/omap3_spi.c:650:18: error: ‘bus’ redeclared as different kind of

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

2018-03-14 Thread Adam Ford
On Wed, Mar 14, 2018 at 12:39 PM, Jagan Teki wrote: > On Wed, Mar 14, 2018 at 10:57 PM, Tom Rini wrote: >> On Wed, Mar 14, 2018 at 07:32:07PM +0530, Jagan Teki wrote: >> >>> Hi Tom, >>> >>> Please pull this PR. >>> >>> thanks, >>> Jagan. >>> >>>

Re: [U-Boot] efi_loader: Allow width smaller than buffer stride in efi_gop Blt()

2018-03-14 Thread Ivan Gorinov
On Wed, 2018-03-14 at 18:21 +0100, Heinrich Schuchardt wrote: @@ -87,7 +93,7 @@ efi_status_t EFIAPI gop_blt(struct efi_gop *this, void > > *buffer, > >   for (i = 0; i < height; i++) { > >   u32 *dest = fb + ((i + dy)  * line_len32) + > >  

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

2018-03-14 Thread Jagan Teki
On Wed, Mar 14, 2018 at 10:57 PM, Tom Rini wrote: > On Wed, Mar 14, 2018 at 07:32:07PM +0530, Jagan Teki wrote: > >> Hi Tom, >> >> Please pull this PR. >> >> thanks, >> Jagan. >> >> The following changes since commit f95ab1fb6e37f0601f397091bb011edf7a98b890: >> >> Prepare

Re: [U-Boot] [PATCH v2 04/10] phy: Add a new driver for OMAP's USB2 PHYs

2018-03-14 Thread Jean-Jacques Hiblot
On 14/03/2018 18:02, Patrice CHOTARD wrote: Hi Jean Jacques On 03/14/2018 05:18 PM, Jean-Jacques Hiblot wrote: This drivers supports the USB2 PHY found on omap5 and dra7 SOCs. Signed-off-by: Jean-Jacques Hiblot --- Changes in v2: - omap-usb2-phy: Implement power_on and

[U-Boot] [PATCH] spi: omap3: Fix redeclared error

2018-03-14 Thread Jagan Teki
omap3_spi_set_speed|mode redeclared bus symbol, fix the same. error: drivers/spi/omap3_spi.c: In function ‘omap3_spi_set_speed’: drivers/spi/omap3_spi.c:650:18: error: ‘bus’ redeclared as different kind of symbol struct udevice *bus = dev->parent; Signed-off-by: Jagan Teki

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

2018-03-14 Thread Jagan Teki
Hi Tom, Please pull this PR. Change for v2: - include missing patch thanks, Jagan. The following changes since commit f95ab1fb6e37f0601f397091bb011edf7a98b890: Prepare v2018.03 (2018-03-13 08:02:19 -0400) are available in the Git repository at: git://git.denx.de/u-boot-spi.git master

[U-Boot] [PATCH v3 07/11] sunxi: Add DRAM_SUN4I kconfig entry

2018-03-14 Thread Jagan Teki
Add proper and simple kconfig option for dram_sun4i.c instead of using MACH type on Makefile. Signed-off-by: Jagan Teki --- arch/arm/mach-sunxi/Kconfig | 9 + arch/arm/mach-sunxi/Makefile | 4 +--- 2 files changed, 10 insertions(+), 3 deletions(-) diff

[U-Boot] [PATCH v3 05/11] sunxi: Add PMIC_AXP kconfig entry

2018-03-14 Thread Jagan Teki
Add simple and meaningful kconfig option for pmic_bus.c instead of using MACH type on Makefile. Signed-off-by: Jagan Teki --- arch/arm/mach-sunxi/Kconfig | 6 ++ arch/arm/mach-sunxi/Makefile | 7 +-- drivers/power/Kconfig| 5 + 3 files changed,

[U-Boot] [PATCH v3 11/11] sunxi: Add DRAM_SUN8I_A83T kconfig entry

2018-03-14 Thread Jagan Teki
Add proper and simple kconfig option for dram_sun8i_a83t.c instead of using MACH type on Makefile. Signed-off-by: Jagan Teki --- arch/arm/mach-sunxi/Kconfig | 7 +++ arch/arm/mach-sunxi/Makefile | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v3 03/11] sunxi: Use MFD_SUN6I_PRCM if used

2018-03-14 Thread Jagan Teki
MFD_SUN6I_PRCM is also used for SUN8I and SUN9I, so select the same on respective MACH types. Signed-off-by: Jagan Teki --- arch/arm/mach-sunxi/Kconfig | 2 ++ arch/arm/mach-sunxi/Makefile | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH v3 04/11] sunxi: Add SUN8I_RSB kconfig entry

2018-03-14 Thread Jagan Teki
Add simple and meaningful kconfig option for rsb.c instead of using MACH type on Makefile. Signed-off-by: Jagan Teki --- arch/arm/mach-sunxi/Kconfig | 10 ++ arch/arm/mach-sunxi/Makefile | 3 +-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH] dm: MIGRATION: Add migration plan for DM_SPI & DM_SPI_FLASH

2018-03-14 Thread Jagan Teki
Due to adding various new functionalities with SPI and SPI-FLASH subsystems which are rounding in Mailing list for year these long term supporting spi driver which never seen any update with driver-model conversion. So added migration plan for DM_SPI and DM_SPI_FLASH with deadline v2018.09

Re: [U-Boot] [PATCH v3 07/11] sunxi: Add DRAM_SUN4I kconfig entry

2018-03-14 Thread Maxime Ripard
On Wed, Mar 14, 2018 at 06:29:50PM +0530, Jagan Teki wrote: > Add proper and simple kconfig option for dram_sun4i.c > instead of using MACH type on Makefile. > > Signed-off-by: Jagan Teki Acked-by: Maxime Ripard Maxime -- Maxime Ripard,

Re: [U-Boot] [PATCH v3 08/11] sunxi: Add DRAM_SUN9I kconfig entry

2018-03-14 Thread Maxime Ripard
On Wed, Mar 14, 2018 at 06:29:51PM +0530, Jagan Teki wrote: > Add proper and simple kconfig option for dram_sun9i.c > instead of using MACH type on Makefile. > > Signed-off-by: Jagan Teki Acked-by: Maxime Ripard Maxime -- Maxime Ripard,

Re: [U-Boot] [PATCH v3 04/11] sunxi: Add SUN8I_RSB kconfig entry

2018-03-14 Thread Maxime Ripard
On Wed, Mar 14, 2018 at 06:29:47PM +0530, Jagan Teki wrote: > Add simple and meaningful kconfig option for rsb.c > instead of using MACH type on Makefile. > > Signed-off-by: Jagan Teki Acked-by: Maxime Ripard maxime -- Maxime Ripard,

Re: [U-Boot] [PATCH v3 02/11] sunxi: Add I2C_SUN6I_P2WI kconfig entry

2018-03-14 Thread Jagan Teki
On Wed, Mar 14, 2018 at 6:52 PM, Maxime Ripard wrote: > On Wed, Mar 14, 2018 at 06:29:45PM +0530, Jagan Teki wrote: >> Add simple and meaningful kconfig option for p2wi.c >> instead of using MACH type on Makefile. >> >> p2wi is an I2C controller, so used the same on

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

2018-03-14 Thread Jagan Teki
Hi Tom, Please pull this PR. thanks, Jagan. The following changes since commit f95ab1fb6e37f0601f397091bb011edf7a98b890: Prepare v2018.03 (2018-03-13 08:02:19 -0400) are available in the Git repository at: git://git.denx.de/u-booti-spi.git master for you to fetch changes up to

Re: [U-Boot] [U-Boot, 2/6] clk: clk_stm32f: Fix stm32_clk_get_rate() for timer

2018-03-14 Thread Tom Rini
On Wed, Feb 07, 2018 at 10:44:46AM +0100, patrice.chot...@st.com wrote: > From: Patrice Chotard > > For timer clock, an additionnal prescaler is used which was > not taken into account previously. > > Signed-off-by: Patrice Chotard Applied to

Re: [U-Boot] [U-Boot, 1/7] clk: clk_stm32f: Fix stm32_clk_get_rate()

2018-03-14 Thread Tom Rini
On Thu, Feb 08, 2018 at 05:20:45PM +0100, patrice.chot...@st.com wrote: > From: Patrice Chotard > > Wrong parameter was passed to stm32_clk_pll48clk_rate(). > sysclk (PLL_p output value) was passed instead of VCO value. > > Signed-off-by: Patrice Chotard

Re: [U-Boot] [U-Boot, v2, 1/2] disk: part: scan the disk if the part_type is unknown

2018-03-14 Thread Tom Rini
On Sat, Feb 10, 2018 at 05:55:37PM +0800, Kever Yang wrote: > If a DUT do not have partition table, and we write one with 'gpt write' > cmd, we should able to list the partition with 'part list' cmd. > It's reasonable to scan the disk again if the initial part_type is > unknown in case we just

  1   2   >