[U-Boot] [PATCH] power: pfuze100 correct macro definition

2015-03-23 Thread Peng Fan
Correct the macro PFUZE100_SW1ABC_SETP definition. We should add parenthese for 'x'. Signed-off-by: Peng Fan peng@freescale.com --- include/power/pfuze100_pmic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/power/pfuze100_pmic.h b/include/power/pfuze100_pmic.h

[U-Boot] [dm/next PATCH v1] dm: qspi fix claim bus and release bus

2015-04-13 Thread Peng Fan
be correctly probed. CC: Simon Glass s...@chromium.org CC: Jagannadha Sutradharudu Teki jagannadh.t...@gmail.com CC: Haikun Wang haikun.w...@freescale.com Signed-off-by: Peng Fan peng@freescale.com --- Hi, This patch is based on dm/next branch. Regards, Peng. drivers/spi/fsl_qspi.c | 10

Re: [U-Boot] [PATCH V2] i2c: mxc: refactor i2c driver and support dm

2015-04-26 Thread Peng Fan
Please ignore this version, since bus_i2c_init is not good for DM, I'll implement a weak function for this. On 4/25/2015 9:04 PM, Peng Fan wrote: 1. Introduce a new structure `struct mxc_i2c_bus`, this structure will used for non-DM and DM. 1. Remove `struct mxc_i2c_regs` structure

Re: [U-Boot] [dm/next PATCH v1] dm: qspi fix claim bus and release bus

2015-04-26 Thread Peng Fan
Hi Simon, On 4/23/2015 11:17 PM, Simon Glass wrote: Hi Peng, On 15 April 2015 at 03:50, Peng Fan peng@freescale.com wrote: Add missed people. On 4/14/2015 1:19 PM, Peng Fan wrote: For fsl_qspi_claim_bus and fsl_qspi_release_bus, the input parameter struct udevice *dev represents device

Re: [U-Boot] [PATCH] dm: i2c: mxc support DM

2015-04-26 Thread Peng Fan
:49, Peng Fan peng@freescale.com wrote: Hi Simon, Thanks for reviewing. I'll address most comments and try to merge DM and non-DM part into one. will send out v2 for review. The only unsure part is bus_i2c_init, I also reply you inline. I want to pass force_idle_bus and pinmux setting to i2c

[U-Boot] [PATCH V2] i2c: mxc: refactor i2c driver and support dm

2015-04-25 Thread Peng Fan
to use struct mxc_i2c_regs. 7. Remove bus_i2c_read bus_i2c_write prototype in header file 8. The frist paramter of bus_i2c_init is modified to i2c index, since bus_i2c_init is a must now, so it is also implemented for DM part. Signed-off-by: Peng Fan peng@freescale.com --- Changes v2

Re: [U-Boot] [PATCH] dm: i2c: mxc support DM

2015-04-19 Thread Peng Fan
with non-DM way. On 4/19/2015 9:53 PM, Simon Glass wrote: Hi Peng, On 15 April 2015 at 03:35, Peng Fan peng@freescale.com wrote: Add support when CONFIG_DM_I2C configured. Test results: = i2c dev 0 Setting bus to 0 = i2c probe Valid chip addresses: 08 50 = i2c md 8 38 0038: 08 08 08 08 08 08

Re: [U-Boot] [PATCH] dm: spi: Correct SPI claim/release_bus() methods

2015-04-19 Thread Peng Fan
udevice *dev, unsigned int wordlen); /** * SPI transfer After applying this patch, qspi flashes can be correctly probed and read/write on i.MX platform. I original posted a patch https://patchwork.ozlabs.org/patch/461034/ which seems in wrong way:) Tested-by: Peng Fan peng

[U-Boot] [PATCH V3] i2c: mxc: refactor i2c driver and support dm

2015-04-27 Thread Peng Fan
); else if (i2c_bus-index == 1) force_idle_bus(i2c_pads_info1); else xx } Signed-off-by: Peng Fan peng@freescale.com --- Changes v3: 1. remove bus_i2c_init for DM, introuduce a weak function i2c_idle_bus. 2. remove static return

[U-Boot] [PATCH V5 1/2] i2c: mxc: refactor i2c driver and support dm

2015-05-14 Thread Peng Fan
Signed-off-by: Peng Fan peng@freescale.com Acked-by: Simon Glass s...@chromium.org --- Changes v5: none Changes v4: 1. fix build errors 2. Introduce a weak function enable_i2c_clk. 3. add Simon's Acked-by. 4. Add test log in commit log. Changes v3: 1. remove bus_i2c_init for DM

[U-Boot] [PATCH V5 2/2] imx: mx27 move GPIO_PORTx to gpio.h

2015-05-14 Thread Peng Fan
with mx27, we can not simply include iomux-v3.h for mx27, so move the GPIO_PORTx to gpio.h to fix the build warning. Signed-off-by: Peng Fan peng@freescale.com --- Changes v5: Take Fabio's suggestion. Since iomux-v3.h is not compatible with mx27, we can not directly include iomux-v3.h

Re: [U-Boot] [PATCH v2 3/4] imx: mx6: add display of CPU temperature grade in print_cpuinfo()

2015-05-17 Thread Peng Fan
Hi Fabio, On Fri, May 15, 2015 at 10:36:09AM -0300, Fabio Estevam wrote: Hi Tim, On Fri, May 15, 2015 at 10:31 AM, Tim Harvey thar...@gateworks.com wrote: Yes, that sounds like the best approach. What were your thoughts on enabling the second CPU: line just to display the temperature grade if

[U-Boot] [PATCH V4 1/2] i2c: mxc: refactor i2c driver and support dm

2015-05-14 Thread Peng Fan
Signed-off-by: Peng Fan peng@freescale.com Acked-by: Simon Glass s...@chromium.org --- Changes v4: 1. fix build errors 2. Introduce a weak function enable_i2c_clk. 3. add Simon's Acked-by. 4. Add test log in commit log. Changes v3: 1. remove bus_i2c_init for DM, introuduce a weak function

[U-Boot] [PATCH V4 2/2] imx: mx27 remove redundant macro

2015-05-14 Thread Peng Fan
Use common macro in iomux-v3.h, remove redundant macro. Signed-off-by: Peng Fan peng@freescale.com --- Changes v4: New patch. we include mxc_i2c.h in driver/i2c/mxc_i2c.c in patch 1/2. mxc_i2c.h includes iomux-v3.h. Since iomux-v3.h have some macros which also exists in asm/arch-xx/imx

Re: [U-Boot] [Patch v3 0/4] imx: mx6: use OTP for teperature grade info

2015-05-18 Thread Peng Fan
...@compulab.co.il Cc: Jon Nettleton jon.nettle...@gmail.com Cc: Jason Liu r64...@freescale.com Cc: Ye Li b37...@freescale.com Cc: Fabio Estevam fabio.este...@freescale.com Cc: Christian Gmeiner christian.gmei...@gmail.com Cc: Markus Niebel markus.nie...@tq-group.com Cc: Peng Fan b51...@freescale.com

[U-Boot] [PATCH] imx: mx6sx enable SION for i2c pin mux

2015-05-17 Thread Peng Fan
Enable IOMUX_CONFIG_SION for all I2C pin mux settings, otherwise we will get erros when doing i2c operations. error log like the following: wait_for_sr_state: failed sr=81 cr=a0 state=2020 i2c_init_transfer: failed for chip 0xb retry=1 Signed-off-by: Peng Fan peng@freescale.com --- arch

[U-Boot] [PATCH] pmic: pfuze100 fix typo

2015-05-17 Thread Peng Fan
Change PUZE_100_SW1ABCONF to PFUZE100_SW1ABCONF Signed-off-by: Peng Fan peng@freescale.com --- board/freescale/common/pfuze.c | 4 ++-- include/power/pfuze100_pmic.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/board/freescale/common/pfuze.c b/board/freescale

[U-Boot] [PATCH] dm: i2c: mxc support DM

2015-04-15 Thread Peng Fan
[ ]| |-- i2c@30a4 spi [ ]| `-- qspi@30bb simple_bus [ ]`-- regulators Signed-off-by: Peng Fan peng@freescale.com --- arch/arm/imx-common/i2c-mxv7.c| 4 + arch/arm/include/asm/imx-common/mxc_i2c.h | 5 + drivers/i2c/mxc_i2c.c

Re: [U-Boot] [dm/next PATCH v1] dm: qspi fix claim bus and release bus

2015-04-15 Thread Peng Fan
Add missed people. On 4/14/2015 1:19 PM, Peng Fan wrote: For fsl_qspi_claim_bus and fsl_qspi_release_bus, the input parameter struct udevice *dev represents device: qspi[x]: qspi@[address] {...}. Since dev already represents the qspi controller, use its parent to get platdata and get 'priv

[U-Boot] [PATCH] imx: dma: correct MXS_DMA_ALIGNMENT

2015-05-19 Thread Peng Fan
address is not aligned - 0xbdf1f4a0 ERROR: v7_dcache_inval_range - start address is not aligned - 0xbdf1d1a0 Align MXS_DMA_ALIGNMENT with ARCH_DMA_MINALIGN whose value is same to CONFIG_SYS_CACHELINE_SIZE if CONFIG_SYS_CACHELINE_SIZE defined. Signed-off-by: Peng Fan peng@freescale.com --- arch/arm

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

2015-06-10 Thread Peng Fan
On Wed, Jun 10, 2015 at 11:24:04AM +0200, Stefano Babic wrote: On 10/06/2015 10:06, Peng Fan wrote: From: Ye.Li b37...@freescale.com The i.MX6QP 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

Re: [U-Boot] [PATCH 4/8] imx: mx6: ccm: Change the clock settings for i.MX6QP

2015-06-10 Thread Peng Fan
Hi Stefano, On Wed, Jun 10, 2015 at 11:23:10AM +0200, Stefano Babic wrote: Hi Peng, On 10/06/2015 10:06, Peng Fan wrote: Since i.MX6QP changes some CCM registers, so modify the clocks settings to follow the hardware changes. A new CONFIG_MX6QP is introduced here and is used for the CCM

Re: [U-Boot] [PATCH 2/8] imx: mx6: Add MX6DQP CPU rev type

2015-06-10 Thread Peng Fan
Hi Stefano, On Wed, Jun 10, 2015 at 11:19:07AM +0200, Stefano Babic wrote: Hi Peng, On 10/06/2015 10:06, Peng Fan wrote: Add new cpu type for i.MX6DQP and providing a dynamical detecting function. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Ye.Li b37...@freescale.com

Re: [U-Boot] [PATCH 7/8] imx: mx6qpsabreauto: Add MX6QP SABREAUTO CPU3 board support

2015-06-10 Thread Peng Fan
Hi, Stefano On Wed, Jun 10, 2015 at 11:40:38AM +0200, Stefano Babic wrote: Hi Peng, On 10/06/2015 10:06, Peng Fan wrote: 1. Add DDR script for mx6qpsabreauto board. 2. On CPU3 board, enet RGMII tx clock is from internal PLL. Set the GPR5[9] and init the enet pll output to 125Mhz. 3

Re: [U-Boot] [PATCH 8/8] imx: mx6qp: Adjust AQos settings for peripherals

2015-06-10 Thread Peng Fan
Hi Stefano, On Wed, Jun 10, 2015 at 11:44:34AM +0200, Stefano Babic wrote: Hi Peng, On 10/06/2015 10:06, Peng Fan wrote: From: Ye.Li b37...@freescale.com To resolve USB camera bandwidth issue, the patch sets recommended AQoS setting from IC team value for peripheral and only on imx6qp

[U-Boot] [PATCH 3/8] imx: mx6: L2cache: Enable the double line fill for i.MX6DQP

2015-06-10 Thread Peng Fan
From: Ye.Li b37...@freescale.com Since i.MX6DQP has fixed the L2 cache issue, enable the double line fill feature to provide better performance. Signed-off-by: Ye.Li b37...@freescale.com Signed-off-by: Peng Fan peng@freescale.com --- arch/arm/cpu/armv7/mx6/soc.c | 3 +++ 1 file changed, 3

[U-Boot] [PATCH 4/8] imx: mx6: ccm: Change the clock settings for i.MX6QP

2015-06-10 Thread Peng Fan
-by: Peng Fan peng@freescale.com --- arch/arm/cpu/armv7/mx6/clock.c | 13 +--- arch/arm/cpu/armv7/mx6/soc.c | 5 ++- arch/arm/include/asm/arch-mx6/crm_regs.h | 55 include/configs/mx6_common.h | 3 ++ 4 files changed, 57

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

2015-06-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 --- arch/arm/cpu/armv7/mx6/hab.c | 3 ++- 1 file changed, 2 insertions(+), 1

[U-Boot] [PATCH 1/8] imx: mx6 cast return type of is_soc_rev to int

2015-06-10 Thread Peng Fan
is_soc_rev should be casted to signed int, otherwise may incur errors when detecting cpu types, since we use such pieces of code: if (is_soc_rev(CHIP_REV_1_0) 0) .. if (is_soc_rev(CHIP_REV_2_0) = 0) .. Signed-off-by: Peng Fan peng@freescale.com --- arch/arm/include/asm/arch-mx6

[U-Boot] [PATCH 8/8] imx: mx6qp: Adjust AQos settings for peripherals

2015-06-10 Thread Peng Fan
From: Ye.Li b37...@freescale.com To resolve USB camera bandwidth issue, the patch sets recommended AQoS setting from IC team value for peripheral and only on imx6qp. The address is: 0xbb0608, the value is: 0x8201 Signed-off-by: Ye.Li b37...@freescale.com Signed-off-by: Peng Fan peng

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

2015-06-10 Thread Peng Fan
From: Ye.Li b37...@freescale.com The i.MX6QP 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 --- arch/arm/cpu/armv7/mx6/clock.c | 6 ++ 1 file

Re: [U-Boot] [PATCH 1/8] imx: mx6 cast return type of is_soc_rev to int

2015-06-10 Thread Peng Fan
Hi Stefano, On Wed, Jun 10, 2015 at 10:20:38AM +0200, Stefano Babic wrote: Hi Peng, On 10/06/2015 10:06, Peng Fan wrote: is_soc_rev should be casted to signed int, otherwise may incur errors when detecting cpu types, since we use such pieces of code: if (is_soc_rev(CHIP_REV_1_0) 0

[U-Boot] [PATCH 2/8] imx: mx6: Add MX6DQP CPU rev type

2015-06-10 Thread Peng Fan
Add new cpu type for i.MX6DQP and providing a dynamical detecting function. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Ye.Li b37...@freescale.com --- arch/arm/cpu/armv7/mx6/soc.c | 4 +++- arch/arm/include/asm/arch-mx6/imx-regs.h | 1 + arch/arm/include/asm/arch

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

2015-06-10 Thread Peng Fan
...@freescale.com Signed-off-by: Peng Fan peng@freescale.com --- board/freescale/mx6qsabreauto/mx6qp.cfg | 158 ++ board/freescale/mx6qsabreauto/mx6qsabreauto.c | 32 +- configs/mx6qpsabreauto_defconfig | 5 + include/configs/mx6qsabreauto.h

Re: [U-Boot] arm: imx: Kernel not booting when environment is in QSPI

2015-06-09 Thread Peng Fan
Hi Matthias, I can not reproduce your issue. All is fine in my side. which version/branch are you using for uboot and linux? mainline or fsl vendor? Regards, Peng. On Tue, Jun 09, 2015 at 10:24:38AM -0500, Nitin Garg wrote: On 06/09/2015 10:02 AM, Fabio Estevam wrote: Adding some FSL folks in

[U-Boot] [PATCH 3/3] imx: mx6 add i2c4 clock support for i.MX6SX

2015-06-24 Thread Peng Fan
-off-by: Peng Fan peng@freescale.com --- arch/arm/cpu/armv7/mx6/clock.c | 14 ++ arch/arm/include/asm/arch-mx6/crm_regs.h | 9 - 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/arch/arm/cpu/armv7/mx6/clock.c b/arch/arm/cpu/armv7/mx6/clock.c index

[U-Boot] [PATCH 2/3] imx: cm_fx6 use enable_spi_clk

2015-06-24 Thread Peng Fan
Use enable_spi_clock, since enable_cspi_clock is removed. Signed-off-by: Peng Fan peng@freescale.com --- board/compulab/cm_fx6/spl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/compulab/cm_fx6/spl.c b/board/compulab/cm_fx6/spl.c index 5b4b76f..5ce33d0 100644

[U-Boot] [PATCH 1/3] imx: mx6 remove duplicated enable_cspi_clock

2015-06-24 Thread Peng Fan
enable_spi_clock does the same thing with enable_cspi_clock. Signed-off-by: Peng Fan peng@freescale.com --- arch/arm/cpu/armv7/mx6/clock.c | 19 --- 1 file changed, 19 deletions(-) diff --git a/arch/arm/cpu/armv7/mx6/clock.c b/arch/arm/cpu/armv7/mx6/clock.c index ae99945

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

2015-06-24 Thread Peng Fan
the stale data. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Ye.Li b37...@freescale.com Signed-off-by: Nitin Garg nitin.g...@freescale.com Signed-off-by: Jason Liu r64...@freescale.com --- drivers/mmc/fsl_esdhc.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers

Re: [U-Boot] [PATCH 1/3] imx: mx6 remove duplicated enable_cspi_clock

2015-06-24 Thread Peng Fan
On Wed, Jun 24, 2015 at 12:53:40PM -0300, Fabio Estevam wrote: On Wed, Jun 24, 2015 at 7:44 AM, Peng Fan peng@freescale.com wrote: enable_spi_clock does the same thing with enable_cspi_clock. Signed-off-by: Peng Fan peng@freescale.com --- arch/arm/cpu/armv7/mx6/clock.c | 19

[U-Boot] [PATCH V2 1/2] imx: mx6 remove duplicated enable_cspi_clock

2015-06-24 Thread Peng Fan
enable_spi_clock does the same thing with enable_cspi_clock, so remove enable_cspi_clock. Remove enable_cspi_clock prototype in header file convert cm_fx6/spl.c to use enable_spi_clk Signed-off-by: Peng Fan peng@freescale.com --- arch/arm/cpu/armv7/mx6/clock.c| 19

[U-Boot] [PATCH V2 2/2] imx: mx6 add i2c4 clock support for i.MX6SX

2015-06-24 Thread Peng Fan
-off-by: Peng Fan peng@freescale.com --- arch/arm/cpu/armv7/mx6/clock.c | 14 ++ arch/arm/include/asm/arch-mx6/crm_regs.h | 9 - 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/arch/arm/cpu/armv7/mx6/clock.c b/arch/arm/cpu/armv7/mx6/clock.c index

[U-Boot] [PATCH v2 1/8] imx: mx6 correct is_soc_rev usage

2015-06-11 Thread Peng Fan
is_soc_rev should return a bool value, so use ==, but not -, change (is_soc_rev(CHIP_REV_1_0) 0) to (soc_rev() CHIP_REV_1_0). This patch also add space between for cpu_type(rev) macro. Signed-off-by: Peng Fan peng@freescale.com --- Changes v2: new patch arch/arm/imx-common/timer.c

[U-Boot] [PATCH v2 5/8] imx: mx6: hab : Remove the cache issue workaroud in hab for i.MX6QP

2015-06-11 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 --- Changes v2: None arch/arm/cpu/armv7/mx6/hab.c | 3 ++- 1 file changed, 2

[U-Boot] [PATCH v2 3/8] imx: mx6 introuduce macro is_mx6dqp

2015-06-11 Thread Peng Fan
Add a new revision CHIP_REV_2_0. Introudce macro is_mx6dqp, dqp means Dual/Quad Plus. Since Dual/Quad Plus use same cpu type with Dual/Quad, but different revision(Major Lower), we use this macro for Dual/Quad Plus. Signed-off-by: Ye.Li b37...@freescale.com Signed-off-by: Peng Fan peng

[U-Boot] [PATCH v2 4/8] imx: mx6: ccm: Change the clock settings for i.MX6QP

2015-06-11 Thread Peng Fan
is enabled along with the CONFIG_MX6QP. Signed-off-by: Ye.Li b37...@freescale.com Signed-off-by: Peng Fan peng@freescale.com --- Changes v2: 1. Remove #ifdef, but use runtime check 2. A few bit definitions are introduced in c files, because to other platforms the macro will make

[U-Boot] [PATCH v2 7/8] imx: mx6qpsabreauto: Add MX6QP SABREAUTO CPU3 board support

2015-06-11 Thread Peng Fan
detected: default to HDMI Display: HDMI (1024x768) In:serial Out: serial Err: serial Net: FEC [PRIME] Hit any key to stop autoboot: 0 Signed-off-by: Robin Gong b38...@freescale.com Signed-off-by: Ye.Li b37...@freescale.com Signed-off-by: Peng Fan peng@freescale.com --- Changes v2

[U-Boot] [PATCH v2 2/8] imx: mx6 correct get_cpu_rev

2015-06-11 Thread Peng Fan
The DIGPROG register map: 23 --- 16 | 15 -- 8 | 7 --- 0 | Major upper | Major Lower | Minor | We also need to account for Major Lower. Signed-off-by: Ye.Li b37...@freescale.com Signed-off-by: Peng Fan peng@freescale.com --- Changes v2: split from PATCH v1 2/8. This piece code

[U-Boot] [PATCH v2 8/8] imx: mx6qp: Adjust AQos settings for peripherals

2015-06-11 Thread Peng Fan
-off-by: Peng Fan peng@freescale.com --- Changes v2: improve comments arch/arm/cpu/armv7/mx6/soc.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c index bcfa2f6..e3e1494 100644 --- a/arch/arm/cpu/armv7/mx6/soc.c +++ b/arch

[U-Boot] [PATCH v2 6/8] imx: mx6qp Enable PRG clock and AQoS setting for IPU

2015-06-11 Thread Peng Fan
The i.MX6DQP has a PRG module, need to enable its clock for using IPU. Bypass QoS for IPU and increase bankwidth threshold for PRE to get better performance for video. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Brown Oliver b37...@freescale.com Signed-off-by: Ye.Li b37

[U-Boot] [PATCH] imx: imximage: add new CHECK/CLR BIT command

2015-06-14 Thread Peng Fan
whether dcd size is larger than MAX_DCD_SIZE_V2, but not dcd_len. Signed-off-by: Peng Fan peng@freescale.com --- tools/imximage.c | 129 ++- tools/imximage.h | 24 +-- 2 files changed, 119 insertions(+), 34 deletions(-) diff --git

Re: [U-Boot] [PATCH] imx: imximage: add new CHECK/CLR BIT command

2015-06-15 Thread Peng Fan
Hi All, On Mon, Jun 15, 2015 at 05:53:19PM +0200, Stefano Babic wrote: Hi Peng, On 15/06/2015 17:17, Fabio Estevam wrote: Hi Peng, On Sun, Jun 14, 2015 at 6:38 AM, Peng Fan peng@freescale.com wrote: Since rom code supports the following commands, add new commands support in imximage

[U-Boot] [PATCH V2 1/2] imx: mx6 remove duplicated enable_cspi_clock

2015-07-01 Thread Peng Fan
enable_spi_clock does the same thing with enable_cspi_clock, so remove enable_cspi_clock. Remove enable_cspi_clock prototype in header file convert cm_fx6/spl.c to use enable_spi_clk Signed-off-by: Peng Fan peng@freescale.com Acked-by: Stefano Babic sba...@denx.de --- Changes v2: Add

[U-Boot] [PATCH V2 2/2] imx: mx6 add i2c4 clock support for i.MX6SX

2015-07-01 Thread Peng Fan
-by: Peng Fan peng@freescale.com --- Changes v2: correct spelling error in commit log. arch/arm/cpu/armv7/mx6/clock.c | 14 ++ arch/arm/include/asm/arch-mx6/crm_regs.h | 5 ++--- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/arch/arm/cpu/armv7/mx6/clock.c

Re: [U-Boot] [PATCH] imx: imximage: add new CHECK/CLR BIT command

2015-06-30 Thread Peng Fan
Hi Stefano, On Sun, Jun 28, 2015 at 01:00:07PM +0200, Stefano Babic wrote: Hi Peng, On 14/06/2015 11:38, Peng Fan wrote: Since rom code supports the following commands, add new commands support in imximage. It is better to explain here which i.MX are supporting this ROM (i.MX6 and i.MX7

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

2015-07-02 Thread Peng Fan
- bad CRC, using default environment In:serial Out: serial Err: serial Hit any key to stop autoboot: 0 Signed-off-by: Ye.Li b37...@freescale.com Signed-off-by: Peng Fan peng@freescale.com --- arch/arm/Kconfig | 7 + board/freescale/mx6ul_14x14_evk

[U-Boot] [PATCH 08/11] imx: mx6 add PAD_CTL_SPEED_LOW for i.MX6SX/UL

2015-07-02 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 --- 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.h b/arch/arm

[U-Boot] [PATCH 10/11] mx6_common: Fix LOADADDR and SYS_TEXT_BASE for i.MX6UL

2015-07-02 Thread Peng Fan
ddr for i.MX6UL starts from 0x8000 Signed-off-by: Peng Fan peng@freescale.com --- include/configs/mx6_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/mx6_common.h b/include/configs/mx6_common.h index 6808674..ccb2d04 100644 --- a/include

[U-Boot] [PATCH 04/11] imx-common: add syscounter driver

2015-07-02 Thread Peng Fan
syscounter exists on i.MX6UL and i.MX7D, so implement the driver in imx-common. If want to use syscounter, define CONFIG_SYSCOUNTER_TIMER; if still want to use GPT timer, #define CONFIG_GPT_TIMER. Signed-off-by: Ye.Li b37...@freescale.com Signed-off-by: Peng Fan peng@freescale.com --- arch

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

2015-07-02 Thread Peng Fan
Update imx register base address for i.MX6UL Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Ye.Li b37...@freescale.com --- arch/arm/include/asm/arch-mx6/imx-regs.h | 60 ++-- 1 file changed, 41 insertions(+), 19 deletions(-) diff --git a/arch/arm

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

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

[U-Boot] [PATCH 07/11] imx: mx6ul update soc related settings

2015-07-02 Thread Peng Fan
Add MX6UL in Kconfig, default select SYS_L2CACHE_OFF. update WDOG settings. No need to gate/ungate all PFDs for i.MX6UL. Signed-off-by: Ye.Li b37...@freescale.com Signed-off-by: Peng Fan peng@freescale.com --- arch/arm/cpu/armv7/mx6/Kconfig | 4 arch/arm/cpu/armv7/mx6/soc.c | 4

[U-Boot] [PATCH 05/11] imx: mx6ul remove errata for i.MX6UL and use syscounter

2015-07-02 Thread Peng Fan
Since i.MX6UL use A7 core, but not A9 core, we do not need the erratas for i.MX6UL. Also use syscounter for i.MX6UL. Signed-off-by: Ye.Li b37...@freescale.com Signed-off-by: Peng Fan peng@freescale.com --- include/configs/mx6_common.h | 8 +++- 1 file changed, 7 insertions(+), 1 deletion

[U-Boot] [PATCH 06/11] imx:mx6ul add clock support

2015-07-02 Thread Peng Fan
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@freescale.com --- arch/arm/cpu/armv7/mx6

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

2015-07-02 Thread Peng Fan
Add MXC_CPU_MX6UL for i.MX6UL CPU type which is got at runtime. The 0x64 is defined as i.MX6UL CPU type value in Reference mannual, but the value has been occupied by i.MX6D as a dummy CPU type. So we also change i.MX6D to value 0x67. Signed-off-by: Peng Fan peng@freescale.com Signed-off

[U-Boot] [PATCH 00/11] imx: add i.MX6UL and basic board support

2015-07-02 Thread Peng Fan
/489469/ Peng Fan (11): imx: mx6ul: Add i.MX6UL CPU type imx: mx6ul: Add pins IOMUX head file imx: mx6ul: Update imx registers head file imx-common: add syscounter driver imx: mx6ul remove errata for i.MX6UL and use syscounter imx:mx6ul add clock support imx: mx6ul update soc related

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

2015-07-02 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 --- 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 100644 --- a/drivers/gpio

Re: [U-Boot] [PATCH v2 7/8] imx: mx6qpsabreauto: Add MX6QP SABREAUTO CPU3 board support

2015-06-29 Thread Peng Fan
On Mon, Jun 29, 2015 at 09:02:20AM -0300, Fabio Estevam wrote: On Mon, Jun 29, 2015 at 5:06 AM, Peng Fan b51...@freescale.com wrote: Get you. I saw the code in gw_ventana.c to detect the DTB at runtime. I would suggest using the approach done at mx6cuboxi to detect the DTB at runtime: http

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

2015-06-29 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: Robin Gong b38...@freescale.com Signed-off-by: Ye.Li b37...@freescale.com Signed-off-by: Peng Fan peng@freescale.com --- Changes v3: 1. runtime setting DTB 2

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

2015-06-29 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 --- Changes v3: Remove ipu qos settings Changes v2: 1. runtime check 2

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

2015-06-29 Thread Peng Fan
should use: (is_cpu_type(MXC_CPU_MX6QP) || is_cpu_type(MXC_CPU_MX6DP)). Signed-off-by: Peng Fan peng@freescale.com --- Changes v3: New patch This patch is to make print_cpuinfo display correct cpu info, also fix is_mx6dqp Changes v2: none arch/arm/cpu/armv7/mx6/soc.c | 11

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

2015-06-29 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: Ye.Li b37...@freescale.com Signed-off-by: Peng Fan peng@freescale.com --- Changes v3: Move bit definition to crm_regs.h

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

2015-06-29 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 V3 3/6] imx: mx6: hab : Remove the cache issue workaroud in hab for i.MX6QP

2015-06-29 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 --- Changes v3: none Changes v2: none arch/arm/cpu/armv7/mx6/hab.c | 3 ++- 1

Re: [U-Boot] [PATCH 04/11] imx-common: add syscounter driver

2015-07-02 Thread Peng Fan
Hi Marek, On Thu, Jul 02, 2015 at 08:31:37PM +0200, Marek Vasut wrote: On Thursday, July 02, 2015 at 01:03:01 PM, Peng Fan wrote: syscounter exists on i.MX6UL and i.MX7D, so implement the driver in imx-common. If want to use syscounter, define CONFIG_SYSCOUNTER_TIMER; if still want to use GPT

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

2015-07-02 Thread Peng Fan
Hi Marek, On Thu, Jul 02, 2015 at 08:30:30PM +0200, Marek Vasut wrote: On Thursday, July 02, 2015 at 01:03:00 PM, Peng Fan wrote: Update imx register base address for i.MX6UL Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Ye.Li b37...@freescale.com --- arch/arm/include/asm

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

2015-07-02 Thread Peng Fan
Hi, Marek On Thu, Jul 02, 2015 at 08:29:20PM +0200, Marek Vasut wrote: On Thursday, July 02, 2015 at 01:02:59 PM, 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 11/11] imx: mx6ul_14x14_evk add basic board support

2015-07-02 Thread Peng Fan
Hi Fabio, On Thu, Jul 02, 2015 at 11:15:17AM -0300, Fabio Estevam wrote: On Thu, Jul 2, 2015 at 8:03 AM, Peng Fan peng@freescale.com wrote: +#if defined(CONFIG_MX6UL_EVK_EMMC_REWORK) Why do we need this config option? This board default support sd. If want to use emmc, need to rework

Re: [U-Boot] [PATCH 07/11] imx: mx6ul update soc related settings

2015-07-02 Thread Peng Fan
Hi, Marek and Fabio On Thu, Jul 02, 2015 at 08:33:34PM +0200, Marek Vasut wrote: On Thursday, July 02, 2015 at 01:03:04 PM, Peng Fan wrote: Add MX6UL in Kconfig, default select SYS_L2CACHE_OFF. Why ? i.MX6UL features an Cortex-A7 core, it does not have PL310. As we know Cortex-A7 does

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

2015-07-02 Thread Peng Fan
Hi Marek, On Thu, Jul 02, 2015 at 08:27:09PM +0200, Marek Vasut wrote: On Thursday, July 02, 2015 at 01:02:58 PM, Peng Fan wrote: Add MXC_CPU_MX6UL for i.MX6UL CPU type which is got at runtime. The 0x64 is defined as i.MX6UL CPU type value in Reference mannual, nit: manual, one N

Re: [U-Boot] [PATCH V2 2/2] imx: mx6 add i2c4 clock support for i.MX6SX

2015-06-28 Thread Peng Fan
Hi Stefano, On Sun, Jun 28, 2015 at 10:52:50AM +0200, Stefano Babic wrote: Hi Peng, On 25/06/2015 03:33, Peng Fan wrote: Add I2C4 clock support for i.MX6SX. Since we use runtime check, but not macro, we need to remove `#ifdef ..` in crm_regs.h, or we will get compliation failure for other

Re: [U-Boot] [PATCH v2 4/8] imx: mx6: ccm: Change the clock settings for i.MX6QP

2015-06-28 Thread Peng Fan
Hi Stefano, On Sat, Jun 27, 2015 at 06:44:25PM +0200, Stefano Babic wrote: Hi Peng, On 11/06/2015 12:30, Peng Fan wrote: 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. A new

Re: [U-Boot] [PATCH v2 7/8] imx: mx6qpsabreauto: Add MX6QP SABREAUTO CPU3 board support

2015-06-28 Thread Peng Fan
Hi Stefano, On Sat, Jun 27, 2015 at 07:08:14PM +0200, Stefano Babic wrote: Hi Peng, On 11/06/2015 12:30, Peng Fan wrote: 1. Add DDR script for mx6qpsabreauto board. 2. On CPU3 board, enet RGMII tx clock is from internal PLL. Set the GPR5[9] and init the enet pll output to 125Mhz. 3

Re: [U-Boot] [PATCH] imx: dma: correct MXS_DMA_ALIGNMENT

2015-05-25 Thread Peng Fan
Hi Stefano, On Thu, May 21, 2015 at 09:16:32AM +0800, Peng Fan wrote: Hi Marek, On Wed, May 20, 2015 at 01:06:21PM +0200, Marek Vasut wrote: On Wednesday, May 20, 2015 at 04:28:48 AM, Peng Fan wrote: We should not hardcode MXS_DMA_ALIGNMENT to 32, since we can not guarantee that socs' cache

Re: [U-Boot] [PATCH] imx: dma: correct MXS_DMA_ALIGNMENT

2015-05-21 Thread Peng Fan
Hi Marek, On Wed, May 20, 2015 at 01:06:21PM +0200, Marek Vasut wrote: On Wednesday, May 20, 2015 at 04:28:48 AM, Peng Fan wrote: We should not hardcode MXS_DMA_ALIGNMENT to 32, since we can not guarantee that socs' cache line size is 32 bytes. If on chips whose cache line size is 64 bytes

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

2015-08-01 Thread Peng Fan
On Fri, Jul 31, 2015 at 09:36:45PM -0500, Scott Wood wrote: On Sat, 2015-08-01 at 09:15 +0800, Peng Fan wrote: On Fri, Jul 31, 2015 at 12:07:50PM -0500, Scott Wood wrote: On Tue, 2015-07-21 at 16:15 +0800, Peng Fan wrote: If ecc chunk data size is 512 and oobsize is bigger than 512

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

2015-07-31 Thread Peng Fan
On Fri, Jul 31, 2015 at 12:07:50PM -0500, Scott Wood wrote: On Tue, 2015-07-21 at 16:15 +0800, Peng Fan wrote: If ecc chunk data size is 512 and oobsize is bigger than 512, there is a chance that block_mark_bit_offset conflicts with bch ecc area. The following graph is modified from kernel

Re: [U-Boot] [PATCH] imx: mx27 implement get_cpu_rev

2015-08-12 Thread Peng Fan
Hi Stefano, On Wed, Aug 12, 2015 at 05:50:36PM +0200, Stefano Babic wrote: On 12/08/2015 11:40, Peng Fan wrote: Write a function named get_cpu_rev to make it support runtime checking using is_cpu_type(MXC_CPU_xx). Also introduce a macro MXC_CPU_MX27 with value 0x27. Signed-off-by: Peng Fan

[U-Boot] [PATCH V2 2/5] imx: mx27 implement get_cpu_rev

2015-08-12 Thread Peng Fan
Implement get_cpu_rev to support runtime check using is_cpu_type. Signed-off-by: Peng Fan peng@freescale.com Cc: Stefano Babic sba...@denx.de Reviewed-by: Stefano Babic sba...@denx.de --- Changes v2: New patch. arch/arm/cpu/arm926ejs/mx27/generic.c | 6 ++ 1 file changed, 6 insertions

[U-Boot] [PATCH V2 1/5] imx: add cpu type for i.MX2 and i.MX3

2015-08-12 Thread Peng Fan
Add cpu types for i.MX2/3. Signed-off-by: Peng Fan peng@freescale.com Cc: Stefano Babic sba...@denx.de Reviewed-by: Stefano Babic sba...@denx.de --- Changes v2: Add mx27 cpu type. arch/arm/include/asm/arch-imx/cpu.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm

[U-Boot] [PATCH V2 3/5] imx: mx31 use new formula for get_cpu_rev

2015-08-12 Thread Peng Fan
Use new formula for get_cpu_rev, since we need to use this formula to do runtime check for all i.MXes. Signed-off-by: Peng Fan peng@freescale.com Cc: Stefano Babic sba...@denx.de Reviewed-by: Stefano Babic sba...@denx.de --- Changes v2: none arch/arm/cpu/arm1136/mx31/generic.c| 2

Re: [U-Boot] [PATCH 4/4] imx-common: consolidate macros and prototypes into sys_proto.h

2015-08-12 Thread Peng Fan
Hi Stefano, On Wed, Aug 12, 2015 at 05:49:15PM +0200, Stefano Babic wrote: Hi Peng, On 10/08/2015 14:53, Peng Fan wrote: Move most macro definitions and prototypes into arch/arm/include/asm/imx-common/sys_proto.h to avoid duplicated function prototypes and marco definitions for different i.MX

[U-Boot] [PATCH V2 4/5] imx: mxs: reimplement get_cpu_rev

2015-08-12 Thread Peng Fan
Rewrite get_cpu_rev, from static const char *get_cpu_rev(void) to u32 get_cpu_rev(void). To align with get_cpu_rev of other i.MXes. Also write get_imx_type to replace get_cpu_type, since we have macro named get_cpu_type. Signed-off-by: Peng Fan peng@freescale.com Cc: Stefano Babic sba

[U-Boot] [PATCH V2 5/5] imx-common: consolidate macros and prototypes into sys_proto.h

2015-08-12 Thread Peng Fan
and others. This patch remove duplicated macros and prototypes and incude sys_proto.h of imx-common for each sys_proto.h of different i.MX platforms. Then later we should avoid add stuff in sys_proto.h of each platform, and modify driver to include common sys_proto.h. Signed-off-by: Peng Fan peng

Re: [U-Boot] [PATCH V2 3/3] imx: mx6ul_14x14_evk add ENET support

2015-08-23 Thread Peng Fan
Hi Stefano, On Sun, Aug 23, 2015 at 05:45:45PM +0200, Stefano Babic wrote: On 12/08/2015 10:34, Peng Fan wrote: Wrong patch version. Please ignore. It is, discarded. Can you please pick this one instead? http://lists.denx.de/pipermail/u-boot/2015-August/223124.html This one is the correct

[U-Boot] [PATCH 3/3] imx: mx6ul_14x14_evk discard MX6UL from CONFIG_SYS_EXTRA_OPTIONS

2015-08-19 Thread Peng Fan
Discard MX6UL from CONFIG_SYS_EXTRA_OPTIONS, since we default select MX6UL for mx6ul_14x14_evk board. Signed-off-by: Peng Fan peng@freescale.com Cc: Stefano Babic sba...@denx.de Cc: Fabio Estevam fabio.este...@freescale.com --- configs/mx6ul_14x14_evk_defconfig | 2 +- 1 file changed, 1

[U-Boot] [PATCH 1/3] arm: Add SYS_L2CACHE_OFF Kconfig entry

2015-08-19 Thread Peng Fan
To i.MX6UL, SYS_L2CACHE_OFF is selected, but there is no Kconfig entry for SYS_L2CACHE_OFF. Then select SYS_L2CACHE_OFF does not effect for i.MX6UL, which is not expected. Since SYS_L2CACHE_OFF is mainly used by ARM architecture, add it to arch/arm/Kconfig. Signed-off-by: Peng Fan peng

[U-Boot] [PATCH 2/3] imx: mx6ul_14x14_evk select MX6UL

2015-08-19 Thread Peng Fan
There is no need to expose SoC choice to user, we already got the SoC according to the build target. So default select MX6UL for MX6UL_14x14_EVK target. Signed-off-by: Peng Fan peng@freescale.com Cc: Stefano Babic sba...@denx.de Cc: Fabio Estevam fabio.este...@freescale.com --- Hi Stefano

[U-Boot] [PATCH 4/9] imx: mx6: ddr add dram io configuration and header file for i.MX6SL

2015-08-17 Thread Peng Fan
Define two structure mx6sl_iomux_ddr_regs and mx6sl_iomux_grp_regs. Add a new function mx6sl_dram_iocfg to configure dram io. Add header file to define macros for register address. Signed-off-by: Peng Fan peng@freescale.com Cc: Stefano Babic sba...@denx.de --- arch/arm/cpu/armv7/mx6/ddr.c

[U-Boot] [PATCH 3/9] imx: mx6: ddr correct tRFC and tXS

2015-08-17 Thread Peng Fan
To Chip density 4Gb, tRFC should be 300ns, see Table 61 — Refresh parameters by device density of JESD79-3E. tXS(min) is max(5nCK, tRFC(min) + 10ns). Signed-off-by: Peng Fan peng@freescale.com Cc: Stefano Babic sba...@denx.de Cc: Tim Harvey thar...@gateworks.com --- arch/arm/cpu/armv7/mx6

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