Re: [U-Boot] [PATCH] libfdt: use CONFIG_IS_ENABLED for OF_LIBFDT

2017-02-13 Thread Lokesh Vutla
On Monday 13 February 2017 01:04 PM, Vignesh R wrote: > Use CONFIG_IS_ENABLED() macro to check whether OF_LIBFDT is enabled, so > that code block is compiled irrespective of SPL or U-Boot build > depending on CONFIG_SPL_OF_LIBFDT(for SPL) or CONFIG_OF_LIBFDT(for > U-Boot). > > Signed-off-by: Vig

Re: [U-Boot] of-platdata address map decode for 64-bits

2017-02-13 Thread Kever Yang
Hi Simon, On 02/08/2017 01:10 PM, Simon Glass wrote: Hi Kever, On 4 February 2017 at 16:30, Kever Yang wrote: Hi Simon, For rk3399, the data for sdram driver in dts is big, I don't want to do the copy for it, Are you referring to the call to fdtdec_get_int_array()? Don't you have heaps

[U-Boot] [PATCH] regmap: add support for address cell 2

2017-02-13 Thread Kever Yang
ARM64 is using 64bit address which address cell is 2 instead of 1, update to support it when of-platdata enabled. Signed-off-by: Kever Yang --- drivers/core/regmap.c | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/drivers/core/regmap.c b/drivers/core/re

Re: [U-Boot] [PATCH] tiny-printf: add static to locally used functions

2017-02-13 Thread Stefan Roese
On 12.02.2017 10:08, Masahiro Yamada wrote: These two functions are only used in lib/tiny-printf.c . Signed-off-by: Masahiro Yamada --- lib/tiny-printf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tiny-printf.c b/lib/tiny-printf.c index dfa8432..6def8f9 100644

Re: [U-Boot] [PATCH v3] spi: ich: Configure SPI BIOS parameters

2017-02-13 Thread Bin Meng
Hi Stefan, On Fri, Feb 10, 2017 at 6:17 PM, Stefan Roese wrote: > Hi Bin, > > On 10.02.2017 06:45, Bin Meng wrote: > > > > >>> @@ -127,6 +120,44 @@ struct spi_trans { >>> #define SPI_OPCODE_WREN0x06 >>> #define SPI_OPCODE_FAST_READ 0x0b >>> >>> +#define SPI_OPCODE_TYPE_READ_N

[U-Boot] [PATCH] tools: kwbimage: Fix unchecked return value and fd leak

2017-02-13 Thread Mario Six
The return value of fstat was not checked in kwbimage, and in the case of an error, the already open file was not closed. Fix both errors. Reported-by: Coverity (CID: 155971) Reported-by: Coverity (CID: 155969) Signed-off-by: Mario Six --- tools/kwbimage.c | 13 +++-- 1 file changed, 11

[U-Boot] [PATCH 2/2] rsa: Fix deprecated warnings for OpenSSL 1.1.x

2017-02-13 Thread Jelle van der Waa
ERR_remove_thread_state is deprecated in OpenSSL 1.1.x and does not do anything anymore. Thread initialisation and deinitialisation is now handled by the OpenSSL library. Signed-off-by: Jelle van der Waa --- lib/rsa/rsa-sign.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff -

[U-Boot] [PATCH 1/2] rsa: Fix build with OpenSSL 1.1.x

2017-02-13 Thread Jelle van der Waa
The rsa_st struct has been made opaque in 1.1.x, add forward compatible code to access the n, e, d members of rsa_struct. EVP_MD_CTX_cleanup has been removed in 1.1.x and EVP_MD_CTX_reset should be called to reinitialise an already created structure. --- lib/rsa/rsa-sign.c | 33 ++

Re: [U-Boot] U-Boot of-platdata issue

2017-02-13 Thread Kever Yang
Hi Simon, On 01/16/2017 12:15 PM, Simon Glass wrote: Hi Kever, On 15 January 2017 at 18:28, Kever Yang wrote: Hi Simon, I met two issue when using of-platdata 1. compitable name with '.' I get compile error as below: In file included from include/dt-structs.h:16:0, fr

[U-Boot] [PATCH v2 3/9] clk: rk3399: update driver for spl

2017-02-13 Thread Kever Yang
Add ddr clock setting, add rockchip_get_pmucru API, and enable of-platdata support. Signed-off-by: Kever Yang Reviewed-by: Simon Glass --- Changes in v2: None Changes in v1: None arch/arm/include/asm/arch-rockchip/clock.h | 7 ++ arch/arm/include/asm/arch-rockchip/cru_rk3399.h | 5 ++

[U-Boot] [PATCH v2 2/9] arm64: rk3399: move grf register definitions to grf_rk3399.h

2017-02-13 Thread Kever Yang
rk3399 grf register bit defenitions should locate in header file, so that not only pinctrl can use it. Signed-off-by: Kever Yang Reviewed-by: Simon Glass --- Changes in v2: None Changes in v1: None arch/arm/include/asm/arch-rockchip/grf_rk3399.h | 118 drivers/pinctrl

[U-Boot] [PATCH v2 0/9] rk3399: enable SPL driver

2017-02-13 Thread Kever Yang
This series patch enable basic driver for rk3399 SPL, the ATF support has been split as a separate patch. SPL_OF_PLATDATA is consider to be must because the dram driver has much configuration parameter from dts, but we don't want to do the copy. Other driver like clock, pinctrl, sdhci has update

[U-Boot] [PATCH v2 1/9] arm64: rk3399: add ddr controller driver

2017-02-13 Thread Kever Yang
RK3399 support DDR3, LPDDR3, DDR4 sdram, this patch is porting from coreboot, support 4GB lpddr3 in this version. Signed-off-by: Kever Yang --- Changes in v2: - use lower-case hex for input dts data - using rk3288 like style to encode/decode sys_reg - gather some parameters as base params in rk3

[U-Boot] [PATCH v2 5/9] pinctrl: rk3399: add the of-platdata support

2017-02-13 Thread Kever Yang
Do not use the API which of-platdata not support. Signed-off-by: Kever Yang Reviewed-by: Simon Glass --- Changes in v2: None Changes in v1: None drivers/pinctrl/rockchip/pinctrl_rk3399.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/rockchip/pinctrl_r

[U-Boot] [PATCH v2 8/9] arm64: rk3399: add SPL support

2017-02-13 Thread Kever Yang
Add SPL support for rk3399, default with of-platdata enabled. Signed-off-by: Kever Yang --- Changes in v2: - split SPL patch into 4 patches Changes in v1: None arch/arm/Kconfig | 1 + arch/arm/mach-rockchip/Kconfig| 2 + arch/arm/mach-rockchip/Makefile

[U-Boot] [PATCH v2 7/9] dts: rk3399: update for spl require driver

2017-02-13 Thread Kever Yang
Add syscon and dmc node, and 'u-boot,dm-pre-reloc' option for required driver. Signed-off-by: Kever Yang --- Changes in v2: None Changes in v1: None arch/arm/dts/rk3399-evb.dts | 2 ++ arch/arm/dts/rk3399.dtsi| 44 2 files changed, 46 insertion

[U-Boot] [PATCH v2 4/9] sdhci: rk3399: update driver to support of-platdata

2017-02-13 Thread Kever Yang
Change some API in order to enable of-platdata. Signed-off-by: Kever Yang Reviewed-by: Simon Glass --- Changes in v2: None Changes in v1: None drivers/mmc/rockchip_sdhci.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/rockchip_sdhci.c b/driv

[U-Boot] [PATCH v2 6/9] arm64: rk3399: syscon addition for rk3399

2017-02-13 Thread Kever Yang
rk3399 has different syscon registers which may used in spl, add to support rk3399 spl. Signed-off-by: Kever Yang --- Changes in v2: None Changes in v1: None arch/arm/include/asm/arch-rockchip/clock.h| 2 ++ arch/arm/mach-rockchip/rk3399/syscon_rk3399.c | 40 +++ 2

[U-Boot] [PATCH v2 9/9] config: rk3399: enable SPL config for evb-rk3399

2017-02-13 Thread Kever Yang
Enable all the CONFIGs which need by SPL. Signed-off-by: Kever Yang --- Changes in v2: None Changes in v1: None configs/evb-rk3399_defconfig| 18 ++ include/configs/rk3399_common.h | 5 + 2 files changed, 23 insertions(+) diff --git a/configs/evb-rk3399_defconfig b/co

Re: [U-Boot] [PATCH] armv7m: Add SysTick timer driver

2017-02-13 Thread Phil Edworthy
Hi Vikas, On 12 February 2017 20:53, Vikas MANOCHA wrote: > > On Fri, Feb 03, 2017 at 02:48:40PM +, Phil Edworthy wrote: > > > > > The SysTick is a 24-bit down counter that is found on all ARM Cortex > > > M3, M4, M7 devices and is always located at a fixed address. > > > > > > Signed-off-by:

Re: [U-Boot] [PATCH] armv7m: Add SysTick timer driver

2017-02-13 Thread Phil Edworthy
Hi Vikas, On 12 February 2017 21:10, Vikas MANOCHA wrote: > Hi Phil, > > > -Original Message- > > From: Phil Edworthy [mailto:phil.edwor...@renesas.com] > > Sent: Tuesday, February 07, 2017 6:34 AM > > To: Tom Rini > > Cc: Kamil Lulko ; Vikas MANOCHA > ; Michael Kurz ; > > Albert Aribaud

Re: [U-Boot] U-Boot of-platdata issue

2017-02-13 Thread Jaehoon Chung
On 02/13/2017 06:23 PM, Kever Yang wrote: > Hi Simon, > > On 01/16/2017 12:15 PM, Simon Glass wrote: >> Hi Kever, >> >> On 15 January 2017 at 18:28, Kever Yang wrote: >>> Hi Simon, >>> >>> I met two issue when using of-platdata >>> >>> 1. compitable name with '.' >>> I get compile error as b

Re: [U-Boot] [PATCH v4 0/16] sunxi: Add support for the CHIP Pro

2017-02-13 Thread Maxime Ripard
Hi Jagan, Scott, On Mon, Jan 23, 2017 at 02:46:42PM +0100, Maxime Ripard wrote: > The CHIP Pro is a SoM made by NextThing Co, and that embeds a GR8 SIP, an > AXP209 PMIC, a WiFi BT chip and a 512MB SLC NAND. > > Since the first Allwinner device coming whit an SLC NAND that doesn't have > the shor

Re: [U-Boot] [PATCH 1/2] rsa: Fix build with OpenSSL 1.1.x

2017-02-13 Thread Peter Robinson
On Mon, Feb 13, 2017 at 9:00 AM, Jelle van der Waa wrote: > The rsa_st struct has been made opaque in 1.1.x, add forward compatible > code to access the n, e, d members of rsa_struct. > > EVP_MD_CTX_cleanup has been removed in 1.1.x and EVP_MD_CTX_reset should be > called to reinitialise an alread

Re: [U-Boot] [PATCH v4 0/16] sunxi: Add support for the CHIP Pro

2017-02-13 Thread Jagan Teki
On Monday 13 February 2017 03:23 PM, Maxime Ripard wrote: Hi Jagan, Scott, On Mon, Jan 23, 2017 at 02:46:42PM +0100, Maxime Ripard wrote: The CHIP Pro is a SoM made by NextThing Co, and that embeds a GR8 SIP, an AXP209 PMIC, a WiFi BT chip and a 512MB SLC NAND. Since the first Allwinner device

[U-Boot] [PATCH v2 0/6] arm: am57xx: cl-som-am57x: fix usb

2017-02-13 Thread Uri Mashiach
Various USB related comits for the CL-SOM-AM57x module. --- V1 -> V2: Replace commit "fix XHCI registers base address" with "reintroduce the CONFIG_AM57XX symbol". Uri Mashiach (6): arm: am57xx: reintroduce the CONFIG_AM57XX symbol usb: host: xhci-omap: fix double weak board_usb_init functio

[U-Boot] [PATCH v2 1/6] arm: am57xx: reintroduce the CONFIG_AM57XX symbol

2017-02-13 Thread Uri Mashiach
The SOC family symbol CONFIG_AM57XX was removed by the commit 3891a54: "ARM: DRA7x/AM57xx: Get rid of CONFIG_AM57XX". The symbol is needed by the XHCI OMAP USB driver. Without the symbol all the AM57x targets symbols should be ored in the ifdef'ery. Signed-off-by: Uri Mashiach --- V1 -> V2: Repl

[U-Boot] [PATCH v2 2/6] usb: host: xhci-omap: fix double weak board_usb_init functions

2017-02-13 Thread Uri Mashiach
A weak version of the function board_usb_init is implemented in: common/usb.c drivers/usb/host/xhci-omap.c To fix the double implementations: * Convert the board_usb_init function in drivers/usb/host/xhci-omap.c normal (not weak). * The function board_usb_init in drivers/usb/host/xhci-omap.c cal

[U-Boot] [PATCH v2 3/6] arm: am57xx: cl-som-am57x: invoke clock API to enable/disable clocks

2017-02-13 Thread Uri Mashiach
Invoke enable_usb_clocks during board_usb_init and disable_usb_clocks during board_usb_exit to enable and disable clocks respectively. Modifications: * Enable USB clocks in the OMAP version of the function board_usb_init. * Disable USB clocks in the OMAP version of the function board_usb_clean

[U-Boot] [PATCH v2 4/6] arm: am57xx: cl-som-am57x: fix USB scan

2017-02-13 Thread Uri Mashiach
USB bus scan attempt: --cut-- => usb start starting USB... USB0: Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.00 scanning bus 0 for devices... data abort pc : [] lr : [] reloc pc : [<8081b40e>]lr : [<80

[U-Boot] [PATCH v2 5/6] arm: am57xx: cl-som-am57x: enable USB storage

2017-02-13 Thread Uri Mashiach
Add CONFIG_USB_STORAGE to the defconfig file. Signed-off-by: Uri Mashiach Reviewed-by: Tom Rini --- V1 -> V2: none configs/cl-som-am57x_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/cl-som-am57x_defconfig b/configs/cl-som-am57x_defconfig index 916b836..1831f45 100644 --

[U-Boot] [PATCH v2 6/6] arm: am57xx: cl-som-am57x: enable USB commands

2017-02-13 Thread Uri Mashiach
Add CONFIG_CMD_USB to the defconfig file. Signed-off-by: Uri Mashiach Reviewed-by: Tom Rini --- V1 -> V2: none configs/cl-som-am57x_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/cl-som-am57x_defconfig b/configs/cl-som-am57x_defconfig index 1831f45..83d7bd0 100644 --- a/

Re: [U-Boot] [PATCH 1/6] arm: am57xx: cl-som-am57x: fix XHCI registers base address

2017-02-13 Thread Lokesh Vutla
On Sunday 12 February 2017 09:17 PM, Tom Rini wrote: > On Sun, Feb 12, 2017 at 10:55:27AM +0200, Uri Mashiach wrote: >> Hi Tom, >> >> On 02/09/2017 10:29 PM, Tom Rini wrote: >>> On Thu, Feb 09, 2017 at 09:00:26AM +0200, Uri Mashiach wrote: >>> The following XHCI registers base address are se

[U-Boot] am335x: musb: mass storage device issue

2017-02-13 Thread Yegor Yefremov
My am335x based board doesn't detect USB sticks: U-Boot 2017.03-rc1 (Feb 13 2017 - 12:46:54 +0100) CPU : AM335X-GP rev 2.1 I2C: ready DRAM: 256 MiB NAND: 256 MiB MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 Using default environment Net:not set. Validating first E-fuse MAC cpsw Hit any key to

Re: [U-Boot] [PATCH 1/6] arm: am57xx: cl-som-am57x: fix XHCI registers base address

2017-02-13 Thread Uri Mashiach
On 02/13/2017 01:46 PM, Lokesh Vutla wrote: On Sunday 12 February 2017 09:17 PM, Tom Rini wrote: On Sun, Feb 12, 2017 at 10:55:27AM +0200, Uri Mashiach wrote: Hi Tom, On 02/09/2017 10:29 PM, Tom Rini wrote: On Thu, Feb 09, 2017 at 09:00:26AM +0200, Uri Mashiach wrote: The following XHCI

[U-Boot] [PATCH 0/2] omapl: mmc boot help

2017-02-13 Thread Axel Haslam
The omapl-138 board can boot the ais image from mmc, but the right offset needs to be provided to SPL. This series fixes the uboot raw offset config option and adds help text for the user to copy the AIS image to the sd card. Axel Haslam (2): da850: Add instructions to copy AIS image to an MMC

[U-Boot] [PATCH 1/2] da850: Add instructions to copy AIS image to an MMC card

2017-02-13 Thread Axel Haslam
The da850 soc's can boot from a external mmc card, but the AIS image should be written to the correct sector. Add instructions to copy the AIS image to a MMC card. Signed-off-by: Axel Haslam --- board/davinci/da8xxevm/README.da850 | 16 1 file changed, 16 insertions(+) diff --

Re: [U-Boot] [U-Boot, v5, 1/2] gpio: at91_gpio: Remove CPU_HAS_PIO3 macro

2017-02-13 Thread Wenyou.Yang
Hi Andreas, > -Original Message- > From: Andreas Bießmann [mailto:andr...@biessmann.org] > Sent: 2017年2月13日 7:42 > To: Tony Yang - A41535 > Cc: U-Boot Mailing List ; Stephen Warren > > Subject: Re: [U-Boot,v5,1/2] gpio: at91_gpio: Remove CPU_HAS_PIO3 macro > > On Tue, Feb 07, 2017 at 02

Re: [U-Boot] [PATCH v1] usb: gadget: f_dfu: write req->actual bytes

2017-02-13 Thread Felipe Balbi
Hi, Marek Vasut writes: > On 02/10/2017 05:32 PM, Andy Shevchenko wrote: >> From: Felipe Balbi >> >> If last packet is short, we shouldn't write req->length bytes to >> non-volatile media, we should write only what's available to us, which >> is held in req->actual. >> >> Signed-off-by: Felip

Re: [U-Boot] [PATCH v1] usb: gadget: f_dfu: write req->actual bytes

2017-02-13 Thread Felipe Balbi
Hi Lukasz, Lukasz Majewski writes: > Hi Felipe, > > Thanks for the patch. > Please see my comments below. > > On 13 Feb 2017 11:42 am, Felipe Balbi wrote: > > Hi, > > Marek Vasut writes: > > On 02/10/2017 05:32 PM, Andy Shevchenko wrote: > >> From: Felipe Balbi > >> > >> If last pa

[U-Boot] [PATCH 2/2] omapl138_lcdk: Set uboot raw mmc sector to 0x41

2017-02-13 Thread Axel Haslam
The uboot binary on the AIS file starts at offset 0x8000. This would be sector 0x40 on a mmc card with 512 bytes per sector: 0x8000/0x200 = 0x40. But because we usually skip the first mmc sector to preserve the partition table, the ais image is written starting on sector 0x1, and the u-boot binary

Re: [U-Boot] [PATCH 1/2] kconfig: re-sync with Linux 4.10

2017-02-13 Thread Tom Rini
On Sat, Feb 11, 2017 at 12:39:54PM +0900, Masahiro Yamada wrote: > Re-sync all files under the scripts/kconfig directory with > Linux 4.10. > > Some parts include U-Boot own modification. I made sure to not > revert the following commits: > > 5b8031ccb4ed ("Add more SPDX-License-Identifier tag

Re: [U-Boot] [PATCH 2/2] i2c: sandbox: remove code snippet from Kconfig help

2017-02-13 Thread Tom Rini
On Sat, Feb 11, 2017 at 12:39:55PM +0900, Masahiro Yamada wrote: > With the Kconfig re-sync with Linux 4.10, characters such as > '}', ';' in Kconfig help message cause warnings: > > $ make defconfig > *** Default configuration is based on 'sandbox_defconfig' > drivers/i2c/Kconfig:132:warning: ig

Re: [U-Boot] [PATCH 1/6] arm: am57xx: cl-som-am57x: fix XHCI registers base address

2017-02-13 Thread Lokesh Vutla
On Monday 13 February 2017 05:42 PM, Uri Mashiach wrote: > > > On 02/13/2017 01:46 PM, Lokesh Vutla wrote: >> >> >> On Sunday 12 February 2017 09:17 PM, Tom Rini wrote: >>> On Sun, Feb 12, 2017 at 10:55:27AM +0200, Uri Mashiach wrote: Hi Tom, On 02/09/2017 10:29 PM, Tom Rini wrot

[U-Boot] [PATCH 0/3] ARM: AM43xx: Enable SPL_DM

2017-02-13 Thread Lokesh Vutla
Enable SPL_DM on all AM4xx based boards. This series depends on: - DRA7 SPL_DM series[1] - http://patchwork.ozlabs.org/patch/727106/ [1] https://www.mail-archive.com/u-boot@lists.denx.de/msg238751.html Lokesh Vutla (3): ARM: dts: am43xx: Add u-boot specific dtsi config: am43xx_usbhost_boot:

[U-Boot] [PATCH 1/3] ARM: dts: am43xx: Add u-boot specific dtsi

2017-02-13 Thread Lokesh Vutla
Add u-boot specific dtsi for am43xx-gp-evm so that it will be used for SPL. Signed-off-by: Lokesh Vutla --- arch/arm/dts/am437x-gp-evm-u-boot.dtsi | 38 ++ 1 file changed, 38 insertions(+) create mode 100644 arch/arm/dts/am437x-gp-evm-u-boot.dtsi diff --git a/ar

[U-Boot] [PATCH 2/3] config: am43xx_usbhost_boot: sync with am43xx_evm

2017-02-13 Thread Lokesh Vutla
am43xx_evm defconfig has been modified without making changes in am43xx_usbhost_boot defconfig. Synce here. Signed-off-by: Lokesh Vutla --- - The only reason to have usbhost defconfig is that the load address is different from that of other bootmodes. configs/am43xx_evm_usbhost_boot_defconfig

[U-Boot] [PATCH 3/3] configs: am43xx_evm: Enable SPL_DM

2017-02-13 Thread Lokesh Vutla
Enable SPL_DM on all AM43xx based platforms Signed-off-by: Lokesh Vutla --- configs/am43xx_evm_defconfig | 7 ++- configs/am43xx_evm_usbhost_boot_defconfig | 7 ++- configs/am43xx_hs_evm_defconfig | 7 ++- include/configs/am43xx_evm.h | 4 4 f

[U-Boot] Fwd: how to trigger DM rescan ?

2017-02-13 Thread Hannes Schmelzer
Hi Simon, forwarding this directly to you since nobody did response on the mailinglist. Maybe you have some suggestion to me. many thanks, Hannes Forwarded Message Subject:how to trigger DM rescan ? Date: Wed, 8 Feb 2017 08:05:31 +0100 From: Hannes Schmelzer To

[U-Boot] ZYNQ direct MAC connection

2017-02-13 Thread Hannes Schmelzer
Hello, did anybody setup successfully setup a direct MAC connection using RGMII with a zynq ? For example to a switch. The zynq_gem driver wants to probe for phy by itself. I already made a connection with very bad hacks in various files. In linux such things are working with "fixed-link". Al

Re: [U-Boot] [PATCH 2/2] omapl138_lcdk: Set uboot raw mmc sector to 0x41

2017-02-13 Thread Tom Rini
On Mon, Feb 13, 2017 at 11:44:57AM +0100, Axel Haslam wrote: > The uboot binary on the AIS file starts at offset 0x8000. > This would be sector 0x40 on a mmc card with 512 bytes per > sector: 0x8000/0x200 = 0x40. > > But because we usually skip the first mmc sector to preserve > the partition tabl

Re: [U-Boot] [PATCH v2 1/6] arm: am57xx: reintroduce the CONFIG_AM57XX symbol

2017-02-13 Thread Tom Rini
On Mon, Feb 13, 2017 at 01:34:52PM +0200, Uri Mashiach wrote: > The SOC family symbol CONFIG_AM57XX was removed by the commit > 3891a54: "ARM: DRA7x/AM57xx: Get rid of CONFIG_AM57XX". > > The symbol is needed by the XHCI OMAP USB driver. > Without the symbol all the AM57x targets symbols should b

[U-Boot] [PATCH 00/10] Add Marvell ESPRESSOBin community board support

2017-02-13 Thread kostap
From: Konstantin Porotchkin This patch set adds support for Marvell ESPRESSOBin community board. The Marvell ESPRESSOBin is a tiny board made by Globalscale and available on KickStarter site. It has (current board version 3.1.1): - Dual core Cortex-A53 @1.2GHz CPU (Marvell Armada-3720) - 512MB/1G

[U-Boot] [PATCH 01/10] arm64: a37xx: Enable Marvell ETH PHY support

2017-02-13 Thread kostap
From: Konstantin Porotchkin Enable support for Marvell Ethernet PHYs on A37xx platforms Signed-off-by: Konstantin Porotchkin Cc: Stefan Roese Cc: Igal Liberman --- include/configs/mvebu_db-88f3720.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/mvebu_db-88f3720.h b/inc

[U-Boot] [PATCH 02/10] arm64: a37xx: Enable bubt command support on A3720-DB

2017-02-13 Thread kostap
From: Konstantin Porotchkin Enable mvebu bubt command support on A3720 DB Signed-off-by: Konstantin Porotchkin Cc: Stefan Roese Cc: Igal Liberman --- configs/mvebu_db-88f3720_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/mvebu_db-88f3720_defconfig b/configs/mvebu_

[U-Boot] [PATCH 03/10] arm64: a37xx: dts: Add pin control nodes to DT

2017-02-13 Thread kostap
From: Konstantin Porotchkin Add pin control nodes for North and South bridges to Armada-37xx DT Signed-off-by: Konstantin Porotchkin Cc: Stefan Roese Cc: Igal Liberman --- arch/arm/dts/armada-37xx.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/dts/armada-37

[U-Boot] [PATCH 06/10] mvebu: neta: a37xx: Add fixed link support to neta driver

2017-02-13 Thread kostap
From: Konstantin Porotchkin Add support for fixed link to NETA driver. This feature requred for proper support of SFP modules and onboard connected devices like Ethernet switches Signed-off-by: Konstantin Porotchkin Signed-off-by: Terry Zhou Cc: Stefan Roese Cc: Igal Liberman --- drivers/ne

[U-Boot] [PATCH 07/10] mvebu: a37xx: Add init for ESPRESSBin Topaz switch

2017-02-13 Thread kostap
From: Konstantin Porotchkin Implement the board-specific network init function for ESPRESSOBin community board, setting the on-board Topaz switch port to forward mode and allow network connection through any of the available Etherenet ports. Signed-off-by: Konstantin Porotchkin Cc: Stefan Roese

[U-Boot] [PATCH 04/10] arm64: a37xx: Handle pin controls in early board init

2017-02-13 Thread kostap
From: Konstantin Porotchkin Fix the default pin control values in a board-specific function on early board init stage. This fix allows the NETA driver to work in RGMII mode until the full-featured pin control driver gets introduced. Signed-off-by: Konstantin Porotchkin Cc: Stefan Roese Cc: Iga

[U-Boot] [PATCH 08/10] arm64: dts: Add device tree for ESPRESSOBin board

2017-02-13 Thread kostap
From: Konstantin Porotchkin Initial DTS file for Marvell ESPRESSOBin comunity board based on Armada-3720 SoC. The Marvell ESPRESSOBin is a tiny board made by Globalscale and available on KickStarter site. It has dual core Armv8 Marvell SoC (Armada-3720) with 512MB/1GB/2GB DDR3 RAM, mini-PCIe 2.0

[U-Boot] [PATCH 05/10] mvebu: neta: Add support for board init function

2017-02-13 Thread kostap
From: Konstantin Porotchkin Add ability to use board-specific initialization flow to NETA driver (for instance Ethernet switch bring-up) Signed-off-by: Konstantin Porotchkin Cc: Stefan Roese Cc: Igal Liberman --- drivers/net/mvneta.c | 16 +++- 1 file changed, 15 insertions(+), 1

[U-Boot] [PATCH 09/10] arm64: mvebu: Add default config for ESPRESSOBin board

2017-02-13 Thread kostap
From: Konstantin Porotchkin Add initial default configuration for Marvell ESPRESSOBin community board based on Aramda-3720 SoC Signed-off-by: Konstantin Porotchkin Cc: Stefan Roese Cc: Igal Liberman --- configs/mvebu_espressobin-88f3720_defconfig | 67 + 1 file ch

[U-Boot] [PATCH 10/10] arm64: a3720: Disable DB configurations on ESPRESSOBin board

2017-02-13 Thread kostap
From: Konstantin Porotchkin Bypass XHCI and AHCi board configuration flow on ESPRESSOBin community board. The community board does not have i2c expander and USB VBUS is always on, so the scan for AHCi and USB devices can be faster. Signed-off-by: Konstantin Porotchkin Cc: Stefan Roese Cc: Igal

Re: [U-Boot] [PATCH v1] usb: gadget: f_dfu: write req->actual bytes

2017-02-13 Thread Lukasz Majewski
Hi Felipe, > > Hi Lukasz, > > Lukasz Majewski writes: > > Hi Felipe, > > > > Thanks for the patch. > > Please see my comments below. > > > > On 13 Feb 2017 11:42 am, Felipe Balbi > > wrote: > > > > Hi, > > > > Marek Vasut writes: > > > On 02/10/2017 05:32 PM, Andy Shevchenko wrote: > >

Re: [U-Boot] [PATCH 2/2] omapl138_lcdk: Set uboot raw mmc sector to 0x41

2017-02-13 Thread Axel Haslam
Hi Tom On Mon, Feb 13, 2017 at 2:23 PM, Tom Rini wrote: > On Mon, Feb 13, 2017 at 11:44:57AM +0100, Axel Haslam wrote: >> The uboot binary on the AIS file starts at offset 0x8000. >> This would be sector 0x40 on a mmc card with 512 bytes per >> sector: 0x8000/0x200 = 0x40. >> >> But because we us

Re: [U-Boot] [PATCH 2/2] omapl138_lcdk: Set uboot raw mmc sector to 0x41

2017-02-13 Thread Tom Rini
On Mon, Feb 13, 2017 at 03:14:28PM +0100, Axel Haslam wrote: > Hi Tom > > On Mon, Feb 13, 2017 at 2:23 PM, Tom Rini wrote: > > On Mon, Feb 13, 2017 at 11:44:57AM +0100, Axel Haslam wrote: > >> The uboot binary on the AIS file starts at offset 0x8000. > >> This would be sector 0x40 on a mmc card w

Re: [U-Boot] am335x: musb: mass storage device issue

2017-02-13 Thread Belisko Marek
Hi Yegor, On Mon, Feb 13, 2017 at 12:57 PM, Yegor Yefremov wrote: > My am335x based board doesn't detect USB sticks: > > U-Boot 2017.03-rc1 (Feb 13 2017 - 12:46:54 +0100) > > CPU : AM335X-GP rev 2.1 > I2C: ready > DRAM: 256 MiB > NAND: 256 MiB > MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 > Using

Re: [U-Boot] [PATCH 2/2] omapl138_lcdk: Set uboot raw mmc sector to 0x41

2017-02-13 Thread Axel Haslam
On Mon, Feb 13, 2017 at 3:17 PM, Tom Rini wrote: > On Mon, Feb 13, 2017 at 03:14:28PM +0100, Axel Haslam wrote: >> Hi Tom >> >> On Mon, Feb 13, 2017 at 2:23 PM, Tom Rini wrote: >> > On Mon, Feb 13, 2017 at 11:44:57AM +0100, Axel Haslam wrote: >> >> The uboot binary on the AIS file starts at offse

[U-Boot] [GIT PULL] Xilinx fixes

2017-02-13 Thread Michal Simek
Hi Tom, here are some fixes, please pull them to your tree. Mike: I have rebased your origin patches because of some conflicts. Please check when they are applied. Thanks, Michal The following changes since commit f1cc97764be4383d2aeb56d5ba5415439a1d5c97: Merge branch 'master' of git://git.

[U-Boot] [PATCH v1] mmc: pci: only compile on platforms that need it

2017-02-13 Thread Andy Shevchenko
From: Felipe Balbi We should only compile pci_mmc.c on platforms that actually need this. Some platforms are using generic sdhci through driver model. Signed-off-by: Felipe Balbi Signed-off-by: Andy Shevchenko --- drivers/mmc/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)

Re: [U-Boot] [PATCH v1] usb: gadget: f_dfu: write req->actual bytes

2017-02-13 Thread Andy Shevchenko
On Mon, 2017-02-13 at 14:41 +0100, Lukasz Majewski wrote: > > [1] https://github.com/andy-shev/u-boot/tree/edison > > [2] https://communities.intel.com/message/435516#435516 > > > > Ok. I will check this. Thanks for pointing out :-) Just in case, mentioned branch is occasionally rebased, so, fo

Re: [U-Boot] am335x: musb: mass storage device issue

2017-02-13 Thread Yegor Yefremov
On Mon, Feb 13, 2017 at 3:17 PM, Belisko Marek wrote: > Hi Yegor, > > On Mon, Feb 13, 2017 at 12:57 PM, Yegor Yefremov > wrote: >> >> My am335x based board doesn't detect USB sticks: >> >> U-Boot 2017.03-rc1 (Feb 13 2017 - 12:46:54 +0100) >> >> CPU : AM335X-GP rev 2.1 >> I2C: ready >> DRAM: 2

[U-Boot] [PATCH v2 3/4] drivers: ti_qspi: use syscon to get the address ctrl_mod_mmap register

2017-02-13 Thread Jean-Jacques Hiblot
We used to get the address of the optionnal ctrl_mod_mmap register as the third memory range of the "reg" property. the linux driver moved to use a syscon instead. In order to keep the DTS as close as possible to that of linux, we move to using a syscon as well. If SYSCON is not supported, the dri

[U-Boot] [PATCH v2 1/4] libfdt: Allow the SPL to perform fdt address translation

2017-02-13 Thread Jean-Jacques Hiblot
Use OF_TRANSLATE for both u-boot and SPL to tell whether fdt address translation should be used. Signed-off-by: Jean-Jacques Hiblot --- to: s...@chromium.org lib/fdtdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fdtdec.c b/lib/fdtdec.c index 81f47ef..1edfbf2 10064

[U-Boot] [PATCH v2 0/4] driver: ti_qspi: Use a SYSCON device to map the ctrl_mod_mmap register

2017-02-13 Thread Jean-Jacques Hiblot
This series allows the ti_qspi driver to use the same dts description as the linux kernel. In Linux since 4.6 the ctrl_mod_mmap is described in the DTS as a syscon. It used to be the 3rd memory range in "reg". The first two patches of this series are generic ones: * Allow the SPL version of fdtde

[U-Boot] [PATCH v2 4/4] configs: dra7x/am57x: Enable the SYSCON and REGMAP features

2017-02-13 Thread Jean-Jacques Hiblot
This is required by the ti_qspi driver to get from the DTS the address of the ctrl_mod_mmap register in SPL and in u-boot. Signed-off-by: Jean-Jacques Hiblot --- configs/am57xx_evm_defconfig| 6 ++ configs/am57xx_hs_evm_defconfig | 6 ++ configs/dra7xx_evm_defconfig| 6 ++ co

[U-Boot] [PATCH v2 2/4] regmap: use fdt address translation

2017-02-13 Thread Jean-Jacques Hiblot
In the DTS, the addresses are defined relative to the parent bus. We need to translate them to get the address as seen by the CPU core. Signed-off-by: Jean-Jacques Hiblot --- to: s...@chromium.org drivers/core/regmap.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff

Re: [U-Boot] [PATCH v2 1/4] libfdt: Allow the SPL to perform fdt address translation

2017-02-13 Thread Jean-Jacques Hiblot
On 13/02/2017 16:41, Lokesh Vutla wrote: On 2/13/2017 8:47 PM, Jean-Jacques Hiblot wrote: Use OF_TRANSLATE for both u-boot and SPL to tell whether fdt address translation should be used. Signed-off-by: Jean-Jacques Hiblot Vignesh has posted a similar patch[1]. Sorry, I had missed this one

Re: [U-Boot] [PATCH 2/2] omapl138_lcdk: Set uboot raw mmc sector to 0x41

2017-02-13 Thread Axel Haslam
Hi Tom On Mon, Feb 13, 2017 at 3:23 PM, Axel Haslam wrote: > On Mon, Feb 13, 2017 at 3:17 PM, Tom Rini wrote: >> On Mon, Feb 13, 2017 at 03:14:28PM +0100, Axel Haslam wrote: >>> Hi Tom >>> >>> On Mon, Feb 13, 2017 at 2:23 PM, Tom Rini wrote: >>> > On Mon, Feb 13, 2017 at 11:44:57AM +0100, Axel

Re: [U-Boot] [PATCH v2 1/4] libfdt: Allow the SPL to perform fdt address translation

2017-02-13 Thread Lokesh Vutla
On 2/13/2017 8:47 PM, Jean-Jacques Hiblot wrote: > Use OF_TRANSLATE for both u-boot and SPL to tell whether fdt address > translation should be used. > > Signed-off-by: Jean-Jacques Hiblot Vignesh has posted a similar patch[1]. [1]http://patchwork.ozlabs.org/patch/727131/ Thanks and regards,

[U-Boot] [PATCH 1/3] ARM: uniphier: move MMC code to a separate file

2017-02-13 Thread Masahiro Yamada
Currently, arch/arm/mach-uniphier/boot-mode/boot-mode.c is messed up with unrelated code; there is no reason why the "mmcsetn" command must be placed in this file. Split out the MMC code into arch/arm/mach-uniphier/mmc-first-dev.c. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/Make

[U-Boot] [PATCH 2/3] ARM: uniphier: move spl_boot_mode() to a separate file

2017-02-13 Thread Masahiro Yamada
The spl_boot_mode() is unrelated to the other code in this file. Besides, this function is only called from common/spl/spl_mmc.c, so it is reasonable to guard with CONFIG_SPL_MMC_SUPPORT. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/Makefile | 1 + arch/arm/mach-uniph

[U-Boot] [PATCH 3/3] ARM: uniphier: rework spl_boot_device() and related code

2017-02-13 Thread Masahiro Yamada
The current implementation has ugly switch statements here and there, and duplicates similar code. Rework it using table lookups for SoC data and reduce code duplication. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/Makefile| 2 +- arch/arm/mach-uniphier/boar

Re: [U-Boot] [PATCH v2 2/6] usb: host: xhci-omap: fix double weak board_usb_init functions

2017-02-13 Thread Marek Vasut
On 02/13/2017 12:35 PM, Uri Mashiach wrote: > A weak version of the function board_usb_init is implemented in: > common/usb.c > drivers/usb/host/xhci-omap.c > > To fix the double implementations: > * Convert the board_usb_init function in drivers/usb/host/xhci-omap.c > normal (not weak). > * The

Re: [U-Boot] [PATCH v3 3/3] sunxi: add support for Lichee Pi Zero

2017-02-13 Thread Icenowy Zheng
2017年2月13日 15:17于 Maxime Ripard 写道: > > Hi, > > On Sat, Feb 11, 2017 at 07:11:02PM +0800, Icenowy Zheng wrote: > > @@ -0,0 +1,13 @@ > > +CONFIG_ARM=y > > +CONFIG_ARCH_SUNXI=y > > +# CONFIG_ARMV7_NONSEC is not set > > Why? It doesn't have Trustzone? The CPU has Secure mode, but no TrustZone

Re: [U-Boot] [PATCH v2 2/6] usb: host: xhci-omap: fix double weak board_usb_init functions

2017-02-13 Thread Tom Rini
On Mon, Feb 13, 2017 at 01:35:40PM +0200, Uri Mashiach wrote: > A weak version of the function board_usb_init is implemented in: > common/usb.c > drivers/usb/host/xhci-omap.c [snip] > diff --git a/board/ti/dra7xx/evm.c b/board/ti/dra7xx/evm.c > index bd1c809..21fa824 100644 > --- a/board/ti/dra7xx

[U-Boot] [PATCH] arm: am57xx: Set serial# variable

2017-02-13 Thread Sam Protsenko
serial# variable is used to correctly display device ID in "fastboot devices". It also can be used further for displaying device ID in "adb devices" (should be passed as "androidboot.serialno" to kernel cmdline, via "bootargs" variable). Serial number generating algorithm is described at [1]. [1]

Re: [U-Boot] [PATCH] arm: am57xx: Set serial# variable

2017-02-13 Thread Tom Rini
On Mon, Feb 13, 2017 at 07:09:37PM +0200, Sam Protsenko wrote: > serial# variable is used to correctly display device ID in > "fastboot devices". It also can be used further for displaying device ID > in "adb devices" (should be passed as "androidboot.serialno" to kernel > cmdline, via "bootargs"

Re: [U-Boot] [PATCH 2/2] omapl138_lcdk: Set uboot raw mmc sector to 0x41

2017-02-13 Thread Tom Rini
On Mon, Feb 13, 2017 at 05:11:09PM +0100, Axel Haslam wrote: > Hi Tom > > On Mon, Feb 13, 2017 at 3:23 PM, Axel Haslam wrote: > > On Mon, Feb 13, 2017 at 3:17 PM, Tom Rini wrote: > >> On Mon, Feb 13, 2017 at 03:14:28PM +0100, Axel Haslam wrote: > >>> Hi Tom > >>> > >>> On Mon, Feb 13, 2017 at 2:

[U-Boot] [PATCH] da850: Add instructions to copy AIS image to an MMC card

2017-02-13 Thread Axel Haslam
The da850 soc's can boot from a external mmc card, but the AIS image should be written to the correct sector. Add instructions to copy the AIS image to a MMC card. Signed-off-by: Axel Haslam --- board/davinci/da8xxevm/README.da850 | 23 +++ 1 file changed, 23 insertions(+)

[U-Boot] [PATCH v4 2/6] spl: Add option to enable SPL Legacy image support

2017-02-13 Thread Andrew F. Davis
Add a Kconfig option that enables Legacy image support, this allows boards to explicitly disable this, for instance when needed for security reasons. Signed-off-by: Andrew F. Davis Reviewed-by: Simon Glass --- Kconfig | 8 common/spl/spl.c | 10 -- 2 files changed, 16

[U-Boot] [PATCH v4 3/6] ARM: AM335x: Disable non-FIT based image loading for HS devices

2017-02-13 Thread Andrew F. Davis
Disable support for loading non-FIT images for AM335x platforms using the high-security (HS) device variant. Signed-off-by: Andrew F. Davis Reviewed-by: Simon Glass --- configs/am335x_hs_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/am335x_hs_evm_defconfig b/config

[U-Boot] [PATCH v4 6/6] ARM: DRA7xx: Disable non-FIT based image loading for HS devices

2017-02-13 Thread Andrew F. Davis
Disable support for loading non-FIT images for DRA7xx platforms using the high-security (HS) device variant. Signed-off-by: Andrew F. Davis Reviewed-by: Simon Glass --- configs/dra7xx_hs_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/dra7xx_hs_evm_defconfig b/config

[U-Boot] [PATCH v4 0/6] Allow disabling non-FIT image loading from SPL

2017-02-13 Thread Andrew F. Davis
Hello all, To address a needed feature brought up by Andreas[0], we need a way to disable SPL from loading non-FIT images. The function spl_parse_image_header is common to all SPL loading paths (common/spl/spl_(nand|net|nor|etc..)) so we add the check here. This version of the series is a bit di

[U-Boot] [PATCH v4 4/6] ARM: AM43xx: Disable non-FIT based image loading for HS devices

2017-02-13 Thread Andrew F. Davis
Disable support for loading non-FIT images for AM43xx platforms using the high-security (HS) device variant. Signed-off-by: Andrew F. Davis Reviewed-by: Simon Glass --- configs/am43xx_hs_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/am43xx_hs_evm_defconfig b/config

[U-Boot] [PATCH v4 1/6] spl: Convert CONFIG_SPL_ABORT_ON_RAW_IMAGE into a positive option

2017-02-13 Thread Andrew F. Davis
CONFIG_SPL_ABORT_ON_RAW_IMAGE causes SPL to abort and move on when it encounters RAW images, express this same functionality as a positive option enabling support for RAW images: CONFIG_SPL_RAW_IMAGE_SUPPORT Signed-off-by: Andrew F. Davis --- Kconfig | 7 +++ READM

[U-Boot] [PATCH v4 5/6] ARM: AM57xx: Disable non-FIT based image loading for HS devices

2017-02-13 Thread Andrew F. Davis
Disable support for loading non-FIT images for AM57xx platforms using the high-security (HS) device variant. Signed-off-by: Andrew F. Davis Reviewed-by: Simon Glass --- configs/am57xx_hs_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/am57xx_hs_evm_defconfig b/config

Re: [U-Boot] [RFC PATCH] mmc: omap_hsmmc: convert to use dm block devies

2017-02-13 Thread Grygorii Strashko
On 02/10/2017 10:21 AM, Simon Glass wrote: > Hi, > > On 2 February 2017 at 15:18, Grygorii Strashko > wrote: >> >> Convert OMAP hsmmc driver to use driver-model block devices. >> >> Signed-off-by: Grygorii Strashko >> --- >> Hi All, >> >> First of all, sorry if my questions/problems are looks

Re: [U-Boot] [PATCH v6 1/2] gpio: at91_gpio: Remove CPU_HAS_PIO3 macro

2017-02-13 Thread Andreas Bießmann
Dear Wenyou, On 13.02.17 03:07, Wenyou Yang wrote: > The intention of this patch is the preparation to introduce > the pinctrl driver for AT91 PIO. > > Use "union" to make the PIO3 and PIO2's registers be together > and make their offset aligned. unfortunately there is another breakage in this p

Re: [U-Boot] [PATCH v9 0/2] SPL: Add support to boot a partition type

2017-02-13 Thread Dalon Westergreen
On Sat, 2017-02-11 at 04:41 +0100, Marek Vasut wrote: > On 02/11/2017 02:15 AM, Dalon Westergreen wrote: > > > > This adds support for the spl to seach for and boot from an arbitrary > > partition type rather then a specific partition number.  When > > USE_PARTITION_TYPE is enabled, spl will searc

  1   2   >