Re: [U-Boot] [PATCH v3 1/6] Convert CONFIG_FSL_DCU_FB to Kconfig

2017-04-11 Thread Stefan Agner
On 2017-04-10 22:42, Sanchayan Maity wrote: > Rename CONFIG_FSL_DCU_FB to CONFIG_VIDEO_FSL_DCU_FB > and convert it to Kconfig. Looks good to me. Reviewed-by: Stefan Agner <stefan.ag...@toradex.com> -- Stefan > > Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com&g

Re: [U-Boot] [PATCH 1/8] arm: dts: imx7: sync with Linux

2017-04-10 Thread Stefan Agner
Hi Peng, On 10.04.2017 04:51, Peng Fan wrote: > Sync with Linux commit commit 308ac756("Merge tag 'gpio-v4.11-3'"). > > Signed-off-by: Peng Fan <peng@nxp.com> > Cc: Stefan Agner <stefan.ag...@toradex.com> > Cc: Stefano Babic <sba...@denx.de

Re: [U-Boot] [PATCH 0/3] imx: bootaux elf firmware support

2017-04-05 Thread Stefan Agner
On 2017-04-05 12:10, Tom Rini wrote: > On Wed, Apr 05, 2017 at 11:20:43AM -0700, Stefan Agner wrote: >> On 2017-04-05 08:15, Lukasz Majewski wrote: >> > Hi Stefan, >> > >> >> On 2017-04-04 01:23, Lukasz Majewski wrote: >> >> > Hi Stefan, >&

Re: [U-Boot] [PATCH 0/3] imx: bootaux elf firmware support

2017-04-05 Thread Stefan Agner
tefan, >> >> > >> >> > Thanks for your patch. Please allow me to share some ideas for >> >> > improvements. >> >> > >> >> >> From: Stefan Agner <stefan.ag...@toradex.com> >> >> >> >> >> >

Re: [U-Boot] [PATCH] libfdt: fix build with Python 3

2017-04-05 Thread Stefan Agner
On 2017-03-31 21:23, Simon Glass wrote: > On 29 March 2017 at 13:41, Stefan Agner <ste...@agner.ch> wrote: >> From: Stefan Agner <stefan.ag...@toradex.com> >> >> For some reason Python 3 seems to think it does not need to build >> the library.

Re: [U-Boot] [PATCH] libfdt: fix build with Python 3

2017-04-05 Thread Stefan Agner
On 2017-04-05 10:26, Stefano Babic wrote: > Hi Stefan, > > On 04/04/2017 20:44, Stefan Agner wrote: >> On 2017-04-04 01:53, Stefano Babic wrote: >>> Hi Stefan, >>> >>> On 03/04/2017 23:02, Stefan Agner wrote: >>> >>>> But then, I do

Re: [U-Boot] [PATCH 0/3] imx: bootaux elf firmware support

2017-04-04 Thread Stefan Agner
On 2017-04-04 13:17, Marek Vasut wrote: > On 04/04/2017 09:45 PM, Stefan Agner wrote: >> On 2017-04-04 11:38, Marek Vasut wrote: >>> On 04/04/2017 07:57 PM, Stefan Agner wrote: >>>> On 2017-04-04 02:22, Marek Vasut wrote: >>>>&g

Re: [U-Boot] [PATCH 0/3] imx: bootaux elf firmware support

2017-04-04 Thread Stefan Agner
On 2017-04-04 11:38, Marek Vasut wrote: > On 04/04/2017 07:57 PM, Stefan Agner wrote: >> On 2017-04-04 02:22, Marek Vasut wrote: >>> On 04/04/2017 02:02 AM, Stefan Agner wrote: >>> [...] >>>>>>> Admitedly, I didn't look at the patch, but if you want

Re: [U-Boot] [PATCH 0/3] imx: bootaux elf firmware support

2017-04-04 Thread Stefan Agner
On 2017-04-04 01:23, Lukasz Majewski wrote: > Hi Stefan, > >> Hi Lukasz, >> >> On 2017-04-03 04:20, Lukasz Majewski wrote: >> > Hi Stefan, >> > >> > Thanks for your patch. Please allow me to share some ideas for >> > improveme

Re: [U-Boot] [PATCH] libfdt: fix build with Python 3

2017-04-04 Thread Stefan Agner
On 2017-04-04 01:53, Stefano Babic wrote: > Hi Stefan, > > On 03/04/2017 23:02, Stefan Agner wrote: > >> But then, I don't expect that "/usr/bin/env python" is looking at >> PYTHON. >> >> As far as I understand env, it just looks up the curr

Re: [U-Boot] [PATCH 0/3] imx: bootaux elf firmware support

2017-04-04 Thread Stefan Agner
On 2017-04-04 02:22, Marek Vasut wrote: > On 04/04/2017 02:02 AM, Stefan Agner wrote: > [...] >>>>> Admitedly, I didn't look at the patch, but if you want to boot ad-hoc >>>>> cores, you can very well also boot secondary cores on the current CPU >

Re: [U-Boot] [PATCH 0/3] imx: bootaux elf firmware support

2017-04-03 Thread Stefan Agner
On 2017-04-03 16:34, Marek Vasut wrote: > On 04/04/2017 12:42 AM, Stefan Agner wrote: >> On 2017-04-03 15:07, Marek Vasut wrote: >>> On 04/03/2017 11:36 PM, Stefan Agner wrote: >>>> Hi Lukasz, >>>> >>>> On 2017-04-03 04:20, Lukasz Majewski wro

Re: [U-Boot] [PATCH 0/3] imx: bootaux elf firmware support

2017-04-03 Thread Stefan Agner
On 2017-04-03 15:07, Marek Vasut wrote: > On 04/03/2017 11:36 PM, Stefan Agner wrote: >> Hi Lukasz, >> >> On 2017-04-03 04:20, Lukasz Majewski wrote: >>> Hi Stefan, >>> >>> Thanks for your patch. Please allow me to share some ideas for >>

Re: [U-Boot] [PATCH 0/3] imx: bootaux elf firmware support

2017-04-03 Thread Stefan Agner
Hi Lukasz, On 2017-04-03 04:20, Lukasz Majewski wrote: > Hi Stefan, > > Thanks for your patch. Please allow me to share some ideas for > improvements. > >> From: Stefan Agner <stefan.ag...@toradex.com> >> >> This patchset enables to boot elf binari

Re: [U-Boot] [PATCH] libfdt: fix build with Python 3

2017-04-03 Thread Stefan Agner
On 2017-04-03 10:35, Stefano Babic wrote: > Hi Stefan, > > On 03/04/2017 18:41, Stefan Agner wrote: >> Hi Stefano, >> >> On 2017-04-03 03:30, Stefano Babic wrote: >>> Hi Stefan, >>> >>> On 29/03/2017 21:41, Stefan Agner wrote: >>>>

Re: [U-Boot] [PATCH] libfdt: fix build with Python 3

2017-04-03 Thread Stefan Agner
Hi Stefano, On 2017-04-03 03:30, Stefano Babic wrote: > Hi Stefan, > > On 29/03/2017 21:41, Stefan Agner wrote: >> From: Stefan Agner <stefan.ag...@toradex.com> >> >> For some reason Python 3 seems to think it does not need to build >> the library.

Re: [U-Boot] Compile v2017.03 on a system where Python 3 is default

2017-03-30 Thread Stefan Agner
On 2017-03-30 10:54, Jelle van der Waa wrote: > On 03/28/17 at 05:30pm, Stefan Agner wrote: >> Hi, >> >> When I try to compile U-Boot on my Arch Linux system I get the following > > Python 3 needs some more TLC, I've been hacking on making binman work > out of the bo

Re: [U-Boot] [PATCH v2 4/6] video: fsl_dcu_fb: Update DCU layers for Vybrid

2017-03-30 Thread Stefan Agner
On 2017-03-30 00:14, Sanchayan Maity wrote: > From: Stefan Agner <stefan.ag...@toradex.com> > > Users control the graphical content of the panel by manipulating > configuration of elements in DCU4 called layers. The number of > layers is different for Vybrid and

[U-Boot] [PATCH 1/3] imx: imx-common: move aux core image parsing to common code

2017-03-29 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> For i.MX 6SoloX/i.MX 7 simple binary files are used to boot the auxiliary CPU core (Cortex-M4). This patch moves the "parsing" of this binary firmwares to the SoC independent code. This allows to add different binary formats mor

[U-Boot] [PATCH 3/3] ARM: vf610: add auxiliary core boot support

2017-03-29 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Use i.MX bootaux support introduced for i.MX 6SoloX/i.MX 7 for Vybrid too. Starting the Cortex-M4 core on Vybrid works a bit differently, naemly it uses a GPR register to define the initial PC. There is no way to define the initial stack (the

[U-Boot] [PATCH 2/3] imx: imx-common: add elf firmware support

2017-03-29 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Support elf firmware files for the auxiliary Cortex-M4 core. This has the advantage that the user does not need to know to which address the binary has been linked to. However, in order to load the elf sections to the right address, w

[U-Boot] [PATCH 0/3] imx: bootaux elf firmware support

2017-03-29 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> This patchset enables to boot elf binaries on secondary Cortex-M class cores available on i.MX 6SoloX/7Solo/7Dual. This makes handling and loading firmwares much more convinient since all information where the firmware has to be loaded to is con

[U-Boot] [PATCH] libfdt: fix build with Python 3

2017-03-29 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> For some reason Python 3 seems to think it does not need to build the library. Using the --force parameter makes sure that the library gets built always. This is especially important since we move the library in the next step of the Makefile,

[U-Boot] Compile v2017.03 on a system where Python 3 is default

2017-03-28 Thread Stefan Agner
Hi, When I try to compile U-Boot on my Arch Linux system I get the following error: LDFLAGS="" python ./lib/libfdt/setup.py \ "-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer-include ./include/libfdt_env.h -idirafterinclude -idirafter./arch/arm/include -I./lib/libfdt -I./tools

[U-Boot] [PATCH] ARM: vf610: move to standard arch/board approach

2017-03-13 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Move Freescale/NXP Vybrid to a standard arch/board approach, similar to what has been done to i.MX 6 earlier in commit 89ebc82137be ("ARM: mx6: move to a standard arch/board approach"). Signed-off-by: Stefan Agner <stefa

[U-Boot] [PATCH 7/7] colibri_imx7: split and resize firmware MTD partition

2017-03-09 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Use two separate partitions for the two firmware instances. Also resize them to be of the same size which also makes the start of the UBI partition nicely aligned to 0x40. In order to detect the new MTD layout and whether we run a

[U-Boot] [PATCH 6/7] colibri_imx7: use device-tree for MTD partitions

2017-03-09 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Use device-tree fixup to communicate the MTD partitions to the kernel. Remove mtdparts from the kernel command line. Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> --- board/toradex/colibri_imx7/colibri_imx7.c | 13 ++

[U-Boot] [PATCH 4/7] colibri_imx7: implement board level USB PHY mode

2017-03-09 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Implement board level USB PHY mode callback. On USB OTG Port 1 the Colibri standard foresees GPIO USBC_DET to decide whether the port should run in Host or Device mode. Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> --- b

[U-Boot] [PATCH 5/7] colibri_imx7: setup PMIC sleep mode configuration

2017-03-09 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Disable 3.3V Ethernet and ARM rail when entering sleep mode. Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> --- board/toradex/colibri_imx7/colibri_imx7.c | 16 1 file changed, 16 insertions(+) diff --git a/b

[U-Boot] [PATCH 2/7] toradex apalis/colibri: add device tree overlay support

2017-03-09 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Device tree overlays might prove useful in the future, enable it by default on all Toradex modules. Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> Acked-by: Max Krummenacher <max.krummenac...@toradex.com> --- configs/apa

[U-Boot] [PATCH 3/7] colibri_imx7/colibri_imx6/apalis_imx6: limit bootm memory

2017-03-09 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Limit memory used for relocation of FDT or initrd. This is required to make sure that relocated artifacts are within lowmem. If fdt_high or initrd_high are not set, U-Boot automatically relocates artifacts to the end of memory. But this area

[U-Boot] [PATCH 1/7] toradex apalis/colibri: use common USB product id fallback

2017-03-09 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> All modules use the common g_dnl_bind_fixup implementaton which calculates the PID according to product id (read from the config block) plus offset of 0x4000. In case there is no config block support (e.g. SPL) or in case the config

[U-Boot] [PATCH 0/7] Toradex config cleanup and Colibri iMX7 enhencements

2017-03-09 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> The first two patches are common to all our modules, the next is touching all our NXP based modules and the rest of the patches are Colibri iMX7 related. Since all patches touch defconfig splitting them would lead to merge issues, so I kep

Re: [U-Boot] [PATCH v3 1/2] Convert CONFIG_SPL_RAM_DEVICE to defconfig

2017-01-14 Thread Stefan Agner
Hi Tom, I think this did not get applied yet? -- Stefan On 2016-12-22 22:51, Stefan Agner wrote: > From: Stefan Agner <stefan.ag...@toradex.com> > > This converts the following to Kconfig: > CONFIG_SPL_RAM_DEVICE > > Signed-off-by: Stefan Agner <stefan.ag...@tora

[U-Boot] [PATCH] imx_common: check for bmode Serial Downloader

2016-12-27 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Before commit 81c4eccb55cc ("imx: mx6: fix USB bmode to use reserved value") a non-reserved value has been used to trigger Serial Downloader using bmode, which translated to a GPR9 value of 0x10. However, on some boards the non-res

[U-Boot] [PATCH v3 2/2] spl: move RAM boot support in separate file

2016-12-22 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Add a new top-level config option so support booting an image stored in RAM. This allows to move the RAM boot support into a sparate file and having a single condition to compile that file. Signed-off-by: Stefan Agner <stefan.ag...@to

[U-Boot] [PATCH v3 1/2] Convert CONFIG_SPL_RAM_DEVICE to defconfig

2016-12-22 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> This converts the following to Kconfig: CONFIG_SPL_RAM_DEVICE Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> --- Changes in v3: None Changes in v2: None common/spl/Kconfig | 9 + include/config

[U-Boot] [PATCH v2 1/2] Convert CONFIG_SPL_RAM_DEVICE to defconfig

2016-12-20 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> This converts the following to Kconfig: CONFIG_SPL_RAM_DEVICE Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> --- Changes in v2: None common/spl/Kconfig | 8 configs/apalis_t30_defconfig

[U-Boot] [PATCH v2 2/2] spl: move RAM boot support in separate file

2016-12-20 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Add a new top-level config option so support booting an image stored in RAM. This allows to move the RAM boot support into a sparate file and having a single condition to compile that file. Signed-off-by: Stefan Agner <stefan.ag...@to

[U-Boot] [PATCH v2 1/2] libfdt: Correct fdt handling of overlays without fixups and base trees without symbols

2016-12-20 Thread Stefan Agner
s lead to the code returning misleading error codes in failing cases. [ DTC commit: 7d8ef6e1db9794f72805a0855f4f7f12fadd03d3 ] Signed-off-by: David Gibson <da...@gibson.dropbear.id.au> Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> --- Changes in v2: - Backported patch from l

[U-Boot] [PATCH v2 2/2] cmd: fdt: Print error message when fdt application fails

2016-12-20 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> There are lots of reason why a FDT application might fail, the error code might give an indication. Let the error code translate in a error string so users can try to understand what went wrong. Signed-off-by: Stefan Agner <stefan.ag...@to

Re: [U-Boot] [PATCH 2/2] spl: move RAM boot support in separate file

2016-12-20 Thread Stefan Agner
On 2016-12-16 06:08, Stefan Roese wrote: > On 16.12.2016 03:00, Stefan Agner wrote: >> From: Stefan Agner <stefan.ag...@toradex.com> >> >> Add a new top-level config option so support booting an image stored >> in RAM. This allows to move the RAM boot support

Re: [U-Boot] [PATCH 1/2] libfdt: overlay: Fix missing symbols condition

2016-12-17 Thread Stefan Agner
On 2016-12-16 01:32, Maxime Ripard wrote: > On Thu, Dec 15, 2016 at 03:03:26PM -0800, Stefan Agner wrote: >> From: Stefan Agner <stefan.ag...@toradex.com> >> >> When there is no symbols section in the device tree, >> overlay_fixup_phandles shoul

[U-Boot] [PATCH 2/2] spl: move RAM boot support in separate file

2016-12-15 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Add a new top-level config option so support booting an image stored in RAM. This allows to move the RAM boot support into a sparate file and having a single condition to compile that file. Signed-off-by: Stefan Agner <stefan.ag...@to

[U-Boot] [PATCH 1/2] Convert CONFIG_SPL_RAM_DEVICE to defconfig

2016-12-15 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> This converts the following to Kconfig: CONFIG_SPL_RAM_DEVICE Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> --- common/spl/Kconfig | 8 configs/apalis_t30_defconfig | 1 + configs/beav

[U-Boot] [PATCH 2/2] cmd: fdt: Print error message when fdt application fails

2016-12-15 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> There are lots of reason why a FDT application might fail, the error code might give an indication. Let the error code translate in a error string so users can try to understand what went wrong. Signed-off-by: Stefan Agner <stefan.ag...@to

[U-Boot] [PATCH 1/2] libfdt: overlay: Fix missing symbols condition

2016-12-15 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> When there is no symbols section in the device tree, overlay_fixup_phandles should return FDT_ERR_NOTFOUND instead of FDT_ERR_BADOFFSET. Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> --- lib/libfdt/fdt_overlay.c | 4 ++-- 1 fil

Re: [U-Boot] [PATCH v2 0/6] cleanup and enhancements for Colibri VFxx

2016-12-13 Thread Stefan Agner
On 2016-11-30 13:41, Stefan Agner wrote: > From: Stefan Agner <stefan.ag...@toradex.com> > > This patchset cleans up the board file, speeds up NAND slightly > and enhances the board support with device tree MTD partition > support. > > It also fixes a bug in the ne

[U-Boot] [PATCH v2 6/6] ARM: dts: vf: Fix warning about missing reg property

2016-11-30 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Add proper reg values for the two AIPS bus nodes. This avoids this two warnings: Node /soc/aips-bus@4000 has a unit name, but no reg property Node /soc/aips-bus@4008 has a unit name, but no reg property Signed-off-by: Stefan Agner <

[U-Boot] [PATCH v2 5/6] colibri_vf: use same NAND clock as Linux uses

2016-11-30 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Currently a divider of 6 has been used, leading to following NAND Flash Controller (NFC) clocks: VF61: 27.7 MHz (166.7MHz bus clock) VF50: 22 MHz (132MHz bus clock) The NAND Flash Memory used on VF50 allows to use clock speed of up to 33MHz,

[U-Boot] [PATCH v2 1/6] toradex: fix USB Download gadget fixup callback

2016-11-30 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Use the proper config option to guard the USB Download Function fixup callback. Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> --- Changes in v2: None board/toradex/common/tdx-common.c | 4 ++-- 1 file changed, 2 insertions(+),

[U-Boot] [PATCH v2 3/6] colibri_vf: use device-tree for MTD partitions

2016-11-30 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Use device-tree fixup to communicate the MTD partitions to the kernel. U-Boot's mtdparts environment variable will be used as partition source for the device-tree based partition table too. Signed-off-by: Stefan Agner <stefan.ag...@to

[U-Boot] [PATCH v2 4/6] colibri_vf: cleanup USB clock initialization

2016-11-30 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Use the same preprocessor define to enable clocks as we use to enable the driver. Make sure that the necessary PLL's are on (they get enabled by boot ROM by default, so this is more for completness). Signed-off-by: Stefan Agner <

[U-Boot] [PATCH v2 2/6] toradex: allow custom fdt board setup in board file

2016-11-30 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> The config block support currently uses the ft_board_setup function to patch the device tree with config block information. However, this does not allow to patch the device tree with board specific information. Rename the common setup fu

[U-Boot] [PATCH v2 0/6] cleanup and enhancements for Colibri VFxx

2016-11-30 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> This patchset cleans up the board file, speeds up NAND slightly and enhances the board support with device tree MTD partition support. It also fixes a bug in the new Toradex config block code. Not sure through which tree that should go, espe

[U-Boot] [PATCH v4 0/3] spl: USB Gadget cleanup

2016-11-21 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> This patchset cleans up the SPL USB Gadget Kconfig and Makfile. The first two patches are actual fixes and we might consider to add these two for the v2016.11 release. The third one adds a new config option for cleaner structure. I plan

[U-Boot] [PATCH v4 3/3] spl: add USB Gadget config option

2016-11-21 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Introduce USB Gadget config option. This allows to combine Makefile entries for SPL_USBETH_SUPPORT and SPL_DFU_SUPPORT. Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> Acked-by: Lukasz Majewski <l.majew...@samsung.com> Te

[U-Boot] [PATCH v4 1/3] spl: add RAM boot device only if it is actually defined

2016-11-21 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Some devices (e.g. dra7xx) support loading to RAM using DFU without having direct boot from RAM support. Make sure the linker list does not contain BOOT_DEVICE_RAM if CONFIG_SPL_RAM_DEVICE is not enabled. Fixes: 98136b2f26fa ("s

[U-Boot] [PATCH v4 2/3] spl: dfu: move DFU Kconfig to SPL Kconfig

2016-11-21 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> The DFU Kconfig menu entries should be part of the SPL Kconfig file. Also avoid using the top level Makefile by moving the config dependent build artifacts to the driver/ and driver/usb/gadget/ Makfiles. With that, DFU can be built again

Re: [U-Boot] [PATCH v3 1/3] spl: add RAM boot device only if it is actually defined

2016-11-17 Thread Stefan Agner
On 2016-11-17 17:14, Simon Glass wrote: > Hi Stefan, > > On 15 November 2016 at 14:02, Stefan Agner <ste...@agner.ch> wrote: >> From: Stefan Agner <stefan.ag...@toradex.com> >> >> Some devices (e.g. dra7xx) support loading to RAM using DFU without >> h

Re: [U-Boot] [PATCH] imx: iomux-v3: provide MX7D_PAD_ENET1_RX_CLK__ENET1_RGMII_RXC

2016-11-16 Thread Stefan Agner
On 2016-11-16 12:02, Sebastian Andrzej Siewior wrote: > MX7D_PAD_ENET1_RX_CLK__ENET1_RX_CLK is in its currently RGMII_RXC. > Fix this by providing RX_CLK with properly setting the DAISY value and > MX7D_PAD_ENET1_RX_CLK__ENET1_RGMII_RXC which did the "previous" setting. > There should be no

[U-Boot] [PATCH v3 3/3] spl: add USB Gadget config option

2016-11-15 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Introduce USB Gadget config option. This allows to combine Makefile entries for SPL_USBETH_SUPPORT and SPL_DFU_SUPPORT. Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> --- Changes in v3: - Fix depends on SPL_USB_GADGET_SUP

[U-Boot] [PATCH v3 1/3] spl: add RAM boot device only if it is actually defined

2016-11-15 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Some devices (e.g. dra7xx) support loading to RAM using DFU without having direct boot from RAM support. Make sure the linker list does not contain BOOT_DEVICE_RAM if CONFIG_SPL_RAM_SUPPORT is not enabled. Fixes: 98136b2f26fa ("s

[U-Boot] [PATCH v3 2/3] spl: dfu: move DFU Kconfig to SPL Kconfig

2016-11-15 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> The DFU Kconfig menu entries should be part of the SPL Kconfig file. Also avoid using the top level Makefile by moving the config dependent build artifacts to the driver/ and driver/usb/gadget/ Makfiles. With that, DFU can be built again

[U-Boot] [PATCH v3 0/3] spl: USB Gadget cleanup

2016-11-15 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> This patchset cleans up the SPL USB Gadget Kconfig and Makfile. The first two patches are actual fixes and we might consider to add these two for the v2016.11 release. The third one adds a new config option for cleaner structure. I plan

Re: [U-Boot] [PATCH v2 0/3] spl: USB Gadget cleanup

2016-11-15 Thread Stefan Agner
On 2016-11-15 00:52, B, Ravi wrote: > Stefan > >> From: Stefan Agner <stefan.ag...@toradex.com> > >>This patchset cleans up the SPL USB Gadget Kconfig and Makfile. >>The first two patches are actual fixes and we might consider to add these two >>for t

Re: [U-Boot] [PATCH] nand: force BBT scan for controllers which need it

2016-11-15 Thread Stefan Agner
On 2016-11-14 21:30, Scott Wood wrote: > On Wed, 2016-10-26 at 17:18 -0700, Stefan Agner wrote: >> From: Stefan Agner <stefan.ag...@toradex.com> >> >> Commit 35c204d8a9d0 ("nand: reinstate lazy bad block scanning") >> introduced lazy BBT

[U-Boot] [PATCH v2] arm: mx6: specify SPL padding

2016-11-15 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Specify standard padding for payload to 68KB. This is derived from the maximum header size plus maximum SPL size. It matches the already defined offset for SD/eMMC devices (69KB) too. This allows to use the u-boot-with-spl.imx build target to ge

Re: [U-Boot] [PATCH] arm: mx6: specify SPL padding

2016-11-15 Thread Stefan Agner
On 2016-11-15 10:04, Marek Vasut wrote: > On 11/15/2016 06:42 PM, Stefan Agner wrote: >> On 2016-11-15 08:12, Tom Rini wrote: >>> On Tue, Nov 15, 2016 at 09:59:22AM +, Max Krummenacher wrote: >>>> Hi Stefan >>>> >>>> On Mon, 2016-11-14

Re: [U-Boot] [PATCH] arm: mx6: specify SPL padding

2016-11-15 Thread Stefan Agner
On 2016-11-15 08:12, Tom Rini wrote: > On Tue, Nov 15, 2016 at 09:59:22AM +, Max Krummenacher wrote: >> Hi Stefan >> >> On Mon, 2016-11-14 at 18:06 -0800, Stefan Agner wrote: >> > From: Stefan Agner <stefan.ag...@toradex.com> >> > >> > When

[U-Boot] [PATCH] arm: mx6: specify SPL padding

2016-11-14 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> When building SPL with eMMC boot support, specify standard padding for payload to match the load sector during boot. This allows to use the u-boot-with-spl.imx build target to generate a direcly flashable image which can be flashed using: d

Re: [U-Boot] [PATCH v4 5/7] apalis/colibri_imx7/pxa270/t20/t30/vf: integrate config block handling

2016-11-14 Thread Stefan Agner
_mmc > diff --git a/board/toradex/colibri_t30/Kconfig > b/board/toradex/colibri_t30/Kconfig > index 3e436a2..68ef82b 100644 > --- a/board/toradex/colibri_t30/Kconfig > +++ b/board/toradex/colibri_t30/Kconfig > @@ -9,4 +9,22 @@ config SYS_VENDOR > config SYS_CONFIG_NA

Re: [U-Boot] [PATCH v2 1/3] spl: add RAM boot device only if it is actually defined

2016-11-14 Thread Stefan Agner
On 2016-11-14 12:44, Simon Glass wrote: > Hi Stefan, > > On 12 November 2016 at 12:13, Stefan Agner <ste...@agner.ch> wrote: >> From: Stefan Agner <stefan.ag...@toradex.com> >> >> Some devices (e.g. dra7xx) support loading to RAM using DFU without >> h

[U-Boot] [PATCH v2 0/3] spl: USB Gadget cleanup

2016-11-12 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> This patchset cleans up the SPL USB Gadget Kconfig and Makfile. The first two patches are actual fixes and we might consider to add these two for the v2016.11 release. The third one adds a new config option for cleaner structure. I plan

[U-Boot] [PATCH v2 1/3] spl: add RAM boot device only if it is actually defined

2016-11-12 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Some devices (e.g. dra7xx) support loading to RAM using DFU without having direct boot from RAM support. Make sure the linker list does not contain BOOT_DEVICE_RAM if CONFIG_SPL_RAM_SUPPORT is not enabled. Fixes: 98136b2f26fa ("s

[U-Boot] [PATCH v2 2/3] spl: dfu: move DFU Kconfig to SPL Kconfig

2016-11-12 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> The DFU Kconfig menu entries should be part of the SPL Kconfig file. Also avoid using the top level Makefile by moving the config dependent build artifacts to the driver/ and driver/usb/gadget/ Makfiles. With that, DFU can be built again

[U-Boot] [PATCH v2 3/3] spl: add USB Gadget config option

2016-11-12 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Introduce USB Gadget config option. This allows to combine Makefile entries for SPL_USBETH_SUPPORT and SPL_DFU_SUPPORT. Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> --- Changes in v2: None common/spl/Kconfig

Re: [U-Boot] [PATCH 0/3] Hi all,

2016-11-12 Thread Stefan Agner
On 2016-11-12 00:53, Marek Vasut wrote: > On 11/12/2016 12:47 AM, Stefan Agner wrote: >> Hi Marek, > > Hi! > >> On 11.11.2016 14:33, Marek Vasut wrote: >>> On 11/11/2016 11:18 PM, Stefan Agner wrote: >>>> From: Stefan Agner <stefan.ag...@torade

Re: [U-Boot] [PATCH 0/3] Hi all,

2016-11-11 Thread Stefan Agner
Hi Marek, On 11.11.2016 14:33, Marek Vasut wrote: > On 11/11/2016 11:18 PM, Stefan Agner wrote: >> From: Stefan Agner <stefan.ag...@toradex.com> >> >> >> This cleans up the SPL USB Gadget Kconfig and Makfile a bit. The >> first two patches are actual fix

[U-Boot] [PATCH 2/3] spl: dfu: move DFU Kconfig to SPL Kconfig

2016-11-11 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> The DFU Kconfig menu entries should be part of the SPL Kconfig file. Also avoid using the top level Makefile by moving the config dependent build artifacts to the driver/ and driver/usb/gadget/ Makfiles. With that, DFU can be built again

[U-Boot] [PATCH 3/3] spl: add USB Gadget config option

2016-11-11 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Introduce USB Gadget config option. This allows to combine Makefile entries for SPL_USBETH_SUPPORT and SPL_DFU_SUPPORT. Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> --- common/spl/Kconfig

[U-Boot] [PATCH 1/3] spl: add RAM boot device only if it is actually defined

2016-11-11 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Some devices (e.g. dra7xx) support loading to RAM using DFU without having direct boot from RAM support. Make sure the linker list does not contain BOOT_DEVICE_RAM if CONFIG_SPL_RAM_SUPPORT is not enabled. Fixes: 98136b2f26fa ("s

[U-Boot] [PATCH 0/3] Hi all,

2016-11-11 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> This cleans up the SPL USB Gadget Kconfig and Makfile a bit. The first two patches are actual fixes and we might consider to add them for the v2016.11 release. The third one adds a new config option for cleaner structure. I plan to add anoth

Re: [U-Boot] [PATCH v3 7/7] colibri_vf: usb gadget: toradex pid is now set generically

2016-10-27 Thread Stefan Agner
On 12.10.2016 17:11, Marcel Ziswiler wrote: > From: Max Krummenacher <max.krummenac...@toradex.com> > > remove now unused CONFIG_TRDX_PID_XXX With config block support, we can elaborate the exact module precisely, so removing the old approach makes sense. Acked-by: Stefan A

[U-Boot] [PATCH 3/4] colibri_vf: cleanup USB clock initialization

2016-10-27 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Use the same preprocessor define to enable clocks as we use to enable the driver. Make sure that the necessary PLL's are on (they get enabled by boot ROM by default, so this is more for completness). Signed-off-by: Stefan Agner <

[U-Boot] [PATCH 2/4] colibri_vf: use device-tree for MTD partitions

2016-10-27 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Use device-tree fixup to communicate the MTD partitions to the kernel. U-Boot's mtdparts environment variable will be used as partition source for the device-tree based partition table too. Signed-off-by: Stefan Agner <stefan.ag...@to

[U-Boot] [PATCH 4/4] colibri_vf: use same NAND clock as Linux uses

2016-10-27 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Currently a divider of 6 has been used, leading to following NAND Flash Controller (NFC) clocks: VF61: 27.7 MHz (166.7MHz bus clock) VF50: 22 MHz (132MHz bus clock) The NAND Flash Memory used on VF50 allows to use clock speed of up to 33MHz,

[U-Boot] [PATCH 1/4] toradex: allow custom fdt board setup in board file

2016-10-27 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> The config block support currently uses the ft_board_setup function to patch the device tree with config block information. However, this does not allow to patch the device tree with board specific information. Rename the common setup fu

[U-Boot] [PATCH 0/4] cleanup and enhancements for Colibri VFxx

2016-10-27 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> This patchset cleans up the board file, speeds up NAND slightly and enhances the board support with device tree MTD partition support. The patchset relys on Marcel's Toradex Config Block patchset: https://www.mail-archive.com/u-boot@lists.d

[U-Boot] [PATCH] nand: force BBT scan for controllers which need it

2016-10-26 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Commit 35c204d8a9d0 ("nand: reinstate lazy bad block scanning") introduced lazy BBT scanning. However, some controller do parts of the initialization (mxs_nand.c) during scan_bbt, hence for those controllers the BBT must be scanned a

[U-Boot] [PATCH v3 03/10] arm: dts: imx7: add pinctrl defines

2016-10-05 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Add pinctrl defines for NXP i.MX 7Solo/7Dual SoC. The pinctrl format is compatible to the Linux kernel, hence this file is a simple copy from the Linux kernel (commit 97f5c1817b7e). Signed-off-by: Stefan Agner <stefan.ag...@toradex.com>

[U-Boot] [PATCH v3 00/10] mx7: add dt support for Colibri iMX7S/iMX7D

2016-10-05 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> This patchset adds device tree support for Colibri iMX7S/iMX7D. It is the first device tree enabled board for any i.MX 7 SoC hence the patchset adds some common infrastructure: - Add device tree support for serial_mxc. - imx7.dtsi - I de

[U-Boot] [PATCH v3 09/10] colibri_imx7: use Ricoh RN5T567 to reboot the board

2016-10-05 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Use the external PMIC Ricoh RN5T567 to reliably restart the system. Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> --- board/toradex/colibri_imx7/colibri_imx7.c | 42 +++ 1 file changed, 42 inserti

[U-Boot] [PATCH v3 10/10] configs: enable device tree for Colibri iMX7

2016-10-05 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Enable device tree configuration and specify default device tree for Toradex Colibri iMX7. Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> --- configs/colibri_imx7_defconfig | 10 +- 1 file changed, 9 insertions(+)

[U-Boot] [PATCH v3 07/10] power: pmic: add Ricoh RN5T567 PMIC support

2016-10-05 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Add device model enabled PMIC driver for Ricoh RN5T567 PMIC used on Colibri iMX7. Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> Reviewed-by: Simon Glass <s...@chromium.org> --- doc/device-tree-bindings/pmic/rn5t567.txt |

[U-Boot] [PATCH v3 08/10] arm: dts: imx7: add Ricoh RN5T567 PMIC node

2016-10-05 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Add device tree node for Ricoh RN5T567. Currently we do not need the individual DC/DC converters or LDO's (and they are also not yet supported by the driver). Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> --- arch/arm/dts/imx7

[U-Boot] [PATCH v3 01/10] dm: imx: serial: support device tree

2016-10-05 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Support instatiation through device tree. Also parse the fsl,dte-mode property to determine whether DTE mode shall be used. Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> Reviewed-by: Simon Glass <s...@chromium.org> ---

[U-Boot] [PATCH v3 04/10] arm: dts: imx7: add basic i.MX 7/Colibri iMX7 device tree

2016-10-05 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> Add base device for NXP i.MX 7Solo/7Dual. The two SoC are very similar and hence can share the same device tree for boot loaders purpose. Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> Reviewed-by: Simon Glass <s...@chromium.

[U-Boot] [PATCH v3 06/10] colibri_imx7: remove legancy UART platform data

2016-10-05 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> We now use device tree to provide SoC data to the UART driver, there is no need for the legancy UART platform data. Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> --- board/toradex/colibri_imx7/colibri_imx7.c | 10 -- 1

[U-Boot] [PATCH v3 02/10] pinctrl: imx: do not announce driver initialization

2016-10-05 Thread Stefan Agner
From: Stefan Agner <stefan.ag...@toradex.com> It is not usual that drivers announce when they have been initialized. use dev_dbg to announce device initialization. Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> Reviewed-by: Simon Glass <s...@chromium.org> --- d

<    1   2   3   4   5   6   7   8   >