Re: [U-Boot] [PATCH 1/2] mtd: nand: tegra: convert to driver model and live tree

2018-02-23 Thread Stefan Agner
On 21.02.2018 16:16, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > The Tegra NAND driver recently got broken by ongoing driver model resp. > live tree migration work: > > NAND: Could not decode nand-flash in device tree > Tegra NAND init failed > 0 MiB > > A

Re: [U-Boot] [PATCH 1/2] usb: gadget: sdp: add missing line breaks

2018-02-15 Thread Stefan Agner
On 15.02.2018 09:59, Lukasz Majewski wrote: > On Thu, 15 Feb 2018 07:08:55 +0100 > Andre Heider <a.hei...@gmail.com> wrote: > >> Cosmetic change. Hm, this got introduced by commit 9b643e312d52 ("treewide: replace with error() with pr_err()") error() did print t

Re: [U-Boot] [PATCH] Fix --noheader on fw_printenv

2018-02-08 Thread Stefan Agner
On 08.02.2018 17:17, Alex Kiernan wrote: > On Thu, Feb 8, 2018 at 3:37 PM, wrote: >> On 08.02.2018 10:35, Alex Kiernan wrote: >>> Using fw_printenv with --noheader fails: >>> >>> root@nrr-922:~# fw_printenv --noheader arch >>> ## Error: `-n' option requires exactly one

[U-Boot] [PATCH v2 3/4] spl: use ARCH_MX23/28 to specify SPL_LDSCRIPT

2018-02-06 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Simplify SPL_LDSCRIPT config by using the new arch Kconfig configurations ARCH_MX23 and ARCH_MX28. Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> --- Changes in v2: None arch/arm/Kconfig | 2 +- 1 file changed, 1 insertion(+)

[U-Boot] [PATCH v2 4/4] Convert CONFIG_NAND_MXS to Kconfig

2018-02-06 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> This converts CONFIG_NAND_MXS to Kconfig. Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> --- Changes in v2: None configs/apx4devkit_defconfig| 3 ++- configs/aristainetos2_defconfig | 3

[U-Boot] [PATCH v2 1/4] arm: imx: mx23: Move MX23 selection to Kconfig

2018-02-06 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> The motivation for moving MX23 selection to Kconfig is to be able to better handle NAND MXS selection through Kconfig. This selection method also aligns with the way other i.MX SoCs are selected in U-Boot. Signed-off-by: Stefan Agner <

[U-Boot] [PATCH v2 2/4] arm: imx: mx28: Move MX28 selection to Kconfig

2018-02-06 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> The motivation for moving MX28 selection to Kconfig is to be able to better handle NAND MXS selection through Kconfig. This selection method also aligns with the way other i.MX SoCs are selected in U-Boot. Signed-off-by: Stefan Agner <

[U-Boot] [PATCH v2 0/4] arm: imx: convert MX23/28 and MXS NAND to Kconfig

2018-02-06 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> This converts i.MX23/28 to Kconfig. This helps to properly add dependencies for GPMI NAND (NAND_MXS) configs. Patch 4 is from a previous patchset "mtd: nand: mxs_nand: improve ECC support". -- Stefan Changes in v2: - Move to arch/

[U-Boot] [PATCH 4/4] Convert CONFIG_NAND_MXS to Kconfig

2018-02-05 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> This converts CONFIG_NAND_MXS to Kconfig. Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> --- configs/apx4devkit_defconfig| 3 ++- configs/aristainetos2_defconfig | 3 ++- configs/aristainetos2b_defconfig

[U-Boot] [PATCH 3/4] spl: use ARCH_MX23/28 to specify SPL_LDSCRIPT

2018-02-05 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Simplify SPL_LDSCRIPT config by using the new arch Kconfig configurations ARCH_MX23 and ARCH_MX28. Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> --- arch/arm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[U-Boot] [PATCH 2/4] arm: imx: mx28: Move MX28 selection to Kconfig

2018-02-05 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> The motivation for moving MX28 selection to Kconfig is to be able to better handle NAND MXS selection through Kconfig. This selection method also aligns with the way other i.MX SoCs are selected in U-Boot. Signed-off-by: Stefan Agner <

[U-Boot] [PATCH 1/4] arm: imx: mx23: Move MX23 selection to Kconfig

2018-02-05 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> The motivation for moving MX23 selection to Kconfig is to be able to better handle NAND MXS selection through Kconfig. This selection method also aligns with the way other i.MX SoCs are selected in U-Boot. Signed-off-by: Stefan Agner <

[U-Boot] [PATCH 0/4] arm: imx: convert MX23/28 and MXS NAND to Kconfig

2018-02-05 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> This converts i.MX23/28 to Kconfig. This helps to properly add dependencies for GPMI NAND (NAND_MXS) configs. Patch 4 is from a previous patchset "mtd: nand: mxs_nand: improve ECC support". -- Stefan Stefan Agner (4): arm: imx:

[U-Boot] [PATCH v2 3/6] mtd: nand: mxs_nand: allow to enable BBT support

2018-02-02 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> 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 <stefan.ag...@toradex.com> --

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

2018-02-02 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> 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 <stefan.ag...@toradex.com> --- Changes in v2: No

[U-Boot] [PATCH v2 5/6] mtd: nand: mxs_nand: report correct ECC parameters

2018-02-02 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Report correct ECC parameters back to the stack. Do not report bytes as we have it not immeaditly available and the Linux version also does not report it. It seems to have no aversive effect. Signed-off-by: Stefan Agner <stefan.ag...@to

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

2018-02-02 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> 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 a

[U-Boot] [PATCH v2 2/6] mtd: nand: mxs_nand: use self init

2018-02-02 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Instead of completing initialization via scan_bbt callback use NAND self init to initialize the GPMI (MXS) NAND controller. Suggested-by: Scott Wood <o...@buserror.net> Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> --- C

[U-Boot] [PATCH v2 1/6] Convert CONFIG_NAND_MXS to Kconfig

2018-02-02 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> This converts CONFIG_NAND_MXS to Kconfig. Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> --- Changes in v2: - Extend the patchset with "Convert CONFIG_NAND_MXS to Kconfig" patch configs/apx4devkit_defconfig

[U-Boot] [PATCH v2 0/6] mtd: nand: mxs_nand: improve ECC support

2018-02-02 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> This patchset reworks the drivers ECC calculation to align more with the Linux driver gpmi-nand.c. It aims to implements minimal ECC support as supported by the NAND chip. The first three patches are of preparational nature, I hope that espe

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

2018-01-29 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> 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 <stefan.ag...@toradex.com> --- drivers/mtd/

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

2018-01-29 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> 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 <stefan.ag...@toradex.com>

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

2018-01-29 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> 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 a

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

2018-01-29 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Instead of completing initialization via scan_bbt callback use NAND self init to initialize the GPMI (MXS) NAND controller. Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> --- drivers/mtd/nand/Kconfig| 1 + drivers/mtd/nan

[U-Boot] [PATCH] arm: dts: imx6ull: move input include to base device tree

2018-01-25 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> The input keycode KEY_POWER is used in the imx6ull.dtsi file, hence include the input header where used. Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> --- arch/arm/dts/imx6ull-14x14-evk.dts | 1 - arch/arm/dts/imx6ull.dtsi

Re: [U-Boot] [PATCH 1/2] serial: mxc: support DTE mode

2018-01-19 Thread Stefan Agner
Hi Ryan, On 19.01.2018 10:53, Ryan Harkin wrote: > Add DTE mode support via Kconfig on the MXC uart. Make use of the driver model, there DTE is supported already today: https://lists.denx.de/pipermail/u-boot/2016-July/259573.html -- Stefan > > Signed-off-by: Ryan Harkin

[U-Boot] [PATCH v2 2/3] imx: introduce CONFIG_GPT_TIMER

2018-01-05 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Introduce a new config symbol to select the i.MX General Purpose Timer (GPT). Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> Reviewed-by: Fabio Estevam <fabio.este...@nxp.com> --- Changes in v2: - Fix Kconfig for MX5

[U-Boot] [PATCH v2 3/3] imx: initialize and use generic timer on i.MX 6UL/ULL

2018-01-05 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> The i.MX 6UL/ULL feature a Cortex-A7 CPU which suppor the ARM generic timer. This change makes use of the ARM generic timer in U-Boot. This is crucial to make the ARM generic timers usable in Linux since timer_init() initalizes the system c

[U-Boot] [PATCH v2 1/3] imx: move CONFIG_SYSCOUNTER_TIMER to Kconfig

2018-01-05 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> Reviewed-by: Fabio Estevam <fabio.este...@nxp.com> --- Changes in v2: None arch/arm/mach-imx/Kconfig | 3 +++ arch/arm/mach-imx/mx7/Kconfig | 1 + include/configs

Re: [U-Boot] [PATCH 3/3] imx: initialize and use generic timer on i.MX 6UL/ULL

2018-01-05 Thread Stefan Agner
On 2018-01-05 13:40, Fabio Estevam wrote: > On Mon, Jan 1, 2018 at 10:43 PM, Stefan Agner <ste...@agner.ch> wrote: > >> --- a/arch/arm/mach-imx/mx6/Kconfig >> +++ b/arch/arm/mach-imx/mx6/Kconfig >> @@ -9,7 +9,7 @@ config MX6_SMP >> >> config MX6 >

Re: [U-Boot] [PATCH 2/3] imx: introduce CONFIG_GPT_TIMER

2018-01-05 Thread Stefan Agner
On 2018-01-02 01:43, Stefan Agner wrote: > Introduce a new config symbol to select the i.MX > General Purpose Timer (GPT). > > Signed-off-by: Stefan Agner <ste...@agner.ch> > --- > > arch/arm/mach-imx/Kconfig | 3 +++ > arch/arm/mach-imx/Makefile| 3 ++- &g

Re: [U-Boot] [PATCH 1/3] imx: move CONFIG_SYSCOUNTER_TIMER to Kconfig

2018-01-05 Thread Stefan Agner
Hi Stefano, Any chance to get this patchset still into v2018.01? IMHO it is almost a bug that U-Boot does not initialize the ARM architected timer properly... -- Stefan On 2018-01-02 01:43, Stefan Agner wrote: > Signed-off-by: Stefan Agner <ste...@agner.ch> > --- > >

[U-Boot] [PATCH 3/3] imx: initialize and use generic timer on i.MX 6UL/ULL

2018-01-01 Thread Stefan Agner
timers CP15 registers. Signed-off-by: Stefan Agner <ste...@agner.ch> --- arch/arm/include/asm/arch-mx6/imx-regs.h | 1 + arch/arm/mach-imx/Makefile | 2 +- arch/arm/mach-imx/mx6/Kconfig| 4 +++- include/configs/mx6_common.h | 5 - 4 files chan

[U-Boot] [PATCH 1/3] imx: move CONFIG_SYSCOUNTER_TIMER to Kconfig

2018-01-01 Thread Stefan Agner
Signed-off-by: Stefan Agner <ste...@agner.ch> --- arch/arm/mach-imx/Kconfig | 3 +++ arch/arm/mach-imx/mx7/Kconfig | 1 + include/configs/mx7_common.h | 1 - scripts/config_whitelist.txt | 1 - 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/Kconfig

[U-Boot] [PATCH 2/3] imx: introduce CONFIG_GPT_TIMER

2018-01-01 Thread Stefan Agner
Introduce a new config symbol to select the i.MX General Purpose Timer (GPT). Signed-off-by: Stefan Agner <ste...@agner.ch> --- arch/arm/mach-imx/Kconfig | 3 +++ arch/arm/mach-imx/Makefile| 3 ++- arch/arm/mach-imx/mx5/Kconfig | 1 + arch/arm/mach-imx/mx6/Kconfig | 1 + 4 files c

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

2018-01-01 Thread Stefan Agner
default y imply CMD_FUSE -- Stefan > > Reported-by: Stefan Agner <ste...@agner.ch> > Signed-off-by: Fabio Estevam <fabio.este...@nxp.com> > --- > arch/arm/include/asm/arch-mx6/imx-regs.h | 20 ++-- > arch/arm/include/asm/arch-mx6/mx

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

2018-01-01 Thread Stefan Agner
consideration in all the checks for CONFIG_MX6UL. Those changes seem to cover it. Reviewed-by: Stefan Agner <ste...@agner.ch> One minor nit below. > > Reported-by: Stefan Agner <ste...@agner.ch> > Signed-off-by: Fabio Estevam <fabio.este...@nxp.com>

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

2018-01-01 Thread Stefan Agner
On 2017-11-28 00:07, Breno Lima wrote: > From: Breno Lima > > MX6UL contains features that MX6ULL doesn't support. > Deselect CONFIG_MX6UL and select SYS_L2CACHE_OFF and ROM_UNIFIED_SECTIONS. > > The motivation for doing this change is that MX6UL supports CAAM and > MX6ULL

Re: [U-Boot] [OE-core] [PATCH] u-boot: Upgrade to 2017.11 release

2017-11-15 Thread Stefan Agner
On 2017-11-14 19:32, Otavio Salvador wrote: > This upgrades the U-Boot from 2017.09 to 2017.11 release. You might encounter this when building fw_printenv/setenv tools alone: https://lists.denx.de/pipermail/u-boot/2017-November/311505.html -- Stefan > > Signed-off-by: Otavio Salvador

[U-Boot] [PATCH] envtools: make sure version/timestamp header file are available

2017-11-14 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> With commit 84d46e7e8948 ("tools: env: allow to print U-Boot version") the fw_env utilities need the version.h header file. Building only the envtools in a pristine build directory will fail due to missing header files. Make sure

Re: [U-Boot] [PATCH] configs: vf610: increase maximum size and enforce correct limit

2017-10-30 Thread Stefan Agner
Hi Tom, Stefano, Any chance to get this still into 2017.11? It allows to use 2017.11 on my board... -- Stefan On 2017-10-17 13:59, Stefan Agner wrote: > From: Stefan Agner <stefan.ag...@toradex.com> > > On Vybrid SoCs U-Boot gets loaded into GFX SRAM which is 512KiB. &g

[U-Boot] [PATCH] tools: env: allow to print U-Boot version

2017-10-26 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> The fw_env utility family has a default environment compiled in which ties it quite strongly to the U-Boot source/config it has been built with. Allow to display the U-Boot version it has been built with using the -v/--version argument. Sign

Re: [U-Boot] [U-boot][SDP] Trigger watchdog before calling usb_gadget_handle_interrupts

2017-10-26 Thread Stefan Agner
return; >> } >> >> +WATCHDOG_RESET(); >> usb_gadget_handle_interrupts(controller_index); >> >> sdp_handle_in_ep(); > Reviewed-by: Lukasz Majewski <lu...@denx.de> Thanks for the patch! Looks good

[U-Boot] [PATCH] configs: vf610: increase maximum size and enforce correct limit

2017-10-17 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> On Vybrid SoCs U-Boot gets loaded into GFX SRAM which is 512KiB. Currently 32KiB is reserved for the IMX header. However, this is not reflected in the size limit. In v2017.11-rc2 the actual size limit (512KiB-32KiB) has been reached for Colibr

[U-Boot] [PATCH v1] doc: update imx_usb_loader URL

2017-10-03 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> The changes required to use U-Boot's Serial Download Protocol implementation are now available in upstream imx_usb_loader repository. Update the URL accordingly. Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> --- doc/README.s

Re: [U-Boot] [PATCH] mx6: toradex: Remove custom CONFIG_SPL_PAD_TO definition

2017-09-27 Thread Stefan Agner
On 25.09.2017 20:20, Fabio Estevam wrote: > From: Fabio Estevam <fabio.este...@nxp.com> > > CONFIG_SPL_PAD_TO is already defined inside "imx6_spl.h", so there > is no need to redefine it in the board config files. That looks good to me. Reviewed-by: Stefan Agn

Re: [U-Boot] [PATCH v3 2/2] imx_common: detect USB serial downloader reliably

2017-09-18 Thread Stefan Agner
On September 18, 2017 8:05:43 AM PDT, Stefano Babic <sba...@denx.de> wrote: >Hi Stefan, > >On 14/09/2017 07:24, Eric Nelson wrote: >> Hi Stefan, >> >> Thanks for this patch. >> >> On 09/13/2017 02:29 PM, Stefan Agner wrote: >>> From: Stefa

Re: [U-Boot] [PATCH v3 1/2] imx: add macro to detect whether USB PHY is active

2017-09-14 Thread Stefan Agner
On 2017-09-13 22:23, Eric Nelson wrote: > On 09/13/2017 02:29 PM, Stefan Agner wrote: >> From: Stefan Agner <stefan.ag...@toradex.com> >> >> This macro allows to detect whether the USB PHY is active. This >> is helpful to detect if the boot ROM has previously sta

Re: [U-Boot] [PATCH v3 1/2] imx: add macro to detect whether USB PHY is active

2017-09-13 Thread Stefan Agner
Sorry, the subject should have been v4. -- Stefan On 2017-09-13 14:29, Stefan Agner wrote: > From: Stefan Agner <stefan.ag...@toradex.com> > > This macro allows to detect whether the USB PHY is active. This > is helpful to detect if the boot ROM has previously starte

[U-Boot] [PATCH v3 1/2] imx: add macro to detect whether USB PHY is active

2017-09-13 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> This macro allows to detect whether the USB PHY is active. This is helpful to detect if the boot ROM has previously started the USB serial downloader. The idea is taken from the mfgtool support in the NXP U-Boot: http://git.freescale.com/git/cg

[U-Boot] [PATCH v3 2/2] imx_common: detect USB serial downloader reliably

2017-09-13 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> The current mechanism using SCR/GPR registers work well when the serial downloader boot mode has been selected explicitly (either via boot mode pins or using bmode command). However, in case the system entered boot ROM due to unbootable primar

[U-Boot] [PATCH v3 1/2] imx: add macro to detect whether USB PHY is active

2017-09-12 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> This macro allows to detect whether the USB PHY is active. This is helpful to detect if the boot ROM has previously started the USB serial downloader. The idea is taken from the mfgtool support in the NXP U-Boot: http://git.freescale.com/git/cg

[U-Boot] [PATCH v3 2/2] imx_common: detect USB serial downloader reliably

2017-09-12 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> The current mechanism using SCR/GPR registers work well when the serial downloader boot mode has been selected explicitly (either via boot mode pins or using bmode command). However, in case the system entered boot ROM due to unbootable primar

Re: [U-Boot] [PATCH v2 0/8] imx: add USB Serial Download Protocol (SDP) support

2017-09-11 Thread Stefan Agner
ript... -- Stefan > > Regards, > Vincent > > > 2017-09-08 18:37 GMT+02:00 Stefan Agner <ste...@agner.ch>: >> Hi Vincent, >> >> On 2017-09-08 01:27, Vincent Prince wrote: >>> Hi everyone, >>> >>> I managed to get SDP protocol to work wi

Re: [U-Boot] [PATCH v2 2/2] imx_common: detect USB serial downloader reliably

2017-09-08 Thread Stefan Agner
On 2017-09-08 17:41, Eric Nelson wrote: > Hi Stefan, > > On 09/08/2017 05:35 PM, Fabio Estevam wrote: >> On Fri, Sep 8, 2017 at 8:35 PM, Stefan Agner <ste...@agner.ch> wrote: >> >>> + /* >>> +* The above method does not detect that the b

Re: [U-Boot] [PATCH v2 2/2] imx_common: detect USB serial downloader reliably

2017-09-08 Thread Stefan Agner
On 2017-09-08 16:41, Eric Nelson wrote: > Hi Stefan, > > On 09/08/2017 04:35 PM, Stefan Agner wrote: >> From: Stefan Agner <stefan.ag...@toradex.com> >> >> The current mechanism using SCR/GPR registers work well when >> the serial downloader boot mode has

[U-Boot] [PATCH v2 2/2] imx_common: detect USB serial downloader reliably

2017-09-08 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> The current mechanism using SCR/GPR registers work well when the serial downloader boot mode has been selected explicitly (either via boot mode pins or using bmode command). However, in case the system entered boot ROM due to unbootable primar

[U-Boot] [PATCH v2 1/2] imx: add macro to detect whether USB PHY is active

2017-09-08 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> This macro allows to detect whether the USB PHY is active. This is helpful to detect if the boot ROM has previously started the USB serial downloader. The idea is taken from the mfgtool support in the NXP U-Boot: http://git.freescale.com/git/cg

Re: [U-Boot] [PATCH v2 0/8] imx: add USB Serial Download Protocol (SDP) support

2017-09-08 Thread Stefan Agner
tb:load 0x1210 #Load script to $loadaddr and jump to it boot-sdp.scr:load 0x1200,jump 0x1200 -- Stefan > > Am I missing something, > Thanks, > Vincent > > 2017-09-01 22:09 GMT+02:00 Stefan Agner <ste...@agner.ch>: >> >> >> On September 1, 2017

Re: [U-Boot] [RFC] toradex: imx6: Move g_dnl_bind_fixup() into common SPL code

2017-09-05 Thread Stefan Agner
On 03.09.2017 07:56, Fabio Estevam wrote: > From: Fabio Estevam > > Instead of having every board file to add its own g_dnl_bind_fixup() > implementation, move it to the common imx6 SPL code. > > Signed-off-by: Fabio Estevam > --- > Stefan, > > I

Re: [U-Boot] [PATCH v1 1/2] imx: add macro to detect whether USB has been initialized

2017-09-05 Thread Stefan Agner
On 2017-09-05 09:18, Fabio Estevam wrote: > On Tue, Sep 5, 2017 at 1:05 PM, Stefan Agner <ste...@agner.ch> wrote: > >> i.MX 7 has a Boot Information structure which is passed from the Boot >> ROM, so we have a much cleaner method there. >> http://git.denx.de/?p=u-boo

Re: [U-Boot] [PATCH v1 1/2] imx: add macro to detect whether USB has been initialized

2017-09-05 Thread Stefan Agner
On 2017-09-05 06:45, Fabio Estevam wrote: > Hi Stefano, > > On Tue, Sep 5, 2017 at 8:16 AM, Stefano Babic wrote: > >> Maybe we get some further info from our "insider" (Fabio, Peng). It will >> be very interesting to know if we can apply this to all spectrum from >> i.MX6, or if

Re: [U-Boot] [PATCH v1 1/2] imx: add macro to detect whether USB has been initialized

2017-09-05 Thread Stefan Agner
On 2017-09-05 04:13, Fabio Estevam wrote: > Hi Stefan, > > On Mon, Sep 4, 2017 at 10:21 PM, Stefan Agner <ste...@agner.ch> wrote: >> From: Stefan Agner <stefan.ag...@toradex.com> >> >> This macro allows to detect whether the boot ROM initialized USB >>

Re: [U-Boot] [PATCH v1 1/2] imx: add macro to detect whether USB has been initialized

2017-09-04 Thread Stefan Agner
On 2017-09-04 19:57, Eric Nelson wrote: > Hi Stefan, > > On 09/04/2017 06:21 PM, Stefan Agner wrote: >> From: Stefan Agner <stefan.ag...@toradex.com> >> >> This macro allows to detect whether the boot ROM initialized USB >> already (serial download

[U-Boot] [PATCH v1 2/2] imx_common: detect USB serial downloader reliably

2017-09-04 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> The current mechanism using SCR/GPR registers work well when the serial downloader boot mode has been selected explicitly (either via boot mode pins or using bmode command). However, in case the system entered boot ROM due to unbootable primar

[U-Boot] [PATCH v1 1/2] imx: add macro to detect whether USB has been initialized

2017-09-04 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> This macro allows to detect whether the boot ROM initialized USB already (serial downloader). This is helpful to reliably detect if the system has been recovered via USB serial downloader. Signed-off-by: Stefan Agner <stefan.ag...@toradex.c

Re: [U-Boot] [PATCH v2 0/8] imx: add USB Serial Download Protocol (SDP) support

2017-09-01 Thread Stefan Agner
On September 1, 2017 12:25:44 PM PDT, Fabio Estevam wrote: >On Fri, Sep 1, 2017 at 3:54 PM, Fabio Estevam >wrote: > >> I have tested this method and it works, thanks. >> >> Do you plan to usptream this method? > >Or I can also put your patch as part of

Re: [U-Boot] [PATCH v2 0/8] imx: add USB Serial Download Protocol (SDP) support

2017-09-01 Thread Stefan Agner
On 2017-09-01 09:48, Fabio Estevam wrote: > Hi Stefan, > > On Wed, Aug 16, 2017 at 3:00 PM, Stefan Agner <ste...@agner.ch> wrote: >> From: Stefan Agner <stefan.ag...@toradex.com> >> >> This series adds NXP's Serial Download Protocol (SDP) support via >>

[U-Boot] [PATCH v1] imx: remove SATA boot mode for i.MX 6UL and 6ULL

2017-08-29 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> The NXP i.MX 6UL and 6ULL do not support SATA and have no SATA boot mode, hence remove it from the boot device detecion. This fixes a build error introduced with 3bd1642d4d50 ("imx: fix USB boot mode detection for i.MX 6UL and 6U

Re: [U-Boot] [PATCH v1 2/2] imx: use BOOT_DEVICE_BOARD instead of UART

2017-08-27 Thread Stefan Agner
On 2017-08-27 13:21, Sébastien Szymanski wrote: > Hello, > >> On 27 Aug 2017, at 21:17, Stefan Agner <ste...@agner.ch> wrote: >> >> On 2017-08-27 01:45, Sébastien Szymanski wrote: >>> Hello, >>> >>>> On 25 Aug 2017, at 13:33, Stefano

Re: [U-Boot] [PATCH v1 2/2] imx: use BOOT_DEVICE_BOARD instead of UART

2017-08-27 Thread Stefan Agner
On 2017-08-27 01:45, Sébastien Szymanski wrote: > Hello, > >> On 25 Aug 2017, at 13:33, Stefano Babic <sba...@denx.de> wrote: >> >> On 16/08/2017 02:49, Stefan Agner wrote: >>> From: Stefan Agner <stefan.ag...@toradex.com> >>> >>&g

[U-Boot] [PATCH] disk: part: align buffer so it can be used with DMA enabled drivers

2017-08-23 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> When using ISO partitions with a DMA enabled block device driver reading the ISO partition leads to unaligned DMA operations: CACHE: Misaligned operation at range [bffb7da8, bffb85a8] Align the buffer to make sure we pass a buffer which

[U-Boot] [PATCH v2 7/8] apalis/colibri_imx6: use independent USB PID for SPL

2017-08-16 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Use a completely independent USB Product ID for SPL. This allows to differentiate a SDP running in SPL and SDP running in a U-Boot which could not read the config block successfully. Signed-off-by: Stefan Agner <stefan.ag...@toradex.c

[U-Boot] [PATCH v2 5/8] spl: add serial download protocol (SDP) support

2017-08-16 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Add USB serial download protocol support to SPL. If the SoC started in recovery mode the SPL will immediately switch to SDP and wait for further downloads/commands from the host side. Signed-off-by: Stefan Agner <stefan.ag...@toradex.com&

[U-Boot] [PATCH v2 4/8] cmd: add sdp command

2017-08-16 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Add a new command to start USB Serial Download Protocol (SDP) state machine. Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> Reviewed-by: Łukasz Majewski <lu...@denx.de> Reviewed-by: Stefano Babic <sba...@denx.de> ---

[U-Boot] [PATCH v2 6/8] doc: add Serial Download Protocol documentation

2017-08-16 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Document the U-Boot Serial Download Protocol implementation and some typical use cases. Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> --- This ended up to be almost more a imx_usb documentation. But there is really not much to d

[U-Boot] [PATCH v2 8/8] apalis/colibri_imx6: enable SDP by default

2017-08-16 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Enable Serial Download Protocol (SDP) in SPL and U-Boot. This is useful to make use of imx_usb to download the complete U-Boot (u-boot.img) after SPL has been downloaded. The U-Boot command sdp allows to enumerate as SDP capable device agai

[U-Boot] [PATCH v2 3/8] usb: gadget: sdp: extend images compatible for jumps

2017-08-16 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Support U-Boot images in SPL so that u-boot.img files can be directly downloaded and executed. Furthermore support U-Boot scripts download and execution in full U-Boot so that custom recovery actions can be downloaded from the host in a thir

[U-Boot] [PATCH v2 2/8] usb: gadget: add SDP driver

2017-08-16 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Add SDP (Serial Downloader Protocol) implementation for U-Boot. The protocol is used in NXP SoC's boot ROM and allows to download program images. Beside that, it can also be used to read/write registers and download complete Device Configuratio

[U-Boot] [PATCH v2 1/8] imx: move imximage header to common location

2017-08-16 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Move the imximage.h header file to a common location so we can make use of it from U-Boot too. Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> Reviewed-by: Łukasz Majewski <lu...@denx.de> --- Changes in v2: None

[U-Boot] [PATCH v2 0/8] imx: add USB Serial Download Protocol (SDP) support

2017-08-16 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> This series adds NXP's Serial Download Protocol (SDP) support via USB for SPL/U-Boot. It allows to download U-Boot via USB from a (recovered) SPL using the same tools used to download SPL itself (specifically imx_usb, but also sb_loader seems t

[U-Boot] [PATCH v1 2/2] imx: use BOOT_DEVICE_BOARD instead of UART

2017-08-15 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> i.MX 6 serial downloader is not necessarily booting via UART but can also boot from USB. In fact only some i.MX chips have serial downloader support via UART (e.g. 6UL/ULL and Vybrid) but all of them have serial downloader support via US

[U-Boot] [PATCH v1 1/2] imx: fix USB boot mode detection for i.MX 6UL and 6ULL

2017-08-15 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Add the reserved boot mode used in the bmode command for i.MX 6UL and 6ULL as introduced in commit 3fd9579085fa ("imx: mx6ull: fix USB bmode for i.MX 6UL and 6ULL"). Also replace BMODE_UART with BMODE_RESERVED, which is more app

Re: [U-Boot] [PATCH v1 2/7] usb: gadget: add SDP driver

2017-08-15 Thread Stefan Agner
On 2017-08-10 01:14, Stefano Babic wrote: > Hi Stefan, > > On 05/08/2017 01:38, Stefan Agner wrote: >> From: Stefan Agner <stefan.ag...@toradex.com> >> >> Add SDP (Serial Downloader Protocol) implementation for U-Boot. The >> protocol is used in NXP SoC's

Re: [U-Boot] [PATCH v1 5/7] spl: add serial download protocol (SDP) support

2017-08-08 Thread Stefan Agner
Stefano, One question below: On 2017-08-04 16:38, Stefan Agner wrote: > From: Stefan Agner <stefan.ag...@toradex.com> > > Add USB serial download protocol support to SPL. If the SoC started > in recovery mode the SPL will immediately switch to SDP and wait for > further do

Re: [U-Boot] [PATCH v1 5/7] spl: add serial download protocol (SDP) support

2017-08-08 Thread Stefan Agner
On 2017-08-08 03:43, Lothar Waßmann wrote: > Hi, > > On Fri, 4 Aug 2017 16:38:11 -0700 Stefan Agner wrote: >> From: Stefan Agner <stefan.ag...@toradex.com> >> >> Add USB serial download protocol support to SPL. If the SoC started >> in recovery mode

Re: [U-Boot] [PATCH v1 0/7] imx: add USB Serial Download Protocol (SDP) support

2017-08-08 Thread Stefan Agner
On 2017-08-08 02:15, Stefano Babic wrote: > Hi Stefan, > > On 07/08/2017 20:06, Stefan Agner wrote: >> Hi Eric, >> >> On 2017-08-06 08:19, Eric Nelson wrote: >>> Hi Stefan, >>> >>> On 08/04/2017 04:38 PM, Stefan Agner wrote: >>>> F

Re: [U-Boot] [PATCH v1 0/7] imx: add USB Serial Download Protocol (SDP) support

2017-08-07 Thread Stefan Agner
Hi Eric, On 2017-08-06 08:19, Eric Nelson wrote: > Hi Stefan, > > On 08/04/2017 04:38 PM, Stefan Agner wrote: >> From: Stefan Agner <stefan.ag...@toradex.com> >> >> This series adds NXP's Serial Download Protocol (SDP) support via >> USB for SPL/U-Boot. It

[U-Boot] [PATCH v1 5/7] spl: add serial download protocol (SDP) support

2017-08-04 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Add USB serial download protocol support to SPL. If the SoC started in recovery mode the SPL will immediately switch to SDP and wait for further downloads/commands from the host side. Signed-off-by: Stefan Agner <stefan.ag...@to

[U-Boot] [PATCH v1 6/7] apalis/colibri_imx6: use independent USB PID for SPL

2017-08-04 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Use a completely independent USB Product ID for SPL. This allows to differentiate a SDP running in SPL and SDP running in a U-Boot which could not read the config block successfully. Signed-off-by: Stefan Agner <stefan.ag...@toradex.c

[U-Boot] [PATCH v1 7/7] apalis/colibri_imx6: enable SDP by default

2017-08-04 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Enable Serial Download Protocol (SDP) in SPL and U-Boot. This is useful to make use of imx_usb to download the complete U-Boot (u-boot.img) after SPL has been downloaded. The U-Boot command sdp allows to enumerate as SDP capable device agai

[U-Boot] [PATCH v1 2/7] usb: gadget: add SDP driver

2017-08-04 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Add SDP (Serial Downloader Protocol) implementation for U-Boot. The protocol is used in NXP SoC's boot ROM and allows to download program images. Beside that, it can also be used to read/write registers and download complete Device Configuratio

[U-Boot] [PATCH v1 4/7] cmd: add sdp command

2017-08-04 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Add a new command to start USB Serial Download Protocol (SDP) state machine. Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> --- cmd/Kconfig | 7 +++ cmd/Makefile | 1 + cmd/usb_gadge

[U-Boot] [PATCH v1 3/7] usb: gadget: sdp: extend images compatible for jumps

2017-08-04 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Support U-Boot images in SPL so that u-boot.img files can be directly downloaded and executed. Furthermore support U-Boot scripts download and execution in full U-Boot so that custom recovery actions can be downloaded from the host in a thir

[U-Boot] [PATCH v1 1/7] imx: move imximage header to common location

2017-08-04 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Move the imximage.h header file to a common location so we can make use of it from U-Boot too. Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> --- {tools => include}/imximage.h | 0 1 file changed, 0 insertions(+), 0 delet

[U-Boot] [PATCH v1 0/7] imx: add USB Serial Download Protocol (SDP) support

2017-08-04 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> This series adds NXP's Serial Download Protocol (SDP) support via USB for SPL/U-Boot. It allows to download U-Boot via USB from a (recovered) SPL using the same tools used to download SPL itself (specifically imx_usb, but also sb_loader seems t

Re: [U-Boot] [PATCH] imx: mx6ull: fix USB bmode for i.MX 6UL and 6ULL

2017-06-12 Thread Stefan Agner
Message d'origine- >> De : Fabio Estevam [mailto:feste...@gmail.com] >> Envoyé : samedi 10 juin 2017 00:10 >> À : Stefan Agner <ste...@agner.ch>; Esponde, Joel >> <joel.espo...@honeywell.com> >> Cc : Stefano Babic <sba...@denx.de>; Fabio Estevam

[U-Boot] [PATCH] imx: mx6ull: fix USB bmode for i.MX 6UL and 6ULL

2017-06-09 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> i.MX 6UL and 6ULL have different boot device capabilities and use therefor use a different boot device selection table than other i.MX 6 devices. Particularly, the value which has been used so far (b0001) is assigned to QSPI boot for these two d

Re: [U-Boot] [PATCH v3 6/6] board: toradex: colibri_vf: Add DCU support for Colibri Vybrid

2017-04-12 Thread Stefan Agner
On 2017-04-12 09:14, Stefano Babic wrote: > Hi Stefan, > > On 11/04/2017 07:42, Sanchayan Maity wrote: >> From: Stefan Agner <stefan.ag...@toradex.com> >> > > The series is assigned to Anatolji, that the reason I do not merge. Oh I see, in this case, Anatolij, a

Re: [U-Boot] [PATCH v3 0/6] Introduce DCU support for Vybrid

2017-04-11 Thread Stefan Agner
: > https://lists.denx.de/pipermail/u-boot/2017-February/280281.html > > v2: > https://www.mail-archive.com/u-boot@lists.denx.de/msg243132.html > > Thanks & Regards, > Sanchayan. > > Sanchayan Maity (1): > Convert CONFIG_FSL_DCU_FB to Kconfig > > Stef

<    1   2   3   4   5   6   7   8   >