Re: [U-Boot] Support of kernels > 16 MiB on Raspberry Pi

2018-02-22 Thread Jaehoon Chung
On 02/23/2018 04:58 AM, Alexander Kurtz wrote: > Hi! > > I am using U-Boot to boot Debian Buster arm64 (standard kernel with a > dracut-based initramfs) via an extlinux.conf on my Raspberry Pi 3. > > Recently, the Debian kernel grew beyond 16 MiB: > > 4.13: /boot/vmlinuz-4.13.0-1-arm64 ==

[U-Boot] [PATCH v2 2/2] rockchip: rk3288: Fix wrong TPL_TEXT_BASE

2018-02-22 Thread Jagan Teki
TPL offset 0xff704004 is unaligned address which is adding nearest 8-bytes for next instruction, So 0xff704004 is adding 0x20 for proper alignment which is causing the next instruction data 0xefff is moved. Hexdump with overlaped bytes: - 000

[U-Boot] [PATCH v2 1/2] rockchip: rk3288: Add TPL_LDSCRIPT

2018-02-22 Thread Jagan Teki
Due to size limitations in SPL by adding falcon mode, rk3288 support TPL. In order to not overlap SPL_TEXT_BASE add TPL_TEXT_BASE with u-boot-tpl.lds that intern call u-boot-spl.lds with proper TEXT_BASE values. Signed-off-by: Jagan Teki Acked-by: Philipp Tomsich

Re: [U-Boot] [PATCH] mmc: uniphier-sd: Fix a compile error relevant to unused-function

2018-02-22 Thread Jaehoon Chung
Hi, On 02/23/2018 04:21 PM, Jaehoon Chung wrote: > During disabled MMC_HS200_SUPPORT, it doesn't use anywhere. This patch is based on u-boot-mmc/next branch. Best Regards, Jaehoon Chung > > Signed-off-by: Jaehoon Chung > --- > drivers/mmc/uniphier-sd-rcar.c | 4

[U-Boot] [PATCH] mmc: uniphier-sd: Fix a compile error relevant to unused-function

2018-02-22 Thread Jaehoon Chung
During disabled MMC_HS200_SUPPORT, it doesn't use anywhere. Signed-off-by: Jaehoon Chung --- drivers/mmc/uniphier-sd-rcar.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/mmc/uniphier-sd-rcar.c b/drivers/mmc/uniphier-sd-rcar.c index

Re: [U-Boot] [PATCH 1/2] usb: kbd: allow multibyte sequences to be put into ring buffer

2018-02-22 Thread Heinrich Schuchardt
On 02/23/2018 07:04 AM, Marek Vasut wrote: On 02/23/2018 06:50 AM, Heinrich Schuchardt wrote: [...] When starting an EFI application the xterm escape sequences are translated to EFI scan codes. See lib/efi_loader/efi_console.c So this is only usable if you have display connected to the board

Re: [U-Boot] [PATCH v1 3/4] mmc: omap_hsmmc: compile out ADMA support for am33xx and omap34xx

2018-02-22 Thread Jaehoon Chung
On 02/23/2018 12:47 AM, Tom Rini wrote: > On Thu, Feb 22, 2018 at 11:25:47AM +0100, Jean-Jacques Hiblot wrote: >> This reduces the size of the binary by about 600 bytes. >> >> Signed-off-by: Jean-Jacques Hiblot >> --- >> >> drivers/mmc/omap_hsmmc.c | 16 ++-- >> 1

Re: [U-Boot] [PATCH v3 09/24] mmc: omap_hsmmc: use mmc_of_parse to populate mmc_config

2018-02-22 Thread Jaehoon Chung
On 02/23/2018 08:05 AM, Adam Ford wrote: > On Thu, Feb 22, 2018 at 4:43 PM, Adam Ford wrote: > >> >> >> On Tue, Jan 30, 2018 at 9:01 AM, Jean-Jacques Hiblot >> wrote: >> >>> From: Kishon Vijay Abraham I >>> >>> Use the mmc_of_parse library

Re: [U-Boot] [PATCH] mmc: fix off-by-one bug in mmc_startup_v4()

2018-02-22 Thread Jaehoon Chung
On 02/21/2018 05:57 PM, Jaehoon Chung wrote: > Hi Alexander, > > On 02/21/2018 05:44 PM, Alexander Kochetkov wrote: >> >>> Do you mean SD-card or MMC-card? :) >>> SD doesn't have EXT_CSD register. >> >> I see now. MMC-card. So, send v2? or you can simple fix SD with MMC in >> commit msg. > > If

Re: [U-Boot] [PATCH] mmc: Drop unnecessary case for mmc_probe()

2018-02-22 Thread Jaehoon Chung
On 02/19/2018 02:31 PM, Faiz Abbas wrote: > Hi, > > On Monday 12 February 2018 07:35 PM, Faiz Abbas wrote: >> Drop the unnecessary empty function case for mmc_probe(). >> >> Signed-off-by: Faiz Abbas Applied to u-boot-mmc. Best Regards, Jaehoon Chung >> --- >>

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

2018-02-22 Thread Jaehoon Chung
On 01/30/2018 02:10 PM, Jaehoon Chung wrote: > 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 Applied to u-boot-mmc. Best

Re: [U-Boot] [PATCH 1/2] usb: kbd: allow multibyte sequences to be put into ring buffer

2018-02-22 Thread Marek Vasut
On 02/23/2018 06:50 AM, Heinrich Schuchardt wrote: [...] >>> When starting an EFI application the xterm escape sequences are >>> translated to EFI scan codes. See lib/efi_loader/efi_console.c >> >> So this is only usable if you have display connected to the board ? > > Why? We are talking about

Re: [U-Boot] [PATCH V5 31/31] imx: add i.MX8MQ EVK support

2018-02-22 Thread Peng Fan
Hi Fabio, On Thu, Feb 22, 2018 at 01:40:47PM -0300, Fabio Estevam wrote: >Hi Peng, > >On Sun, Feb 4, 2018 at 7:42 AM, Stefano Babic wrote: > >> I have merged most of the series, Patch 2 up to patch 30, leaving out >> just the last one for the EVK. Building mx8evk is fine, I have

Re: [U-Boot] [PATCH] bootcount: flush after storing the bootcounter

2018-02-22 Thread Heiko Schocher
Hello Lukasz, Am 22.02.2018 um 14:03 schrieb Lukasz Majewski: Hi Stefano, Hi Lukasz, On 22/02/2018 12:52, Lukasz Majewski wrote: Hi Stefano, If the bootcounter address is in a cached memory, a flush of dcache must occur after updateing the bootcounter. Issue found on i.MX6 where

Re: [U-Boot] [PATCH 1/2] usb: kbd: allow multibyte sequences to be put into ring buffer

2018-02-22 Thread Heinrich Schuchardt
On 02/23/2018 12:02 AM, Marek Vasut wrote: On 02/22/2018 09:53 PM, Heinrich Schuchardt wrote: On 02/22/2018 08:55 PM, Marek Vasut wrote: On 02/22/2018 07:06 PM, Heinrich Schuchardt wrote: On 02/22/2018 03:20 PM, Marek Vasut wrote: On 02/22/2018 01:04 PM, Heinrich Schuchardt wrote: The USB

[U-Boot] Support of kernels > 16 MiB on Raspberry Pi

2018-02-22 Thread Alexander Kurtz
Hi! I am using U-Boot to boot Debian Buster arm64 (standard kernel with a dracut-based initramfs) via an extlinux.conf on my Raspberry Pi 3. Recently, the Debian kernel grew beyond 16 MiB: 4.13: /boot/vmlinuz-4.13.0-1-arm64 == 16448000 bytes (< 16 MiB) [0] 4.14:

[U-Boot] [PATCH] omap3_logic: Fix Environmental location

2018-02-22 Thread Adam Ford
For the omap3_logic boards, the environment is always in NAND. This removes the ENV_IS_IN_FAT flag to eliminate the extra chatter. Signed-off-by: Adam Ford diff --git a/configs/omap3_logic_defconfig b/configs/omap3_logic_defconfig index 02eb2cf..0a60319 100644 ---

Re: [U-Boot] [PATCH v1 0/4] mmc: omap_hsmmc: Reduce the footprint of the driver and fix am335x clock

2018-02-22 Thread Adam Ford
On Thu, Feb 22, 2018 at 4:25 AM, Jean-Jacques Hiblot wrote: > > > This series aims at reducing the footprint of the omap_hsmmc driver in > the SPL (1.5 kB gain in the case of the SPL for the am335x evm). > It also fixes an issue with the am335x_evm by setting a default maximum >

[U-Boot] [PULL] u-boot-usb/master

2018-02-22 Thread Marek Vasut
The following changes since commit f0f6917188ad660cf002c10095f46ecf748b8f58: Prepare v2018.03-rc3 (2018-02-20 16:51:56 -0500) are available in the Git repository at: git://git.denx.de/u-boot-usb.git master for you to fetch changes up to b0cce3f90f546da0c1e0dda5abcaf05d81078b0d: cmd:

Re: [U-Boot] [PATCH v3 09/24] mmc: omap_hsmmc: use mmc_of_parse to populate mmc_config

2018-02-22 Thread Adam Ford
On Thu, Feb 22, 2018 at 4:43 PM, Adam Ford wrote: > > > On Tue, Jan 30, 2018 at 9:01 AM, Jean-Jacques Hiblot > wrote: > >> From: Kishon Vijay Abraham I >> >> Use the mmc_of_parse library function to populate mmc_config instead of >> repeating

Re: [U-Boot] [PATCH 1/2] usb: kbd: allow multibyte sequences to be put into ring buffer

2018-02-22 Thread Marek Vasut
On 02/22/2018 09:53 PM, Heinrich Schuchardt wrote: > On 02/22/2018 08:55 PM, Marek Vasut wrote: >> On 02/22/2018 07:06 PM, Heinrich Schuchardt wrote: >>> On 02/22/2018 03:20 PM, Marek Vasut wrote: On 02/22/2018 01:04 PM, Heinrich Schuchardt wrote: > The USB keyboard driver provides a ring

Re: [U-Boot] [PATCH v3 09/24] mmc: omap_hsmmc: use mmc_of_parse to populate mmc_config

2018-02-22 Thread Adam Ford
On Tue, Jan 30, 2018 at 9:01 AM, Jean-Jacques Hiblot wrote: > From: Kishon Vijay Abraham I > > Use the mmc_of_parse library function to populate mmc_config instead of > repeating the same code in host controller driver. > > Signed-off-by: Kishon Vijay Abraham I

Re: [U-Boot] [PATCH 1/2] usb: kbd: allow multibyte sequences to be put into ring buffer

2018-02-22 Thread Heinrich Schuchardt
On 02/22/2018 08:55 PM, Marek Vasut wrote: On 02/22/2018 07:06 PM, Heinrich Schuchardt wrote: On 02/22/2018 03:20 PM, Marek Vasut wrote: On 02/22/2018 01:04 PM, Heinrich Schuchardt wrote: The USB keyboard driver provides a ring buffer for key strokes. Function keys cannot be encoded as

Re: [U-Boot] [RFC v3 03/15] dma: add bcm6348-iudma support

2018-02-22 Thread Álvaro Fernández Rojas
Hi Grygori, El 22/02/2018 a las 20:50, Grygorii Strashko escribió: Hi I'd appreciated if you can clarify few points below. On 02/21/2018 10:10 AM, Álvaro Fernández Rojas wrote: BCM6348 IUDMA controller is present on multiple BMIPS (BCM63xx) SoCs. Signed-off-by: Álvaro Fernández Rojas

Re: [U-Boot] [PATCH 1/2] usb: kbd: allow multibyte sequences to be put into ring buffer

2018-02-22 Thread Marek Vasut
On 02/22/2018 07:06 PM, Heinrich Schuchardt wrote: > On 02/22/2018 03:20 PM, Marek Vasut wrote: >> On 02/22/2018 01:04 PM, Heinrich Schuchardt wrote: >>> The USB keyboard driver provides a ring buffer for key strokes. >>> >>> Function keys cannot be encoded as single bytes. Instead xterm control

Re: [U-Boot] [RFC v3 03/15] dma: add bcm6348-iudma support

2018-02-22 Thread Grygorii Strashko
Hi I'd appreciated if you can clarify few points below. On 02/21/2018 10:10 AM, Álvaro Fernández Rojas wrote: > BCM6348 IUDMA controller is present on multiple BMIPS (BCM63xx) SoCs. > > Signed-off-by: Álvaro Fernández Rojas > --- > v3: no changes > v2: Fix dma rx burst

Re: [U-Boot] [PATCH 1/2] usb: kbd: allow multibyte sequences to be put into ring buffer

2018-02-22 Thread Heinrich Schuchardt
On 02/22/2018 03:20 PM, Marek Vasut wrote: On 02/22/2018 01:04 PM, Heinrich Schuchardt wrote: The USB keyboard driver provides a ring buffer for key strokes. Function keys cannot be encoded as single bytes. Instead xterm control sequences have to be put into the ring buffer. Does it work

Re: [U-Boot] [RFC] ns16550: Add support for AUX regs usage on some ARC SoCs

2018-02-22 Thread Simon Glass
Hi Alexey, On 22 February 2018 at 09:23, Alexey Brodkin wrote: > Hi Simon, > > On Thu, 2018-02-22 at 09:17 -0700, Simon Glass wrote: >> Hi, >> >> On 21 February 2018 at 05:26, Alexey Brodkin >> wrote: >> > Synopsys Data Fusion subsystem

Re: [U-Boot] arm: mvebu: ClearFog: booting u-boot from ssd?

2018-02-22 Thread Stefan Roese
Hi Florian, On 22.02.2018 15:52, Florian Klink wrote: According to the clearfog wiki and uboot-armada38x src tree, there are separate images for sd and sata, with the makefile there calling $(obj)tools/marvell/doimage -T mmc -D 0x0 -E 0x0 -G $(obj)tools/marvell/bin_hdr/bin_hdr.bin u-boot.bin

Re: [U-Boot] [PATCH V5 31/31] imx: add i.MX8MQ EVK support

2018-02-22 Thread Fabio Estevam
Hi Peng, On Sun, Feb 4, 2018 at 7:42 AM, Stefano Babic wrote: > I have merged most of the series, Patch 2 up to patch 30, leaving out > just the last one for the EVK. Building mx8evk is fine, I have just > noted a couple of checkpatch warnings in mx8mq_evk.h >

Re: [U-Boot] [RFC] ns16550: Add support for AUX regs usage on some ARC SoCs

2018-02-22 Thread Alexey Brodkin
Hi Simon, On Thu, 2018-02-22 at 09:17 -0700, Simon Glass wrote: > Hi, > > On 21 February 2018 at 05:26, Alexey Brodkin > wrote: > > Synopsys Data Fusion subsystem (DFSS) is targeted to deeply built-in > > use-cases and so to save some silicon area decision was made

Re: [U-Boot] [RFC] ns16550: Add support for AUX regs usage on some ARC SoCs

2018-02-22 Thread Tom Rini
On Thu, Feb 22, 2018 at 04:07:39PM +, Alexey Brodkin wrote: > Hi Tom, > > On Thu, 2018-02-22 at 10:43 -0500, Tom Rini wrote: > > On Wed, Feb 21, 2018 at 03:26:05PM +0300, Alexey Brodkin wrote: > > [snip] > > > > static inline void serial_out_shift(void *addr, int shift, int value) > > > {

Re: [U-Boot] [RFC v3 02/15] dma: add channels support

2018-02-22 Thread Simon Glass
On 21 February 2018 at 09:10, Álvaro Fernández Rojas wrote: > This adds channels support for dma controllers that have multiple channels > which can transfer data to/from different devices (enet, usb...). > > Signed-off-by: Álvaro Fernández Rojas > --- >

Re: [U-Boot] [PATCH] board_f: Only reserve memory for U-Boot if we're going to relocate

2018-02-22 Thread Simon Glass
Hi Alexey, On 20 February 2018 at 09:28, Alexey Brodkin wrote: > Hi Simon, > > On Sun, 2018-02-04 at 06:40 -0700, Simon Glass wrote: >> Hi Alexey, >> >> On 25 January 2018 at 10:56, Alexey Brodkin >> wrote: >> > In case of no relocation

Re: [U-Boot] [RFC v3 01/15] dma: move dma_ops to dma-uclass.h

2018-02-22 Thread Simon Glass
On 21 February 2018 at 09:10, Álvaro Fernández Rojas wrote: > Move dma_ops to a separate header file, following other uclass > implementations. > While doing so, this patch also improves dma_ops documentation. > > Signed-off-by: Álvaro Fernández Rojas > ---

Re: [U-Boot] [PATCH] arc: Introduce a possibility to not relocate U-boot

2018-02-22 Thread Simon Glass
Hi Alexey, On 20 February 2018 at 10:54, Alexey Brodkin wrote: > Hi Simon, Tom, > > On Sun, 2018-02-04 at 06:40 -0700, Simon Glass wrote: >> On 25 January 2018 at 11:22, Alexey Brodkin >> wrote: >> > From: Alexey Brodkin

Re: [U-Boot] [RFC] ns16550: Add support for AUX regs usage on some ARC SoCs

2018-02-22 Thread Simon Glass
Hi, On 21 February 2018 at 05:26, Alexey Brodkin wrote: > Synopsys Data Fusion subsystem (DFSS) is targeted to deeply built-in > use-cases and so to save some silicon area decision was made to > escape usage of any busses and use instead directly wired to CPU >

Re: [U-Boot] [RFC] ns16550: Add support for AUX regs usage on some ARC SoCs

2018-02-22 Thread Alexey Brodkin
Hi Tom, On Thu, 2018-02-22 at 10:43 -0500, Tom Rini wrote: > On Wed, Feb 21, 2018 at 03:26:05PM +0300, Alexey Brodkin wrote: [snip] > > static inline void serial_out_shift(void *addr, int shift, int value) > > { > > -#ifdef CONFIG_SYS_NS16550_PORT_MAPPED > > +#ifdef CONFIG_ARCH_DFSS > > +

Re: [U-Boot] [PATCH v8 4/4] common: Generic firmware loader for file system

2018-02-22 Thread Tom Rini
On Thu, Feb 22, 2018 at 03:28:12PM +0100, Marek Vasut wrote: > On 02/22/2018 09:18 AM, Chee, Tien Fong wrote: > > On Thu, 2018-02-15 at 15:58 +0100, Marek Vasut wrote: > >> On 02/05/2018 08:06 AM, tien.fong.c...@intel.com wrote: > >>> > >>> From: Tien Fong Chee > >>> >

Re: [U-Boot] [PATCH v1 4/4] mmc: omap_hsmmc: use a default 52MHz max clock rate if none is specified

2018-02-22 Thread Tom Rini
On Thu, Feb 22, 2018 at 11:25:48AM +0100, Jean-Jacques Hiblot wrote: > mmc_of_parse() doesn't set a default value if none is available in DT. > In that case, use a default 52MHz clock rate. > > Signed-off-by: Alex Kiernan > Signed-off-by: Jean-Jacques Hiblot

Re: [U-Boot] [PATCH v1 1/4] mmc: omap_hsmmc: do not embed struct mmc in struct omap_hsmmc_plat

2018-02-22 Thread Tom Rini
On Thu, Feb 22, 2018 at 11:25:45AM +0100, Jean-Jacques Hiblot wrote: > The area for struct mmc can be allocated dynamically. It greatly reduces > the size of struct omap_hsmmc_plat. This is useful in cases where the board > level code declares one or two struct omap_hsmmc_plat because it doesn't

Re: [U-Boot] [PATCH v1 2/4] mmc: omap_hsmmc: compile out write support if not needed

2018-02-22 Thread Tom Rini
On Thu, Feb 22, 2018 at 11:25:46AM +0100, Jean-Jacques Hiblot wrote: > This reduces the size of the binary by about 196 bytes. > > Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [PATCH v1 3/4] mmc: omap_hsmmc: compile out ADMA support for am33xx and omap34xx

2018-02-22 Thread Tom Rini
On Thu, Feb 22, 2018 at 11:25:47AM +0100, Jean-Jacques Hiblot wrote: > This reduces the size of the binary by about 600 bytes. > > Signed-off-by: Jean-Jacques Hiblot > --- > > drivers/mmc/omap_hsmmc.c | 16 ++-- > 1 file changed, 10 insertions(+), 6 deletions(-) >

Re: [U-Boot] [RFC] ns16550: Add support for AUX regs usage on some ARC SoCs

2018-02-22 Thread Tom Rini
On Wed, Feb 21, 2018 at 03:26:05PM +0300, Alexey Brodkin wrote: > Synopsys Data Fusion subsystem (DFSS) is targeted to deeply built-in > use-cases and so to save some silicon area decision was made to > escape usage of any busses and use instead directly wired to CPU > peripherals. And one of

Re: [U-Boot] arm: mvebu: ClearFog: booting u-boot from ssd?

2018-02-22 Thread Florian Klink
Hey Stefan, According to the clearfog wiki and uboot-armada38x src tree, there are separate images for sd and sata, with the makefile there calling $(obj)tools/marvell/doimage -T mmc -D 0x0 -E 0x0 -G $(obj)tools/marvell/bin_hdr/bin_hdr.bin u-boot.bin u-boot.mmc vs $(obj)tools/marvell/doimage

Re: [U-Boot] [PATCH] configs: clearfog: enable random random MAC address

2018-02-22 Thread Stefan Roese
On 19.02.2018 07:17, Baruch Siach wrote: This makes the network devices usable when booting a blank board over UART, with no pre-configured MAC address stored in the environment area. Signed-off-by: Baruch Siach --- configs/clearfog_defconfig | 1 + 1 file changed, 1

Re: [U-Boot] [PATCH v8 4/4] common: Generic firmware loader for file system

2018-02-22 Thread Marek Vasut
On 02/22/2018 09:18 AM, Chee, Tien Fong wrote: > On Thu, 2018-02-15 at 15:58 +0100, Marek Vasut wrote: >> On 02/05/2018 08:06 AM, tien.fong.c...@intel.com wrote: >>> >>> From: Tien Fong Chee >>> >>> This is file system generic loader which can be used to load >>> the

Re: [U-Boot] [PATCH 1/2] arm: socfpga: cyclone5: Enable Macronix flash support

2018-02-22 Thread Marek Vasut
On 02/22/2018 02:39 PM, See, Chin Liang wrote: > On Thu, 2018-02-22 at 11:45 +0100, Marek Vasut wrote: >> On 02/22/2018 07:29 AM, See, Chin Liang wrote: >>> >>> On Wed, 2018-02-21 at 20:23 +0100, Marek Vasut wrote: On 02/21/2018 08:39 AM, chin.liang@intel.com wrote: > > >

Re: [U-Boot] [PATCH 1/2] usb: kbd: allow multibyte sequences to be put into ring buffer

2018-02-22 Thread Marek Vasut
On 02/22/2018 01:04 PM, Heinrich Schuchardt wrote: > The USB keyboard driver provides a ring buffer for key strokes. > > Function keys cannot be encoded as single bytes. Instead xterm control > sequences have to be put into the ring buffer. Does it work without xterm or with any other terminal ?

Re: [U-Boot] arm: mvebu: ClearFog: booting u-boot from ssd?

2018-02-22 Thread Stefan Roese
Hi Florian, On 16.02.2018 11:23, Florian Klink wrote: Hey, I tried getting ClearFog to load u-boot from a M.2 SSD (via SATA) So I built u-boot-spl.kwb make clearfog_defconfig make -j4 ARCH=arm CROSS_COMPILE=arm-none-eabi- dd'ed it on the SSD:  dd if=u-boot-spl.kwb of=/dev/sdX bs=512

Re: [U-Boot] [PATCH v2 00/20] Bring NAND support to Nintendo NES Classic

2018-02-22 Thread Boris Brezillon
On Thu, 22 Feb 2018 15:06:19 +0100 Boris Brezillon wrote: > On Thu, 22 Feb 2018 14:33:30 +0100 > Miquel Raynal wrote: > > > Hello, > > > > This series first adds fixes and enhancements to sunxi NAND drivers (SPL > > and U-Boot). Once

Re: [U-Boot] [PATCH v2 01/20] spl: fix binman_sym output check

2018-02-22 Thread Maxime Ripard
Hi, On Thu, Feb 22, 2018 at 02:33:31PM +0100, Miquel Raynal wrote: > A previous commit introduced the use of binman in the SPL. > > After the binman_sym call over the 'pos' symbol, the output value is > checked against BINMAN_SYM_MISSING (-1UL). According to the > documentation

Re: [U-Boot] [PATCH v2 15/20] sunxi: allow NAND support in SPL to be compiled for sun8i platforms

2018-02-22 Thread Maxime Ripard
Hi, On Thu, Feb 22, 2018 at 02:33:45PM +0100, Miquel Raynal wrote: > Add some clocks/PLL definitions and the dependency on MACH_SUN8I in > Kconfig so the NAND support in the SPL could be compiled for boards > using A33 SoCs. > > Signed-off-by: Miquel Raynal The patch

Re: [U-Boot] [PATCH 1/2] doc: mxc_hab: Move HAB related info to the appropriate doc

2018-02-22 Thread Fabio Estevam
On Wed, Feb 21, 2018 at 9:42 PM, Breno Lima wrote: > From: Breno Lima > > Currently the High Assurance Boot procedure is documented in two > places: > > - doc/README.imx6 > - doc/README.mxc_hab > > It is better to consolidate all HAB related

Re: [U-Boot] [PATCH v2 00/20] Bring NAND support to Nintendo NES Classic

2018-02-22 Thread Boris Brezillon
On Thu, 22 Feb 2018 14:33:30 +0100 Miquel Raynal wrote: > Hello, > > This series first adds fixes and enhancements to sunxi NAND drivers (SPL > and U-Boot). Once this is done, the SPL NAND driver is converted to use > PIO instead of DMA with the goal to support all

Re: [U-Boot] [PATCH v2 20/20] configs: add NAND support for NES Classic

2018-02-22 Thread Maxime Ripard
On Thu, Feb 22, 2018 at 02:33:50PM +0100, Miquel Raynal wrote: > Add NAND parameters to the Nintendo NES Classic configuration file which > features a Macronix NAND flash chip with 128kiB blocks of 2kiB pages > plus 64 OOB bytes. > > Signed-off-by: Miquel Raynal

Re: [U-Boot] [PATCH v2 19/20] sunxi: move the NAND parameters to Kconfig

2018-02-22 Thread Maxime Ripard
On Thu, Feb 22, 2018 at 02:33:49PM +0100, Miquel Raynal wrote: > Move the NAND parameters from defconfig files to Kconfig for SUNXI > architecture only. Fort now only the CHIP pro is migrated. > > It would have been better to convert this defconfig entry to Kconfig for > all supported

Re: [U-Boot] [PATCH v2 17/20] sunxi: automatically select SPL_NAND_SUPPORT in Kconfig

2018-02-22 Thread Maxime Ripard
On Thu, Feb 22, 2018 at 02:33:47PM +0100, Miquel Raynal wrote: > Make SUNXI_NAND select SPL_NAND_SUPPORT in Kconfig, this limit the > number of entries to add in defconfig files when adding NAND support. > > For now, the only board using it is the CHIP pro. > > Signed-off-by: Miquel Raynal

Re: [U-Boot] [PATCH v2 18/20] sunxi: make NAND_SUNXI use ARCH_SUNXI as default in Kconfig

2018-02-22 Thread Maxime Ripard
On Thu, Feb 22, 2018 at 02:33:48PM +0100, Miquel Raynal wrote: > Remove NAND_SUNXI from the CHIP pro defconfig to be automatically > selected depending on the state of ARCH_SUNXI. > > Signed-off-by: Miquel Raynal Acked-by: Maxime Ripard

Re: [U-Boot] [PATCH v2 16/20] sunxi: dts: enable NAND on NES classic

2018-02-22 Thread Maxime Ripard
Hi, On Thu, Feb 22, 2018 at 02:33:46PM +0100, Miquel Raynal wrote: > Let the Nintendo NES Classic use the Macronix NAND chip on it. > > Signed-off-by: Miquel Raynal > --- > arch/arm/dts/sun8i-a23-a33.dtsi| 18 > ++ >

Re: [U-Boot] [PATCH v2 11/20] sunxi: spl: deassert the NAND controller reset line

2018-02-22 Thread Maxime Ripard
On Thu, Feb 22, 2018 at 02:33:41PM +0100, Miquel Raynal wrote: > Ensure the NAND controller reset line is deasserted before use. > > Signed-off-by: Miquel Raynal > --- > board/sunxi/board.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/board/sunxi/board.c

Re: [U-Boot] [PATCH 2/3] imx6: engicam: Drop SPL_EXT_SUPPORT

2018-02-22 Thread Jagan Teki
On Thu, Feb 22, 2018 at 7:08 PM, Stefano Babic wrote: > Hi Jagan, > > On 20/02/2018 08:16, Jagan Teki wrote: >> i.MX6 boards still using raw MMC write for SPL and >> u-boot-dtb.img along with Falcon mode configurations, >> so drop filesystem based write through SPL_EXT_SUPPORT. >>

Re: [U-Boot] [PATCH 2/3] imx6: engicam: Drop SPL_EXT_SUPPORT

2018-02-22 Thread Stefano Babic
Hi Jagan, On 20/02/2018 08:16, Jagan Teki wrote: > i.MX6 boards still using raw MMC write for SPL and > u-boot-dtb.img along with Falcon mode configurations, > so drop filesystem based write through SPL_EXT_SUPPORT. > > Signed-off-by: Jagan Teki > --- This is a fix,

Re: [U-Boot] [PATCH 1/2] arm: socfpga: cyclone5: Enable Macronix flash support

2018-02-22 Thread See, Chin Liang
On Thu, 2018-02-22 at 11:45 +0100, Marek Vasut wrote: > On 02/22/2018 07:29 AM, See, Chin Liang wrote: > > > > On Wed, 2018-02-21 at 20:23 +0100, Marek Vasut wrote: > > > > > > On 02/21/2018 08:39 AM, chin.liang@intel.com wrote: > > > > > > > > > > > > From: Chin Liang See

Re: [U-Boot] [PATCH v2 09/20] spl: nand: sunxi: ensure enough time has passed after changing the column

2018-02-22 Thread Boris Brezillon
On Thu, 22 Feb 2018 14:33:39 +0100 Miquel Raynal wrote: > When changing the column, the ONFI specification states that a minimum > time of tCCS (Change Column Setup time) must elapse between the last > address cycle is asserted on the bus and the first data cycle is >

[U-Boot] [PATCH v2 15/20] sunxi: allow NAND support in SPL to be compiled for sun8i platforms

2018-02-22 Thread Miquel Raynal
Add some clocks/PLL definitions and the dependency on MACH_SUN8I in Kconfig so the NAND support in the SPL could be compiled for boards using A33 SoCs. Signed-off-by: Miquel Raynal --- arch/arm/include/asm/arch-sunxi/clock_sun6i.h | 6 ++ drivers/mtd/nand/Kconfig

[U-Boot] [PATCH v2 11/20] sunxi: spl: deassert the NAND controller reset line

2018-02-22 Thread Miquel Raynal
Ensure the NAND controller reset line is deasserted before use. Signed-off-by: Miquel Raynal --- board/sunxi/board.c | 1 + 1 file changed, 1 insertion(+) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 8891961dcc..54ac018b80 100644 ---

[U-Boot] [PATCH v2 12/20] spl: nand: sunxi: declare the ecc_bytes array globally

2018-02-22 Thread Miquel Raynal
Move the ecc_bytes array out of nand_max_ecc_strength() for future use by nand_read_page(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/sunxi_nand_spl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/sunxi_nand_spl.c

[U-Boot] [PATCH v2 07/20] spl: nand: sunxi: add missing status clear

2018-02-22 Thread Miquel Raynal
It is best practice to always clear the status register before executing a command to be sure that the status read afterwards is relevant. Signed-off-by: Miquel Raynal --- drivers/mtd/nand/sunxi_nand_spl.c | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [U-Boot] [PATCH 1/5] imx: hab: Keep CAAM clock enabled after authenticating additional images

2018-02-22 Thread Stefano Babic
On 20/02/2018 11:44, Fabio Estevam wrote: > On Mon, Feb 19, 2018 at 10:19 PM, Breno Lima wrote: >> From: Breno Lima >> >> Currently it is not possible to run CMD_DEK on i.MX SPL targets: >> >> => dek_blob 0x1200 0x12001000 128 >> >> The system

[U-Boot] [PATCH v2 19/20] sunxi: move the NAND parameters to Kconfig

2018-02-22 Thread Miquel Raynal
Move the NAND parameters from defconfig files to Kconfig for SUNXI architecture only. Fort now only the CHIP pro is migrated. It would have been better to convert this defconfig entry to Kconfig for all supported machines/architectures but it has been abandoned due to a fairly high amount of

[U-Boot] [PATCH v2 13/20] spl: nand: sunxi: use PIO instead of DMA

2018-02-22 Thread Miquel Raynal
SPL support was first written to support only the earlier generations of Allwinner SoCs, and was only really enabled on the A13 / GR8. However, those old SoCs had a DMA engine that has been replaced since the A31 by another DMA controller that is no longer compatible. Since the code directly uses

[U-Boot] [PATCH v2 20/20] configs: add NAND support for NES Classic

2018-02-22 Thread Miquel Raynal
Add NAND parameters to the Nintendo NES Classic configuration file which features a Macronix NAND flash chip with 128kiB blocks of 2kiB pages plus 64 OOB bytes. Signed-off-by: Miquel Raynal --- configs/Nintendo_NES_Classic_Edition_defconfig | 4 1 file changed, 4

[U-Boot] [PATCH v2 05/20] spl: nand: sunxi: introduce the nand_wait_int() helper

2018-02-22 Thread Miquel Raynal
The pattern of polling on a status register until a bit is set or a timeout occurs is repeated multiple times in the driver. Mutualize the code by introducing the nand_wait_int() helper that does wait for the bit to flip or returns an error in case of timeout. Signed-off-by: Miquel Raynal

[U-Boot] [PATCH v2 18/20] sunxi: make NAND_SUNXI use ARCH_SUNXI as default in Kconfig

2018-02-22 Thread Miquel Raynal
Remove NAND_SUNXI from the CHIP pro defconfig to be automatically selected depending on the state of ARCH_SUNXI. Signed-off-by: Miquel Raynal --- configs/CHIP_pro_defconfig | 1 - drivers/mtd/nand/Kconfig | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff

[U-Boot] [PATCH v2 04/20] spl: nand: sunxi: fix typo on register name

2018-02-22 Thread Miquel Raynal
Change NFC_SEND_ADR to NFC_SEND_ADDR. Signed-off-by: Miquel Raynal --- drivers/mtd/nand/sunxi_nand_spl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/nand/sunxi_nand_spl.c b/drivers/mtd/nand/sunxi_nand_spl.c index

Re: [U-Boot] [PATCH v2 05/20] spl: nand: sunxi: introduce the nand_wait_int() helper

2018-02-22 Thread Boris Brezillon
On Thu, 22 Feb 2018 14:33:35 +0100 Miquel Raynal wrote: > The pattern of polling on a status register until a bit is set or a > timeout occurs is repeated multiple times in the driver. Mutualize the > code by introducing the nand_wait_int() helper that does wait for

[U-Boot] [PATCH v2 00/20] Bring NAND support to Nintendo NES Classic

2018-02-22 Thread Miquel Raynal
Hello, This series first adds fixes and enhancements to sunxi NAND drivers (SPL and U-Boot). Once this is done, the SPL NAND driver is converted to use PIO instead of DMA with the goal to support all SoCs with this IP without the need for DMA-related code. Finally, NAND support is added to

[U-Boot] [PATCH v2 09/20] spl: nand: sunxi: ensure enough time has passed after changing the column

2018-02-22 Thread Miquel Raynal
When changing the column, the ONFI specification states that a minimum time of tCCS (Change Column Setup time) must elapse between the last address cycle is asserted on the bus and the first data cycle is clocked. An usual value for average NANDs is 500 nanoseconds. Round it up to 1 microsecond to

[U-Boot] [PATCH v2 06/20] spl: nand: sunxi: introduce the nand_wait_cmd_fifo_empty() helper

2018-02-22 Thread Miquel Raynal
One bit in the control registers indicates if the NAND controller is ready to receive a new command. Otherwise, the command FIFO is full and we should wait for this bit to flip. It then states that the last command has been processed and the FIFO is now free to welcome another command. Add this

[U-Boot] [PATCH v2 16/20] sunxi: dts: enable NAND on NES classic

2018-02-22 Thread Miquel Raynal
Let the Nintendo NES Classic use the Macronix NAND chip on it. Signed-off-by: Miquel Raynal --- arch/arm/dts/sun8i-a23-a33.dtsi| 18 ++ .../arm/dts/sun8i-r16-nintendo-nes-classic-edition.dts | 14 ++ 2 files changed,

[U-Boot] [PATCH v2 03/20] spl: nand: sunxi: fix second case of modulo by zero error

2018-02-22 Thread Miquel Raynal
In the nand_read_buffer() step, the seed is calculated by doing a modulo by conf->nseeds which is always zero when not using the randomizer (most of SLC NANDs). This situation turns out to lead to a run time freeze with certain toolchains. Derive this seed only when the randomizer is enabled

[U-Boot] [PATCH v2 08/20] spl: nand: sunxi: create an helper to handle command execution

2018-02-22 Thread Miquel Raynal
Executing a command is matter of always doing the following sequence: * Waiting for the FIFO to be empty so we can fill it with the new command. * Clearing the status register. * Writing the command in the FIFO. * Waiting for the command to finish. Add a nand_exec_cmd() helper to

[U-Boot] [PATCH v2 10/20] spl: nand: sunxi: make the reset column helper more generic

2018-02-22 Thread Miquel Raynal
Prepare the future use of an helper to move the data pointer (the column) of the NAND chip by renaming nand_reset_column() to nand_change_column(). Resetting the column is just a matter of giving 0 as argument. Signed-off-by: Miquel Raynal ---

[U-Boot] [PATCH v2 01/20] spl: fix binman_sym output check

2018-02-22 Thread Miquel Raynal
A previous commit introduced the use of binman in the SPL. After the binman_sym call over the 'pos' symbol, the output value is checked against BINMAN_SYM_MISSING (-1UL). According to the documentation (tools/binman/README), when it comes to the 'pos' attribute: pos: This sets the

[U-Boot] [PATCH v2 14/20] sunxi: spl: remove DMA related settings of the NAND controller

2018-02-22 Thread Miquel Raynal
Code has been changed to do not use DMA anymore with the NAND controller, instead PIO is used. Then, DMA-specific initialization may be dropped. Signed-off-by: Miquel Raynal --- board/sunxi/board.c | 5 - 1 file changed, 5 deletions(-) diff --git

[U-Boot] [PATCH v2 02/20] mtd: nand: sunxi: fix ECC strength choice

2018-02-22 Thread Miquel Raynal
When the requested ECC strength does not exactly match the strengths supported by the ECC engine, the driver is selecting the closest strength meeting the 'selected_strength > requested_strength' constraint. Fix the fact that, in this particular case, ecc->strength value was not updated to match

[U-Boot] [PATCH v2 17/20] sunxi: automatically select SPL_NAND_SUPPORT in Kconfig

2018-02-22 Thread Miquel Raynal
Make SUNXI_NAND select SPL_NAND_SUPPORT in Kconfig, this limit the number of entries to add in defconfig files when adding NAND support. For now, the only board using it is the CHIP pro. Signed-off-by: Miquel Raynal --- configs/CHIP_pro_defconfig | 1 -

Re: [U-Boot] [RFC] Make U-Boot log great again

2018-02-22 Thread Maxime Ripard
On Wed, Feb 21, 2018 at 10:14:47AM -0500, Tom Rini wrote: > > > > Also, for transitioning e.g. from MMC to FAT, we would need a mechanism > > > > to > > > > store to an environment place other than the one selected at load time. > > > > > > Ah, so we have different valid use cases. Maybe a new

Re: [U-Boot] [PATCH] bootcount: flush after storing the bootcounter

2018-02-22 Thread Lukasz Majewski
Hi Stefano, > Hi Lukasz, > > On 22/02/2018 12:52, Lukasz Majewski wrote: > > Hi Stefano, > > > >> If the bootcounter address is in a cached memory, > >> a flush of dcache must occur after updateing the bootcounter. > >> > >> Issue found on i.MX6 where bootcounter is put into the internal > >>

[U-Boot] [UBOOT PATCH 0/2] eeprom: Moved eeprom u-boot headers to the Kconfig

2018-02-22 Thread Vipul Kumar
This series of patch added Kconfig support for eeprom u-boot headers and enabled in respective defconfig. These are the configs: -CONFIG_ZYNQ_EEPROM -CONFIG_ZYNQ_EEPROM_BUS -CONFIG_ZYNQ_GEM_EEPROM_ADDR Vipul Kumar (2): eeprom: Added Kconfig support for ZYNQ_EEPROM eeprom: Added Kconfig

[U-Boot] [UBOOT PATCH 2/2] eeprom: Added Kconfig support for eeprom u-boot headers

2018-02-22 Thread Vipul Kumar
This patch added Kconfig support for CONFIG_ZYNQ_EEPROM_BUS and CONFIG_ZYNQ_GEM_EEPROM_ADDR and enabled it in respective defconfig. Signed-off-by: Vipul Kumar Signed-off-by: Siva Durga Prasad Paladugu --- configs/syzygy_hub_defconfig | 1

[U-Boot] [UBOOT PATCH 1/2] eeprom: Added Kconfig support for ZYNQ_EEPROM

2018-02-22 Thread Vipul Kumar
This patch added Kconfig support for ZYNQ_EEPROM and enabled it in respective defconfig. Signed-off-by: Vipul Kumar Signed-off-by: Siva Durga Prasad Paladugu --- configs/xilinx_zynqmp_ep_defconfig | 1 + configs/zynq_zc702_defconfig | 1 +

Re: [U-Boot] [PATCH] bootcount: flush after storing the bootcounter

2018-02-22 Thread Stefano Babic
Hi Lukasz, On 22/02/2018 12:52, Lukasz Majewski wrote: > Hi Stefano, > >> If the bootcounter address is in a cached memory, >> a flush of dcache must occur after updateing the bootcounter. >> >> Issue found on i.MX6 where bootcounter is put into the internal >> (cached) IRAM. >> >>

[U-Boot] [UBOOT PATCH 2/2] mmc: Added Kconfig support for CONFIG_ZYNQ_SDHCI_MIN_FREQ

2018-02-22 Thread Vipul Kumar
This patch added Kconfig support for CONFIG_ZYNQ_SDHCI_MIN_FREQ and enabled it in respective defconfig. Signed-off-by: Vipul Kumar Signed-off-by: Siva Durga Prasad Paladugu --- configs/xilinx_zynqmp_ep_defconfig | 1 + drivers/mmc/Kconfig|

[U-Boot] [UBOOT PATCH 0/2] mmc: Added Kconfig support to set minimum and maximum frequency of the mmc controller

2018-02-22 Thread Vipul Kumar
This series of patch added Kconfig support for CONFIG_ZYNQ_SDHCI_MAX_FREQ and CONFIG_ZYNQ_SDHCI_MIN_FREQ and set the default values. Vipul Kumar (2): mmc: Added Kconfig support for CONFIG_ZYNQ_SDHCI_MAX_FREQ mmc: Added Kconfig support for CONFIG_ZYNQ_SDHCI_MIN_FREQ

[U-Boot] [UBOOT PATCH 1/2] mmc: Added Kconfig support for CONFIG_ZYNQ_SDHCI_MAX_FREQ

2018-02-22 Thread Vipul Kumar
This patch added Kconfig support for CONFIG_ZYNQ_SDHCI_MAX_FREQ and enabled it in respective defconfig. Signed-off-by: Vipul Kumar Signed-off-by: Siva Durga Prasad Paladugu --- arch/arm/cpu/armv8/zynqmp/Kconfig | 3 +++ arch/arm/mach-zynq/Kconfig

[U-Boot] [PATCH 2/2] usb: kbd: implement special keys

2018-02-22 Thread Heinrich Schuchardt
Correct support for arrow keys: use the standard xterm escape sequences. Provide support for F1-F12, Insert, Delete, Home, End, Page Up, Page Down. Signed-off-by: Heinrich Schuchardt --- common/usb_kbd.c | 121 +-- 1 file

[U-Boot] [PATCH 1/2] usb: kbd: allow multibyte sequences to be put into ring buffer

2018-02-22 Thread Heinrich Schuchardt
The USB keyboard driver provides a ring buffer for key strokes. Function keys cannot be encoded as single bytes. Instead xterm control sequences have to be put into the ring buffer. This preparatory patch changes function usb_kbd_put_queue() to allow adding multiple characters at once. If the

[U-Boot] [PATCH 0/2] usb: kbd: implement special keys

2018-02-22 Thread Heinrich Schuchardt
Correct support for arrow keys: use the standard xterm escape sequences. Provide support for F1-F12, Insert, Delete, Home, End, Page Up, Page Down. Signed-off-by: Heinrich Schuchardt Heinrich Schuchardt (2): usb: kbd: allow multibyte sequences to be put into ring buffer

  1   2   >