Re: [PATCH] ARM: imx: remove DCD files from Makefiles

2017-07-24 Thread Sam Ravnborg
Hi all. > diff --git a/defaultenv/Makefile b/defaultenv/Makefile > index 33e0eceef..f313b04e8 100644 > --- a/defaultenv/Makefile > +++ b/defaultenv/Makefile > @@ -14,7 +14,7 @@ quiet_cmd_env_default = ENV $@ > cmd_env_default = ($(srctree)/scripts/genenv $(srctree) $(objtree) $@ > $(CONFIG_D

Re: [PATCH] ARM: imx: remove DCD files from Makefiles

2017-07-24 Thread Sam Ravnborg
On Mon, Jul 24, 2017 at 09:23:00PM +0200, Sascha Hauer wrote: > On Mon, Jul 10, 2017 at 11:29:42AM +0200, Lucas Stach wrote: > > The current multi-image mechnism builds them as needed, so there is no > > reason to include them in the Makefiles. Remove them before this spreads > > even more. > > AF

Re: [PATCH 1/9] gpiolib: Fix buggy flag detection code

2017-07-24 Thread Andrey Smirnov
On Mon, Jul 24, 2017 at 8:36 AM, Sam Ravnborg wrote: > Hi Andrey. > > On Mon, Jul 24, 2017 at 07:53:52AM -0700, Andrey Smirnov wrote: >> Both GPIOF_ACTIVE_LOW and GPIOF_INIT_ACTIVE are multi-bit constants so >> detecting their assertion using simple bit-wise and is incorrect and >> would lead to f

Re: [PATCH 0/9] i.MX7 SabreSD support

2017-07-24 Thread Andrey Smirnov
On Mon, Jul 24, 2017 at 9:01 AM, Sam Ravnborg wrote: > Hi Andrey. > >> Also, note, that for a reason I haven't been able to track down yet, >> compiling Barebox + this patchset without support for FEC will cause >> upstream kernel (at least 4.12-rc1) to hang during boot while trying >> to access F

Re: [PATCH 9/9] ARM: i.MX: Add support for NXP i.MX7 SABRESD board

2017-07-24 Thread Andrey Smirnov
On Mon, Jul 24, 2017 at 12:03 PM, Stefan Lengfeld wrote: > Hi Andrey, > > On Mon, Jul 24, 2017 at 07:54:00AM -0700, Andrey Smirnov wrote: >> Add minimal code to support NXP i.MX7 SABRESD board. Tested to have >> working SD card and first Ethernet port as well as being able to boot >> upstream Linu

Re: [PATCH] ARM: imx: remove DCD files from Makefiles

2017-07-24 Thread Sascha Hauer
On Mon, Jul 10, 2017 at 11:29:42AM +0200, Lucas Stach wrote: > The current multi-image mechnism builds them as needed, so there is no > reason to include them in the Makefiles. Remove them before this spreads > even more. AFAIK if the extra-y is not present, make treats the generated files as inte

Re: [PATCH 9/9] ARM: i.MX: Add support for NXP i.MX7 SABRESD board

2017-07-24 Thread Andrey Smirnov
On Mon, Jul 24, 2017 at 8:59 AM, Sam Ravnborg wrote: > Hi Andrey. > > On Mon, Jul 24, 2017 at 07:54:00AM -0700, Andrey Smirnov wrote: >> Add minimal code to support NXP i.MX7 SABRESD board. Tested to have >> working SD card and first Ethernet port as well as being able to boot >> upstream Linux ke

Re: [PATCH 9/9] ARM: i.MX: Add support for NXP i.MX7 SABRESD board

2017-07-24 Thread Stefan Lengfeld
Hi Andrey, On Mon, Jul 24, 2017 at 07:54:00AM -0700, Andrey Smirnov wrote: > Add minimal code to support NXP i.MX7 SABRESD board. Tested to have > working SD card and first Ethernet port as well as being able to boot > upstream Linux kernel (4.12+). > > Signed-off-by: Andrey Smirnov > --- > arc

Re: [PATCH 1/2] ARM: i.MX7: provide DDR register definitions

2017-07-24 Thread Sam Ravnborg
On Mon, Jul 24, 2017 at 11:37:07AM +0200, Robert Schwebel wrote: > On Mon, Jul 24, 2017 at 11:15:58AM +0200, Uwe Kleine-König wrote: > > This was created using cut'n'paste from the i.MX7D reference manual > > (rev 0.1, 08/2016). > > > > Signed-off-by: Uwe Kleine-König > > --- > > arch/arm/mach-i

Re: [PATCH 0/9] i.MX7 SabreSD support

2017-07-24 Thread Sam Ravnborg
Hi Andrey. > Also, note, that for a reason I haven't been able to track down yet, > compiling Barebox + this patchset without support for FEC will cause > upstream kernel (at least 4.12-rc1) to hang during boot while trying > to access FEC's register file. I suspect clock initialization issue, > b

Re: [PATCH 9/9] ARM: i.MX: Add support for NXP i.MX7 SABRESD board

2017-07-24 Thread Sam Ravnborg
Hi Andrey. On Mon, Jul 24, 2017 at 07:54:00AM -0700, Andrey Smirnov wrote: > Add minimal code to support NXP i.MX7 SABRESD board. Tested to have > working SD card and first Ethernet port as well as being able to boot > upstream Linux kernel (4.12+). > > Signed-off-by: Andrey Smirnov > --- > arc

Re: [PATCH 1/9] gpiolib: Fix buggy flag detection code

2017-07-24 Thread Sam Ravnborg
Hi Andrey. On Mon, Jul 24, 2017 at 07:53:52AM -0700, Andrey Smirnov wrote: > Both GPIOF_ACTIVE_LOW and GPIOF_INIT_ACTIVE are multi-bit constants so > detecting their assertion using simple bit-wise and is incorrect and > would lead to false positives. > > Fixes: bbc499914 ("gpiolib: Add code to s

[PATCH 3/9] ARM: i.MX: Import mx7d_pins.h from U-Boot

2017-07-24 Thread Andrey Smirnov
Import mx7d_pins.h from U-Boot and rename it to iomux-mx7.h for consistency. Signed-off-by: Andrey Smirnov --- arch/arm/mach-imx/include/mach/iomux-mx7.h | 1309 arch/arm/mach-imx/include/mach/iomux-v3.h |1 + 2 files changed, 1310 insertions(+) create mode 100

[PATCH 9/9] ARM: i.MX: Add support for NXP i.MX7 SABRESD board

2017-07-24 Thread Andrey Smirnov
Add minimal code to support NXP i.MX7 SABRESD board. Tested to have working SD card and first Ethernet port as well as being able to boot upstream Linux kernel (4.12+). Signed-off-by: Andrey Smirnov --- arch/arm/boards/Makefile | 1 + arch/arm/boards/freescale-mx7-sabr

[PATCH 7/9] ARM: i.MX: Add ARCH_HAD_FEC_IMX to ARCH_IMX7

2017-07-24 Thread Andrey Smirnov
--- arch/arm/mach-imx/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index 6110924af..9ab27b42d 100644 --- a/arch/arm/mach-imx/Kconfig +++ b/arch/arm/mach-imx/Kconfig @@ -168,6 +168,7 @@ config ARCH_IMX7 select PINCTRL_IMX_

[PATCH 8/9] ARM: i.MX: Import imx7-iomuxc-gpr.h from Linux kernel

2017-07-24 Thread Andrey Smirnov
--- include/mfd/imx7-iomuxc-gpr.h | 51 +++ 1 file changed, 51 insertions(+) create mode 100644 include/mfd/imx7-iomuxc-gpr.h diff --git a/include/mfd/imx7-iomuxc-gpr.h b/include/mfd/imx7-iomuxc-gpr.h new file mode 100644 index 0..abbd52466 --- /de

[PATCH 4/9] ARM: i.MX: Add mx7_setup_pad()

2017-07-24 Thread Andrey Smirnov
Add mx7_setup_pad() low-level convenience function for setting up pinmux in PBL code. Signed-off-by: Andrey Smirnov --- arch/arm/mach-imx/include/mach/iomux-mx7.h | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/mach-imx/include/mach/iomux-mx7.h b/arch/arm/mach-

[PATCH 6/9] ARM: i.MX: Add minimal imx7-ccm-regs.h

2017-07-24 Thread Andrey Smirnov
Add minimal imx7-ccm-regs.h that contains bare minimum definitions needed for early UART setup. Signed-off-by: Andrey Smirnov --- arch/arm/mach-imx/include/mach/imx7-ccm-regs.h | 32 ++ 1 file changed, 32 insertions(+) create mode 100644 arch/arm/mach-imx/include/mach/im

[PATCH 1/9] gpiolib: Fix buggy flag detection code

2017-07-24 Thread Andrey Smirnov
Both GPIOF_ACTIVE_LOW and GPIOF_INIT_ACTIVE are multi-bit constants so detecting their assertion using simple bit-wise and is incorrect and would lead to false positives. Fixes: bbc499914 ("gpiolib: Add code to support "active low" GPIOs") Signed-off-by: Andrey Smirnov --- drivers/gpio/gpiolib.

[PATCH 5/9] ARM: i.MX: Add imx7_uart_setup_ll()

2017-07-24 Thread Andrey Smirnov
Add imx7_uart_setup_ll() for setting up UART selected for DEBUG_LL. Signed-off-by: Andrey Smirnov --- arch/arm/mach-imx/include/mach/debug_ll.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/mach-imx/include/mach/debug_ll.h b/arch/arm/mach-imx/include/mach/debug_ll.h index

[PATCH 0/9] i.MX7 SabreSD support

2017-07-24 Thread Andrey Smirnov
Hi everyone, This is a patch series to add support for NXP's i.MX7 SabreSD board. It's most likely lacking some advanced features, but basics such as SD card, Ethernet and, of course, booting Linux seem to work OK. The patchset is updated to use defenitions from Uwe's most recent submission ("ARM

[PATCH 2/9] clk: i.MX7: Remove unused UART clocks array

2017-07-24 Thread Andrey Smirnov
Remove what looks like unused leftover from analogous Linux kernel code. Signed-off-by: Andrey Smirnov --- drivers/clk/imx/clk-imx7.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/drivers/clk/imx/clk-imx7.c b/drivers/clk/imx/clk-imx7.c index d3a036c0c..b79c8c301 100644 --- a/dr

[PATCH] video/ssd1307fb: add support for VBAT

2017-07-24 Thread Bastian Stender
Adds support to the driver to enable VBAT regulator at init time. This is similar to ba14301e0356 ("fbdev/ssd1307fb: add support to enable VBAT") and cfc5b2b551d8 ("fbdev/ssd1307fb: fix optional VBAT support") in Linux kernel. Signed-off-by: Bastian Stender --- drivers/video/ssd1307fb.c | 24 ++

Bootchooser has unexpected changes of variable 'remaining_attempts'

2017-07-24 Thread Norbert Wiedmann
Hi everyone, I have an unexpected behaviour with my bootchooser framework since barebox version 2017.05. After reflashing barebox, and cleaning the environment and the state partition, the boot message shows: stMyBoot: New state registered 'stMyBoot' stMyBoot: Failed to find any valid state cop

Re: [PATCH 1/2] ARM: i.MX7: provide DDR register definitions

2017-07-24 Thread Robert Schwebel
On Mon, Jul 24, 2017 at 11:45:33AM +0200, Uwe Kleine-König wrote: > > > + * Copyright (C) 2017 Pengutronix, Fridolin Tux > > > > Sure? > > That's what I copied from our internal license template ... *sigh* I > will resend. It is a *template* :-) rsc -- Pengutronix e.K.

Re: [PATCH 1/2] ARM: i.MX7: provide DDR register definitions

2017-07-24 Thread Uwe Kleine-König
Hello Robert, On Mon, Jul 24, 2017 at 11:37:07AM +0200, Robert Schwebel wrote: > On Mon, Jul 24, 2017 at 11:15:58AM +0200, Uwe Kleine-König wrote: > > This was created using cut'n'paste from the i.MX7D reference manual > > (rev 0.1, 08/2016). > > > > Signed-off-by: Uwe Kleine-König > > --- > >

Re: [PATCH 1/2] ARM: i.MX7: provide DDR register definitions

2017-07-24 Thread Robert Schwebel
On Mon, Jul 24, 2017 at 11:15:58AM +0200, Uwe Kleine-König wrote: > This was created using cut'n'paste from the i.MX7D reference manual > (rev 0.1, 08/2016). > > Signed-off-by: Uwe Kleine-König > --- > arch/arm/mach-imx/include/mach/imx7-ddr-regs.h | 174 > + > 1 file ch

[PATCH 1/2] ARM: i.MX7: provide DDR register definitions

2017-07-24 Thread Uwe Kleine-König
This was created using cut'n'paste from the i.MX7D reference manual (rev 0.1, 08/2016). Signed-off-by: Uwe Kleine-König --- arch/arm/mach-imx/include/mach/imx7-ddr-regs.h | 174 + 1 file changed, 174 insertions(+) create mode 100644 arch/arm/mach-imx/include/mach/imx7-dd

[PATCH 2/2] ARM: use register defines in the dcd table of the WaRP7

2017-07-24 Thread Uwe Kleine-König
This was generated with the following command after adding the include directive to the file: scripts/regsubst.pl -I arch/arm/mach-imx/include arch/arm/boards/element14-warp7/flash-header-mx7-warp.imxcfg Signed-off-by: Uwe Kleine-König --- .../element14-warp7/flash-header-mx7-warp.imxc

[PATCH v2] scripts: Provide script that helps using cpp defines in dcd tables

2017-07-24 Thread Uwe Kleine-König
This script was used to help create commit 8f426992c562 ("ARM: imx: use register defines in imxcfg files instead of plain numbers"). Signed-off-by: Uwe Kleine-König --- Changes since v1: - explain perl Pod in the file instead of the commit log - minor whitespace cleanup scripts/regsubst.pl |