[U-Boot] [PATCH] mmc: Support generic PCI SD host controller

2017-08-09 Thread Bin Meng
This changes pci_mmc driver to use PCI_CLASS_SYSTEM_SDHCI instead of individual vendor id & device id pair to support generic PCI SD host controller. Signed-off-by: Bin Meng --- drivers/mmc/pci_mmc.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/mmc/pci_mmc.c

[U-Boot] [PATCH] usb: ehci: Convert CONFIG_USB_EHCI_PCI to Kconfig

2017-08-09 Thread Bin Meng
This converts CONFIG_USB_EHCI_PCI to a Kconfig option, and updates all boards that use it. Signed-off-by: Bin Meng --- configs/MPC8544DS_defconfig | 1 + configs/MPC8572DS_36BIT_defconfig | 1 + configs/MPC8572DS_defconfig | 1 + drivers/usb/host/Kconfig | 6 ++ include

Re: [U-Boot] [PATCH v2 4/6] pci: tegra: introduce weak tegra_pcie_board_port_reset() function

2017-08-09 Thread Marcel Ziswiler
On Tue, 2017-08-08 at 10:09 -0600, Stephen Warren wrote: > On 08/08/2017 06:42 AM, Marcel Ziswiler wrote: > > From: Marcel Ziswiler > > > > Introduce a weak tegra_pcie_board_port_reset() function by default > > calling the existing tegra_pcie_port_reset() function. Additionally > > add > > a tegr

[U-Boot] [RFC PATCH v1 1/2] ARM: mvebu: Add SoC IDs for Marvell's integrated CPUs

2017-08-09 Thread Chris Packham
These SoCs are network packet processors (switch chips) with integrated ARMv7 cores. They share a great deal of commonality with the Armada-XP CPUs. Signed-off-by: Chris Packham --- There are actually a number of IDs for these chips, probably a dozen in total. I haven't enumerated them all in thi

[U-Boot] [RFC PATCH v1 2/2] ARM: mvebu: add additional information to board_add_ram_info()

2017-08-09 Thread Chris Packham
From: Joshua Scott Display more information about the current RAM configuration. With these changes the output on a 88F6820 board is SoC: MV88F6820-A0 at 1600 MHz DRAM: 2 GiB (800 MHz, 64-bit, ECC not enabled) Signed-off-by: Joshua Scott Signed-off-by: Chris Packham --- One of the hard

Re: [U-Boot] [PATCHv2 04/10] net: mvpp2x: fix BM configuration overrun issue

2017-08-09 Thread Stefan Roese
Hi Stefan, On 09.08.2017 09:37, stef...@marvell.com wrote: > From: Stefan Chulski > > Issue: > BM counters were overrun by probe that called per Network interface and > caused release of wrong number of buffers during remove procedure. > > Fix: > Use probe_done and num_ports to call init and re

Re: [U-Boot] [U-Boot, v0, 07/20] vsprintf.c: add wide string (%ls) support

2017-08-09 Thread Peter Robinson
>> buildman downloads very old compilers (gcc < 4.8) from kernel.org which >> do not support C11. >> Travis CI uses Ubuntu 14.04 with gcc 4.8.4 which incorrectly throws an >> error for disk/part.c in C11 mode. > > ugg, 4.8 is pretty old.. Not sure how much older than 4.8 buildman > uses. It seem

Re: [U-Boot] [PATCH v2 2/5] arm: socfpga: Add checking function on FPGA setting in FDT

2017-08-09 Thread Marek Vasut
On 08/09/2017 07:07 AM, Chee, Tien Fong wrote: > On Sel, 2017-08-08 at 11:29 +0200, Marek Vasut wrote: >> On 08/08/2017 11:12 AM, tien.fong.c...@intel.com wrote: >>> >>> From: Tien Fong Chee >>> >>> Function for checking FPGA early release setting which is defined >>> by user in FDT chosen section

Re: [U-Boot] [PATCH v2 4/5] arm: socfpga: Add intermediate driver between flash and FPGA manager

2017-08-09 Thread Marek Vasut
On 08/09/2017 06:50 AM, Chee, Tien Fong wrote: [...] If this is for some FPGA loading, can this functionality be scripted instead? >>> Sorry, i'm not getting you. How functionality be scripted? Could >>> you >>> provide some example or details explanation? >> ie. "load" (from f

Re: [U-Boot] [PATCH] usb: ehci: Convert CONFIG_USB_EHCI_PCI to Kconfig

2017-08-09 Thread Marek Vasut
On 08/09/2017 09:21 AM, Bin Meng wrote: > This converts CONFIG_USB_EHCI_PCI to a Kconfig option, and updates > all boards that use it. > > Signed-off-by: Bin Meng Applied, thanks > --- > > configs/MPC8544DS_defconfig | 1 + > configs/MPC8572DS_36BIT_defconfig | 1 + > configs/MPC8572DS_

[U-Boot] [PATCH 00/12] imx: mx6sabresd: support SPL FIT

2017-08-09 Thread Peng Fan
This patch set is to support SPL FIT for mx6sabresd board. Patchset tested on 6qsabresd and 6qpsabresd board, works well. The mkimage_fit.sh is modified from sunxi code to generate u-boot.its. Peng Fan (12): arm: dts: include dts for imx6sabresd power: pmic/regulator allow dm be omited by SPL

[U-Boot] [PATCH 01/12] arm: dts: include dts for imx6sabresd

2017-08-09 Thread Peng Fan
Import dts from commit aae4e7a8bc("Linux 4.13-rc4") for imx6sabresd board. Signed-off-by: Peng Fan Cc: Stefano Babic --- arch/arm/dts/Makefile | 3 + arch/arm/dts/imx6dl-sabresd.dts | 22 ++ arch/arm/dts/imx6dl.dtsi | 242 + arch/arm/dts/imx6q-sabresd.dts

[U-Boot] [PATCH 02/12] power: pmic/regulator allow dm be omited by SPL

2017-08-09 Thread Peng Fan
Allow the dm driver be omited by SPL. Signed-off-by: Peng Fan Cc: Jaehoon Chung Cc: Simon Glass Cc: Keerthy Cc: Minkyu Kang Cc: Stefan Agner Cc: Hou Zhiqiang Cc: Jacob Chen Cc: Kever Yang Cc: Stefano Babic --- drivers/power/pmic/Makefile | 4 ++-- drivers/power/regulator/Makefile |

[U-Boot] [PATCH 03/12] Makefile: build FIT image if CONFIG_SPL_FIT_GENERATOR defined

2017-08-09 Thread Peng Fan
Build FIT image if CONFIG_SPL_FIT_GENERATOR defined. Signed-off-by: Peng Fan Cc: Simon Glass Cc: Masahiro Yamada Cc: Bin Meng Cc: Andre Przywara Cc: "Cooper Jr., Franklin" Cc: "Álvaro Fernández Rojas" Cc: Stefano Babic --- Makefile | 4 1 file changed, 4 insertions(+) diff --git a/M

[U-Boot] [PATCH 06/12] imx: mx6sabresd: enable SPL FIT

2017-08-09 Thread Peng Fan
Enable SPL FIT. Now DM drivers are not enabled, so boards boot as before with only the difference that loading dtb. Signed-off-by: Peng Fan Cc: Stefano Babic Cc: Fabio Estevam --- configs/mx6sabresd_defconfig | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configs/mx6

[U-Boot] [PATCH 05/12] imx: mx6sabresd: implement board_fit_config_name_match

2017-08-09 Thread Peng Fan
Implement board_fit_config_name_match. Signed-off-by: Peng Fan Cc: Stefano Babic Cc: Fabio Estevam --- board/freescale/mx6sabresd/mx6sabresd.c | 13 + 1 file changed, 13 insertions(+) diff --git a/board/freescale/mx6sabresd/mx6sabresd.c b/board/freescale/mx6sabresd/mx6sabresd.c i

[U-Boot] [PATCH 04/12] imx: introduce mkimage_fit.sh

2017-08-09 Thread Peng Fan
Introduce mkimage_fit.sh which is modifed from board/sunxi/mksunxi_fit_atf.sh. ATF is dropped and modified for arm32 arch. Signed-off-by: Peng Fan Cc: Stefano Babic Cc: Fabio Estevam --- arch/arm/mach-imx/mkimage_fit.sh | 63 1 file changed, 63 insertio

[U-Boot] [PATCH 07/12] scripts: spl: Disable DM MMC when SPL DM not enabled

2017-08-09 Thread Peng Fan
Disable DM MMC when SPL DM not enabled. Signed-off-by: Peng Fan Cc: Stefano Babic Cc: Simon Glass --- scripts/Makefile.uncmd_spl | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/Makefile.uncmd_spl b/scripts/Makefile.uncmd_spl index b399411..983686f 100644 --- a/scripts/Makefile.uncm

[U-Boot] [PATCH 10/12] board: freescale: common: add pfuze dm code

2017-08-09 Thread Peng Fan
Add pfuze dm code, this code does the same thing as pfuze.c, but only effects when CONFIG_$(SPL_)DM_PMIC_PFUZE100 enabled. Signed-off-by: Peng Fan Cc: York Sun Cc: Jaehoon Chung Cc: Stefano Babic --- board/freescale/common/Makefile | 1 + board/freescale/common/pfuze.h| 5 +++ board/f

[U-Boot] [PATCH 08/12] mmc: fsl_esdhc: switch to use CONFIG_IS_ENABLED

2017-08-09 Thread Peng Fan
Switch to use CONFIG_IS_ENABLED. Signed-off-by: Peng Fan Cc: Jaehoon Chung Cc: Stefano Babic --- drivers/mmc/fsl_esdhc.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index 3abd2d3..5a1c7aa 100644 --- a/driv

[U-Boot] [PATCH 09/12] power: pmic.h: include dm/ofnode.h

2017-08-09 Thread Peng Fan
Include dm/ofnode.h. Signed-off-by: Peng Fan Cc: Simon Glass Cc: Stefano Babic --- include/power/pmic.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/power/pmic.h b/include/power/pmic.h index 4b34316..f2fe537 100644 --- a/include/power/pmic.h +++ b/include/power/pmic.h @@ -11,6 +

[U-Boot] [PATCH 11/12] imx: mx6sabresd: enable dm drivers

2017-08-09 Thread Peng Fan
Enable DM MMC/I2C/PMIC/GPIO/REGULATOR. Signed-off-by: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- board/freescale/mx6sabresd/mx6sabresd.c | 326 +--- configs/mx6sabresd_defconfig| 15 ++ include/configs/mx6sabresd.h| 15 +- 3 files cha

[U-Boot] [PATCH 12/12] imx: mx6sabresd: update README

2017-08-09 Thread Peng Fan
Update README since we use FIT now. Signed-off-by: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- board/freescale/mx6sabresd/README | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/board/freescale/mx6sabresd/README b/board/freescale/mx6sabresd/README in

Re: [U-Boot] [PATCH 07/12] scripts: spl: Disable DM MMC when SPL DM not enabled

2017-08-09 Thread Peng Fan
> -Original Message- > From: Peng Fan > Sent: Wednesday, August 09, 2017 5:16 PM > To: sba...@denx.de > Cc: van.free...@gmail.com; u-boot@lists.denx.de; Peng Fan > ; Simon Glass > Subject: [PATCH 07/12] scripts: spl: Disable DM MMC when SPL DM not > enabled > > Disable DM MMC when SPL D

Re: [U-Boot] [PATCH v2] efi_loader: LocateHandle should return EFI_NOT_FOUND if none found

2017-08-09 Thread Heinrich Schuchardt
On 08/06/2017 08:10 PM, Rob Clark wrote: > Spotted this debugging OpenBSD's bootloader in qemu. (Wouldn't really > fix anything, the problem was not having any disks, but we should > probably return the correct error code.) > > Signed-off-by: Rob Clark > --- > v2: early-return in the EFI_NOT_FOU

[U-Boot] [PATCH 1/3] rockchip: rk3399: detect boot mode

2017-08-09 Thread Kever Yang
U-Boot fastboot, kernel may reboot with parameter which require bootloader to get into different boot mode, detect it and enter proper mode. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3399/Kconfig | 1 + arch/arm/mach-rockchip/rk3399/rk3399.c | 42 +

[U-Boot] [PATCH 2/3] rockchip: rk3399: enable fastboot to set boot mode tag

2017-08-09 Thread Kever Yang
fastboot have a command "reboot-bootloader" which require the boot loader to reboot and get into fastboot mode again. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3399/rk3399.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/mach-rockchip/rk3399/rk3399.c

[U-Boot] [PATCH 3/3] rockchip: rk3399: enable preboot for boot mode detect

2017-08-09 Thread Kever Yang
We need to get into preboot once we detect that we are not get into normal boot. Signed-off-by: Kever Yang --- include/configs/rk3399_common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/rk3399_common.h b/include/configs/rk3399_common.h index 1ef6b92..9a1690e 100644 --

Re: [U-Boot] [PATCH] common:usb_kbd:Add key values of F1~F12

2017-08-09 Thread Dr. Philipp Tomsich
> On 08 Aug 2017, at 03:27, Leo Wen wrote: > > When you press the F1~F12 button from the USB keyboard, the reference Fn > key table(usb_kbd_fn_key[]),the key value(0xf0~0xfb) will be returned, > and you can use it to do more things. How does doing this code (in usb_kbd.c) relate to the translat

[U-Boot] [PATCH 0/3] rockchip: rv1108: support USB OTG and Host ports on evb-rv1108

2017-08-09 Thread William Wu
This patch support USB OTG and Host ports on evb-rv1108 board. With this patch, we can use fastboot over USB and mount USB mass storage on OTG and Host ports. William Wu (3): configs: rockchip: add USB configs for evb-rv1108 board ARM: dts: rockchip: add USB nodes for evb-rv1108 rockchip: ev

[U-Boot] [PATCH 1/3] configs: rockchip: add USB configs for evb-rv1108 board

2017-08-09 Thread William Wu
This patch adds USB configs to support the USB OTG port(consist of DWC2 controller) and the USB Host port(consist of EHCI and OHCI controllers) on evb-rv1108 board, and also support fastboot over USB and USB mass storage. Signed-off-by: William Wu --- configs/evb-rv1108_defconfig| 22 +++

[U-Boot] [PATCH 2/3] ARM: dts: rockchip: add USB nodes for evb-rv1108

2017-08-09 Thread William Wu
This patch adds USB OTG/EHCI/OHCI nodes for evb-rv1108 USB ports. Signed-off-by: William Wu --- arch/arm/dts/rv1108-evb.dts | 22 ++ arch/arm/dts/rv1108.dtsi| 24 2 files changed, 46 insertions(+) diff --git a/arch/arm/dts/rv1108-evb.dts b/arch/a

[U-Boot] [PATCH 1/3] configs: rockchip: add USB configs for evb-rv1108 board

2017-08-09 Thread William Wu
This patch adds USB configs to support the USB OTG port(consist of DWC2 controller) and the USB Host port(consist of EHCI and OHCI controllers) on evb-rv1108 board, and also support fastboot over USB and USB mass storage. Signed-off-by: William Wu --- configs/evb-rv1108_defconfig| 22 +++

[U-Boot] [PATCH 3/3] rockchip: evb-rv1108: add usb init function for dwc2 gadget

2017-08-09 Thread William Wu
This patch implements board_usb_init() for dwc2 gadget, it generally called from do_fastboot to do dwc2 udc probe and support fastboot over USB. Signed-off-by: William Wu --- board/rockchip/evb_rv1108/evb_rv1108.c | 47 ++ 1 file changed, 47 insertions(+) diff --

[U-Boot] [PATCH 0/3] rockchip: rv1108: support USB OTG and Host ports on evb-rv1108

2017-08-09 Thread William Wu
This patch support USB OTG and Host ports on evb-rv1108 board. With this patch, we can use fastboot over USB and mount USB mass storage on OTG and Host ports. William Wu (3): configs: rockchip: add USB configs for evb-rv1108 board ARM: dts: rockchip: add USB nodes for evb-rv1108 rockchip: ev

Re: [U-Boot] [PATCH 2/2] Convert CONFIG_SYS_I2C_OMAP24XX to Kconfig

2017-08-09 Thread Heiko Schocher
Hello Adam, Am 07.08.2017 um 20:11 schrieb Adam Ford: This converts the following to Kconfig: CONFIG_SYS_I2C_OMAP24XX Signed-off-by: Adam Ford --- arch/arm/mach-omap2/Kconfig| 5 + configs/ti816x_evm_defconfig | 1 + drivers/i2c/Kconfig| 6

[U-Boot] [PATCHv2 01/10] net: mvpp2x: Add GPIO configuration support

2017-08-09 Thread stefanc
From: Stefan Chulski This patch add GPIO configuration support in mvpp2x driver. Driver will handle 10G SFP gpio reset and SFP TX disable. GPIO pins should be set in device tree. Signed-off-by: Stefan Chulski Tested-by: iSoC Platform CI Reviewed-by: Kostya Porotchkin Reviewed-by: Igal Liberma

[U-Boot] [PATCH 2/3] ARM: dts: rockchip: add USB nodes for evb-rv1108

2017-08-09 Thread William Wu
This patch adds USB OTG/EHCI/OHCI nodes for evb-rv1108 USB ports. Signed-off-by: William Wu --- arch/arm/dts/rv1108-evb.dts | 22 ++ arch/arm/dts/rv1108.dtsi| 24 2 files changed, 46 insertions(+) diff --git a/arch/arm/dts/rv1108-evb.dts b/arch/a

[U-Boot] [PATCHv2 06/10] net: mvpp2x: remove MBUS configurations from MvPP22 driver

2017-08-09 Thread stefanc
From: Stefan Chulski MBUS driver were replaced by AXI in PPv22 and relevant only for PPv21. Signed-off-by: Stefan Chulski Tested-by: iSoC Platform CI Reviewed-by: Nadav Haklai Reviewed-by: Igal Liberman --- drivers/net/mvpp2.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-

[U-Boot] [PATCHv2 02/10] net: mvpp2x: fix phy connected to wrong mdio issue

2017-08-09 Thread stefanc
From: Stefan Chulski A8K marvell SoC has two South Bridge communication controllers(CP0 and CP1). Each communication controller has packet processor ports and MDIO. On MACHIATOBin board ports from CP1 are connected to mdio on CP0. Issue: Wrong base address is assigned to MDIO interface during pr

[U-Boot] [PATCHv2 00/10] This patch set represent Marvell mvpp2 driver fixes

2017-08-09 Thread stefanc
From: Stefan Chulski Issues were found during internal QA phase. Stefan Chulski (10): net: mvpp2x: Add GPIO configuration support net: mvpp2x: fix phy connected to wrong mdio issue net: mvpp2x: Enable GoP packet padding in TX net: mvpp2x: fix BM configuration overrun issue net: mvpp2x:

[U-Boot] [PATCH] rockchip: dts: rk3399-evb: remove redundant gmac node

2017-08-09 Thread Kever Yang
There are two same gmac node, remove one. Signed-off-by: Kever Yang --- arch/arm/dts/rk3399-evb.dts | 16 1 file changed, 16 deletions(-) diff --git a/arch/arm/dts/rk3399-evb.dts b/arch/arm/dts/rk3399-evb.dts index f5af75b..f33e165 100644 --- a/arch/arm/dts/rk3399-evb.dts +++

[U-Boot] [PATCH 3/3] rockchip: evb-rv1108: add usb init function for dwc2 gadget

2017-08-09 Thread William Wu
This patch implements board_usb_init() for dwc2 gadget, it generally called from do_fastboot to do dwc2 udc probe and support fastboot over USB. Signed-off-by: William Wu --- board/rockchip/evb_rv1108/evb_rv1108.c | 47 ++ 1 file changed, 47 insertions(+) diff --

[U-Boot] [PATCHv2 09/10] net: mvpp2x: remove TX drain from transmit routine

2017-08-09 Thread stefanc
From: Stefan Chulski TX drain in transmit procedure could cause issues due to race between drain procedure and transmition of descriptor between AGGR TXQ and physical TXQ. TXQ will be cleared before moving to Linux by stop procedure. Signed-off-by: Stefan Chulski Tested-by: iSoC Platform CI Re

[U-Boot] [PATCHv2 05/10] net: mvpp2x: decrease size of AGGR_TXQ and CPU_DESC_CHUNK

2017-08-09 Thread stefanc
From: Stefan Chulski U-boot use single physical tx queue with size 16 descriptors. So aggregated tx queue size should be equal to physical tx queue and cpu descriptor chunk(number of descriptors delivered from physical tx queue to aggregated tx queue by one chunk) shouldn't be larger than physica

[U-Boot] [PATCHv2 10/10] net: mvpp2x: Set BM poll size once during priv probe

2017-08-09 Thread stefanc
From: Stefan Chulski Set BM poll size once during priv probe and do not overwrite it during port probe procedure. Pool is common for all CP ports. Signed-off-by: Stefan Chulski Tested-by: iSoC Platform CI Reviewed-by: Nadav Haklai Reviewed-by: Igal Liberman --- drivers/net/mvpp2.c | 5 +

[U-Boot] [PATCHv2 03/10] net: mvpp2x: Enable GoP packet padding in TX

2017-08-09 Thread stefanc
From: Stefan Chulski This patch enables padding of packets shorter than 64B in TX(set by default). Disabling of padding causes crashes on MACCIATO board. Signed-off-by: Stefan Chulski Tested-by: iSoC Platform CI Reviewed-by: Igal Liberman --- drivers/net/mvpp2.c | 12 1 file cha

[U-Boot] [PATCHv2 07/10] net: mvpp2x: Remove IRQ configuration from U-Boot

2017-08-09 Thread stefanc
From: Stefan Chulski Remove IRQ configuration from U-Boot PP driver. U-Boot don't use interrupts and configuration of IRQ in U-Boot caused crashes in Linux shared interrupt mode. Also interrupt use is redundant in RX routine since a single RX queue is used. Signed-off-by: Stefan Chulski Tested-

[U-Boot] [PATCHv2 04/10] net: mvpp2x: fix BM configuration overrun issue

2017-08-09 Thread stefanc
From: Stefan Chulski Issue: BM counters were overrun by probe that called per Network interface and caused release of wrong number of buffers during remove procedure. Fix: Use probe_done and num_ports to call init and remove procedure once per communication controller. Signed-off-by: Stefan Chu

[U-Boot] [PATCHv2 08/10] net: mvpp2x: Set BM pool high address

2017-08-09 Thread stefanc
From: Stefan Chulski MVPP22 driver support 64 Bit arch and require BM pool high address configuration. Signed-off-by: Stefan Chulski Tested-by: iSoC Platform CI Reviewed-by: Nadav Haklai Reviewed-by: Igal Liberman --- drivers/net/mvpp2.c | 6 ++ 1 file changed, 6 insertions(+) diff --g

[U-Boot] [PATCH] rockchip: enable rk322x sysreset driver

2017-08-09 Thread Kever Yang
The sysreset driver for rk322x is ready but not enabled, add it to Makefile to make sure it's enabled. Signed-off-by: Kever Yang --- drivers/sysreset/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/sysreset/Makefile b/drivers/sysreset/Makefile index a5200d3..476d361 100644

Re: [U-Boot] [U-Boot, v0, 07/20] vsprintf.c: add wide string (%ls) support

2017-08-09 Thread Tom Rini
On Tue, Aug 08, 2017 at 08:14:41PM -0400, Rob Clark wrote: > On Tue, Aug 8, 2017 at 7:55 PM, Alexander Graf wrote: > > > > > > On 09.08.17 00:39, Rob Clark wrote: > >> > >> On Tue, Aug 8, 2017 at 7:08 PM, Heinrich Schuchardt > >> wrote: > >>> > >>> On 08/09/2017 12:44 AM, Rob Clark wrote: >

[U-Boot] [PATCH] rockchip: rk322x: enable fastboot to set boot mode tag

2017-08-09 Thread Kever Yang
To support fastboot "fastboot reboot-bootloader" cmd. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk322x-board.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/mach-rockchip/rk322x-board.c b/arch/arm/mach-rockchip/rk322x-board.c index 75fc480..9d47b42 10

Re: [U-Boot] [PATCH 1/1] i2c: add i2c driver for stm32

2017-08-09 Thread Patrice CHOTARD
Hi Simon On 08/06/2017 07:15 AM, Simon Glass wrote: > Hi Patrice, > > On 25 July 2017 at 10:02, wrote: >> From: Patrice Chotard >> >> Add i2c driver which can be used on both STM32F7 and STM32H7. >> This I2C block supports the following features: >> _ Slave and master modes >> _ Multimaste

[U-Boot] [PATCH v2 1/1] i2c: add i2c driver for stm32

2017-08-09 Thread patrice.chotard
From: Patrice Chotard Add i2c driver which can be used on both STM32F7 and STM32H7. This I2C block supports the following features: _ Slave and master modes _ Multimaster capability _ Standard-mode (up to 100 kHz) _ Fast-mode (up to 400 kHz) _ Fast-mode Plus (up to 1 MHz) _ 7-bit and 10-bit

[U-Boot] [patch v2 00/13] imx: mx6sabresd: support SPL FIT

2017-08-09 Thread Peng Fan
This patch set is to support SPL FIT for mx6sabresd board. Patchset tested on 6qsabresd and 6qpsabresd board, works well. The mkimage_fit.sh is modified from sunxi code to generate u-boot.its. V2: Rebased to latest master branch Include patch https://patchwork.ozlabs.org/patch/798992/ to make this

[U-Boot] [patch v2 01/13] scripts: spl: fix typo

2017-08-09 Thread Peng Fan
Typo fix: CONIFG->CONFIG Signed-off-by: Peng Fan Cc: Tom Rini --- scripts/Makefile.uncmd_spl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.uncmd_spl b/scripts/Makefile.uncmd_spl index 15d0836..b399411 100644 --- a/scripts/Makefile.uncmd_spl +++ b/scripts/M

[U-Boot] [patch v2 03/13] power: pmic/regulator allow dm be omited by SPL

2017-08-09 Thread Peng Fan
Allow the dm driver be omited by SPL. Signed-off-by: Peng Fan Cc: Jaehoon Chung Cc: Simon Glass Cc: Keerthy Cc: Minkyu Kang Cc: Stefan Agner Cc: Hou Zhiqiang Cc: Jacob Chen Cc: Kever Yang Cc: Stefano Babic --- drivers/power/pmic/Makefile | 4 ++-- drivers/power/regulator/Makefile |

[U-Boot] [patch v2 02/13] arm: dts: include dts for imx6sabresd

2017-08-09 Thread Peng Fan
Import dts from commit aae4e7a8bc("Linux 4.13-rc4") for imx6sabresd board. Signed-off-by: Peng Fan Cc: Stefano Babic --- arch/arm/dts/Makefile | 3 + arch/arm/dts/imx6dl-sabresd.dts | 22 ++ arch/arm/dts/imx6dl.dtsi | 242 + arch/arm/dts/imx6q-sabresd.dts

[U-Boot] [patch v2 04/13] Makefile: build FIT image if CONFIG_SPL_FIT_GENERATOR defined

2017-08-09 Thread Peng Fan
Build FIT image if CONFIG_SPL_FIT_GENERATOR defined. Signed-off-by: Peng Fan Cc: Simon Glass Cc: Masahiro Yamada Cc: Bin Meng Cc: Andre Przywara Cc: "Cooper Jr., Franklin" Cc: "Álvaro Fernández Rojas" Cc: Stefano Babic --- Makefile | 4 1 file changed, 4 insertions(+) diff --git a/M

[U-Boot] [patch v2 07/13] imx: mx6sabresd: enable SPL FIT

2017-08-09 Thread Peng Fan
Enable SPL FIT. Now DM drivers are not enabled, so boards boot as before with only the difference that loading dtb. Signed-off-by: Peng Fan Cc: Stefano Babic Cc: Fabio Estevam --- configs/mx6sabresd_defconfig | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configs/mx6

[U-Boot] [patch v2 09/13] mmc: fsl_esdhc: switch to use CONFIG_IS_ENABLED

2017-08-09 Thread Peng Fan
Switch to use CONFIG_IS_ENABLED. Signed-off-by: Peng Fan Cc: Jaehoon Chung Cc: Stefano Babic --- drivers/mmc/fsl_esdhc.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index 3abd2d3..5a1c7aa 100644 --- a/driv

[U-Boot] [patch v2 10/13] power: pmic.h: include dm/ofnode.h

2017-08-09 Thread Peng Fan
Include dm/ofnode.h. Signed-off-by: Peng Fan Cc: Simon Glass Cc: Stefano Babic --- include/power/pmic.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/power/pmic.h b/include/power/pmic.h index 4b34316..f2fe537 100644 --- a/include/power/pmic.h +++ b/include/power/pmic.h @@ -11,6 +

[U-Boot] [patch v2 12/13] imx: mx6sabresd: enable dm drivers

2017-08-09 Thread Peng Fan
Enable DM MMC/I2C/PMIC/GPIO/REGULATOR. Signed-off-by: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- board/freescale/mx6sabresd/mx6sabresd.c | 326 +--- configs/mx6sabresd_defconfig| 15 ++ include/configs/mx6sabresd.h| 15 +- 3 files cha

[U-Boot] [patch v2 08/13] scripts: spl: Disable DM MMC when SPL DM not enabled

2017-08-09 Thread Peng Fan
Disable DM MMC when SPL DM not enabled. Signed-off-by: Peng Fan Cc: Stefano Babic Cc: Simon Glass --- scripts/Makefile.uncmd_spl | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/Makefile.uncmd_spl b/scripts/Makefile.uncmd_spl index b399411..983686f 100644 --- a/scripts/Makefile.uncm

[U-Boot] [patch v2 06/13] imx: mx6sabresd: implement board_fit_config_name_match

2017-08-09 Thread Peng Fan
Implement board_fit_config_name_match. Signed-off-by: Peng Fan Cc: Stefano Babic Cc: Fabio Estevam --- board/freescale/mx6sabresd/mx6sabresd.c | 13 + 1 file changed, 13 insertions(+) diff --git a/board/freescale/mx6sabresd/mx6sabresd.c b/board/freescale/mx6sabresd/mx6sabresd.c i

[U-Boot] [patch v2 11/13] board: freescale: common: add pfuze dm code

2017-08-09 Thread Peng Fan
Add pfuze dm code, this code does the same thing as pfuze.c, but only effects when CONFIG_$(SPL_)DM_PMIC_PFUZE100 enabled. Signed-off-by: Peng Fan Cc: York Sun Cc: Jaehoon Chung Cc: Stefano Babic --- board/freescale/common/Makefile | 1 + board/freescale/common/pfuze.h| 5 +++ board/f

[U-Boot] [patch v2 13/13] imx: mx6sabresd: update README

2017-08-09 Thread Peng Fan
Update README since we use FIT now. Signed-off-by: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- board/freescale/mx6sabresd/README | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/board/freescale/mx6sabresd/README b/board/freescale/mx6sabresd/README in

Re: [U-Boot] [PATCH] scripts: spl: fix typo

2017-08-09 Thread Peng Fan
> -Original Message- > From: Peng Fan > Sent: Tuesday, August 08, 2017 9:31 AM > To: tr...@konsulko.com > Cc: van.free...@gmail.com; u-boot@lists.denx.de; Peng Fan > > Subject: [PATCH] scripts: spl: fix typo > > Typo fix: CONIFG->CONFIG Drop this patch. It is included in patchset "imx:

[U-Boot] [patch v2 05/13] imx: introduce mkimage_fit.sh

2017-08-09 Thread Peng Fan
Introduce mkimage_fit.sh which is modifed from board/sunxi/mksunxi_fit_atf.sh. ATF is dropped and modified for arm32 arch. Signed-off-by: Peng Fan Cc: Stefano Babic Cc: Fabio Estevam --- arch/arm/mach-imx/mkimage_fit.sh | 63 1 file changed, 63 insertio

[U-Boot] [PATCH 1/1] stm32f1: remove stm32f1 support

2017-08-09 Thread patrice.chotard
From: Patrice Chotard A few years ago STM32F1 SoCs support has been added : 0144caf22ce6acd5c gpio: stm32: add stm32f1 support 2d18ef2364fd3561a ARMv7M: add STM32F1 support But neither STM32F1 dedicated defconfig nor board was associated to these commits. Got confirmation from Tom Rini and Ma

Re: [U-Boot] [U-Boot, v0, 07/20] vsprintf.c: add wide string (%ls) support

2017-08-09 Thread Rob Clark
On Tue, Aug 8, 2017 at 6:03 PM, Heinrich Schuchardt wrote: > On 08/04/2017 09:31 PM, Rob Clark wrote: >> >> @@ -528,8 +549,13 @@ repeat: >> continue; >> >> case 's': >> - str = string(str, end, va_arg(args, char *), >> -

Re: [U-Boot] [PATCH 1/1] i2c: add i2c driver for stm32

2017-08-09 Thread Patrice CHOTARD
Hi Heiko On 08/09/2017 06:10 AM, Heiko Schocher wrote: > Hi Simon, Patrice, > > Am 06.08.2017 um 07:15 schrieb Simon Glass: >> Hi Patrice, >> >> On 25 July 2017 at 10:02, wrote: >>> From: Patrice Chotard >>> >>> Add i2c driver which can be used on both STM32F7 and STM32H7. >>> This I2C block s

Re: [U-Boot] [U-Boot, v0, 07/20] vsprintf.c: add wide string (%ls) support

2017-08-09 Thread Alexander Graf
> Am 09.08.2017 um 14:38 schrieb Rob Clark : > >> On Tue, Aug 8, 2017 at 6:03 PM, Heinrich Schuchardt >> wrote: >>> On 08/04/2017 09:31 PM, Rob Clark wrote: >>> >>> @@ -528,8 +549,13 @@ repeat: >>> continue; >>> >>> case 's': >>> - str =

Re: [U-Boot] [PATCH] ARM: dts: ethernut5: Fix the build warning

2017-08-09 Thread Tom Rini
On Tue, Aug 08, 2017 at 08:50:33AM +0800, Wenyou Yang wrote: > Fix the building warning as below: Reviewed-by: Tom Rini But you need to submit this for Linux as well, thanks! -- Tom signature.asc Description: Digital signature ___ U-Boot mailing l

Re: [U-Boot] [U-Boot, v0, 07/20] vsprintf.c: add wide string (%ls) support

2017-08-09 Thread Rob Clark
On Wed, Aug 9, 2017 at 9:48 AM, Alexander Graf wrote: > > >> Am 09.08.2017 um 14:38 schrieb Rob Clark : >> >>> On Tue, Aug 8, 2017 at 6:03 PM, Heinrich Schuchardt >>> wrote: On 08/04/2017 09:31 PM, Rob Clark wrote: @@ -528,8 +549,13 @@ repeat: continue; >

Re: [U-Boot] [PATCH 3/3] apalis_t30: fix optional pcie port reset for reliable pcie operation

2017-08-09 Thread Marcel Ziswiler
Hi Stephen On Tue, 2017-08-08 at 10:14 -0600, Stephen Warren wrote: > On 08/08/2017 06:43 AM, Marcel Ziswiler wrote: > > From: Marcel Ziswiler > > > > Allow optionally bringing up the Apalis type specific 4 lane PCIe > > port > > as well as the PCIe switch as found on the Apalis Evaluation board

Re: [U-Boot] [PATCH 00/39] dm: sata: Complete driver-model support for SATA

2017-08-09 Thread Tom Rini
On Fri, Aug 04, 2017 at 03:34:10AM -0600, Simon Glass wrote: > Hi Jaehoon, > > On 30 July 2017 at 20:46, Jaehoon Chung wrote: > > Hi Simon, > > > > On 07/28/2017 11:40 PM, Simon Glass wrote: > >> Hi Jaehoon, > >> > >> On 28 July 2017 at 06:25, Jaehoon Chung wrote: > >>> Dear Simon, > >>> > >>> O

Re: [U-Boot] Please pull u-boot-marvell/master

2017-08-09 Thread Tom Rini
On Tue, Aug 08, 2017 at 02:26:59PM +0200, Stefan Roese wrote: > Hi Tom, > > please pull the following mvebu board fix from Marek. > > Thanks, > Stefan > > > The following changes since commit eaa90e5df2a4a1cb12fb73571978a9379242d0b5: > > common/env_embedded.c: rename PPCENV/PPCTEXT macros (

Re: [U-Boot] Please pull u-boot-x86

2017-08-09 Thread Tom Rini
On Tue, Aug 08, 2017 at 09:29:19PM +0800, Bin Meng wrote: > Hi Tom, > > The following changes since commit eaa90e5df2a4a1cb12fb73571978a9379242d0b5: > > common/env_embedded.c: rename PPCENV/PPCTEXT macros (2017-08-04 > 20:38:39 -0400) > > are available in the git repository at: > > git://g

Re: [U-Boot] Please pull u-boot-cfi-flash/master

2017-08-09 Thread Tom Rini
On Tue, Aug 08, 2017 at 02:32:27PM +0200, Stefan Roese wrote: > Hi Tom, > > please pull the following small cleanup from Marek in the > flash.h header. > > Thanks, > Stefan > > > The following changes since commit eaa90e5df2a4a1cb12fb73571978a9379242d0b5: > > common/env_embedded.c: rename P

Re: [U-Boot] [PATCH 00/10] This patch set represent Marvell mvpp2 driver fixes

2017-08-09 Thread Joe Hershberger
On Wed, Aug 9, 2017 at 12:56 AM, Stefan Roese wrote: > Hi Joe, > > On 08.08.2017 17:57, Joe Hershberger wrote: >> >> Hi Stefan (and Stefan), >> >> On Tue, Aug 8, 2017 at 7:05 AM, Stefan Roese wrote: >>> >>> Hi Joe, >>> >>> On 11.07.2017 10:04, Stefan Roese wrote: On 21.06.2017 10:3

Re: [U-Boot] [PATCHv2 01/10] net: mvpp2x: Add GPIO configuration support

2017-08-09 Thread Joe Hershberger
On Wed, Aug 9, 2017 at 2:37 AM, wrote: > From: Stefan Chulski > > This patch add GPIO configuration support in mvpp2x driver. > Driver will handle 10G SFP gpio reset and SFP TX disable. GPIO pins should > be set in device tree. > > Signed-off-by: Stefan Chulski > Tested-by: iSoC Platform CI >

Re: [U-Boot] [PATCHv2 02/10] net: mvpp2x: fix phy connected to wrong mdio issue

2017-08-09 Thread Joe Hershberger
On Wed, Aug 9, 2017 at 2:37 AM, wrote: > From: Stefan Chulski > > A8K marvell SoC has two South Bridge communication controllers(CP0 and CP1). > Each communication controller has packet processor ports and MDIO. > On MACHIATOBin board ports from CP1 are connected to mdio on CP0. > > Issue: > Wro

Re: [U-Boot] [PATCHv2 03/10] net: mvpp2x: Enable GoP packet padding in TX

2017-08-09 Thread Joe Hershberger
On Wed, Aug 9, 2017 at 2:37 AM, wrote: > From: Stefan Chulski > > This patch enables padding of packets shorter than 64B in TX(set by default). > Disabling of padding causes crashes on MACCIATO board. > > Signed-off-by: Stefan Chulski > Tested-by: iSoC Platform CI > Reviewed-by: Igal Liberman

[U-Boot] [PATCH v3 1/6] configs: apalis-tk1: fix boot failure using ext4 rootfs

2017-08-09 Thread Marcel Ziswiler
From: Sanchayan Maity Trying to boot from an ext4 rootfs fails due to us defaulting to ext3. While the downstream T20/T30 L4T kernel has issues with ext4 later TK1 L4T should work just fine with it. Hence enable ext4 for sdboot and usbboot on TK1. Signed-off-by: Sanchayan Maity Acked-by: Marcel

[U-Boot] [PATCH v3 5/6] power: as3722: add as3722_ldo_set_voltage signature to header file

2017-08-09 Thread Marcel Ziswiler
From: Marcel Ziswiler Just like the already present as3722_sd_set_voltage() add the currently missing signature of the as3722_ldo_set_voltage() function to its header file. Signed-off-by: Marcel Ziswiler Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: - Add Simon's reviewed-by

[U-Boot] [PATCH v3 3/6] power: as3722: fix ldo_get/set_enable for ldo index bigger than 7

2017-08-09 Thread Marcel Ziswiler
From: Marcel Ziswiler Fix ldo_get_enable() and ldo_set_enable() functions for LDOs with an index > 7. Turns out there are actually two separate AS3722_LDO_CONTROL registers AS3722_LDO_CONTROL0 and AS3722_LDO_CONTROL1. Actually make use of both. While at it also actually use the enable parameter o

[U-Boot] [PATCH v3 0/6] fix apalis-tk1 pcie gigabit ethernet operation

2017-08-09 Thread Marcel Ziswiler
This series addresses a gigabit Ethernet reliability issue as observed on Apalis TK1 related to a PCIe reset timing violation. This series depends on Simon's work available at u-boot-dm/master plus my previous series "move apalis t30/tk1, colibri t20/t30 to livetree". This series is available at

[U-Boot] [PATCH v3 6/6] apalis-tk1: fix pcie reset for reliable gigabit ethernet operation

2017-08-09 Thread Marcel Ziswiler
From: Marcel Ziswiler It turns out that the current PCIe reset implementation in the PCIe board init function is not quite working reliably due to PCIe reset timing violations. Fix this by overriding the tegra_pcie_board_port_reset() function. Also allow optionally bringing up the PCIe switch as

[U-Boot] [PATCH v3 2/6] apalis-tk1: add missing as3722 gpio0 configuration

2017-08-09 Thread Marcel Ziswiler
From: Marcel Ziswiler As the AS3722 GPIO0 is also a not connected on our Apalis TK1 module explicitly configure it to high-impedance as well. Signed-off-by: Marcel Ziswiler Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: - Add Simon's reviewed-by. arch/arm/dts/tegra124-apali

[U-Boot] [PATCH v3 4/6] pci: tegra: introduce weak tegra_pcie_board_port_reset() function

2017-08-09 Thread Marcel Ziswiler
From: Marcel Ziswiler Introduce a weak tegra_pcie_board_port_reset() function by default calling the existing tegra_pcie_port_reset() function. Additionally add a tegra_pcie_port_index_of_port() function to retrieve the specific PCIe port index if required. This allows overriding the PCIe port re

Re: [U-Boot] [PATCHv2 05/10] net: mvpp2x: decrease size of AGGR_TXQ and CPU_DESC_CHUNK

2017-08-09 Thread Joe Hershberger
On Wed, Aug 9, 2017 at 2:37 AM, wrote: > From: Stefan Chulski > > U-boot use single physical tx queue with size 16 descriptors. > So aggregated tx queue size should be equal to physical tx queue > and cpu descriptor chunk(number of descriptors delivered from > physical tx queue to aggregated tx

Re: [U-Boot] [PATCH 5/7] powerpc, 8xx: move FEC Ethernet driver in drivers/net

2017-08-09 Thread Joe Hershberger
On Thu, Jun 29, 2017 at 11:54 AM, Christophe Leroy wrote: > Signed-off-by: Christophe Leroy > --- > README | 15 -- > arch/powerpc/cpu/mpc8xx/Makefile | 1 - > arch/powerpc/cpu/mpc8xx/cpu.c | 2 +- > drivers

Re: [U-Boot] [PATCHv2 04/10] net: mvpp2x: fix BM configuration overrun issue

2017-08-09 Thread Joe Hershberger
On Wed, Aug 9, 2017 at 2:37 AM, wrote: > From: Stefan Chulski > > Issue: > BM counters were overrun by probe that called per Network interface and > caused release of wrong number of buffers during remove procedure. > > Fix: > Use probe_done and num_ports to call init and remove procedure > once

Re: [U-Boot] [PATCHv2 06/10] net: mvpp2x: remove MBUS configurations from MvPP22 driver

2017-08-09 Thread Joe Hershberger
On Wed, Aug 9, 2017 at 2:37 AM, wrote: > From: Stefan Chulski > > MBUS driver were replaced by AXI in PPv22 and relevant > only for PPv21. > > Signed-off-by: Stefan Chulski > Tested-by: iSoC Platform CI > Reviewed-by: Nadav Haklai > Reviewed-by: Igal Liberman Acked-by: Joe Hershberger

Re: [U-Boot] [PATCHv2 07/10] net: mvpp2x: Remove IRQ configuration from U-Boot

2017-08-09 Thread Joe Hershberger
On Wed, Aug 9, 2017 at 2:37 AM, wrote: > From: Stefan Chulski > > Remove IRQ configuration from U-Boot PP driver. > U-Boot don't use interrupts and configuration of IRQ in U-Boot > caused crashes in Linux shared interrupt mode. > Also interrupt use is redundant in RX routine since a single RX >

Re: [U-Boot] [PATCHv2 08/10] net: mvpp2x: Set BM pool high address

2017-08-09 Thread Joe Hershberger
On Wed, Aug 9, 2017 at 2:37 AM, wrote: > From: Stefan Chulski > > MVPP22 driver support 64 Bit arch and require BM pool > high address configuration. > > Signed-off-by: Stefan Chulski > Tested-by: iSoC Platform CI > Reviewed-by: Nadav Haklai > Reviewed-by: Igal Liberman Acked-by: Joe Hershb

Re: [U-Boot] [PATCHv2 10/10] net: mvpp2x: Set BM poll size once during priv probe

2017-08-09 Thread Joe Hershberger
On Wed, Aug 9, 2017 at 2:37 AM, wrote: > From: Stefan Chulski > > Set BM poll size once during priv probe and do not > overwrite it during port probe procedure. Pool is common for > all CP ports. > > Signed-off-by: Stefan Chulski > Tested-by: iSoC Platform CI > Reviewed-by: Nadav Haklai > Rev

Re: [U-Boot] [PATCHv2 09/10] net: mvpp2x: remove TX drain from transmit routine

2017-08-09 Thread Joe Hershberger
On Wed, Aug 9, 2017 at 2:37 AM, wrote: > From: Stefan Chulski > > TX drain in transmit procedure could cause issues due > to race between drain procedure and transmition of descriptor > between AGGR TXQ and physical TXQ. > TXQ will be cleared before moving to Linux by stop procedure. > > Signed-

  1   2   >