Re: [U-Boot] [PATCH v2 2/2] imx:mx6sxsabresd add qspi support

2014-10-09 Thread Peng Fan
...@lists.denx.de] On Behalf Of Peng Fan Sent: Thursday, September 11, 2014 9:56 AM To: Estevam Fabio-R49496; Li Ye-B37916 Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH v2 2/2] imx:mx6sxsabresd add qspi support Configure the pad setting and enable qspi clock to support qspi flashes access

Re: [U-Boot] [PATCH v2 1/2] arm:mx6sx add QSPI support

2014-10-09 Thread Peng Fan
Hi, just ping, Any comments about this patch? Regards, Peng. On 09/11/2014 09:54 AM, Peng Fan wrote: Add QSPI support for mx6solox. Signed-off-by: Peng Fan peng@freescale.com --- Changelog v2: Take Fabio's suggestion, split soc code and board code into two patches. arch/arm

Re: [U-Boot] [PATCH v2 2/2] imx:mx6sxsabresd add qspi support

2014-10-09 Thread Peng Fan
Hi, On 10/09/2014 06:37 PM, Jagan Teki wrote: Hi Peng Fan, Before reviewing these two patches, I'm requesting some sort work from your side like Can you update/fix the driver drivers/spi/fsl_qspi.c without using flash opcodes. Using flash opcode's with in the (q)spi driver

[U-Boot] [PATCH v3 1/4] QuadSPI: use QSPI_CMD_xx instead of flash opcodes

2014-10-14 Thread Peng Fan
Use QSPI_CMD_xx instead of flash opcodes Signed-off-by: Peng Fan peng@freescale.com --- Changelog v3: Use QSPI_CMD_XX instead of flash opcodes. To fsl qspi controller, the LUT should be pre programmed with QSPI CMD. Changelog v2: none drivers/spi/fsl_qspi.c | 64

[U-Boot] [PATCH v3 2/4] QuadSPI: use correct amba_base

2014-10-14 Thread Peng Fan
According cs, use different amba_base to choose the corresponding flash devices. If not, `sf probe 1:0` and `sf probe 1:1` will choose the same flash device, but not different flash devices. Signed-off-by: Peng Fan peng@freescale.com --- Changelog v3: none Changelog v2: none drivers

[U-Boot] [PATCH v3 3/4] arm:mx6sx add QSPI support

2014-10-14 Thread Peng Fan
Add QSPI support for mx6solox. Signed-off-by: Peng Fan peng@freescale.com --- Changelog v3: none Changelog v2: Take Fabio's suggestion, split soc code and board code into two patches. arch/arm/cpu/armv7/mx6/clock.c | 50 arch/arm/include/asm

[U-Boot] [PATCH v3 4/4] imx:mx6sxsabresd add qspi support

2014-10-14 Thread Peng Fan
Configure the pad setting and enable qspi clock to support qspi flashes access. Signed-off-by: Peng Fan peng@freescale.com --- Changelog v3: none Changelog v2: Take Fabio's suggestion, split soc code and board code into two patches. board/freescale/mx6sxsabresd/mx6sxsabresd.c | 40

Re: [U-Boot] MMU Mapping

2014-08-22 Thread Peng Fan
Hi, On 08/21/2014 06:44 PM, Stefano Babic wrote: Hi Alexandre, On 21/08/2014 11:08, Alexandre Delove wrote: Hello I am trying to disable the memory management unit on my sabreLite board, but i don't find what i should do. I also want to change the mapping of the MMU, but i don't know

[U-Boot] [PATCH] kgdb: Remove first_entry for kgdb

2014-09-01 Thread Peng Fan
|Host =kgdb |(gdb)b bootz |(gdb)c =bootz | |(gdb)Here stop because of breakpoint |(gdb)q Signed-off-by: Peng Fan van.free...@gmail.com --- common/kgdb.c | 14 ++ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git

[U-Boot] [PATCH 3/3] QSPI: Enable QSPI AHB read for MX6SX

2014-09-10 Thread Peng Fan
From: Peng Fan van.free...@gmail.com There are two different ways to read out the data from the flash: the IP Command Read and the AHB Command Read. The IC guy suggests we use the AHB Command Read which is faster then the IP Command Read. (What's more is that there is a bug in the IP Command

[U-Boot] [PATCH 0/3] Add QSPI support for mx6sxsabresd board

2014-09-10 Thread Peng Fan
From: Peng Fan van.free...@gmail.com This patch set is to support QSPI for mx6sxsabresd board. And register read/write is implmented. AHB read is also supported to improve flash read performance. All the three patches have been tested on mx6sxsabresd board. Peng Fan (3): ARM:MX6SX Add QuadSPI

[U-Boot] [PATCH 1/3] ARM:MX6SX Add QuadSPI support for mx6sxsabresd

2014-09-10 Thread Peng Fan
From: Peng Fan van.free...@gmail.com Add QuadSPI support for mx6sxsabresd board. There are two 16MB S25FL128S flashes on board. They are connected to QSPI2 interface. i.MX6SX supports two QuadSPI interfaces, QSPI1/2. The two flash devices are connected to A1/B1 of QSPI2. Signed-off-by: Peng Fan

[U-Boot] [PATCH 2/3] QSPI: Enable write device registers

2014-09-10 Thread Peng Fan
From: Peng Fan van.free...@gmail.com Add qspi_op_wrr to support status and configuration register write in flash devices. Signed-off-by: Peng Fan van.free...@gmail.com --- drivers/spi/fsl_qspi.c | 77 -- 1 file changed, 74 insertions(+), 3

Re: [U-Boot] [PATCH 1/3] ARM:MX6SX Add QuadSPI support for mx6sxsabresd

2014-09-10 Thread Peng Fan
On 09/10/2014 08:40 PM, Fabio Estevam wrote: On Wed, Sep 10, 2014 at 3:16 AM, Peng Fan peng@freescale.com wrote: From: Peng Fan van.free...@gmail.com Add QuadSPI support for mx6sxsabresd board. There are two 16MB S25FL128S flashes on board. They are connected to QSPI2 interface

[U-Boot] [PATCH v2 1/2] arm:mx6sx add QSPI support

2014-09-10 Thread Peng Fan
Add QSPI support for mx6solox. Signed-off-by: Peng Fan peng@freescale.com --- Changelog v2: Take Fabio's suggestion, split soc code and board code into two patches. arch/arm/cpu/armv7/mx6/clock.c| 50 +++ arch/arm/include/asm/arch-mx6/clock.h | 3

[U-Boot] [PATCH v2 2/2] imx:mx6sxsabresd add qspi support

2014-09-10 Thread Peng Fan
Configure the pad setting and enable qspi clock to support qspi flashes access. This patch has been tested on mx6sxsabresd board. Signed-off-by: Peng Fan peng@freescale.com --- Changelog v2: Take Fabio's suggestion, split soc code and board code into two patches. This patch needs

[U-Boot] [PATCH 0/3] imx:mx6: change CONFIG_SYS_FSL_ESDHC_ADDR

2014-09-15 Thread Peng Fan
, fsl_esdhc_mmc_init will use wrong base address to initialize SDHCx. Peng Fan (3): imx:mx6sxsabresd: change CONFIG_SYS_FSL_ESDHC_ADDR imx:mx6qarm2: change CONFIG_SYS_FSL_ESDHC_ADDR imx:mx6slevk: change CONFIG_SYS_FSL_ESDHC_ADDR include/configs/mx6qarm2.h | 2 +- include/configs/mx6slevk.h | 2

[U-Boot] [PATCH 3/3] imx:mx6slevk: change CONFIG_SYS_FSL_ESDHC_ADDR

2014-09-15 Thread Peng Fan
Define CONFIG_SYS_FSL_ESDHC_ADDR using USDHC2_BASE_ADDR which is used in board_mmc_init. Signed-off-by: Peng Fan peng@freescale.com --- include/configs/mx6slevk.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/mx6slevk.h b/include/configs/mx6slevk.h index

[U-Boot] [PATCH 1/3] imx:mx6sxsabresd: change CONFIG_SYS_FSL_ESDHC_ADDR

2014-09-15 Thread Peng Fan
Define CONFIG_SYS_FSL_ESDHC_ADDR using USDHC4_BASE_ADDR which is used in board_mmc_init. If board_mmc_init failed, cpu_mmc_init-fsl_esdhc_mmc_init will use CONFIG_SYS_FSL_ESDHC_ADDR to initialize sdhc. So set this macro to correct value. Signed-off-by: Peng Fan peng@freescale.com

[U-Boot] [PATCH 2/3] imx:mx6qarm2: change CONFIG_SYS_FSL_ESDHC_ADDR

2014-09-15 Thread Peng Fan
is invoked. Signed-off-by: Peng Fan peng@freescale.com --- include/configs/mx6qarm2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/mx6qarm2.h b/include/configs/mx6qarm2.h index fd651cf..fc0e284 100644 --- a/include/configs/mx6qarm2.h +++ b/include/configs

[U-Boot] [PATCH] imx:mx6sxsabresd fix pfuz probe failed

2014-10-30 Thread Peng Fan
PFUZ is connected to I2C bus 0, so change 1 - 0. Using this patch PFUZ can be correctly probed: PMIC: PFUZE100 ID=0x11 Signed-off-by: Peng Fan peng@freescale.com --- board/freescale/mx6sxsabresd/mx6sxsabresd.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/board

Re: [U-Boot] [PATCH] imx:mx6sxsabresd fix pfuz probe failed

2014-10-31 Thread Peng Fan
On 10/31/2014 08:01 PM, Fabio Estevam wrote: On Fri, Oct 31, 2014 at 1:08 AM, Peng Fan peng@freescale.com wrote: The PFUZ probe failed with the following msg: wait_for_sr_state: failed sr=81 cr=a0 state=2020 i2c_init_transfer: failed for chip 0x8 retry=0 wait_for_sr_state: failed

[U-Boot] [PATCH 1/5] imx:mx6sxsabresd add usb support

2014-10-31 Thread Peng Fan
Add usb support for mx6sxsabresd board. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Ye.Li b37...@freescale.com --- board/freescale/mx6sxsabresd/mx6sxsabresd.c | 29 + include/configs/mx6sxsabresd.h | 14 ++ 2 files changed

[U-Boot] [PATCH 4/5] imx:mx6qarm2 add usb support

2014-10-31 Thread Peng Fan
Add usb support for mx6qarm2 board. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Ye.Li b37...@freescale.com --- board/freescale/mx6qarm2/mx6qarm2.c | 27 +++ include/configs/mx6qarm2.h | 14 ++ 2 files changed, 41 insertions(+) diff

[U-Boot] [PATCH 2/5] imx:mx6slevk add usb support

2014-10-31 Thread Peng Fan
Add usb support for mx6slevk board. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Ye.Li b37...@freescale.com --- board/freescale/mx6slevk/mx6slevk.c | 29 + include/configs/mx6slevk.h | 14 ++ 2 files changed, 43 insertions

[U-Boot] [PATCH 5/5] imx:mx6sabresd add usb support

2014-10-31 Thread Peng Fan
Add usb support for mx6sabresd. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Ye.Li b37...@freescale.com --- board/freescale/mx6sabresd/mx6sabresd.c | 53 + include/configs/mx6sabresd.h| 14 + 2 files changed, 67 insertions

[U-Boot] [PATCH 0/5] add usb support for mx6 board

2014-10-31 Thread Peng Fan
function. ehci_hcd_init and otg power polarity in ehci-mx6.c are not touched. Thus usb start can not work fine. As this is new feature support, post this patch set for review first. In future patch, related patch that maybe bugfix to make `usb start` fine will be sent out. Peng Fan (5

[U-Boot] [PATCH 3/5] arm:imx-common introduce a new function to set gpr

2014-10-31 Thread Peng Fan
Add a new function mxc_iomux_set_gpr_register to set the iomux gpr register. 32-bit general purpose registers according to SoC requirements for any usage. 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

[U-Boot] [PATCH 2/2] arm:imx-common add function prototype for gpr set

2014-10-31 Thread Peng Fan
This patch arm:imx-common introduce a new function to set gpr missed to add the function prototype. Signed-off-by: Peng Fan peng@freescale.com --- arch/arm/include/asm/imx-common/iomux-v3.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/include/asm/imx-common/iomux-v3.h b

[U-Boot] [PATCH 1/2] imx:mx6sl_pins add pad settings for usb

2014-10-31 Thread Peng Fan
Add pad settings for usb support. This patch imx:mx6slevk add usb support missed to add pad definition. Signed-off-by: Peng Fan peng@freescale.com --- arch/arm/include/asm/arch-mx6/mx6sl_pins.h | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/include/asm/arch-mx6

[U-Boot] [RFC PATCH v1 0/2] kgdb:add breakpoint and arm support

2014-10-31 Thread Peng Fan
the board related kgdb serial code is not fine for patch review, I just sent out the common code for review. I am not sure whether this patch set will break other platform's kgdb support or not, so request for comment. Peng Fan (2): kgdb: add breakpoint support arm:kgdb add KGDB support for arm

[U-Boot] [RFC PATCH v1 2/2] arm:kgdb add KGDB support for arm platform

2014-10-31 Thread Peng Fan
The register save/restore: Use get_bad_stack and bad_save_user_regs to save regs. Introduce und_restore_regs to restore the previous regs before trigger a breakpoint. Signed-off-by: Peng Fan peng@freescale.com --- arch/arm/include/asm/proc-armv/ptrace.h | 2 +- arch/arm/include/asm

[U-Boot] [RFC PATCH v1 1/2] kgdb: add breakpoint support

2014-10-31 Thread Peng Fan
Add Z/z protocal support for breakpoint set/remove. Signed-off-by: Peng Fan peng@freescale.com --- common/kgdb.c | 273 + include/kgdb.h | 35 2 files changed, 308 insertions(+) diff --git a/common/kgdb.c b/common/kgdb.c

Re: [U-Boot] [PATCH 3/5] arm:imx-common introduce a new function to set gpr

2014-11-01 Thread Peng Fan
On 11/01/2014 03:39 PM, Li Ye-B37916 wrote: Hi Peng, On 11/1/2014 10:19 AM, Peng Fan wrote: Add a new function mxc_iomux_set_gpr_register to set the iomux gpr register. 32-bit general purpose registers according to SoC requirements for any usage. Signed-off-by: Peng Fan peng

Re: [U-Boot] [PATCH 1/5] imx:mx6sxsabresd add usb support

2014-11-03 Thread Peng Fan
Hi, 在 11/3/2014 8:28 PM, Stefano Babic 写道: Hi Peng, On 01/11/2014 03:19, Peng Fan wrote: Add usb support for mx6sxsabresd board. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Ye.Li b37...@freescale.com --- board/freescale/mx6sxsabresd/mx6sxsabresd.c | 29

[U-Boot] [PATCH v2 0/3] imx:mx6 add usb support

2014-11-03 Thread Peng Fan
Changes v2: - move pinmux setting into board_init - add otg polarity setting in board_ehci_hcd_init - Introduce a new weak function to give board a choice to decide the work mode of the otg port, since a otg port can also work in host mode without touch ID pin. Peng Fan (3): usb:ehci

[U-Boot] [PATCH v2 1/3] usb:ehci-mx6 add board_ehci_usb_mode function

2014-11-03 Thread Peng Fan
Include a weak function board_ehci_usb_mode to gives board code a choice. If the board want the otg port work in host mode but not device mode, this should be handled. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Ye Li b37...@freescale.com --- Changes v2: Introduce a new weak

[U-Boot] [PATCH v2 3/3] imx:mx6slevk add usb support

2014-11-03 Thread Peng Fan
Add usb support for mx6slevk board. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Ye Li b37...@freescale.com --- Changes v2: Add otg polarity setting move pinmux into board_init arch/arm/include/asm/arch-mx6/mx6sl_pins.h | 5 +++ board/freescale/mx6slevk/mx6slevk.c

[U-Boot] [PATCH v2 2/3] imx:mx6sxsabresd add usb support

2014-11-03 Thread Peng Fan
Add usb support for mx6sxsabresd board. There are two usb port on mx6sxsabresd board: 1. OTG 2. OTG The second port is actually an otg port with a USB A type interface on the board. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Ye Li b37...@freescale.com --- Changes v2: Add otg

Re: [U-Boot] [PATCH v2 1/3] usb:ehci-mx6 add board_ehci_usb_mode function

2014-11-04 Thread Peng Fan
在 11/4/2014 6:33 PM, Marek Vasut 写道: On Tuesday, November 04, 2014 at 08:50:00 AM, Peng Fan wrote: Include a weak function board_ehci_usb_mode to gives board code a choice. What choice? If the board want the otg port work in host mode but not device mode, this should be handled. How

Re: [U-Boot] [PATCH v2 0/3] imx:mx6 add usb support

2014-11-04 Thread Peng Fan
在 11/4/2014 6:31 PM, Marek Vasut 写道: On Tuesday, November 04, 2014 at 08:49:59 AM, Peng Fan wrote: So uh, what exactly does this patchset do ? It's not clear at all from the subject and any description is completely missing. To my knowledge, i.MX6 already does have USB support in U-Boot, so

Re: [U-Boot] [RFC PATCH v1 1/2] kgdb: add breakpoint support

2014-11-04 Thread Peng Fan
Hi Simon, 在 11/4/2014 2:46 PM, Simon Glass 写道: Hi Peng, On 31 October 2014 23:12, Peng Fan peng@freescale.com wrote: Add Z/z protocal support for breakpoint set/remove. Signed-off-by: Peng Fan peng@freescale.com This looks good to me - I just have a few bits below. --- common

Re: [U-Boot] [RFC PATCH v1 2/2] arm:kgdb add KGDB support for arm platform

2014-11-04 Thread Peng Fan
Hi Simon, 在 11/4/2014 2:58 PM, Simon Glass 写道: HI Peng, On 31 October 2014 23:12, Peng Fan peng@freescale.com wrote: The register save/restore: Use get_bad_stack and bad_save_user_regs to save regs. Introduce und_restore_regs to restore the previous regs before trigger a breakpoint

Re: [U-Boot] [PATCH v2 1/3] usb:ehci-mx6 add board_ehci_usb_mode function

2014-11-04 Thread Peng Fan
Hi Marek, 在 11/4/2014 7:01 PM, Marek Vasut 写道: On Tuesday, November 04, 2014 at 11:50:29 AM, Peng Fan wrote: 在 11/4/2014 6:33 PM, Marek Vasut 写道: On Tuesday, November 04, 2014 at 08:50:00 AM, Peng Fan wrote: Include a weak function board_ehci_usb_mode to gives board code a choice. What

Re: [U-Boot] [PATCH v2 1/3] usb:ehci-mx6 add board_ehci_usb_mode function

2014-11-04 Thread Peng Fan
Hi Jeroen, 在 11/4/2014 7:40 PM, Jeroen Hofstee 写道: Hello Peng, On 04-11-14 08:50, Peng Fan wrote: Include a weak function board_ehci_usb_mode to gives board code a choice. If the board want the otg port work in host mode but not device mode, this should be handled. Signed-off-by: Peng Fan

Re: [U-Boot] [PATCH v2 1/3] usb:ehci-mx6 add board_ehci_usb_mode function

2014-11-04 Thread Peng Fan
在 11/5/2014 1:33 AM, Marek Vasut 写道: On Tuesday, November 04, 2014 at 02:29:56 PM, Peng Fan wrote: Hi Marek, 在 11/4/2014 7:01 PM, Marek Vasut 写道: On Tuesday, November 04, 2014 at 11:50:29 AM, Peng Fan wrote: 在 11/4/2014 6:33 PM, Marek Vasut 写道: On Tuesday, November 04, 2014 at 08:50:00 AM

Re: [U-Boot] [PATCH v2 1/3] usb:ehci-mx6 add board_ehci_usb_mode function

2014-11-05 Thread Peng Fan
在 11/5/2014 5:03 PM, Marek Vasut 写道: On Wednesday, November 05, 2014 at 07:00:32 AM, Peng Fan wrote: 在 11/5/2014 1:33 AM, Marek Vasut 写道: On Tuesday, November 04, 2014 at 02:29:56 PM, Peng Fan wrote: Hi Marek, 在 11/4/2014 7:01 PM, Marek Vasut 写道: On Tuesday, November 04, 2014 at 11:50:29

[U-Boot] [PATCH v3 3/3] imx:mx6slevk add board level support for usb

2014-11-06 Thread Peng Fan
host port In order to make host port work, board_usb_phy_mode return 0 to let ehci-mx6.c driver decide otg2 core to works in host mode. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Ye Li b37...@freescale.com --- Changes v3: implement board_usb_phy_mode Changes v2: Add otg

[U-Boot] [PATCH v3 2/3] imx:mx6sxsabresd add board level support for usb

2014-11-06 Thread Peng Fan
--- board host port In order to make host port work, board_usb_phy_mode return 0 to let ehci-mx6.c driver decide otg2 core to works in host mode. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Ye Li b37...@freescale.com --- Changes v3: implement board_usb_phy_mode Changes v2: Add otg

[U-Boot] [PATCH v3 0/3] Add board level usb supporrt for mxsxsabresd and mx6slevk

2014-11-06 Thread Peng Fan
Peng Fan (3): usb:ehci-mx6 add board_usb_phy_mode function imx:mx6sxsabresd add board level support for usb imx:mx6slevk add board level support for usb arch/arm/include/asm/arch-mx6/mx6sl_pins.h | 5 +++ board/freescale/mx6slevk/mx6slevk.c | 63 + board

[U-Boot] [PATCH v3 1/3] usb:ehci-mx6 add board_usb_phy_mode function

2014-11-06 Thread Peng Fan
) ? USB_INIT_DEVICE : USB_INIT_HOST; will always set 'type' with USB_INIT_DEVICE. So introduce this weak function to let board level code can decide to work in host or device mode, if board level code want to implement this function. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Ye Li b37

Re: [U-Boot] [PATCH v2 1/3] usb:ehci-mx6 add board_ehci_usb_mode function

2014-11-06 Thread Peng Fan
在 11/7/2014 4:20 AM, Marek Vasut 写道: On Wednesday, November 05, 2014 at 10:18:25 AM, Peng Fan wrote: 在 11/5/2014 5:03 PM, Marek Vasut 写道: On Wednesday, November 05, 2014 at 07:00:32 AM, Peng Fan wrote: 在 11/5/2014 1:33 AM, Marek Vasut 写道: On Tuesday, November 04, 2014 at 02:29:56 PM, Peng

Re: [U-Boot] [PATCH v3 1/3] usb:ehci-mx6 add board_usb_phy_mode function

2014-11-07 Thread Peng Fan
在 11/7/2014 4:25 PM, Marek Vasut 写道: On Friday, November 07, 2014 at 02:08:12 AM, Peng Fan wrote: Include a weak function board_usb_phy_mode. usb_phy_enable decide whether the controller in device mode or in host mode by '*phy_ctrl USBPHY_CTRL_OTG_ID'. There are two usb port

Re: [U-Boot] [PATCH v3 3/3] imx:mx6slevk add board level support for usb

2014-11-07 Thread Peng Fan
在 11/7/2014 4:26 PM, Marek Vasut 写道: On Friday, November 07, 2014 at 02:08:14 AM, Peng Fan wrote: Add pinmux settings, implement board_ehci_hcd_init, board_usb_phy_mode There are two usb port on mx6slevk board: 1. otg port 2. host port The following are the connection between usb controller

Re: [U-Boot] [PATCH v3 1/3] usb:ehci-mx6 add board_usb_phy_mode function

2014-11-07 Thread Peng Fan
在 11/7/2014 7:09 PM, Marek Vasut 写道: On Friday, November 07, 2014 at 12:03:30 PM, Peng Fan wrote: [...] @@ -160,7 +174,7 @@ static int usb_phy_enable(int index, struct usb_ehci *ehci) val |= (USBPHY_CTRL_ENUTMILEVEL2 | USBPHY_CTRL_ENUTMILEVEL3); __raw_writel(val, phy_ctrl

Re: [U-Boot] [PATCH v3 3/3] imx:mx6slevk add board level support for usb

2014-11-07 Thread Peng Fan
在 11/7/2014 7:10 PM, Marek Vasut 写道: On Friday, November 07, 2014 at 12:08:03 PM, Peng Fan wrote: 在 11/7/2014 4:26 PM, Marek Vasut 写道: On Friday, November 07, 2014 at 02:08:14 AM, Peng Fan wrote: Add pinmux settings, implement board_ehci_hcd_init, board_usb_phy_mode There are two usb port

Re: [U-Boot] [PATCH v3 1/3] usb:ehci-mx6 add board_usb_phy_mode function

2014-11-07 Thread Peng Fan
在 11/7/2014 8:17 PM, Marek Vasut 写道: On Friday, November 07, 2014 at 12:45:51 PM, Peng Fan wrote: 在 11/7/2014 7:09 PM, Marek Vasut 写道: On Friday, November 07, 2014 at 12:03:30 PM, Peng Fan wrote: [...] @@ -160,7 +174,7 @@ static int usb_phy_enable(int index, struct usb_ehci *ehci) val

Re: [U-Boot] [PATCH v3 1/3] usb:ehci-mx6 add board_usb_phy_mode function

2014-11-07 Thread Peng Fan
在 11/8/2014 12:07 PM, Peng Fan 写道: 在 11/7/2014 8:17 PM, Marek Vasut 写道: On Friday, November 07, 2014 at 12:45:51 PM, Peng Fan wrote: 在 11/7/2014 7:09 PM, Marek Vasut 写道: On Friday, November 07, 2014 at 12:03:30 PM, Peng Fan wrote: [...] @@ -160,7 +174,7 @@ static int usb_phy_enable(int

[U-Boot] [PATCH v4 0/3] Add board level usb support for mxsxsabresd and mx6slevk

2014-11-09 Thread Peng Fan
to decide which mode to work at. - move pinmux setting into board_init - add otg polarity setting in board_ehci_hcd_init - set pinmux struct static Peng Fan (3): usb:ehci-mx6 add phy mode query function imx:mx6sxsabresd add board level support for usb imx:mx6slevk add board level support

[U-Boot] [PATCH v4 2/3] imx:mx6sxsabresd add board level support for usb

2014-11-09 Thread Peng Fan
--- board host port In order to make host port work, board_usb_phy_mode return USB_INIT_HOST to make host port work in HOST mode. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Ye Li b37...@freescale.com --- Changes v4: reimplement board_usb_phy_mode. Changes v3: Take Marek's

[U-Boot] [PATCH v4 1/3] usb:ehci-mx6 add phy mode query function

2014-11-09 Thread Peng Fan
. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Ye Li b37...@freescale.com --- Changes v4: - Take Marek's suggestions, implement usb_phy_mode function and introduce a weak function board_usb_phy_mode. - change usb_phy_enable's return value with 0. - add prototype

[U-Boot] [PATCH 3/3] imx:mx6slevk add board level support for usb

2014-11-09 Thread Peng Fan
host port In order to make host port work, board_usb_phy_mode return USB_INIT_HOST to let host port work in host mode. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Ye Li b37...@freescale.com --- Changes v4: reimplement board_usb_phy_mode Changes v3: implement

Re: [U-Boot] [PATCH v3 1/3] usb:ehci-mx6 add board_usb_phy_mode function

2014-11-09 Thread Peng Fan
On 11/8/2014 7:33 PM, Marek Vasut wrote: On Saturday, November 08, 2014 at 05:07:21 AM, Peng Fan wrote: 在 11/7/2014 8:17 PM, Marek Vasut 写道: On Friday, November 07, 2014 at 12:45:51 PM, Peng Fan wrote: 在 11/7/2014 7:09 PM, Marek Vasut 写道: On Friday, November 07, 2014 at 12:03:30 PM, Peng

Re: [U-Boot] [PATCH] imx:mx6sxsabresd fix pfuz probe failed

2014-11-16 Thread Peng Fan
Hi Stefano, Would you please help reviewing this patch? On 11/1/2014 8:16 AM, Fabio Estevam wrote: On Fri, Oct 31, 2014 at 1:08 AM, Peng Fan peng@freescale.com wrote: The PFUZ probe failed with the following msg: wait_for_sr_state: failed sr=81 cr=a0 state=2020 i2c_init_transfer

[U-Boot] [PATCH] imx:mx6 fix return value of mxc_get_clock

2014-11-22 Thread Peng Fan
-by: Peng Fan peng@freescale.com --- arch/arm/cpu/armv7/mx6/clock.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv7/mx6/clock.c b/arch/arm/cpu/armv7/mx6/clock.c index 80b11aa..99dba07 100644 --- a/arch/arm/cpu/armv7/mx6/clock.c +++ b/arch/arm/cpu/armv7/mx6

[U-Boot] [PATCH 2/2] imx:mx6qarm2 add board level support for usb

2014-12-01 Thread Peng Fan
Add pinmux settings and implement board_ehci_hcd_init Signed-off-by: Peng Fan peng@freescale.com --- board/freescale/mx6qarm2/mx6qarm2.c | 42 + include/configs/mx6qarm2.h | 14 + 2 files changed, 56 insertions(+) diff --git a/board

[U-Boot] [PATCH 1/2] imx:mx6sabresd add board level support for usb

2014-12-01 Thread Peng Fan
Add pinmux settings, implement board_ehci_hcd_init and board_ehci_power Signed-off-by: Peng Fan peng@freescale.com --- board/freescale/mx6sabresd/mx6sabresd.c | 68 + include/configs/mx6sabresd.h| 14 +++ 2 files changed, 82 insertions(+) diff

[U-Boot] [PATCH 1/2] mtd:mxs:nand calculate ecc strength dynamically

2014-12-18 Thread Peng Fan
Calculate ecc strength according oobsize, but not hardcoded which is not aligned with kernel driver Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Ye.Li b37...@freescale.com --- drivers/mtd/nand/mxs_nand.c | 22 -- 1 file changed, 4 insertions(+), 18 deletions

[U-Boot] [PATCH 2/2] mtd:mxs:nand support oobsize bigger than 512

2014-12-18 Thread Peng Fan
-off-by: Peng Fan peng@freescale.com --- arch/arm/include/asm/imx-common/regs-bch.h | 2 ++ drivers/mtd/nand/mxs_nand.c| 33 ++ 2 files changed, 27 insertions(+), 8 deletions(-) diff --git a/arch/arm/include/asm/imx-common/regs-bch.h b/arch/arm

[U-Boot] [PATCH] imx:mx6slevk add spi nor boot support

2014-12-29 Thread Peng Fan
Add spi nor boot support for mx6slevk board. Signed-off-by: Peng Fan peng@freescale.com --- board/freescale/mx6slevk/MAINTAINERS | 1 + configs/mx6slevk_spinor_defconfig| 3 +++ include/configs/mx6slevk.h | 13 - 3 files changed, 16 insertions(+), 1 deletion

[U-Boot] [PATCH 2/6] imx:mx6sxsabresd select SUPPORT_SPL

2014-12-30 Thread Peng Fan
select SUPPORT_SPL for mx6sxsabresd. Signed-off-by: Peng Fan peng@freescale.com --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 5eb1d03..46e708f 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -637,6 +637,7 @@ config

[U-Boot] [PATCH 3/6] imx:mx6sxsabresd spl support in header file

2014-12-30 Thread Peng Fan
Add SPL support in mx6sxsabresd header file. Signed-off-by: Peng Fan peng@freescale.com --- include/configs/mx6sxsabresd.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/configs/mx6sxsabresd.h b/include/configs/mx6sxsabresd.h index 61a7a7a..19ac3dc 100644 --- a/include

[U-Boot] [PATCH 5/6] imx:mx6 add mx6sx in imx spl header file

2014-12-30 Thread Peng Fan
Since mx6sx's memory space is different to mx6dq, redefine the SPL related macro for mx6sx chip. Signed-off-by: Peng Fan peng@freescale.com --- include/configs/imx6_spl.h | 8 1 file changed, 8 insertions(+) diff --git a/include/configs/imx6_spl.h b/include/configs/imx6_spl.h index

[U-Boot] [PATCH 6/6] imx:mx6sxsabresd board spl support

2014-12-30 Thread Peng Fan
Add board level spl support for mx6sxsabresd board. Signed-off-by: Peng Fan peng@freescale.com --- board/freescale/mx6sxsabresd/MAINTAINERS| 1 + board/freescale/mx6sxsabresd/mx6sxsabresd.c | 168 2 files changed, 169 insertions(+) diff --git a/board

[U-Boot] [PATCH 1/6] imx:mx6sxsabresd add spl config file

2014-12-30 Thread Peng Fan
Add a SPL default configuration file for mx6sxsabresd board. Signed-off-by: Peng Fan peng@freescale.com --- configs/mx6sxsabresd_spl_defconfig | 4 1 file changed, 4 insertions(+) create mode 100644 configs/mx6sxsabresd_spl_defconfig diff --git a/configs/mx6sxsabresd_spl_defconfig b

[U-Boot] [PATCH 0/6] imx:mx6 spl support for mx6sxsabresd

2014-12-30 Thread Peng Fan
; to others, MMDC1 effects as the original mmdc1-entry = value. Peng Fan (6): imx:mx6sxsabresd add spl config file imx:mx6sxsabresd select SUPPORT_SPL imx:mx6sxsabresd spl support in header file imx:mx6sx add dram io configure for mx6sx imx:mx6 add mx6sx in imx spl header file

[U-Boot] [PATCH 4/6] imx:mx6sx add dram io configure for mx6sx

2014-12-30 Thread Peng Fan
. Signed-off-by: Peng Fan peng@freescale.com --- arch/arm/cpu/armv7/mx6/ddr.c| 96 - arch/arm/include/asm/arch-mx6/mx6-ddr.h | 46 2 files changed, 128 insertions(+), 14 deletions(-) diff --git a/arch/arm/cpu/armv7/mx6/ddr.c b/arch/arm

[U-Boot] [PATCH v4 0/5] qspi: qspi support for mx6sxsabresd

2014-12-30 Thread Peng Fan
value with OPCODE_xx. Since Revb board's qspi flash support 4K erase, 4K erase is added in driver. Peng Fan (5): QuadSPI: use QSPI_CMD_xx instead of flash opcodes QuadSPI: use correct amba_base arm:mx6sx add QSPI support imx:qspi add 4K erase support imx:mx6sxsabresd add qspi support

[U-Boot] [PATCH v4 1/5] QuadSPI: use QSPI_CMD_xx instead of flash opcodes

2014-12-30 Thread Peng Fan
Use QSPI_CMD_xx instead of flash opcodes Signed-off-by: Peng Fan peng@freescale.com --- Changes v4: None Changes v3: Use QSPI_CMD_XX instead of flash opcodes. To fsl qspi controller, the LUT should be pre programmed with QSPI CMD. Changes v2: None drivers/spi/fsl_qspi.c | 64

[U-Boot] [PATCH v4 2/5] QuadSPI: use correct amba_base

2014-12-30 Thread Peng Fan
According cs, use different amba_base to choose the corresponding flash devices. If not, `sf probe 1:0` and `sf probe 1:1` will choose the same flash device, but not different flash devices. Signed-off-by: Peng Fan peng@freescale.com --- Changes v4: None Changes v3: None Changes v2

[U-Boot] [PATCH v4 4/5] imx:qspi add 4K erase support

2014-12-30 Thread Peng Fan
Add 4k erase command support for qspi driver. reuse the 64k erase function, but change the function name from qspi_op_se to qspi_op_erase, since it supports 64k and 4k erase. Signed-off-by: Peng Fan peng@freescale.com --- Changes v4: New patch in v4. This patch is to support 4k erase

[U-Boot] [PATCH v4 3/5] arm:mx6sx add QSPI support

2014-12-30 Thread Peng Fan
Add QSPI support for mx6solox. Signed-off-by: Peng Fan peng@freescale.com --- Changes v4: None Changes v3: None Changes v2: Take Fabio's suggestion, split soc code and board code into two patches. arch/arm/cpu/armv7/mx6/clock.c | 50 arch/arm

[U-Boot] [PATCH v4 5/5] imx:mx6sxsabresd add qspi support

2014-12-30 Thread Peng Fan
Configure the pad setting and enable qspi clock to support qspi flashes access. Add QSPI related macro in configuration header file. Signed-off-by: Peng Fan peng@freescale.com --- Changes v4: None Changes v3: None Changes v2: Take Fabio's suggestion, split soc code and board code

Re: [U-Boot] [PATCH v2 1/2] arm:mx6sx add QSPI support

2014-12-30 Thread Peng Fan
rebasing, I sent a v4 patch set. Please review. Thanks, Peng Fan. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH] imx:mx6slevk add spi nor boot support

2014-12-30 Thread Peng Fan
Hi Jagan, On 12/30/2014 8:38 PM, Jagan Teki wrote: On 30 December 2014 at 08:44, Peng Fan peng@freescale.com wrote: Add spi nor boot support for mx6slevk board. Signed-off-by: Peng Fan peng@freescale.com --- board/freescale/mx6slevk/MAINTAINERS | 1 + configs

Re: [U-Boot] [PATCH v4 0/5] qspi: qspi support for mx6sxsabresd

2014-12-31 Thread Peng Fan
On 12/31/2014 5:35 PM, Jagan Teki wrote: On 31 December 2014 at 08:31, Peng Fan peng@freescale.com wrote: This patch set is to support qspi for mx6sxsabresd board. To mx6sxsabresd Revb board, 32M flash is used, but in header file, CONFIG_SPI_FLASH_BAR is not defined, and we still use

Re: [U-Boot] [PATCH v3 1/4] dm: introduce dev_get_addr interface

2015-02-05 Thread Peng Fan
Hi, Simon On 1/23/2015 5:25 AM, Simon Glass wrote: Hi, On 21 January 2015 at 04:09, Peng Fan peng@freescale.com wrote: Abstracting dev_get_addr can improve drivers that want to get device's address. Signed-off-by: Peng Fan peng@freescale.com --- drivers/core/device.c | 19

Re: [U-Boot] [PATCH 6/6] imx:mx6sxsabresd board spl support

2015-02-05 Thread Peng Fan
Hi Nikolay, On 2/2/2015 6:24 PM, Nikolay Dimitrov wrote: Hi Peng, On 01/19/2015 10:29 AM, Peng Fan wrote: Hi Stefano, On 1/19/2015 4:18 PM, Stefano Babic wrote: Hi Peng, series looks ok to me - just a small question: On 30/12/2014 10:24, Peng Fan wrote: Add board level spl support

[U-Boot] [PATCH] ARM: HYP/non-sec: relocation before enable secondary cores

2015-02-04 Thread Peng Fan
If CONFIG_ARMV7_PSCI is not defined and CONFIG_ARMV7_SECURE_BASE is defined, smp_kicl_all_cpus may enable secondary cores and runs into secure_ram_addr( _smp_pen), before code is relocated to secure ram. So need relocation to secure ram before enable secondary cores. Signed-off-by: Peng Fan peng

Re: [U-Boot] [PATCH] dm:gpio:mxc get configuration from dtb

2015-01-19 Thread Peng Fan
Hi Simon, On 1/20/2015 3:45 AM, Simon Glass wrote: Hi Peng. On 18 January 2015 at 23:11, Peng Fan peng@freescale.com wrote: This patch supports getting gpios' configuration from dtb. CONFIG_OF_CONTROL is used to indicated which part is for device tree, and which is not. This patch

Re: [U-Boot] [PATCH 6/6] imx:mx6sxsabresd board spl support

2015-01-19 Thread Peng Fan
Hi Stefano, On 1/19/2015 4:18 PM, Stefano Babic wrote: Hi Peng, series looks ok to me - just a small question: On 30/12/2014 10:24, Peng Fan wrote: Add board level spl support for mx6sxsabresd board. Signed-off-by: Peng Fan peng@freescale.com --- board/freescale/mx6sxsabresd

[U-Boot] [PATCH] dm:gpio:mxc get configuration from dtb

2015-01-18 Thread Peng Fan
=arm menuconfig` Signed-off-by: Peng Fan peng@freescale.com --- drivers/gpio/mxc_gpio.c | 76 + 1 file changed, 76 insertions(+) diff --git a/drivers/gpio/mxc_gpio.c b/drivers/gpio/mxc_gpio.c index 8bb9e39..8603068 100644 --- a/drivers/gpio

Re: [U-Boot] [RFC PATCH] dm:spi:fsl_qspi add DM support

2015-01-18 Thread Peng Fan
Hi Jagan, On 1/19/2015 2:47 PM, Jagan Teki wrote: Hi Peng, On 17 January 2015 at 11:29, Peng Fan peng@freescale.com wrote: Hi Simon ,Jagan This patch is based on git://git.denx.de/u-boot-spi.git master branch, since some fsl_qspi's new feature is still in this git repo and have not been

Re: [U-Boot] [PATCH 2/2] mtd:mxs:nand support oobsize bigger than 512

2015-01-19 Thread Peng Fan
Hi Marek, And this one. On 12/19/2014 12:39 PM, 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 gpmi-nand.c driver with each data block 512 bytes

Re: [U-Boot] [PATCH 1/2] mtd:mxs:nand calculate ecc strength dynamically

2015-01-19 Thread Peng Fan
Hi Marek, Since you are familiar with this driver, would you please help review this patch? On 12/19/2014 12:39 PM, Peng Fan wrote: Calculate ecc strength according oobsize, but not hardcoded which is not aligned with kernel driver Signed-off-by: Peng Fan peng@freescale.com Signed-off

[U-Boot] [PATCH v2] dm:gpio:mxc add DT support

2015-01-19 Thread Peng Fan
board_early_init_f to board_init + define CONFIG_DM ,CONFIG_DM_GPIO and CONFIG_OF_CONTROL + Add device tree file and do related configuration in `make ARCH=arm menuconfig` These will be done in future patches by step. Signed-off-by: Peng Fan peng@freescale.com --- Changes v2: 1. remove

Re: [U-Boot] [PATCH 1/2] mtd:mxs:nand calculate ecc strength dynamically

2015-01-20 Thread Peng Fan
Hi, Marek On 1/20/2015 7:04 PM, Marek Vasut wrote: On Tuesday, January 20, 2015 at 07:35:26 AM, Peng Fan wrote: Hi Marek, Since you are familiar with this driver, would you please help review this patch? Hi! I commented on both. Next time, please CC me and Stefano, since the patches might

Re: [U-Boot] [PATCH 2/2] mtd:mxs:nand support oobsize bigger than 512

2015-01-20 Thread Peng Fan
Hi, Marek On 1/20/2015 7:03 PM, Marek Vasut wrote: On Friday, December 19, 2014 at 05:39:13 AM, 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 v3 4/4] dm:gpio:mxc add DT support

2015-01-21 Thread Peng Fan
Hi Igor, Just kindly remind, did you miss this one? Since you ack the other patches in this patch set. On 1/21/2015 7:09 PM, Peng Fan wrote: This patch add DT support for mxc gpio driver. There are one place using CONFIG_OF_CONTROL macro. 1. The U_BOOT_DEVICES and mxc_plat array

Re: [U-Boot] [PATCH v2 2/3] pmic:pfuze implement regulator mode set

2015-01-15 Thread Peng Fan
Hi, Przemyslaw On 1/15/2015 10:58 PM, Przemyslaw Marczak wrote: Hello Peng, On 01/15/2015 11:18 AM, Peng Fan wrote: This patch is to implement pfuze_mode_init and pfuze_regulator_mode_set function, and add prototype in header file. pfuze_mode_init is to set switching mode for all buck

  1   2   3   4   5   6   7   8   9   10   >