Re: [U-Boot] [U-Boot, 1/2] spl: atf: add SPL_ATF_NO_PLATFORM_PARAM option

2018-01-03 Thread Philipp Tomsich
> While we expect to call a pointer to a valid FDT (or NULL) as the > platform parameter to an ATF, some ATF versions are not U-Boot aware > and have an insufficiently robust (or an overzealour) parameter > validation: either way, this may cause a hard-stop with uncooperative > ATF versions. > >

Re: [U-Boot] [PATCH V2] pci: imx: request gpio before use

2018-01-03 Thread Stefano Babic
On 02/01/2018 11:27, Peng Fan wrote: > Before use GPIO, we need to request gpio first. Free gpio after use. > > Signed-off-by: Peng Fan > Cc: Stefano Babic > Cc: Fabio Estevam > --- > > V2: > Typo fix. > Free gpio after use. > >

Re: [U-Boot] [PATCH] mx6: ddr: Do not access MMDC_P1_BASE_ADDR on i.MX6ULL

2018-01-03 Thread Stefano Babic
On 02/01/2018 01:51, Fabio Estevam wrote: > From: Fabio Estevam > > i.MX6ULL also does not have a MMDC_P1_BASE_ADDR, so do not try to > access it. > > Signed-off-by: Fabio Estevam > --- > arch/arm/mach-imx/mx6/ddr.c | 4 ++-- > 1 file changed, 2

Re: [U-Boot] [PATCH] mx6ull: Handle the CONFIG_MX6ULL cases correctly

2018-01-03 Thread Stefano Babic
Hi Fabio, On 01/01/2018 23:29, Fabio Estevam wrote: > From: Fabio Estevam > > Since commit 051ba9e082f7 ("Kconfig: mx6ull: Deselect MX6UL from > CONFIG_MX6ULL") CONFIG_MX6ULL does not select CONFIG_MX6UL anymore, so > take this into consideration in all the checks for

[U-Boot] [PATCH] aes: Allow non-zero initialization vector

2018-01-03 Thread Андрей Мозжухин
AES encryption in CBC mode, in most cases, must be used with random initialization vector. Using the same key and initialization vector several times is weak and must be avoided. Added iv parameter to the aes_cbc_encrypt_blocks and aes_cbc_decrypt_blocks functions for passing initialization

Re: [U-Boot] [PATCH 2/2] rockchip: firefly-rk3399: enable SPL_ATF_NO_PLATFORM_PARAM

2018-01-03 Thread Dr. Philipp Tomsich
Kever, > On 3 Jan 2018, at 03:34, Kever Yang wrote: > > Hi Philipp, > > On 01/03/2018 04:16 AM, Philipp Tomsich wrote: >> The Rockchip-released ATF for the Firefly apparently (i.e. Kever >> reported this) does not tolerate a FDT being passed as the platform >>

[U-Boot] QSPI "sf probe ...", "sf read ..." on Altera SoC FPGA

2018-01-03 Thread Mr. goldenstreet
hey, i have looked at this thread: http://u-boot.10912.n7.nabble.com/QSPI-quot-sf-probe-quot-quot-sf-read-quot-on-Altera-SoC-FPGA-td304882.html i'm having the same problem with Arria 5, when i try to use the "sf probe" command on the nor flash, the result i'm getting0 is: SF: Detected n25q512

Re: [U-Boot] [PATCH 4/5] Kconfig: mx6ull: Deselect MX6UL from CONFIG_MX6ULL

2018-01-03 Thread Fabio Estevam
Hi Stefano, On Wed, Jan 3, 2018 at 11:13 AM, Stefano Babic wrote: > Agree - I am waiting for Breno's answer, but if we have a generally > agreement I tend to revert this until this change will be properly handled. I have already sent a fix for this problem:

Re: [U-Boot] [PATCH 4/5] Kconfig: mx6ull: Deselect MX6UL from CONFIG_MX6ULL

2018-01-03 Thread Stefano Babic
Hi Stefan, Breno, On 01/01/2018 22:53, Stefan Agner wrote: > On 2017-11-28 00:07, Breno Lima wrote: >> From: Breno Lima >> >> MX6UL contains features that MX6ULL doesn't support. >> Deselect CONFIG_MX6UL and select SYS_L2CACHE_OFF and ROM_UNIFIED_SECTIONS. >> >> The

Re: [U-Boot] [PATCH] mx6: Add board mx6memcal for use in validating DDR

2018-01-03 Thread Stefano Babic
Hi Fabio, Eric, first of all, many thanks for this patch ! A full FOSS tool to replace the proprietary ddr-stress is what we are missing from the beginning of i.MX6. Applied to u-boot-imx, thanks ! Best regards, Stefano On 11/12/2017 16:52, Fabio Estevam wrote: > From: Eric Nelson

Re: [U-Boot] [PATCH 1/2] imx7: spl: Use SPL boot device MMC1 for all of the SOCs MMC/SD boot devices

2018-01-03 Thread Uri Mashiach
Hello Eran, On 01/03/2018 12:53 PM, Eran Matityahu wrote: Use only one SPL MMC device, similarly to the iMX6 code What is the reason for not using MMC2? Signed-off-by: Eran Matityahu --- arch/arm/mach-imx/spl.c | 3 +-- 1 file changed, 1 insertion(+), 2

Re: [U-Boot] [PATCH v2 1/2] video: ipu: Fix dereferencing NULL pointer problem

2018-01-03 Thread Anatolij Gustschin
On Wed, 3 Jan 2018 12:20:49 +0100 Anatolij Gustschin ag...@denx.de wrote: > From: Peng Fan > > The clk_set_rate function dereferences the clk pointer without > checking whether it is NULL. This may cause problem when clk is NULL. > > Signed-off-by: Peng Fan

Re: [U-Boot] [PATCH 2/2] video: Support multiple lines version string display

2018-01-03 Thread Anatolij Gustschin
On Tue, 2 Jan 2018 15:25:37 +0800 Peng Fan peng@nxp.com wrote: > The calculation of left space for version string is not correct, should > use VIDEO_COLS not VIDEO_LINE_LEN / 2, otherwise we will get larger space > than actual have and cause string to overlay logo picture. > > Also current

[U-Boot] [PATCH v2 1/2] video: ipu: Fix dereferencing NULL pointer problem

2018-01-03 Thread Anatolij Gustschin
From: Peng Fan The clk_set_rate function dereferences the clk pointer without checking whether it is NULL. This may cause problem when clk is NULL. Signed-off-by: Peng Fan Signed-off-by: Anatolij Gustschin --- Changes in v2: - move the NULL

Re: [U-Boot] [PATCH 03/11] env: add support for whitelisting variables from secondary environments

2018-01-03 Thread Quentin Schulz
Hi Lukasz, On 26/12/2017 12:21, Lukasz Majewski wrote: > Hi Quentin, > >> +config ENV_VAR_WHITELIST >> +bool "Enable overriding some variables from secondary >> environments" >> +help >> + This allows overriding some variables from secondary >> environments. >> + After the

Re: [U-Boot] [PATCH v10 00/27] dm: Generic MTD Subsystem, with SPI-NOR interface

2018-01-03 Thread Lukasz Majewski
Hi Jagan, > On Wed, Jan 3, 2018 at 2:18 PM, Vignesh R wrote: > > > > > > On Tuesday 02 January 2018 03:39 PM, Jagan Teki wrote: > >> On Thu, Dec 28, 2017 at 8:14 PM, Lukasz Majewski > >> wrote: > >>> Hi Jagan, > >>> > Compared to previous series’s [1],

[U-Boot] [PATCH 2/2] imx7: spl: Add support for MMC3, SD3 and NAND boot devices

2018-01-03 Thread Eran Matityahu
Signed-off-by: Eran Matityahu --- arch/arm/mach-imx/spl.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-imx/spl.c b/arch/arm/mach-imx/spl.c index 6b5bd8990c..27d065dc86 100644 --- a/arch/arm/mach-imx/spl.c +++ b/arch/arm/mach-imx/spl.c @@ -108,7

[U-Boot] [PATCH 1/2] imx7: spl: Use SPL boot device MMC1 for all of the SOCs MMC/SD boot devices

2018-01-03 Thread Eran Matityahu
Use only one SPL MMC device, similarly to the iMX6 code Signed-off-by: Eran Matityahu --- arch/arm/mach-imx/spl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/spl.c b/arch/arm/mach-imx/spl.c index d0d1b73aa6..6b5bd8990c 100644 ---

Re: [U-Boot] [PATCH v10 03/27] mtd: add SPI-NOR core support

2018-01-03 Thread Jagan Teki
On Wed, Jan 3, 2018 at 3:26 PM, Vignesh R wrote: > > > On Wednesday 03 January 2018 03:02 PM, Jagan Teki wrote: >> On Wed, Jan 3, 2018 at 2:19 PM, Vignesh R wrote: >>> >>> >>> On Thursday 28 December 2017 11:42 AM, Jagan Teki wrote: >>> [...] +static const

Re: [U-Boot] [PATCH v10 03/27] mtd: add SPI-NOR core support

2018-01-03 Thread Vignesh R
On Wednesday 03 January 2018 03:02 PM, Jagan Teki wrote: > On Wed, Jan 3, 2018 at 2:19 PM, Vignesh R wrote: >> >> >> On Thursday 28 December 2017 11:42 AM, Jagan Teki wrote: >> [...] >>> +static const struct mtd_ops spi_nor_mtd_ops = { >>> + .read = spi_nor_mread, >>> +

Re: [U-Boot] [PATCH v10 03/27] mtd: add SPI-NOR core support

2018-01-03 Thread Jagan Teki
On Wed, Jan 3, 2018 at 2:19 PM, Vignesh R wrote: > > > On Thursday 28 December 2017 11:42 AM, Jagan Teki wrote: > [...] >> +static const struct mtd_ops spi_nor_mtd_ops = { >> + .read = spi_nor_mread, >> + .erase = spi_nor_merase, >> +}; >> + > > Wondering why

Re: [U-Boot] [PATCH v10 00/27] dm: Generic MTD Subsystem, with SPI-NOR interface

2018-01-03 Thread Jagan Teki
On Wed, Jan 3, 2018 at 2:18 PM, Vignesh R wrote: > > > On Tuesday 02 January 2018 03:39 PM, Jagan Teki wrote: >> On Thu, Dec 28, 2017 at 8:14 PM, Lukasz Majewski wrote: >>> Hi Jagan, >>> Compared to previous series’s [1], [2], [3] and [4] this patch set

Re: [U-Boot] [PATCH 00/11] Introduce variables whitelisting in environment

2018-01-03 Thread Quentin Schulz
Hi Simon, On 29/12/2017 04:13, Simon Glass wrote: > Hi Quentin, > > On 22 December 2017 at 14:13, Quentin Schulz > wrote: >> This patch series is based on this[1] patch series from Maxime. >> >> This is an RFC. It's been only tested in a specific use case on a

Re: [U-Boot] [PATCH] cmd: pmic: update help description

2018-01-03 Thread Lukasz Majewski
Hi Klaus, > Change help description to match the style of the other U-Boot > commands and get rid of the leading whitespace. > > Signed-off-by: Klaus Goger > > --- > > cmd/pmic.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [U-Boot] [PATCH v10 03/27] mtd: add SPI-NOR core support

2018-01-03 Thread Vignesh R
On Thursday 28 December 2017 11:42 AM, Jagan Teki wrote: [...] > +static const struct mtd_ops spi_nor_mtd_ops = { > + .read = spi_nor_mread, > + .erase = spi_nor_merase, > +}; > + Wondering why spi_nor_mwrite is not hooked up here? > +U_BOOT_DRIVER(spinor_mtd) = { > + .name

Re: [U-Boot] [PATCH v10 00/27] dm: Generic MTD Subsystem, with SPI-NOR interface

2018-01-03 Thread Vignesh R
On Tuesday 02 January 2018 03:39 PM, Jagan Teki wrote: > On Thu, Dec 28, 2017 at 8:14 PM, Lukasz Majewski wrote: >> Hi Jagan, >> >>> Compared to previous series’s [1], [2], [3] and [4] this patch set >>> redefined most of the implementation suitable to fit into existing >>>

Re: [U-Boot] [PATCH v6 0/2] Generic firmware loader

2018-01-03 Thread Chee, Tien Fong
On Rab, 2017-12-27 at 13:04 +0800, tien.fong.c...@intel.com wrote: Hi Lothar Waßmann, > From: Tien Fong Chee > > This patchset contains generic firmware loader which is very close to > Linux > firmware loader but for U-Boot framework. Generic firmware loader can > be

Re: [U-Boot] [U-boot] Odroidxu3/4 -s2mps11 bind pmic failed

2018-01-03 Thread Lukasz Majewski
Hi Anand, > Hi Lukasz > > On 3 January 2018 at 03:47, Lukasz Majewski wrote: > > On Wed, 3 Jan 2018 01:54:57 +0530 > > Anand Moon wrote: > > > >> Hi All, > >> > >> I would like to get the s2mps11 regulator binding for u-boot to > >> work on Odroid

[U-Boot] [PATCH 1/2] arm64: ls1046a: Add sata distro boot support

2018-01-03 Thread Yuantian Tang
Sata is equipped on ls1046a and can be a boot source. Add sata boot support as a option if available. Signed-off-by: Tang Yuantian --- include/configs/ls1046a_common.h | 13 + include/configs/ls1046aqds.h | 10 -- include/configs/ls1046ardb.h |

[U-Boot] [PATCH 2/2] arm64: ls1012a: Add sata distro boot support

2018-01-03 Thread Yuantian Tang
Sata is equipped on ls1012a and can be a boot source. Add sata boot support as a option if available. Signed-off-by: Tang Yuantian --- include/configs/ls1012a_common.h | 11 +++ include/configs/ls1012aqds.h | 10 -- include/configs/ls1012ardb.h |

[U-Boot] [PATCH] cmd: pmic: update help description

2018-01-03 Thread Klaus Goger
Change help description to match the style of the other U-Boot commands and get rid of the leading whitespace. Signed-off-by: Klaus Goger --- cmd/pmic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/pmic.c b/cmd/pmic.c index

<    1   2