[U-Boot] [PATCH] env: sf: fix return value of env_sf_load

2018-01-29 Thread Simon Goldschmidt
With the recent changes to support multiple environments, I see a message "Failed (1)" when loading environment from sf. env_sf_load() returns the return value of env_import(). This must be 'inverted' to return the correct meaning. Signed-off-by: Simon Goldschmidt --- env/sf.c | 9 - 1

Re: [U-Boot] [PATCH 3/4] Kconfig: gadget: Move CONFIG_USB_FUNCTION_MASS_STORAGE to Kconfig

2018-01-29 Thread Maxime Ripard
Hi, On Mon, Jan 29, 2018 at 07:25:54PM +0100, Lukasz Majewski wrote: > This commit moves USB_FUNCTION_MASS_STORAGE config to Kconfig. > > Signed-off-by: Lukasz Majewski > --- > > configs/Bananapi_m2m_defconfig | 1 + > configs/CHIP_pro_defconfig | 1 + > con

Re: [U-Boot] [PATCH 2/4] Kconfig: gadget: Move CONFIG_USB_FUNCTION_THOR to Kconfig

2018-01-29 Thread Michal Simek
On 29.1.2018 19:30, Lukasz Majewski wrote: > This commit moves USB_FUNCTION_THOR config to Kconfig. > > Signed-off-by: Lukasz Majewski > --- > > configs/odroid-xu3_defconfig | 1 + > configs/odroid_defconfig | 1 + > configs/origen_defconfig

Re: [U-Boot] [PATCH] x86: quark: Fix unused warnings

2018-01-29 Thread Bin Meng
On Tue, Jan 30, 2018 at 2:34 PM, Bin Meng wrote: > On Sun, Jan 28, 2018 at 4:13 AM, Tom Rini wrote: >> The variable t_rfc is never used, so drop it. The variables ddr_wctl >> and ddr_wcmd are only used in certain manual instances, so guard their >> declaration by the same check as their use. >>

Re: [U-Boot] [PATCH 1/1] cmd/bdinfo: print relocation info on X86

2018-01-29 Thread Bin Meng
On Tue, Jan 30, 2018 at 2:34 PM, Bin Meng wrote: > On Thu, Jan 25, 2018 at 2:52 AM, Heinrich Schuchardt > wrote: >> For debugging U-Boot in qemu-x86 the relocation address is needed. >> >> Signed-off-by: Heinrich Schuchardt >> --- >> Hello Bin, hello Simon, >> >> could this be picked up via the

[U-Boot] [PATCH 1/1] efi_loader: remove deprecated ConsoleControlProtocol

2018-01-29 Thread Heinrich Schuchardt
The console control protocol is not defined in the UEFI standard. It exists in EDK2's EdkCompatiblityPkg package. But this package is deprecated according to https://github.com/tianocore/tianocore.github.io/wiki/Differences-between-EDK-and-EDK-II Signed-off-by: Heinrich Schuchardt --- include/e

[U-Boot] [PATCH] net/phy/cortina: Add No firmware upload option

2018-01-29 Thread Priyanka Jain
Current Cortina phy driver assumes that firmware upload is required during initialization and is dependent on presence of corresponding macros like CONFIG_CORTINA_FW_ADDR for compilation. But Cortina phy has provision to store phy firmware in attached dedicated EEPROM. And boards designed with suc

Re: [U-Boot] [PATCH] x86: quark: Fix unused warnings

2018-01-29 Thread Bin Meng
On Sun, Jan 28, 2018 at 4:13 AM, Tom Rini wrote: > The variable t_rfc is never used, so drop it. The variables ddr_wctl > and ddr_wcmd are only used in certain manual instances, so guard their > declaration by the same check as their use. > > Cc: Bin Meng > Signed-off-by: Tom Rini > --- > arch

Re: [U-Boot] [PATCH 1/1] cmd/bdinfo: print relocation info on X86

2018-01-29 Thread Bin Meng
On Thu, Jan 25, 2018 at 2:52 AM, Heinrich Schuchardt wrote: > For debugging U-Boot in qemu-x86 the relocation address is needed. > > Signed-off-by: Heinrich Schuchardt > --- > Hello Bin, hello Simon, > > could this be picked up via the X86 tree? > > Best regards > > Heinrich > --- > cmd/bdinfo.c

Re: [U-Boot] [PATCH v3 2/6] usb: xhci: return ERR_PTR(-ETIMEDOUT) at the end of xhci_wait_for_event()

2018-01-29 Thread Bin Meng
Hi Masahiro, On Sun, Jan 28, 2018 at 6:18 PM, Masahiro Yamada wrote: > Bin, Marek, > > Would you take a look at xHCI code? > Sorry I missed this before. > Lots of xHCI code invokes BUG_ON()/BUG() > when the hardware access fails, > then halts the system completely. > This is not a software bug.

[U-Boot] [PATCH] net/phy/cortina.c: Update get_phy_id implementation

2018-01-29 Thread Priyanka Jain
Update get_phy_id() implementation in cortina.c to check for Cortina_phy by comparing device phy_id with cortina phy_id instead of relying on presence of CORTINA macros. This will allow get_phy_id to work with non-cortina phy devices which might have same phy address as Cortina device but on diffe

Re: [U-Boot] [PATCH v2] samsung: board: init the s2mps11 pmic during booting time

2018-01-29 Thread Jaehoon Chung
On 01/29/2018 06:12 PM, Lukasz Majewski wrote: > Hi Jaehoon, > >> Exynos5422 board has s2mps11 pmic. >> If CONFIG_PMIC_S2MPS11 is enabled, it can initialize PMIC and >> Regulators during booting time. >> >> Signed-off-by: Jaehoon Chung >> Tested-by: Anand Moon >> --- >> Changelog on V2: >> - Fix

Re: [U-Boot] [PATCH v2 00/24] omap_hsmmc: Add support for HS200 and UHS modes

2018-01-29 Thread Jaehoon Chung
Hi JJ, On 01/25/2018 07:51 PM, Jean-Jacques Hiblot wrote: > > This series adds the missing bits to enable the UHS and HS200 modes > for the TI platforms. > > Enabling support for high speed modes on omap5 requires implementing: > * io signal voltage selection > * tuning support > * pin config

[U-Boot] [PATCH] mmc: synchronize the sequence with enum bus_mode in mmc.h

2018-01-29 Thread Jaehoon Chung
If some configs are disabled, number of freqs array will not assigned to correct value with bus_mode. Synchornize the ordering with enum bus_mode in mmc.h. Signed-off-by: Jaehoon Chung --- drivers/mmc/mmc.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/m

Re: [U-Boot] [PATCH 1/4] Kconfig: usb: Sort USB_FUNCTION_* entries

2018-01-29 Thread Masahiro Yamada
2018-01-30 3:21 GMT+09:00 Lukasz Majewski : > Lets provide alphabetical order for USB_FUNCTION_* entries of > USB_GADGET_DOWNLOAD > > Signed-off-by: Lukasz Majewski > --- > > drivers/usb/gadget/Kconfig | 14 +++--- > 1 file changed, 7 insertions(+), 7 deletions(-) Nit: I want to see th

Re: [U-Boot] [PATCH] mx6sabresd: Add fastboot support

2018-01-29 Thread Shawn Guo
On Mon, Jan 29, 2018 at 04:38:27PM +0100, Michael Nazzareno Trimarchi wrote: > Hi > > On Mon, Jan 29, 2018 at 4:23 PM, Shawn Guo wrote: > > On Mon, Jan 29, 2018 at 11:11:57AM -0200, Fabio Estevam wrote: > >> From: Fabio Estevam > >> > >> fastboot tool is a convenient way to flash the eMMC, so >

[U-Boot] [ANN] U-Boot v2018.03-rc1 released

2018-01-29 Thread Tom Rini
Hey all, So it's release day and I've put up v2018.03-rc1. The merge window is now closed and I've updated git and the tarballs are also up now. I think my patch queue is in OK shape currently. I need to grab test and possibly fix-up a bunch of Kconfig changes. I also expect a re-worked DM PR

[U-Boot] Subject: [PATCH 2/3] TCP and wget implementation. Patch V5, 2 of 3.

2018-01-29 Thread Duncan Hare
This is the TCP and Kconfig files for introducing TCP and wget into u-boot. All the code is new, and not copied from any source. Makefile in the net directory is modified by hand. It appears not to be generated by Kconfig. Signed-off-by: Duncan Hare --- net/Makefile | 3 +- net/tcp.c

Re: [U-Boot] [PATCH] serial: Make full device search optional

2018-01-29 Thread Derald D. Woods
On Mon, Jan 29, 2018 at 07:46:09AM -0600, Derald Woods wrote: > On Jan 29, 2018 6:57 AM, "Alexander Graf" wrote: > > Commit 608b0c4ad4e5ec0c ("serial: Use next serial device if probing fails") > added code to search for more serial devices if the default one was not > probed correctly. > > Unfor

Re: [U-Boot] [U-Boot, v3, 01/15] serial: Use next serial device if probing fails

2018-01-29 Thread Alexander Graf
On 29.01.18 04:27, Derald D. Woods wrote: > On Sun, Jan 28, 2018 at 01:54:50PM -0500, Tom Rini wrote: >> On Thu, Jan 25, 2018 at 12:05:42PM +0100, Alexander Graf wrote: >> >>> Currently our serial device search chokes on the fact that the serial >>> probe function could fail. If it does, instead

Re: [U-Boot] [PATCH v2] arm64: ls1012ardb: Add distro secure boot support

2018-01-29 Thread York Sun
On 01/15/2018 09:34 AM, Sumit Garg wrote: >> From: York Sun >> Sent: Monday, January 15, 2018 10:59 PM >> >> On 01/08/2018 09:59 PM, Sumit Garg wrote: >>> From: Vinitha Pillai-B57223 >>> >>> Enable validation of boot.scr script prior to its execution dependent >>> on "secureboot" flag in environme

Re: [U-Boot] [PATCH] armv8: ls1088aqds: Add IFC-NOR as boot source for LS1088

2018-01-29 Thread York Sun
On 01/01/2018 09:24 PM, Ashish Kumar wrote: > IFC-NOR and QSPI-NOR pins are muxed on SoC,so they > cannot be accessed simultaneously, but > IFC-NOR can be accessed along with SD-BOOT. > > ls1088aqds_sdcard_ifc_defconfig: is defconfig for > SD as boot source and IFC-NOR to be used as flash, > this

Re: [U-Boot] [PATCH V2 2/7] mmc: uniphier-sd: Properly handle pin voltage configuration

2018-01-29 Thread Marek Vasut
On 01/25/2018 11:23 AM, Masahiro Yamada wrote: > 2018-01-17 2:16 GMT+09:00 Marek Vasut : >> Factor out the regulator handling into set_ios and add support for >> selecting pin configuration based on the voltage to support UHS modes. >> >> Signed-off-by: Marek Vasut >> Cc: Jaehoon Chung >> Cc: Mas

Re: [U-Boot] kconfig: revert change that was not needed for -Wformat-security

2018-01-29 Thread Tom Rini
On Sun, Jan 28, 2018 at 06:41:23PM +0900, Masahiro Yamada wrote: > Recent GCC versions warn if the format string is not a literal > because the compiler cannot check the argument validity at compile > time. > > Commit 192bc6948b02 ("Fix GCC format-security errors and convert > sprintfs.") blindly

Re: [U-Boot] board: stm32: Fix stm32f746-disco boot

2018-01-29 Thread Tom Rini
On Mon, Jan 29, 2018 at 01:44:20PM +0100, patrice.chot...@st.com wrote: > From: Patrice Chotard > > Since 'commit af2f44267 ("fdc spl: use different BOARD_INIT MACRO for spl and > tpl")' > board stm32f746-disco can't boot. > > The macro CONFIG_IS_ENABLED() can't evaluate the value of > CONFIG_

Re: [U-Boot] clk: clk_stm32: Add .set_rate callback

2018-01-29 Thread Tom Rini
On Mon, Jan 29, 2018 at 06:14:14PM +0100, patrice.chot...@st.com wrote: > From: Patrice Chotard > > Since 'commit f4fcba5c5baa ("clk: implement clk_set_defaults()")' > STM32F4 family board can't boot. > > Above patch calls clk_set_rate() for all nodes with assigned-clock-rates > property. Clock

Re: [U-Boot] [U-Boot, v2, 3/4] fs: btrfs: Fix printf format character warning

2018-01-29 Thread Tom Rini
On Sat, Jan 27, 2018 at 05:23:21PM -0500, Tom Rini wrote: > When printing a size_t value we need to use %zu for portability between > 32bit and 64bit targets. > > Cc: Marek Behún > Signed-off-by: Tom Rini > Reviewed-by: Marek Behun Applied to u-boot/master, thanks! -- Tom signature.asc De

Re: [U-Boot] spl: include timezone in banner

2018-01-29 Thread Tom Rini
On Thu, Jan 04, 2018 at 07:22:11AM +0100, Klaus Goger wrote: > Include the timezone in the SPL banner so the timestamp matches with > that from u-boot proper. > > Signed-off-by: Klaus Goger > Reviewed-by: Philipp Tomsich Now that we have an option to disable this print entirely, applied to u-b

Re: [U-Boot] [U-Boot, 1/4] mvpp2: Fix warning over 32bit vs 64bit targets

2018-01-29 Thread Tom Rini
On Sat, Jan 27, 2018 at 02:48:08PM -0500, Tom Rini wrote: > When we have a driver that is used on both 32bit and 64bit targets and > we are talking about address space we cannot use u64 nor u32 and instead > need to use phys_addr_t. > > Fixes: 377883f16d36 ("net: mvpp2x: fix phy connected to wron

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

2018-01-29 Thread Tom Rini
On Wed, Jan 03, 2018 at 03:43:56PM +0300, Андрей Мозжухин wrote: > 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_b

[U-Boot] [PATCH] part: Allocate only one legacy_mbr buffer

2018-01-29 Thread Alexey Brodkin
Commit ff98cb90514d ("part: extract MBR signature from partitions") blindly switched allocated by ALLOC_CACHE_ALIGN_BUFFER buffer type from "unsigned char" to "legacy_mbr" which caused allocation of size = (typeof(legacy_mbr) * dev_desc->blksize) instead of just space enough for "legacy_mbr" struct

[U-Boot] [PATCH] Kconfig: usb: rockchip: Remove not needed *_defconfig USB/gadget entries

2018-01-29 Thread Lukasz Majewski
After moving some USB gadget configs (USB_FUNCTIONS_*) to Kconfig it turned out that following *_defconfig entries for RockChip are not needed. Signed-off-by: Lukasz Majewski --- configs/chromebit_mickey_defconfig | 5 - configs/chromebook_jerry_defconfig | 5 - configs/chromebook_min

[U-Boot] [PATCH 2/4] Kconfig: gadget: Move CONFIG_USB_FUNCTION_THOR to Kconfig

2018-01-29 Thread Lukasz Majewski
This commit moves USB_FUNCTION_THOR config to Kconfig. Signed-off-by: Lukasz Majewski --- configs/odroid-xu3_defconfig | 1 + configs/odroid_defconfig | 1 + configs/origen_defconfig | 1 + configs/s5p_goni_defconfig

[U-Boot] [PATCH 4/4] usb: ums: Kconfig: Select USB_FUNCTION_MASS_STORAGE when enabling 'ums' command

2018-01-29 Thread Lukasz Majewski
The CONFIG_USB_FUNCTION_MASS_STORAGE must be selected when one enables support for ums command. Signed-off-by: Lukasz Majewski --- cmd/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/Kconfig b/cmd/Kconfig index 676011dcdc4c..051c1b6457a2 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfi

[U-Boot] [PATCH 3/4] Kconfig: gadget: Move CONFIG_USB_FUNCTION_MASS_STORAGE to Kconfig

2018-01-29 Thread Lukasz Majewski
This commit moves USB_FUNCTION_MASS_STORAGE config to Kconfig. Signed-off-by: Lukasz Majewski --- configs/Bananapi_m2m_defconfig | 1 + configs/CHIP_pro_defconfig | 1 + configs/Nintendo_NES_Classic_Edition_defconfig | 1 + configs/Sinlinx_SinA33_defconfig

[U-Boot] [PATCH v5 4/8] drivers/ddr/fsl: Add calculation of register control words

2018-01-29 Thread York Sun
DDR4 RDIMM has some information in SPD to be used to calculate the control words for register chip. The rest can be found from JEDEC spec DDR4RCD02. Signed-off-by: York Sun --- Changes in v5: Fix compiling warning for unused variable. Changes in v4: New patch to add RCW calculation. Changes i

[U-Boot] [PATCH 1/4] Kconfig: usb: Sort USB_FUNCTION_* entries

2018-01-29 Thread Lukasz Majewski
Lets provide alphabetical order for USB_FUNCTION_* entries of USB_GADGET_DOWNLOAD Signed-off-by: Lukasz Majewski --- drivers/usb/gadget/Kconfig | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index c387f5

Re: [U-Boot] [PATCH] TCP and wget implementation. Ptch V5 1 of 3

2018-01-29 Thread Heinrich Schuchardt
On 01/29/2018 06:30 PM, Duncan Hare wrote: >> The patch is trying to put everything into net.c. This is a mess and >> not where we should head to. > > Not at all. I tried that and it was correctly rejected. The TCP > functions are in tcp.c, and the wget functions in wget.c > > There is no socket

Re: [U-Boot] [PATCH] git_meg_1

2018-01-29 Thread Joe Hershberger
Hi Duncan, On Sun, Jan 28, 2018 at 1:28 PM, wrote: > From: Duncan Hare There is no valid subject or message body to this patch. I think you need to go back and learn patman before this is going to go well. Thanks, -Joe > Signed-off-by: Duncan Hare > --- > > include/net.h | 32

Re: [U-Boot] [PATCH 1/4] mvpp2: Fix warning over 32bit vs 64bit targets

2018-01-29 Thread Joe Hershberger
On Sat, Jan 27, 2018 at 1:48 PM, Tom Rini wrote: > When we have a driver that is used on both 32bit and 64bit targets and > we are talking about address space we cannot use u64 nor u32 and instead > need to use phys_addr_t. > > Fixes: 377883f16d36 ("net: mvpp2x: fix phy connected to wrong mdio iss

[U-Boot] [PATCH v4 7/8] armv8: ls1046ardb: Add RDIMM support

2018-01-29 Thread York Sun
This adds 2Rx8 RDIMM on LS1046ARDB board. Tested with RDIMM MTA18ASF2G72PDZ and MTA9ASF1G72PZ. Signed-off-by: York Sun --- Changes in v4: Adjust write leveling start to align with timing_cfg_7[PAR_LAT]. Add single rank RDIMM. Remove RCW override in board file. Modify cpo value slightly to fit b

[U-Boot] [PATCH v4 6/8] drivers/ddr/fsl: Cleanup unused variable

2018-01-29 Thread York Sun
Variable "row_density" is no longer used. Drop it from DIMM structure. Signed-off-by: York Sun --- Changes in v4: New patch to cleanup unused variables. Changes in v3: None Changes in v2: None drivers/ddr/fsl/ddr1_dimm_params.c | 1 - drivers/ddr/fsl/ddr2_dimm_params.c | 1 - drivers/ddr/fsl

[U-Boot] [PATCH v4 8/8] armv8: ls2088ardb: Add 3DS RDIMM support

2018-01-29 Thread York Sun
Tested with MTA72ASS8G72PSZ-2S6G1. This is 3DS RDIMM module with x4 DDR chips. LS2088ARDB needs to be modified to connect all DQS signals. Some of them are grounded by default for x8 chips. Tested with RDIMM MTA18ASF2G72PDZ on main memory controllers. DP-DDR doesn't support RDIMM. Dropped related t

[U-Boot] [PATCH v4 5/8] drivers/ddr/fsl: Modify binding registers to save time on data init

2018-01-29 Thread York Sun
DDR controllers always use binding register to determine the memory space to perform data initialization. In case of controller interleaving, the space is doubled, resulting twice long wait. It wasn't too bad until the memory capacity increases. To reduce the wait time, reduce the binding space to

[U-Boot] [PATCH v4 4/8] drivers/ddr/fsl: Add calculation of register control words

2018-01-29 Thread York Sun
DDR4 RDIMM has some information in SPD to be used to calculate the control words for register chip. The rest can be found from JEDEC spec DDR4RCD02. Signed-off-by: York Sun --- Changes in v4: New patch to add RCW calculation. Changes in v3: None Changes in v2: None drivers/ddr/fsl/ctrl_regs.

[U-Boot] [PATCH v4 3/8] drivers/ddr/fsl: Add 3DS RDIMM support

2018-01-29 Thread York Sun
On top of RDIMM support, add new register calculation to support 3DS RDIMMs. Only symmetrical 3DS is supported at this time. Signed-off-by: York Sun --- Changes in v4: New patch to add 3DS support. Changes in v3: None Changes in v2: None drivers/ddr/fsl/ctrl_regs.c | 43 +

[U-Boot] [PATCH v4 2/8] drivers/ddr/fsl: Fix workaround for A009803

2018-01-29 Thread York Sun
Wrong field was masked in this workaround due to wrong endianness. The impacted SoCs have big-endian. Signed-off-by: York Sun --- Changes in v4: None Changes in v3: None Changes in v2: None drivers/ddr/fsl/fsl_ddr_gen4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drive

[U-Boot] [PATCH v4 1/8] drivers/ddr/fsl: Fix DDR4 RDIMM support

2018-01-29 Thread York Sun
For DDR4, command/address delay in mode registers and parity latency in timing config register are only needed for UDIMMs, but not RDIMMs. Add additional register rcw_3 for DDR4 RDIMM. Fix mirrored bit for dual rank RDIMMs. Set sdram_cfg_3[DIS_MRS_PAR] for RDIMMs. Fix calculation of timing config r

Re: [U-Boot] [PATCH] TCP and wget implementation. Ptch V5 1 of 3

2018-01-29 Thread Duncan Hare
> The patch is trying to put everything into net.c. This is a mess and > not where we should head to. Not at all. I tried that and it was correctly rejected. The TCP functions are in tcp.c, and the wget functions in wget.c There is no socket. There is no socket analogue. There is no widespread c

[U-Boot] [PATCH] clk: clk_stm32: Add .set_rate callback

2018-01-29 Thread patrice.chotard
From: Patrice Chotard Since 'commit f4fcba5c5baa ("clk: implement clk_set_defaults()")' STM32F4 family board can't boot. Above patch calls clk_set_rate() for all nodes with assigned-clock-rates property. Clock driver for STM32F family doesn't implement .set_rate callback which make clk_set_defau

Re: [U-Boot] [PATCH v3 03/30] sunxi: Fix USB PHY index for H3/H5/A64

2018-01-29 Thread Marek Vasut
On 01/29/2018 05:56 PM, Jagan Teki wrote: > On Mon, Jan 29, 2018 at 10:04 PM, Marek Vasut wrote: >> On 01/28/2018 07:40 PM, Marek Vasut wrote: >>> On 01/28/2018 07:29 PM, Jagan Teki wrote: On Sun, Jan 28, 2018 at 11:55 PM, Marek Vasut wrote: > On 01/28/2018 07:20 PM, Jagan Teki wrote: >>

Re: [U-Boot] [PATCH v3 03/30] sunxi: Fix USB PHY index for H3/H5/A64

2018-01-29 Thread Jagan Teki
On Mon, Jan 29, 2018 at 10:04 PM, Marek Vasut wrote: > On 01/28/2018 07:40 PM, Marek Vasut wrote: >> On 01/28/2018 07:29 PM, Jagan Teki wrote: >>> On Sun, Jan 28, 2018 at 11:55 PM, Marek Vasut wrote: On 01/28/2018 07:20 PM, Jagan Teki wrote: > On Sun, Jan 28, 2018 at 10:01 PM, Marek Vasu

Re: [U-Boot] Please pull u-boot-marvell/master

2018-01-29 Thread Tom Rini
On Mon, Jan 29, 2018 at 01:42:11PM +0100, Stefan Roese wrote: > Hi Tom, > > please pull the 2 mrvl_uart patches from Andreas. > > Thanks, > Stefan > > > The following changes since commit bd39d86420434eb8139a111c2582366bc90e65c6: > > Merge tag 'signed-efi-next' of git://github.com/agraf/u-b

Re: [U-Boot] [PATCH] serial: Make full device search optional

2018-01-29 Thread Tom Rini
On Mon, Jan 29, 2018 at 01:57:20PM +0100, Alexander Graf wrote: > Commit 608b0c4ad4e5ec0c ("serial: Use next serial device if probing fails") > added code to search for more serial devices if the default one was not > probed correctly. > > Unfortunately, that breaks omap3_evm. So while investigat

Re: [U-Boot] Please pull u-boot-cfi-flash/master

2018-01-29 Thread Tom Rini
On Mon, Jan 29, 2018 at 01:35:14PM +0100, Stefan Roese wrote: > Hi Tom, > > please pull the CFI cleanup patches from Mario. > > Thanks, > Stefan > > > The following changes since commit bd39d86420434eb8139a111c2582366bc90e65c6: > > Merge tag 'signed-efi-next' of git://github.com/agraf/u-boo

Re: [U-Boot] [PATCH v3 03/30] sunxi: Fix USB PHY index for H3/H5/A64

2018-01-29 Thread Marek Vasut
On 01/28/2018 07:40 PM, Marek Vasut wrote: > On 01/28/2018 07:29 PM, Jagan Teki wrote: >> On Sun, Jan 28, 2018 at 11:55 PM, Marek Vasut wrote: >>> On 01/28/2018 07:20 PM, Jagan Teki wrote: On Sun, Jan 28, 2018 at 10:01 PM, Marek Vasut wrote: > On 01/28/2018 05:19 PM, Jagan Teki wrote: >>

[U-Boot] [PATCH 4/4] mtd: nand: mxs_nand: add minimal ECC support

2018-01-29 Thread Stefan Agner
From: Stefan Agner Add support for minimum ECC strength supported by the NAND chip. This aligns with the behavior when using the fsl,use-minimum-ecc device tree property in Linux. Signed-off-by: Stefan Agner --- drivers/mtd/nand/Kconfig| 8 + drivers/mtd/nand/mxs_nand.c | 71

[U-Boot] [PATCH 2/4] mtd: nand: mxs_nand: allow to enable BBT support

2018-01-29 Thread Stefan Agner
From: Stefan Agner Add config option which allows to enable on flash bad block table support. This has the same effect as when using the device tree property "nand-on-flash-bbt" in Linux. Signed-off-by: Stefan Agner --- drivers/mtd/nand/mxs_nand.c | 4 1 file changed, 4 insertions(+) di

[U-Boot] [PATCH 3/4] mtd: nand: mxs_nand: use structure for BCH geometry

2018-01-29 Thread Stefan Agner
From: Stefan Agner Calculate BCH geometry at start and store the information in a structure. This avoids recalculation on every page access and allows to calculate ECC relevant information in one place. This patch does not change ECC layout or driver behavior in any way. The patch aligns the dri

[U-Boot] [PATCH 1/4] mtd: nand: mxs_nand: use self init

2018-01-29 Thread Stefan Agner
From: Stefan Agner Instead of completing initialization via scan_bbt callback use NAND self init to initialize the GPMI (MXS) NAND controller. Signed-off-by: Stefan Agner --- drivers/mtd/nand/Kconfig| 1 + drivers/mtd/nand/mxs_nand.c | 52 + 2

Re: [U-Boot] [PATCH] mx6sabresd: Add fastboot support

2018-01-29 Thread Michael Nazzareno Trimarchi
Hi On Mon, Jan 29, 2018 at 4:23 PM, Shawn Guo wrote: > On Mon, Jan 29, 2018 at 11:11:57AM -0200, Fabio Estevam wrote: >> From: Fabio Estevam >> >> fastboot tool is a convenient way to flash the eMMC, so >> add support for it. >> >> Examples of usages: >> >> On the mx6sabresd: >> >> => fastboot 0

Re: [U-Boot] [PATCH] mx6sabresd: Add fastboot support

2018-01-29 Thread Shawn Guo
On Mon, Jan 29, 2018 at 11:11:57AM -0200, Fabio Estevam wrote: > From: Fabio Estevam > > fastboot tool is a convenient way to flash the eMMC, so > add support for it. > > Examples of usages: > > On the mx6sabresd: > > => fastboot 0 > > On the Linux PC connected via USB: > > $ sudo fastboot g

[U-Boot] [PATCH v1] EHCI: Fix endian access issue on EHCI intinalization

2018-01-29 Thread yinbo.zhu
From: yinbo.zhu This issue is exposed after commit 9000eddbase0d ("drivers/usb/ehci: Use platform-specific accessors"), the wrong endian way of EHCI controller programing will cause USB function down. Configs Affected: P2041-40-R2.0, P3041-R2.0, P4080-40-R3.0, P5040-21-R2.1, T1024-R1.0, T1040-42

Re: [U-Boot] [PATCH] serial: Make full device search optional

2018-01-29 Thread Derald Woods
On Jan 29, 2018 6:57 AM, "Alexander Graf" wrote: Commit 608b0c4ad4e5ec0c ("serial: Use next serial device if probing fails") added code to search for more serial devices if the default one was not probed correctly. Unfortunately, that breaks omap3_evm. So while investigating why that is the case

Re: [U-Boot] [PATCH v2 04/24] mmc: omap_hsmmc: set MMC mode in the UHSMS bit field

2018-01-29 Thread Jaehoon Chung
Hi, On 2018년 01월 29일 13:33, Jaehoon Chung wrote: > Hi, > > On 01/25/2018 07:51 PM, Jean-Jacques Hiblot wrote: >> From: Kishon Vijay Abraham I >> >> Use the timing parameter set in the MMC core to set the >> mode in UHSMS bit field. This is in preparation for >> adding HS200 support in omap hsmm

[U-Boot] [PATCH] mx6sabresd: Add fastboot support

2018-01-29 Thread Fabio Estevam
From: Fabio Estevam fastboot tool is a convenient way to flash the eMMC, so add support for it. Examples of usages: On the mx6sabresd: => fastboot 0 On the Linux PC connected via USB: $ sudo fastboot getvar bootloader-version -i 0x0525 bootloader-version: U-Boot 2018.01-00550-g7517cfe finish

Re: [U-Boot] [PATCH v3 08/30] sunxi: usb_phy: Clear PHYCTL register before writing

2018-01-29 Thread Maxime Ripard
On Mon, Jan 29, 2018 at 01:44:53PM +0530, Jagan Teki wrote: > On Mon, Jan 29, 2018 at 1:29 PM, Maxime Ripard > wrote: > > Hi, > > > > On Sun, Jan 28, 2018 at 09:49:29PM +0530, Jagan Teki wrote: > >> PHYCTL register offset at 0x10 need to be cleared before it's > >> written. Ported from below Linux

[U-Boot] [PATCH] serial: Make full device search optional

2018-01-29 Thread Alexander Graf
Commit 608b0c4ad4e5ec0c ("serial: Use next serial device if probing fails") added code to search for more serial devices if the default one was not probed correctly. Unfortunately, that breaks omap3_evm. So while investigating why that is the case, let's disable the full search for everyone but bc

[U-Boot] [PATCH] board: stm32: Fix stm32f746-disco boot

2018-01-29 Thread patrice.chotard
From: Patrice Chotard Since 'commit af2f44267 ("fdc spl: use different BOARD_INIT MACRO for spl and tpl")' board stm32f746-disco can't boot. The macro CONFIG_IS_ENABLED() can't evaluate the value of CONFIG_SPL_BOARD_INIT as it was defined in include/configs/stm32f746-disco.h without attributed

[U-Boot] Please pull u-boot-cfi-flash/master

2018-01-29 Thread Stefan Roese
Hi Tom, please pull the CFI cleanup patches from Mario. Thanks, Stefan The following changes since commit bd39d86420434eb8139a111c2582366bc90e65c6: Merge tag 'signed-efi-next' of git://github.com/agraf/u-boot (2018-01-28 18:26:00 -0500) are available in the Git repository at: git://www.

[U-Boot] Please pull u-boot-marvell/master

2018-01-29 Thread Stefan Roese
Hi Tom, please pull the 2 mrvl_uart patches from Andreas. Thanks, Stefan The following changes since commit bd39d86420434eb8139a111c2582366bc90e65c6: Merge tag 'signed-efi-next' of git://github.com/agraf/u-boot (2018-01-28 18:26:00 -0500) are available in the Git repository at: git://ww

Re: [U-Boot] [PATCH] tools/mrvl_uart.sh: Tidy script output

2018-01-29 Thread Stefan Roese
On 20.01.2018 13:18, Andreas Färber wrote: Fix a typo in help output (awailable -> available). Tidy the grammar - not the board connects to a port, we do. While at it, be consistent in upper-casing the comments. Fixes: eee4835d22 ("tools: Add Marvell recovery image download script") Cc: Konstan

Re: [U-Boot] [PATCH] tools/mrvl_uart.sh: Fix minicom baudrate

2018-01-29 Thread Stefan Roese
On 20.01.2018 13:07, Andreas Färber wrote: minicom doesn't inherit the baudrate from stty but uses its own defaults, such as for example 57600, whereas we expect 115200 here. Explicitly tell minicom which baudrate to use. Fixes: eee4835d22 ("tools: Add Marvell recovery image download script") Cc

Re: [U-Boot] [PATCH v3 01/26] cfi_flash: Fix space between function name and parenthesis

2018-01-29 Thread Stefan Roese
On 26.01.2018 14:43, Mario Six wrote: There should not be a space between a function name and a parenthesis ("func (...)"). Fix all instances where this occurs. Signed-off-by: Mario Six --- v2 -> v3: * Added proper commit message v1 -> v2: None Many thanks Mario. Travis build is now clean.

Re: [U-Boot] [PATCH 1/1] arm: socfpga: fix qspi flash compatible (add "spi-flash")

2018-01-29 Thread Simon Goldschmidt
 Pepperl+Fuchs GmbH, Mannheim Geschaeftsfuehrer/Managing Directors: Dr.-Ing. Gunther Kegel (Vors./CEO), Werner Guthier, Mehmet Hatiboglu Vorsitzender des Aufsichtsrats/Chairman of the supervisory board: Claus Michael Registergericht/Register Court: AG Mannheim HRB 4713 On 29.01.2018 13:01, Marek

Re: [U-Boot] [PATCH 1/1] arm: socfpga: fix qspi flash compatible (add "spi-flash")

2018-01-29 Thread Marek Vasut
On 01/29/2018 12:56 PM, Simon Goldschmidt wrote: > On 29.01.2018 11:35, Marek Vasut wrote: >> On 01/29/2018 07:36 AM, Simon Goldschmidt wrote: >>> This patch adds "spi-flash" to the compatible list of the qspi flash >>> chip for all socfpga boards. This is required to make qspi work on >>> these bo

Re: [U-Boot] [PATCH 1/1] arm: socfpga: fix qspi flash compatible (add "spi-flash")

2018-01-29 Thread Simon Goldschmidt
On 29.01.2018 11:35, Marek Vasut wrote: On 01/29/2018 07:36 AM, Simon Goldschmidt wrote: This patch adds "spi-flash" to the compatible list of the qspi flash chip for all socfpga boards. This is required to make qspi work on these boards on top of the recent fixes. Without the "spi-flash" compat

Re: [U-Boot] [PATCH 1/1] arm: socfpga: fix qspi flash compatible (add "spi-flash")

2018-01-29 Thread Marek Vasut
On 01/29/2018 07:36 AM, Simon Goldschmidt wrote: > This patch adds "spi-flash" to the compatible list of the qspi flash > chip for all socfpga boards. This is required to make qspi work on > these boards on top of the recent fixes. Without the "spi-flash" > compatible string for the flash chip, the

Re: [U-Boot] [PATCH] sunxi: support fuse cmd to read/write fuse

2018-01-29 Thread Maxime Ripard
On Sat, Jan 27, 2018 at 05:45:45PM +, André Przywara wrote: > On 27/01/18 15:20, Jun Nie wrote: > > Support fuse cmd to read/write fuse. Power supply for fuse > > should be ready, name is VDD_EFUSE in some schematic. > > Mmh, in general I am not sure it is a good idea to expose this so easily

Re: [U-Boot] [PATCH 0/3] sunxi: sun8i-emac: Update DT bindings

2018-01-29 Thread Andre Przywara
Hi, On 29/01/18 09:58, Maxime Ripard wrote: > On Mon, Jan 29, 2018 at 09:44:44AM +, Andre Przywara wrote: >> Hi, >> >> On 29/01/18 08:51, Maxime Ripard wrote: >>> Hi, >>> >>> On Mon, Jan 29, 2018 at 01:15:19AM +, Andre Przywara wrote: The existing sun8i-emac driver in U-Boot uses some

Re: [U-Boot] [PATCH] sunxi: Pine64: temporarily remove extra Pine64 non-plus DT

2018-01-29 Thread Maxime Ripard
On Sat, Jan 27, 2018 at 12:52:22AM +, Andre Przywara wrote: > With the merge of the new u-boot.itb size check now the build for > pine64_plus_defconfig breaks, as this file gets too large: > = > u-boot.itb exceeds file size limit: > limit: 516096 bytes > actual: 521852 bytes >

Re: [U-Boot] [linux-sunxi] Re: [PATCH 0/3] sunxi: sun8i-emac: Update DT bindings

2018-01-29 Thread Maxime Ripard
On Mon, Jan 29, 2018 at 06:02:45PM +0800, Chen-Yu Tsai wrote: > On Mon, Jan 29, 2018 at 5:58 PM, Maxime Ripard > wrote: > > On Mon, Jan 29, 2018 at 09:44:44AM +, Andre Przywara wrote: > >> Hi, > >> > >> On 29/01/18 08:51, Maxime Ripard wrote: > >> > Hi, > >> > > >> > On Mon, Jan 29, 2018 at 01

Re: [U-Boot] [U-Boot, v3, 01/15] serial: Use next serial device if probing fails

2018-01-29 Thread Alexander Graf
On 29.01.18 04:27, Derald D. Woods wrote: > On Sun, Jan 28, 2018 at 01:54:50PM -0500, Tom Rini wrote: >> On Thu, Jan 25, 2018 at 12:05:42PM +0100, Alexander Graf wrote: >> >>> Currently our serial device search chokes on the fact that the serial >>> probe function could fail. If it does, instead

Re: [U-Boot] [PATCH v2 00/24] omap_hsmmc: Add support for HS200 and UHS modes

2018-01-29 Thread Jean-Jacques Hiblot
On 29/01/2018 05:45, Lokesh Vutla wrote: On Thursday 25 January 2018 04:21 PM, Jean-Jacques Hiblot wrote: This series adds the missing bits to enable the UHS and HS200 modes for the TI platforms. For my understanding, these patches enable HS modes only in U-Boot proper or in SPL also? Enabli

Re: [U-Boot] [linux-sunxi] Re: [PATCH 0/3] sunxi: sun8i-emac: Update DT bindings

2018-01-29 Thread Chen-Yu Tsai
On Mon, Jan 29, 2018 at 5:58 PM, Maxime Ripard wrote: > On Mon, Jan 29, 2018 at 09:44:44AM +, Andre Przywara wrote: >> Hi, >> >> On 29/01/18 08:51, Maxime Ripard wrote: >> > Hi, >> > >> > On Mon, Jan 29, 2018 at 01:15:19AM +, Andre Przywara wrote: >> >> The existing sun8i-emac driver in U-

Re: [U-Boot] [PATCH 0/3] sunxi: sun8i-emac: Update DT bindings

2018-01-29 Thread Maxime Ripard
On Mon, Jan 29, 2018 at 09:44:44AM +, Andre Przywara wrote: > Hi, > > On 29/01/18 08:51, Maxime Ripard wrote: > > Hi, > > > > On Mon, Jan 29, 2018 at 01:15:19AM +, Andre Przywara wrote: > >> The existing sun8i-emac driver in U-Boot uses some preliminary bindings, > >> which matched our ow

Re: [U-Boot] [PATCH 0/3] sunxi: sun8i-emac: Update DT bindings

2018-01-29 Thread Andre Przywara
Hi, On 29/01/18 08:51, Maxime Ripard wrote: > Hi, > > On Mon, Jan 29, 2018 at 01:15:19AM +, Andre Przywara wrote: >> The existing sun8i-emac driver in U-Boot uses some preliminary bindings, >> which matched our own DTs. Now that the Linux kernel got a driver, lets >> update our probe code to

Re: [U-Boot] [PATCH v2] samsung: board: init the s2mps11 pmic during booting time

2018-01-29 Thread Lukasz Majewski
Hi Jaehoon, > Exynos5422 board has s2mps11 pmic. > If CONFIG_PMIC_S2MPS11 is enabled, it can initialize PMIC and > Regulators during booting time. > > Signed-off-by: Jaehoon Chung > Tested-by: Anand Moon > --- > Changelog on V2: > - Fix the #endif location > > board/samsung/common/exynos5-dt.

Re: [U-Boot] [PATCH 0/3] sunxi: sun8i-emac: Update DT bindings

2018-01-29 Thread Maxime Ripard
Hi, On Mon, Jan 29, 2018 at 01:15:19AM +, Andre Przywara wrote: > The existing sun8i-emac driver in U-Boot uses some preliminary bindings, > which matched our own DTs. Now that the Linux kernel got a driver, lets > update our probe code to handle those Linux DTs as well. > The first patch adds

Re: [U-Boot] [PATCH v3 18/30] sunxi: Add uENV partition on gpt partition table

2018-01-29 Thread Jagan Teki
On Mon, Jan 29, 2018 at 1:33 PM, Maxime Ripard wrote: > On Sun, Jan 28, 2018 at 09:49:39PM +0530, Jagan Teki wrote: >> Insert 128KiB uENV partition after loader2 on gpt partition table. >> >> Signed-off-by: Jagan Teki > > What is the point of this partition? Yes for u-boot environment. > > If i

Re: [U-Boot] [PATCH v3 17/30] sunxi: arm64: Increase u-boot size on MMC environment

2018-01-29 Thread Jagan Teki
On Mon, Jan 29, 2018 at 1:32 PM, Maxime Ripard wrote: > On Sun, Jan 28, 2018 at 09:49:38PM +0530, Jagan Teki wrote: >> U-Boot size is crossing MMC environment offset due to adding >> new features on arm64 boards. So update the ENV_OFFSET to >> 0x10 so the u-boot size limit increased to 0xf6000

Re: [U-Boot] [PATCH v3 08/30] sunxi: usb_phy: Clear PHYCTL register before writing

2018-01-29 Thread Jagan Teki
On Mon, Jan 29, 2018 at 1:29 PM, Maxime Ripard wrote: > Hi, > > On Sun, Jan 28, 2018 at 09:49:29PM +0530, Jagan Teki wrote: >> PHYCTL register offset at 0x10 need to be cleared before it's >> written. Ported from below Linux patch. >> d699c1d phy: sun4i-usb: change PHYCTL register clearing code

Re: [U-Boot] [PATCH v3 18/30] sunxi: Add uENV partition on gpt partition table

2018-01-29 Thread Maxime Ripard
On Sun, Jan 28, 2018 at 09:49:39PM +0530, Jagan Teki wrote: > Insert 128KiB uENV partition after loader2 on gpt partition table. > > Signed-off-by: Jagan Teki What is the point of this partition? If it is to store the environment, it was discussed to add it into the esp partition. Maxime --

Re: [U-Boot] [PATCH v3 17/30] sunxi: arm64: Increase u-boot size on MMC environment

2018-01-29 Thread Maxime Ripard
On Sun, Jan 28, 2018 at 09:49:38PM +0530, Jagan Teki wrote: > U-Boot size is crossing MMC environment offset due to adding > new features on arm64 boards. So update the ENV_OFFSET to > 0x10 so the u-boot size limit increased to 0xf6000 > > MMC layout(updated): > === > part: s

Re: [U-Boot] [PATCH v3 08/30] sunxi: usb_phy: Clear PHYCTL register before writing

2018-01-29 Thread Maxime Ripard
Hi, On Sun, Jan 28, 2018 at 09:49:29PM +0530, Jagan Teki wrote: > PHYCTL register offset at 0x10 need to be cleared before it's > written. Ported from below Linux patch. > d699c1d phy: sun4i-usb: change PHYCTL register clearing code > > Signed-off-by: Jagan Teki > Signed-off-by: Jun Nie Thos