Re: [PATCH v3 07/10] ARM: install HYP vectors at PBL and Barebox entry

2018-04-10 Thread Lucas Stach
Am Donnerstag, den 05.04.2018, 09:42 +0200 schrieb Sascha Hauer: > On Mon, Mar 26, 2018 at 09:20:22PM +0200, Lucas Stach wrote: > > If the CPU was already in HYP mode when entering the PBL, install a > > simple trap handler to allow to get back from SVC to HYP before > > switching to HYP mode. > >

Re: [PATCH v3 04/10] ARM: add file for HYP mode related setup

2018-04-10 Thread Lucas Stach
Am Donnerstag, den 05.04.2018, 09:54 +0200 schrieb Sascha Hauer: > On Mon, Mar 26, 2018 at 09:20:19PM +0200, Lucas Stach wrote: > > This adds routines to add hyp mode vectors and switch back to HYP > > mode from SVC. This is needed in both the PBL and Barebox proper. > > > > > > Signed-off-by:

[PATCH 2/2] i.MX: vf610-twr: Convert to use vf610_setup_pad()

2018-04-10 Thread Andrey Smirnov
Signed-off-by: Andrey Smirnov --- arch/arm/boards/freescale-vf610-twr/lowlevel.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/arch/arm/boards/freescale-vf610-twr/lowlevel.c b/arch/arm/boards/freescale-vf610-twr/lowlevel.c index

[PATCH 1/2] i.MX: vf610-twr: Print '>' when DEBUG_LL is enabled

2018-04-10 Thread Andrey Smirnov
Majority of others boards prints '>' as soon as DEBUG_LL related configuration is done, so do so for VF610-TWR as well. Signed-off-by: Andrey Smirnov --- arch/arm/boards/freescale-vf610-twr/lowlevel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH] pinctrl-vf610: Make use of BIT macro

2018-04-10 Thread Andrey Smirnov
Signed-off-by: Andrey Smirnov --- drivers/pinctrl/pinctrl-vf610.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/pinctrl/pinctrl-vf610.c b/drivers/pinctrl/pinctrl-vf610.c index 4234263d3..a46b0e2ca 100644 ---

[PATCH] ARM: Make use of ALIGN_DOWN macro in barebox-arm.h

2018-04-10 Thread Andrey Smirnov
Signed-off-by: Andrey Smirnov --- arch/arm/include/asm/barebox-arm.h | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/arch/arm/include/asm/barebox-arm.h b/arch/arm/include/asm/barebox-arm.h index 4b270e7de..67e4d964d 100644 ---

Re: [RESEND] doc: bcm283x: update documentation for Raspberry Pi

2018-04-10 Thread Sascha Hauer
On Mon, Apr 09, 2018 at 10:59:33AM +0200, Roland Hieber wrote: > The old way does not seem to work for RPi 3, as the UART pins are > mapped differently and the NOOBS bootcode does not seem to read a > config.txt. > > Signed-off-by: Roland Hieber > --- >

Re: [PATCH 0/2] mfd: mc13xxx: ADC support

2018-04-10 Thread Sascha Hauer
Hi Andrey, On Fri, Apr 06, 2018 at 07:33:22PM +0300, Andrey Gusakov wrote: > This set of pathces adds ADC support for MC13783 and MC13892 PMICs. Applied, thanks. Out of curiosity, what do you use the ADCs for? Sascha > > Andrey Gusakov (2): > mfd: mc13xxx: add function returning mc13xxx

[PATCH] ARM: start: Avoid calling arm_mem_barebox_image() twice

2018-04-10 Thread Andrey Smirnov
Avoid calling arm_mem_barebox_image() twice by making barebox_base function-wide in scope Signed-off-by: Andrey Smirnov --- arch/arm/cpu/start.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/arch/arm/cpu/start.c

[PATCH 04/10] ARM: i.MX6: esdctl: Factor out common code in imx6*_barebox_entry()

2018-04-10 Thread Andrey Smirnov
Signed-off-by: Andrey Smirnov --- arch/arm/mach-imx/esdctl.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-imx/esdctl.c b/arch/arm/mach-imx/esdctl.c index a7114effa..eda8184a0 100644 --- a/arch/arm/mach-imx/esdctl.c +++

[PATCH 03/10] ARM: i.MX6: esdctl: Share memory size calculation code

2018-04-10 Thread Andrey Smirnov
Code for calculating total amount of memory found in imx6_mmdc_add_mem(), imx6q_barebox_entry() and imx6ul_barebox_entry() is exaclty the same, so refactor the code to avoid duplication. Signed-off-by: Andrey Smirnov --- arch/arm/mach-imx/esdctl.c | 35

[PATCH 00/10] Vybrid MMDC support and misc ESDCTL fixes

2018-04-10 Thread Andrey Smirnov
Everyone: This series is a bit of code I developed to support automatic configured DRAM size detection on Vybrid platform as well as some small fixes/cleanup I made while looking at esdctl.c. All feedback is wellcome! Thanks, Andrey Smirnov Andrey Smirnov (10): ARM: i.MX: esdctl: Use IOMEM

[PATCH 05/10] ARM: i.MX6: esdctl: Use symbolic constants for RAM base address

2018-04-10 Thread Andrey Smirnov
Use symbolic constants for RAM base address, to do that rename MX6_MMDC_PORT0_BASE_ADDR to MX6_MMDC_PORT01_BASE_ADDR to distinguish it from SoCs with only one DDR controller (i.MX6UL) where port 0 will always be at 0x8000. Signed-off-by: Andrey Smirnov ---

[PATCH 07/10] ARM: i.MX: esdctl: Introduce memory_sdram_size()

2018-04-10 Thread Andrey Smirnov
Introduce memory_sdram_size() - subroutine to calculate size of SDRAM chip base on its parameters such as # or rows, columns, banks and bus width. Signed-off-by: Andrey Smirnov --- arch/arm/mach-imx/esdctl.c | 14 -- include/memory.h | 8

[PATCH 06/10] ARM: i.MX: esdctl: Make use of min_t()

2018-04-10 Thread Andrey Smirnov
Use min_t() instead of explicit if (). Signed-off-by: Andrey Smirnov --- arch/arm/mach-imx/esdctl.c | 15 +++ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/arch/arm/mach-imx/esdctl.c b/arch/arm/mach-imx/esdctl.c index 3cd7c5738..a4eb3f196

[PATCH 08/10] ARM: i.MX: esdctl: Add support for Vybrid's memory controller

2018-04-10 Thread Andrey Smirnov
Add code needed to dynamically detect the amount of RAM DDR controller is configured to use as well as a simple entry function making use of that functionality. Signed-off-by: Andrey Smirnov --- arch/arm/dts/vf610-ddrmc.dtsi| 15 +++

[PATCH 10/10] i.MX: zii-vf610-dev: Make use of vf610_barebox_entry()

2018-04-10 Thread Andrey Smirnov
Signed-off-by: Andrey Smirnov --- arch/arm/boards/zii-vf610-dev/lowlevel.c | 3 ++- arch/arm/dts/vf610-zii-dev.dtsi | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/arm/boards/zii-vf610-dev/lowlevel.c

[PATCH 09/10] i.MX: vf610-twr: Make use of vf610_barebox_entry()

2018-04-10 Thread Andrey Smirnov
Signed-off-by: Andrey Smirnov --- arch/arm/boards/freescale-vf610-twr/lowlevel.c | 5 ++--- arch/arm/dts/vf610-twr.dts | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/boards/freescale-vf610-twr/lowlevel.c

[PATCH 01/10] ARM: i.MX: esdctl: Use IOMEM instead of (void *)

2018-04-10 Thread Andrey Smirnov
Signed-off-by: Andrey Smirnov --- arch/arm/mach-imx/esdctl.c | 42 +- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/arch/arm/mach-imx/esdctl.c b/arch/arm/mach-imx/esdctl.c index 1eebc77b6..895761e73 100644 ---

[PATCH 02/10] ARM: i.MX51: esdctl: Replace magic value with ESDMISC_DDR2_8_BANK

2018-04-10 Thread Andrey Smirnov
Signed-off-by: Andrey Smirnov --- arch/arm/mach-imx/esdctl.c | 2 +- arch/arm/mach-imx/include/mach/esdctl.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/esdctl.c b/arch/arm/mach-imx/esdctl.c index