Re: [U-Boot] mtd: spi-nor: new NXP FlexSPI driver location & framework to use ?

2018-05-17 Thread Jagan Teki
On Thu, May 17, 2018 at 4:49 PM, Prabhakar Kushwaha wrote: > Dear Jagan, > >> -Original Message- >> From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of >> Prabhakar Kushwaha >> Sent: Monday, May 14, 2018 6:55 PM >> To: Jagan Teki

Re: [U-Boot] [PATCH 01/12] ARM: socfpga: Sync A10 clock manager binding parser

2018-05-17 Thread Chee, Tien Fong
On Thu, 2018-05-17 at 11:38 +0200, Marek Vasut wrote: > On 05/17/2018 10:44 AM, Chee, Tien Fong wrote: > > > > On Thu, 2018-05-17 at 10:24 +0200, Marek Vasut wrote: > > > > > > On 05/17/2018 06:38 AM, Chee, Tien Fong wrote: > > > > > > > > > > > > On Sat, 2018-05-12 at 22:30 +0200, Marek Vasut

Re: [U-Boot] mtd: spi-nor: new NXP FlexSPI driver location & framework to use ?

2018-05-17 Thread Prabhakar Kushwaha
Dear Jagan, > -Original Message- > From: Jagan Teki [mailto:jagannadh.t...@gmail.com] > Sent: Friday, May 18, 2018 10:24 AM > To: Prabhakar Kushwaha > Cc: u-boot@lists.denx.de > Subject: Re: mtd: spi-nor: new NXP FlexSPI driver location & framework to > use ?

Re: [U-Boot] [PATCH v3 1/7] i.MX6: board: Add BTicino i.MX6DL Mamoj initial support

2018-05-17 Thread Jagan Teki
On Thu, May 17, 2018 at 3:16 PM, Stefano Babic wrote: > Hi Jagan, > > On 07/05/2018 07:51, Jagan Teki wrote: >> Add initial support for i.MX6DL BTicino Mamoj board. >> >> Mamoh board added: >> - SPL >> - SPL_DM >> - SPL_OF_CONTROL >> - DM for U-Boot proper >> - OF_CONTROL for

Re: [U-Boot] [PATCH 1/3] doc: Add new doc for file system firmware loader driver model

2018-05-17 Thread Chee, Tien Fong
On Thu, 2018-05-17 at 07:11 -0400, Tom Rini wrote: > On Thu, May 17, 2018 at 04:27:27AM +, Chee, Tien Fong wrote: > > > > On Wed, 2018-05-16 at 08:48 -0400, Tom Rini wrote: > > > > > > On Wed, May 16, 2018 at 05:21:39PM +0800, tien.fong.c...@intel.co > > > m > > > wrote: > > > > > > > > >

Re: [U-Boot] [PATCH V6 1/2] imx6: Convert sabrelite and nitrogen6x boards to distro boot support

2018-05-17 Thread Denis Pynkin
On 04/18/2018 06:04 PM, Guillaume GARDET wrote: Boot tested on sabrelite board. Signed-off-by: Guillaume GARDET Cc: Troy Kisky Cc: Stefano Babic Cc: Fabio Estevam Cc: Gary Bisson

Re: [U-Boot] [PATCH] arm: kirkwood: openrd: Change environment location

2018-05-17 Thread Chris Packham
On Thu, May 17, 2018 at 7:08 PM Stefan Roese wrote: > With GCC 7.3 and the addition of device-tree to Kirkwood, the U-Boot > image does not fit any more into its 0x6 area. Let's move the > environment so that U-Boot will fit also with the upcoming changes > for Kirkwood (add DM

[U-Boot] [UBOOT PATCH] env: mmc: Fix misaligned buffer address when saving envvars to FAT

2018-05-17 Thread Vipul Kumar
From: Gary Mussar When doing a u-boot saveenv with the environment in FAT we see the following warning: ZynqMP> saveenv Saving Environment to FAT... writing uboot.env FAT: Misaligned buffer address (7deb9b60) done This can be eliminated by aligning the environment to

[U-Boot] [RFC PATCH 3/3] sunxi: store DRAM size in SPL header

2018-05-17 Thread Andre Przywara
At the moment we rely on the infamous get_ram_size() function to learn the actual DRAM size in U-Boot proper. This function has two issues: 1) It only works if the DRAM size is a power of two. We start to see boards which have 3GB of (usable) DRAM, so this does not fit anymore. 2) As U-Boot has no

Re: [U-Boot] [RFC PATCH 0/3] sunxi: extend SPL header to propagate DRAM size

2018-05-17 Thread Icenowy Zheng
于 2018年5月17日 GMT+08:00 下午4:16:58, Andre Przywara 写到: >This series tries to solve three issues we currently have on >Allwinner boards: >- The DRAM sizing routine can only cope with power-of-two sized DRAM. >- The DRAM sizing routine steps through all DRAM, possibly

Re: [U-Boot] [PATCH] net: MVGBE don't automatically select PHYLIB

2018-05-17 Thread Stefan Roese
On 17.05.2018 11:03, Chris Packham wrote: Not all users of MVGBE need PHYLIB and it increases the size of the openrd images too much. Fixes: commit ed52ea507f12 ("net: add Kconfig for MVGBE") Signed-off-by: Chris Packham Cc: Tom Rini Cc: Stefan

Re: [U-Boot] [PATCH 1/6] usb: dwc3: Add dwc3_init/remove with DM_USB

2018-05-17 Thread Michal Simek
On 16.5.2018 16:40, Marek Vasut wrote: > On 05/16/2018 04:26 PM, Michal Simek wrote: >> From: Mugunthan V N >> >> The patch is preparing dwc3 core for enabling DM_USB with peripheral >> driver with using driver model support. >> The driver will be bound by the DWC3 wrapper

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

2018-05-17 Thread Stefan Roese
Hi Chris, On 17.05.2018 10:45, Chris Packham wrote: On Thu, May 17, 2018 at 8:36 PM Chris Packham wrote: On Thu, May 17, 2018 at 3:37 AM Tom Rini wrote: On Wed, May 16, 2018 at 02:05:03PM +0200, Stefan Roese wrote: Hi Tom, please pull the

[U-Boot] [PATCH 2/6] ARM: kirkwood: Add device-tree for dreamplug

2018-05-17 Thread Chris Packham
Import the dts file from Linux 4.17 and enable CONFIG_OF_CONTROL. Signed-off-by: Chris Packham --- arch/arm/dts/kirkwood-dreamplug.dts | 127 configs/dreamplug_defconfig | 3 +- 2 files changed, 129 insertions(+), 1 deletion(-)

Re: [U-Boot] [PATCH 1/6] usb: dwc3: Add dwc3_init/remove with DM_USB

2018-05-17 Thread Marek Vasut
On 05/17/2018 09:40 AM, Michal Simek wrote: > On 16.5.2018 16:40, Marek Vasut wrote: >> On 05/16/2018 04:26 PM, Michal Simek wrote: >>> From: Mugunthan V N >>> >>> The patch is preparing dwc3 core for enabling DM_USB with peripheral >>> driver with using driver model support.

Re: [U-Boot] [PATCH 3/6] usb: dwc3: Add generic DWC3 glue logic driver

2018-05-17 Thread Marek Vasut
On 05/17/2018 08:27 AM, Michal Simek wrote: > On 16.5.2018 16:41, Marek Vasut wrote: >> On 05/16/2018 04:26 PM, Michal Simek wrote: >>> By enabling BLK by default this is the next driver which needs to get >>> support for DM_USB. Adding generic DWC3 glue logic which only >>> parse nodes and read

Re: [U-Boot] [PATCH V6 0/2] Update sabrelite and nitrogen6x boards to use distro boot support

2018-05-17 Thread Stefano Babic
Hi Guillaume, On 18/04/2018 17:04, Guillaume GARDET wrote: > This patch serie updates sabrelite and nitrogen6x boards to use distro boot > support. > Sabrelite has been boot tested with boot.scr script and EFI/Grub2 on mmc0 and > mmc1 slots. > Nitrogen6* boards have been build tested only. > >

Re: [U-Boot] [PATCH v3 1/7] i.MX6: board: Add BTicino i.MX6DL Mamoj initial support

2018-05-17 Thread Stefano Babic
Hi Jagan, On 07/05/2018 07:51, Jagan Teki wrote: > Add initial support for i.MX6DL BTicino Mamoj board. > > Mamoh board added: > - SPL > - SPL_DM > - SPL_OF_CONTROL > - DM for U-Boot proper > - OF_CONTROL for U-Boot proper > - eMMC > - FEC > - Boot from eMMC > - Boot from USB SDP > >

Re: [U-Boot] [PATCH] net: MVGBE don't automatically select PHYLIB

2018-05-17 Thread Stefan Roese
Hi Joe, On 17.05.2018 11:03, Chris Packham wrote: Not all users of MVGBE need PHYLIB and it increases the size of the openrd images too much. Fixes: commit ed52ea507f12 ("net: add Kconfig for MVGBE") Signed-off-by: Chris Packham Cc: Tom Rini Cc:

[U-Boot] [PATCH] arm: kirkwood: openrd: Change environment location

2018-05-17 Thread Stefan Roese
With GCC 7.3 and the addition of device-tree to Kirkwood, the U-Boot image does not fit any more into its 0x6 area. Let's move the environment so that U-Boot will fit also with the upcoming changes for Kirkwood (add DM support etc). Signed-off-by: Stefan Roese Cc: Tom Rini

[U-Boot] [RFC PATCH 2/3] sunxi: board.c: refactor SPL header checks

2018-05-17 Thread Andre Przywara
So far we have two users which want to look at the SPL header. We will get more in the future. Refactor the existing SPL header checks into a common function, to simplify reusing the code. Now that this is easy, add proper version checks to the DT name parsing. Signed-off-by: Andre Przywara

Re: [U-Boot] [UBOOT PATCH] env: mmc: Fix misaligned buffer address when saving envvars to FAT

2018-05-17 Thread Vipul Kumar
Hi, > -Original Message- > From: Alex Kiernan [mailto:alex.kier...@gmail.com] > Sent: Thursday, May 17, 2018 1:31 PM > To: Vipul Kumar > Cc: u-boot ; gmus...@ciena.com; Michal Simek > ; Siva Durga Prasad Paladugu >

Re: [U-Boot] [RFC PATCH 0/3] sunxi: extend SPL header to propagate DRAM size

2018-05-17 Thread Maxime Ripard
On Thu, May 17, 2018 at 09:16:58AM +0100, Andre Przywara wrote: > This series tries to solve three issues we currently have on > Allwinner boards: > - The DRAM sizing routine can only cope with power-of-two sized DRAM. > - The DRAM sizing routine steps through all DRAM, possibly hitting secure >

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

2018-05-17 Thread Chris Packham
On Thu, May 17, 2018 at 3:37 AM Tom Rini wrote: > On Wed, May 16, 2018 at 02:05:03PM +0200, Stefan Roese wrote: > > Hi Tom, > > > > please pull the Kirkwood DT patches from Chris. > > > > Thanks, > > Stefan > > > > The following changes since commit

[U-Boot] [PATCH] net: MVGBE don't automatically select PHYLIB

2018-05-17 Thread Chris Packham
Not all users of MVGBE need PHYLIB and it increases the size of the openrd images too much. Fixes: commit ed52ea507f12 ("net: add Kconfig for MVGBE") Signed-off-by: Chris Packham Cc: Tom Rini Cc: Stefan Roese --- drivers/net/Kconfig

Re: [U-Boot] [PATCH] arm: kirkwood: openrd: Change environment location

2018-05-17 Thread Stefan Roese
On 17.05.2018 11:08, Chris Packham wrote: On Thu, May 17, 2018 at 7:08 PM Stefan Roese wrote: With GCC 7.3 and the addition of device-tree to Kirkwood, the U-Boot image does not fit any more into its 0x6 area. Let's move the environment so that U-Boot will fit also with the

Re: [U-Boot] [PATCH] twister: Let SPL load U-Boot from MMC

2018-05-17 Thread Stefano Babic
Hi Ladislav, On 14/05/2018 09:17, Ladislav Michl wrote: > MMC is not initialized in SPL, so it cannot load u-boot.img > preventing boot from MMC. > > Also driver specific functions are guarded with generic > configuration options which leads to build failures when device > driver is not enabled

Re: [U-Boot] [UBOOT PATCH] env: mmc: Fix misaligned buffer address when saving envvars to FAT

2018-05-17 Thread Alex Kiernan
On Thu, May 17, 2018 at 8:46 AM Vipul Kumar wrote: > From: Gary Mussar > When doing a u-boot saveenv with the environment in FAT we see the > following warning: > ZynqMP> saveenv > Saving Environment to FAT... > writing uboot.env > FAT: Misaligned

[U-Boot] [RFC PATCH 1/3] sunxi: Extend SPL header versioning

2018-05-17 Thread Andre Przywara
On Allwinner SoCs we use some free bytes at the beginning of the SPL image to store various information. We have a version byte to allow updates, but changing this always requires all tools to be updated as well. Introduce the concept of semantic versioning [1] to the SPL header: The major part

[U-Boot] [RFC PATCH 0/3] sunxi: extend SPL header to propagate DRAM size

2018-05-17 Thread Andre Przywara
This series tries to solve three issues we currently have on Allwinner boards: - The DRAM sizing routine can only cope with power-of-two sized DRAM. - The DRAM sizing routine steps through all DRAM, possibly hitting secure memory. - The SPL header versioning is quite strict and tends to break

Re: [U-Boot] [PATCH 01/12] ARM: socfpga: Sync A10 clock manager binding parser

2018-05-17 Thread Marek Vasut
On 05/17/2018 06:38 AM, Chee, Tien Fong wrote: > On Sat, 2018-05-12 at 22:30 +0200, Marek Vasut wrote: >> The A10 clock manager parsed DT bindings generated by Quartus the >> bsp-editor to configure the A10 clocks. Sadly, those DT bindings >> changed at some point. The clock manager patch used the

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

2018-05-17 Thread Chris Packham
On Thu, May 17, 2018 at 8:48 PM Stefan Roese wrote: > Hi Chris, > On 17.05.2018 10:45, Chris Packham wrote: > > On Thu, May 17, 2018 at 8:36 PM Chris Packham > > wrote: > > > > > >> On Thu, May 17, 2018 at 3:37 AM Tom Rini wrote: >

Re: [U-Boot] [PATCH 01/12] ARM: socfpga: Sync A10 clock manager binding parser

2018-05-17 Thread Marek Vasut
On 05/17/2018 10:44 AM, Chee, Tien Fong wrote: > On Thu, 2018-05-17 at 10:24 +0200, Marek Vasut wrote: >> On 05/17/2018 06:38 AM, Chee, Tien Fong wrote: >>> >>> On Sat, 2018-05-12 at 22:30 +0200, Marek Vasut wrote: The A10 clock manager parsed DT bindings generated by Quartus the

[U-Boot] [PATCH 3/6] ARM: kirkwood: Add device-tree for ds109

2018-05-17 Thread Chris Packham
Import the dts files from Linux 4.17 and enable CONFIG_OF_CONTROL. Signed-off-by: Chris Packham --- arch/arm/dts/kirkwood-ds109.dts | 40 ++ arch/arm/dts/kirkwood-synology.dtsi | 855 configs/ds109_defconfig | 2 + 3

[U-Boot] [PATCH 1/6] ARM: kirkwood: Add device-tree for d2net_v2 & net2big_v2

2018-05-17 Thread Chris Packham
Import the dts files from Linux 4.17 and enable CONFIG_OF_CONTROL. Signed-off-by: Chris Packham --- arch/arm/dts/kirkwood-d2net.dts | 45 + arch/arm/dts/kirkwood-net2big.dts | 63 +++ arch/arm/dts/kirkwood-netxbig.dtsi | 232

[U-Boot] IMX6 NAND booting failure

2018-05-17 Thread Rasheed, Abdul
Hi, I am working on VAR-SOM-MX6 SOC. I'm trying to boot a custom SPL from NAND. After programming NAND with custom SPL, system goes to serial downloader mode. I have taken the ROM code buffer log (also attached below). It shows that authentication fails. My boot security settings are OPEN, so

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

2018-05-17 Thread Chris Packham
On Thu, May 17, 2018 at 8:36 PM Chris Packham wrote: > On Thu, May 17, 2018 at 3:37 AM Tom Rini wrote: > > > > On Wed, May 16, 2018 at 02:05:03PM +0200, Stefan Roese wrote: > > > > > Hi Tom, > > > > > > please pull the Kirkwood DT patches from

Re: [U-Boot] [PATCH 01/12] ARM: socfpga: Sync A10 clock manager binding parser

2018-05-17 Thread Chee, Tien Fong
On Thu, 2018-05-17 at 10:24 +0200, Marek Vasut wrote: > On 05/17/2018 06:38 AM, Chee, Tien Fong wrote: > > > > On Sat, 2018-05-12 at 22:30 +0200, Marek Vasut wrote: > > > > > > The A10 clock manager parsed DT bindings generated by Quartus the > > > bsp-editor to configure the A10 clocks. Sadly,

Re: [U-Boot] [PATCH] board: turris_mox: Add fixed regulator support to defconfig

2018-05-17 Thread Stefan Roese
For the next, could you please use different tagging in the patch subject? In this case, something like: arm64: mvebu: defconfig: Add fixed regulator support on turris_mox On 16.05.2018 22:13, Marek Behún wrote: Without this USB3 won't work in U-Boot. Signed-off-by: Marek Behun

[U-Boot] [PATCH 0/6] ARM: kirkwood: dts conversion round 2

2018-05-17 Thread Chris Packham
This is the second round of updating kirkwood boards to OF_CONTROL. Most of these boards use spi flash so I've added the u-boot specific "spi-flash" compatible string where appropriate. Chris Packham (6): ARM: kirkwood: Add device-tree for d2net_v2 & net2big_v2 ARM: kirkwood: Add device-tree

[U-Boot] [PATCH 4/6] ARM: kirkwood: Add device-tree for lschlv2 & lsxhl

2018-05-17 Thread Chris Packham
Import the dts files from Linux 4.17 and enable CONFIG_OF_CONTROL. Signed-off-by: Chris Packham --- arch/arm/dts/kirkwood-lschlv2.dts | 20 +++ arch/arm/dts/kirkwood-lsxhl.dts | 20 +++ arch/arm/dts/kirkwood-lsxl.dtsi | 237 ++

[U-Boot] [PATCH 5/6] ARM: kirkwood: Add device-tree for netspace & inetspace

2018-05-17 Thread Chris Packham
Import the dts files from Linux 4.17 and enable CONFIG_OF_CONTROL. Signed-off-by: Chris Packham --- arch/arm/dts/kirkwood-is2.dts | 40 +++ arch/arm/dts/kirkwood-ns2-common.dtsi | 97 +++ arch/arm/dts/kirkwood-ns2.dts |

Re: [U-Boot] [RFC PATCH 0/3] sunxi: extend SPL header to propagate DRAM size

2018-05-17 Thread Andre Przywara
Hi, On 17/05/18 09:35, Icenowy Zheng wrote: > > > 于 2018年5月17日 GMT+08:00 下午4:16:58, Andre Przywara 写到: >> This series tries to solve three issues we currently have on >> Allwinner boards: >> - The DRAM sizing routine can only cope with power-of-two sized DRAM. >> - The

Re: [U-Boot] [PATCH 1/4] phy: marvell: Support changing SERDES map in board file

2018-05-17 Thread Stefan Roese
On 16.05.2018 16:39, Marek Behún wrote: This adds a weak definition of board_update_comphy_map to comphy_core, which does nothing. If this function is defined elsewhere, for example in board file, the board file can change some parameters of SERDES configuration. This is needed on Turris Mox,

Re: [U-Boot] [PATCH v5 4/9] board: ti: dra7xx-evm: turn on USB clocks in late init stage

2018-05-17 Thread Jean-Jacques Hiblot
On 16/05/2018 17:21, Tom Rini wrote: On Wed, May 16, 2018 at 11:04:18AM +0200, Marek Vasut wrote: On 05/16/2018 11:00 AM, Jean-Jacques Hiblot wrote: On 16/05/2018 00:13, Marek Vasut wrote: On 05/15/2018 06:10 PM, Jean-Jacques Hiblot wrote: Hi Marek, On 04/05/2018 21:06, Marek Vasut

[U-Boot] [PATCH 6/6] ARM: kirkwood: Add device-tree for keymile

2018-05-17 Thread Chris Packham
Import the dts files from Linux 4.17 and enable CONFIG_OF_CONTROL. Signed-off-by: Chris Packham --- arch/arm/dts/kirkwood-km_common.dtsi | 47 +++ arch/arm/dts/kirkwood-km_kirkwood.dts | 31 ++

Re: [U-Boot] RFC: Alternative boot_jump_linux() function

2018-05-17 Thread Peter Robinson
Hi, > I'm currently working on snapdragon bootloader support and in the > particular case where U-boot is running in Aarch32 and the kernel is > Aarch64 the specific implementation is to jump to Linux through SCM > call. I seem to remember the Allwinner A64 Pine64 starts in 32 bit mode and

Re: [U-Boot] [PATCH] sunxi: allow CONFIG_DEFAULT_FDT_FILE override

2018-05-17 Thread Maxime Ripard
On Tue, May 01, 2018 at 05:46:41PM -0700, Martin Kelly wrote: > Currently, sunxi-common.h ignores CONFIG_DEFAULT_FDT_FILE and assumes > the kernel fdtfile and the u-boot devicetree names are the same. > Although this is typically the case, sometimes you might want to > customize one of these

Re: [U-Boot] [PATCH] net: MVGBE don't automatically select PHYLIB

2018-05-17 Thread Chris Packham
On Fri, May 18, 2018 at 12:02 AM Tom Rini wrote: > On Thu, May 17, 2018 at 01:59:36PM +0200, Stefan Roese wrote: > > On 17.05.2018 13:53, Chris Packham wrote: > > > > > > > > >On Thu, 17 May 2018, 11:09 PM Tom Rini, > >> wrote:

[U-Boot] [PATCH v1 5/5] stm32mp1: Allow to activate CONFIG_DEBUG_UART

2018-05-17 Thread Patrice Chotard
From: Patrick Delaunay Add the needed information to enable the debug uart to have printf before the serial driver probe (so before probe for clock, pincontrol and reset drivers) To enable the debug on uart 4 (default console): + CONFIG_DEBUG_UART=y +

[U-Boot] [PATCH v1 4/5] serial: stm32: Add setparity support

2018-05-17 Thread Patrice Chotard
From: Patrick Delaunay Add possibility to update the serial parity used. Signed-off-by: Patrick Delaunay Signed-off-by: Patrice Chotard --- drivers/serial/serial_stm32.c | 45

[U-Boot] [PATCH v1 1/5] serial: stm32: Add debug uart support

2018-05-17 Thread Patrice Chotard
From: Patrick Delaunay Add support for early debug printf, before the availability of driver model and device tree support. Signed-off-by: Patrick Delaunay Signed-off-by: Patrice Chotard --- drivers/serial/Kconfig

[U-Boot] [PATCH v1 3/5] dm: serial: Add setparity

2018-05-17 Thread Patrice Chotard
From: Patrick Delaunay Implements serial setparity ops to allow uart parity change. It allows to select ODD, EVEN or NONE parity. Signed-off-by: Patrick Delaunay Signed-off-by: Patrice Chotard --- include/serial.h |

[U-Boot] [PATCH] ARM: uniphier: rename environment variable fdt_name to fdtname

2018-05-17 Thread Masahiro Yamada
For booting Linux in the generic distro mechanism, cmd/pxe.c retrieves the FDT file name from "fdtname" environment variable. Rename "fdt_name" to "fdtname" for easier migration to distro boot. Signed-off-by: Masahiro Yamada ---

Re: [U-Boot] [PATCH 1/3] doc: Add new doc for file system firmware loader driver model

2018-05-17 Thread Tom Rini
On Thu, May 17, 2018 at 04:27:27AM +, Chee, Tien Fong wrote: > On Wed, 2018-05-16 at 08:48 -0400, Tom Rini wrote: > > On Wed, May 16, 2018 at 05:21:39PM +0800, tien.fong.c...@intel.com > > wrote: > > > > > > > > From: Tien Fong Chee > > > > > > Provide information

[U-Boot] [PATCH v2] net: MVGBE don't automatically select PHYLIB

2018-05-17 Thread Chris Packham
When Kconfig support was added for MVGBE it included automatically selected PHYLIB support. But MVGBE does not need PHYLIB it will build fine without it. Commit ed52ea507f12 ("net: add Kconfig for MVGBE") should have been a no-op in terms of build size but because of the selecting PHYLIB the

[U-Boot] [PATCH v1 1/4] stm32mp1: remove the second TAMP_BOOT_CONTEXT update

2018-05-17 Thread Patrice Chotard
From: Patrick Delaunay The register TAMP_BOOT_CONTEXT is already updated in get_bootmode() in cpu.c and no need to be done twice. Signed-off-by: Patrick Delaunay Signed-off-by: Patrice Chotard ---

[U-Boot] [PATCH v1 0/4] Update STM32MP1 machine

2018-05-17 Thread Patrice Chotard
This series : _ fixes TAMP_BOOT_CONTEXT which is updated twice _ adds bsec IP driver (Boot and Security and OTP control) _ adds FUSE command support _ updates machine to use OTP to store MAC address and serial number Patrick Delaunay (4): stm32mp1: remove the second TAMP_BOOT_CONTEXT

Re: [U-Boot] RFC: Alternative boot_jump_linux() function

2018-05-17 Thread Tom Rini
On Thu, May 17, 2018 at 02:01:55PM +0300, Ramon Fried wrote: > Hi. > I'm currently working on snapdragon bootloader support and in the > particular case where U-boot is running in Aarch32 and the kernel is > Aarch64 the specific implementation is to jump to Linux through SCM > call. > > I try to

[U-Boot] RFC: Alternative boot_jump_linux() function

2018-05-17 Thread Ramon Fried
Hi. I'm currently working on snapdragon bootloader support and in the particular case where U-boot is running in Aarch32 and the kernel is Aarch64 the specific implementation is to jump to Linux through SCM call. I try to find the best possible way to provide an alternative boot function. Adding

[U-Boot] [PATCH v1 0/5] Update STM32 serial driver

2018-05-17 Thread Patrice Chotard
This series : _ adds support of DEBUG_UART _ fixes bit register define names _ add new setparity ops support in DM and in STM32 serial driver _ update STM32MP1 machine to allow DEBUG_UART activation Patrice Chotard (1): serial: stm32: Fix bits defines name Patrick Delaunay (4):

[U-Boot] [PATCH v1 2/5] serial: stm32: Fix bits defines name

2018-05-17 Thread Patrice Chotard
Rename USART_ISR_FLAG_xxx bits to USART_ISR_xxx bits and USART_ICR_OREF to USART_ICR_ORECF in order to match datasheets. Sort defines by descendant order. Signed-off-by: Patrice Chotard --- drivers/serial/serial_stm32.c | 12 ++-- drivers/serial/serial_stm32.h |

Re: [U-Boot] [PATCH] soc: zynqmp: Update required API version to 1.0

2018-05-17 Thread Michal Simek
On 14.5.2018 22:55, Marek Vasut wrote: > On 05/14/2018 03:39 PM, Michal Simek wrote: >> From: Rajan Vaja >> >> Existing EEMI version is to as 1.0 (available from xilinx v2018.1 >> version). Update required API version to match with EEMI API version. > > Not sure I

Re: [U-Boot] [PATCH v2] net: MVGBE don't automatically select PHYLIB

2018-05-17 Thread Tom Rini
On Fri, May 18, 2018 at 12:12:04AM +1200, Chris Packham wrote: > When Kconfig support was added for MVGBE it included automatically > selected PHYLIB support. But MVGBE does not need PHYLIB it will build > fine without it. Commit ed52ea507f12 ("net: add Kconfig for MVGBE") > should have been a

Re: [U-Boot] [PATCH] net: MVGBE don't automatically select PHYLIB

2018-05-17 Thread Tom Rini
On Thu, May 17, 2018 at 09:03:15PM +1200, Chris Packham wrote: > Not all users of MVGBE need PHYLIB and it increases the size of the > openrd images too much. > > Fixes: commit ed52ea507f12 ("net: add Kconfig for MVGBE") > Signed-off-by: Chris Packham > Cc: Tom Rini

Re: [U-Boot] [PATCH] net: MVGBE don't automatically select PHYLIB

2018-05-17 Thread Chris Packham
On Thu, 17 May 2018, 11:09 PM Tom Rini, wrote: > On Thu, May 17, 2018 at 09:03:15PM +1200, Chris Packham wrote: > > Not all users of MVGBE need PHYLIB and it increases the size of the > > openrd images too much. > > > > Fixes: commit ed52ea507f12 ("net: add Kconfig for

Re: [U-Boot] [PATCH 0/6] ARM: kirkwood: dts conversion round 2

2018-05-17 Thread Simon Guinot
On Thu, May 17, 2018 at 09:45:55PM +1200, Chris Packham wrote: > This is the second round of updating kirkwood boards to OF_CONTROL. Most > of these boards use spi flash so I've added the u-boot specific > "spi-flash" compatible string where appropriate. Hi Chris, Thanks for converting the LaCie

Re: [U-Boot] [PATCH] net: MVGBE don't automatically select PHYLIB

2018-05-17 Thread Tom Rini
On Thu, May 17, 2018 at 01:59:36PM +0200, Stefan Roese wrote: > On 17.05.2018 13:53, Chris Packham wrote: > > > > > >On Thu, 17 May 2018, 11:09 PM Tom Rini, >> wrote: > > > >On Thu, May 17, 2018 at 09:03:15PM +1200, Chris Packham wrote: > >

[U-Boot] [PATCH V2] sf: Add Macronix MX25U25635F ID

2018-05-17 Thread Marek Vasut
Add ID for the Macronix MX25U25635F flash. Signed-off-by: Marek Vasut Cc: Jagan Teki --- V2: Change the flash type on maintainer request. This doesn't match the actual hardware with which this was tested anymore though. --- drivers/mtd/spi/spi_flash_ids.c

[U-Boot] [PATCH v1 3/4] stm32mp1: add FUSE command support

2018-05-17 Thread Patrice Chotard
From: Patrick Delaunay Add support of fuse command (read/write/program/sense) on bank 0 to access to BSEC SAFMEM (4096 OTP bits). Signed-off-by: Patrick Delaunay Signed-off-by: Patrice Chotard --- MAINTAINERS

[U-Boot] [PATCH v1 4/4] stm32mp1: use OTP to configure MAC address and serial number

2018-05-17 Thread Patrice Chotard
From: Patrick Delaunay Use OTP57 and 58 for MAC address - OTP57 = MAC address bits [31:0] - OTP58 = MAC address bit [47:32] stored in OTP LSB's Use manufacture information in OTP13 to OTP15 to build unique chip id saved in env variable "serial#" (used for USB device

Re: [U-Boot] [PATCH] soc: zynqmp: Update required API version to 1.0

2018-05-17 Thread Marek Vasut
On 05/17/2018 03:59 PM, Michal Simek wrote: > On 14.5.2018 22:55, Marek Vasut wrote: >> On 05/14/2018 03:39 PM, Michal Simek wrote: >>> From: Rajan Vaja >>> >>> Existing EEMI version is to as 1.0 (available from xilinx v2018.1 >>> version). Update required API version to

Re: [U-Boot] [RFC PATCH 1/3] sunxi: Extend SPL header versioning

2018-05-17 Thread Siarhei Siamashka
On Thu, 17 May 2018 09:16:59 +0100 Andre Przywara wrote: > On Allwinner SoCs we use some free bytes at the beginning of the SPL image > to store various information. We have a version byte to allow updates, > but changing this always requires all tools to be updated as

[U-Boot] [PATCH v1 2/4] stm32mp1: add bsec driver

2018-05-17 Thread Patrice Chotard
From: Patrick Delaunay Add a MISC driver with read and write access to BSEC IP (Boot and Security and OTP control) - offset 0: shadowed values - offset 0x8000: OTP fuse box values (SAFMEM) Signed-off-by: Patrick Delaunay Signed-off-by:

Re: [U-Boot] [RFC PATCH 1/3] sunxi: Extend SPL header versioning

2018-05-17 Thread Andre Przywara
Hi, On 17/05/18 12:05, Siarhei Siamashka wrote: > On Thu, 17 May 2018 09:16:59 +0100 > Andre Przywara wrote: > >> On Allwinner SoCs we use some free bytes at the beginning of the SPL image >> to store various information. We have a version byte to allow updates, >> but

Re: [U-Boot] [PATCH] arm64: zynqmp: Show reset reason

2018-05-17 Thread Michal Simek
On 17.5.2018 15:31, Michal Simek wrote: > Read reset reason reg and show it in log and also save it as variable. > reset_reasons table is setting up priorities for variable. > > Signed-off-by: Michal Simek > --- > > arch/arm/include/asm/arch-zynqmp/hardware.h | 12

Re: [U-Boot] mtd: spi-nor: new NXP FlexSPI driver location & framework to use ?

2018-05-17 Thread Prabhakar Kushwaha
Dear Jagan, > -Original Message- > From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of > Prabhakar Kushwaha > Sent: Monday, May 14, 2018 6:55 PM > To: Jagan Teki > Cc: u-boot@lists.denx.de > Subject: Re: [U-Boot] mtd: spi-nor: new NXP FlexSPI driver

Re: [U-Boot] [PATCH] net: MVGBE don't automatically select PHYLIB

2018-05-17 Thread Stefan Roese
On 17.05.2018 13:53, Chris Packham wrote: On Thu, 17 May 2018, 11:09 PM Tom Rini, > wrote: On Thu, May 17, 2018 at 09:03:15PM +1200, Chris Packham wrote: > Not all users of MVGBE need PHYLIB and it increases the size of the >

Re: [U-Boot] RFC: Alternative boot_jump_linux() function

2018-05-17 Thread Ramon Fried
On Thu, May 17, 2018 at 2:48 PM, Peter Robinson wrote: > Hi, > >> I'm currently working on snapdragon bootloader support and in the >> particular case where U-boot is running in Aarch32 and the kernel is >> Aarch64 the specific implementation is to jump to Linux through SCM

Re: [U-Boot] [RFC PATCH 1/3] sunxi: Extend SPL header versioning

2018-05-17 Thread Icenowy Zheng
于 2018年5月17日 GMT+08:00 下午7:05:15, Siarhei Siamashka 写到: >On Thu, 17 May 2018 09:16:59 +0100 >Andre Przywara wrote: > >> On Allwinner SoCs we use some free bytes at the beginning of the SPL >image >> to store various information. We have a

[U-Boot] [PATCH] arm64: zynqmp: Show reset reason

2018-05-17 Thread Michal Simek
Read reset reason reg and show it in log and also save it as variable. reset_reasons table is setting up priorities for variable. Signed-off-by: Michal Simek --- arch/arm/include/asm/arch-zynqmp/hardware.h | 12 +- board/xilinx/zynqmp/zynqmp.c| 43

[U-Boot] Please pull u-boot-marvell/master (v2)

2018-05-17 Thread Stefan Roese
Hi Tom, please pull the Kirkwood DT patches from Chris. This time with PHYLIB disabled for some boards (as was before). Thanks, Stefan The following changes since commit f2d0f5e7ab3b8a7b4bf6e2ac499b4867c701d52d: ARM: re-enable MVGBE for edminiv2 (2018-05-16 11:38:08 -0400) are available in

Re: [U-Boot] [PATCH v2] net: MVGBE don't automatically select PHYLIB

2018-05-17 Thread Stefan Roese
On 17.05.2018 17:30, Joe Hershberger wrote: On Thu, May 17, 2018 at 7:12 AM, Chris Packham wrote: When Kconfig support was added for MVGBE it included automatically selected PHYLIB support. But MVGBE does not need PHYLIB it will build fine without it. Commit

[U-Boot] [PATCH v5 09/16] fastboot: Extract common definitions from USB fastboot

2018-05-17 Thread Alex Kiernan
Move FASTBOOT_VERSION to include/fastboot.h so when we merge the UDP code we only have one definition. Signed-off-by: Alex Kiernan Reviewed-by: Simon Glass Acked-by: Joe Hershberger --- Changes in v5: None Changes in v4: -

[U-Boot] [PATCH v5 10/16] fastboot: Rename public fb_ functions to fastboot_

2018-05-17 Thread Alex Kiernan
Rename fb_mmc_flash_write/fb_mmc_erase/fb_nand_flash_write/fb_nand_erase to fastboot_... as they form a public interface Signed-off-by: Alex Kiernan --- Changes in v5: - new Changes in v4: None Changes in v3: None Changes in v2: None drivers/fastboot/fb_mmc.c |

[U-Boot] [PATCH v5 06/16] fastboot: Remove FIXME for CONFIG_FASTBOOT_...NAME

2018-05-17 Thread Alex Kiernan
CONFIG_FASTBOOT_GPT_NAME and CONFIG_FASTBOOT_MBR_NAME are always defined by Kconfig if you're compiling this code, so remove these redundant defaults. Signed-off-by: Alex Kiernan Reviewed-by: Simon Glass Acked-by: Joe Hershberger

Re: [U-Boot] [PATCH V6 0/2] Update sabrelite and nitrogen6x boards to use distro boot support

2018-05-17 Thread Stefano Babic
On 17/05/2018 17:45, Troy Kisky wrote: > On 5/17/2018 2:51 AM, Stefano Babic wrote: >> Hi Guillaume, >> >> On 18/04/2018 17:04, Guillaume GARDET wrote: >>> This patch serie updates sabrelite and nitrogen6x boards to use distro boot >>> support. >>> Sabrelite has been boot tested with boot.scr

[U-Boot] [BUG] qemu-x86_64_defconfig fails with panic("TSC frequency is ZERO");

2018-05-17 Thread Heinrich Schuchardt
Hello Bin, Simon, sometimes qemu-x86_64_defconfig fails with panic("TSC frequency is ZERO") in drivers/timer/tsc_timer.c. The system may hang in an endless reboot loop with this error or recover after reboot. Do we need to panic? Or could we use some default value? Qemu version used for

[U-Boot] [PATCH v5 08/16] fastboot: Rename fb_set_reboot_flag to fastboot_set_reboot_flag

2018-05-17 Thread Alex Kiernan
Rename fb_set_reboot_flag to fastboot_set_reboot_flag so it matches all other fastboot code in the global name space. Fix the guards around them so that they're dependent on FASTBOOT, not just USB_FUNCTION_FASTBOOT. Move the weak implementation of fastboot_set_reboot_flag to fb_common.c so we can

[U-Boot] [PATCH v5 15/16] net: fastboot: Merge AOSP UDP fastboot

2018-05-17 Thread Alex Kiernan
Merge UDP fastboot support from AOSP: https://android.googlesource.com/platform/external/u-boot/+/android-o-mr1-iot-preview-8 Signed-off-by: Alex Kiernan Signed-off-by: Alex Deymo Signed-off-by: Jocelyn Bohr Reviewed-by: Simon

[U-Boot] [PATCH 1/1] efi_selftest: do not call efi_init_obj_list() twice

2018-05-17 Thread Heinrich Schuchardt
Remove a superfluous call to efi_init_obj_list() invoked by 'bootefi selftest'. Signed-off-by: Heinrich Schuchardt --- cmd/bootefi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmd/bootefi.c b/cmd/bootefi.c index fe50bac1c50..806339823ff 100644 --- a/cmd/bootefi.c

Re: [U-Boot] [PATCH V6 0/2] Update sabrelite and nitrogen6x boards to use distro boot support

2018-05-17 Thread Troy Kisky
On 5/17/2018 2:51 AM, Stefano Babic wrote: > Hi Guillaume, > > On 18/04/2018 17:04, Guillaume GARDET wrote: >> This patch serie updates sabrelite and nitrogen6x boards to use distro boot >> support. >> Sabrelite has been boot tested with boot.scr script and EFI/Grub2 on mmc0 >> and mmc1 slots.

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

2018-05-17 Thread Stefano Babic
Hi Tom, please pull from u-boot-imx, thanks ! The following changes since commit f2d0f5e7ab3b8a7b4bf6e2ac499b4867c701d52d: ARM: re-enable MVGBE for edminiv2 (2018-05-16 11:38:08 -0400) are available in the git repository at: git://www.denx.de/git/u-boot-imx.git master for you to fetch

[U-Boot] [PATCH v5 07/16] fastboot: Fix parameter types in _fb_nand_write

2018-05-17 Thread Alex Kiernan
Compiling on a 64 bit target the arguments to _fb_nand_write are incompatible: drivers/fastboot/fb_nand.c: In function ‘_fb_nand_write’: drivers/fastboot/fb_nand.c:101:42: warning: passing argument 3 of ‘nand_write_skip_bad’ from incompatible pointer type [-Wincompatible-pointer-types]

[U-Boot] [PATCH v5 05/16] fastboot: Add missing newlines

2018-05-17 Thread Alex Kiernan
Add newlines so we format our output correctly. Signed-off-by: Alex Kiernan Acked-by: Joe Hershberger Reviewed-by: Jocelyn Bohr --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None

[U-Boot] [RFC PATCH v2 0/2] Convert USB fastboot code to use shared protocol

2018-05-17 Thread Alex Kiernan
This builds on the fastboot UDP support and migrates the USB fastboot code to the shared code. It's currently untested, other than passing in Travis: https://travis-ci.org/akiernan/u-boot/builds/380023917 Changes in v2: - remove redundant version.h - use new fastboot_get_bytes_remaining()

[U-Boot] [RFC PATCH v2 1/2] usb: fastboot: Convert USB f_fastboot to shared fastboot

2018-05-17 Thread Alex Kiernan
Convert USB fastboot code to use shared fastboot protocol. Signed-off-by: Alex Kiernan --- Changes in v2: - remove redundant version.h - use new fastboot_get_bytes_remaining() function drivers/fastboot/Makefile | 4 +- drivers/usb/gadget/f_fastboot.c | 318

Re: [U-Boot] [PATCH v2] net: MVGBE don't automatically select PHYLIB

2018-05-17 Thread Joe Hershberger
On Thu, May 17, 2018 at 7:12 AM, Chris Packham wrote: > When Kconfig support was added for MVGBE it included automatically > selected PHYLIB support. But MVGBE does not need PHYLIB it will build > fine without it. Commit ed52ea507f12 ("net: add Kconfig for MVGBE") >

[U-Boot] [PATCH v5 02/16] fastboot: Refactor fastboot_okay/fail to take response

2018-05-17 Thread Alex Kiernan
Add the response string as a parameter to fastboot_okay/fail, instead of modifying a global, to match the contract expected by the AOSP U-Boot code. Signed-off-by: Alex Kiernan Reviewed-by: Joe Hershberger --- Changes in v5: None Changes in v4:

[U-Boot] [PATCH v5 11/16] ti: fastboot: Move weak overrides to board files

2018-05-17 Thread Alex Kiernan
Overriding fastboot_set_reboot_flag() in arch/arm/mach-omap2/boot-common.c leaves it applying all boards that derive from this, not just the ones which have support for Android bootloader flow. Move the weak function override to the relevant board files. Signed-off-by: Alex Kiernan

  1   2   >