[U-Boot] [PATCH v3 1/2] sunxi: Enable THUMB build for the U-Boot binary

2017-10-20 Thread Maxime Ripard
We start to get to the limit of our main U-Boot binary size (with some boards even crossing it). Enable its build using thumb2 to get some extra room. Suggested-by: Siarhei Siamashka Signed-off-by: Maxime Ripard ---

[U-Boot] [PATCH v3 2/2] sunxi: binman: Add U-Boot binary size check

2017-10-20 Thread Maxime Ripard
The U-Boot binary may trip over its actual allocated size in the storage. In such a case, the environment will not be readable anymore (because corrupted when the new image was flashed), and any attempt at using saveenv to reconstruct the environment will result in a corrupted U-Boot binary.

Re: [U-Boot] [RFC] mmc: fsl_esdhc: Do not set high speed mode on MX25 and MX51

2017-10-20 Thread Benoît Thébaudeau
Hi Fabio, On 19/10/2017 at 13:57, Fabio Estevam wrote: > > I would be interested to see if you can get an SD card high speed to > work with mainline U-Boot on your board. > > On my tests I need to force it 25MHz operation to be able to use the SD card. With mainline U-Boot on my board,

[U-Boot] [PATCH RESEND] imx:display5: Add support for LWN's DISPLAY5 board (for v2017.11-rc2+)

2017-10-20 Thread Lukasz Majewski
This commit provides support for LWN's IMX6Q based DISPLAY5 board. Signed-off-by: Lukasz Majewski --- arch/arm/dts/imx6q-display5.dts | 18 ++ arch/arm/mach-imx/mx6/Kconfig | 7 + board/liebherr/display5/Kconfig | 18 ++ board/liebherr/display5/MAINTAINERS |

Re: [U-Boot] [PATCH v2] imx: Fix regression with CONFIG_DM_MMC=y

2017-10-20 Thread Adam Ford
On Fri, Oct 20, 2017 at 6:51 AM, Jaehoon Chung wrote: > On 10/20/2017 08:41 PM, Fabio Estevam wrote: >> When CONFIG_DM_MMC=y, CONFIG_BLK should be selected, otherwise the >> SD/eMMC card cannot be used. >> >> Also, select CONFIG_DM_USB=y when CONFIG_USB=y to avoid build

[U-Boot] [PATCH v3 0/2] sunxi: Fix boot of Cubietruk and al.

2017-10-20 Thread Maxime Ripard
Hi Most featureful boards, such as the Cubietruck, have been broken since the release 2017.09 (the two variants of the Olinuxino-Lime2 and the cubietruck at least, possibly more since then). This is due to a size increase of the binary that will trip us across the size we've been using in our

Re: [U-Boot] [PATCH 3/3] efi_loader: Do not enable it by default for sunxi

2017-10-20 Thread Peter Robinson
On Fri, Oct 20, 2017 at 8:20 AM, Maxime Ripard wrote: > On Thu, Oct 19, 2017 at 05:40:20PM -0400, Rob Clark wrote: >> On Thu, Oct 19, 2017 at 7:43 AM, Maxime Ripard >> wrote: >> > On Thu, Oct 19, 2017 at 10:12:36AM +0100, Peter

Re: [U-Boot] [PATCH 3/3] efi_loader: Do not enable it by default for sunxi

2017-10-20 Thread Maxime Ripard
On Fri, Oct 20, 2017 at 01:27:36PM +0100, Peter Robinson wrote: > On Fri, Oct 20, 2017 at 8:20 AM, Maxime Ripard > wrote: > > On Thu, Oct 19, 2017 at 05:40:20PM -0400, Rob Clark wrote: > >> On Thu, Oct 19, 2017 at 7:43 AM, Maxime Ripard > >>

Re: [U-Boot] [PATCH 3/3] efi_loader: Do not enable it by default for sunxi

2017-10-20 Thread Tom Rini
On Fri, Oct 20, 2017 at 02:36:27PM +0200, Maxime Ripard wrote: > On Fri, Oct 20, 2017 at 01:27:36PM +0100, Peter Robinson wrote: > > On Fri, Oct 20, 2017 at 8:20 AM, Maxime Ripard > > wrote: > > > On Thu, Oct 19, 2017 at 05:40:20PM -0400, Rob Clark wrote: > > >>

Re: [U-Boot] [PATCH 3/3] efi_loader: Do not enable it by default for sunxi

2017-10-20 Thread Peter Robinson
On Fri, Oct 20, 2017 at 1:36 PM, Maxime Ripard wrote: > On Fri, Oct 20, 2017 at 01:27:36PM +0100, Peter Robinson wrote: >> On Fri, Oct 20, 2017 at 8:20 AM, Maxime Ripard >> wrote: >> > On Thu, Oct 19, 2017 at 05:40:20PM -0400,

[U-Boot] [PATCH] omap2: nand: Make NAND_OMAP_GPMC_PREFETCH default

2017-10-20 Thread Tom Rini
This option provides better performance and should really always be enabled. Make this be default y. Signed-off-by: Tom Rini --- drivers/mtd/nand/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig index

Re: [U-Boot] Convert CONFIG_SMC911X et al to Kconfig

2017-10-20 Thread Tom Rini
On Mon, Oct 16, 2017 at 03:50:47PM -0500, Adam Ford wrote: > This converts the following to Kconfig: >CONFIG_SMC911X >CONFIG_SMC911X_BASE >CONFIG_SMC911X_32_BIT > > There are a variety of boards that need some cleanup in their > respective include/configs file, but here is a

Re: [U-Boot] [PATCH 0/3] sunxi: Fix boot of Cubietruk and al.

2017-10-20 Thread Dennis Gilmore
El jue, 19-10-2017 a las 15:24 +0200, Maxime Ripard escribió: > On Thu, Oct 19, 2017 at 02:03:55PM +0100, Andre Przywara wrote: > > Hi, > > > > On 19/10/17 09:26, Maxime Ripard wrote: > > > Hi, > > > > > > Most featureful boards, such as the Cubietruck, have been broken > > > since > > > the

Re: [U-Boot] [U-Boot, v5] Convert CONFIG_NAND_OMAP_GPMC et al to Kconfig

2017-10-20 Thread Tom Rini
On Mon, Oct 16, 2017 at 02:08:26PM -0500, Adam Ford wrote: > This converts the following to Kconfig: >CONFIG_NAND_OMAP_GPMC >CONFIG_NAND_OMAP_GPMC_PREFETCH >CONFIG_NAND_OMAP_ELM >CONFIG_SPL_NAND_AM33XX_BCH >CONFIG_SPL_NAND_SIMPLE (ARCH_OMAP2PLUS only) > > Signed-off-by: Adam

Re: [U-Boot] [PATCH 0/3] sunxi: Fix boot of Cubietruk and al.

2017-10-20 Thread Dennis Gilmore
El jue, 19-10-2017 a las 16:58 +0200, Maxime Ripard escribió: > On Thu, Oct 19, 2017 at 03:42:11PM +0100, Andre Przywara wrote: > > Hi, > > > > On 19/10/17 14:24, Maxime Ripard wrote: > > > On Thu, Oct 19, 2017 at 02:03:55PM +0100, Andre Przywara wrote: > > > > Hi, > > > > > > > > On 19/10/17

Re: [U-Boot] Rockchip GRF/PMUGRF/CRU reg access in U-Boot

2017-10-20 Thread Dr. Philipp Tomsich
Kever, > On 20 Oct 2017, at 03:59, Kever Yang wrote: > > Hi Simon and Philipp. > > I would like to include Heiko who is maintainer of upstream kernel > Rockchip SoC for this topic. > > For the driver related to grf, which including pinctrl, usb phy, gmac and >

Re: [U-Boot] [PATCH v3 1/5] arm64: layerscape: Move CONFIG_HAS_FSL_XHCI_USB to Kconfig

2017-10-20 Thread Ran Wang
Hi Bin > -Original Message- > From: Bin Meng [mailto:bmeng...@gmail.com] > Sent: Thursday, October 12, 2017 2:01 PM > To: Ran Wang > Cc: Albert Aribaud ; Prabhakar Kushwaha > ; Ashish Kumar ;

[U-Boot] [PATCH 3/3] Powerpc: pcie: Make pcie link state judgement more specific

2017-10-20 Thread Bao Xiaowei
For some special reset times for longer pcie devices, the pcie device may on polling compliance state, the RC considers the pcie device is link up, but the pcie device is not link up, only the L0 state is link up state. Signed-off-by: Bao Xiaowei ---

[U-Boot] [PATCH 2/3] Powerpc: pcie: optmize the code of pci init function

2017-10-20 Thread Bao Xiaowei
Adjust the code structure, detail the function module function, remove the redundancy code. Signed-off-by: Bao Xiaowei --- arch/powerpc/include/asm/fsl_pci.h | 1 + drivers/pci/fsl_pci_init.c | 150 - 2 files changed, 83

[U-Boot] [PATCH 1/3] fsl/pci: fix leading whitespace of PCI_LTSSM_L0

2017-10-20 Thread Bao Xiaowei
Fix the whitespace of PCI_LTSSM_L0 in fsl_pci.h Signed-off-by: Bao Xiaowei --- arch/powerpc/include/asm/fsl_pci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/include/asm/fsl_pci.h b/arch/powerpc/include/asm/fsl_pci.h index

[U-Boot] [PATCH v4 2/5] usb: host: Move CONFIG_XHCI_FSL to Kconfig

2017-10-20 Thread Ran Wang
use Kconfig to select xhci accordingly. Signed-off-by: Ran Wang Reviewed-by: Bin Meng --- drivers/usb/host/Kconfig | 6 ++ include/configs/ls1012afrdm.h | 1 - include/configs/ls1012aqds.h | 1 - include/configs/ls1012ardb.h | 1 -

[U-Boot] [PATCH v4 4/5] ls1088ardb: Enable USB command RDB qspi-boot

2017-10-20 Thread Ran Wang
Signed-off-by: Ashish Kumar Signed-off-by: Amrita Kumari Signed-off-by: Ran Wang Reviewed-by: Bin Meng --- arch/arm/dts/fsl-ls1088a.dtsi | 14 ++ configs/ls1088ardb_qspi_defconfig | 8

[U-Boot] [PATCH v4 3/5] arm: layerscape: Remove CONFIG_USB_MAX_CONTROLLER_COUNT

2017-10-20 Thread Ran Wang
Because COMFIG_DM_USB has been enabled and will not use it anymore. Signed-off-by: Ran Wang Reviewed-by: Bin Meng --- include/configs/ls1012afrdm.h | 5 - include/configs/ls1012aqds.h | 3 --- include/configs/ls1012ardb.h | 4

[U-Boot] [PATCH v4 5/5] ls1088aqds: Enable USB command on QDS for qspi-boot

2017-10-20 Thread Ran Wang
Signed-off-by: Amrita Kumari Signed-off-by: Ashish Kumar Signed-off-by: Ran Wang Reviewed-by: Bin Meng --- configs/ls1088aqds_qspi_defconfig | 8 1 file changed, 8 insertions(+) diff --git

[U-Boot] [PATCH v2] mtd: nand: fsl-ifc: fix support of multiple NAND devices

2017-10-20 Thread Kurt Kanzenbach
Currently the chipselect used to identify the corresponding NAND chip is stored at the controller and only set during fsl_ifc_chip_init(). This way, only the last NAND chip is working, as the previous value of cs_nand gets overwritten. In order to solve this issue the chipselect is computed on

Re: [U-Boot] [PATCH] mtd: nand: fsl-ifc: fix support of multiple NAND devices

2017-10-20 Thread Kurt Kanzenbach
On Thu, Oct 19, 2017 at 09:30:09PM -0500, Scott Wood wrote: > On Tue, Oct 17, 2017 at 10:00:45AM +0200, Kurt Kanzenbach wrote: > > Currently the chipselect used to identify the corresponding NAND chip is > > stored > > at the controller and only set during fsl_ifc_chip_init(). This way, only > >

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

2017-10-20 Thread Jaehoon Chung
Dear JJ On 09/21/2017 11:29 PM, Jean-Jacques Hiblot wrote: > This series brings support for HS200 and UHS modes to the mmc core. > It has been tested with the hsmmc driver on several platforms (DRA7, > AM57x, AM437x, beaglebone black, Atmel SAMA5D3 xplained). Some modifications > are required in

[U-Boot] [PATCH v4 1/5] arm64: layerscape: Move CONFIG_HAS_FSL_XHCI_USB to Kconfig

2017-10-20 Thread Ran Wang
Use Kconfig to select QE-HDLC and USB pin-mux. Signed-off-by: Ran Wang Reviewed-by: Bin Meng --- arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 7 +++ include/configs/ls1012afrdm.h | 4 include/configs/ls1012aqds.h | 4

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

2017-10-20 Thread Jaehoon Chung
On 10/14/2017 11:51 PM, Marek Vasut wrote: > On 10/02/2017 11:15 AM, Jean-Jacques Hiblot wrote: >> >> >> On 22/09/2017 16:42, Jaehoon Chung wrote: >>> Dear JJ, >>> >>> On 09/21/2017 11:29 PM, Jean-Jacques Hiblot wrote: This series brings support for HS200 and UHS modes to the mmc core.

[U-Boot] [PATCH v2] imx: Fix regression with CONFIG_DM_MMC=y

2017-10-20 Thread Fabio Estevam
When CONFIG_DM_MMC=y, CONFIG_BLK should be selected, otherwise the SD/eMMC card cannot be used. Also, select CONFIG_DM_USB=y when CONFIG_USB=y to avoid build failure. Tested on mx6slevk, mx7dsabresd and mx6ullevk. Signed-off-by: Fabio Estevam --- Changes since v1: -

Re: [U-Boot] fsl_esdhc driver is broken with DM

2017-10-20 Thread Fabio Estevam
On Fri, Oct 20, 2017 at 12:18 AM, Adam Ford wrote: > Yes it did. Thank you > > I'll submit a patch. Should I indicate it 'fixes' that commit I > referenced, or is there some other commit that I should reference? I have just sent a patch that fixes the issue for all imx

Re: [U-Boot] [PATCH v2] drivers: mmc: Avoid memory leak in case of failure

2017-10-20 Thread Jaehoon Chung
On 10/05/2017 03:18 PM, suni...@techveda.org wrote: > From: Suniel Mahesh > > priv pointer should be freed before returning with an error value > from exynos_dwmci_get_config(). > > Signed-off-by: Suniel Mahesh > Signed-off-by: Raghu Bharadwaj

Re: [U-Boot] [PATCH v2] drivers: mmc: Change buffer type in ALLOC_CACHE_ALIGN_BUFFER macro

2017-10-20 Thread Jaehoon Chung
On 10/05/2017 03:02 PM, suni...@techveda.org wrote: > From: Suniel Mahesh > > __be32_to_cpu() accepts argument of type __be32. This patch changes > type of the buffer in ALLOC_CACHE_ALIGN_BUFFER macro to __be32, which > is then passed to __be32_to_cpu(). > This prevents

Re: [U-Boot] [PATCH v2] imx: Fix regression with CONFIG_DM_MMC=y

2017-10-20 Thread Jaehoon Chung
On 10/20/2017 08:41 PM, Fabio Estevam wrote: > When CONFIG_DM_MMC=y, CONFIG_BLK should be selected, otherwise the > SD/eMMC card cannot be used. > > Also, select CONFIG_DM_USB=y when CONFIG_USB=y to avoid build failure. > > Tested on mx6slevk, mx7dsabresd and mx6ullevk. > > Signed-off-by: Fabio

Re: [U-Boot] [PATCH 3/3] efi_loader: Do not enable it by default for sunxi

2017-10-20 Thread Maxime Ripard
On Thu, Oct 19, 2017 at 05:40:20PM -0400, Rob Clark wrote: > On Thu, Oct 19, 2017 at 7:43 AM, Maxime Ripard > wrote: > > On Thu, Oct 19, 2017 at 10:12:36AM +0100, Peter Robinson wrote: > >> On Thu, Oct 19, 2017 at 10:06 AM, Peter Robinson

Re: [U-Boot] [PATCH 3/3] Powerpc: pcie: Make pcie link state judgement more specific

2017-10-20 Thread Joakim Tjernlund
On Fri, 2017-10-20 at 18:16 +0800, Bao Xiaowei wrote: > CAUTION: This email originated from outside of the organization. Do not click > links or open attachments unless you recognize the sender and know the > content is safe. > > > For some special reset times for longer pcie devices, the pcie

Re: [U-Boot] [PATCH v2] imx: Fix regression with CONFIG_DM_MMC=y

2017-10-20 Thread Sébastien Szymanski
Hello Fabio, On 10/20/2017 01:41 PM, Fabio Estevam wrote: > When CONFIG_DM_MMC=y, CONFIG_BLK should be selected, otherwise the > SD/eMMC card cannot be used. > > Also, select CONFIG_DM_USB=y when CONFIG_USB=y to avoid build failure. > > Tested on mx6slevk, mx7dsabresd and mx6ullevk. > >

Re: [U-Boot] [PATCH v2] power: extend prefix match to regulator-name property

2017-10-20 Thread Jaehoon Chung
On 10/18/2017 06:39 PM, Felix Brack wrote: > This patch extends pmic_bind_children prefix matching. In addition to > the node name the property regulator-name is used while trying to match > prefixes. This allows assigning different drivers to regulator nodes > named regulator@1 and regulator@10

Re: [U-Boot] [PATCH 2/5] mmc: arm_pl180_mmci: adapt driver to DM usage

2017-10-20 Thread Jaehoon Chung
On 10/19/2017 11:45 PM, patrice.chot...@st.com wrote: > From: Patrice Chotard > > Convert this driver to driver model. > This driver is also used by VEXPRESS platforms which doesn't > use driver model. > > Tested on STM32F746 and STM32F769 platforms. > > Signed-off-by:

Re: [U-Boot] [PATCH 3/5] mmc: arm_pl180_mmci: add bus_width DT property support

2017-10-20 Thread Jaehoon Chung
On 10/19/2017 11:46 PM, patrice.chot...@st.com wrote: > From: Patrice Chotard > > Allow to get "bus-width" property from device tree > > Signed-off-by: Patrice Chotard > --- > drivers/mmc/arm_pl180_mmci.c | 17 + > 1 file

[U-Boot] [PATCH v3] imx: Fix regression with CONFIG_DM_MMC=y

2017-10-20 Thread Fabio Estevam
When CONFIG_DM_MMC=y, CONFIG_BLK should be selected, otherwise the SD/eMMC card cannot be used. Also, select CONFIG_DM_USB=y when CONFIG_USB=y to avoid build failure. Tested on mx6slevk, mx7dsabresd and mx6ullevk. Signed-off-by: Fabio Estevam Reviewed-by: Jaehoon Chung

Re: [U-Boot] [PATCH v3 18/20] arm: socfpga: Enable function visible to other file

2017-10-20 Thread Dinh Nguyen
On 10/13/2017 03:08 AM, tien.fong.c...@intel.com wrote: > From: Tien Fong Chee > > Enable function visible to other file, so it can be used by other > functions from other file. Huh? What function? What other file? Why? Please bear in mind for future patches, when

Re: [U-Boot] [PATCH v3 14/20] arm: socfpga: Improve comments for Intel SoCFPGA program header

2017-10-20 Thread Dinh Nguyen
On 10/13/2017 03:08 AM, tien.fong.c...@intel.com wrote: > From: Tien Fong Chee > > Adding some details about size in bytes to each section. > > Signed-off-by: Tien Fong Chee > --- > arch/arm/mach-socfpga/include/mach/boot0.h | 4 ++-- > 1

Re: [U-Boot] [PATCH v3 17/20] arm: socfpga: Adding SoCFPGA info for both SPL and U-boot

2017-10-20 Thread Dinh Nguyen
On 10/13/2017 03:08 AM, tien.fong.c...@intel.com wrote: > From: Tien Fong Chee > > SoC FPGA info is required in both SPL and U-boot. s/SoC FPGA/SocFPGA to be consistent. s/U-boot/U-Boot > > Signed-off-by: Tien Fong Chee > --- >

Re: [U-Boot] [PATCH v3 15/20] arm: socfpga: Enhance Intel SoCFPGA program header to support Arria 10

2017-10-20 Thread Dinh Nguyen
On 10/13/2017 03:08 AM, tien.fong.c...@intel.com wrote: > From: Tien Fong Chee > > Enhance preloader header with both additional program length and program > entry offset attributes, which offset is relative to the start of program > header. > > Signed-off-by: Tien

Re: [U-Boot] [PATCH v3 16/20] arm: socfpga: Adding clock frequency info for U-boot

2017-10-20 Thread Dinh Nguyen
On 10/13/2017 03:08 AM, tien.fong.c...@intel.com wrote: > From: Tien Fong Chee > > Clock frequency info is required in U-boot. We know this patch is for U-Boot, don't need to state it in the commit message. Also, it's "U-Boot", not "U-boot". > > Signed-off-by: Tien

Re: [U-Boot] [PATCH v3 20/20] arm: socfpga: Enable SPL booting U-boot

2017-10-20 Thread Dinh Nguyen
On 10/13/2017 03:08 AM, tien.fong.c...@intel.com wrote: > From: Tien Fong Chee > > Enable SPL successfully boot to U-boot. s/U-boot/U-Boot > > Signed-off-by: Tien Fong Chee > --- > configs/socfpga_arria10_defconfig | 57 >

Re: [U-Boot] [PATCH v3 19/20] arm: socfpga: Enable DDR working

2017-10-20 Thread Dinh Nguyen
Please update your commit header. On 10/13/2017 03:08 AM, tien.fong.c...@intel.com wrote: > From: Tien Fong Chee > > SPL configures DDR by programming peripheral raw binary file > and calibrating DDR. > > Signed-off-by: Tien Fong Chee > ---

[U-Boot] Build failure in u-boot-mmc/master: undefined reference to error

2017-10-20 Thread Stephen Warren
With the latest content of u-boot-mmc/master, 41dc35a149b3 "drivers: mmc: Avoid memory leak in case of failure", all Tegra boards (perhaps others too; my system only tests Tegra) fail to build with the following error: drivers/built-in.o: In function `mmc_select_mode_and_width':

Re: [U-Boot] [PATCH 3/3] efi_loader: Do not enable it by default for sunxi

2017-10-20 Thread Peter Robinson
On Fri, Oct 20, 2017 at 5:39 PM, Maxime Ripard wrote: > On Fri, Oct 20, 2017 at 08:54:43AM -0400, Tom Rini wrote: >> > > >> > If it's a false one, then I guess Red Hat doesn't have any kind of >> > > >> > custom defconfigs for Fedora or RHEL for the kernel? >> >

Re: [U-Boot] [PATCH 3/3] efi_loader: Do not enable it by default for sunxi

2017-10-20 Thread Tom Rini
On Fri, Oct 20, 2017 at 06:39:18PM +0200, Maxime Ripard wrote: > On Fri, Oct 20, 2017 at 08:54:43AM -0400, Tom Rini wrote: > > > > >> > If it's a false one, then I guess Red Hat doesn't have any kind of > > > > >> > custom defconfigs for Fedora or RHEL for the kernel? > > > > >> > > > > >> kernel

Re: [U-Boot] [RFC] mmc: fsl_esdhc: Do not set high speed mode on MX25 and MX51

2017-10-20 Thread Fabio Estevam
Hi Benoît, On Fri, Oct 20, 2017 at 10:40 AM, Benoît Thébaudeau wrote: > With mainline U-Boot on my board, normal-speed SD cards work fine, but not HS > ones. Both types of cards work fine at 48 MHz with my custom and older U-Boot. Ok, great! What is the version of your old

Re: [U-Boot] [PATCH 3/3] efi_loader: Do not enable it by default for sunxi

2017-10-20 Thread Maxime Ripard
On Fri, Oct 20, 2017 at 08:54:43AM -0400, Tom Rini wrote: > > > >> > If it's a false one, then I guess Red Hat doesn't have any kind of > > > >> > custom defconfigs for Fedora or RHEL for the kernel? > > > >> > > > >> kernel is part of the distro, "firmware" (ie. u-boot or whatever > > > >>