[U-Boot] [PATCH v3 15/15] imx: mx6ul_14x14_evk add basic board support

2015-07-20 Thread Peng Fan
Board: MX6UL 14x14 EVK I2C: ready DRAM: 512 MiB MMC: FSL_SDHC: 0, FSL_SDHC: 1 *** Warning - bad CRC, using default environment In:serial Out: serial Err: serial Net: CPU Net Initialization Failed No ethernet found. Hit any key to stop autoboot: 0 Signed-off-by: Peng Fan peng

[U-Boot] [PATCH v3 12/15] mx6_common: Fix LOADADDR and SYS_TEXT_BASE for i.MX6UL

2015-07-20 Thread Peng Fan
DRAM space starts from 0x8000 for i.MX6UL, so need to fix LOADADDR, SYS_TEXT_BASE. Signed-off-by: Peng Fan peng@freescale.com --- Changes v3: none Changes v2: refine commit msg. include/configs/mx6_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include

[U-Boot] [PATCH v3 02/15] imx: mx6ul: Add pins IOMUX head file

2015-07-20 Thread Peng Fan
Add i.MX6UL pins IOMUX file which defines the IOMUX settings for choose. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Ye.Li b37...@freescale.com --- Changes v3: none Changes v2: none arch/arm/include/asm/arch-mx6/mx6-pins.h |2 + arch/arm/include/asm/arch-mx6

[U-Boot] [PATCH v3 04/15] imx: mx6ul Add CONFIG_SYS_CACHELINE_SIZE for i.MX6UL

2015-07-20 Thread Peng Fan
Since i.MX6UL's cache line size is 64bytes, need to define the macro CONFIG_SYS_CACHELINE_SIZE to 64 for i.MX6UL. Signed-off-by: Peng Fan peng@freescale.com --- Changes v3: none Changes v2: new patch, splitted from patch 03/15. arch/arm/include/asm/arch-mx6/imx-regs.h | 4 1 file

[U-Boot] [PATCH v3 05/15] imx-common: timer: add i.MX6UL support

2015-07-20 Thread Peng Fan
Add i.MX6UL GPT timer support. Signed-off-by: Peng Fan peng@freescale.com --- Changes v3: none Changes v2: system counter patch is removed. Now, defaut use gpt. arch/arm/imx-common/timer.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/arm/imx-common

[U-Boot] [PATCH v3 07/15] imx:mx6ul add clock support

2015-07-20 Thread Peng Fan
CONFIG_MX6SX. 5. Use CONFIG_PCIE_IMX for pcie clock settings, use CONFIG_CMD_SATA for sata clock settings. In this way, we not need #if defined(CONFIG_MX6Q) || defined, only need one CONFIG_PCIE_IMX in header file. Signed-off-by: Ye.Li b37...@freescale.com Signed-off-by: Peng Fan peng

[U-Boot] [PATCH v3 06/15] imx: mx6ul remove errata for i.MX6UL

2015-07-20 Thread Peng Fan
Since i.MX6UL use A7 core, but not A9 core, we do not need the erratas for i.MX6UL. Signed-off-by: Ye.Li b37...@freescale.com Signed-off-by: Peng Fan peng@freescale.com --- Changes v3: none Changes v2: remove the system counter define, since default use GPT now. include/configs

[U-Boot] [PATCH v3 14/15] imx: imx6_spl add mx6ul support

2015-07-20 Thread Peng Fan
i.MX6UL's DRAM space starts from 0x8000, same to i.MX6SX, so use same address with i.MX6SX. Signed-off-by: Peng Fan peng@freescale.com --- Changes v3: None Changes v2: new patch include/configs/imx6_spl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include

[U-Boot] [PATCH v3 08/15] imx: mx6ul select SYS_L2CACHE_OFF

2015-07-20 Thread Peng Fan
i.MX6UL features an Cortex-A7 core, it does not have PL310 as other i.MX6 chips. To Cortex-A7 core, If D-Cache is enabled, L2 Cache is enabled. There is on specific switch for on/off L2 Cache, so default select SYS_L2CACHE_OFF. Signed-off-by: Peng Fan peng@freescale.com --- Changes v3: none

[U-Boot] [PATCH v3 09/15] imx: mx6ul update soc related settings

2015-07-20 Thread Peng Fan
1.Update WDOG settings. 2.No need to gate/ungate all PFDs for i.MX6UL. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Ye.Li b37...@freescale.com --- Changes v3: none Changes v2: runtime check for wdog part. arch/arm/cpu/armv7/mx6/soc.c | 9 - 1 file changed, 4

[U-Boot] [PATCH v3 11/15] mxc: gpio add i.MX6UL support

2015-07-20 Thread Peng Fan
i.MX6UL does not have GPIO6/7, so do not include them for i.MX6UL. Signed-off-by: Peng Fan peng@freescale.com --- Changes v3: none Changes v2: none drivers/gpio/mxc_gpio.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpio/mxc_gpio.c b/drivers/gpio/mxc_gpio.c index

[U-Boot] [PATCH v3 10/15] imx: mx6 add PAD_CTL_SPEED_LOW for i.MX6SX/UL

2015-07-20 Thread Peng Fan
PAD_CTL_SPEED_LOW for i.MX6SX/UL is (0 6) Signed-off-by: Ye.Li b37...@freescale.com Signed-off-by: Peng Fan peng@freescale.com --- Changes v3: none Changes v2: none arch/arm/include/asm/imx-common/iomux-v3.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/include/asm

Re: [U-Boot] [PATCH V2 03/15] imx: mx6ul: Update imx registers head file

2015-07-12 Thread Peng Fan
Hi Marek, On Sun, Jul 12, 2015 at 12:11:42AM +0200, Marek Vasut wrote: On Saturday, July 11, 2015 at 10:07:11 AM, Peng Fan wrote: 1. Update imx register base address for i.MX6UL. 2. Remove duplicated MXS_APBH/GPMI/BCH_BASE. 3. Remove #ifdef for register addresses that equal

Re: [U-Boot] [PATCH 3/3] mtd: nand: mxs invalidate dcache before DMA read

2015-07-20 Thread Peng Fan
Hi Marek, On Mon, Jul 20, 2015 at 09:27:35PM +0200, Marek Vasut wrote: On Monday, July 20, 2015 at 11:40:22 AM, Peng Fan wrote: Follow linux dma follow: Nit: flow at the end, not follow ;-) Thanks. Do you have a chance to review this patch, https://patchwork.ozlabs.org/patch/497619/ ? Before

[U-Boot] [PATCH V2 2/3] mtd: nand: mxs check maximum ecc that platfrom supports

2015-07-21 Thread Peng Fan
Check maximum ecc strength for each platfrom to avoid the calculated ecc exceed the limitation. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Han Xu b45...@freescale.com Reviewed-by: Marek Vasut ma...@denx.de --- Changes v2: Add Marek's reviewed by. drivers/mtd/nand/mxs_nand.c

[U-Boot] [PATCH resend V2 1/3] mtd: nand: mxs support oobsize bigger than 512

2015-07-21 Thread Peng Fan
-off-by: Peng Fan peng@freescale.com Reviewed-by: Marek Vasut ma...@denx.de --- Changes v2: none Changes v1: The previous patch is https://patchwork.ozlabs.org/patch/422757/ This version contains a minor change to the name from gf_len to galois_field. Also add Marek's Reviewed-by. arch/arm

[U-Boot] [PATCH V2 3/3] mtd: nand: mxs invalidate dcache before DMA read

2015-07-21 Thread Peng Fan
Follow linux dma flow: Before DMA read, be sure to invalidate the cache over the address range of DMA buffer to prevent cache coherency problems. After DMA read, invalidate dcache again. Signed-off-by: Peng Fan peng@freescale.com Acked-by: Marek Vasut ma...@denx.de --- Changes v2: Add

[U-Boot] [PATCH V3 2/3] mx7: psci: add basic psci support

2015-10-22 Thread Peng Fan
1. add basic psci support for imx7 chip. 2. support cpu_on and cpu_off. 3. switch to non-secure mode when boot linux kernel. 4. set csu allow accessing all peripherial register in non-secure mode. Signed-off-by: Frank Li <frank...@freescale.com> Signed-off-by: Peng Fan <peng@freescal

[U-Boot] [PATCH V3 3/3] imx: mx7: default enable non-secure mode

2015-10-22 Thread Peng Fan
Support PSCI and switch to non-secure mode when booting linux. Signed-off-by: Peng Fan <peng@freescale.com> Signed-off-by: Frank Li <frank...@freescale.com> Cc: Stefano Babic <sba...@denx.de> Cc: Fabio Estevam <fabio.este...@freescale.com> --- Changes V3: no

[U-Boot] [PATCH V3 1/3] arm: discard relocation entries for secure text

2015-10-22 Thread Peng Fan
: increase location by offset */ 103 add r0, r0, r4 104 ldr r1, [r0] 105 add r1, r1, r4 106 str r1, [r0] So discard them to avoid touching the relocation entry in arch/arm/lib/relocate.S. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Tom Warren

Re: [U-Boot] [PATCH V2 03/14] xfi3: correct function name

2015-10-25 Thread Peng Fan
Hi Stefano, On Tue, Oct 20, 2015 at 03:10:38PM +0200, Stefano Babic wrote: >On 20/10/2015 13:39, Peng Fan wrote: >> board_mxsfb_system_setup shoule be named mxsfb_system_setup. > ^---should > >But really it is better *must*, else it is dead code as

Re: [U-Boot] [PATCH V2 07/14] imx: mx6: add clock api for lcdif

2015-10-25 Thread Peng Fan
Hi Stefano, On Tue, Oct 20, 2015 at 03:39:32PM +0200, Stefano Babic wrote: >Hi Peng, > >On 20/10/2015 13:39, Peng Fan wrote: >> Implement mxs_set_lcdclk, enable_lcdif_clock and enable_pll_video. >> The three API can be used to configure lcdif related clock when >&g

Re: [U-Boot] [PATCH V2 01/14] mxs: add parameter base_addr for mxs_set_lcdclk

2015-10-25 Thread Peng Fan
Hi Stefano, Sorry for this late reply. On Tue, Oct 20, 2015 at 03:05:05PM +0200, Stefano Babic wrote: >Hi Peng, > > >On 20/10/2015 13:39, Peng Fan wrote: >> Change mxs_set_lcdclk prototype to add a new parameter >> base_addr. There are two LCD interfaces for i.MX6SX,

Re: [U-Boot] [PATCH V2 09/14] video: mxsfb: introduce lcdif_power_down

2015-10-25 Thread Peng Fan
Hi Stefano, On Tue, Oct 20, 2015 at 03:59:18PM +0200, Stefano Babic wrote: >Hi Peng, > >On 20/10/2015 13:39, Peng Fan wrote: >> Introudce a new function lcdif_power_down. >> >> 1. Waits for a VSYNC interrupt to guarantee the reset is done at the >>VSYNC ed

Re: [U-Boot] [PATCH V2 04/14] imx: imx-common: move lcdif structure and macro definition to imx-common

2015-10-25 Thread Peng Fan
Hi Stefano, On Tue, Oct 20, 2015 at 03:15:19PM +0200, Stefano Babic wrote: >Hi Peng, > >On 20/10/2015 13:39, Peng Fan wrote: >> Move 'struct mxs_lcdif_regs' and lcdif related macro definitions to >> arch/arm/include/asm/imx-common/regs-lcdif.h. >> >> i.MX6SX/U

Re: [U-Boot] [PATCH V2 08/14] imx: mx6ul_14x14_evk: support lcdif display

2015-10-25 Thread Peng Fan
Hi Stefano, On Tue, Oct 20, 2015 at 03:41:58PM +0200, Stefano Babic wrote: >Hi Peng, > >On 20/10/2015 13:39, Peng Fan wrote: >> Support lcdif display: >> 1. Add pinmux and pad settings for LCDIF >> 2. Introduce setup_lcd to do the settings for LCDIF >> 3. Ena

Re: [U-Boot] [PATCH V2 07/14] imx: mx6: add clock api for lcdif

2015-10-27 Thread Peng Fan
Hi Stefano, On Tue, Oct 20, 2015 at 03:39:32PM +0200, Stefano Babic wrote: >Hi Peng, > >On 20/10/2015 13:39, Peng Fan wrote: >> Implement mxs_set_lcdclk, enable_lcdif_clock and enable_pll_video. >> The three API can be used to configure lcdif related clock when >&g

Re: [U-Boot] [PATCH V2 01/14] mxs: add parameter base_addr for mxs_set_lcdclk

2015-10-26 Thread Peng Fan
Hi Stefano, On Mon, Oct 26, 2015 at 04:52:59PM +0100, Stefano Babic wrote: >Hi Peng, > >On 26/10/2015 03:57, Peng Fan wrote: >> Hi Stefano, >> >> Sorry for this late reply. >> >> On Tue, Oct 20, 2015 at 03:05:05PM +0200, Stefano Babic wrote: >>>

[U-Boot] [PATCH] imx: mx7: enable CONFIG_FSL_CLK

2015-10-29 Thread Peng Fan
This commit "677f970bc62a661690b3431543d5a5d5e682ba70" introduce a new macro "CONFIG_FSL_CLK" that get_clocks() should not be limited by ESDHC. But that patch missed to enable it for i.MX7. THis patch enables CONFIG_FSL_CLK to let get_clocks work. Signed-off-by: Peng Fan <

[U-Boot] [PATCH V3 03/16] xfi3: correct function name

2015-10-29 Thread Peng Fan
board_mxsfb_system_setup must be renamed mxsfb_system_setup. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Marek Vasut <marek.va...@gmail.com> Cc: Stefano Babic <sba...@denx.de> --- Changes v3: fix typo in commit info. Changes v2: none board/creative/xfi3/xfi

[U-Boot] [PATCH V3 06/16] imx: imx-common: move lcdif structure and macro definition to imx-common

2015-10-29 Thread Peng Fan
Move 'struct mxs_lcdif_regs' and lcdif related macro definitions to arch/arm/include/asm/imx-common/regs-lcdif.h. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> --- Changes v3: Split [patch V2 4/14] into two parts, this is the first one, just

[U-Boot] [PATCH V3 04/16] mxs: regs-common.h must be wrapped with !__ASSEMBLY__

2015-10-29 Thread Peng Fan
regs-common.h must be wrapped with #ifndef __ASSEMBLY__ Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> --- Changes v3: new patch arch/arm/include/asm/arch-mxs/regs-lcdif.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch

[U-Boot] [PATCH V3 00/16] imx: mx6/7: support lcdif

2015-10-29 Thread Peng Fan
. Patchset tested on mx6ul_14x14/9x9_evk and mx7dsabresd boards. [patch V2 2/14] not posted in V3, please see: http://lists.denx.de/pipermail/u-boot/2015-October/230812.html Peng Fan (16): mxs: add parameter base_addr for mxs_set_lcdclk sandisk: sfp: correct function name xfi3: correct

[U-Boot] [PATCH V3 05/16] imx: include linux/types.h for regs-common.h

2015-10-29 Thread Peng Fan
There are uint8_t, uint32_t types in regs-common.h, so include linux/types.h. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> --- Changes v3: new patch arch/arm/include/asm/imx-common/regs-common.h | 2 ++ 1 file changed, 2 insertions(+) diff

[U-Boot] [PATCH V3 01/16] mxs: add parameter base_addr for mxs_set_lcdclk

2015-10-29 Thread Peng Fan
Change mxs_set_lcdclk prototype to add a new parameter base_addr. There are two LCD interfaces for i.MX6SX, we may support LCDIF1 or LCDIF2. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> Cc: Anatolij Gustschin <ag...@denx.de> --- V3:

[U-Boot] [PATCH V3 12/16] video: mxsfb: introduce lcdif_power_down

2015-10-29 Thread Peng Fan
to introduce lcdif_power_down is that we want lcdif to be in initial state when doing uboot reset or before kernel boot to make system stable, otherwise system may hang. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> Cc: Anatolij Gustschin &l

[U-Boot] [PATCH V3 11/16] imx: mx6ul_14x14_evk: support lcdif display

2015-10-29 Thread Peng Fan
on mx6ul 14x14/9x9 evk. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> --- V3: none V2: Rebased to Latest U-Boot, resolve conflicts. board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c | 63 +++ include/configs/mx6ul

[U-Boot] [PATCH V3 09/16] imx: mx6: crm_reg: add LCDIF related macros

2015-10-29 Thread Peng Fan
Add i.MX6UL/SX LCDIF related macros. Discard uneccessary '#ifdef xxx'. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> Reviewed-by: Stefano Babic <sba...@denx.de> --- V3: Add reviewed-by tag V2: none arch/arm/include/asm/arch-m

[U-Boot] [PATCH V3 07/16] imx: lcdif: use one register structure for i.MXes

2015-10-29 Thread Peng Fan
Share one lcdif structure for i.MXes. 1. Discard struct mxs_lcdif_regs from imx-regs.h of i.MX7 2. Add i.MX6SX/6UL/7D support in imx-lcdif.h of imx-common Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> --- Changes v3: Split [p

[U-Boot] [PATCH V3 08/16] imx: mx6: fix register address

2015-10-29 Thread Peng Fan
1. Move WDOG3_BASE_ADDR to '#if !(defined(__ASSEMBLY__))'. 2. Add i.MX6UL LCDIF register base address. And Introduce LCDIF1_BASE_ADDR to support runtime check. 3. include for imx-regs.h to avoid building error for mxsfb.c, since mxsfb.c use imx-regs.h. Signed-off-by: Peng Fan <p

[U-Boot] [PATCH V3 16/16] imx: mx7dsabresd: support lcdif

2015-10-29 Thread Peng Fan
Support LCDIF for mx7dsabresd board: 1. Add pinmux settings 2. Add VIDEO related macro definition and videomode env settings. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> Cc: Fabio Estevam <fabio.este...@freescale.com> Cc: A

[U-Boot] [PATCH V3 14/16] imx: imx-common: power down lcdif before boot os

2015-10-29 Thread Peng Fan
Need to call lcdif_power_down to make lcdif in initial state before kernel boot. Similar issue for uboot reset with lcdif enabled, system will hang after serveral times resetting. Need to let lcdif initial state to make all go well. Signed-off-by: Peng Fan <peng@freescale.com> Cc: S

[U-Boot] [PATCH V3 10/16] imx: mx6: add clock api for lcdif

2015-10-29 Thread Peng Fan
Implement mxs_set_lcdclk, enable_lcdif_clock and enable_pll_video. The three API can be used to configure lcdif related clock when CONFIG_VIDEO_MXS enabled. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> --- V3: unified to use base addr for

[U-Boot] [PATCH V3 13/16] imx: mx6: implement reset_misc

2015-10-29 Thread Peng Fan
We need to power down lcdif before uboot reset to make reset can pass stress test. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> --- V3: lcdif_power_down should be applied to all i.MX6, but not only i.MX6UL, so drop the if (is_cpu_type(MXC_CPU_

[U-Boot] [PATCH V3 15/16] imx: mx7: compile misc.c for mx7

2015-10-29 Thread Peng Fan
Compile misc.c for mx7, since we need related function for lcdif and nand. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Sanchayan Maity <maitysancha...@gmail.com> Cc: Stefan Agner <ste...@agner.ch> Cc: Stefano Babic <sba...@denx.de> Cc: Fabio Estevam <fabio.est

[U-Boot] [PATCH] common: simply code

2015-10-29 Thread Peng Fan
get_clocks is wrapped by CONFIG_FSL_CLK and CONFIG_M68K in seperate piece code. They can be merged into one snippet. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Tom Rini <tr...@konsulko.com> Cc: Simon Glass <s...@chromium.org> Cc: Bin Meng <bmeng...@gmail.com> C

[U-Boot] [PATCH V4 2/3] mx7: psci: add basic psci support

2015-10-22 Thread Peng Fan
1. add basic psci support for imx7 chip. 2. support cpu_on and cpu_off. 3. switch to non-secure mode when boot linux kernel. 4. set csu allow accessing all peripherial register in non-secure mode. Signed-off-by: Frank Li <frank...@freescale.com> Signed-off-by: Peng Fan <peng@freescal

[U-Boot] [PATCH V4 1/3] arm: discard relocation entries for secure text

2015-10-22 Thread Peng Fan
: increase location by offset */ 103 add r0, r0, r4 104 ldr r1, [r0] 105 add r1, r1, r4 106 str r1, [r0] So discard them to avoid touching the relocation entry in arch/arm/lib/relocate.S. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Tom Warren

[U-Boot] [PATCH V4 3/3] imx: mx7: default enable non-secure mode

2015-10-22 Thread Peng Fan
Support PSCI and switch to non-secure mode when booting linux. Signed-off-by: Peng Fan <peng@freescale.com> Signed-off-by: Frank Li <frank...@freescale.com> Cc: Stefano Babic <sba...@denx.de> Cc: Fabio Estevam <fabio.este...@freescale.com> --- Changes v4: Discar

Re: [U-Boot] [PATCH V3 2/3] mx7: psci: add basic psci support

2015-10-22 Thread Peng Fan
On Thu, Oct 22, 2015 at 10:38:10AM -0200, Fabio Estevam wrote: >On Thu, Oct 22, 2015 at 10:34 AM, Peng Fan <peng@freescale.com> wrote: > >> +/* enable all periherial can be access in nosec mode */ >> +static void init_csu(void) >> +{ >> + int i =

[U-Boot] [PATCH V4 2/3] mx7: psci: add basic psci support

2015-10-22 Thread Peng Fan
1. add basic psci support for imx7 chip. 2. support cpu_on and cpu_off. 3. switch to non-secure mode when boot linux kernel. 4. set csu allow accessing all peripherial register in non-secure mode. Signed-off-by: Frank Li <frank...@freescale.com> Signed-off-by: Peng Fan <peng@freescal

[U-Boot] [PATCH V4 3/3] imx: mx7: default enable non-secure mode

2015-10-22 Thread Peng Fan
Support PSCI and switch to non-secure mode when booting linux. Signed-off-by: Peng Fan <peng@freescale.com> Signed-off-by: Frank Li <frank...@freescale.com> Cc: Stefano Babic <sba...@denx.de> Cc: Fabio Estevam <fabio.este...@freescale.com> --- Changes v4: none Chang

[U-Boot] [PATCH V4 1/3] arm: discard relocation entries for secure text

2015-10-22 Thread Peng Fan
: increase location by offset */ 103 add r0, r0, r4 104 ldr r1, [r0] 105 add r1, r1, r4 106 str r1, [r0] So discard them to avoid touching the relocation entry in arch/arm/lib/relocate.S. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Tom Warren

Re: [U-Boot] [PATCH V3 3/3] imx: mx7: default enable non-secure mode

2015-10-22 Thread Peng Fan
On Thu, Oct 22, 2015 at 12:48:51PM -0200, Fabio Estevam wrote: >On Thu, Oct 22, 2015 at 10:34 AM, Peng Fan <peng@freescale.com> wrote: > >> +/* >> + * Default boot linux kernel in no secure mode. >> + * If want to boot kernel in secure mode, please define CONF

Re: [U-Boot] [PATCH V4 1/3] arm: discard relocation entries for secure text

2015-11-10 Thread Peng Fan
Hi Stefano, On Tue, Nov 10, 2015 at 02:14:10PM +0100, Albert ARIBAUD wrote: >Hello Peng, > >On Fri, 23 Oct 2015 10:13:03 +0800, Peng Fan <peng@freescale.com> >wrote: >> The code such as PSCI in section named secure is bundled with >> u-boot image, and when

Re: [U-Boot] [PATCH V4 1/3] arm: discard relocation entries for secure text

2015-11-10 Thread Peng Fan
On Fri, Oct 30, 2015 at 04:23:49PM +0800, Peng Fan wrote: >Hi Albert, > >Are you fine with this patch? > >I'd like the patch go through i.MX tree, since the other two patches >needs this patch to work. Ping.. Thanks, Peng. > >Thanks, >Peng. > >On Fri, Oct 23, 2

Re: [U-Boot] [PATCH V4 1/3] arm: discard relocation entries for secure text

2015-10-30 Thread Peng Fan
Hi Albert, Are you fine with this patch? I'd like the patch go through i.MX tree, since the other two patches needs this patch to work. Thanks, Peng. On Fri, Oct 23, 2015 at 10:13:03AM +0800, Peng Fan wrote: >The code such as PSCI in section named secure is bundled with >u-boot image, an

Re: [U-Boot] [PATCH] common: simply code

2015-10-29 Thread Peng Fan
On Thu, Oct 29, 2015 at 11:15:51AM -0600, Simon Glass wrote: >On 29 October 2015 at 01:57, Peng Fan <peng@freescale.com> wrote: >> get_clocks is wrapped by CONFIG_FSL_CLK and CONFIG_M68K in seperate >> piece code. They can be merged into one snippet. >> >&

[U-Boot] [PATCH V2] common: Simplify get_clocks() #ifdef

2015-10-30 Thread Peng Fan
get_clocks is wrapped by CONFIG_FSL_CLK and CONFIG_M68K in seperate piece code. They can be merged into one snippet. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Tom Rini <tr...@konsulko.com> Cc: Simon Glass <s...@chromium.org> Cc: Bin Meng <bmeng...@gmail.com> C

Re: [U-Boot] [PATCH 1/3] ARM: relocate: fix hang when CONFIG_ARMV7_SECURE_BASE

2015-10-19 Thread Peng Fan
Hi Albert, On Mon, Oct 19, 2015 at 08:48:56AM +0200, Albert ARIBAUD wrote: >Hello Peng, > >On Mon, 19 Oct 2015 13:40:51 +0800, Peng Fan <b51...@freescale.com> >wrote: >> On Tue, Oct 06, 2015 at 05:13:24PM -0500, Frank Li wrote: >> >When added above configuration,

Re: [U-Boot] [PATCH 1/3] ARM: relocate: fix hang when CONFIG_ARMV7_SECURE_BASE

2015-10-18 Thread Peng Fan
On Tue, Oct 06, 2015 at 05:13:24PM -0500, Frank Li wrote: >When added above configuration, iram fix up plus relocate offset may locate >in invalidate space. Write back fix up value will cause data abort. > >Add address check, skip psci code. > >Signed-off-by: Frank Li >---

Re: [U-Boot] [PATCH 1/3] ARM: relocate: fix hang when CONFIG_ARMV7_SECURE_BASE

2015-10-19 Thread Peng Fan
Hi Albert, On Mon, Oct 19, 2015 at 01:48:25PM +0200, Albert ARIBAUD wrote: >Hello Peng, > >(cutting a bit through the previous mails quoting) > >> >This, in turn, leads to new questions: >> > >> >1. How is this PSCI code put in place? Is it bundled with the image, >> > with a specificy copy

Re: [U-Boot] [PATCH 1/3] ARM: relocate: fix hang when CONFIG_ARMV7_SECURE_BASE

2015-10-19 Thread Peng Fan
Hi Albert, On Mon, Oct 19, 2015 at 10:23:40AM +0200, Albert ARIBAUD wrote: >Hello Peng, > >On Mon, 19 Oct 2015 15:19:09 +0800, Peng Fan <b51...@freescale.com> >wrote: >> Hi Albert, >> On Mon, Oct 19, 2015 at 08:48:56AM +0200, Albert ARIBAUD wrote: >> >Hello P

[U-Boot] [PATCH 1/1] imx: mx6sabresd: add i.MX6DQP Sabresd support

2015-10-15 Thread Peng Fan
Add i.MX6DQP-Sabresd board support: 1. set fdt_file according to board_rev which is set at runtime. 2. Add mx6dqp_ddr_ioregs and calibration value for this board. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> Cc: Fabio Estevam <fabio.este..

[U-Boot] [PATCH 1/1] imx: ddr: drop duplicated debug info

2015-10-15 Thread Peng Fan
Drop duplicated debug info for tcl. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/cpu/armv7/mx6/ddr.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/cpu/armv7/mx6/ddr.c b/arch/arm/cpu/armv7/mx6/ddr.c index 6b039e4..56

[U-Boot] [PATCH 1/1] imx: mx6sabresd discard PHYS_SDRAM_SIZE

2015-10-15 Thread Peng Fan
This macro is not needed, since gd->ram_size is assigned value using function imx_ddr_size(). Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> Cc: Fabio Estevam <fabio.este...@freescale.com> --- include/configs/mx6sabresd.h | 1 - 1 fil

Re: [U-Boot] [PATCH V2 1/3] arm: discard relocation entry for secure section

2015-10-20 Thread Peng Fan
Hi Albert, On Tue, Oct 20, 2015 at 09:05:32AM +0200, Albert ARIBAUD wrote: >Hello Peng, > >On Tue, 20 Oct 2015 13:59:53 +0800, Peng Fan <peng@freescale.com> >wrote: >> The code such as PSCI in section named secure is bundled with >> u-boot image, and when

Re: [U-Boot] [PATCH 00/11] imx: mx6: support lcdif

2015-10-20 Thread Peng Fan
d to you a full review >for that. The patch set has been here for a long time. Since now 2015.10 released, Can you please review this patch set? Thanks, Peng. > >Best regards, >Stefano Babic > > >On 10/09/2015 12:28, Peng Fan wrote: >> This patch set is to introduce lcdif

[U-Boot] [PATCH V2 2/3] mx7: psci: add basic psci support

2015-10-20 Thread Peng Fan
1. add basic psci support for imx7 chip. 2. support cpu_on and cpu_off. 3. switch to non-secure mode when boot linux kernel. 4. set csu allow accessing all peripherial register in non-secure mode. Signed-off-by: Frank Li <frank...@freescale.com> Signed-off-by: Peng Fan <peng@freescal

[U-Boot] [PATCH V2 1/3] arm: discard relocation entry for secure section

2015-10-20 Thread Peng Fan
: increase location by offset */ 103 add r0, r0, r4 104 ldr r1, [r0] 105 add r1, r1, r4 106 str r1, [r0] So discard the relocation entries for code in secure section. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Tom Warren <twar...@nvidi

Re: [U-Boot] [PATCH 00/11] imx: mx6: support lcdif

2015-10-20 Thread Peng Fan
On Tue, Oct 20, 2015 at 05:19:19PM +0800, Peng Fan wrote: >Hi Stefano, > >On Fri, Oct 02, 2015 at 10:48:21AM +0200, Stefano Babic wrote: >>Hi Peng, >> >>I have not forgotten this series. Anyway, this has introduced aome >>changes that could brick other boards

[U-Boot] [PATCH V2 01/14] mxs: add parameter base_addr for mxs_set_lcdclk

2015-10-20 Thread Peng Fan
Change mxs_set_lcdclk prototype to add a new parameter base_addr. There are two LCD interfaces for i.MX6SX, we may support LCDIF1 or LCDIF2. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> Cc: Anatolij Gustschin <ag...@denx.de> --- V2: n

[U-Boot] [PATCH V2 00/14] imx: mx6/7: support lcdif

2015-10-20 Thread Peng Fan
Mainly support LCDIF for i.MX7. Peng Fan (14): mxs: add parameter base_addr for mxs_set_lcdclk sandisk: sfp: correct function name xfi3: correct function name imx: imx-common: move lcdif structure and macro definition to imx-common imx: mx6: fix register address imx: mx6: crm_reg

[U-Boot] [PATCH V2 02/14] sandisk: sfp: correct function name

2015-10-20 Thread Peng Fan
board_mxsfb_system_setup shoule be named mxsfb_system_setup. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Marek Vasut <marek.va...@gmail.com> Cc: Stefano Babic <sba...@denx.de> --- V2: none board/sandisk/sansa_fuze_plus/sfp.c | 2 +- 1 file changed, 1 insertion(+), 1

[U-Boot] [PATCH V2 03/14] xfi3: correct function name

2015-10-20 Thread Peng Fan
board_mxsfb_system_setup shoule be named mxsfb_system_setup. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Marek Vasut <marek.va...@gmail.com> Cc: Stefano Babic <sba...@denx.de> --- V2: none board/creative/xfi3/xfi3.c | 2 +- 1 file changed, 1 insertion(+), 1 delet

[U-Boot] [PATCH V2 13/14] imx: mx7 use the common lcdif register structure

2015-10-20 Thread Peng Fan
Use the common lcdif register struct, but not define another same register. Introduce i.MX7 in lcdif register structure. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> Cc: Fabio Estevam <fabio.este...@freescale.com> --- V2: new patch ar

[U-Boot] [PATCH V2 09/14] video: mxsfb: introduce lcdif_power_down

2015-10-20 Thread Peng Fan
to introduce lcdif_power_down is that we want lcdif to be in initial state when doing uboot reset or before kernel boot to make system stable, otherwise system may hang. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> Cc: Anatolij Gustschin &l

[U-Boot] [PATCH V2 12/14] imx: mx7: compile misc.c for mx7

2015-10-20 Thread Peng Fan
Compile misc.c for mx7, since we need related function for lcdif and nand. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Sanchayan Maity <maitysancha...@gmail.com> Cc: Stefan Agner <ste...@agner.ch> Cc: Stefano Babic <sba...@denx.de> Cc: Fabio Estevam <fabio.est

[U-Boot] [PATCH V2 14/14] imx: mx7dsabresd: support lcdif

2015-10-20 Thread Peng Fan
Support LCDIF for mx7dsabresd board: 1. Add pinmux settings 2. Add VIDEO related macro definition and videomode env settings. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> Cc: Fabio Estevam <fabio.este...@freescale.com> Cc: A

[U-Boot] [PATCH V2 10/14] imx: mx6: implement reset_misc

2015-10-20 Thread Peng Fan
We need to power down lcdif before uboot reset to make reset can pass stress test. Or system may hang. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> --- V2: none arch/arm/cpu/armv7/mx6/soc.c | 8 1 file changed, 8 insertions(+) diff

[U-Boot] [PATCH V2 08/14] imx: mx6ul_14x14_evk: support lcdif display

2015-10-20 Thread Peng Fan
on mx6ul 14x14/9x9 evk. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> --- V2: Rebased to Latest U-Boot, resolve conflicts. board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c | 63 +++ include/configs/mx6ul_14x14_evk.h

[U-Boot] [PATCH V2 04/14] imx: imx-common: move lcdif structure and macro definition to imx-common

2015-10-20 Thread Peng Fan
Move 'struct mxs_lcdif_regs' and lcdif related macro definitions to arch/arm/include/asm/imx-common/regs-lcdif.h. i.MX6SX/UL/28 have similar register layout and bit definitions of registers. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> --- V2:

[U-Boot] [PATCH V2 06/14] imx: mx6: crm_reg: add LCDIF related macros

2015-10-20 Thread Peng Fan
Add i.MX6UL/SX LCDIF related macros. Discard uneccessary '#ifdef xxx'. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> --- V2: none arch/arm/include/asm/arch-mx6/crm_regs.h | 34 1 file changed, 30 insertions(+),

[U-Boot] [PATCH V2 07/14] imx: mx6: add clock api for lcdif

2015-10-20 Thread Peng Fan
Implement mxs_set_lcdclk, enable_lcdif_clock and enable_pll_video. The three API can be used to configure lcdif related clock when CONFIG_VIDEO_MXS enabled. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> --- V2: none arch/arm/cpu/armv7

[U-Boot] [PATCH V2 11/14] imx: imx-common: power down lcdif before boot os

2015-10-20 Thread Peng Fan
Need to call lcdif_power_down to make lcdif in initial state before kernel boot. Similar issue for uboot reset with lcdif enabled, system will hang after serveral times resetting. Need to let lcdif initial state to make all go well. Signed-off-by: Peng Fan <peng@freescale.com> Cc: S

[U-Boot] [PATCH V2 05/14] imx: mx6: fix register address

2015-10-20 Thread Peng Fan
1. Move WDOG3_BASE_ADDR to '#if !(defined(__ASSEMBLY__))'. 2. Add i.MX6UL LCDIF register base address. And Introduce LCDIF1_BASE_ADDR to support runtime check. 3. include for imx-regs.h to avoid building error for mxsfb.c, since mxsfb.c use imx-regs.h. Signed-off-by: Peng Fan <p

Re: [U-Boot] [PATCH V2 1/3] arm: discard relocation entry for secure section

2015-10-20 Thread Peng Fan
Hi Albert, On Tue, Oct 20, 2015 at 09:32:51AM +0200, Albert ARIBAUD wrote: >Hello Peng, > >On Tue, 20 Oct 2015 15:20:43 +0800, Peng Fan <b51...@freescale.com> >wrote: >> Hi Albert, >> >> On Tue, Oct 20, 2015 at 09:05:32AM +0200, Albert ARIBAUD wrote: >>

[U-Boot] [PATCH V2 3/3] imx: mx7: default enable non-secure mode

2015-10-20 Thread Peng Fan
Support PSCI and switch to non-secure mode when booting linux. Signed-off-by: Peng Fan <peng@freescale.com> Signed-off-by: Frank Li <frank...@freescale.com> Cc: Stefano Babic <sba...@denx.de> Cc: Fabio Estevam <fabio.este...@freescale.com> --- Changes V2: default no

Re: [U-Boot] [PATCH V2 1/3] arm: discard relocation entry for secure section

2015-10-21 Thread Peng Fan
Hello Albert, On Tue, Oct 20, 2015 at 02:59:10PM +0200, Albert ARIBAUD wrote: >Hello Peng, > >On Tue, 20 Oct 2015 15:41:30 +0800, Peng Fan <b51...@freescale.com> >wrote: >> Hi Albert, >> >> On Tue, Oct 20, 2015 at 09:32:51AM +0200, Albert ARIBAUD wrote: >

Re: [U-Boot] [PATCH V2 1/3] arm: discard relocation entry for secure section

2015-10-21 Thread Peng Fan
Hello Albert, On Wed, Oct 21, 2015 at 01:42:27PM +0200, Albert ARIBAUD wrote: >Hello Peng, > >On Wed, 21 Oct 2015 17:42:20 +0800, Peng Fan <b51...@freescale.com> >wrote: >> Hello Albert, > >> I do not know how to generate non-relocatable code only for the secure

Re: [U-Boot] mx6qp sabreauto hangs after saveenv/reset

2015-10-08 Thread Peng Fan
Hi Fabio, On Thu, Oct 08, 2015 at 01:24:19PM -0300, Fabio Estevam wrote: >Hi Peng, > >On a mx6qp sabreauto I noticed that the board hangs after doing: > >=> saveenv >=> reset > >U-Boot 2015.10-rc4-24385-ge04e21c-dirty (Oct 08 2015 - 13:08:54 -0300) > >CPU: Freescale i.MX6QP rev1.0 996 MHz

Re: [U-Boot] [PATCH] mmc:fsl_esdhc invalidate dcache before read

2015-07-09 Thread Peng Fan
Ping. Anyone review/apply this patch? On Thu, Jun 25, 2015 at 10:32:26AM +0800, Peng Fan wrote: DCIMVAC is upgraded to DCCIMVAC for the individual processor (Cortex-A7) that the DCIMVAC is executed on. We should follow the linux dma follow. Before DMA read, first invalidate dcache then after DMA

Re: [U-Boot] [PATCH V4 1/6] imx: add dummpy cpu type MXC_CPU_MX6QP/DP

2015-07-10 Thread Peng Fan
Hi Stefano, On Fri, Jul 10, 2015 at 10:30:59AM +0200, Stefano Babic wrote: Hi Peng, in the title dummpy instead of dummy. Thanks pointing this out. On 30/06/2015 04:36, Peng Fan wrote: Add dummy cpu type MXC_CPU_MX6QP/DP. Anyway, why is it dummy ? It matches a real SOC, only the check

[U-Boot] [PATCH V5 3/6] imx: mx6: hab : Remove the cache issue workaroud in hab for i.MX6QP

2015-07-10 Thread Peng Fan
From: Ye.Li b37...@freescale.com Since the i.MX6QP has fixed the issue in boot ROM, so remove the workaround for i.MX6QP. Signed-off-by: Ye.Li b37...@freescale.com Signed-off-by: Peng Fan peng@freescale.com Acked-by: Stefano Babic sba...@denx.de --- Changes v5: Add Stefano's Acked

[U-Boot] [PATCH V5 4/6] imx: mx6qp Enable PRG clock for IPU

2015-07-10 Thread Peng Fan
The i.MX6DQP has a PRG module, need to enable its clock for using IPU. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Brown Oliver b37...@freescale.com Signed-off-by: Ye.Li b37...@freescale.com Reviewed-by: Fabio Estevam fabio.este...@freescale.com Acked-by: Stefano Babic sba

[U-Boot] [PATCH V5 2/6] imx: mx6: ccm: Change the clock settings for i.MX6QP

2015-07-10 Thread Peng Fan
Since i.MX6QP changes some CCM registers, so modify the clocks settings to follow the hardware changes. In c files, use runtime check and discard #ifdef. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Ye.Li b37...@freescale.com Reviewed-by: Fabio Estevam fabio.este

[U-Boot] [PATCH V5 5/6] imx: mx6sabresd/sabreauto runtime setting fdt_file

2015-07-10 Thread Peng Fan
Detect the SOC and board variant at runtime and change the dtb name, but not hardcoding the fdt_file env variable. Take the following patch as a reference. ├Źd58699b157df75f1aa0b363ea9c21add21a0c mx6cuboxi: Load the correct 'fdtfile' variable Signed-off-by: Peng Fan peng@freescale.com

[U-Boot] [PATCH V5 1/6] imx: add cpu type for i.MX6QP/DP

2015-07-10 Thread Peng Fan
Add cpu type for i.MX6QP/DP. This patch also fix is_mx6dqp(), since get_cpu_rev can return MXC_CPU_MX6QP and MXC_CPU_MX6DP, we should use: (is_cpu_type(MXC_CPU_MX6QP) || is_cpu_type(MXC_CPU_MX6DP)). Signed-off-by: Peng Fan peng@freescale.com Acked-by: Stefano Babic sba...@denx.de

[U-Boot] [PATCH V5 6/6] imx: mx6qpsabreauto: Add MX6QP SABREAUTO CPU3 board support

2015-07-10 Thread Peng Fan
, and IMX_CONFIG is needed at build time, so add this config. Future, when SPL is converted, this config can be removed. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Robin Gong b38...@freescale.com Signed-off-by: Ye.Li b37...@freescale.com Reviewed-by: Fabio Estevam fabio.este

Re: [U-Boot] [PATCH] mmc:fsl_esdhc invalidate dcache before read

2015-07-10 Thread Peng Fan
Hi Stefano, On Fri, Jul 10, 2015 at 09:56:23AM +0200, Stefano Babic wrote: Hi Peng, I see this patch is now delegated to me. Then, I have no objections to merge it into u-boot-imx if Pantelis agree. On 25/06/2015 04:32, Peng Fan wrote: DCIMVAC is upgraded to DCCIMVAC for the individual

<    1   2   3   4   5   6   7   8   9   10   >