[U-Boot] [PATCH] Import Android's dt_table.h for DT image format

2018-05-28 Thread Alex Deymo
Android documentation defines the recommended image format for storing DTB/DTBO files in a single dtbo.img image. This patch includes the latest header file with the struct definitions for this format from AOSP. The header was adapted to U-Boot's coding style and the function declarations were

Re: [U-Boot] [PATCH v2 1/2] sunxi-mmc: use new mode on A64

2018-05-28 Thread Vasily Khoruzhick
You need both patches in order for it to work. I tested these patches on Pinebook and Pine64 LTS, both were able to boot from eMMC. What board are you using? On Sun, May 27, 2018 at 11:43 AM, Jagan Teki wrote: > On Mon, May 14, 2018 at 8:57 PM, Vasily Khoruzhick wrote: >> That is necessary for

Re: [U-Boot] [U-Boot, 2/3] ARM: qemu-arm: Bump RAM size in AArch64 MMU table

2018-05-28 Thread Tom Rini
On Mon, May 14, 2018 at 06:47:51PM +0300, Tuomas Tynkkynen wrote: > Now that PCI devices work with highmem-enabled QEMU emulation, bump up > the RAM size in the MMU tables to gain access to the full 255 GB of RAM > potential instead of the puny 3 GB. > > Signed-off-by: Tuomas Tynkkynen >

Re: [U-Boot] [U-Boot, 1/3] PCI: dm: Ignore 64-bit memory regions if CONFIG_SYS_PCI_64BIT not set

2018-05-28 Thread Tom Rini
On Mon, May 14, 2018 at 06:47:50PM +0300, Tuomas Tynkkynen wrote: > Currently, qemu_arm_defconfig and qemu_arm64_defconfig only work with > the 'highmem=off' parameter passed to QEMU's virt machine. The reason is > that when 'highmem' is not disabled, QEMU appends 64-bit a memory > resource to

Re: [U-Boot] [U-Boot, 3/3] doc: qemu-arm: Drop highmem=off references

2018-05-28 Thread Tom Rini
On Mon, May 14, 2018 at 06:47:52PM +0300, Tuomas Tynkkynen wrote: > Now that U-Boot works fine with highmem enabled, there is no need to > tell users to disable highmem. > > Signed-off-by: Tuomas Tynkkynen > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [U-Boot] [U-Boot, v2, 2/7] serial: serial_msm: fail probe if settings clocks fails

2018-05-28 Thread Tom Rini
On Wed, May 16, 2018 at 12:13:37PM +0300, Ramon Fried wrote: > Failure to set the clocks will causes data abort exception when > trying to write to AHB uart registers. > This patch ensures that we don't touch these registers if clock > setting failed. > > Signed-off-by: Ramon Fried >

Re: [U-Boot] PCI: Document pciauto_region_allocate()

2018-05-28 Thread Tom Rini
On Mon, May 14, 2018 at 11:50:05PM +0300, Tuomas Tynkkynen wrote: > Add a doc comment for pciauto_region_allocate(). > > Signed-off-by: Tuomas Tynkkynen > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot, v2] ram: stm32_sdram: Adds stm32f429-disco fixes for HardFault at booting

2018-05-28 Thread Tom Rini
On Wed, May 16, 2018 at 05:27:11PM +0200, Radoslaw Pietrzyk wrote: > - adds reading FMC swap setting from DTB to SDRAM driver > - sets FMC swap for stm32f429-disco board > - changes ram start address to 0x9000 > > Signed-off-by: Radoslaw Pietrzyk > Acked-by: Patrice Chotard Applied to

Re: [U-Boot] [U-Boot,v2,4/7] mach-snapdragon: Fix UART clock flow

2018-05-28 Thread Tom Rini
On Wed, May 16, 2018 at 12:13:39PM +0300, Ramon Fried wrote: > UART clock enabling flow was wrong. > Changed the flow according to downstream implementation in LK. > > Signed-off-by: Ramon Fried Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] Remove CONFIG_MVGBE from config_whitelist.txt

2018-05-28 Thread Tom Rini
On Wed, May 16, 2018 at 08:34:14PM +1200, Chris Packham wrote: > Now that there are more boards defining this it can be removed from the > whitelist. > > Signed-off-by: Chris Packham > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

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

2018-05-28 Thread Tom Rini
On Thu, May 17, 2018 at 02:50:44PM +0200, Patrice Chotard wrote: > 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 Applied to

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

2018-05-28 Thread Tom Rini
On Thu, May 17, 2018 at 03:24:07PM +0200, Patrice Chotard wrote: > 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 >

Re: [U-Boot] [U-Boot, v2, 1/7] db820c: set clk node to be probed before relocation

2018-05-28 Thread Tom Rini
On Wed, May 16, 2018 at 12:13:36PM +0300, Ramon Fried wrote: > The clock and serial nodes are needed before relocation. > This patch ensures that the msm-serial driver will probe > and provide uart output before relocation. > > Signed-off-by: Ramon Fried > Reviewed-by: Simon Glass Applied to

Re: [U-Boot] [U-Boot, v2, 7/7] serial: serial_msm: added pinmux & config

2018-05-28 Thread Tom Rini
On Wed, May 16, 2018 at 12:13:42PM +0300, Ramon Fried wrote: > Serial port configuration was missing from previous implementation. > It only worked because it was preconfigured by LK. > This patch configures the uart for 115200 8N1. > It also configures the pin mux for uart pins using DT

Re: [U-Boot] [U-Boot, v2, 5/7] mach-snapdragon: Introduce pinctrl driver

2018-05-28 Thread Tom Rini
On Wed, May 16, 2018 at 12:13:40PM +0300, Ramon Fried wrote: > This patch adds pinmux and pinctrl driver for TLMM > subsystem in snapdragon chipsets. > Currently, supporting only 8016, but implementation is > generic and 8096 can be added easily. > > Driver is using the generic dt-bindings and

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

2018-05-28 Thread Tom Rini
On Thu, May 17, 2018 at 03:24:06PM +0200, Patrice Chotard wrote: > 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 Applied to

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

2018-05-28 Thread Tom Rini
On Thu, May 17, 2018 at 02:50:42PM +0200, Patrice Chotard wrote: > 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 > Reviewed-by: Simon Glass

Re: [U-Boot] [U-Boot, 2/2] PCI: autoconfig: Don't allocate 64-bit addresses to 32-bit only resources

2018-05-28 Thread Tom Rini
On Mon, May 14, 2018 at 07:38:13PM +0300, Tuomas Tynkkynen wrote: > Currently, if we happen to allocate an address requiring 64 bits to a > device only supporting 32-bit BARs, the address eventually gets silently > truncated to 32 bits. Avoid this by adding a new flag to >

Re: [U-Boot] [U-Boot, 1/2] PCI: Add newlines to debug prints in pci_auto_common.c

2018-05-28 Thread Tom Rini
On Mon, May 14, 2018 at 07:38:12PM +0300, Tuomas Tynkkynen wrote: > All of the debug output from this file is squished to one line. Fix > it. > > Signed-off-by: Tuomas Tynkkynen > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

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

2018-05-28 Thread Tom Rini
On Thu, May 17, 2018 at 03:24:05PM +0200, Patrice Chotard wrote: > 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:

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

2018-05-28 Thread Tom Rini
On Thu, May 17, 2018 at 02:50:46PM +0200, Patrice Chotard wrote: > 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

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

2018-05-28 Thread Tom Rini
On Thu, May 17, 2018 at 03:24:04PM +0200, Patrice Chotard wrote: > 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 Applied to

Re: [U-Boot] [U-Boot, v2, 3/7] serial: serial_msm: initialize uart only before relocation

2018-05-28 Thread Tom Rini
On Wed, May 16, 2018 at 12:13:38PM +0300, Ramon Fried wrote: > The uart is already initialized prior to relocation, > reinitialization after relocation is unnecessary. > > Signed-off-by: Ramon Fried > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [U-Boot] malloc: Use malloc simple before malloc is fully initialized in memalign()

2018-05-28 Thread Tom Rini
On Fri, May 18, 2018 at 06:03:12PM +0800, Ley Foon Tan wrote: > Follow implementation in mALLOc(). Check GD_FLG_FULL_MALLOC_INIT flag and use > malloc_simple if GD_FLG_FULL_MALLOC_INIT is unset. Adjust the malloc bytes > to align with the requested alignment. > > The original memalign() function

Re: [U-Boot] [U-Boot, v2, 6/7] db410: added pinctrl node and serial bindings

2018-05-28 Thread Tom Rini
On Wed, May 16, 2018 at 12:13:41PM +0300, Ramon Fried wrote: > Added TLMM pinctrl node for pin muxing & config. > Additionally, added a serial node for uart. > > Signed-off-by: Ramon Fried Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [PATCH 00/12] binman: A few more features

2018-05-28 Thread Tom Rini
On Sat, May 26, 2018 at 04:18:45PM -0600, Simon Glass wrote: > Hi, > > On 15 May 2018 at 19:52, Simon Glass wrote: > > This series ads a few more features to binman, principally the ability to > > nest entries within other entries, to form hierarchical images. > > > > Also included are support

Re: [U-Boot] [U-Boot, v3] add FIT data-position & data-offset property support

2018-05-28 Thread Tom Rini
On Sat, May 19, 2018 at 06:21:37PM +0800, Kelvin Cheung wrote: > Add FIT data-position & data-offset property support for bootm, > which were already supported in SPL. > > Signed-off-by: Kelvin Cheung Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

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

2018-05-28 Thread Tom Rini
On Thu, May 17, 2018 at 02:50:45PM +0200, Patrice Chotard wrote: > From: Patrick Delaunay > > Add possibility to update the serial parity used. > > Signed-off-by: Patrick Delaunay > Signed-off-by: Patrice Chotard Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [U-Boot] [U-Boot,v2,4/7] mach-snapdragon: Fix UART clock flow

2018-05-28 Thread Jorge Ramirez-Ortiz
On 05/28/2018 09:12 PM, Tom Rini wrote: On Wed, May 16, 2018 at 12:13:39PM +0300, Ramon Fried wrote: UART clock enabling flow was wrong. Changed the flow according to downstream implementation in LK. Signed-off-by: Ramon Fried Applied to u-boot/master, thanks! Ramon, did you re-test this

Re: [U-Boot] mmc: stm32_sdmmc2: Fix stm32_sdmmc2_start_cmd()

2018-05-28 Thread Tom Rini
On Thu, May 17, 2018 at 04:53:57PM +0200, Patrice Chotard wrote: > SDMMC_CMD_CPSMEN bit is wrongly check and set in > SDMMC_ARG register instead of SDMMC_CMD register. > > Signed-off-by: Patrice Chotard Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot,v2,4/7] mach-snapdragon: Fix UART clock flow

2018-05-28 Thread Tom Rini
On Mon, May 28, 2018 at 10:24:36PM +0300, Ramon Fried wrote: > On Mon, May 28, 2018 at 10:19 PM, Jorge Ramirez-Ortiz > wrote: > > On 05/28/2018 09:12 PM, Tom Rini wrote: > >> > >> On Wed, May 16, 2018 at 12:13:39PM +0300, Ramon Fried wrote: > >> > >>> UART clock enabling flow was wrong. > >>>

Re: [U-Boot] [U-Boot,v2,4/7] mach-snapdragon: Fix UART clock flow

2018-05-28 Thread Ramon Fried
On Mon, May 28, 2018 at 10:19 PM, Jorge Ramirez-Ortiz wrote: > On 05/28/2018 09:12 PM, Tom Rini wrote: >> >> On Wed, May 16, 2018 at 12:13:39PM +0300, Ramon Fried wrote: >> >>> UART clock enabling flow was wrong. >>> Changed the flow according to downstream implementation in LK. >>> >>>

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

2018-05-28 Thread Tom Rini
On Thu, May 17, 2018 at 02:50:43PM +0200, Patrice Chotard wrote: > 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 > Reviewed-by: Simon Glass

Re: [U-Boot] [U-Boot,v2,4/7] mach-snapdragon: Fix UART clock flow

2018-05-28 Thread Ramon Fried
On Mon, May 28, 2018 at 10:26 PM, Tom Rini wrote: > On Mon, May 28, 2018 at 10:24:36PM +0300, Ramon Fried wrote: >> On Mon, May 28, 2018 at 10:19 PM, Jorge Ramirez-Ortiz >> wrote: >> > On 05/28/2018 09:12 PM, Tom Rini wrote: >> >> >> >> On Wed, May 16, 2018 at 12:13:39PM +0300, Ramon Fried

Re: [U-Boot] [U-Boot,v2,4/7] mach-snapdragon: Fix UART clock flow

2018-05-28 Thread Tom Rini
On Mon, May 28, 2018 at 10:28:51PM +0300, Ramon Fried wrote: > On Mon, May 28, 2018 at 10:26 PM, Tom Rini wrote: > > On Mon, May 28, 2018 at 10:24:36PM +0300, Ramon Fried wrote: > >> On Mon, May 28, 2018 at 10:19 PM, Jorge Ramirez-Ortiz > >> wrote: > >> > On 05/28/2018 09:12 PM, Tom Rini wrote:

Re: [U-Boot] [U-Boot,v2,4/7] mach-snapdragon: Fix UART clock flow

2018-05-28 Thread Jorge Ramirez-Ortiz
On 05/28/2018 09:48 PM, Ramon Fried wrote: On Mon, May 28, 2018 at 10:24 PM, Ramon Fried wrote: On Mon, May 28, 2018 at 10:19 PM, Jorge Ramirez-Ortiz wrote: On 05/28/2018 09:12 PM, Tom Rini wrote: On Wed, May 16, 2018 at 12:13:39PM +0300, Ramon Fried wrote: UART clock enabling flow was

Re: [U-Boot] [U-Boot,v2,4/7] mach-snapdragon: Fix UART clock flow

2018-05-28 Thread Ramon Fried
On Mon, May 28, 2018 at 11:14 PM, Ramon Fried wrote: > On Mon, May 28, 2018 at 11:07 PM, Jorge Ramirez-Ortiz > wrote: >> On 05/28/2018 10:01 PM, Ramon Fried wrote: >>> >>> On Mon, May 28, 2018 at 10:59 PM, Jorge Ramirez-Ortiz >>> wrote: On 05/28/2018 09:48 PM, Ramon Fried wrote: >

Re: [U-Boot] [U-Boot,v2,4/7] mach-snapdragon: Fix UART clock flow

2018-05-28 Thread Ramon Fried
On Mon, May 28, 2018 at 10:24 PM, Ramon Fried wrote: > On Mon, May 28, 2018 at 10:19 PM, Jorge Ramirez-Ortiz > wrote: >> On 05/28/2018 09:12 PM, Tom Rini wrote: >>> >>> On Wed, May 16, 2018 at 12:13:39PM +0300, Ramon Fried wrote: >>> UART clock enabling flow was wrong. Changed the flow

Re: [U-Boot] [U-Boot,v2,4/7] mach-snapdragon: Fix UART clock flow

2018-05-28 Thread Jorge Ramirez-Ortiz
On 05/28/2018 10:01 PM, Ramon Fried wrote: On Mon, May 28, 2018 at 10:59 PM, Jorge Ramirez-Ortiz wrote: On 05/28/2018 09:48 PM, Ramon Fried wrote: On Mon, May 28, 2018 at 10:24 PM, Ramon Fried wrote: On Mon, May 28, 2018 at 10:19 PM, Jorge Ramirez-Ortiz wrote: On 05/28/2018 09:12 PM, Tom

Re: [U-Boot] [U-Boot,v2,4/7] mach-snapdragon: Fix UART clock flow

2018-05-28 Thread Ramon Fried
On Mon, May 28, 2018 at 10:59 PM, Jorge Ramirez-Ortiz wrote: > On 05/28/2018 09:48 PM, Ramon Fried wrote: >> >> On Mon, May 28, 2018 at 10:24 PM, Ramon Fried >> wrote: >>> >>> On Mon, May 28, 2018 at 10:19 PM, Jorge Ramirez-Ortiz >>> wrote: On 05/28/2018 09:12 PM, Tom Rini wrote:

Re: [U-Boot] [U-Boot,v2,4/7] mach-snapdragon: Fix UART clock flow

2018-05-28 Thread Ramon Fried
On Mon, May 28, 2018 at 11:07 PM, Jorge Ramirez-Ortiz wrote: > On 05/28/2018 10:01 PM, Ramon Fried wrote: >> >> On Mon, May 28, 2018 at 10:59 PM, Jorge Ramirez-Ortiz >> wrote: >>> >>> On 05/28/2018 09:48 PM, Ramon Fried wrote: On Mon, May 28, 2018 at 10:24 PM, Ramon Fried wrote:

Re: [U-Boot] [U-Boot,v2,4/7] mach-snapdragon: Fix UART clock flow

2018-05-28 Thread Ramon Fried
On Mon, May 28, 2018 at 10:35 PM, Tom Rini wrote: > On Mon, May 28, 2018 at 10:28:51PM +0300, Ramon Fried wrote: >> On Mon, May 28, 2018 at 10:26 PM, Tom Rini wrote: >> > On Mon, May 28, 2018 at 10:24:36PM +0300, Ramon Fried wrote: >> >> On Mon, May 28, 2018 at 10:19 PM, Jorge Ramirez-Ortiz >>

[U-Boot] [PATCH v2] mach-snapdragon: increase size of malloc pool

2018-05-28 Thread Ramon Fried
Pool size must be increased to support new additionals drivers. Signed-off-by: Ramon Fried --- v2: increase pool size to 0x200 as suggested by Tom. arch/arm/mach-snapdragon/Kconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-snapdragon/Kconfig

Re: [U-Boot] [U-Boot,v2,4/7] mach-snapdragon: Fix UART clock flow

2018-05-28 Thread Jorge Ramirez-Ortiz
On 05/28/2018 10:25 PM, Ramon Fried wrote: On Mon, May 28, 2018 at 11:14 PM, Ramon Fried wrote: On Mon, May 28, 2018 at 11:07 PM, Jorge Ramirez-Ortiz wrote: On 05/28/2018 10:01 PM, Ramon Fried wrote: On Mon, May 28, 2018 at 10:59 PM, Jorge Ramirez-Ortiz wrote: On 05/28/2018 09:48 PM,

Re: [U-Boot] [PATCH 37/41] mmc: fsl_esdhc: fix sd/mmc ddr mode clock setting issue

2018-05-28 Thread Benoît Thébaudeau
Dear Peng Fan, On Mon, May 28, 2018 at 2:25 PM, Peng Fan wrote: > From: Ye Li > > When sd/mmc work at DDR mode, like HS400/HS400ES/DDR52/DDR50 mode, > the actual clock rate is just half of the expected clock. > > This patch set the DDR_EN bit first for DDR mode, hardware divide > the usdhc

Re: [U-Boot] [PATCH] mvebu: a38x: Force receiver detected on PCIe lanes

2018-05-28 Thread Chris Packham
On Tue, May 29, 2018 at 12:52 AM Stefan Roese wrote: > (Added Mario and Chris) > On 27.05.2018 17:34, Baruch Siach wrote: > > From: Rabeeh Khoury > > > > Some QCA988x based modules presence is not detected by the SERDES lanes, > > so force this detection which will trigger the LTSSM state

[U-Boot] [PATCH] db820c: add dummy clock for uart node

2018-05-28 Thread Ramon Fried
The missing clock causes serial_msm driver probe to fail. Added a dummy node so the probe succeeds, as the clock init currently in db820c is empty. Fixes: 11d59fe5374a ("serial: serial_msm: fail probe if settings clocks fails") Signed-off-by: Ramon Fried --- arch/arm/dts/dragonboard820c.dts |

Re: [U-Boot] [U-Boot,v2,4/7] mach-snapdragon: Fix UART clock flow

2018-05-28 Thread Ramon Fried
On Tue, May 29, 2018, 12:11 AM Jorge Ramirez-Ortiz wrote: > > On 05/28/2018 11:07 PM, Jorge Ramirez-Ortiz wrote: > > Jorge, I just sent you a fix. can you test it and if it works I'll > push it upstream. > > > yes I can see the console now so that fix is good. > > however there must be some other

Re: [U-Boot] [PATCH] arm: mvebu: switch clearfog to use device-tree i2c and gpio

2018-05-28 Thread Chris Packham
On Tue, May 29, 2018 at 4:11 AM Baruch Siach wrote: > From: Jon Nettleton > This switches the clearfog boards to use DM based gpio and i2c > drivers. The io expanders are configured via their device-tree > entries. > Signed-off-by: Jon Nettleton > [baruch: add DT i2c aliases] >

Re: [U-Boot] Remove CONFIG_MVGBE from config_whitelist.txt

2018-05-28 Thread Chris Packham
Hi Tom, On Tue, May 29, 2018 at 7:12 AM Tom Rini wrote: > On Wed, May 16, 2018 at 08:34:14PM +1200, Chris Packham wrote: > > Now that there are more boards defining this it can be removed from the > > whitelist. > > > > Signed-off-by: Chris Packham > > Reviewed-by: Simon Glass > Applied to

Re: [U-Boot] [PATCH] bug.h: introduce WARN_ONCE

2018-05-28 Thread Masahiro Yamada
2018-05-28 18:44 GMT+09:00 Ramon Fried : > Add WARN_ONCE definition to allow single time notification > of warnings to the user. > > Signed-off-by: Ramon Fried > --- > include/linux/bug.h | 18 ++ > 1 file changed, 18 insertions(+) > > diff --git a/include/linux/bug.h

Re: [U-Boot] [U-Boot,v2,4/7] mach-snapdragon: Fix UART clock flow

2018-05-28 Thread Jorge Ramirez-Ortiz
On 05/28/2018 11:07 PM, Jorge Ramirez-Ortiz wrote: Jorge, I just sent you a fix. can you test it and if it works I'll push it upstream. yes I can see the console now so that fix is good. however there must be some other regression lurking because the system wont boot a kernel from the SD

[U-Boot] [PATCH] arm: sunxi: Add support for Pengpod 1000 tablet

2018-05-28 Thread Bob Ham
This is initial support for the Pengpod 1000 tablet. The display is not currently working but the UART works fine and allows access to the u-boot console. Memory timing is fine and Linux boots from SD card and runs OK. Signed-off-by: Bob Ham --- arch/arm/dts/Makefile | 1 +

Re: [U-Boot] [PATCH] mvebu: a38x: Force receiver detected on PCIe lanes

2018-05-28 Thread Rabeeh Khoury
> > >> > I understand that this might fix an issue on a specific board (ClearFog > in this case, correct?). But are you sure that its safe to force this > link detection for all A38x boards? > We have tested on clearfog-pro / base and two other custom boards that we have. On long traces this fix

Re: [U-Boot] Remove CONFIG_MVGBE from config_whitelist.txt

2018-05-28 Thread Tom Rini
On Tue, May 29, 2018 at 11:12:22AM +1200, Chris Packham wrote: > Hi Tom, > On Tue, May 29, 2018 at 7:12 AM Tom Rini wrote: > > > On Wed, May 16, 2018 at 08:34:14PM +1200, Chris Packham wrote: > > > > Now that there are more boards defining this it can be removed from the > > > whitelist. > > >

Re: [U-Boot] [PATCH 1/4] mx7: psci: add cpu hotplug support

2018-05-28 Thread Anson Huang
Hi, Bryan Anson Huang Best Regards! > -Original Message- > From: Bryan O'Donoghue [mailto:bryan.odonog...@linaro.org] > Sent: Monday, May 28, 2018 4:59 PM > To: Anson Huang ; sba...@denx.de; Fabio Estevam > ; albert.u.b...@aribaud.net; > christian.gmei...@gmail.com; Peng Fan ; >

Re: [U-Boot] [PATCH v2 1/2] drivers; add DM_NO_OF Kconfig option

2018-05-28 Thread Tom Rini
On Sun, May 27, 2018 at 07:45:12PM -0600, Simon Glass wrote: > +Tom > > Hi Angelo, > > On 27 May 2018 at 01:22, Angelo Dureghello wrote: > > Hi Simon, > > > > On Sat, May 26, 2018 at 04:18:57PM -0600, Simon Glass wrote: > >> Hi Angelo, > >> > >> On 3 May 2018 at 16:01, Angelo Dureghello wrote:

Re: [U-Boot] [PATCH 37/41] mmc: fsl_esdhc: fix sd/mmc ddr mode clock setting issue

2018-05-28 Thread Peng Fan
> -Original Message- > From: Benoît Thébaudeau [mailto:benoit.thebaudeau@gmail.com] > Sent: 2018年5月29日 6:32 > To: Peng Fan > Cc: sba...@denx.de; Fabio Estevam ; U-Boot > ; Bough Chen > Subject: Re: [U-Boot] [PATCH 37/41] mmc: fsl_esdhc: fix sd/mmc ddr mode clock > setting issue >

Re: [U-Boot] [PATCH 1/2] i2c: mvtwsi: disable i2c slave on Armada 38x

2018-05-28 Thread Baruch Siach
Hi Chris, On Tue, May 29, 2018 at 10:32:47AM +1200, Chris Packham wrote: > Did you intend to omit the u-boot mailing list? No, sorry. Thanks for noticing. I'll resend with the change that Stefan suggested and keep your Tested-by. > On Tue, May 29, 2018 at 3:11 AM Baruch Siach wrote: > >

Re: [U-Boot] [PATCH] ubi: fastmap: Implement produce_free_peb()

2018-05-28 Thread Heiko Schocher
Hello Patrice, Am 22.05.2018 um 10:10 schrieb Patrice Chotard: Since 'commit f82290afc847 ("mtd: ubi: Fix worker handling")', when booting from NAND, on a fresh NAND just after being flashed (and only in this case), we got the following log: ubi0: default fastmap pool size: 200 ubi0: default

[U-Boot] Pull request: u-boot-ubi/master

2018-05-28 Thread Heiko Schocher
Hello Tom, please pull from u-boot-ubi.git master The following changes since commit 624d2cae3401c2e4d43c571a9b81d1f650e7703d: SPDX: Fixup SPDX tags in a few new files (2018-05-20 09:47:45 -0400) are available in the Git repository at: git://git.denx.de/u-boot-ubi.git master for you to

Re: [U-Boot] [PATCH 23/41] imx_lpi2c: Update lpi2c driver to support imx8

2018-05-28 Thread Heiko Schocher
Hello Peng, Am 28.05.2018 um 14:25 schrieb Peng Fan: From: Ye Li Add compatible string for i.MX8 and move imx_lpi2c.h from mx7ulp directory to u-boot include directory as a common header file. Signed-off-by: Ye Li Signed-off-by: Peng Fan Cc: Heiko Schocher --- drivers/i2c/imx_lpi2c.c

Re: [U-Boot] [PATCH 1/2] i2c: mvtwsi: disable i2c slave on Armada 38x

2018-05-28 Thread Chris Packham
On Tue, May 29, 2018 at 2:39 PM Baruch Siach wrote: > Hi Chris, > On Tue, May 29, 2018 at 10:32:47AM +1200, Chris Packham wrote: > > Did you intend to omit the u-boot mailing list? > No, sorry. Thanks for noticing. I'll resend with the change that Stefan > suggested and keep your Tested-by. >

Re: [U-Boot] [PATCH 24/41] imx: lpi2c: fix clock issue when NACK detected

2018-05-28 Thread Heiko Schocher
Hello Peng, Am 28.05.2018 um 14:25 schrieb Peng Fan: From: Gao Pan For LPI2C IP, NACK is detected by the rising edge of the ninth clock. In current uboot driver, once NACK is detected, it will reset and then disable LPI2C master. As a result, we can never see the falling edge of the ninth

Re: [U-Boot] [PATCH 25/41] lpi2c: Fix bus stop problem in xfer

2018-05-28 Thread Heiko Schocher
Hello Peng, Am 28.05.2018 um 14:25 schrieb Peng Fan: From: Ye Li In xfer function, both bus_i2c_read and bus_i2c_write will send a STOP command. This causes a problem when reading register data from i2c device. Generally two operations comprise the register data reading: 1. Write the

Re: [U-Boot] [PATCH 1/2] i2c: mvtwsi: disable i2c slave on Armada 38x

2018-05-28 Thread Baruch Siach
Hi Chris, On Tue, May 29, 2018 at 03:49:44PM +1200, Chris Packham wrote: > On Tue, May 29, 2018 at 2:39 PM Baruch Siach wrote: > > On Tue, May 29, 2018 at 10:32:47AM +1200, Chris Packham wrote: > > > Did you intend to omit the u-boot mailing list? > > > No, sorry. Thanks for noticing. I'll

Re: [U-Boot] [PATCH 1/2] i2c: mvtwsi: disable i2c slave on Armada 38x

2018-05-28 Thread Chris Packham
On Tue, May 29, 2018 at 3:56 PM Baruch Siach wrote: > Hi Chris, > On Tue, May 29, 2018 at 03:49:44PM +1200, Chris Packham wrote: > > On Tue, May 29, 2018 at 2:39 PM Baruch Siach wrote: > > > On Tue, May 29, 2018 at 10:32:47AM +1200, Chris Packham wrote: > > > > Did you intend to omit the

Re: [U-Boot] [PATCH 26/41] lpi2c: Add bus busy error handling

2018-05-28 Thread Heiko Schocher
Hello Peng, Am 28.05.2018 um 14:25 schrieb Peng Fan: From: Ye Li When doing "i2c dev 4; i2c probe" with ENET daughter card connected on iMX8QXP MEK board, we met a i2c bus busy issue, that the BBF of lpi2c always show busy, but the master is idle, and stop is detected (SDF set). This patch

Re: [U-Boot] [PATCH 1/2] i2c: mvtwsi: disable i2c slave on Armada 38x

2018-05-28 Thread Heiko Schocher
Hello Chris, Am 29.05.2018 um 05:49 schrieb Chris Packham: On Tue, May 29, 2018 at 2:39 PM Baruch Siach wrote: Hi Chris, On Tue, May 29, 2018 at 10:32:47AM +1200, Chris Packham wrote: Did you intend to omit the u-boot mailing list? No, sorry. Thanks for noticing. I'll resend with the

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

2018-05-28 Thread Jagan Teki
On Thu, May 17, 2018 at 6:19 PM, Marek Vasut wrote: > Add ID for the Macronix MX25U25635F flash. > > Signed-off-by: Marek Vasut > Cc: Jagan Teki > --- Applied to u-boot-spi/master ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH] sf: Add Winbond W25Q256 ID

2018-05-28 Thread Jagan Teki
On Wed, May 16, 2018 at 8:15 PM, Marek Vasut wrote: > Add ID for the Winbond W25Q256 flash. > > Signed-off-by: Marek Vasut > Cc: Jagan Teki > --- Applied to u-boot-spi/master ___ U-Boot mailing list U-Boot@lists.denx.de

[U-Boot] [PATCH 1/2] i2c: mvtwsi: disable i2c slave on Armada 38x

2018-05-28 Thread Baruch Siach
Equivalent code that disables the hidden i2c0 slave already exists in the Turris Omnia platform specific code. But this hidden i2c0 slave that interferes the i2c bus is not board specific. Armada 38x SoCs and at least some Kirkwood variants are affected as well. Add code to disable this slave to

[U-Boot] [PATCH 2/2] mvebu: turris_omnia: add note about i2c slave disable

2018-05-28 Thread Baruch Siach
Code that disables the i2c slave is now in the mvtwsi i2c driver. Platform must enable DM_I2C to use that code. Add a comment in the code as a reminder for the planned DM_I2C migration of Turris Omnia. Reviewed-by: Heiko Schocher Signed-off-by: Baruch Siach --- v2: Add Reviewed-by from Heiko

Re: [U-Boot] [PATCH] sf: Enable FSR polling on N25Q256(A)

2018-05-28 Thread Jagan Teki
+ Siva On Fri, May 25, 2018 at 1:28 AM, Marek Vasut wrote: > The N25Q256(A) datasheet clearly states that this device does have > a Flag Status Register and does update FSR PEC bit 7 during Program > and Erase cycles to indicate the cycle is in progress. Enable the > FSR PEC bit polling on this

Re: [U-Boot] [PATCH] arm: mvebu: switch clearfog to use device-tree i2c and gpio

2018-05-28 Thread Baruch Siach
Hi Chris, On Tue, May 29, 2018 at 10:53:38AM +1200, Chris Packham wrote: > On Tue, May 29, 2018 at 4:11 AM Baruch Siach wrote: > > > From: Jon Nettleton > > > This switches the clearfog boards to use DM based gpio and i2c > > drivers. The io expanders are configured via their device-tree > >

Re: [U-Boot] [PATCH v2 1/2] sunxi-mmc: use new mode on A64

2018-05-28 Thread Jagan Teki
On Mon, May 28, 2018 at 11:13 PM, Vasily Khoruzhick wrote: > You need both patches in order for it to work. > > I tested these patches on Pinebook and Pine64 LTS, both were able to > boot from eMMC. What board are you using? Did you test BPI-M64? Here is the another board [1] where it failed

Re: [U-Boot] [PATCH] arm: mvebu: switch clearfog to use device-tree i2c and gpio

2018-05-28 Thread Chris Packham
On Tue, May 29, 2018 at 4:58 PM Baruch Siach wrote: > Hi Chris, > On Tue, May 29, 2018 at 10:53:38AM +1200, Chris Packham wrote: > > On Tue, May 29, 2018 at 4:11 AM Baruch Siach wrote: > > > > > From: Jon Nettleton > > > > > This switches the clearfog boards to use DM based gpio and i2c > > >

Re: [U-Boot] [PATCH] malloc: Use malloc simple before malloc is fully initialized in memalign()

2018-05-28 Thread Masahiro Yamada
2018-05-26 11:06 GMT+09:00 Simon Glass : > +Masahiro > > On 25 May 2018 at 02:50, Ley Foon Tan wrote: >> >> On Fri, May 25, 2018 at 11:33 AM, Simon Glass wrote: >> > Hi, >> > >> > On 24 May 2018 at 21:24, Ley Foon Tan wrote: >> >> >> >> On Thu, May 24, 2018 at 12:33 AM, Simon Glass wrote: >>

Re: [U-Boot] [PATCH] arm: mvebu: switch clearfog to use device-tree i2c and gpio

2018-05-28 Thread Stefan Roese
On 29.05.2018 07:10, Chris Packham wrote: On Tue, May 29, 2018 at 4:58 PM Baruch Siach wrote: Hi Chris, On Tue, May 29, 2018 at 10:53:38AM +1200, Chris Packham wrote: On Tue, May 29, 2018 at 4:11 AM Baruch Siach wrote: From: Jon Nettleton This switches the clearfog boards to use DM

Re: [U-Boot] [PATCH] zynq: Add Zynq MiniZed board support

2018-05-28 Thread Michal Simek
On 28.5.2018 10:12, Clement Laigle wrote: > MiniZed is a single-core Zynq 7Z007S development board. > > More information on this board: http://zedboard.org/product/minized > > Signed-off-by: Clement Laigle > --- > arch/arm/dts/Makefile | 1 + > arch/arm/dts/zynq-minized.dts | 61 >

Re: [U-Boot] [PATCH] sf: Enable FSR polling on N25Q256(A)

2018-05-28 Thread Siva Durga Prasad Paladugu
Hi, > -Original Message- > From: Jagan Teki [mailto:jagannadh.t...@gmail.com] > Sent: Tuesday, May 29, 2018 10:22 AM > To: Marek Vasut ; Siva Durga Prasad Paladugu > > Cc: U-Boot Mailing List ; Tom Rini > > Subject: Re: [U-Boot] [PATCH] sf: Enable FSR polling on N25Q256(A) > > + Siva >

[U-Boot] [PATCH] arm: mvebu: switch clearfog to use device-tree i2c and gpio

2018-05-28 Thread Baruch Siach
From: Jon Nettleton This switches the clearfog boards to use DM based gpio and i2c drivers. The io expanders are configured via their device-tree entries. Signed-off-by: Jon Nettleton [baruch: add DT i2c aliases] Signed-off-by: Baruch Siach

Re: [U-Boot] [PATCH] arm: mvebu: move i2c slave disable to generic SPL code

2018-05-28 Thread Baruch Siach
Hi Chris, Stefan, On Mon, May 28, 2018 at 10:20:01AM +0200, Stefan Roese wrote: > On 28.05.2018 10:11, Chris Packham wrote: > > On Mon, May 28, 2018 at 3:27 AM Baruch Siach wrote: > > > > > The hidden i2c slave that interferes the i2c bus is not board specific. > > > All

Re: [U-Boot] [PATCH] arm: mvebu: move i2c slave disable to generic SPL code

2018-05-28 Thread Baruch Siach
Hi Stefan, On Mon, May 28, 2018 at 12:05:43PM +0200, Stefan Roese wrote: > On 28.05.2018 11:56, Baruch Siach wrote: > > On Mon, May 28, 2018 at 10:20:01AM +0200, Stefan Roese wrote: > > > On 28.05.2018 10:11, Chris Packham wrote: > > > > On Mon, May 28, 2018 at 3:27 AM Baruch Siach

Re: [U-Boot] [PATCH 3/3] serial: Migrate CONFIG_ARM_DCC to Kconfig

2018-05-28 Thread Michal Simek
Hi, On 7.4.2018 23:27, Tuomas Tynkkynen wrote: > Signed-off-by: Tuomas Tynkkynen > --- > arch/arm/Kconfig| 2 ++ > drivers/serial/Kconfig | 5 + > include/configs/xilinx_zynqmp.h | 1 - > include/configs/zynq-common.h | 2 -- >

Re: [U-Boot] [PATCH v1 0/7] Improvements for the dwc3_generic driver

2018-05-28 Thread Michal Simek
Hi, On 28.5.2018 11:47, Jean-Jacques Hiblot wrote: > Hi Michal > > > On 28/05/2018 10:32, Michal Simek wrote: >> Hi Jean, >> >> On 25.5.2018 11:32, Jean-Jacques Hiblot wrote: >>> This series aims at bringing improvements to the dwc3_generic driver so >>> that it can be used by most of the

Re: [U-Boot] [PATCH] arm: mvebu: move i2c slave disable to generic SPL code

2018-05-28 Thread Stefan Roese
On 28.05.2018 12:29, Baruch Siach wrote: Hi Stefan, On Mon, May 28, 2018 at 12:24:37PM +0200, Stefan Roese wrote: On 28.05.2018 12:08, Baruch Siach wrote: On Mon, May 28, 2018 at 12:05:43PM +0200, Stefan Roese wrote: On 28.05.2018 11:56, Baruch Siach wrote: On Mon, May 28, 2018 at

[U-Boot] [PATCH] mach-snapdragon: increase size of malloc pool

2018-05-28 Thread Ramon Fried
Pool size must be increased to support new additionals drivers. Signed-off-by: Ramon Fried --- arch/arm/mach-snapdragon/Kconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-snapdragon/Kconfig b/arch/arm/mach-snapdragon/Kconfig index

Re: [U-Boot] [PATCH 2/2] mmc: zynqmp: Add HS200 modes support for ZynqMP

2018-05-28 Thread Michal Simek
On 25.5.2018 07:17, Siva Durga Prasad Paladugu wrote: > This patch adds HS200 suuport for ZynqMP and enables > the same for ZC1751 DC1 board which has eMMC on it. > > Signed-off-by: Siva Durga Prasad Paladugu > --- >

[U-Boot] [PATCH v2 6/6] iotrace: fix behaviour when buffer is full

2018-05-28 Thread Ramon Fried
Don't continue updating the offset when buffer is full. When the buffer size exhausts and there's no space left to write warn the user and update only the needed size and not both the offset and needed size. Add needed buffer size information in the iotrace command. Signed-off-by: Ramon Fried

[U-Boot] [PATCH v2 5/6] cmd: iotrace: add dump trace command

2018-05-28 Thread Ramon Fried
Add dump trace command which dump all trace buffer content in a much more readable fashion than md. Signed-off-by: Ramon Fried Reviewed-by: Simon Glass --- cmd/iotrace.c | 36 +++- 1 file changed, 35 insertions(+), 1

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

2018-05-28 Thread Jagan Teki
Add OTG device clkgate and reset for H3/H5 through driver_data. Signed-off-by: Jagan Teki Acked-by: Jun Nie --- drivers/usb/musb-new/sunxi.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/usb/musb-new/sunxi.c

[U-Boot] [PATCH v10 16/35] phy: sun4i-usb: Add A31 PHY config

2018-05-28 Thread Jagan Teki
Allwinner A31 has 3 USB PHY's and rest similar to A10. Signed-off-by: Jagan Teki Acked-by: Jun Nie --- drivers/phy/allwinner/phy-sun4i-usb.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/phy/allwinner/phy-sun4i-usb.c

[U-Boot] [PATCH v10 17/35] phy: sun4i-usb: Add A33 USB PHY config

2018-05-28 Thread Jagan Teki
Allwinner A33 has 2 USB PHY's and 0x10 has phy ctrl offset. Signed-off-by: Jagan Teki Acked-by: Jun Nie --- drivers/phy/allwinner/phy-sun4i-usb.c | 10 ++ 1 file changed, 10 insertions(+) diff --git

[U-Boot] [PATCH v10 25/35] arm64: allwinner: a64: bananapi-m64: Sync usb_otg node from Linux

2018-05-28 Thread Jagan Teki
Sync bananapi-m64 usb_otg node from Linux. Signed-off-by: Jagan Teki Acked-by: Jun Nie --- arch/arm/dts/sun50i-a64-bananapi-m64.dts | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/dts/sun50i-a64-bananapi-m64.dts

[U-Boot] [PATCH v10 10/35] phy: Add Allwinner A64 USB PHY driver

2018-05-28 Thread Jagan Teki
USB PHY implementation for Allwinner SOC's can be handling in to single driver with different phy configs. This driver handle all Allwinner USB PHY's start from 4I to 50I(except 9I). Currently added A64 compatibility more will add in next coming patches. Current implementation is unable to get

[U-Boot] [PATCH v10 20/35] board: sunxi: Use generic-phy for board_usb_cable_connected

2018-05-28 Thread Jagan Teki
Allwinner PHY USB code is now part of generic-phy framework, so use it in board_usb_cable_connected. Signed-off-by: Jagan Teki Acked-by: Jun Nie --- board/sunxi/board.c | 33 - 1 file changed, 32 insertions(+), 1

[U-Boot] [PATCH v10 23/35] sunxi: Drop legacy usb_phy.c

2018-05-28 Thread Jagan Teki
Allwinner PHY USB code is now part of generic-phy framework, so drop existing legacy handling like arch/arm/mach-sunxi.c and related code areas. Signed-off-by: Jagan Teki Acked-by: Jun Nie --- arch/arm/include/asm/arch-sunxi/usb_phy.h | 20 --

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

2018-05-28 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 commit: "phy: sun4i-usb: add support for R40 USB PHY" (sha1: f3d96f8d23d8e6d0b7642ee946b9b2ac3418fb4d) Signed-off-by: Jagan Teki

[U-Boot] [PATCH v10 13/35] phy: sun4i-usb: Add V3S PHY config

2018-05-28 Thread Jagan Teki
V3S has 1 USB PHY, rest are similar to A64. Signed-off-by: Jagan Teki Acked-by: Jun Nie --- drivers/phy/allwinner/phy-sun4i-usb.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/phy/allwinner/phy-sun4i-usb.c

  1   2   3   >