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

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

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

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

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

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

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. >

[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 +++

[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

[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

[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

[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

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

[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:

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

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

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:

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

[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.

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

[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,

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

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 >

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

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

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

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

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,

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

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] [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 +

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

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

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. > >

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:

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

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 > -

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

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

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.

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,

[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

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

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

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

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 > --- >

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

[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:

[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

[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

[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

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

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,

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

[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

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

[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

[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

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

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.

[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 ---

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

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

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

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

[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

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

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

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

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

[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

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

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

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

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

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

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 > >

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

2018-05-07 Thread Fabio Estevam
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/bk4r1.dts > @@ -1,7 +1,6 @@ > +// SPDX-License-Identifier:

Re: [U-Boot] [PATCH v2 08/11] sandbox: Enable support for MC34708 PMIC in DTS

2018-05-07 Thread Lukasz Majewski
Hi Fabio, > Hi Lukasz, > > On Sun, May 6, 2018 at 5:26 PM, Lukasz Majewski wrote: > > > diff --git a/arch/sandbox/dts/sandbox.dts > > b/arch/sandbox/dts/sandbox.dts index 1fb8225fbb..b187b6fac1 100644 > > --- a/arch/sandbox/dts/sandbox.dts > > +++ b/arch/sandbox/dts/sandbox.dts

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

2018-05-07 Thread Tom Rini
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 appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel

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

2018-05-07 Thread Tom Rini
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 added in form of a comment. The comment style

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:56:54PM +0900, Masahiro Yamada wrote: > 2018-05-07 9:35 GMT+09:00 Marek Vasut : > > On 04/26/2018 01:26 PM, Tom Rini wrote: > >> Hey all, > >> > >> This was already brought up by Heinrich Schuchardt, but didn't get much > >> traction. So, I'm

[U-Boot] [PATCH v3 2/6] spi: omap3_spi: Full dm conversion

2018-05-07 Thread Jagan Teki
omap3_spi now support dt along with platform data, respective boards need to switch into dm for the same. Tested-by: Adam Ford #omap3_logic Signed-off-by: Jagan Teki --- drivers/spi/Kconfig | 14 +- drivers/spi/omap3_spi.c

[U-Boot] [PATCH] driver/mtd/spi: Default page size Spansion flash "S25FS512S" is 256b

2018-05-07 Thread Ashish Kumar
Signed-off-by: Ashish Kumar --- drivers/mtd/spi/spi_flash.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/mtd/spi/spi_flash.c b/drivers/mtd/spi/spi_flash.c index 3d24a08..ce420cb 100644 --- a/drivers/mtd/spi/spi_flash.c +++

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

2018-05-07 Thread Måns Rullgård
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 >> > across the lowevel_init()

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

2018-05-07 Thread Mans Rullgard
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 +- 1 file changed, 84

[U-Boot] [PATCH] spi: cadence_qspi: Fix warning cast from pointer to integer of different size

2018-05-07 Thread Ley Foon Tan
Cast to ulong data type. Compilation warning as below: CC spl/drivers/spi/cadence_qspi_apb.o LD spl/lib/built-in.o drivers/spi/cadence_qspi_apb.c: In function ‘cadence_qspi_apb_indirect_write_setup’: drivers/spi/cadence_qspi_apb.c:696:18: warning: cast from pointer to integer of

[U-Boot] [PATCH] spi: cadence_qspi: Fix compilation warning

2018-05-07 Thread Ley Foon Tan
Cast data_bytes to integer. Compilation warning as below: In file included from include/linux/bug.h:7:0, from include/common.h:26, from drivers/spi/cadence_qspi.c:8: drivers/spi/cadence_qspi.c: In function ‘cadence_spi_xfer’: drivers/spi/cadence_qspi.c:211:8:

[U-Boot] [PATCH] spi: cadence_qspi: Change to use devfdt_get_addr_index()

2018-05-07 Thread Ley Foon Tan
Change to use devfdt_get_addr_index() function to get fdt address. Original code has compilation warning below: drivers/spi/cadence_qspi.c: In function ‘cadence_spi_ofdata_to_platdata’: drivers/spi/cadence_qspi.c:297:18: warning: cast to pointer from integer of different size

[U-Boot] [PATCH v3 1/6] spi: kconfig: Move MPC8XXX_SPI to if DM_SPI

2018-05-07 Thread Jagan Teki
Move MPC8XXX_SPI to DM_SPI defined since driver is now fully converted to dm. Signed-off-by: Jagan Teki --- drivers/spi/Kconfig | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index

  1   2   >