[U-Boot] [PATCH V2 00/15] imx: Add i.MX6UL and basic board support

2015-07-11 Thread Peng Fan
into a single patch 3. discard system counter, default use GPT now. 4. SPL support Peng Fan (15): imx: mx6ul: Add i.MX6UL CPU type imx: mx6ul: Add pins IOMUX head file imx: mx6ul: Update imx registers head file imx: mx6ul Add CONFIG_SYS_CACHELINE_SIZE for i.MX6UL imx-common: timer: add

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

2015-07-11 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 v2: new patch include/configs/imx6_spl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/imx6_spl.h b

[U-Boot] [PATCH V2 13/15] imx:mx6ul add dram spl configuration and header file

2015-07-11 Thread Peng Fan
, but not hardcoding #ifdef macros. 4. Introduce mx6ul-ddr.h, which includes the register address for DRAM IO configuration. Signed-off-by: Peng Fan peng@freescale.com --- Changes v2: new patch arch/arm/cpu/armv7/mx6/ddr.c | 61 ++- arch/arm/include/asm/arch-mx6

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

2015-07-11 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 v2: remove the system counter define, since default use GPT now. include/configs/mx6_common.h | 4 +++- 1

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

2015-07-11 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 v2: none arch/arm/include/asm/arch-mx6/mx6-pins.h |2 + arch/arm/include/asm/arch-mx6/mx6ul_pins.h | 1065

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

2015-07-11 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 v2: refine commit msg. include/configs/mx6_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs

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

2015-07-11 Thread Peng Fan
1. Add USDHC, I2C, UART, 74LV, USB, QSPI support. 2. Support SPL 3. CONFIG_MX6UL_14X14_EVK_EMMC_REWORK is introduced, this board default supports sd for usdhc2, but can do hardware rework to make usdhc2 support emmc. Signed-off-by: Peng Fan peng@freescale.com --- Changes v2: Add SPL

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

2015-07-11 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 v2

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

2015-07-11 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 V2 05/15] imx-common: timer: add i.MX6UL support

2015-07-11 Thread Peng Fan
Add i.MX6UL GPT timer support. Signed-off-by: Peng Fan peng@freescale.com --- 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/timer.c b/arch/arm

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

2015-07-11 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 v2: runtime check for wdog part. arch/arm/cpu/armv7/mx6/soc.c | 9 - 1 file changed, 4 insertions(+), 5 deletions

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

2015-07-11 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 v2: none arch/arm/include/asm/imx-common/iomux-v3.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/include/asm/imx-common/iomux-v3

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

2015-07-11 Thread Peng Fan
and AIPS3_ARB_END_ADDR out of #ifdef CONFIG_MX6SX, because we can use runtime check Signed-off-by: Peng Fan peng@freescale.com --- Changes v2: split CONFIG_SYS_CACHELINE_SIZE part into another patch arch/arm/include/asm/arch-mx6/imx-regs.h | 59 ++-- 1 file changed, 34

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

2015-07-11 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 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 2012f99..57a650f

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

2015-07-11 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 v2: new patch, splitted from patch 03/15. arch/arm/include/asm/arch-mx6/imx-regs.h | 4 1 file changed, 4

[U-Boot] [PATCH V2 01/15] imx: mx6ul: Add i.MX6UL CPU type

2015-07-11 Thread Peng Fan
Add MXC_CPU_MX6UL for i.MX6UL CPU type which is got at runtime from DIGPROG register. But the value has been occupied by MXC_CPU_MX6D which is not real id from DIGPROG register, so change i.MX6D to value 0x67 which is not used now. Signed-off-by: Peng Fan peng@freescale.com Signed-off

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

2015-07-12 Thread Peng Fan
Hi Marek, On Sun, Jul 12, 2015 at 12:10:29AM +0200, Marek Vasut wrote: On Saturday, July 11, 2015 at 10:07:10 AM, Peng Fan wrote: 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

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 01:50:55PM +0200, Marek Vasut wrote: On Sunday, July 12, 2015 at 12:32:28 PM, Peng Fan wrote: 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

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

2015-07-12 Thread Peng Fan
Hi Marek, On Sun, Jul 12, 2015 at 01:39:58PM +0200, Marek Vasut wrote: On Sunday, July 12, 2015 at 12:27:42 PM, Peng Fan wrote: Hi Marek, On Sun, Jul 12, 2015 at 12:10:29AM +0200, Marek Vasut wrote: On Saturday, July 11, 2015 at 10:07:10 AM, Peng Fan wrote: Add i.MX6UL pins IOMUX file

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

2015-08-25 Thread Peng Fan
On Tue, Aug 25, 2015 at 09:14:58PM -0500, Scott Wood wrote: On Wed, 2015-08-26 at 08:33 +0800, Peng Fan wrote: Hi Scott, On Tue, Aug 25, 2015 at 04:05:56PM -0500, Scott Wood wrote: On Tue, 2015-07-21 at 16:15 +0800, Peng Fan wrote: Check maximum ecc strength for each platfrom to avoid

Re: [U-Boot] [PATCH] usb: gadget: ci_udc: implement usb_ep_ops dequeue callback

2015-08-27 Thread Peng Fan
Hi Stephen, On Thu, Aug 27, 2015 at 10:06:14AM -0600, Stephen Warren wrote: On 08/27/2015 05:08 AM, Marek Vasut wrote: On Thursday, August 27, 2015 at 01:00:50 PM, Peng Fan wrote: Implement endpoint dequeue callback function. Without this function, uboot will hang when executing fastboot comamnd

[U-Boot] [PATCH V2] usb: gadget: ci_udc: implement usb_ep_ops dequeue callback

2015-08-27 Thread Peng Fan
. Tested on mx6qsabresd board with fastboot enabled. Signed-off-by: Peng Fan peng@freescale.com Cc: Łukasz Majewski l.majew...@samsung.com Cc: Marek Vasut ma...@denx.de --- Changes v2: discard useless debug(callback completed\n) info. drivers/usb/gadget/ci_udc.c | 26

Re: [U-Boot] [PATCH] usb: gadget: ci_udc: implement usb_ep_ops dequeue callback

2015-08-27 Thread Peng Fan
Hi Marek, On Thu, Aug 27, 2015 at 01:08:46PM +0200, Marek Vasut wrote: On Thursday, August 27, 2015 at 01:00:50 PM, Peng Fan wrote: Implement endpoint dequeue callback function. Without this function, uboot will hang when executing fastboot comamnd. See following flow: fastboot_tx_write_str

Re: [U-Boot] [PATCH] usb: gadget: ci_udc: implement usb_ep_ops dequeue callback

2015-08-30 Thread Peng Fan
Hi Stephen, On Fri, Aug 28, 2015 at 08:05:36AM +0800, Peng Fan wrote: Hi Stephen, On Thu, Aug 27, 2015 at 10:06:14AM -0600, Stephen Warren wrote: On 08/27/2015 05:08 AM, Marek Vasut wrote: On Thursday, August 27, 2015 at 01:00:50 PM, Peng Fan wrote: Implement endpoint dequeue callback function

Re: [U-Boot] [PATCH resend 1/2] ARM: Add workaround for Cortex-A9 errata 845369

2015-08-30 Thread Peng Fan
My bad. Please ignore the two patches 1/2 and 2/2. Regards, Peng. On Mon, Aug 31, 2015 at 11:15:16AM +0800, Peng Fan wrote: From: Nitin Garg nitin.g...@freescale.com Under very rare timing circumstances, transition into streaming mode might create a data corruption. Exists on all Cortex-A9

[U-Boot] [PATCH resend 1/2] ARM: Add workaround for Cortex-A9 errata 845369

2015-08-30 Thread Peng Fan
From: Nitin Garg nitin.g...@freescale.com Under very rare timing circumstances, transition into streaming mode might create a data corruption. Exists on all Cortex-A9 revisions. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Nitin Garg nitin.g...@freescale.com Cc: Stefano Babic

[U-Boot] [PATCH resend 2/2] imx: mx6: Enable ARM errata workaround for 845369

2015-08-30 Thread Peng Fan
From: Nitin Garg nitin.g...@freescale.com Since MX6 is Cortex-A9 r2p10, enable software workaround for errata 845369. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Nitin Garg nitin.g...@freescale.com Cc: Stefano Babic sba...@denx.de Cc: Fabio Estevam fabio.este...@freescale.com

Re: [U-Boot] [RFC PATCH v2] arm: cache_v7: fix dcache invalidation

2015-08-31 Thread Peng Fan
gt;data cache invalidation should go from outer to inner cache. >This patch corrects the order in > >flush_dcache_range >flush_dcache_all Should be invalidate_dcache_range and invalidate_dcache_all, right? Reviewed-by: Peng Fan <peng@freescale.com> Later, you should Cc mainta

[U-Boot] [PATCH] driver: misc: correct Kconfig entry

2015-08-26 Thread Peng Fan
Should use FSL_SEC_MON, not CONFIG_FSL_SEC_MON as Kconfig entry. Signed-off-by: Peng Fan peng@freescale.com Cc: Simon Glass s...@chromium.org Cc: Masahiro Yamada yamad...@jp.panasonic.com Cc: Fabio Estevam fabio.este...@freescale.com Cc: York Sun york...@freescale.com Cc: Stefan Roese s

[U-Boot] [PATCH V2] mxc: ocotp fix hole in shadow registers

2015-08-26 Thread Peng Fan
, there is no need to account for holes, always use bank/word index from fuse map. Signed-off-by: Peng Fan peng@freescale.com Cc: Stefano Babic sba...@denx.de Cc: Fabio Estevam fabio.este...@freescale.com --- Changes v2: Discard is_cpu_type(MXC_CPU_MX7D), since 7D cpu type is still not upstreamed. arch/arm

[U-Boot] [PATCH] imx-common: timer: clean up code

2015-08-26 Thread Peng Fan
We can reuse common functions in lib/time.c, but not reimplement functions in imx-common/time.c. Only keep timer_init ,get_tbclk and implement timer_read_counter in imx-common/time.c. Signed-off-by: Peng Fan peng@freescale.com Cc: Stefano Babic sba...@denx.de Cc: Fabio Estevam fabio.este

Re: [U-Boot] [PATCH V2] mxc: ocotp fix hole in shadow registers

2015-08-31 Thread Peng Fan
Hi Stefano, On Mon, Aug 31, 2015 at 07:05:10PM +0200, Stefano Babic wrote: >On 31/08/2015 18:57, Stefano Babic wrote: >> On 26/08/2015 09:40, Peng Fan wrote: >>> There is a hole in shadow registers address map of size 0x100 >>> between bank 5 and bank 6 on iMX6

[U-Boot] [PATCH 2/2] imx: discard duplicated MXC_OCOTP and CMD_FUSE

2015-08-31 Thread Peng Fan
We have CONFIG_MXC_OCOTP and CONFIG_CMD_FUSE in mx6_common.h, discard duplicated macro definitions in board header files. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> Cc: Peter Robinson <pbrobin...@gmail.com> Cc: Otavio Salvador <ot

[U-Boot] [PATCH] driver: misc: add MXC_OCOTP Kconfig entry

2015-08-27 Thread Peng Fan
Add MXC_OCOTP Kconfig entry. Signed-off-by: Peng Fan peng@freescale.com Cc: Simon Glass s...@chromium.org Cc: Stefano Babic sba...@denx.de Cc: Fabio Estevam fabio.este...@freescale.com --- This patch depends on https://patchwork.ozlabs.org/patch/510743/ which correct the FSL_SEC_MON Kconfig

[U-Boot] [PATCH] usb: gadget: ci_udc: implement usb_ep_ops dequeue callback

2015-08-27 Thread Peng Fan
. Tested on mx6qsabresd board with fastboot enabled. Signed-off-by: Peng Fan peng@freescale.com Cc: Łukasz Majewski l.majew...@samsung.com Cc: Marek Vasut ma...@denx.de --- drivers/usb/gadget/ci_udc.c | 28 1 file changed, 28 insertions(+) diff --git a/drivers/usb

Re: [U-Boot] [PATCH] arm: imx: common rework cache settings for imx6

2015-08-26 Thread Peng Fan
Hi Adrian, On Wed, Aug 26, 2015 at 06:27:42PM -0500, Adrian Alonso wrote: Rework cache settings for imx6, move cache configuration to imx-common/cache.c so it can be reused for newer SoC Better not do this now. See below comments. Signed-off-by: Adrian Alonso aalo...@freescale.com ---

Re: [U-Boot] [PATCH] arm: imx: imx-common: init: move arch init common setup

2015-08-26 Thread Peng Fan
Hi Adrian, Since this is only for mx6, why move the code to imx-common? ifeq ($(SOC),$(filter $(SOC),mx6)) -obj-y += cache.o +obj-y += cache.o init.o Also many pieces of code are only for imx6, imx7 do not need them for now, such as the ldo ramp part. I think basic imx7

Re: [U-Boot] [PATCH] arm: imx: imx-common: init: move arch init common setup

2015-08-27 Thread Peng Fan
On Thu, Aug 27, 2015 at 10:00:57AM +0100, Peter Robinson wrote: On Thu, Aug 27, 2015 at 2:39 AM, Peng Fan b51...@freescale.com wrote: Hi Adrian, Since this is only for mx6, why move the code to imx-common? ifeq ($(SOC),$(filter $(SOC),mx6)) -obj-y += cache.o +obj-y += cache.o

[U-Boot] [PATCH] imx: vf610 add function get_cpu_rev

2015-08-31 Thread Peng Fan
Since we need to support runtime check for different drivers, we need to add get_cpu_rev for vf610. This patch only introduce a empty implementation to avoid build errors, later more stuff can be added if need to check vf610 cpu types. Signed-off-by: Peng Fan <peng@freescale.com> Cc: S

Re: [U-Boot] [PATCH V2 2/3] net: fec: do not access reserved register for i.MX6UL

2015-08-31 Thread Peng Fan
Hi Stefano, On Mon, Aug 31, 2015 at 07:14:06PM +0200, Stefano Babic wrote: >Hi Peng, > >On 23/08/2015 17:43, Stefano Babic wrote: >> On 12/08/2015 11:40, Peng Fan wrote: >>> The MIB RAM and FIFO receive start register does not exist on >>> i.MX6UL. Accessi

[U-Boot] [PATCH 1/2] Revert "imx: mx6: ddr correct tRFC and tXS"

2015-08-31 Thread Peng Fan
This reverts commit 059323fb6a8f21637bb617919715c2427f24777c. This commit 059323fb6a8f21637bb617919715c2427f24777c use JESD79-3E which is not the newest spec. Should use JESD79-3F in which tRFC is 260ns for 4Gb chip. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babi

Re: [U-Boot] [PATCH] imx: vf610 add function get_cpu_rev

2015-09-01 Thread Peng Fan
Hi Stefano, On Tue, Sep 01, 2015 at 09:28:40AM +0200, Stefano Babic wrote: >Hi Peng, > >On 01/09/2015 03:40, Peng Fan wrote: >> Since we need to support runtime check for different drivers, >> we need to add get_cpu_rev for vf610. >> >> This patch only introduc

Re: [U-Boot] [PATCH V2] mxc: ocotp fix hole in shadow registers

2015-09-01 Thread Peng Fan
Hi Stefano, On Tue, Sep 01, 2015 at 09:24:24AM +0200, Stefano Babic wrote: >On 01/09/2015 03:06, Peng Fan wrote: >> Hi Stefano, >> >> On Mon, Aug 31, 2015 at 07:05:10PM +0200, Stefano Babic wrote: >>> On 31/08/2015 18:57, Stefano Babic wrote: >>&g

[U-Boot] [PATCH V2] imx: vf610 add get_cpu_rev

2015-09-01 Thread Peng Fan
then. Signed-off-by: Peng Fan <peng@freescale.com> Suggested-by: Stefano Babic <sba...@denx.de> Cc: Stefano Babic <sba...@denx.de> --- Changes v2: Take suggestion from Stefano, get_cpu_rev for vf610 should return an ID saying dummy ID, but not 0. arch/arm/cpu/armv7/vf

[U-Boot] [PATCH 2/2] imx: mx6 discard 'select CPU_V7' for different targets

2015-09-07 Thread Peng Fan
Discard the 'select CPU_V7' from Kconfig in arch/arm/cpu/armv7/mx6 for different targets, because ARCH_MX6 selects CPU_V7. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/cpu/armv7/mx6/Kconfig | 24 1 file

[U-Boot] [PATCH 1/2] mx6: remove SYS_SOC from board Kconfig

2015-09-07 Thread Peng Fan
Remove duplicated SYS_SOC Kconfig entry from board Kconfig, because we have this entry in arch/arm/cpu/armv7/mx6/Kconfig. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> Cc: Heiko Schocher <h...@denx.de> Cc: Christian Gmeiner <christian.

[U-Boot] [PATCH V3] mtd: nand: mxs check maximum ecc that platfrom supports

2015-09-07 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> Tested-By: Tim Harvey Reviewed-by: Marek Vasut <ma...@denx.de> Acked-by:

Re: [U-Boot] "tftp: adjust settings to be suitable for 100Mbit ethernet" breaks imx6

2015-09-06 Thread Peng Fan
Hi Bin, On Sun, Sep 06, 2015 at 06:58:45PM +0800, Bin Meng wrote: >Hi Peng, > >On Sun, Sep 6, 2015 at 4:18 PM, Peng Fan <b51...@freescale.com> wrote: >> Hi, >> >> With the following patch, I met tftp errors on mx6qsabresd and mx6ul boards: >> " >>

[U-Boot] [PATCH] imx: mx6ul: support mx6ul 9x9 evk board

2015-09-05 Thread Peng Fan
1 In:serial Out: serial Err: serial Net: FEC1 Hit any key to stop autoboot: 0 Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/cpu/armv7/mx6/Kconfig| 8 + board/freescale/mx6ul_14x14_evk/Kconfig

Re: [U-Boot] [PATCH] driver: misc: correct Kconfig entry

2015-09-07 Thread Peng Fan
Hi, On Wed, Aug 26, 2015 at 06:19:38AM -0700, Simon Glass wrote: >On 26 August 2015 at 00:41, Peng Fan <peng@freescale.com> wrote: >> Should use FSL_SEC_MON, not CONFIG_FSL_SEC_MON as Kconfig entry. >> >> Signed-off-by: Peng Fan <peng@freescale.com> >

[U-Boot] [PATCH] imx: mx6: correct enable_fec_anatop_clock

2015-09-06 Thread Peng Fan
We should follow 'read->set/clr bit->write' flow for enable_fec_anatop_clock, otherwise we may overridden configuration before enable_fec_anatop_clock. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> Cc: Cc: Fabio Estevam <fabio.este...@fre

[U-Boot] [PATCH V2] imx: mx6ul: support mx6ul 9x9 evk board

2015-09-06 Thread Peng Fan
1 In:serial Out: serial Err: serial Net: FEC1 Hit any key to stop autoboot: 0 Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> --- Changes v2: discard unneccesary "#include " from imx6_spl.h arch/arm/cpu/armv7/mx6/Kconfig

Re: [U-Boot] [PATCH] imx: mx6ul: support mx6ul 9x9 evk board

2015-09-06 Thread Peng Fan
New version V2: https://patchwork.ozlabs.org/patch/514899/ Regards, Peng. On Sun, Sep 06, 2015 at 12:49:21PM +0800, Peng Fan wrote: >This patch is to support mx6ul_9x9_evk board based on mx6ul_14x14_evk, >the difference between mx6ul 9x9 evk and mx6ul 14x14 evk are: >1. mx6ul 9x

[U-Boot] "tftp: adjust settings to be suitable for 100Mbit ethernet" breaks imx6

2015-09-06 Thread Peng Fan
Hi, With the following patch, I met tftp errors on mx6qsabresd and mx6ul boards: " => setenv serverip 10.193.102.217; setenv ipaddr 10.193.102.31;tftp ${loadaddr} zImage Using FEC device TFTP from server 10.193.102.217; our IP address is 10.193.102.31 Filename 'zImage'. Load address: 0x1200

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

2015-08-25 Thread Peng Fan
Hi Scott, On Tue, Aug 25, 2015 at 04:05:56PM -0500, Scott Wood wrote: On Tue, 2015-07-21 at 16:15 +0800, Peng Fan wrote: 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

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

2015-09-10 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> --- arch/arm/cpu/armv7/mx6/clock.c

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

2015-09-10 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> --- arch

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

2015-09-10 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> --- arch/arm/cpu/armv7/mx6/soc.c | 8 1 file changed, 8 insertions(+) diff --git a/

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

2015-09-10 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> --- arch/arm/include/asm/arch-mx6/crm_regs.h | 34 1 file changed, 30 insertions(+), 4 deleti

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

2015-09-10 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 02/11] sandisk: sfp: correct function name

2015-09-10 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> --- board/sandisk/sansa_fuze_plus/sfp.c | 2 +- 1 file changed, 1 insertion(+), 1 delet

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

2015-09-10 Thread Peng Fan
, clock apis for enable lcdif on i.MX6 8/11 support lcdif for i.MX6UL 14x14/9x9 board 9/11 Introduce lcdif_power_down, to make system stable when reset or boot os [10,11]/11 Need to call lcdif_power_down, before trigger wdog reset or boot os. Or we may met unexpected system hang. Peng Fan (11

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

2015-09-10 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> --- board/creative/xfi3/xfi3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

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

2015-09-10 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> --- arch/arm

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

2015-09-10 Thread Peng Fan
on mx6ul 14x14/9x9 evk. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> --- board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c | 63 +++ include/configs/mx6ul_14x14_evk.h | 18 +++ 2 files changed, 81 insertions(+)

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

2015-09-10 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 09/11] video: mxsfb: introduce lcdif_power_down

2015-09-10 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

Re: [U-Boot] [PATCH] usb: gadget: ci_udc: implement usb_ep_ops dequeue callback

2015-09-08 Thread Peng Fan
Hi Marek, On Wed, Sep 09, 2015 at 11:24:37AM +0800, Peng Fan wrote: >On Tue, Sep 08, 2015 at 07:17:22PM -0700, Stephen Warren wrote: >>On 09/03/2015 03:11 PM, Marek Vasut wrote: >>> On Tuesday, September 01, 2015 at 09:45:12 PM, Stephen Warren wrote: >>>> On 08/30

Re: [U-Boot] [PATCH] driver: misc: correct Kconfig entry

2015-09-09 Thread Peng Fan
Hi Simon, On Tue, Sep 08, 2015 at 08:19:36AM -0600, Simon Glass wrote: >Hi Peng, > >On 7 September 2015 at 17:56, Peng Fan <b51...@freescale.com> wrote: >> Hi, >> >> On Wed, Aug 26, 2015 at 06:19:38AM -0700, Simon Glass wrote: >>>On 26 August 2015 at 00:4

Re: [U-Boot] [PATCH 1/7] mx6ul_14x14_evk: Remove CONFIG_CMD_FUSE option

2015-09-09 Thread Peng Fan
Hi Fabio, I have one patch to fix this and 2/7: https://patchwork.ozlabs.org/patch/512680/ Regards, Peng. On Wed, Sep 09, 2015 at 11:16:38AM -0300, Fabio Estevam wrote: >From: Fabio Estevam > >CONFIG_CMD_FUSE and CONFIG_MXC_OCOTP are selected by mx6_common.h, >so

Re: [U-Boot] [PATCH 3/7] mx6ul_14x14_evk: Remove CONFIG_SYS_GENERIC_BOARD

2015-09-09 Thread Peng Fan
6ul_14x14_evk.h >@@ -20,7 +20,6 @@ > #include "imx6_spl.h" > > #define CONFIG_ROM_UNIFIED_SECTIONS >-#define CONFIG_SYS_GENERIC_BOARD > #define CONFIG_DISPLAY_CPUINFO > #define CONFIG_DISPLAY_BOARDINFO Reviewed-by: Peng Fan <peng@freescale.com> Regards, Pen

Re: [U-Boot] [PATCH 3/4] mx6ul_14x14_evk: Remove CONFIG_SPL_FAT_SUPPORT

2015-09-09 Thread Peng Fan
On Wed, Sep 09, 2015 at 03:36:38PM +0200, Stefano Babic wrote: >Hi Fabio, > >On 09/09/2015 14:26, Fabio Estevam wrote: >> Hi Peng and Stefano, >> >> On Wed, Sep 9, 2015 at 4:37 AM, Stefano Babic wrote: >> > #define CONFIG_SPL_LIBCOMMON_SUPPORT > #define

Re: [U-Boot] [PATCH 5/7] mx6ul_14x14_evk: Do not undef config options

2015-09-09 Thread Peng Fan
def CONFIG_CMD_I2C >@@ -62,8 +55,6 @@ > > #define PHYS_SDRAM_SIZE SZ_512M > >-#undef CONFIG_CMD_IMLS >- > #define CONFIG_SYS_MMC_IMG_LOAD_PART 1 > > #define CONFIG_EXTRA_ENV_SETTINGS \ Reviewed-by: Peng Fan <peng@freescale.com>

Re: [U-Boot] [PATCH 6/7] mx6ul_14x14_evk: Remove CONFIG_FEC_DMA_MINALIGN

2015-09-09 Thread Peng Fan
;@@ -221,7 +221,6 @@ > > #define CONFIG_PHYLIB > #define CONFIG_PHY_MICREL >-#define CONFIG_FEC_DMA_MINALIGN 64 > #endif Reviewed-by: Peng Fan <peng@freescale.com> Regards, Peng. > > #define CONFIG_IMX6_THERMAL >-- >1.9.1 > --

Re: [U-Boot] [PATCH 4/7] mx6ul_14x14_evk: Remove unused config option

2015-09-09 Thread Peng Fan
19,7 +19,6 @@ > #define CONFIG_SPL_MMC_SUPPORT > #include "imx6_spl.h" > >-#define CONFIG_ROM_UNIFIED_SECTIONS > #define CONFIG_DISPLAY_CPUINFO > #define CONFIG_DISPLAY_BOARDINFO Reviewed-by: Peng Fan <peng@freescale.com> Regards, Peng. > >-- >1.9.1

Re: [U-Boot] [PATCH 2/3] imx: wdog: correct wcr register settings

2015-09-14 Thread Peng Fan
On Mon, Sep 14, 2015 at 09:11:30AM -0300, Fabio Estevam wrote: >On Mon, Sep 14, 2015 at 2:34 AM, Peng Fan <peng@freescale.com> wrote: >> We should not simple use "writew(WCR_WDE, >wcr)" to set >> wcr, since this will override bits set before reset_cpu.

[U-Boot] [PATCH 1/2] imx: mx7: drop select CPU_V7 for board target

2015-09-14 Thread Peng Fan
drop select CPU_V7 for board target, since ARCH_MX7 selects CPU_V7. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/cpu/armv7/mx7/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/cpu/armv7/mx7/Kconfig b/arch/arm/c

[U-Boot] [PATCH 2/2] imx: mx7dsabresd: drom SYS_SOC from board Kconfig

2015-09-14 Thread Peng Fan
We have defined this kconfig entry in arch/arm/cpu/armv7/mx7/Kconfig, no need to redefine it in board Kconfig. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> --- board/freescale/mx7dsabresd/Kconfig | 3 --- 1 file changed, 3 deletions(-) diff -

Re: [U-Boot] [PATCH 3/4] imx: mx7dsabresd: drop code for CONFIG_CMD_BMODE

2015-09-14 Thread Peng Fan
Hi Fabio, On Mon, Sep 14, 2015 at 03:09:24PM -0300, Fabio Estevam wrote: >Hi Peng, > >On Mon, Sep 14, 2015 at 6:08 AM, Peng Fan <peng@freescale.com> wrote: >> Since i.MX7D does not support warm reset, so boot_mode_apply >> actually will not work. Also we us

[U-Boot] [PATCH v2 2/4] imx-common: wrap boot_mode_apply with CONFIG_CMD_BMODE

2015-09-15 Thread Peng Fan
boot_mode_apply should be applied only with CONFIG_CMD_BMODE enabled. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> --- Changes v2: none arch/arm/imx-common/init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/imx-common/init.

[U-Boot] [PATCH v2 3/4] imx: mx7dsabresd: drop code for CONFIG_CMD_BMODE

2015-09-15 Thread Peng Fan
We use outer pmic reset and drop internal reset signal, bmode will not work as expected, so drop boot mode code for 7dsabresd board. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> Cc: Adrian Alonso <aalo...@freescale.com> --- Changes v2:

[U-Boot] [PATCH v2 4/4] imx: fix coding style

2015-09-15 Thread Peng Fan
Fix coding style. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> --- Changes v2: none arch/arm/cpu/armv7/mx7/soc.c | 2 +- arch/arm/imx-common/init.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm/cpu/armv7

[U-Boot] [PATCH v2 1/4] imx: mx7: discard unused global variable

2015-09-15 Thread Peng Fan
Discard unused global variable. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> --- Changes V2: none arch/arm/cpu/armv7/mx7/soc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/cpu/armv7/mx7/soc.c b/arch/arm/cpu/armv7/mx7/soc.c i

Re: [U-Boot] mx7dsabresd board does not reset

2015-09-13 Thread Peng Fan
Hi Fabio, On Sun, Sep 13, 2015 at 01:11:57PM -0300, Fabio Estevam wrote: >Hi Adrian, > >I noticed that the reset command fails on mx7sabresd board: > >=> reset >resetting ... >(it gets stuck here). I have patches to fix this issue: https://patchwork.ozlabs.org/patch/517269/

[U-Boot] [PATCH 2/4] imx-common: wrap boot_mode_apply with CONFIG_CMD_BMODE

2015-09-14 Thread Peng Fan
boot_mode_apply should be applied only with CONFIG_CMD_BMODE enabled. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/imx-common/init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/imx-common/init.c b/arch/arm/imx-c

[U-Boot] [PATCH 3/4] imx: mx7dsabresd: drop code for CONFIG_CMD_BMODE

2015-09-14 Thread Peng Fan
Since i.MX7D does not support warm reset, so boot_mode_apply actually will not work. Also we use outer pmic reset and drop internal reset signal, so drop boot mode code for 7dsabresd board. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> Cc: Adrian

[U-Boot] [PATCH 1/4] imx: mx7: discard unused global variable

2015-09-14 Thread Peng Fan
Discard unused global variable. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/cpu/armv7/mx7/soc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/cpu/armv7/mx7/soc.c b/arch/arm/cpu/armv7/mx7/soc.c index 8d50149..af

[U-Boot] [PATCH 4/4] imx: fix coding style

2015-09-14 Thread Peng Fan
Fix coding style. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/cpu/armv7/mx7/soc.c | 2 +- arch/arm/imx-common/init.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm/cpu/armv7/mx7/soc.c b/arch/a

Re: [U-Boot] [PATCH] usb: gadget: ci_udc: implement usb_ep_ops dequeue callback

2015-09-08 Thread Peng Fan
On Tue, Sep 08, 2015 at 07:17:22PM -0700, Stephen Warren wrote: >On 09/03/2015 03:11 PM, Marek Vasut wrote: >> On Tuesday, September 01, 2015 at 09:45:12 PM, Stephen Warren wrote: >>> On 08/30/2015 12:26 AM, Peng Fan wrote: >>>> Hi Stephen, >> >> Hi,

Re: [U-Boot] [PATCH 3/4] mx6ul_14x14_evk: Remove CONFIG_SPL_FAT_SUPPORT

2015-09-08 Thread Peng Fan
Hi Fabio, On Tue, Sep 08, 2015 at 02:43:11PM -0300, Fabio Estevam wrote: >If the SD card does not contain the u-boot.img then we get the >following error: > >U-Boot SPL 2015.10-rc2-23947-g7ad5930 (Sep 08 2015 - 14:10:29) > >** Partition 1 not valid on device 0 **

Re: [U-Boot] [PATCH 1/3] imx-common: fix iomux settings

2015-09-20 Thread Peng Fan
On Sun, Sep 20, 2015 at 01:33:20PM +0200, Benoît Thébaudeau wrote: >Hi Stefano, Peng, Fabio, all, > >Sorry for seeing this only now, but... > >On Sun, Sep 20, 2015 at 9:43 AM, Stefano Babic <sba...@denx.de> wrote: >> >> >> On 14/09/2015 07:34, Peng Fan wrot

[U-Boot] [PATCH] imx: boards: Add maintainers info

2015-09-20 Thread Peng Fan
Add MAINTAINERS info for mx6slevk_spl, mx6ul_9x9_evk and mx6qpsabreauto. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Stefano Babic <sba...@denx.de> --- board/freescale/mx6qsabreauto/MAINTAINERS | 2 ++ board/freescale/mx6slevk/MAINTAINERS| 2 ++ board/freescale/mx6

Re: [U-Boot] [PATCH 1/3] imx-common: fix iomux settings

2015-09-20 Thread Peng Fan
On Sun, Sep 20, 2015 at 05:02:58PM +0200, Benoît Thébaudeau wrote: >Hi Peng, > >On Sun, Sep 20, 2015 at 3:02 PM, Peng Fan <b51...@freescale.com> wrote: >> On Sun, Sep 20, 2015 at 01:33:20PM +0200, Benoît Thébaudeau wrote: >>>Hi Stefano, Peng, Fabio, all, >>

Re: [U-Boot] [PATCH 1/3] imx-common: fix iomux settings

2015-09-21 Thread Peng Fan
Hi Stefano, Benoit, On Mon, Sep 21, 2015 at 10:13:42PM +0200, Stefano Babic wrote: >Hi Benoit, Peng, > >On 21/09/2015 20:41, Benoît Thébaudeau wrote: >> Hi Peng, >> >> On Mon, Sep 21, 2015 at 3:05 AM, Peng Fan <b51...@freescale.com> wrote: >>> On Sun

Re: [U-Boot] [PATCH] imx-common: consider mux_ctrl_ofs when setting mux_mode

2015-09-22 Thread Peng Fan
Hi Benoît, On Tue, Sep 22, 2015 at 09:06:06PM +0200, Benoît Thébaudeau wrote: >Hi Peng, > >On Mon, Sep 21, 2015 at 11:08 AM, Peng Fan <peng@freescale.com> wrote: >> Some i.MXes use __NA_ or 0 to avoid setting mux_mode, but the following patch >> only take

[U-Boot] [PATCH V2] imx-common: consider mux_ctrl_ofs when setting mux_mode

2015-09-22 Thread Peng Fan
ch, switch to use "asm/imx-common/sys_proto.h" to avoid build break for "is_soc_type" for vf610 and mx25. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Bhuvanchandra DV <bhuvanchandra...@toradex.com> Cc: Stefano Babic <sba...@denx.de> Cc: Fabio Estev

[U-Boot] [PATCH] imx-common: consider mux_ctrl_ofs when setting mux_mode

2015-09-21 Thread Peng Fan
ch, switch to use "asm/imx-common/sys_proto.h" to avoid build break for "is_soc_type" for vf610. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Bhuvanchandra DV <bhuvanchandra...@toradex.com> Cc: Stefano Babic <sba...@denx.de> Cc: Fabio Estevam <fa

[U-Boot] [RFC V1] arm: config: enforce -fno-pic for gcc

2015-12-04 Thread Peng Fan
toolchain internally enables or disables pic, '-fno-pic' can work well. Signed-off-by: Peng Fan <peng@freescale.com> Cc: Albert Aribaud <albert.u.b...@aribaud.net> --- arch/arm/config.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/config.mk b/arch/arm/config.mk

Re: [U-Boot] [PATCH] imx: mx7dsabresd: Add QSPI support

2015-12-03 Thread Peng Fan
Hi Jagan, On Thu, Dec 03, 2015 at 05:21:09PM +0530, Jagan Teki wrote: >On 30 November 2015 at 15:31, Stefano Babic <sba...@denx.de> wrote: >> On 30/11/2015 10:45, Peng Fan wrote: >>> Support qspi flashes for mx7dsabresd >>> 1. introduce pin mux settings >>

[U-Boot] [PATCH V2 4/4] imx: mx6: implement board_mmc_get_env_devno

2015-12-16 Thread Peng Fan
Implement board_mmc_get_env_devno for the boards. Following is examples: SD1/SD2/SD3: return devno; SD2/SD3: return devno - 1; SD2/SD4: if (devno == 2), return dev - 2; return dev - 1; Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- Changes V2

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