Re: [U-Boot] [PATCH] mmc: introduce mmc_power_init

2016-10-11 Thread Peng Fan
Hi Jaehoon, On Mon, Oct 10, 2016 at 01:19:41PM +0900, Jaehoon Chung wrote: >Hi Peng, > >On 10/08/2016 07:07 PM, Peng Fan wrote: >> In device tree, there is vmmc-supply property for SD/MMC. >> Introduce mmc_power_init function to handle vmmc-supply. > >As i know, vqmmc-su

[U-Boot] [PATCH V2] mmc: introduce mmc_power_init

2016-10-11 Thread Peng Fan
will be enabled to power up the device. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Jaehoon Chung <jh80.ch...@samsung.com> --- V2: Change function prototype to static. Use puts to replace debug, when no vmmc-supply. V1: Use a generic way to handle vmmc supply, but not let v

[U-Boot] [PATCH V2 04/19] imx-common: timer: add i.MX6SLL support

2016-12-11 Thread Peng Fan
Add i.MX6 SLL GPT timer support. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/imx-common/timer.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/arm/imx-common/timer.c b/arch/arm/imx-common/timer.c i

[U-Boot] [PATCH V2 02/19] imx: mx6sll: add pinmux header files

2016-12-11 Thread Peng Fan
Add i.MX6SLL pinmux header files Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/include/asm/arch-mx6/mx6-pins.h|2 + arch/arm/include/asm/arch-mx6/mx6sll_pins.h | 1019 +++ 2 files changed, 1021 insertion

[U-Boot] [PATCH V2 07/19] imx: mx6: lcdif: gate clock before changing mux

2016-12-11 Thread Peng Fan
The mux for the lcd clock is not glitchless, so need to first gate the clock before changing the mux. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/cpu/armv7/mx6/clock.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/

[U-Boot] [PATCH V2 03/19] imx: mx6sll: update register address

2016-12-11 Thread Peng Fan
Update register address for i.MX6 SLL Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/include/asm/arch-mx6/imx-regs.h | 77 +--- 1 file changed, 50 insertions(+), 27 deletions(-) diff --git a/arch/arm/include/

[U-Boot] [PATCH V2 09/19] imx: clock: gate clk before changing pix clk mux

2016-12-11 Thread Peng Fan
The LCDIF Pixel clock mux is not glitchless, so need to gate before changing mux. Also change enable_lcdif_clock prototype with a new input parameter to indicate disable or enable. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/cpu/armv7

[U-Boot] [PATCH V2 00/19] imx: add i.MX6SLL support

2016-12-11 Thread Peng Fan
to imx_ddr_size() Peng Fan (19): imx: add i.MX 6SLL CPU type imx: mx6sll: add pinmux header files imx: mx6sll: update register address imx-common: timer: add i.MX6SLL support imx: mx6sll: add iomux settings imx: mx6: fix mmdc ch0 clk for 6SL imx: mx6: lcdif: gate clock before changing mux imx

[U-Boot] [PATCH V2 01/19] imx: add i.MX 6SLL CPU type

2016-12-11 Thread Peng Fan
Add i.MX6SLL cpu type. MXC_CPU_MX6D is not a real value in chip, so change it to 0x6A. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/imx-common/cpu.c | 2 ++ arch/arm/include/asm/arch-imx/cpu.h | 3 ++- arch/arm

[U-Boot] [PATCH V2 08/19] imx: mx6sl: add lcdif clock support

2016-12-11 Thread Peng Fan
Add lcdif clock support for i.MX6SL. Signed-off-by: Peng Fan <peng@nxp.com> --- arch/arm/cpu/armv7/mx6/clock.c | 78 arch/arm/include/asm/arch-mx6/crm_regs.h | 21 + 2 files changed, 80 insertions(+), 19 deletions(-) diff --git a/ar

[U-Boot] [PATCH V2 11/19] imx-common: cache: configure L2 Cache for i.MX6SLL

2016-12-11 Thread Peng Fan
If L2 cache configured as OCRAM, reset it. Switch to use runtime check. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/imx-common/cache.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/arch/arm/imx-co

[U-Boot] [PATCH V2 06/19] imx: mx6: fix mmdc ch0 clk for 6SL

2016-12-11 Thread Peng Fan
>From RM, per_periph2_clk_sel option3 is: "derive clock from 198MHz clock (divided 392MHz PLL2 PFD)." So fix it. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/cpu/armv7/mx6/clock.c | 5 + 1 file changed, 5 insertions(+)

[U-Boot] [PATCH V2 18/19] arm: imx: add i.MX6SLL EVK board support

2016-12-11 Thread Peng Fan
Initialization Failed No ethernet found. Hit any key to stop autoboot: 0 Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/cpu/armv7/mx6/Kconfig | 7 + arch/arm/dts/Makefile | 1 + arch/arm/dts/imx6sll-evk.dts

[U-Boot] [PATCH V2 15/19] imx-common: lcdif: update lcdif regs for i.MX6SL/SLL

2016-12-11 Thread Peng Fan
Update lcdif regs for i.MX6SL/SLL Signed-off-by: Ye.Li <ye...@nxp.com> Signed-off-by: Peng Fan <peng@nxp.com> --- arch/arm/include/asm/imx-common/regs-lcdif.h | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm/include/asm/imx-common/regs-lcdif.h

[U-Boot] [PATCH V2 19/19] imx: mx6sllevk: add plugin support

2016-12-11 Thread Peng Fan
Add plugin support for mx6sllevk board. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- board/freescale/mx6sllevk/imximage.cfg | 6 ++ board/freescale/mx6sllevk/plugin.S | 155 + configs/mx6sllevk_plugin_defconf

[U-Boot] [PATCH V2 12/19] imx: mx6sll: add Kconfig entry for i.MX6SLL

2016-12-11 Thread Peng Fan
add Kconfig entry for i.MX6SLL Signed-off-by: Peng Fan <peng@nxp.com> --- arch/arm/cpu/armv7/mx6/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/cpu/armv7/mx6/Kconfig b/arch/arm/cpu/armv7/mx6/Kconfig index 8c96ba3..6b6476d 100644 --- a/arch/arm/cpu/armv7/mx6/K

[U-Boot] [PATCH V2 10/19] imx: mx6sll: add clock support

2016-12-11 Thread Peng Fan
Add clock support for i.MX6SLL. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/cpu/armv7/mx6/clock.c | 28 +--- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/arch/arm/cpu/armv7/mx6/clock.c b/arch/a

[U-Boot] [PATCH V2 13/19] mx6_common: correct loadaddr and text base for i.MX6SLL

2016-12-11 Thread Peng Fan
Correct loadaddr and text base for i.MX6SLL Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- include/configs/mx6_common.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/configs/mx6_common.h b/include/configs/mx6_co

[U-Boot] [PATCH V2 14/19] OCOTP: Update OCOTP driver to support i.MX6SLL

2016-12-11 Thread Peng Fan
Add the i.MX6SLL support to OCOTP driver. The i.MX6SLL reuses the i.MX6ULL fuse, bank 7 and bank8 have 4 words each, and there is a hole between bank 5 and bank 6. Signed-off-by: Ye Li <ye...@nxp.com> Signed-off-by: Peng Fan <peng@nxp.com> --- drivers/misc/mxc_

[U-Boot] [PATCH V2 16/19] pinctrl: imx6: support i.MX6SLL

2016-12-11 Thread Peng Fan
There two iomuxc for i.MX6SLL. One is normal IOMUXC, the other is for IOMUXC_SNVS. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> Cc: Simon Glass <s...@chromium.org> Reviewed-by: Simon Glass <s...@chromium.org> --- drivers/pinctrl/nxp/pinct

[U-Boot] [PATCH V2 05/19] imx: mx6sll: add iomux settings

2016-12-11 Thread Peng Fan
Add iomux settings for i.MX6 SLL Signed-off-by: Peng Fan <peng@nxp.com> Signed-off-by: Ye.Li <ye...@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/imx-common/iomux-v3.c | 10 +++--- arch/arm/include/asm/imx-common/iomux-v3.h | 6 -- 2

[U-Boot] [PATCH V2 17/19] arm: dts: add i.MX6SLL device tree

2016-12-11 Thread Peng Fan
Add i.MX6SLL device tree. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/dts/imx6sll-pinfunc.h| 882 ++ arch/arm/dts/imx6sll.dtsi | 859 + include/dt-bi

Re: [U-Boot] [PATCH V2 20/20] imx: mx7ulp_evk: enable mmc/regulator support

2017-01-11 Thread Peng Fan
On Tue, Jan 03, 2017 at 05:05:02PM +0800, Peng Fan wrote: >Hi Stefano, > >On Tue, Dec 27, 2016 at 12:07:40PM +0000, Peng Fan wrote: >>> > + "boot_fdt=try\0" \ >>> >>> On this platform we will always boot from dt, so we can remove this >&g

Re: [U-Boot] [PATCH V2 20/20] imx: mx7ulp_evk: enable mmc/regulator support

2017-01-11 Thread Peng Fan
+Stefano On Thu, Jan 12, 2017 at 10:23:03AM +0800, Peng Fan wrote: >On Tue, Jan 03, 2017 at 05:05:02PM +0800, Peng Fan wrote: >>Hi Stefano, >> >>On Tue, Dec 27, 2016 at 12:07:40PM +, Peng Fan wrote: >>>> > + "boot_fdt=try\0" \ >>>&

[U-Boot] [PATCH] imx: thermal: Kconfig: add MX7

2016-12-01 Thread Peng Fan
The thermal drivers support i.MX6 and i.MX7, add MX7 in Kconfig file. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- drivers/thermal/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/Kconfig b/drivers/the

Re: [U-Boot] [PATCH] mx6ullevk: Add missing MAINTAINERS for mx6ull_14x14_evk_plugin_defconfig

2017-01-05 Thread Peng Fan
> -Original Message- > From: Jagan Teki [mailto:ja...@openedev.com] > Sent: Thursday, January 05, 2017 10:33 PM > To: tr...@konsulko.com > Cc: u-boot@lists.denx.de; Jagan Teki <ja...@openedev.com>; Stefano Babic > <sba...@denx.de>; Peng Fan <peng@nxp.

Re: [U-Boot] [PATCH V2 20/20] imx: mx7ulp_evk: enable mmc/regulator support

2017-01-03 Thread Peng Fan
Hi Stefano, On Tue, Dec 27, 2016 at 12:07:40PM +, Peng Fan wrote: > > >> -Original Message- >> From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Fabio >> Estevam >> Sent: Tuesday, December 27, 2016 7:23 PM >> To: Peng Fan <peng.

[U-Boot] [PATCH 2/3] usb: ehci-mx6: handle vbus-supply

2016-12-21 Thread Peng Fan
Drop board_ehci_power when dm usb used and switch to use regulator api to handle vbus. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Marek Vasut <ma...@denx.de> Cc: Simon Glass <s...@chromium.org> Cc: Stefano Babic <sba...@denx.de> --- drivers/

[U-Boot] [PATCH 1/3] usb: ehci-mx6: implement ofdata_to_platdata

2016-12-21 Thread Peng Fan
Implement ofdata_to_platdata to set the type to host or device. - Check "dr-mode" property. - If there is no "dr-mode", check phy_ctrl for i.MX6 and phy_status for i.MX7 Signed-off-by: Peng Fan <peng@nxp.com> Cc: Marek Vasut <ma...@denx.de> Cc: Simon Glass

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

2016-12-21 Thread Peng Fan
Add usb support for mx6sllevk board. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- board/freescale/mx6sllevk/mx6sllevk.c | 18 ++ configs/mx6sllevk_defconfig | 5 + configs/mx6sllevk_plugin_defconfig| 5 ++

Re: [U-Boot] [PATCH 18/18] imx: mx7ulp_evk: enable mmc/regulator support

2016-12-26 Thread Peng Fan
> -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: Monday, December 26, 2016 9:15 PM > To: Peng Fan <peng@nxp.com> > Cc: Stefano Babic <sba...@denx.de>; U-Boot-Denx <u-boot@lists.denx.de> > Subject: Re: [U-Boot] [PATC

Re: [U-Boot] [PATCH] mx6qsabreauto: Fix the EIM clock for the mx6qp variant

2016-12-26 Thread Peng Fan
> -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: Tuesday, December 27, 2016 9:05 AM > To: sba...@denx.de > Cc: Peng Fan <peng@nxp.com>; u-boot@lists.denx.de; Fabio Estevam > <fabio.este...@nxp.com> > Subject: [PATCH]

Re: [U-Boot] [PATCH 17/18] imx: imx7ulp: add EVK board support

2016-12-26 Thread Peng Fan
> -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: Tuesday, December 27, 2016 9:11 AM > To: Peng Fan <peng@nxp.com> > Cc: Stefano Babic <sba...@denx.de>; U-Boot-Denx <u-boot@lists.denx.de> > Subject: Re: [U-Boot] [PATC

Re: [U-Boot] [PATCH 14/18] serial: Add support for i.MX7ULP

2016-12-26 Thread Peng Fan
> -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: Monday, December 26, 2016 8:59 PM > To: Peng Fan <peng@nxp.com> > Cc: Stefano Babic <sba...@denx.de>; U-Boot-Denx <u-boot@lists.denx.de> > Subject: Re: [U-Boo

Re: [U-Boot] [PATCH 11/18] wdog: Add the watchdog driver for MX7ULP.

2016-12-26 Thread Peng Fan
> -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: Monday, December 26, 2016 8:03 PM > To: Peng Fan <peng@nxp.com> > Cc: Stefano Babic <sba...@denx.de>; U-Boot-Denx <u-boot@lists.denx.de> > Subject: Re: [U-Boot] [PATCH

Re: [U-Boot] [PATCH 17/18] imx: imx7ulp: add EVK board support

2016-12-26 Thread Peng Fan
> -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: Monday, December 26, 2016 8:11 PM > To: Peng Fan <peng@nxp.com> > Cc: Stefano Babic <sba...@denx.de>; U-Boot-Denx <u-boot@lists.denx.de> > Subject: Re: [U-Boot] [PATC

[U-Boot] [PATCH V2 04/20] imx: mx7ulp: Add clock framework and functions

2016-12-27 Thread Peng Fan
. Signed-off-by: Peng Fan <peng@nxp.com> Signed-off-by: Ye Li <ye...@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- V2: None arch/arm/cpu/armv7/mx7ulp/Makefile |2 +- arch/arm/cpu/armv7/mx7ulp/clock.c| 286 arch/arm/cpu/armv7/mx7ulp/pcc

[U-Boot] [PATCH V2 03/20] imx: mx7ulp: add iomux driver to support IOMUXC0 and IOMUXC1

2016-12-27 Thread Peng Fan
. Signed-off-by: Ye Li <ye...@nxp.com> Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- V2: none arch/arm/cpu/armv7/mx7ulp/Makefile | 8 +++ arch/arm/cpu/armv7/mx7ulp/iomux.c| 70 +++ arch/arm/include/asm/arch-m

[U-Boot] [PATCH V2 02/20] imx: mx7ulp: add registers header file

2016-12-27 Thread Peng Fan
Add imx-regs.h for i.MX7ULP registers addresses definitions and some registers structures. Signed-off-by: Peng Fan <peng@nxp.com> Signed-off-by: Ye Li <ye...@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- V2: None arch/arm/include/asm/arch-mx7ulp

Re: [U-Boot] [PATCH V2 20/20] imx: mx7ulp_evk: enable mmc/regulator support

2016-12-27 Thread Peng Fan
> -Original Message- > From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Fabio > Estevam > Sent: Tuesday, December 27, 2016 7:23 PM > To: Peng Fan <peng@nxp.com> > Cc: U-Boot-Denx <u-boot@lists.denx.de> > Subject: Re: [U-Boot] [PATCH

[U-Boot] [PATCH V2 19/20] imx: imx7ulp: add EVK board support

2016-12-27 Thread Peng Fan
environment In:serial@402D Out: serial@402D Err: serial@402D Net: Net Initialization Skipped No ethernet found. Hit any key to stop autoboot: 0 Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- V2: Add maintainer file Drop board rev

[U-Boot] [PATCH V2 14/20] serial: lpuart: restructure lpuart driver

2016-12-27 Thread Peng Fan
use the orignal code. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> Cc: Bhuvanchandra DV <bhuvanchandra...@toradex.com> Cc: York Sun <york@nxp.com> Cc: Shaohui Xie <shaohui@nxp.com> Cc: Alison Wang <b18...@freescale.com>

[U-Boot] [PATCH V2 17/20] arm: dts: add i.MX7ULP dtsi file

2016-12-27 Thread Peng Fan
Add i.MX7ULP dtsi file. Add clock and pinfun header files. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- V2: None arch/arm/dts/imx7ulp-pinfunc.h| 882 ++ arch/arm/dts/imx7ulp.dtsi

[U-Boot] [PATCH V2 00/20] imx: add i.MX7ULP support

2016-12-27 Thread Peng Fan
maintainer file Addressed some issues in board code. Peng Fan (17): imx: mx7ulp: Add mx7ulp to Kconfig imx: mx7ulp: add registers header file imx: mx7ulp: add iomux driver to support IOMUXC0 and IOMUXC1 imx: mx7ulp: Add clock framework and functions imx: mx7ulp: Add soc level

[U-Boot] [PATCH V2 18/20] mmc: fsl_esdhc: support i.MX7ULP

2016-12-27 Thread Peng Fan
Add compatible property for i.MX7ULP. Add a weak init_usdhc_clk function, i.MX7ULP use this to init the clock. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> Cc: Jaehoon Chung <jh80.ch...@samsung.com> --- V2: None drivers/mmc/fsl_esdhc.c |

[U-Boot] [PATCH V2 01/20] imx: mx7ulp: Add mx7ulp to Kconfig

2016-12-27 Thread Peng Fan
i.MX7ULP is a new series SoC which has different architecture from previous i.MX platforms. Create a new cpu folder for it, and add it to Kconfig. Signed-off-by: Peng Fan <peng@nxp.com> Signed-off-by: Ye Li <ye...@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- V2: None

[U-Boot] [PATCH V2 16/20] mx7ulp: Add HAB boot support

2016-12-27 Thread Peng Fan
Add CAAM clock functions, SEC_CONFIG[1] fuse checking, and default CSF size for HAB support boot on mx7ulp. Users need to uncomment the CONFIG_SECURE_BOOT in mx7ulp_evk.h to build secure uboot. Signed-off-by: Peng Fan <peng@nxp.com> Signed-off-by: Ye Li <ye...@nxp.com> Cc: Stefan

[U-Boot] [PATCH V2 15/20] serial: lpuart: add i.MX7ULP support

2016-12-27 Thread Peng Fan
Add i.MX7ULP support. The buadrate calculation on i.MX7ULP is different,so add a new setbrg function for i.MX7ULP. Add a enum lpuart_devtype for runtime check for different platforms. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> Cc: Bhuvanchandra DV &l

[U-Boot] [PATCH V2 11/20] wdog: Add the watchdog driver for MX7ULP.

2016-12-27 Thread Peng Fan
From: Ye Li <ye...@nxp.com> This driver implements the HW WATCHDOG functions. Which needs to set CONFIG_HW_WATCHDOG to use them. This is disabled by default for mx7ulp. Use watchdog for reset cpu. Implement this in the driver. Need to define CONFIG_ULP_WATCHDOG to build it. Signed-off-by

[U-Boot] [PATCH V2 07/20] imx: mx7ulp: Implement the clock functions for i2c driver

2016-12-27 Thread Peng Fan
From: Ye Li <ye...@nxp.com> Implement the i2c clock enable and get function for mx7ulp. These functions are required by imx_lpi2c driver. Signed-off-by: Peng Fan <peng@nxp.com> Signed-off-by: Ye Li <ye...@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- V2: None a

[U-Boot] [PATCH V2 05/20] imx: mx7ulp: Add soc level initialization codes and functions

2016-12-27 Thread Peng Fan
. Reuse some code in imx-common. Signed-off-by: Peng Fan <peng@nxp.com> Signed-off-by: Ye Li <ye...@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- V2: Reuse code in imx-common arch/arm/Makefile| 2 +- arch/arm/cpu/armv7/mx7ulp/Makefile

[U-Boot] [PATCH V2 12/20] pinctrl: Add i.MX7ULP pinctrl driver

2016-12-27 Thread Peng Fan
Add i.MX7ULP pinctrl driver. Select CONFIG_PINCTRL_IMX7ULP to use this driver. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Simon Glass <s...@chromium.org> Cc: Stefano Babic <sba...@denx.de> --- V2: None drivers/pinctrl/nxp/Kconfig | 14 drivers/pi

[U-Boot] [PATCH V2 13/20] i2c: lpi2c: add lpi2c driver for i.MX7ULP

2016-12-27 Thread Peng Fan
Add lpi2c driver for i.MX7ULP. Need to enable the two options to use this driver: CONFIG_DM_I2C=y CONFIG_SYS_LPI2C_IMX=y Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> Cc: Heiko Schocher <h...@denx.de> --- V2: None arch/arm/include/asm/arch-

[U-Boot] [PATCH V2 08/20] gpio: Add Rapid GPIO2P driver for i.MX7ULP

2016-12-27 Thread Peng Fan
the bits in driver, but leave them to IOMUXC settings of the GPIO pins. User should use IMX_GPIO_NR to generate the GPIO number for gpio APIs access. Signed-off-by: Peng Fan <peng@nxp.com> Signed-off-by: Ye Li <ye...@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- V2: None

[U-Boot] [PATCH V2 09/20] mxc_ocotp: Update driver to support OCOTP controller on i.MX7ULP

2016-12-27 Thread Peng Fan
Update the mxc_ocotp driver to support i.MX7ULP. The read/write sequence has some changes due to PDN and OUT_STATUS registers added and TIME register is removed. Also update the bank size and number. Add is_mx7ulp macro in sys_proto.h Signed-off-by: Peng Fan <peng@nxp.com> Signed-off-

[U-Boot] [PATCH V2 20/20] imx: mx7ulp_evk: enable mmc/regulator support

2016-12-27 Thread Peng Fan
Enable MMC support. The fsl sdhc driver needs regulator to enable power, so enable regulator support. And bootcmd and more env. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- V2: Add bootcmd and more env. configs/mx7ulp_evk_defconfig

[U-Boot] [PATCH V2 06/20] imx: mx7ulp: handle all the lpuarts in get_lpuart_clk

2016-12-27 Thread Peng Fan
Add handle the lpuarts in get_lpuart_clk. Signed-off-by: Peng Fan <peng@nxp.com> Signed-off-by: Ye Li <ye...@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- V2: None arch/arm/cpu/armv7/mx7ulp/clock.c | 34 +++--- 1 file changed, 31 insertio

[U-Boot] [PATCH V2 10/20] mx7ulp: Add iomux pins header file

2016-12-27 Thread Peng Fan
ddress to aligin with it. Signed-off-by: Peng Fan <peng@nxp.com> Signed-off-by: Ye Li <ye...@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- V2: None arch/arm/include/asm/arch-mx7ulp/mx7ulp-pins.h | 910 + 1 file changed, 910 insertions(+) create mode

[U-Boot] [PATCH] imx: mx6sllevk: add MAINTAINERS file

2016-12-27 Thread Peng Fan
add MAINTAINERS files Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- board/freescale/mx6sllevk/MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) create mode 100644 board/freescale/mx6sllevk/MAINTAINERS diff --git a/board/freescale/mx6sllevk

[U-Boot] [PATCH 06/18] imx: mx7ulp: handle all the lpuarts in get_lpuart_clk

2016-12-26 Thread Peng Fan
Add handle the lpuarts in get_lpuart_clk. Signed-off-by: Peng Fan <peng@nxp.com> Signed-off-by: Ye Li <ye...@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/cpu/armv7/mx7ulp/clock.c | 34 +++--- 1 file changed, 31 insertions(+), 3 deleti

[U-Boot] [PATCH 03/18] imx: mx7ulp: add iomux driver to support IOMUXC0 and IOMUXC1

2016-12-26 Thread Peng Fan
. Signed-off-by: Ye Li <ye...@nxp.com> Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/cpu/armv7/mx7ulp/Makefile | 8 +++ arch/arm/cpu/armv7/mx7ulp/iomux.c| 70 +++ arch/arm/include/asm/arch-m

[U-Boot] [PATCH 17/18] imx: imx7ulp: add EVK board support

2016-12-26 Thread Peng Fan
In:serial@402D Out: serial@402D Err: serial@402D Net: Net Initialization Skipped No ethernet found. => Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/cpu/armv7/mx7ulp/Kconfig | 11 + arch/arm/dts/Makefile

[U-Boot] [PATCH 18/18] imx: mx7ulp_evk: enable mmc/regulator support

2016-12-26 Thread Peng Fan
Enable MMC support. The fsl sdhc driver needs regulator to enable power, so enable regulator support. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- configs/mx7ulp_evk_defconfig | 8 include/configs/mx7ulp_evk.h | 17 - 2 f

[U-Boot] [PATCH 07/18] imx: mx7ulp: Implement the clock functions for i2c driver

2016-12-26 Thread Peng Fan
From: Ye Li <ye...@nxp.com> Implement the i2c clock enable and get function for mx7ulp. These functions are required by imx_lpi2c driver. Signed-off-by: Peng Fan <peng@nxp.com> Signed-off-by: Ye Li <ye...@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/

Re: [U-Boot] [PATCH 3/3] imx: mx6sllevk: add usb support

2016-12-21 Thread Peng Fan
Hi Marek, > -Original Message- > From: Marek Vasut [mailto:ma...@denx.de] > Sent: Thursday, December 22, 2016 12:40 PM > To: Peng Fan <peng@nxp.com>; sba...@denx.de > Cc: u-boot@lists.denx.de; van.free...@gmail.com > Subject: Re: [PATCH 3/3] imx: mx6sllevk: ad

Re: [U-Boot] [PATCH 3/3] imx: mx6sllevk: add usb support

2016-12-21 Thread Peng Fan
> -Original Message- > From: Marek Vasut [mailto:ma...@denx.de] > Sent: Thursday, December 22, 2016 2:12 PM > To: Peng Fan <peng@nxp.com>; sba...@denx.de > Cc: u-boot@lists.denx.de; van.free...@gmail.com > Subject: Re: [PATCH 3/3] imx: mx6sllevk: add usb suppo

Re: [U-Boot] [PATCH 3/3] imx: mx6sllevk: add usb support

2016-12-21 Thread Peng Fan
> -Original Message- > From: Jagan Teki [mailto:ja...@openedev.com] > Sent: Wednesday, December 21, 2016 10:02 PM > To: Peng Fan <peng@nxp.com> > Cc: Stefano Babic <sba...@denx.de>; Marek Vasut <ma...@denx.de>; u- > b...@lists.denx.de >

Re: [U-Boot] [PATCH 1/3] usb: ehci-mx6: implement ofdata_to_platdata

2016-12-21 Thread Peng Fan
> -Original Message- > From: Marek Vasut [mailto:ma...@denx.de] > Sent: Wednesday, December 21, 2016 10:08 PM > To: Peng Fan <peng@nxp.com>; sba...@denx.de > Cc: u-boot@lists.denx.de; van.free...@gmail.com; Simon Glass > <s...@chromium.org> > Subje

Re: [U-Boot] [PATCH 3/3] imx: mx6sllevk: add usb support

2016-12-21 Thread Peng Fan
> -Original Message- > From: Marek Vasut [mailto:ma...@denx.de] > Sent: Wednesday, December 21, 2016 10:10 PM > To: Peng Fan <peng@nxp.com>; sba...@denx.de > Cc: u-boot@lists.denx.de; van.free...@gmail.com > Subject: Re: [PATCH 3/3] imx: mx6sllevk: add usb su

[U-Boot] [PATCH V2 3/3] imx: mx6sllevk: add usb support

2016-12-22 Thread Peng Fan
Add usb support for mx6sllevk board. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- V2: Drop the polarity setting and CONFIG_USB_MAX_CONTROLLER_COUNT configs/mx6sllevk_defconfig| 5 + configs/mx6sllevk_plugin_defconfig | 5 + inc

Re: [U-Boot] [PATCH 3/3] imx: mx6sllevk: add usb support

2016-12-22 Thread Peng Fan
> -Original Message- > From: Marek Vasut [mailto:ma...@denx.de] > Sent: Thursday, December 22, 2016 3:12 PM > To: Peng Fan <peng@nxp.com>; sba...@denx.de > Cc: u-boot@lists.denx.de; van.free...@gmail.com > Subject: Re: [PATCH 3/3] imx: mx6sllevk: add usb suppo

Re: [U-Boot] [PATCH 3/3] imx: mx6sllevk: add usb support

2016-12-22 Thread Peng Fan
Hi Marek, > -Original Message- > From: Marek Vasut [mailto:ma...@denx.de] > Sent: Thursday, December 22, 2016 4:58 PM > To: Peng Fan <peng@nxp.com>; sba...@denx.de > Cc: u-boot@lists.denx.de; van.free...@gmail.com > Subject: Re: [PATCH 3/3] imx: mx6sllevk: ad

[U-Boot] [PATCH V2 1/3] usb: ehci-mx6: implement ofdata_to_platdata

2016-12-22 Thread Peng Fan
Implement ofdata_to_platdata to set the type to host or device. - Check "dr-mode" property. - If there is no "dr-mode", check phy_ctrl for i.MX6 and phy_status for i.MX7 Signed-off-by: Peng Fan <peng@nxp.com> Cc: Marek Vasut <ma...@denx.de> Cc: Simon Glass

[U-Boot] [PATCH 09/18] mxc_ocotp: Update driver to support OCOTP controller on i.MX7ULP

2016-12-26 Thread Peng Fan
From: Ye Li <ye...@nxp.com> Update the mxc_ocotp driver to support i.MX7ULP. The read/write sequence has some changes due to PDN and OUT_STATUS registers added and TIME register is removed. Also update the bank size and number. Signed-off-by: Peng Fan <peng@nxp.com> Signed-off-b

[U-Boot] [PATCH 16/18] mmc: fsl_esdhc: support i.MX7ULP

2016-12-26 Thread Peng Fan
Add compatible property for i.MX7ULP. Add a weak init_usdhc_clk function, i.MX7ULP use this to init the clock. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> Cc: Jaehoon Chung <jh80.ch...@samsung.com> --- drivers/mmc/fsl_esdhc.c | 8

[U-Boot] [PATCH 12/18] pinctrl: Add i.MX7ULP pinctrl driver

2016-12-26 Thread Peng Fan
Add i.MX7ULP pinctrl driver. Select CONFIG_PINCTRL_IMX7ULP to use this driver. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Simon Glass <s...@chromium.org> Cc: Stefano Babic <sba...@denx.de> --- drivers/pinctrl/nxp/Kconfig | 14 drivers/pinctrl/nxp/Make

[U-Boot] [PATCH 13/18] i2c: lpi2c: add lpi2c driver for i.MX7ULP

2016-12-26 Thread Peng Fan
Add lpi2c driver for i.MX7ULP. Need to enable the two options to use this driver: CONFIG_DM_I2C=y CONFIG_SYS_LPI2C_IMX=y Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> Cc: Heiko Schocher <h...@denx.de> --- arch/arm/include/asm/arch-mx7ulp

[U-Boot] [PATCH 04/18] imx: mx7ulp: Add clock framework and functions

2016-12-26 Thread Peng Fan
. Signed-off-by: Peng Fan <peng@nxp.com> Signed-off-by: Ye Li <ye...@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/cpu/armv7/mx7ulp/Makefile |2 +- arch/arm/cpu/armv7/mx7ulp/clock.c| 286 arch/arm/cpu/armv7/mx7ulp/pcc.c | 286

[U-Boot] [PATCH 14/18] serial: Add support for i.MX7ULP

2016-12-26 Thread Peng Fan
Add lpuart driver to support i.MX7ULP. Need to enable CONFIG_IMX_LPUART for the using. Also add the lpuart_fsl register structure and registers bits definitions in registers header file. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/incl

[U-Boot] [PATCH 15/18] arm: dts: add i.MX7ULP dtsi file

2016-12-26 Thread Peng Fan
Add i.MX7ULP dtsi file. Add clock and pinfun header files. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/dts/imx7ulp-pinfunc.h| 882 ++ arch/arm/dts/imx7ulp.dtsi

[U-Boot] [PATCH 11/18] wdog: Add the watchdog driver for MX7ULP.

2016-12-26 Thread Peng Fan
This driver implements the HW WATCHDOG functions. Which needs to set CONFIG_HW_WATCHDOG to use them. This is disabled by default for mx7ulp. Use watchdog for reset cpu. Implement this in the driver. Need to define CONFIG_ULP_WATCHDOG to build it. Signed-off-by: Peng Fan <peng@nxp.com>

[U-Boot] [PATCH 02/18] imx: mx7ulp: add registers header file

2016-12-26 Thread Peng Fan
Add imx-regs.h for i.MX7ULP registers addresses definitions and some registers structures. Signed-off-by: Peng Fan <peng@nxp.com> Signed-off-by: Ye Li <ye...@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/include/asm/arch-mx7ulp/imx-regs.h | 1125 +

[U-Boot] [PATCH 00/18] imx: add i.MX7ULP support

2016-12-26 Thread Peng Fan
This patchset is to add i.MX7 ULP support default enabling OF_CONTROL. i.MX7ULP has different architecture with i.MX7D/S, so not reuse the code in imx-common. Also there are some new IPs, such lpi2c/lpuart/ rapid gpio2p and etc. Peng Fan (15): imx: mx7ulp: Add mx7ulp to Kconfig imx: mx7ulp

[U-Boot] [PATCH 05/18] imx: mx7ulp: Add soc level initialization codes and functions

2016-12-26 Thread Peng Fan
. Signed-off-by: Peng Fan <peng@nxp.com> Signed-off-by: Ye Li <ye...@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/cpu/armv7/mx7ulp/Makefile | 2 +- arch/arm/cpu/armv7/mx7ulp/soc.c | 290 +++ arch/arm/include/asm/arch-

[U-Boot] [PATCH 10/18] mx7ulp: Add iomux pins header file

2016-12-26 Thread Peng Fan
ddress to aligin with it. Signed-off-by: Peng Fan <peng@nxp.com> Signed-off-by: Ye Li <ye...@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/include/asm/arch-mx7ulp/mx7ulp-pins.h | 910 + 1 file changed, 910 insertions(+) create mode 100644 a

[U-Boot] [PATCH 01/18] imx: mx7ulp: Add mx7ulp to Kconfig

2016-12-26 Thread Peng Fan
i.MX7ULP is a new series SoC which has different architecture from previous i.MX platforms. Create a new cpu folder for it, and add it to Kconfig. Signed-off-by: Peng Fan <peng@nxp.com> Signed-off-by: Ye Li <ye...@nxp.com> Cc: Stefano Babic <sba...@denx.de> ---

[U-Boot] [PATCH 08/18] gpio: Add Rapid GPIO2P driver for i.MX7ULP

2016-12-26 Thread Peng Fan
the bits in driver, but leave them to IOMUXC settings of the GPIO pins. User should use IMX_GPIO_NR to generate the GPIO number for gpio APIs access. Signed-off-by: Peng Fan <peng@nxp.com> Signed-off-by: Ye Li <ye...@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- arch/ar

[U-Boot] [PATCH V2 2/3] usb: ehci-mx6: handle vbus-supply

2016-12-22 Thread Peng Fan
Drop board_ehci_power when dm usb used and switch to use regulator api to handle vbus. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Marek Vasut <ma...@denx.de> Cc: Simon Glass <s...@chromium.org> Cc: Stefano Babic <sba...@denx.de> --- V2: None drivers/

Re: [U-Boot] [PATCH 3/3] imx: mx6sllevk: add usb support

2016-12-22 Thread Peng Fan
> > +#define USB_OTHERREGS_OFFSET 0x800 > > +#define UCTRL_PWR_POL (1 << 9) > > + > > +int board_ehci_hcd_init(int port) { > > + u32 *usbnc_usb_ctrl; > > + > > + if (port > 1) > > + return -EINVAL; >

[U-Boot] [PATCH] lib: div64: sync with Linux

2017-03-28 Thread Peng Fan
Sync with Linux commit ad0376eb1483b ("Merge tag 'edac_for_4.11_2'"). Signed-off-by: Peng Fan <peng@nxp.com> Cc: Tom Rini <tr...@konsulko.com> --- include/linux/math64.h | 172 + lib/di

Re: [U-Boot] [PATCH] spi: mxc_spi: support driver model

2017-03-19 Thread Peng Fan
Ping.. any comments? On Sat, Mar 04, 2017 at 10:47:06AM +0800, Peng Fan wrote: >Add driver model support for mxc spi driver. >Most functions are restructured to be reused by DM and non-DM. >Tested on mx6slevk board. > >Signed-off-by: Peng Fan <peng@nxp.com> >Cc: Jagan

Re: [U-Boot] [PATCH 1/3] imx: mx6slevk: use SPI_BOOT

2017-03-19 Thread Peng Fan
Ping.. any comments? On Sat, Mar 04, 2017 at 10:45:42AM +0800, Peng Fan wrote: >Use SPI_BOOT instead of SYS_BOOT_SPINOR. > >Signed-off-by: Peng Fan <peng@nxp.com> >Cc: Stefano Babic <sba...@denx.de> >--- > configs/mx6slevk_spinor_defconfig | 3 ++- > incl

[U-Boot] [PATCH] tools: imximage: add set bit command

2017-03-16 Thread Peng Fan
Add set bit command support. Usage: SET_BIT 4 [address] [bitmask] Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- tools/imximage.c | 12 tools/imximage.h | 4 +++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/tools/

[U-Boot] [PATCH 1/2] imx-common: Enable ACTLR.SMP bit for i.MX cortex-a7 platforms

2017-04-04 Thread Peng Fan
dd it in u-boot as a common flow for all i.MX cortex-a7 platforms, including mx7d, mx6ul/ull and mx7ulp. When cache not enabled in U-Boot, we also need enable the SMP bit. because kernel does not set this bit, if this bit not enabled, kernel works as cache disabled. Signed-off-by: Peng Fan <pen

[U-Boot] [PATCH 2/2] imx: mx7ulp: Fix SPLL/APLL clock rate calculation issue

2017-04-04 Thread Peng Fan
From: Ye Li <ye...@nxp.com> The num/denom is a float value, but in the calculation it is convert to integer 0, and wrong result. Signed-off-by: Ye Li <ye...@nxp.com> Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/cpu/armv7/mx7u

Re: [U-Boot] [PATCH v2 28/29] ARM: i.MX6: sabresd: Update README

2017-04-05 Thread Peng Fan
On Mon, Apr 03, 2017 at 07:23:35PM +0530, Jagan Teki wrote: >From: Jagan Teki > >Since all SabreSD boards support SPL and devicetree >update README on respective image name changes >while loading the SD card. SPL is not supported by NXP software releases, so I would

Re: [U-Boot] [PATCH] lib: div64: sync with Linux

2017-04-06 Thread Peng Fan
Hi Tom, On Wed, Apr 05, 2017 at 09:32:51AM -0400, Tom Rini wrote: >On Tue, Mar 28, 2017 at 05:05:09PM +0800, Peng Fan wrote: > >> Sync with Linux commit ad0376eb1483b ("Merge tag 'edac_for_4.11_2'"). >> >> Signed-off-by: Peng Fan <peng@nxp.com

Re: [U-Boot] [PATCH v2 07/29] ARM: i.MX6QP: sabresd: Add initial devicetree support

2017-04-05 Thread Peng Fan
On Mon, Apr 03, 2017 at 07:23:14PM +0530, Jagan Teki wrote: >From: Jagan Teki > >Add initial dts support for i.MX6 Quad Plus Sabresd board. > >Boot from MMC: >- >U-Boot SPL 2017.03-33690-ga80e4f6-dirty (Mar 30 2017 - 00:40:29) >Trying to boot from MMC1 >

[U-Boot] [PATCH V2] lib: div64: sync with Linux

2017-04-09 Thread Peng Fan
Sync with Linux commit ad0376eb1483b ("Merge tag 'edac_for_4.11_2'"). Signed-off-by: Peng Fan <peng@nxp.com> Cc: Tom Rini <tr...@konsulko.com> --- V2: Use `./tools/buildman/buildman -v` to do the build, the following 3 build fails, but not related to this patch. x86

[U-Boot] [PATCH 2/3] net: fec_mxc: avoid transfer dev_id -1 to get mac address from fuse

2017-04-10 Thread Peng Fan
From: Andy Duan <fugang.d...@nxp.com> Avoid transfer parameter dev_id value with "-1" to .fec_get_hwaddr(), it should transfer fec->dev_id to get mac address from fuse. Signed-off-by: Fugang Duan <fugang.d...@nxp.com> Signed-off-by: Peng Fan <peng@nxp.com> Cc

<    7   8   9   10   11   12   13   14   15   16   >