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

2017-09-14 Thread Heiko Schocher
Hello Tom, please pull from u-boot-ubi.git master The following changes since commit c98ac3487e413c71e5d36322ef3324b21c6f60f9: Prepare v2017.09 (2017-09-11 14:10:40 -0400) are available in the git repository at: git://git.denx.de/u-boot-ubi.git master for you to fetch changes up to

Re: [U-Boot] [PATCH v1] cmd: set filesize variable in ubi read

2017-09-14 Thread Heiko Schocher
Hello Holger, Am 12.09.2017 um 09:58 schrieb Holger Dengler: After a successful read of a UBI volume, the variable filesize is set to the number of read bytes. To boot linux with a raw initramfs/initrd, you must specify the exact size of the initramfs/initrd image in boot command. If the

[U-Boot] Please pull from u-boot-i2c

2017-09-14 Thread Heiko Schocher
Hello Tom, please pull from u-boot-i2c master The following changes since commit ba39608147c797cffb266579b5791649f0f8e60c: ARM: DRA72x: Add support for detection of DRA71x SR 2.1 (2017-09-12 18:02:29 -0400) are available in the git repository at: git://git.denx.de/u-boot-i2c.git master

Re: [U-Boot] [PATCH v3] i2c: muxes: pca954x: Add support for GPIO reset line

2017-09-14 Thread Heiko Schocher
Hello Moritz, Am 12.09.2017 um 15:46 schrieb Moritz Fischer: This commit adds support for GPIO reset lines matching the common linux "reset-gpios" devicetree binding. Signed-off-by: Moritz Fischer Reviewed-by: Heiko Schocher Reviewed-by: Simon Glass

[U-Boot] [PATCH v2 4/5] board: sama5d4_xplained: Convert to CONFIG_DM_VIDEO

2017-09-14 Thread Wenyou Yang
From: Wenyou Yang Convert the board to support the video driver model, add the device tree node, and remove the unnecessary code. Signed-off-by: Wenyou Yang --- Changes in v2: None arch/arm/dts/at91-sama5d4_xplained.dts | 25 ++

[U-Boot] [PATCH v2 5/5] board: at91sam9x5ek: Convert to CONFIG_DM_VIDEO

2017-09-14 Thread Wenyou Yang
Convert the board to support the video driver model, add the device tree node, and remove the unnecessary code. Signed-off-by: Wenyou Yang --- Changes in v2: - Rebase the u-boot/master (5541543f686). - Drop the applied patches. - Improve the commit log.

[U-Boot] [PATCH v2 3/5] board: sama5d4ek: Convert to CONFIG_DM_VIDEO

2017-09-14 Thread Wenyou Yang
From: Wenyou Yang Convert the board to support the video driver model, add the device tree node, and remove the unnecessary code. Signed-off-by: Wenyou Yang --- Changes in v2: None arch/arm/dts/at91-sama5d4ek.dts | 26 ++

[U-Boot] [PATCH v2 2/5] board: sama5d3xek: Convert to CONFIG_DM_VIDEO

2017-09-14 Thread Wenyou Yang
From: Wenyou Yang Convert the board to support the video driver model, add the device tree node, and remove the unnecessary code. Signed-off-by: Wenyou Yang --- Changes in v2: None arch/arm/dts/sama5d36ek_cmp.dts| 1 +

[U-Boot] [PATCH v2 1/5] board: sama5d2_xplained: Convert to CONFIG_DM_VIDEO

2017-09-14 Thread Wenyou Yang
Convert the board to support the video driver model, add the device tree node, and remove the unnecessary code. Signed-off-by: Wenyou Yang --- Changes in v2: None arch/arm/dts/at91-sama5d2_xplained.dts | 60 arch/arm/dts/sama5d2.dtsi

[U-Boot] [PATCH v2 0/5] board: atmel: Convert to support video driver model

2017-09-14 Thread Wenyou Yang
Convert the boards to support the driver model of LCD/video via enabling CONFIG_DM_VIDEO, remove CONFIG_LCD and the unnecessary code. Changes in v2: - Rebase the u-boot/master (5541543f686). - Drop the applied patches. - Improve the commit log. Wenyou Yang (5): board: sama5d2_xplained:

Re: [U-Boot] [PATCH] board/ls2080ardb: Add mcmemsize variable in default env

2017-09-14 Thread Priyanka Jain
> -Original Message- > From: York Sun > Sent: Friday, September 15, 2017 2:10 AM > To: Priyanka Jain ; u-boot@lists.denx.de > Subject: Re: [PATCH] board/ls2080ardb: Add mcmemsize variable in default env > > On 08/29/2017 02:50 AM, Priyanka Jain wrote: > > For most

Re: [U-Boot] [PATCH] armv8: Remove dependency of SERDES for LS CHASIS3

2017-09-14 Thread Sriram Dash
>From: York Sun >Subject: Re: [PATCH] armv8: Remove dependency of SERDES for LS CHASIS3 > >On 09/04/2017 03:14 AM, Sriram Dash wrote: >> Remove dependency of SYS_HAS_SERDES for Layerscape Chasis 3. >> >> Signed-off-by: Sriram Dash >> --- >>

Re: [U-Boot] [PATCH][v2]board/ls2080ardb: Update board env based on SoC

2017-09-14 Thread Priyanka Jain
> -Original Message- > From: York Sun > Sent: Friday, September 15, 2017 2:42 AM > To: Priyanka Jain ; u-boot@lists.denx.de > Subject: Re: [PATCH][v2]board/ls2080ardb: Update board env based on SoC > > On 09/05/2017 10:42 PM, Priyanka Jain wrote: > > As per

[U-Boot] [PATCH][v3]board/ls2080ardb: Update board env based on SoC

2017-09-14 Thread Priyanka Jain
As per current implementation, default value of board env is based on board filename i.e ls2080ardb. With distro support changes, this env is used to decide upon kernel dtb which is different for other SoCs (ls2088a, ls2081a) combination supported with this board. Add support to modify board env

[U-Boot] efi_loader: queued patches

2017-09-14 Thread Heinrich Schuchardt
Hello Alex, this is the sequence of patches I am currently working with. Maybe Rob could also send a similar list. That way you know in which sequence you can do reviewing. # EFI event services # This series is currently on Travis CI test and the next that # I would like to see in efi-next. # #

Re: [U-Boot] [PATCH] armv8: ls1043a: disable IFC in SPL only when QSPI is used

2017-09-14 Thread Y.b. Lu
Hi York, Thanks for your comments. The v2 patch had been sent out. Best regards, Yangbo Lu -Original Message- From: York Sun Sent: 2017年9月15日 5:18 To: Y.b. Lu ; u-boot@lists.denx.de Subject: Re: [PATCH] armv8: ls1043a: disable IFC in SPL only when QSPI is used On

[U-Boot] [v2] armv8: ls1043a: disable IFC in SPL only when QSPI is used

2017-09-14 Thread Yangbo Lu
Current u-boot disables IFC support for SD boot on all ls1043a boards. Actually IFC only conflicts with QSPI on ls1043a hardware. Only when QSPI is used, IFC should be disabled. Otherwise, the u-boot with ls1043aqds_sdcard_ifc_defconfig would not work. Signed-off-by: Yangbo Lu

Re: [U-Boot] [PATCH] PCI: layerscape: Make the pcie link up status judgement more specific

2017-09-14 Thread Xiaowei Bao
Hi York, I will update the patch at next week, I have other thing to do this week. Thanks -Original Message- From: York Sun Sent: Friday, September 15, 2017 4:07 AM To: Xiaowei Bao ; u-boot@lists.denx.de; Priyanka Jain ; Z.q. Hou

[U-Boot] [PATCH v4 2/3] video: add an option for video simplefb via DT

2017-09-14 Thread Icenowy Zheng
Add an option to indicate that the video driver should setup a SimpleFB node that passes the video framebuffer initialized by U-Boot to the operating system kernel. Currently only the Allwinner DE2 driver uses this option. Signed-off-by: Icenowy Zheng --- Changes in v4: -

[U-Boot] [PATCH v4 3/3] sunxi: setup simplefb for Allwinner DE2

2017-09-14 Thread Icenowy Zheng
As the support of EFI boot on Allwinner H3 is broken, we still need to use simplefb to pass the framebuffer to Linux. Add code to setup simplefb for Allwinner DE2 driver. Signed-off-by: Icenowy Zheng Acked-by: Maxime Ripard --- Changes in v4:

[U-Boot] [PATCH v4 1/3] video: sunxi: extract simplefb match code to a new file

2017-09-14 Thread Icenowy Zheng
As the DE2 simplefb setup code can also benefit from the simplefb match code, extract it to a new source file. Signed-off-by: Icenowy Zheng Reviewed-by: Andre Przywara Acked-by: Maxime Ripard --- Changes in v4: - Add

[U-Boot] [PATCH v4 0/3] Allwinner DE2 HDMI SimpleFB support

2017-09-14 Thread Icenowy Zheng
This patchset is for Allwinner DE2 HDMI SimpleFB support. The framebuffer initialized by the Allwinner DE2 driver can be passed by to the kernel as simplefb, and this can enable the kernel to display graphics without having full DE2 driver. Add the suppot of simplefb in DE2 code. The code to

Re: [U-Boot] [PATCH v2] blk: Remove various places that do flush cache after read

2017-09-14 Thread Bin Meng
Hi Tom, On Wed, Sep 13, 2017 at 10:00 AM, Bin Meng wrote: > All these places seem to inherit the codes from the MMC driver where > a FIXME was put in the comment. However the correct operation after > read should be cache invalidate, not flush. > > The underlying drivers

Re: [U-Boot] [PATCH v2] cmd: blk: Use LBAFU in the common block command

2017-09-14 Thread Bin Meng
Hi Tom, On Wed, Sep 13, 2017 at 10:00 AM, Bin Meng wrote: > There is already a macro LBAFU to aid formatted print with lbaint_t > variables. Let's use it in the common block command codes. > > Signed-off-by: Bin Meng > > --- > > Changes in v2: > - rebase

Re: [U-Boot] [U-Boot, v6, 9/9] board: atmel: Add SAMA5D27 SOM1 EK board

2017-09-14 Thread Tom Rini
On Wed, Sep 13, 2017 at 02:58:54PM +0800, Wenyou Yang wrote: > From: Wenyou Yang > > The SAMA5D27-SiP (System in Package) integrates the SAMA5D2 > with 1Gbit DDR2-SDRAM in a single package. > > The SAMA5D27 SOM1 embeds a 64Mbit QSPI flash, KSZ8081 Phy and > Mac-address

Re: [U-Boot] [U-Boot, v3, 4/5] ARM: at91: spl: Add macro CONFIG_XXXX_BOOT support

2017-09-14 Thread Tom Rini
On Thu, Sep 14, 2017 at 11:07:43AM +0800, Wenyou Yang wrote: > Use the CONFIG__BOOT to indicate the boot media, instead of > the CONFIG_SYS_USE_ option, which is declared by > CONFIG_SYS_EXTRA_OPTIONS option. > > Signed-off-by: Wenyou Yang Applied to

Re: [U-Boot] [U-Boot, v3, 5/5] configs: at91: Remove CONFIG_SYS_EXTRA_OPTIONS assignment

2017-09-14 Thread Tom Rini
On Thu, Sep 14, 2017 at 11:07:44AM +0800, Wenyou Yang wrote: > To remove the assignment of CONFIG_SYS_EXTRA_OPTIONS option, > which is deprecated, use the CONFIG__BOOT options to > indicate the boot media, and the SoC is selected by the board. > > Signed-off-by: Wenyou Yang

Re: [U-Boot] [U-Boot, v6, 4/9] ARM: at91: spl: Add mck function to lower rate while switching

2017-09-14 Thread Tom Rini
On Wed, Sep 13, 2017 at 02:58:49PM +0800, Wenyou Yang wrote: > Refer to the commit 70f8c8316ad(PMC: add new mck function to lower > rate while switching) from AT91Bootstrap. > > While switching to a lower clock source, we must switch the clock > source first instead of last. Otherwise, we could

Re: [U-Boot] [U-Boot, v3, 2/5] ARM: at91: Add the SoC options to Kconfig

2017-09-14 Thread Tom Rini
On Thu, Sep 14, 2017 at 11:07:41AM +0800, Wenyou Yang wrote: > From: Wenyou Yang > > To prepare to remove the SoCs options such as SAMA5D2, SAMA5D3 > and SAMA5D4 from the CONFIG_SYS_EXTRA_OPTIONS option which is > deprecated, add the SoC options to Kconfig. > >

Re: [U-Boot] [U-Boot, v3, 1/5] ARM: at91: Move CONFIG_AT91FAMILY option to Kconfig

2017-09-14 Thread Tom Rini
On Thu, Sep 14, 2017 at 11:07:40AM +0800, Wenyou Yang wrote: > From: Wenyou Yang > > Move the CONFIG_AT91FAMILY option from include/mach/.h header > file to Kconfig. > > Signed-off-by: Wenyou Yang Applied to u-boot/master, thanks! -- Tom

Re: [U-Boot] [U-Boot, v6, 8/9] ARM: at91: Get the Chip ID of SAMA5D2 SiP

2017-09-14 Thread Tom Rini
On Wed, Sep 13, 2017 at 02:58:53PM +0800, Wenyou Yang wrote: > From: Wenyou Yang > > The SAMA5D2 SiP(System in Package) has different Chip IDs in the > CHIPID and CHIP_EXID registers. > > Signed-off-by: Wenyou Yang > Reviewed-by: Simon Glass

Re: [U-Boot] [U-Boot, v6, 7/9] ARM: at91: mach: Add missing defines of MPDDRC

2017-09-14 Thread Tom Rini
On Wed, Sep 13, 2017 at 02:58:52PM +0800, Wenyou Yang wrote: > Add missing defines of Multiport DDR-SDRAM Controller (MPDDRC). > > Signed-off-by: Wenyou Yang > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [U-Boot] [U-Boot, v3, 3/5] ARM: at91: Remove hardware.h included in configs

2017-09-14 Thread Tom Rini
On Thu, Sep 14, 2017 at 11:07:42AM +0800, Wenyou Yang wrote: > From: Wenyou Yang > > As said in READRE.kconfig, include/configs/*.h will be removed > after all options are switched to Kconfig. As the first step, > remove the follow line from include/configs/*.h. > >

Re: [U-Boot] [U-Boot, v6, 5/9] board: sama5d2_xplained: Make SPL work on spiflash

2017-09-14 Thread Tom Rini
On Wed, Sep 13, 2017 at 02:58:50PM +0800, Wenyou Yang wrote: > Because before switching to a lower clock source, we must switch > the clock source first instead of last. So before configuring the > PMC_MCKR register, invoke at91_mck_init_down() first. > > As said in datasheet, the the size of

Re: [U-Boot] [U-Boot, v6, 6/9] ARM: at91: spl: Add boot device for boot from QSPI

2017-09-14 Thread Tom Rini
On Wed, Sep 13, 2017 at 02:58:51PM +0800, Wenyou Yang wrote: > Add the boot device for booting from the QSPI flash. > > Signed-off-by: Wenyou Yang > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description:

Re: [U-Boot] [U-Boot, v6, 2/9] atmel: common: Add function to display via DM_VIDEO's API

2017-09-14 Thread Tom Rini
On Wed, Sep 13, 2017 at 02:58:47PM +0800, Wenyou Yang wrote: > Add a function to display the company's logo and board information > via the API from DM_VIDEO. This function can be shared by other > atmel boards, so locate it in board/atmel/common folder. > > Signed-off-by: Wenyou Yang

Re: [U-Boot] [U-Boot, v6, 3/9] ARM: at91: spl: Adjust switching to oscillator for SAMA5D2

2017-09-14 Thread Tom Rini
On Wed, Sep 13, 2017 at 02:58:48PM +0800, Wenyou Yang wrote: > As said in 29.5.7 section of SAMA5D2 datasheet, before switching to > the crystal oscillator, a check must be carried out to ensure that > the oscillator is present and that its freqency is valid. > > Signed-off-by: Wenyou Yang

Re: [U-Boot] [U-Boot, v6, 1/9] lib: at91: Add logo files used via API of DM_VIDEO

2017-09-14 Thread Tom Rini
On Wed, Sep 13, 2017 at 02:58:46PM +0800, Wenyou Yang wrote: > From: Wenyou Yang > > In order to display the company's logo via the API of DM_VIDEO, > and add the logo files of both Atmel and Microchip. > > Signed-off-by: Wenyou Yang >

Re: [U-Boot] [U-Boot,2/2] ARM: dts: at91: sama5: Add the sfr node

2017-09-14 Thread Tom Rini
On Tue, Sep 05, 2017 at 06:30:08PM +0800, Wenyou Yang wrote: > For sama5d2, add the sfr node with syscon support. > > In order to access the SFR_UTMICKTRIM register for the utmi clock > driver, add the phandle property for the utmi node to point to the > sfr node. > > Signed-off-by: Wenyou Yang

Re: [U-Boot] [U-Boot, 1/2] clk: at91: utmi: Set the reference clock frequency

2017-09-14 Thread Tom Rini
On Tue, Sep 05, 2017 at 06:30:07PM +0800, Wenyou Yang wrote: > By default, it is assumed that the UTMI clock is generated from > a 12 MHz reference clock (MAINCK). If it's not the case, the FREQ > field of the SFR_UTMICKTRIM has to be updated to generate the UTMI > clock in the proper way. > >

Re: [U-Boot] [PATCH v2] arm: am33xx: Make pin multiplexing functions optional

2017-09-14 Thread Tom Rini
On Thu, Sep 14, 2017 at 02:37:08PM +0200, Felix Brack wrote: > This patch provides default implementations of the two functions > set_uart_mux_conf and set_mux_conf_regs. Hence boards not using > them do not need to provide their distinct empty definitions. > > Signed-off-by: Felix Brack

[U-Boot] [PATCH v2 11/13] nios2: Use asm-generic/io.h

2017-09-14 Thread Paul Burton
Convert the nios2 architecture to make use of the new asm-generic/io.h to provide address mapping functions. As nios2 actually performs non-identity mapping between physical & virtual addresses we can't simply make use of the generic functions, with the exception of being able to drop our no-op

[U-Boot] [PATCH v2 12/13] powerpc: Use asm-generic/io.h

2017-09-14 Thread Paul Burton
Convert the powerpc architecture to make use of the new asm-generic/io.h to provide address mapping functions. As powerpc can actually perform non-identity mapping between physical & virtual addresses we can't simply make use of the generic phys_to_virt() & virt_to_phys() functions. However since

[U-Boot] [PATCH v2 13/13] sandbox: Use asm-generic/io.h

2017-09-14 Thread Paul Burton
Convert the sandbox architecture to make use of the new asm-generic/io.h to provide address mapping functions. As sandbox actually performs non-identity mapping between physical & virtual addresses we can't simply make use of the generic mapping functions, but are able to implement phys_to_virt()

[U-Boot] [PATCH v2 09/13] xtensa: Use asm-generic/io.h

2017-09-14 Thread Paul Burton
Convert the xtensa architecture to make use of the new asm-generic/io.h to provide address mapping functions. As the generic implementations are suitable for xtensa this is primarily a matter of moving code. This has only been build-tested, feedback from architecture maintainers is welcome.

[U-Boot] [PATCH v2 06/13] nds32: Use asm-generic/io.h

2017-09-14 Thread Paul Burton
Convert the nds32 architecture to make use of the new asm-generic/io.h to provide address mapping functions. As the generic implementations are suitable for nds32 this is primarily a matter of removing code. Feedback from architecture maintainers is welcome. Signed-off-by: Paul Burton

[U-Boot] [PATCH v2 08/13] x86: Use asm-generic/io.h

2017-09-14 Thread Paul Burton
Convert the x86 architecture to make use of the new asm-generic/io.h to provide address mapping functions. As the generic implementations are suitable for x86 this is primarily a matter of moving code. This has only been build-tested, feedback from architecture maintainers is welcome.

[U-Boot] [PATCH v2 05/13] microblaze: Use asm-generic/io.h

2017-09-14 Thread Paul Burton
Convert the microblaze architecture to make use of the new asm-generic/io.h to provide address mapping functions. As the generic implementations are suitable for microblaze this is primarily a matter of removing code. Feedback from architecture maintainers is welcome. Signed-off-by: Paul Burton

[U-Boot] [PATCH v2 10/13] mips: Use asm-generic/io.h

2017-09-14 Thread Paul Burton
Convert the mips architecture to make use of the new asm-generic/io.h to provide address mapping functions. As mips actually performs non-identity mapping between physical & virtual addresses we can't simply make use of the generic functions, with the exception of being able to drop our no-op

[U-Boot] [PATCH v2 07/13] sh: Use asm-generic/io.h

2017-09-14 Thread Paul Burton
Convert the sh architecture to make use of the new asm-generic/io.h to provide address mapping functions. As the generic implementations are suitable for sh this is primarily a matter of moving code. Feedback from architecture maintainers is welcome. Signed-off-by: Paul Burton

[U-Boot] [PATCH v2 04/13] m68k: Use asm-generic/io.h

2017-09-14 Thread Paul Burton
Convert the m68k architecture to make use of the new asm-generic/io.h to provide address mapping functions. As the generic implementations are suitable for m68k this is primarily a matter of emoving code. Feedback from architecture maintainers is welcome. Signed-off-by: Paul Burton

[U-Boot] [PATCH v2 03/13] arm: Use asm-generic/io.h

2017-09-14 Thread Paul Burton
Convert the arm architecture to make use of the new asm-generic/io.h to provide address mapping functions. As the generic implementations are suitable for arm this is primarily a matter of removing code. This has only been build-tested, feedback from architecture maintainers is welcome.

[U-Boot] [PATCH v2 02/13] arc: Use asm-generic/io.h

2017-09-14 Thread Paul Burton
Convert the arc architecture to make use of the new asm-generic/io.h to provide address mapping functions. As the generic implementations are suitable for arc this is primarily a matter of removing code. Feedback from architecture maintainers is welcome. Signed-off-by: Paul Burton

[U-Boot] [PATCH v2 01/13] Provide a generic io.h & address mapping functions

2017-09-14 Thread Paul Burton
Most architectures currently supported by U-Boot use trivial implementations of map_to_physmem & virt_to_phys which simply cast a physical address to a pointer for use a virtual address & vice-versa. This results in a lot of duplicate implementations of these mapping functions. The set of

[U-Boot] [PATCH v2 00/13] Add asm-generic/io.h; virt_to_phys(), phys_to_virt() for all arches

2017-09-14 Thread Paul Burton
This series introduces a new asm-generic/io.h header & makes use of it to reduce duplication between architectures & ensure they all consistently provide implementations of virt_to_phys() & phys_to_virt(). This was split out from an earlier series which goes on to use phys_to_virt(), in order to

[U-Boot] [PATCH v2 8/8] test/py: vboot: Remove stderr redirect from openssl command

2017-09-14 Thread Paul Burton
The openssl command specified in test_with_algo() ultimately ends up being run by RunAndLog::run(), which uses it to construct a Popen object with the default shell=False. The stderr redirect in the command is therefore simply passed to openssl as an argument. With at least openssl 1.1.0f this

Re: [U-Boot] [PATCH 8/8] test/py: vboot: Remove stderr redirect from openssl command

2017-09-14 Thread Paul Burton
Hi Stephen, On Thursday, 14 September 2017 13:28:35 PDT Stephen Warren wrote: > I could have sworn I checked this code ran on Python 3 when I first > wrote it. Some of the issues you've fixed were clearly introduced since > then, but not all. Perhaps I'm remembering some other project where I >

[U-Boot] [PATCH v2 6/8] test/py: fit: Open files as binary files

2017-09-14 Thread Paul Burton
The read_file() function in test_fit is used with files that are not text files, as well as some that are. It is never used in a way that requires it to decode text files to characters, so open all files in binary mode such that read() doesn't attempt to decode characters for files which are not

[U-Boot] [PATCH v2 7/8] test/py: hush_if_test: Use open() in place of file()

2017-09-14 Thread Paul Burton
In python 3.x the file() function has been removed. Use open() instead, which works on both python 2.x & 3.x, and is described as the preferred method of opening a file by python 2.x documentation anyway. Signed-off-by: Paul Burton Reviewed-by: Stephen Warren

[U-Boot] [PATCH v2 5/8] test/py: Encode/decode strings for stdio

2017-09-14 Thread Paul Burton
When reading stdin python 3.x will give us byte arrays, and when writing stdout or stderr it will expect byte arrays. In order to insulate the rest of the code from this difference, call encode or decode at appropriate points when reading or writing stdio files. This works fine on python 2.x too.

[U-Boot] [PATCH v2 4/8] test/py: Import StringIO from io module for python 3.x

2017-09-14 Thread Paul Burton
In python 3.x the StringIO module is gone, and instead StringIO can be imported from the io module. Do this in order to run on python 3.x, and fall back to importing StringIO as a module in order to continue working with python 2.x. Signed-off-by: Paul Burton Reviewed-by:

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

2017-09-14 Thread Paul Burton
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 python 2.x. Signed-off-by: Paul Burton Reviewed-by: Stephen

[U-Boot] [PATCH v2 2/8] test/py: Use range() rather than xrange()

2017-09-14 Thread Paul Burton
In python 3.x the xrange() function has been removed, and range() returns an iterator much like Python 2.x's xrange(). Simply use range() in place of xrange() in order to work on both python 2.x & 3.x. This will mean a small cost on python 2.x since range() will return a list there rather than an

[U-Boot] [PATCH v2 1/8] test/py: Make print statements python 3.x safe

2017-09-14 Thread Paul Burton
In python 3.x print must be called as a function rather than used as a statement. Update uses of print to the function call syntax in order to be python 3.x safe. Signed-off-by: Paul Burton Reviewed-by: Stephen Warren --- Changes in v2: None

[U-Boot] [PATCH v2 0/8] test/py: Fixes for python 3.x

2017-09-14 Thread Paul Burton
This series allows test/py to run on python 3.x in addition to the already supported python 2.x. With it applied I currently see only one failure (test_ut[ut_dm_usb_flash]) which doesn't appear to be python related when running with: $ ./test/py/test.py --bd sandbox --build Thanks, Paul

Re: [U-Boot] [PATCH 1/4] arm64: ls1043ardb: Add sd_bootcmd for distro fallback in case of sdboot

2017-09-14 Thread York Sun
On 08/30/2017 03:43 AM, Shengzhou Liu wrote: > Signed-off-by: Shengzhou Liu > --- > include/configs/ls1043a_common.h | 11 ++- > 1 file changed, 10 insertions(+), 1 deletion(-) > > diff --git a/include/configs/ls1043a_common.h >

Re: [U-Boot] [PATCH] armv8: ls1043a: disable IFC in SPL only when QSPI is used

2017-09-14 Thread York Sun
On 09/12/2017 11:03 PM, Yangbo Lu wrote: > SD boot couldn't work with ls1043aqds_sdcard_ifc_defconfig since > IFC in SPL is disabled. This patch is to fix this issue. You subject matches the change. But the commit message is confusing. Please rephrase it. York > > Signed-off-by: Yangbo Lu

Re: [U-Boot] [PATCH] FSL PCI: Configure PCIe reference ratio

2017-09-14 Thread York Sun
On 09/12/2017 10:56 AM, Joakim Tjernlund wrote: > Most FSL PCIe controllers expects 333 MHz PCI reference clock. > This clock is derived from the CCB but in many cases the ref. > clock is not 333 MHz and a divisor needs to be configured. > > This adds PEX_CCB_DIV #define which can be defined for

[U-Boot] [PATCH] sf: Fix S25FL116K entry

2017-09-14 Thread Marek Vasut
The flash chip is 2 MiB , organized as 32 x 64 kiB sectors . Rectify the entry to match the datasheet, reality and Linux SNOR IDs. Signed-off-by: Marek Vasut Cc: Jagan Teki --- drivers/mtd/spi/spi_flash_ids.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [U-Boot] efi_loader: fix events

2017-09-14 Thread Rob Clark
On Thu, Sep 14, 2017 at 4:51 PM, Heinrich Schuchardt wrote: > On 09/12/2017 06:35 PM, Rob Clark wrote: >> An event can be created with type==0, Shell.efi does this for an event >> that is set when Ctrl-C is typed. So our current approach of having a >> fixed set of timer

Re: [U-Boot] [PATCH][v2]board/ls2080ardb: Update board env based on SoC

2017-09-14 Thread York Sun
On 09/05/2017 10:42 PM, Priyanka Jain wrote: > As per current implementation, default value of board env is > based on board filename i.e ls2080ardb. > > With distro support changes, this env is used to decide upon > kernel dtb which is different for other SoCs (ls2088a, ls2081a) > combination

Re: [U-Boot] [PATCH] armv8: Remove dependency of SERDES for LS CHASIS3

2017-09-14 Thread York Sun
On 09/04/2017 03:14 AM, Sriram Dash wrote: > Remove dependency of SYS_HAS_SERDES for Layerscape Chasis 3. > > Signed-off-by: Sriram Dash > --- > arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 4 ++-- > arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 2 ++ >

Re: [U-Boot] [RESEND PATCH v3 1/7] armv8: lsch3: Add serdes and DDR voltage setup

2017-09-14 Thread York Sun
You have a lot of magic numbers and delays. See inline comments. On 09/03/2017 11:24 PM, Rajesh Bhagat wrote: > Adds SERDES voltage and reset SERDES lanes API and makes > enable/disable DDR controller support 0.9V API common. > > Signed-off-by: Ashish Kumar >

Re: [U-Boot] efi_loader: fix events

2017-09-14 Thread Heinrich Schuchardt
On 09/12/2017 06:35 PM, Rob Clark wrote: > An event can be created with type==0, Shell.efi does this for an event > that is set when Ctrl-C is typed. So our current approach of having a > fixed set of timer slots, and determining which slots are unused by > type==0 doesn't work so well. But we

Re: [U-Boot] [PATCH] board/ls2080ardb: Add mcmemsize variable in default env

2017-09-14 Thread York Sun
On 08/29/2017 02:50 AM, Priyanka Jain wrote: > For most of ls2080ardb use-cases, mc private DRAM block is required > to be of 1.75GB. > Henc set mcmemsize=0x7000 in default env > > Signed-off-by: Priyanka Jain > --- > include/configs/ls2080ardb.h |1 + > 1

Re: [U-Boot] [PATCH 1/3] armv8: fsl-layerscape: SPL size reduction

2017-09-14 Thread York Sun
On 08/29/2017 12:01 AM, Sumit Garg wrote: > Using changes in this patch we were able to reduce approx 4k > size of u-boot-spl.bin image. Following is breif description of > changes to reduce SPL size: > 1. Compile-off mp.c and libfdt.c in case of SPL build. > 2. Keep MMU and DCACHE specific

Re: [U-Boot] [PATCH] LS2080A_SECURE_BOOT: Enable CONFIG_FSL_LS_PPA.

2017-09-14 Thread York Sun
On 08/28/2017 04:26 AM, Udit Agarwal wrote: > Add config CONFIG_FSL_LS_PPA and CONFIG_FSL_CAAM in > LS2080AQDS and LS2080ARDB secure boot defconfig. You also change other things. Please explain. > > Signed-off-by: Udit Agarwal > --- >

Re: [U-Boot] [PATCH v2 2/2] LS1088A_QSPI: Add secure boot defconfigs for QSPI boot.

2017-09-14 Thread York Sun
On 08/25/2017 02:03 AM, Udit Agarwal wrote: > Add the secure boot defconfigs for QSPI boot on LS1088ARDB > and LS1088AQDS platforms. > > Signed-off-by: Udit Agarwal > --- > configs/ls1088aqds_qspi_SECURE_BOOT_defconfig | 32 > +++ >

Re: [U-Boot] [PATCH 8/8] test/py: vboot: Remove stderr redirect from openssl command

2017-09-14 Thread Stephen Warren
On 09/14/2017 02:06 PM, Paul Burton wrote: The openssl command specified in test_with_algo() ultimately ends up being run by RunAndLog::run(), which uses it to construct a Popen object with the default shell=False. The stderr redirect in the command is therefore simply passed to openssl as an

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

2017-09-14 Thread Stephen Warren
On 09/14/2017 02:06 PM, 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 python 2.x. diff --git

Re: [U-Boot] [PATCH v2 1/2] LS1088A_QSPI: SECURE_BOOT: Images validation

2017-09-14 Thread York Sun
On 08/25/2017 02:03 AM, Udit Agarwal wrote: > Validates PPA, MC, DPC, Bootscript, DPL and Kernel images in ESBC phase > using esbc_validate command. Add images validation in default environment > under mcinitcmd prior to MC initialization. > > Add header address for PPA to be validated during

Re: [U-Boot] [PATCH] armv8/ls1088a: configure PMU's PCTBENR to enable WDT

2017-09-14 Thread York Sun
The subject doesn't represent your change. Please revise. On 08/22/2017 03:47 AM, ying.zhang22...@nxp.com wrote: > From: Zhang Ying-22455 > > The SP805-WDT module on LS1088A requires configuration of PMU's > PCTBENR register to enable watchdog counter decrement and

Re: [U-Boot] [PATCH 1/1] board/ls2081ardb: Update display information during boot

2017-09-14 Thread York Sun
On 08/18/2017 03:21 AM, Prabhakar Kushwaha wrote: > >> -Original Message- >> From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Santan >> Kumar >> Sent: Friday, August 18, 2017 3:21 PM >> To: u-boot@lists.denx.de; York Sun >> Cc: Priyanka Jain

[U-Boot] [PATCH 8/8] test/py: vboot: Remove stderr redirect from openssl command

2017-09-14 Thread Paul Burton
The openssl command specified in test_with_algo() ultimately ends up being run by RunAndLog::run(), which uses it to construct a Popen object with the default shell=False. The stderr redirect in the command is therefore simply passed to openssl as an argument. With at least openssl 1.1.0f this

[U-Boot] [PATCH 5/8] test/py: Encode/decode strings for stdio

2017-09-14 Thread Paul Burton
When reading stdin python 3.x will give us byte arrays, and when writing stdout or stderr it will expect byte arrays. In order to insulate the rest of the code from this difference, call encode or decode at appropriate points when reading or writing stdio files. This works fine on python 2.x too.

[U-Boot] [PATCH 6/8] test/py: fit: Open files as binary files

2017-09-14 Thread Paul Burton
The read_file() function in test_fit is used with files that are not text files, as well as some that are. It is never used in a way that requires it to decode text files to characters, so open all files in binary mode such that read() doesn't attempt to decode characters for files which are not

[U-Boot] [PATCH 7/8] test/py: hush_if_test: Use open() in place of file()

2017-09-14 Thread Paul Burton
In python 3.x the file() function has been removed. Use open() instead, which works on both python 2.x & 3.x, and is described as the preferred method of opening a file by python 2.x documentation anyway. Signed-off-by: Paul Burton --- test/py/tests/test_hush_if_test.py

[U-Boot] [PATCH 4/8] test/py: Import StringIO from io module for python 3.x

2017-09-14 Thread Paul Burton
In python 3.x the StringIO module is gone, and instead StringIO can be imported from the io module. Do this in order to run on python 3.x, and fall back to importing StringIO as a module in order to continue working with python 2.x. Signed-off-by: Paul Burton ---

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

2017-09-14 Thread Paul Burton
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 python 2.x. Signed-off-by: Paul Burton --- test/py/conftest.py

Re: [U-Boot] [PATCH] PCI: layerscape: Make the pcie link up status judgement more specific

2017-09-14 Thread York Sun
On 08/15/2017 11:32 PM, Xiaowei Bao wrote: > Hi York, > > Yes, it is my mean, I am not brief enough to express, thank you correct me. Xiaowei, Please update his patch as discussed. York ___ U-Boot mailing list U-Boot@lists.denx.de

[U-Boot] [PATCH 2/8] test/py: Use range() rather than xrange()

2017-09-14 Thread Paul Burton
In python 3.x the xrange() function has been removed, and range() returns an iterator much like Python 2.x's xrange(). Simply use range() in place of xrange() in order to work on both python 2.x & 3.x. This will mean a small cost on python 2.x since range() will return a list there rather than an

[U-Boot] [PATCH 1/8] test/py: Make print statements python 3.x safe

2017-09-14 Thread Paul Burton
In python 3.x print must be called as a function rather than used as a statement. Update uses of print to the function call syntax in order to be python 3.x safe. Signed-off-by: Paul Burton --- test/py/conftest.py | 2 +- test/py/test.py

[U-Boot] [PATCH 0/8] test/py: Fixes for python 3.x

2017-09-14 Thread Paul Burton
This series allows test/py to run on python 3.x in addition to the already supported python 2.x. With it applied I currently see only one failure (test_ut[ut_dm_usb_flash]) which doesn't appear to be python related when running with: $ ./test/py/test.py --bd sandbox --build Thanks, Paul

Re: [U-Boot] [U-Boot, 08/14] usb: dwc3: Add helper functions to enable snooping and burst settings

2017-09-14 Thread York Sun
On 05/17/2017 05:05 AM, yinbo.zhu wrote: > From: Rajat Srivastava > > Adds helper functions to enable snooping and outstanding burst beat > settings. > > Signed-off-by: Rajat Srivastava > Signed-off-by: Rajesh Bhagat >

Re: [U-Boot] [PATCH] config: ls1012aqds: Add USB EHCI support for ls1012aqds

2017-09-14 Thread York Sun
On 09/14/2017 12:54 PM, York Sun wrote: > On 07/27/2017 03:05 AM, yinbo@nxp.com wrote: >> From: Rajesh Bhagat >> >> +#elif defined(CONFIG_LS102XA) || defined(CONFIG_ARCH_LS1012A) > > Please use CONFIG_ARCH_LS1021A, not CONFIG_LS102XA. > Never mind. This is merged.

Re: [U-Boot] [PATCH] config: ls1012aqds: Add USB EHCI support for ls1012aqds

2017-09-14 Thread York Sun
On 07/27/2017 03:05 AM, yinbo@nxp.com wrote: > From: Rajesh Bhagat > > Add USB EHCI support for ls1012aqds platform > > Signed-off-by: Rajat Srivastava > Signed-off-by: Rajesh Bhagat > Signed-off-by: yinbo.zhu

[U-Boot] [PATCH] armv7: ls1021a: Fix marco CONFIG_LS102XA

2017-09-14 Thread York Sun
Commit a8ecb39e accidentally reverted config macro CONFIG_ARCH_LS1021A to CONFIG_LS102XA. Signed-off-by: York Sun --- include/usb/ehci-ci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/usb/ehci-ci.h b/include/usb/ehci-ci.h index cd3eb47..59bfc14

[U-Boot] [PATCH] spl: Fix compiling warning on gunzip argument

2017-09-14 Thread York Sun
common/spl/spl_fit.c:201:12: warning: passing argument 4 of ‘gunzip’ from incompatible pointer type [-Wincompatible-pointer-types] src, )) Signed-off-by: York Sun Reported-by: Heinrich Schuchardt --- common/spl/spl_fit.c | 4 +++- 1 file changed, 3

[U-Boot] [PATCH v2 5/7] armv8: layerscape: Eanble falcon boot

2017-09-14 Thread York Sun
Add jump_to_image_linux() for arm64. Add "noreturn" flag to armv8_switch_to_el2(). Add hooks to fsl-layerscape to enable falcon boot. Signed-off-by: York Sun --- Changes in v2: Relace getenv_f() with env_get_f() after rebasing to latet master.

[U-Boot] [PATCH v2 7/7] armv8: ls1043ardb_sdcard: Enable falcon boot

2017-09-14 Thread York Sun
Update defconfig to enable falcon boot, add needed macros to board header file. Because environment variables are not avaiable during SPL stage for SD boot, set "boot_os=y" as default. Signed-off-by: York Sun --- Changes in v2: None configs/ls1043ardb_sdcard_defconfig | 6

  1   2   >