Re: [U-Boot] [PATCH v2 3/8] test/py: Import 'configparser' lower case to be python 3.x safe

2018-08-20 Thread Michal Simek
On 20.8.2018 23:19, Stephen Warren wrote: > On 08/06/2018 04:42 AM, Michal Simek wrote: >> On 14.9.2017 23:34, Paul Burton wrote: >>> In python 3.x the configparser module is named with all lower case. >>> Import it as such in order to avoid errors when running on python 3.x, >>> and fall back to

Re: [U-Boot] [PATCH] pci: Support parsing PCI controller DT subnodes

2018-08-20 Thread Marek Vasut
On 08/21/2018 06:56 AM, Bin Meng wrote: [...] > The proposal I made is: > > * Keep pci-uclass driver's post_bind() and child_post_bind() only for > Sandbox configuration > * Keep the call to pci_bus_find_devfn() in pci_bind_bus_devices() only > for Sandbox configuration

Re: [U-Boot] [PATCH] pci: Support parsing PCI controller DT subnodes

2018-08-20 Thread Bin Meng
Hi Marek, On Tue, Aug 21, 2018 at 12:30 PM, Marek Vasut wrote: > On 08/21/2018 06:15 AM, Bin Meng wrote: > [...] > >>> From what I understand, Marek and Bin are discussing whether a >>> compatible string is needed to bind a driver. >>> >>> Generally it is. But with PCI and USB we

Re: [U-Boot] [PATCH] pci: Support parsing PCI controller DT subnodes

2018-08-20 Thread Marek Vasut
On 08/21/2018 06:15 AM, Bin Meng wrote: [...] >> From what I understand, Marek and Bin are discussing whether a >> compatible string is needed to bind a driver. >> >> Generally it is. But with PCI and USB we have a search mechanism which >> can be used instead. >> >>

Re: [U-Boot] [PATCH] pci: Support parsing PCI controller DT subnodes

2018-08-20 Thread Bin Meng
Hi Marek, On Tue, Aug 21, 2018 at 12:02 PM, Marek Vasut wrote: > On 08/21/2018 05:46 AM, Bin Meng wrote: >> Hi Simon, >> >> On Tue, Aug 21, 2018 at 3:29 AM, Simon Glass wrote: >>> Hi Marek, >>> >>> On 20 August 2018 at 12:42, Marek Vasut wrote: On 08/20/2018 06:57 PM, Simon Glass

Re: [U-Boot] [PATCH] pci: Support parsing PCI controller DT subnodes

2018-08-20 Thread Marek Vasut
On 08/21/2018 05:46 AM, Bin Meng wrote: > Hi Simon, > > On Tue, Aug 21, 2018 at 3:29 AM, Simon Glass wrote: >> Hi Marek, >> >> On 20 August 2018 at 12:42, Marek Vasut wrote: >>> >>> On 08/20/2018 06:57 PM, Simon Glass wrote: Hi Bin, On 16 August 2018 at 19:51, Bin Meng wrote:

Re: [U-Boot] [PATCH 2/2] spl: socfpga: stratix10: add hex file output for spl image

2018-08-20 Thread Marek Vasut
On 08/20/2018 11:04 PM, Dalon L Westergreen wrote: > On Mon, 2018-08-20 at 20:33 +0200, Marek Vasut wrote: >> On 08/20/2018 03:54 PM, Dalon Westergreen wrote: >> Stratix10 requires a hex image of the spl for boot. The hex >> image is added to the FPGA configuration image and loaded to >> the

Re: [U-Boot] [PATCH] pci: Support parsing PCI controller DT subnodes

2018-08-20 Thread Bin Meng
Hi Simon, On Tue, Aug 21, 2018 at 3:29 AM, Simon Glass wrote: > Hi Marek, > > On 20 August 2018 at 12:42, Marek Vasut wrote: >> >> On 08/20/2018 06:57 PM, Simon Glass wrote: >> > Hi Bin, >> > >> > On 16 August 2018 at 19:51, Bin Meng wrote: >> >> Hi Marek, >> >> >> >> On Thu, Aug 16, 2018 at

[U-Boot] [PATCH] DM: serial: ti_omap3_common: Don't define serial unless !DM_SERIAL

2018-08-20 Thread Adam Ford
The serial port was being manually configured during SPL build, however in preparation to allow DM in SPL, this needs to change to be based on whether or not DM_SERIAL is enabled because, soon the assumption that SPL means no DM may not be accurate. Signed-off-by: Adam Ford diff --git

[U-Boot] [PATCH] ARM: mach-omap2: Don't initialize I2C if DM_I2C is enabled

2018-08-20 Thread Adam Ford
boot-common.c checks to see if I2C is enabled in SPL, but it doens't check for DM_I2C before initializing it. This will now only initialize the I2C is the DM_I2C is not enabled to avoid initializing it more than once. Signed-off-by: Adam Ford diff --git a/arch/arm/mach-omap2/boot-common.c

[U-Boot] [PATCH] DM: omap_gpio: Reduce overhead when used with OF_PLATDATA

2018-08-20 Thread Adam Ford
Platforms with limited resources in SPL may enable OF_PLATDATA, this limits some of the library functions and cannot extract data from the device tree. This patch adds additional wrappers around these functions to only allow them when OF_CONTROL is enabled and OF_PLATDATA is not. Signed-off-by:

[U-Boot] [PATCH 1/2] DM: I2C: Reduce overhead when used with OF_PLATDATA

2018-08-20 Thread Adam Ford
Platforms with limited resources in SPL may enably OF_PLATDATA, this limits some of the library functions and cannot extract data from the device tree. This patch adds additional wrappers around these functions to only allow them when OF_CONTROL is enabled and OF_PLATDATA is not. Signed-off-by:

[U-Boot] [PATCH 2/2] DM: OMAP24XX_I2C: Reduce overhead when used with OF_PLATDATA

2018-08-20 Thread Adam Ford
Platforms with limited resources in SPL may enably OF_PLATDATA, this limits some of the library functions and cannot extract data from the device tree. This patch adds additional wrappers around these functions to only allow them when OF_CONTROL is enabled and OF_PLATDATA is not. Signed-off-by:

Re: [U-Boot] [RESEND PATCH v9 01/18] Revert "efi_loader: Rename sections to allow for implicit data"

2018-08-20 Thread Alexander Graf
On 20.08.18 20:54, Simon Glass wrote: > This partially reverts commit 7e21fbca26d18327cf7cabaad08df276a06a07d8. > > That change broke sandbox EFI support for unknown reasons. It also changes Wouldn't it be better to just figure out the reasons? So far all bugs I've found were linker script

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

2018-08-20 Thread Tom Rini
On Mon, Aug 20, 2018 at 06:14:05PM +0530, Jagan Teki wrote: > Hi Tom, > > Please pull this PR. > > thanks, > Jagan. > > The following changes since commit f05ebbf47a9dc863ff4bb084649ecb34d728b5f2: > > bcm968380gerg: Add MAINTAINERS file (2018-08-09 11:48:39 -0400) > > are available in the

Re: [U-Boot] Please pull u-boot-x86

2018-08-20 Thread Tom Rini
On Mon, Aug 20, 2018 at 01:59:12PM +0800, Bin Meng wrote: > Hi Tom, > > The following changes since commit 9f8cf76be256a83643ee05de6cffaeb452ed0931: > > Convert CONFIG_SYS_I2C_DAVINCI to Kconfig (2018-08-17 15:43:38 -0400) > > are available in the git repository at: > >

Re: [U-Boot] [U-Boot,v2,1/3] efi: Fix truncation of constant value

2018-08-20 Thread Alexander Graf
> Starting with commit 867a6ac86dd8 ("efi: Add start-up library code"), > sparse constantly complains about truncated constant value in efi.h: > > include/efi.h:176:35: warning: cast truncates bits from constant value > (8000 becomes 0) > > This can get quite noisy, preventing real

Re: [U-Boot] [U-Boot, v2, 3/3] cmd: efi: Clarify calculation precedence for '&' and '?'

2018-08-20 Thread Alexander Graf
> Fix cppcheck complaint: > [cmd/efi.c:173]: (style) Clarify calculation precedence for '&' and '?'. > > Fixes: f1a0bafb5802 ("efi: Add a command to display the memory map") > Signed-off-by: Eugeniu Rosca > Reviewed-by: Heinrich Schuchardt Thanks, applied to efi-2018.09 Alex

Re: [U-Boot] [U-Boot, v2, 2/3] efi: Add EFI_MEMORY_{NV, MORE_RELIABLE, RO} attributes

2018-08-20 Thread Alexander Graf
> With this update, the memory attributes are in sync with Linux > kernel v4.18-rc4. They also match page 190 of UEFI 2.7 spec [1]. > > [1] http://www.uefi.org/sites/default/files/resources/UEFI_Spec_2_7.pdf > > Suggested-by: Heinrich Schuchardt > Signed-off-by: Eugeniu Rosca > Reviewed-by:

Re: [U-Boot] [PATCH v4 7/7] cmd: Add bind/unbind commands to bind a device to a driver from the command line

2018-08-20 Thread Stephen Warren
On 08/09/2018 08:17 AM, Jean-Jacques Hiblot wrote: In some cases it can be useful to be able to bind a device to a driver from the command line. The obvious example is for versatile devices such as USB gadget. Another use case is when the devices are not yet ready at startup and require some

Re: [U-Boot] [PATCH v2 3/8] test/py: Import 'configparser' lower case to be python 3.x safe

2018-08-20 Thread Stephen Warren
On 08/06/2018 04:42 AM, Michal Simek wrote: On 14.9.2017 23:34, Paul Burton wrote: In python 3.x the configparser module is named with all lower case. Import it as such in order to avoid errors when running on python 3.x, and fall back to the CamelCase version in order to keep working with

Re: [U-Boot] Booting into winCE .nb0 without access to source files

2018-08-20 Thread Troy Kisky
On 8/20/2018 12:55 PM, Michael Newton wrote: > Hi, > > > I have an awkward situation, short of it is we have a custom i.MX53 board, > the nk.nb0 and eboot.nb0 files to boot into windows (with no source code), > and an Ubuntu VM with the source code and compiled files of uboot from august >

[U-Boot] Booting into winCE .nb0 without access to source files

2018-08-20 Thread Michael Newton
Hi, I have an awkward situation, short of it is we have a custom i.MX53 board, the nk.nb0 and eboot.nb0 files to boot into windows (with no source code), and an Ubuntu VM with the source code and compiled files of uboot from august 2009 (as well as some flavour of linux that I'm not 100% sure

Re: [U-Boot] [PATCH 1/8] UBSAN: run-time undefined behavior sanity checker

2018-08-20 Thread Eugeniu Rosca
On Mon, Aug 20, 2018 at 03:00:31PM +, York Sun wrote: > On 08/19/2018 05:04 PM, Eugeniu Rosca wrote: > > > > > The size increase of sanbox U-Boot (gcc 8.1.0): > > $ size u-boot.sandbox.* > >textdata bss dec hex filename > > 1234958 80048 291472 1606478 18834e

Re: [U-Boot] [PATCH 2/2] spl: socfpga: stratix10: add hex file output for spl image

2018-08-20 Thread Dalon L Westergreen
On Mon, 2018-08-20 at 20:33 +0200, Marek Vasut wrote: > On 08/20/2018 03:54 PM, Dalon Westergreen wrote: > Stratix10 requires a hex image of the spl for boot. The hex > image is added to the FPGA configuration image and loaded to > the processor memory by the configuration engine. > >

Re: [U-Boot] [PATCH] pci: Support parsing PCI controller DT subnodes

2018-08-20 Thread Marek Vasut
On 08/20/2018 09:29 PM, Simon Glass wrote: [...] > So what is the conclusion here ? Patch the design document and apply > this patch as is ? > I think we should see Simon's comments before we move forward. The proposal I made before should come in a series, not just

Re: [U-Boot] [PATCH] pci: Support parsing PCI controller DT subnodes

2018-08-20 Thread Simon Glass
Hi Marek, On 20 August 2018 at 12:42, Marek Vasut wrote: > > On 08/20/2018 06:57 PM, Simon Glass wrote: > > Hi Bin, > > > > On 16 August 2018 at 19:51, Bin Meng wrote: > >> Hi Marek, > >> > >> On Thu, Aug 16, 2018 at 7:47 PM, Marek Vasut wrote: > >>> On 08/15/2018 01:25 PM, Tom Rini wrote: >

[U-Boot] [RESEND PATCH v9 01/18] Revert "efi_loader: Rename sections to allow for implicit data"

2018-08-20 Thread Simon Glass
This partially reverts commit 7e21fbca26d18327cf7cabaad08df276a06a07d8. That change broke sandbox EFI support for unknown reasons. It also changes sandbox to use--gc-sections which we don't want. For now I am just reverting the sandbox portion as presumably this change is safe on other

Re: [U-Boot] [PATCH] pci: Support parsing PCI controller DT subnodes

2018-08-20 Thread Marek Vasut
On 08/20/2018 06:57 PM, Simon Glass wrote: > Hi Bin, > > On 16 August 2018 at 19:51, Bin Meng wrote: >> Hi Marek, >> >> On Thu, Aug 16, 2018 at 7:47 PM, Marek Vasut wrote: >>> On 08/15/2018 01:25 PM, Tom Rini wrote: On Wed, Aug 15, 2018 at 06:19:25PM +0800, Bin Meng wrote: > Hi Marek,

Re: [U-Boot] [PATCH 2/2] spl: socfpga: stratix10: add hex file output for spl image

2018-08-20 Thread Marek Vasut
On 08/20/2018 03:54 PM, Dalon Westergreen wrote: > Stratix10 requires a hex image of the spl for boot. The hex > image is added to the FPGA configuration image and loaded to > the processor memory by the configuration engine. > > Signed-off-by: Dalon Westergreen > --- > scripts/Makefile.spl |

[U-Boot] [PATCH] u-boot: align cache flushes in load_elf_image_shdr to line boundaries

2018-08-20 Thread Neil Stainton
Prevent cache warning messages when using the 'bootelf' command on an Arm target. Round down each section start address and round up the respective section end to the nearest cache line. --- Currently when using bootelf to load an image on Arm, several warnings such as the following appear in

Re: [U-Boot] [PATCH 1/8] UBSAN: run-time undefined behavior sanity checker

2018-08-20 Thread Tom Rini
On Mon, Aug 20, 2018 at 02:54:09PM +0200, Eugeniu Rosca wrote: > Hi Tom, > > On Sun, Aug 19, 2018 at 09:51:32PM -0400, Tom Rini wrote: > > On Mon, Aug 20, 2018 at 02:00:25AM +0200, Eugeniu Rosca wrote: > [..] > > > To enable UBSAN, two prerequisites must be met from Kconfig perspective: > > > -

[U-Boot] U-Boot RPI bmp display isn't visible

2018-08-20 Thread Christian Nienhaus
Hello community, thank you for providing such a good software. I hope this is the right way to get help. I successfully run my RPI3b with u-boot and buildroot. I have attached the official 7“ touch display for the rpi. Which also works fine in linux. When I want to display a bmp on the

Re: [U-Boot] arm: omap: configs: various: Remove references to OMAP34XX_UARTx

2018-08-20 Thread Tom Rini
On Mon, Aug 20, 2018 at 07:45:16AM -0500, Adam Ford wrote: > On Mon, Aug 20, 2018 at 6:21 AM Tom Rini wrote: > > > > On Tue, Aug 07, 2018 at 07:28:11AM -0500, Adam Ford wrote: > > > > > Two boards include a reference to ti_omap3_common.h which > > > points the UART driver to OMAP34XX_UARTx so the

Re: [U-Boot] ARM: display5: config: Replace hardcoded size of kernel (0x2000) with variable (fitImg_fw_sz)

2018-08-20 Thread Tom Rini
On Sat, Aug 18, 2018 at 10:22:07PM +0200, Lukasz Majewski wrote: > This cosmetic change allow easy adjustment of the to-load kernel size if > needed. > > Signed-off-by: Lukasz Majewski Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] ARM: da850evm: Enable SPL_SYS_MALLOC_SIMPLE

2018-08-20 Thread Tom Rini
On Fri, Aug 10, 2018 at 04:07:47PM -0500, Adam Ford wrote: > The SPL space is limited. In order to try to enable DM in SPL, > we need more space. When combined wtih TINY_PRINTF, this reduces > the size of SPL by 6.5k > > Original: > >text data bss dec hex filename >

Re: [U-Boot] [U-Boot, v4, 1/2] common: Add support for Android DT image

2018-08-20 Thread Tom Rini
On Thu, Aug 16, 2018 at 11:34:12PM +0300, Sam Protsenko wrote: > Android documentation recommends new image format for storing DTB/DTBO > files: [1]. To support that format, this patch adds helper functions for > Android DTB/DTBO format. In image-android-dt.* files you can find helper > functions

Re: [U-Boot] doc: FIT image: fix typo

2018-08-20 Thread Tom Rini
On Sat, Aug 18, 2018 at 03:51:25PM +0200, Pierre-Jean Texier wrote: > Fix typo in beaglebone verified boot documentation. > > Signed-off-by: Pierre-Jean Texier Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___

Re: [U-Boot] spl: fix debug print in spl_common_init()

2018-08-20 Thread Tom Rini
On Mon, Aug 13, 2018 at 11:24:05AM +0200, Simon Goldschmidt wrote: > spl_common_init() debug-prints "spl_early_init()\n" but it is > called both from spl_early_init() and spl_init(). > > Fix this by moving the debug() statement to the calling functions > which now print their name. > >

Re: [U-Boot] [U-Boot,v4,2/2] cmd: Add dtimg command

2018-08-20 Thread Tom Rini
On Thu, Aug 16, 2018 at 11:34:13PM +0300, Sam Protsenko wrote: > dtimg command allows user to work with Android DTB/DTBO image format. > Such as, getting the address of desired DTB/DTBO file, printing the dump > of the image in U-Boot shell, etc. > > This command is needed to provide Android

Re: [U-Boot] ARM: da850evm: Enable USE_TINY_PRINTF

2018-08-20 Thread Tom Rini
On Fri, Aug 10, 2018 at 03:53:41PM -0500, Adam Ford wrote: > The SPL space is limited. In order to try to enable DM in SPL, > we need more space. This reduces the size of SPL by ~2.7K > > before: >text data bss dec hex filename > 20760 1216 80 22056

Re: [U-Boot] fs/fat: debug-print file read position during file_fat_read_at()

2018-08-20 Thread Tom Rini
On Mon, Aug 13, 2018 at 09:35:15PM -0500, Andreas Dannenberg wrote: > In order to make the debug print in file_fat_read_at() a tad more useful, > show the offset the file is being read at alongside the filename. > > Suggested-by: Tero Kristo > Signed-off-by: Andreas Dannenberg > Reviewed-by:

Re: [U-Boot] ARM: da8xxevm: README: Add NOR booting instructions

2018-08-20 Thread Tom Rini
On Sat, Aug 11, 2018 at 07:34:55AM -0500, Adam Ford wrote: > The da850evm with its UI expander board can boot XIP boot from > NOR flash. This adds the instructions to the readme. file. > > Signed-off-by: Adam Ford > > diff --git a/board/davinci/da8xxevm/README.da850 >

Re: [U-Boot] configs: da850evm: Remove DM_I2C_COMPAT

2018-08-20 Thread Tom Rini
On Fri, Aug 10, 2018 at 05:24:12AM -0500, Adam Ford wrote: > Since using DM_I2C_COMPAT throws a warning during compilation, > and it isn't really needed any longer, so this patch removes > this feature and shrinks the code a bit. > > from: >text data bss dec hex filename

Re: [U-Boot] [U-Boot, V2] drivers: regulator: fixed: add u-boot, off-on-delay-us

2018-08-20 Thread Tom Rini
On Thu, Jul 26, 2018 at 07:47:24PM +0800, Peng Fan wrote: > Add u-boot,off-on-delay-us for fixed regulator. > > Depends on board design, the gpio regulator sometimes > connects with a big capacitance. When need to off, then > on the regulator, if there is no enough delay, > the voltage does not

Re: [U-Boot] [PATCH] ARM: display5: config: Replace hardcoded size of kernel (0x2000) with variable (fitImg_fw_sz)

2018-08-20 Thread Tom Rini
On Mon, Aug 20, 2018 at 12:57:26PM -0300, Fabio Estevam wrote: > Hi Lukasz, > > On Sat, Aug 18, 2018 at 5:22 PM, Lukasz Majewski wrote: > > This cosmetic change allow easy adjustment of the to-load kernel size if > > needed. > > > > Signed-off-by: Lukasz Majewski > > Looks good: > >

Re: [U-Boot] [PATCH v2 0/6] musb-new: Improve shutdown code

2018-08-20 Thread Jagan Teki
On Mon, Aug 13, 2018 at 4:33 PM, Chen-Yu Tsai wrote: > On Fri, Jul 20, 2018 at 3:13 PM, Jagan Teki > wrote: >> This is v2 for previous series[1], by excluding sunxi phy changes. >> >> One patch mark it as 'RFC' about "including UCLASS_USB_DEV_GENERIC >> into shutdown caller" so expecting some

Re: [U-Boot] [PATCH] pci: Support parsing PCI controller DT subnodes

2018-08-20 Thread Simon Glass
Hi Bin, On 16 August 2018 at 19:51, Bin Meng wrote: > Hi Marek, > > On Thu, Aug 16, 2018 at 7:47 PM, Marek Vasut wrote: >> On 08/15/2018 01:25 PM, Tom Rini wrote: >>> On Wed, Aug 15, 2018 at 06:19:25PM +0800, Bin Meng wrote: Hi Marek, On Wed, Aug 15, 2018 at 5:22 PM, Marek Vasut

[U-Boot] [PATCH v3.2 14/58] musb-new: sunxi: Use CLK and RESET support

2018-08-20 Thread Jagan Teki
Now clock and reset drivers are available for respective SoC's so use clk and reset ops on musb driver. Signed-off-by: Jagan Teki --- Changes for v3.2: - add has_reset bool in existing driver data Changes for v3.1: - droped unused variables - add flags for checking reset require or not - handle

Re: [U-Boot] [PATCH v6 29/31] cmd: mtd: add 'mtd' command

2018-08-20 Thread Boris Brezillon
On Mon, 20 Aug 2018 18:08:14 +0200 Miquel Raynal wrote: > Hi Boris, > > Boris Brezillon wrote on Thu, 16 Aug 2018 > 18:22:03 +0200: > > > On Thu, 16 Aug 2018 17:30:27 +0200 > > Miquel Raynal wrote: > > > > > There should not be a 'nand' command, a 'sf' command and certainly not > > > a

Re: [U-Boot] [PATCH v6 29/31] cmd: mtd: add 'mtd' command

2018-08-20 Thread Miquel Raynal
Hi Boris, Boris Brezillon wrote on Thu, 16 Aug 2018 18:22:03 +0200: > On Thu, 16 Aug 2018 17:30:27 +0200 > Miquel Raynal wrote: > > > There should not be a 'nand' command, a 'sf' command and certainly not > > a new 'spi-nand' command. Write a 'mtd' command instead to manage all > > MTD

Re: [U-Boot] [PATCH] ARM: display5: config: Replace hardcoded size of kernel (0x2000) with variable (fitImg_fw_sz)

2018-08-20 Thread Fabio Estevam
Hi Lukasz, On Sat, Aug 18, 2018 at 5:22 PM, Lukasz Majewski wrote: > This cosmetic change allow easy adjustment of the to-load kernel size if > needed. > > Signed-off-by: Lukasz Majewski Looks good: Reviewed-by: Fabio Estevam Only minor nit is that the Subject like looks excessively large.

[U-Boot] [PATCH v3.1 14/58] musb-new: sunxi: Use CLK and RESET support

2018-08-20 Thread Jagan Teki
Now clock and reset drivers are available for respective SoC's so use clk and reset ops on musb driver. Signed-off-by: Jagan Teki --- Changes for v3.1: - droped unused variables - add flags for checking reset require or not - handle clk and reset errors properly drivers/usb/musb-new/sunxi.c |

Re: [U-Boot] [PATCH v3 45/58] spi: Add Allwinner A31 SPI driver

2018-08-20 Thread Jagan Teki
On Mon, Aug 20, 2018 at 7:49 PM, Maxime Ripard wrote: > 1;5202;0c > On Mon, Aug 20, 2018 at 05:12:20PM +0530, Jagan Teki wrote: >> On Mon, Aug 20, 2018 at 4:48 PM, Maxime Ripard >> wrote: >> > On Sun, Aug 19, 2018 at 07:27:02PM +0530, Jagan Teki wrote: >> >> Add Allwinner sun6i SPI driver for

Re: [U-Boot] [PATCH 1/8] UBSAN: run-time undefined behavior sanity checker

2018-08-20 Thread York Sun
On 08/19/2018 05:04 PM, Eugeniu Rosca wrote: > > The size increase of sanbox U-Boot (gcc 8.1.0): > $ size u-boot.sandbox.* >text data bss dec hex filename > 1234958 80048 291472 1606478 18834e u-boot.sandbox.default > 1422710272240 291472 1986422

Re: [U-Boot] [PATCH 4/8] pinctrl: renesas: Fix "left shift in type int" undefined behavior

2018-08-20 Thread Eugeniu Rosca
Hi Marek, On Mon, Aug 20, 2018 at 10:07:16AM +0200, Marek Vasut wrote: > On 08/20/2018 02:00 AM, Eugeniu Rosca wrote: > > Booting R-Car H3-Salvator-X (CONFIG_UBSAN=y) consistently results in: > > > > = > > UBSAN: Undefined

[U-Boot] [PATCH v3 18/34] configs: sama5d4_xplained: add onewire and eeprom drivers

2018-08-20 Thread Eugen Hristev
SAMA5D4 SoC can have extra clip boards (PDAs) connected, which have an EEPROM memory for identification. A special GPIO can be used to read this memory over 1wire protocol. Enabling one wire and eeprom drivers for this memory. Signed-off-by: Eugen Hristev ---

[U-Boot] [PATCH v3 15/34] configs: sama5d3_xplained: add onewire and eeprom drivers

2018-08-20 Thread Eugen Hristev
SAMA5D3 SoC can have extra clip boards (PDAs) connected, which have an EEPROM memory for identification. A special GPIO can be used to read this memory over 1wire protocol. Enabling one wire and eeprom drivers for this memory. Signed-off-by: Eugen Hristev ---

[U-Boot] [PATCH v3 24/34] board: sama5d4_xplained: add pda detect call at init time

2018-08-20 Thread Eugen Hristev
Call the PDA detection mechanism at boot time so we can have the pda environment variable ready for use. Signed-off-by: Eugen Hristev --- board/atmel/sama5d4_xplained/sama5d4_xplained.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/board/atmel/sama5d4_xplained/sama5d4_xplained.c

[U-Boot] [PATCH v3 12/34] sandbox: DTS: w1: add node for one wire interface on GPIO

2018-08-20 Thread Eugen Hristev
Add a node for the one wire uclass and one wire gpio driver in sandbox. Signed-off-by: Eugen Hristev --- arch/sandbox/dts/sandbox.dts | 20 1 file changed, 20 insertions(+) diff --git a/arch/sandbox/dts/sandbox.dts b/arch/sandbox/dts/sandbox.dts index 0ea2452..2be836d

[U-Boot] [PATCH v3 25/34] configs: sama5d2_xplained: add fdt overlay support

2018-08-20 Thread Eugen Hristev
Add commands for fdt overlay merging. This is required for the boot scripts that detect PDAs and apply specific overlays to the DTB passed on to kernel. Signed-off-by: Eugen Hristev --- configs/sama5d2_xplained_mmc_defconfig | 1 + configs/sama5d2_xplained_spiflash_defconfig | 1 + 2 files

[U-Boot] [PATCH v3 30/34] ARM: dts: at91: sama5d2_xplained: add onewire connector for LCD eeprom

2018-08-20 Thread Eugen Hristev
Add onewire node in device tree for TM series LCDs Signed-off-by: Eugen Hristev --- arch/arm/dts/at91-sama5d2_xplained.dts | 17 + arch/arm/dts/sama5d2.dtsi | 5 + 2 files changed, 22 insertions(+) diff --git a/arch/arm/dts/at91-sama5d2_xplained.dts

[U-Boot] [PATCH v3 21/34] board: sama5d3_xplained: add pda detect call at init time

2018-08-20 Thread Eugen Hristev
Call the PDA detection mechanism at boot time so we can have the pda environment variable ready for use. Signed-off-by: Eugen Hristev --- arch/arm/mach-at91/Kconfig | 1 + board/atmel/sama5d3_xplained/sama5d3_xplained.c | 10 ++ 2 files changed, 11 insertions(+)

[U-Boot] [PATCH v3 33/34] ARM: dts: at91: sama5d2_ptc: add onewire connector for LCD eeprom

2018-08-20 Thread Eugen Hristev
Add onewire node in device tree for TM series LCDs Signed-off-by: Eugen Hristev --- arch/arm/dts/at91-sama5d2_ptc_ek.dts | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm/dts/at91-sama5d2_ptc_ek.dts b/arch/arm/dts/at91-sama5d2_ptc_ek.dts index ab5ab21..068a117

[U-Boot] [PATCH v3 34/34] ARM: dts: at91: sama5d4_xplained: add onewire connector for LCD eeprom

2018-08-20 Thread Eugen Hristev
Add onewire node in device tree for TM series LCDs Signed-off-by: Eugen Hristev --- arch/arm/dts/at91-sama5d4_xplained.dts | 16 arch/arm/dts/sama5d4.dtsi | 5 + 2 files changed, 21 insertions(+) diff --git a/arch/arm/dts/at91-sama5d4_xplained.dts

[U-Boot] [PATCH v3 31/34] ARM: dts: at91: sama5d3_xplained: add onewire connector for LCD eeprom

2018-08-20 Thread Eugen Hristev
Add onewire node in device tree for TM series LCDs Signed-off-by: Eugen Hristev --- arch/arm/dts/at91-sama5d3_xplained.dts | 17 + arch/arm/dts/sama5d3.dtsi | 5 + 2 files changed, 22 insertions(+) diff --git a/arch/arm/dts/at91-sama5d3_xplained.dts

[U-Boot] [PATCH v3 32/34] ARM: dts: at91: sama5d27_som1_ek: add onewire connector for LCD eeprom

2018-08-20 Thread Eugen Hristev
Add onewire node in device tree for TM series LCDs Signed-off-by: Eugen Hristev --- arch/arm/dts/at91-sama5d27_som1_ek.dts | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm/dts/at91-sama5d27_som1_ek.dts b/arch/arm/dts/at91-sama5d27_som1_ek.dts index

[U-Boot] [PATCH v3 20/34] board: sama5d2_xplained: add pda detect call at init time

2018-08-20 Thread Eugen Hristev
Call the PDA detection mechanism at boot time so we can have the pda environment variable ready for use. Signed-off-by: Eugen Hristev --- board/atmel/sama5d2_xplained/sama5d2_xplained.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/board/atmel/sama5d2_xplained/sama5d2_xplained.c

[U-Boot] [PATCH v3 28/34] configs: sama5d27_som1_ek: add fdt overlay support

2018-08-20 Thread Eugen Hristev
Add commands for fdt overlay merging. This is required for the boot scripts that detect PDAs and apply specific overlays to the DTB passed on to kernel. Signed-off-by: Eugen Hristev --- configs/sama5d27_som1_ek_mmc_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git

[U-Boot] [PATCH v3 13/34] configs: sandbox: add onewire w1 and sandbox eeprom

2018-08-20 Thread Eugen Hristev
To be able to test Dallas onewire protocol and one wire eeproms driver and subsystem, add in sandbox defconfig the drivers' config. Signed-off-by: Eugen Hristev --- configs/sandbox_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/configs/sandbox_defconfig

[U-Boot] [PATCH v3 14/34] configs: sama5d2_xplained: add onewire and eeprom drivers

2018-08-20 Thread Eugen Hristev
SAMA5D2 SoC can have extra clip boards (PDAs) connected, which have an EEPROM memory for identification. A special GPIO can be used to read this memory over 1wire protocol. Enabling one wire and eeprom drivers for this memory. Signed-off-by: Eugen Hristev ---

[U-Boot] [PATCH v3 29/34] configs: sama5d4_xplained: add fdt overlay support

2018-08-20 Thread Eugen Hristev
Add commands for fdt overlay merging. This is required for the boot scripts that detect PDAs and apply specific overlays to the DTB passed on to kernel. Signed-off-by: Eugen Hristev --- configs/sama5d4_xplained_mmc_defconfig | 1 + configs/sama5d4_xplained_nandflash_defconfig | 1 +

[U-Boot] [PATCH v3 05/34] w1: identify devices with w1-eeprom uclass

2018-08-20 Thread Eugen Hristev
When a new device is discovered, this may be a w1 eeprom device. Attempt to find the proper node and driver from the w1-eeprom subsystem. Signed-off-by: Eugen Hristev --- drivers/w1/w1-uclass.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/w1/w1-uclass.c

[U-Boot] [PATCH v3 22/34] board: sama5d27_som1_ek: add pda detect call at init time

2018-08-20 Thread Eugen Hristev
Call the PDA detection mechanism at boot time so we can have the pda environment variable ready for use. Signed-off-by: Eugen Hristev --- board/atmel/sama5d27_som1_ek/sama5d27_som1_ek.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/board/atmel/sama5d27_som1_ek/sama5d27_som1_ek.c

[U-Boot] [PATCH v3 17/34] configs: sama5d2_ptc_ek: add onewire and eeprom drivers

2018-08-20 Thread Eugen Hristev
SAMA5D2 SoC can have extra clip boards (PDAs) connected, which have an EEPROM memory for identification. A special GPIO can be used to read this memory over 1wire protocol. Enabling one wire and eeprom drivers for this memory. Signed-off-by: Eugen Hristev ---

[U-Boot] [PATCH v3 27/34] configs: sama5d2_ptc_ek: add fdt overlay support

2018-08-20 Thread Eugen Hristev
Add commands for fdt overlay merging. This is required for the boot scripts that detect PDAs and apply specific overlays to the DTB passed on to kernel. Signed-off-by: Eugen Hristev --- configs/sama5d2_ptc_ek_mmc_defconfig | 1 + configs/sama5d2_ptc_ek_nandflash_defconfig | 1 + 2 files

[U-Boot] [PATCH v3 23/34] board: sama5d2_ptc_ek: add pda detect call at init time

2018-08-20 Thread Eugen Hristev
Call the PDA detection mechanism at boot time so we can have the pda environment variable ready for use. Signed-off-by: Eugen Hristev --- arch/arm/mach-at91/Kconfig | 1 + board/atmel/sama5d2_ptc_ek/sama5d2_ptc_ek.c | 10 ++ 2 files changed, 11 insertions(+) diff

[U-Boot] [PATCH v3 19/34] board: atmel: add support for pda detection

2018-08-20 Thread Eugen Hristev
This adds the support for PDA detection as common code for Atmel boards. Using the one wire interface over GPIO , an EEPROM memory is read and compared to preprogrammed values for PDA screens TM4300, TM7000 and TM7000B. Once the PDA is detected, an environment variable is set accordingly.

[U-Boot] [PATCH v3 26/34] configs: sama5d3_xplained: add fdt overlay support

2018-08-20 Thread Eugen Hristev
Add commands for fdt overlay merging. This is required for the boot scripts that detect PDAs and apply specific overlays to the DTB passed on to kernel. Signed-off-by: Eugen Hristev --- configs/sama5d3_xplained_mmc_defconfig | 1 + configs/sama5d3_xplained_nandflash_defconfig | 1 + 2

[U-Boot] [PATCH v3 10/34] w1: add command for onewire protocol

2018-08-20 Thread Eugen Hristev
Add basic command for bus information and read for onewire bus using Dallas 1-Wire protocol. Signed-off-by: Eugen Hristev --- cmd/Kconfig | 7 cmd/Makefile | 1 + cmd/w1.c | 126 +++ 3 files changed, 134 insertions(+) create

[U-Boot] [PATCH v3 07/34] dt-bindings: w1-eeprom: ds24xxx: create bindings

2018-08-20 Thread Eugen Hristev
Bindings for Maxim's ds24 onewire EEPROM families driver Signed-off-by: Eugen Hristev --- doc/device-tree-bindings/w1-eeprom/ds24xxx.txt | 37 ++ 1 file changed, 37 insertions(+) create mode 04 doc/device-tree-bindings/w1-eeprom create mode 100644

[U-Boot] [PATCH v3 03/34] dt-bindings: W1: w1-gpio: added bindings for w1-gpio

2018-08-20 Thread Eugen Hristev
Added bindings specification for bitbanged gpio driver for Dallas one wire protocol Signed-off-by: Eugen Hristev --- doc/device-tree-bindings/w1/w1-gpio.txt | 40 + 1 file changed, 40 insertions(+) create mode 04 doc/device-tree-bindings/w1 create mode

[U-Boot] [PATCH v3 16/34] configs: sama5d27_som1_ek: add onewire and eeprom drivers

2018-08-20 Thread Eugen Hristev
SAMA5D2 SoC can have extra clip boards (PDAs) connected, which have an EEPROM memory for identification. A special GPIO can be used to read this memory over 1wire protocol. Enabling one wire and eeprom drivers for this memory. Signed-off-by: Eugen Hristev ---

[U-Boot] [PATCH v3 04/34] W1-EEPROM: Add an W1-EEPROM uclass for 1 wire EEPROMs

2018-08-20 Thread Eugen Hristev
From: Maxime Ripard We might want to access data stored onto one wire EEPROMs. Create a framework to provide a consistent API. Signed-off-by: Maxime Ripard [eugen.hris...@microchip.com: reworked patch] Signed-off-by: Eugen Hristev --- drivers/Kconfig | 2 +

[U-Boot] [PATCH v3 09/34] dt-bindings: w1-eeprom: eep_sandbox: create bindings

2018-08-20 Thread Eugen Hristev
Bindings for sandbox onewire eeprom driver Signed-off-by: Eugen Hristev --- doc/device-tree-bindings/w1-eeprom/eep_sandbox.txt | 34 ++ 1 file changed, 34 insertions(+) create mode 100644 doc/device-tree-bindings/w1-eeprom/eep_sandbox.txt diff --git

[U-Boot] [PATCH v3 08/34] W1-EEPROM: add sandbox driver

2018-08-20 Thread Eugen Hristev
Add a sandbox driver for a one wire EEPROM memory Signed-off-by: Eugen Hristev --- drivers/w1-eeprom/Kconfig | 6 drivers/w1-eeprom/Makefile | 1 + drivers/w1-eeprom/eep_sandbox.c | 61 + include/w1.h| 1 + 4 files

[U-Boot] [PATCH v3 11/34] pinctrl: sandbox: add gpio onewire w1 group

2018-08-20 Thread Eugen Hristev
Add onewire "w1" groups and pin function for onewire GPIOs in sandbox. Signed-off-by: Eugen Hristev --- drivers/pinctrl/pinctrl-sandbox.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/pinctrl/pinctrl-sandbox.c b/drivers/pinctrl/pinctrl-sandbox.c index 468fa2a..755ac08 100644

[U-Boot] [PATCH v3 06/34] W1-EEPROM: add support for Maxim DS24 eeprom families

2018-08-20 Thread Eugen Hristev
From: Maxime Ripard Add a driver that supports Maxim 1 wire EEPROMs families DS24B33 and DS2431. Can be extended for other families as well. Signed-off-by: Maxime Ripard [eugen.hris...@microchip.com: reworked driver] Signed-off-by: Eugen Hristev --- drivers/w1-eeprom/Kconfig | 6 +

[U-Boot] [PATCH v3 01/34] w1: Add 1-Wire uclass

2018-08-20 Thread Eugen Hristev
From: Maxime Ripard We might want to use 1-Wire devices connected on boards such as EEPROMs in U-Boot. Provide a framework to be able to do that. Signed-off-by: Maxime Ripard [eugen.hris...@microchip.com: reworked] Signed-off-by: Eugen Hristev --- drivers/Kconfig| 2 +

[U-Boot] [PATCH v3 02/34] w1: Add 1-Wire gpio driver

2018-08-20 Thread Eugen Hristev
From: Maxime Ripard Add a bus driver for bitbanging a 1-Wire bus over a GPIO. Signed-off-by: Maxime Ripard [eugen.hris...@microchip.com: fixed some issues] Signed-off-by: Eugen Hristev --- drivers/w1/Kconfig | 7 ++ drivers/w1/Makefile | 2 + drivers/w1/w1-gpio.c | 176

[U-Boot] [PATCH v3 00/34] Add support for 1wire protocol and 1wire eeproms

2018-08-20 Thread Eugen Hristev
This is a patch series originally written by Maxime Ripard, https://lists.denx.de/pipermail/u-boot/2016-November/272138.html titled: [U-Boot] [PATCH RESEND 0/9] sunxi: chip: Enable the DIP auto-detection and reworked to include support for the EEPROMs on the PDAs connected to the sama xplained

[U-Boot] [PATCH] ARM: display5: Remove "factory procedure" from display5 board config

2018-08-20 Thread Lukasz Majewski
This code now is regarded as dead one and hence shall be removed. Signed-off-by: Lukasz Majewski --- configs/display5_factory_defconfig | 2 +- include/configs/display5.h | 22 -- 2 files changed, 1 insertion(+), 23 deletions(-) diff --git

Re: [U-Boot] [PATCH v3 45/58] spi: Add Allwinner A31 SPI driver

2018-08-20 Thread Maxime Ripard
1;5202;0c On Mon, Aug 20, 2018 at 05:12:20PM +0530, Jagan Teki wrote: > On Mon, Aug 20, 2018 at 4:48 PM, Maxime Ripard > wrote: > > On Sun, Aug 19, 2018 at 07:27:02PM +0530, Jagan Teki wrote: > >> Add Allwinner sun6i SPI driver for A31, H3/H5 an A64. > >> > >> Tested-by: Fahad Sadah > >>

Re: [U-Boot] [PATCH v3 24/58] arm64: allwinner: dts: h6: fix Pine H64 MMC bus width

2018-08-20 Thread Maxime Ripard
On Mon, Aug 20, 2018 at 05:09:54PM +0530, Jagan Teki wrote: > On Mon, Aug 20, 2018 at 5:05 PM, Maxime Ripard > wrote: > > On Sun, Aug 19, 2018 at 07:26:41PM +0530, Jagan Teki wrote: > >> Currently the enabled MMC controllers on Pine H64 do not have bus-width > >> set, which make them fall back to

Re: [U-Boot] [PATCH v3 02/10] include: Add new DCS commands in the enum list

2018-08-20 Thread Simon Glass
On 17 August 2018 at 08:38, Yannick Fertré wrote: > Adding new DCS commands which are specified in the > DCS 1.3 spec related to CABC. > > Signed-off-by: Yannick Fertré > --- > include/mipi_display.h | 8 > 1 file changed, 8 insertions(+) Reviewed-by: Simon Glass

Re: [U-Boot] [PATCH v3 01/10] video: stm32: stm32_ltdc: add bridge to display controller

2018-08-20 Thread Simon Glass
On 17 August 2018 at 08:38, Yannick Fertré wrote: > > Manage a bridge insert between the display controller & a panel. > > Signed-off-by: Yannick Fertré > --- > drivers/video/stm32/stm32_ltdc.c | 143 > ++- > 1 file changed, 82 insertions(+), 61 deletions(-)

[U-Boot] [PATCH 1/2] spl: socfpga: only gen5 devices and arria10 require sfp image

2018-08-20 Thread Dalon Westergreen
Only the Cyclone5/Arria5 and Arria10 devices require the sfp formated image for booting. This path ensures that the file is only generated for those devices. Signed-off-by: Dalon Westergreen --- scripts/Makefile.spl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH 2/2] spl: socfpga: stratix10: add hex file output for spl image

2018-08-20 Thread Dalon Westergreen
Stratix10 requires a hex image of the spl for boot. The hex image is added to the FPGA configuration image and loaded to the processor memory by the configuration engine. Signed-off-by: Dalon Westergreen --- scripts/Makefile.spl | 10 ++ 1 file changed, 10 insertions(+) diff --git

[U-Boot] [PATCH 0/2] socfpga: cleanup files generated for spl

2018-08-20 Thread Dalon Westergreen
These patches add a hex output of the spl image for Stratix10 devices, and remove the sfp mkimage output for Stratix10 devices. In Stratix10, the spl image is added to the initial FPGA configuration bitstream. A hex file is needed to do this. Dalon Westergreen (2): spl: socfpga: only gen5

Re: [U-Boot] [PATCH 3/8] armv8: mmu: Fix "left shift in type int" undefined behavior

2018-08-20 Thread Eugeniu Rosca
Hi Tom, On Sun, Aug 19, 2018 at 09:51:42PM -0400, Tom Rini wrote: > On Mon, Aug 20, 2018 at 02:00:27AM +0200, Eugeniu Rosca wrote: [..] > > diff --git a/arch/arm/include/asm/armv8/mmu.h > > b/arch/arm/include/asm/armv8/mmu.h > > index 62d00d15c26d..b2ce13db0d2b 100644 > > ---

  1   2   >