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

2018-05-07 Thread Alex Kiernan
On Tue, May 8, 2018 at 6:15 AM Alex Kiernan wrote: > On Wed, May 2, 2018 at 3:11 PM Lukasz Majewski wrote: > > Those two functions can be used to provide easy bootcount management. > > Signed-off-by: Lukasz Majewski > > Reviewed-by: Tom Rini > > Reviewed-by: Stefan Roese > > --- > > Chan

Re: [U-Boot] [RFC PATCH v2 19/20] fastboot: Add missing newlines

2018-05-07 Thread Jocelyn Bohr
On Thu, May 3, 2018 at 2:27 PM Joe Hershberger wrote: > On Mon, Apr 30, 2018 at 3:32 AM, Alex Kiernan > wrote: > > Add newlines so we format our output correctly. > > > > Signed-off-by: Alex Kiernan > > Acked-by: Joe Hershberger > Reviewed-by: Jocelyn Bohr ___

Re: [U-Boot] [RFC PATCH v2 18/20] fastboot: Check if part_name is NULL before using it

2018-05-07 Thread Jocelyn Bohr
On Thu, May 3, 2018 at 2:26 PM Joe Hershberger wrote: > On Mon, Apr 30, 2018 at 3:32 AM, Alex Kiernan > wrote: > > If we don't have a partition name passed, report it as not found. > > > > Signed-off-by: Alex Kiernan > > Acked-by: Joe Hershberger > Reviewed-by: Jocelyn Bohr _

Re: [U-Boot] [RFC PATCH v2 16/20] fastboot: net: Add NAND support

2018-05-07 Thread Jocelyn Bohr
On Mon, Apr 30, 2018 at 1:33 AM Alex Kiernan wrote: > Add NAND support to fastboot UDP flash/erase commands > > Signed-off-by: Alex Kiernan > --- > > Changes in v2: None > > net/fastboot.c | 17 ++--- > 1 file changed, 14 insertions(+), 3 deletions(-) > > diff --git a/net/fastboot.c

Re: [U-Boot] [RFC PATCH v2 15/20] fastboot: Merge boot common across USB and UDP

2018-05-07 Thread Alex Kiernan
On Tue, May 8, 2018 at 7:09 AM Joe Hershberger wrote: > On Mon, May 7, 2018 at 4:59 PM, Jocelyn Bohr wrote: > > Optional nit: Consider renaming "fastbootcmd" to "fb_bootcmd" or similar. > > IMO "fastbootcmd" is > > ambiguous as there can be multiple env variable commands related to > > fastboot.

Re: [U-Boot] [PATCH v1 08/16] arm: socfpga: stratix10: Add mailbox support for Stratix10 SoC

2018-05-07 Thread Ley Foon Tan
On Thu, Apr 19, 2018 at 10:53 AM, Marek Vasut wrote: > On 04/19/2018 11:50 AM, Ley Foon Tan wrote: >> Add mailbox support for Stratix SoC >> >> Signed-off-by: Ley Foon Tan >> Signed-off-by: Chin Liang See >> --- >> arch/arm/mach-socfpga/Makefile |1 + >> arch/arm/mach-socf

Re: [U-Boot] [RFC PATCH 0/4] Allwinner H6 support for U-Boot

2018-05-07 Thread Icenowy Zheng
于 2018年5月8日 GMT+08:00 下午2:39:46, Jagan Teki 写到: >On Sat, Dec 30, 2017 at 9:10 PM, Icenowy Zheng wrote: >> Allwinner H6 is a new SoC, which have peripherals with highest speed >> among current Allwinner products (USB3.0 and PCI Express); it's >memory >> map has also totally changed. >> >> This p

Re: [U-Boot] [RFC PATCH 0/4] Allwinner H6 support for U-Boot

2018-05-07 Thread Jagan Teki
On Sat, Dec 30, 2017 at 9:10 PM, Icenowy Zheng wrote: > Allwinner H6 is a new SoC, which have peripherals with highest speed > among current Allwinner products (USB3.0 and PCI Express); it's memory > map has also totally changed. > > This patchset try to add initial support for it. > > The first t

Re: [U-Boot] [PATCH v7 00/35] phy: sunxi: Add Allwinner sun4i USB PHY

2018-05-07 Thread Jagan Teki
Hi Jun, On Mon, May 7, 2018 at 1:03 PM, Jagan Teki wrote: > This series rework of previous version where it removes legacy > usb phy handling and added phy driver on generic-phy framework. > > Current implementation phy driver is unable to get pinctrl, clock > and reset details from DT since the

Re: [U-Boot] uboot support to Allwinner bananapi zero

2018-05-07 Thread Jagan Teki
On Wed, Apr 11, 2018 at 8:15 PM, Jun Nie wrote: > Hi Icenowy & Jagan, > > I see bananapi zero patch was posted and discussed in [1], but without > further follow up. Maybe we can decide which name is more maintainable > first, bananapi-*, Bananapi-* or Sinovoip_BPI_*. And add all new > boards with

Re: [U-Boot] [PATCH v7 06/35] musb: sunxi: Add OTG device clkgate and reset for H3/H5

2018-05-07 Thread Jagan Teki
Hi Marek, On Mon, May 7, 2018 at 5:17 PM, Marek Vasut wrote: > On 05/07/2018 09:33 AM, Jagan Teki wrote: >> Add OTG device clkgate and reset for H3/H5 through driver_data. >> >> Signed-off-by: Jagan Teki > > Why don't you implement a clock driver for this SoC instead ? As of now we are unable t

Re: [U-Boot] [RFC PATCH v2 15/20] fastboot: Merge boot common across USB and UDP

2018-05-07 Thread Joe Hershberger
On Mon, May 7, 2018 at 4:59 PM, Jocelyn Bohr wrote: > Optional nit: Consider renaming "fastbootcmd" to "fb_bootcmd" or similar. > IMO "fastbootcmd" is > ambiguous as there can be multiple env variable commands related to > fastboot. Seems like a good suggestion to me. > On Thu, May 3, 2018 at 2:

[U-Boot] [PATCH v8 06/35] device-tree-bindings: phy: Sync sun4i-usb-phy bindings

2018-05-07 Thread Jagan Teki
Sync sun4i-usb-phy bindings from Linux, since the drivers/phy/allwinner/phy-sun4i-usb.c follow similar. Sync changes from Linux with below merge commit: Merge: 02fc9235984d 486f47e8d3dd Author: Stephen Rothwell Date: Mon Mar 26 19:56:29 2018 +1100 Merge branch 'akpm/master' Signed-off-by

Re: [U-Boot] [PATCH v2 1/2] spi: zynqmp_qspi: Add support for ZynqMP qspi driver

2018-05-07 Thread Jagan Teki
On Wed, May 2, 2018 at 2:49 PM, Siva Durga Prasad Paladugu wrote: > Hi, > >> -Original Message- >> From: Jagan Teki [mailto:ja...@amarulasolutions.com] >> Sent: Wednesday, April 25, 2018 10:47 AM >> To: Siva Durga Prasad Paladugu >> Cc: U-Boot-Denx >> Subject: Re: [U-Boot] [PATCH v2 1/2]

Re: [U-Boot] [U-Boot,V2] imx: mx7: psci: add system reset support

2018-05-07 Thread Peng Fan
> -Original Message- > From: Trent Piepho [mailto:tpie...@impinj.com] > Sent: 2018年5月8日 6:07 > To: christian.gmei...@gmail.com; Peng Fan ; Anson > Huang ; u-boot@lists.denx.de; > albert.u.b...@aribaud.net; sba...@denx.de > Cc: Fabio Estevam > Subject: Re: [U-Boot,V2] imx: mx7: psci: add

Re: [U-Boot] [PATCH v5 4/7] bootcount: Rewrite autoboot to use wrapper functions from bootcount.h

2018-05-07 Thread Alex Kiernan
On Wed, May 2, 2018 at 3:11 PM Lukasz Majewski wrote: > The code has been refactored to use common wrappers from bootcount.h > header. > Signed-off-by: Lukasz Majewski > Reviewed-by: Stefan Roese > Reviewed-by: Tom Rini Reviewed-by: Alex Kiernan > --- > Changes in v5: > - None > Change

Re: [U-Boot] [PATCH] spi: kirkwood: add orion-spi compatible string

2018-05-07 Thread Jagan Teki
On Tue, May 8, 2018 at 4:24 AM, Chris Packham wrote: > This matches the compatible string used by the Linux kernel. This will > allow u-boot to use the same device tree files. > > Signed-off-by: Chris Packham > --- > This applies on top of Jagan's series > http://patchwork.ozlabs.org/project/uboo

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

2018-05-07 Thread Alex Kiernan
On Wed, May 2, 2018 at 3:11 PM Lukasz Majewski wrote: > Those two functions can be used to provide easy bootcount management. > Signed-off-by: Lukasz Majewski > Reviewed-by: Tom Rini > Reviewed-by: Stefan Roese > --- > Changes in v5: > - Provide parenthesis for #if defined(FOO) && ... > Ch

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

2018-05-07 Thread Alex Kiernan
On Wed, May 2, 2018 at 3:11 PM Lukasz Majewski wrote: > This patch adds missing include guards for bootcount.h file. > Signed-off-by: Lukasz Majewski > Reviewed-by: Stefan Roese > Reviewed-by: Tom Rini Reviewed-by: Alex Kiernan > --- > Changes in v5: > - None > Changes in v4: > - None

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

2018-05-07 Thread Alex Kiernan
On Wed, May 2, 2018 at 3:11 PM Lukasz Majewski wrote: > New, SPL related config option - CONFIG_SPL_BOOTCOUNT_LIMIT has been > added to allow drivers/bootcount code re-usage in SPL. > This code is necessary to use and setup bootcount in SPL in the case of > falcon boot mode. > Signed-off-by: Lu

[U-Boot] [PATCH] Convert CONFIG_SUPPORT_EMMC_RPMB to Kconfig

2018-05-07 Thread Alex Kiernan
Convert CONFIG_SUPPORT_EMMC_RPMB to Kconfig. Split the command handling from the underlying support and expose this through CMD_MMC_RPMB. Signed-off-by: Alex Kiernan --- README | 4 cmd/Kconfig| 7 +++ cmd/mmc.c

[U-Boot] [PATCH v3 2/3] serial: ns16550: Add reset ctrl to driver

2018-05-07 Thread Ley Foon Tan
Add code to reset all reset signals as in serial DT node. A reset property is an optional feature, so do not fail if a reset property is not present. If a reset property is discovered, then use it to deassert, thus bringing the IP out of reset. Signed-off-by: Ley Foon Tan Reviewed-by: Marek Vas

[U-Boot] [PATCH v3 3/3] net: designware: Add reset ctrl to driver

2018-05-07 Thread Ley Foon Tan
Add code to reset all reset signals as in Ethernet DT node. A reset property is an optional feature, so only print out a warning and do not fail if a reset property is not present. If a reset property is discovered, then use it to deassert, thus bringing the IP out of reset. Signed-off-by: Ley F

[U-Boot] [PATCH v3 1/3] mmc: dwmmc: socfpga: Add reset ctrl to driver

2018-05-07 Thread Ley Foon Tan
Add code to reset all reset signals as in mmc DT node. A reset property is an optional feature, so only print out a warning and do not fail if a reset property is not present. If a reset property is discovered, then use it to deassert, thus bringing the IP out of reset. Signed-off-by: Ley Foon T

[U-Boot] [PATCH v3 0/3] drivers: Add reset ctrl to drivers

2018-05-07 Thread Ley Foon Tan
Add reset ctrl to dwmmc socfpga, designware Ethernet and ns16550 serial drivers. A reset property is an optional feature, so only print out a warning and do not fail if a reset property is not present. If a reset property is discovered, then use it to deassert, thus bringing the IP out of res

Re: [U-Boot] [PATCH v7 06/35] musb: sunxi: Add OTG device clkgate and reset for H3/H5

2018-05-07 Thread Marek Vasut
On 05/07/2018 10:11 PM, Maxime Ripard wrote: > On Mon, May 07, 2018 at 05:32:34PM +0200, Marek Vasut wrote: >> On 05/07/2018 04:52 PM, Maxime Ripard wrote: >>> On Mon, May 07, 2018 at 01:47:43PM +0200, Marek Vasut wrote: On 05/07/2018 09:33 AM, Jagan Teki wrote: > Add OTG device clkgate an

[U-Boot] [GIT PULL] u-boot-uniphier/master

2018-05-07 Thread Masahiro Yamada
Hi Tom, Now that MW is open, please pull UniPhier SoC updates. Thanks. The following changes since commit a43d46a73cb2c40481791cb292b8eb0b5a80d55e: arm: v7R: Add support for enabling caches (2018-05-07 15:53:29 -0400) are available in the git repository at: git://git.denx.de/u-boot-uniphi

Re: [U-Boot] [PATCH 0/7] ARM: uniphier: support drive-strength pin configuration

2018-05-07 Thread Masahiro Yamada
2018-05-05 19:53 GMT+09:00 Masahiro Yamada : > > I will merge this series after the release. > > > > Masahiro Yamada (7): > pinctrl: uniphier: remove unneeded pin data of LD6b > pinctrl: uniphier: replace printf() with dev_err() > pinctrl: uniphier: include instead of > > pinctrl: uni

Re: [U-Boot] [PATCH v3 2/2] sunxi: binman: Add U-Boot binary size check

2018-05-07 Thread Måns Rullgård
Maxime Ripard writes: > On Wed, May 02, 2018 at 03:24:50PM +0100, Måns Rullgård wrote: >> Maxime Ripard writes: >> >> > 1;5201;0c >> > On Wed, May 02, 2018 at 10:34:49AM +0100, Måns Rullgård wrote: >> >> Siarhei Siamashka writes: >> >> >> >> > On Tue, 01 May 2018 18:25:06 +0100 >> >> > Måns R

Re: [U-Boot] [PATCH 3/3] rockchip: fix incorrect detection of ram size

2018-05-07 Thread Marty E. Plummer
On Mon, May 07, 2018 at 11:16:28AM +0200, Dr. Philipp Tomsich wrote: > > > On 7 May 2018, at 04:34, Marty E. Plummer wrote: > > > > On Mon, May 07, 2018 at 10:20:55AM +0800, Kever Yang wrote: > >> Hi Marty, > >> > >> > >> On 05/06/2018 10:25 PM, Marty E. Plummer wrote: > >>> Taken from coreboo

Re: [U-Boot] [U-Boot, v2, 4/4] syscon: add Linux-compatible syscon API

2018-05-07 Thread Tom Rini
On Thu, Apr 19, 2018 at 12:14:04PM +0900, Masahiro Yamada wrote: > The syscon implementation in U-Boot is different from that in Linux. > Thus, DT files imported from Linux do not work for U-Boot. > > In U-Boot driver model, each node is bound to a dedicated driver > that is the most compatible t

[U-Boot] [PATCHv2 2/3] buildman: support newer gcc versions from kernel.org

2018-05-07 Thread Tom Rini
From: Daniel Schwierzeck Add support for gcc versions 7.3.0, 6.4.0 and 4.9.4. Also use a regex for matching the tarball names. Some gcc versions use '-ARCH-' instead of '_ARCH-'. As part of this, we switch TravisCI to also using these toolchains for all platforms. Signed-off-by: Daniel Schwier

Re: [U-Boot] [U-Boot, 6/6] psci: arm: remove armv7 function psci_save_target_pc

2018-05-07 Thread Tom Rini
On Mon, Apr 16, 2018 at 10:15:12AM +0200, Patrick Delaunay wrote: > This function is no more used, and replaced by psci_save > which save also context id as requested by PSCI requirements. > > Even if the context id is not used by Linux, it should be saved > and restored in r0 when the CPU_ON is

[U-Boot] [PATCHv2 1/3] at91: Minor tweaks to SPL logic for space savings on smartweb

2018-05-07 Thread Tom Rini
- spl_board_init is empty on smartweb so drop that function - When CONFIG_AT91SAM9_WATCHDOG is set we do not disable the watchdog in SPL and instead let full U-Boot handle it. Instead of an empty function just do not call a function. Signed-off-by: Tom Rini --- With gcc-7.2 smartweb is 16byt

[U-Boot] [PATCHv2 3/3] .travis.yml: Further optimizations

2018-05-07 Thread Tom Rini
- Xilinx aarch64 is caught in the general xilinx arm job, exclude from the general aarch64 job. - Give the generic aarch64 job a better name - Re-sort the PowerPC jobs so that we can complete them a bit quicker. Signed-off-by: Tom Rini --- .travis.yml | 36 +---

Re: [U-Boot] [U-Boot, 3/6] tegra: psci: save context id in cpu_on command

2018-05-07 Thread Tom Rini
On Mon, Apr 16, 2018 at 10:15:09AM +0200, Patrick Delaunay wrote: > Replace the psci_save_target_pc call by the new function > psci_save(cpu, pc,context_id) > > Signed-off-by: Patrick Delaunay > Reviewed-by: Stephen Warren Applied to u-boot/master, thanks! -- Tom signature.asc Description:

Re: [U-Boot] [U-Boot, v2, 3/4] regmap: change regmap_init_mem() to take ofnode instead udevice

2018-05-07 Thread Tom Rini
On Thu, Apr 19, 2018 at 12:14:03PM +0900, Masahiro Yamada wrote: > Currently, regmap_init_mem() takes a udevice. This requires the node > has already been associated with a device. It prevents syscon/regmap > from behaving like those in Linux. > > Change the first argumenet to take a device node.

Re: [U-Boot] [U-Boot, v2, 7/7] arm: v7R: Add support for enabling caches

2018-05-07 Thread Tom Rini
On Thu, Apr 26, 2018 at 06:21:31PM +0530, Lokesh Vutla wrote: > Cache maintenance procedure is same for v7A and v7R > processors. So re-use cache-cp15.c file except for > mmu parts. > > Tested-by: Michal Simek > Signed-off-by: Lokesh Vutla > Reviewed-by: Tom Rini Applied to u-boot/master, tha

Re: [U-Boot] test: regmap: test Linux-compatible syscon_node_to_regmap()

2018-05-07 Thread Tom Rini
On Mon, Apr 23, 2018 at 01:26:53PM +0900, Masahiro Yamada wrote: > Like Linux, syscon_node_to_regmap() allows a node to work as a syscon > provider without binding it to a syscon driver. Test this. > > Requested-by: Simon Glass > Signed-off-by: Masahiro Yamada > Reviewed-by: Simon Glass Appl

Re: [U-Boot] [U-Boot, v2, 2/7] arm: v7: Kconfig: Rename CPU_V7 as CPU_V7A

2018-05-07 Thread Tom Rini
On Thu, Apr 26, 2018 at 06:21:26PM +0530, Lokesh Vutla wrote: > Currently CPU_V7 kconfig symbol supports only ARMv7A architectures under > armv7 folder. This led to a misconception of creating separate folders > for armv7m and armv7r. There is no reason to create separate folder for > other armv7

Re: [U-Boot] [U-Boot,v2,6/7] arm: v7R: Add support for MPU

2018-05-07 Thread Tom Rini
On Thu, Apr 26, 2018 at 06:21:30PM +0530, Lokesh Vutla wrote: > The Memory Protection Unit(MPU) allows to partition memory into regions > and set individual protection attributes for each region. In absence > of MPU a default map[1] will take effect. Add support for configuring > MPU on Cortex-R,

Re: [U-Boot] [U-Boot,v2,1/4] regmap: clean up regmap allocation

2018-05-07 Thread Tom Rini
On Thu, Apr 19, 2018 at 12:14:01PM +0900, Masahiro Yamada wrote: > Putting zero length array at the end of struct is a common technique > to embed arbitrary length of members. There is no good reason to let > regmap_alloc_count() branch by "if (count <= 1)". > > As far as I understood the code,

Re: [U-Boot] [U-Boot,v2,5/7] arm: v7R: Add initial support

2018-05-07 Thread Tom Rini
On Thu, Apr 26, 2018 at 06:21:29PM +0530, Lokesh Vutla wrote: > From: Michal Simek > > The Cortex-R* processors are a mid-range CPUs for use in deeply-embedded, > real-time systems. It implements the ARMv7-R architecture, and includes > Thumb-2 technology for optimum code density and processing

Re: [U-Boot] [U-Boot,v2,3/7] arm: v7: Kconfig: Add entry for MMU

2018-05-07 Thread Tom Rini
On Thu, Apr 26, 2018 at 06:21:27PM +0530, Lokesh Vutla wrote: > Add a Kconfig entry for MMU and imply for all platforms using > cache-cp15.c containing MMU setup. Using imply instead of select so that > MMU can be disabled by defconfigs when not needed. > > Tested-by: Michal Simek > Reviewed-by:

Re: [U-Boot] test: ofnode: test ofnode_device_is_compatible()

2018-05-07 Thread Tom Rini
On Fri, Apr 27, 2018 at 01:02:02AM +0900, Masahiro Yamada wrote: > Test ofnode_device_is_compatible(), and also ofnode_path(). > > Requested-by: Simon Glass > Signed-off-by: Masahiro Yamada > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [U-Boot] [U-Boot, v2, 2/4] dm: ofnode: add ofnode_device_is_compatible() helper

2018-05-07 Thread Tom Rini
On Thu, Apr 19, 2018 at 12:14:02PM +0900, Masahiro Yamada wrote: > device_is_compatible() takes udevice, but there is no such a helper > that takes ofnode. > > Signed-off-by: Masahiro Yamada > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [U-Boot] [U-Boot, 5/6] sunxi: psci: save context id in cpu_on command

2018-05-07 Thread Tom Rini
On Mon, Apr 16, 2018 at 10:15:11AM +0200, Patrick Delaunay wrote: > Replace the psci_save_target_pc call by the new function > psci_save(cpu, pc,context_id) > > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot, v2, 1/7] arm: v7: Update VBAR only if available

2018-05-07 Thread Tom Rini
On Thu, Apr 26, 2018 at 06:21:25PM +0530, Lokesh Vutla wrote: > Not all ARM V7 based cpus has VBAR for remapping > vector base address. So, update VBAR only if it available. > > Reviewed-by: Tom Rini > Signed-off-by: Lokesh Vutla Applied to u-boot/master, thanks! -- Tom signature.asc Descr

[U-Boot] [PATCH] arm: armv7m: Clean up some thumb / compiler flag options

2018-05-07 Thread Tom Rini
- The correct way to build with thumb mode is to select SYS_THUMB_BUILD - We should be setting -march=armv7-m in arch/arm/Makefile not the sub-config.mk file. Signed-off-by: Tom Rini --- arch/arm/Kconfig | 1 + arch/arm/Makefile | 1 + arch/arm/cpu/armv7m/config.mk | 2

Re: [U-Boot] [U-Boot, 4/6] uniphier: psci: save context id in cpu_on command

2018-05-07 Thread Tom Rini
On Mon, Apr 16, 2018 at 10:15:10AM +0200, Patrick Delaunay wrote: > Replace the psci_save_target_pc call by the new function > psci_save(cpu, pc,context_id) > > Signed-off-by: Patrick Delaunay > Acked-by: Masahiro Yamada Applied to u-boot/master, thanks! -- Tom signature.asc Description: P

Re: [U-Boot] [U-Boot, 2/6] imx7: psci: save context id in cpu_on command

2018-05-07 Thread Tom Rini
On Mon, Apr 16, 2018 at 10:15:08AM +0200, Patrick Delaunay wrote: > Replace the psci_save_target_pc call by the new function > psci_save(cpu, pc,context_id) > > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot, v2, 4/7] arm: v7: Kconfig: Introduce SYS_ARM_CACHE_CP15

2018-05-07 Thread Tom Rini
On Thu, Apr 26, 2018 at 06:21:28PM +0530, Lokesh Vutla wrote: > Certain ARM architectures like ARMv7-A, ARMv7-R has support for > enabling caches using CP15 registers. To have a common support > for all these architectures, introduce a Kconfig symbol > SYS_ARM_CACHE_CP15 that selects cache-cp15.c

Re: [U-Boot] [U-Boot, v2, 2/3] arm: psci: add a weak function psci_arch_cpu_entry

2018-05-07 Thread Tom Rini
On Mon, Apr 16, 2018 at 10:13:23AM +0200, Patrick Delaunay wrote: > The added function psci_arch_cpu_entry() is called > during psci_cpu_entry() and can be used by arch to handle > PSCI state transition from ON_PENDING to ON. > > The default weak function is empty: not behavior change. > > Signe

Re: [U-Boot] [U-Boot, 1/6] ls102xa: psci: save context id in cpu_on command

2018-05-07 Thread Tom Rini
On Mon, Apr 16, 2018 at 10:15:07AM +0200, Patrick Delaunay wrote: > Replace the psci_save_target_pc call by the new function > psci_save(cpu, pc,context_id) > > > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature _

Re: [U-Boot] [U-Boot, 2/6] imx7: psci: save context id in cpu_on command

2018-05-07 Thread Tom Rini
On Mon, Apr 16, 2018 at 10:15:08AM +0200, Patrick Delaunay wrote: > Replace the psci_save_target_pc call by the new function > psci_save(cpu, pc,context_id) > > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot,v2,3/3] arm: stm32mp1: add PSCI support

2018-05-07 Thread Tom Rini
On Mon, Apr 16, 2018 at 10:13:24AM +0200, Patrick Delaunay wrote: > Add PSCI v1.0 support for Linux and manage PSCI state > for each CPU (affinity 0 level) with all mandatory functions: > - PSCI_VERSION > - CPU_SUSPEND > - CPU_OFF > - CPU_ON > - AFFINITY_INFO > - SYSTEM_OFF > - SYSTEM_RESET > - PS

Re: [U-Boot] [U-Boot, v2, 1/3] arm: psci: save context id for cpu_on PSCI command

2018-05-07 Thread Tom Rini
On Mon, Apr 16, 2018 at 10:13:22AM +0200, Patrick Delaunay wrote: > Save and use the 3rd parameter of PSCI CPU_ON request: context_id. > > The context_id parameter is only meaningful to the caller. > U-Boot PSCI preserves a copy of the value passed in this parameter. > Following wakeup from a po

Re: [U-Boot] [PATCH 1/1] board: arm: Add support for Broadcom BCM7445D0

2018-05-07 Thread Tom Rini
On Sun, May 06, 2018 at 07:09:22AM -0400, Thomas Fitzsimmons wrote: > Add support for loading U-Boot on the Broadcom 7445D0 SoC. This port > assumes Broadcom's BOLT bootloader is acting as the second stage > bootloader, and U-Boot is acting as the third stage bootloader, loaded > as an ELF progra

Re: [U-Boot] [PATCH 1/1] tools/file2include: create Linux style SPDX header

2018-05-07 Thread Tom Rini
On Mon, May 07, 2018 at 08:38:24PM +0200, Heinrich Schuchardt wrote: > file2include is used to convert a binary file to a C include. > With the patch the SPDX header is written to the first line as > expected by scripts/checkpatch.pl. > > Cf. https://www.kernel.org/doc/html/v4.16/process/license-

Re: [U-Boot] [PATCH 2/2] spi: kirkwood: Full dm conversion

2018-05-07 Thread Chris Packham
On Thu, May 3, 2018 at 11:21 PM Stefan Roese wrote: > Hi Chris, > On 02.05.2018 23:56, Chris Packham wrote: > > Hi All, > > On Wed, May 2, 2018 at 10:53 PM Stefan Roese wrote: > > > >> Hi Simon, > > > >> On 01.05.2018 12:54, Simon Guinot wrote: > >>> On Mon, Apr 30, 2018 at 11:28:28AM +0530, Ja

[U-Boot] [PATCH] spi: kirkwood: add orion-spi compatible string

2018-05-07 Thread Chris Packham
This matches the compatible string used by the Linux kernel. This will allow u-boot to use the same device tree files. Signed-off-by: Chris Packham --- This applies on top of Jagan's series http://patchwork.ozlabs.org/project/uboot/list/?series=33927 drivers/spi/kirkwood_spi.c | 8 1 f

Re: [U-Boot] [U-Boot,V2] imx: mx7: psci: add system reset support

2018-05-07 Thread Trent Piepho
On Thu, 2018-01-04 at 17:03 +0800, Anson Huang wrote: > Add i.MX7 PSCI system reset support, linux > kernel now can use "reboot" command to reset > system. > +__secure void imx_system_reset(void) > +{ > + writew(1 << 2, WDOG1_BASE_ADDR); > +} This does not work properly on our board. Due to

Re: [U-Boot] [RFC PATCH v2 15/20] fastboot: Merge boot common across USB and UDP

2018-05-07 Thread Jocelyn Bohr
Optional nit: Consider renaming "fastbootcmd" to "fb_bootcmd" or similar. IMO "fastbootcmd" is ambiguous as there can be multiple env variable commands related to fastboot. On Thu, May 3, 2018 at 2:21 PM Joe Hershberger wrote: > On Mon, Apr 30, 2018 at 3:32 AM, Alex Kiernan > wrote: > > Merge U

Re: [U-Boot] [PATCH v2 1/3] efi_loader: allow unaligned memory access

2018-05-07 Thread Tom Rini
On Thu, Apr 05, 2018 at 09:39:20AM +0200, Alexander Graf wrote: > On 04/04/2018 09:14 PM, Heinrich Schuchardt wrote: > >On 04/04/2018 06:11 PM, Alexander Graf wrote: > >> > >>On 04.04.18 17:10, Heinrich Schuchardt wrote: > >>>On 04/04/2018 02:32 PM, Alexander Graf wrote: > > On 03.04.18 21

Re: [U-Boot] [UNTESTED PATCH] ARM: orion5x: fix use of callee-saved registers in lowloevel_init

2018-05-07 Thread Chris Packham
On Mon, May 7, 2018 at 10:11 PM Mans Rullgard wrote: > The lowlevel_init function uses r4 and r6 without preserving their > values as required by the AAPCS. Use r0 and r2 instead as these > are call-clobbered. > Signed-off-by: Mans Rullgard > --- > arch/arm/mach-orion5x/lowlevel_init.S | 168

Re: [U-Boot] [RFC PATCH v2 14/20] fastboot: Avoid re-parsing cmd_string for boot/reboot

2018-05-07 Thread Jocelyn Bohr
On Thu, May 3, 2018 at 2:18 PM Joe Hershberger wrote: > On Mon, Apr 30, 2018 at 3:32 AM, Alex Kiernan > wrote: > > When picking up boot/reboot after we've sent our result packet, use > > the previously parsed command rather than redoing the strcmp. > > > > Signed-off-by: Alex Kiernan > > Acked-

[U-Boot] [PATCH v2 1/3] mtd: nand: tegra: convert to driver model and live tree

2018-05-07 Thread Marcel Ziswiler
From: Marcel Ziswiler The Tegra NAND driver recently got broken by ongoing driver model resp. live tree migration work: NAND: Could not decode nand-flash in device tree Tegra NAND init failed 0 MiB A patch for NAND uclass support was proposed about a year ago: https://patchwork.ozlabs.org/patc

[U-Boot] [PATCH v2 0/3] tegra nand mtd, ubi, driver model and live tree enablement

2018-05-07 Thread Marcel Ziswiler
This series addresses recent Tegra NAND driver breakage caused by ongoing driver model resp. live tree migration work and enables it on Harmony as well. This series is available at http://git.toradex.com/cgit/u-boot-toradex.git/log/?h=for-next Changes in v2: - Use UCLASS_MTD rather than MISC as

[U-Boot] [PATCH v2 2/3] configs: harmony: enable live tree, mtd and ubi

2018-05-07 Thread Marcel Ziswiler
From: Marcel Ziswiler U-Boot on Harmony recently got broken by ongoing driver model resp. live tree migration work: U-Boot 2018.03-rc3 (Feb 21 2018 - 15:43:08 +0100) TEGRA20 Model: NVIDIA Tegra20 Harmony evaluation board Board: NVIDIA Harmony DRAM: 1 GiB Video device 'dc@5420' cannot alloc

[U-Boot] [PATCH v2 3/3] configs: colibri_t20: enable mtd

2018-05-07 Thread Marcel Ziswiler
From: Marcel Ziswiler Enable CONFIG_MTD as well to make sure UCLASS_MTD is available Signed-off-by: Marcel Ziswiler --- Changes in v2: - New commit required due to using UCLASS_MTD. configs/colibri_t20_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/colibri_t20_defconf

Re: [U-Boot] [PATCH v2 0/3] drivers: Add reset ctrl to drivers

2018-05-07 Thread Dinh Nguyen
On Fri, May 4, 2018 at 5:49 AM, Ley Foon Tan wrote: > Add reset ctrl to dwmmc socfpga, designware Ethernet and ns16550 serial > drivers. > > A reset property is an optional feature, so only print out a warning and > do not fail if a reset property is not present. > > If a reset property is discov

Re: [U-Boot] [PATCH 2/5] ARM: arm926ejs: fix lowlevel_init call

2018-05-07 Thread Chris Packham
Hi Klaus, On Mon, May 7, 2018 at 8:48 PM wrote: > > On 07.05.2018, at 10:25, Chris Packham wrote: > > > > Hi Mans, Stefano, > > > > On Fri, Apr 27, 2018 at 9:00 PM Stefano Babic wrote: > > > >> On 21/04/2018 17:11, Mans Rullgard wrote: > >>> The code attempts to preserve the value of LR by s

Re: [U-Boot] [PATCH 2/5] ARM: arm926ejs: fix lowlevel_init call

2018-05-07 Thread Chris Packham
On Mon, May 7, 2018 at 10:11 PM Måns Rullgård wrote: > Chris Packham writes: > > Hi Mans, Stefano, > > > > On Fri, Apr 27, 2018 at 9:00 PM Stefano Babic wrote: > > > >> On 21/04/2018 17:11, Mans Rullgard wrote: > >> > The code attempts to preserve the value of LR by storing it in R12/IP > >> >

[U-Boot] [PATCH] SPDX: Convert a few files that were missed before

2018-05-07 Thread Tom Rini
As part of the main conversion a few files were missed. These files had additional whitespace after the '*' and before the SPDX tag and my previous regex was too strict. This time I did a grep for all SPDX tags and then filtered out anything that matched the correct styles. Fixes: 83d290c56fab (

[U-Boot] [PATCH 1/1] tools/file2include: avoid incorrect comments

2018-05-07 Thread Heinrich Schuchardt
Avoid creating incorrect comments like /* ...*/... */ by printing '.' instead of '*' inside comments. Signed-off-by: Heinrich Schuchardt --- tools/file2include.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/file2include.c b/tools/file2include.c index e602f937f15..b98

Re: [U-Boot] [PATCH v3 2/2] sunxi: binman: Add U-Boot binary size check

2018-05-07 Thread Maxime Ripard
On Wed, May 02, 2018 at 03:24:50PM +0100, Måns Rullgård wrote: > Maxime Ripard writes: > > > 1;5201;0c > > On Wed, May 02, 2018 at 10:34:49AM +0100, Måns Rullgård wrote: > >> Siarhei Siamashka writes: > >> > >> > On Tue, 01 May 2018 18:25:06 +0100 > >> > Måns Rullgård wrote: > >> > > >> >> Max

[U-Boot] [PATCH v2 1/1] include: update log2 header from the Linux kernel

2018-05-07 Thread Heinrich Schuchardt
Without the patch gcc 8 produces: warning: ignoring attribute ‘noreturn’ because it conflicts with attribute ‘const’ [-Wattributes] int ilog2_NaN(void); So let's update the include from Linux kernel v4.16. This removes static checks of ilog2() arguments. Signed-off-by: Heinrich Schuchardt

Re: [U-Boot] [PATCH v7 06/35] musb: sunxi: Add OTG device clkgate and reset for H3/H5

2018-05-07 Thread Maxime Ripard
On Mon, May 07, 2018 at 05:32:34PM +0200, Marek Vasut wrote: > On 05/07/2018 04:52 PM, Maxime Ripard wrote: > > On Mon, May 07, 2018 at 01:47:43PM +0200, Marek Vasut wrote: > >> On 05/07/2018 09:33 AM, Jagan Teki wrote: > >>> Add OTG device clkgate and reset for H3/H5 through driver_data. > >>> > >

[U-Boot] No support for "standalone" applications in FIT image?

2018-05-07 Thread Brett Stahlman
I've built a standalone application that uses exported u-boot functions. It worked fine when I was loading the binary with "go", but when I attempted to package the binary in a FIT image, to be loaded with bootm, I ran into trouble... Specifically, although the header seems to be parsed correctly,

[U-Boot] [PATCH 1/1] xyz-modem: va_start() must be matched by va_end()

2018-05-07 Thread Heinrich Schuchardt
Every va_start() call must be matched by a va_end() call. scripts/checkpatch.pl required reformatting the complete function zm_dprintf(). Signed-off-by: Heinrich Schuchardt --- common/xyzModem.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/common/xyzMode

Re: [U-Boot] [PATCH 0/2] SPDX: Convert tags to Linux Kernel style

2018-05-07 Thread Tom Rini
On Mon, May 07, 2018 at 08:04:58PM +0200, Heinrich Schuchardt wrote: > On 05/07/2018 04:07 PM, Tom Rini wrote: > > As per the emails I had sent before on this subject, I've converted our > > SPDX tags to Linux Kernel style. What this means, to quote from the > > kernel's Documentation/process/lice

Re: [U-Boot] [PATCH 1/1] tools/file2include: create Linux style SPDX header

2018-05-07 Thread Fabio Estevam
On Mon, May 7, 2018 at 3:38 PM, Heinrich Schuchardt wrote: > file2include is used to convert a binary file to a C include. > With the patch the SPDX header is written to the first line as > expected by scripts/checkpatch.pl. > > Cf. https://www.kernel.org/doc/html/v4.16/process/license-rules.html

[U-Boot] [PATCH 1/1] tools/file2include: create Linux style SPDX header

2018-05-07 Thread Heinrich Schuchardt
file2include is used to convert a binary file to a C include. With the patch the SPDX header is written to the first line as expected by scripts/checkpatch.pl. Cf. https://www.kernel.org/doc/html/v4.16/process/license-rules.html Signed-off-by: Heinrich Schuchardt --- tools/file2include.c | 3 +-

Re: [U-Boot] [RFC] Migrate to Linux Kernel style SPDX Tags for v2018.05

2018-05-07 Thread Fabio Estevam
On Mon, May 7, 2018 at 3:19 PM, Marek Vasut wrote: > // SPDX foo > /* > * bar > */ > > Sort of stuff in the files. Yes, it seems that the preferred style is to move everything to // style in the initial comments: // SPDX foo // // bar ___ U-Boot mai

Re: [U-Boot] [RFC] Migrate to Linux Kernel style SPDX Tags for v2018.05

2018-05-07 Thread Marek Vasut
On 05/07/2018 06:47 PM, Fabio Estevam wrote: > On Mon, May 7, 2018 at 8:53 AM, Marek Vasut wrote: > >> And also the same inconsistent coding style then ? > > Not sure what inconsistent coding style you are talking about. // SPDX foo /* * bar */ Sort of stuff in the files. -- Best regards,

Re: [U-Boot] [PATCH 0/2] SPDX: Convert tags to Linux Kernel style

2018-05-07 Thread Heinrich Schuchardt
On 05/07/2018 04:07 PM, Tom Rini wrote: > As per the emails I had sent before on this subject, I've converted our > SPDX tags to Linux Kernel style. What this means, to quote from the > kernel's Documentation/process/license-rules.rst file is: > 2. Style: > >The SPDX license identifier is add

Re: [U-Boot] [RFC] Migrate to Linux Kernel style SPDX Tags for v2018.05

2018-05-07 Thread Fabio Estevam
On Mon, May 7, 2018 at 8:53 AM, Marek Vasut wrote: > And also the same inconsistent coding style then ? Not sure what inconsistent coding style you are talking about. ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [ANN] U-Boot v2018.05 released

2018-05-07 Thread Tom Rini
Hey all, It's release day, and here we are doing the release. It's live on git and FTP and ACD (along with the PGP sig file). A few things I want to call out here. First, a bunch more NXP PowerPC boards have just been marked as Orphaned due to lack of valid maintainer email. So the one year un

Re: [U-Boot] [PATCH 1/2] SPDX: Convert all of our single license tags to Linux Kernel style

2018-05-07 Thread Tom Rini
On Mon, May 07, 2018 at 10:07:24AM -0400, Tom Rini wrote: > When U-Boot started using SPDX tags we were among the early adopters and > there weren't a lot of other examples to borrow from. So we picked the > area of the file that usually had a full license text and replaced it > with an appropria

Re: [U-Boot] [PATCH 2/2] SPDX: Convert all of our multiple license tags to Linux Kernel style

2018-05-07 Thread Tom Rini
On Mon, May 07, 2018 at 10:07:25AM -0400, Tom Rini wrote: > When U-Boot started using SPDX tags we were among the early adopters and > there weren't a lot of other examples to borrow from. So we picked the > area of the file that usually had a full license text and replaced it > with an appropria

Re: [U-Boot] [PATCH] git-mailrc: Update some addresses and aliases

2018-05-07 Thread Tom Rini
On Mon, May 07, 2018 at 11:07:06AM -0400, Tom Rini wrote: > - Based on 08ae21af9671 ("MAINTAINERS: Switch nxp.com domain") update or > drop some formerly Freescale addresses. > - Update a few aliases to reflect current custodians > > Signed-off-by: Tom Rini Applied to u-boot/master, thanks!

Re: [U-Boot] [PATCH v7 06/35] musb: sunxi: Add OTG device clkgate and reset for H3/H5

2018-05-07 Thread Marek Vasut
On 05/07/2018 04:52 PM, Maxime Ripard wrote: > On Mon, May 07, 2018 at 01:47:43PM +0200, Marek Vasut wrote: >> On 05/07/2018 09:33 AM, Jagan Teki wrote: >>> Add OTG device clkgate and reset for H3/H5 through driver_data. >>> >>> Signed-off-by: Jagan Teki >> >> Why don't you implement a clock drive

[U-Boot] [PATCH] git-mailrc: Update some addresses and aliases

2018-05-07 Thread Tom Rini
- Based on 08ae21af9671 ("MAINTAINERS: Switch nxp.com domain") update or drop some formerly Freescale addresses. - Update a few aliases to reflect current custodians Signed-off-by: Tom Rini --- doc/git-mailrc | 39 --- 1 file changed, 12 insertions(+), 27 de

Re: [U-Boot] [PATCH v7 06/35] musb: sunxi: Add OTG device clkgate and reset for H3/H5

2018-05-07 Thread Maxime Ripard
On Mon, May 07, 2018 at 01:47:43PM +0200, Marek Vasut wrote: > On 05/07/2018 09:33 AM, Jagan Teki wrote: > > Add OTG device clkgate and reset for H3/H5 through driver_data. > > > > Signed-off-by: Jagan Teki > > Why don't you implement a clock driver for this SoC instead ? Aren't you asking a bi

Re: [U-Boot] [RFC] Migrate to Linux Kernel style SPDX Tags for v2018.05

2018-05-07 Thread Tom Rini
On Mon, May 07, 2018 at 01:53:56PM +0200, Marek Vasut wrote: > On 05/07/2018 03:57 AM, Fabio Estevam wrote: > > On Sun, May 6, 2018 at 10:45 PM, Tom Rini wrote: > > > >> The only place they'll now be allowed, just like with the Linux Kernel, > >> is for the first line SDPX tag in some file format

Re: [U-Boot] [RFC] Migrate to Linux Kernel style SPDX Tags for v2018.05

2018-05-07 Thread Marek Vasut
On 05/07/2018 03:57 AM, Fabio Estevam wrote: > On Sun, May 6, 2018 at 10:45 PM, Tom Rini wrote: > >> The only place they'll now be allowed, just like with the Linux Kernel, >> is for the first line SDPX tag in some file formats. Bringing us in >> line with how the kernel goes is overall a good t

Re: [U-Boot] [PATCH v7 19/35] device-tree-bindings: phy: Sync sun4i-usb-phy bindings

2018-05-07 Thread Marek Vasut
On 05/07/2018 09:33 AM, Jagan Teki wrote: > Sync sun4i-usb-phy bindings from Linux, since the > drivers/phy/allwinner/phy-sun4i-usb.c follw similar. follow which commit in Linux does this come from ? This should be in the commit message for future reference. > Signed-off-by: Jagan Teki > --- >

Re: [U-Boot] [PATCH v7 06/35] musb: sunxi: Add OTG device clkgate and reset for H3/H5

2018-05-07 Thread Marek Vasut
On 05/07/2018 09:33 AM, Jagan Teki wrote: > Add OTG device clkgate and reset for H3/H5 through driver_data. > > Signed-off-by: Jagan Teki Why don't you implement a clock driver for this SoC instead ? -- Best regards, Marek Vasut ___ U-Boot mailing li

Re: [U-Boot] [PATCH 2/2] SPDX: Convert all of our multiple license tags to Linux Kernel style

2018-05-07 Thread Fabio Estevam
On Mon, May 7, 2018 at 11:18 AM, Tom Rini wrote: >> I don't see a single occurrence of 'GPL-2.0+ OR X11' in the kernel tree. >> >> It seems that people use 'GPL-2.0+ OR MIT' instead. > > They do, and on IRC someone was commenting on this as well. This is > however what the current tag uses and f

Re: [U-Boot] [PATCH 2/2] SPDX: Convert all of our multiple license tags to Linux Kernel style

2018-05-07 Thread Tom Rini
On Mon, May 07, 2018 at 11:16:50AM -0300, Fabio Estevam wrote: > Hi Tom, > > On Mon, May 7, 2018 at 11:07 AM, Tom Rini wrote: > > > diff --git a/arch/arm/dts/bk4r1.dts b/arch/arm/dts/bk4r1.dts > > index 197e5abd704f..866b80e0b0b3 100644 > > --- a/arch/arm/dts/bk4r1.dts > > +++ b/arch/arm/dts/bk4

  1   2   >