[U-Boot] [PATCH 11/13] net: fec_mxc: use simpler runtime cpu dection macros

2016-05-18 Thread Peng Fan
Use simpler runtime cpu dection macros. Signed-off-by: Peng Fan <van.free...@gmail.com> Cc: Stefano Babic <sba...@denx.de> Cc: Joe Hershberger <joe.hershber...@ni.com> --- drivers/net/fec_mxc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/f

[U-Boot] [PATCH 10/13] ocotp: mxc: use simpler runtime cpu dection macros

2016-05-18 Thread Peng Fan
Use simpler runtime cpu dection macros. Signed-off-by: Peng Fan <van.free...@gmail.com> Cc: Stefano Babic <sba...@denx.de> --- drivers/misc/mxc_ocotp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/mxc_ocotp.c b/drivers/misc/mxc_ocotp.c i

[U-Boot] [PATCH 07/13] imx-common: sata: return failure if not i.MX6DQPlus

2016-05-18 Thread Peng Fan
The i.MX6DQPlus support sata interface, we should not return failure when CPU is i.MX6DQPlus. Signed-off-by: Peng Fan <van.free...@gmail.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/imx-common/sata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/ar

[U-Boot] [PATCH 06/13] imx-common: hab: support i.MX6DQPlus

2016-05-18 Thread Peng Fan
Support i.MX6DQPlus, otherwise wrong hab address will be used for i.MX6QDPlus. Signed-off-by: Peng Fan <van.free...@gmail.com> Cc: Ulises Cardenas <ulises.carde...@freescale.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/imx-common/hab.c | 10 ++ 1 file chan

[U-Boot] [PATCH 09/13] mtd: nand: mxs: use simpler runtime cpu dection macros

2016-05-18 Thread Peng Fan
Use simpler runtime cpu dection macros. Signed-off-by: Peng Fan <van.free...@gmail.com> Cc: Stefano Babic <sba...@denx.de> Cc: Scott Wood <o...@buserror.net> --- drivers/mtd/nand/mxs_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/mx

[U-Boot] [PATCH 12/13] block: dwc_ahsata: support i.MX6DQPlus

2016-05-18 Thread Peng Fan
i.MX6DQPlus support sata interface, so not return failure when CPU is i.MX6DQPlus. In this patch, also use simpler runtime cpu dections macros to replace is_cpu_type. Signed-off-by: Peng Fan <van.free...@gmail.com> Cc: Stefano Babic <sba...@denx.de> Cc: Simon Glass <s...@chromiu

[U-Boot] [PATCH V4 4/4] dm: gpio: introduce 74x164 driver

2016-05-02 Thread Peng Fan
/gpio/gpio-74x164.txt to add device nodes 5. Tested on i.MX6 UltraLite with 74LV595 using gpio command and oscillograph. Signed-off-by: Peng Fan <van.free...@gmail.com> Cc: Simon Glass <s...@chromium.org> Cc: Masahiro Yamada <yamada.masah...@socionext.com> Cc: Chin Lia

[U-Boot] [PATCH V4 3/4] dm: spi: introduce dm api

2016-05-02 Thread Peng Fan
Introduce dm_spi_claim_bus, dm_spi_release_bus and dm_spi_xfer Convert spi_claim_bus, spi_release_bus and spi_xfer to use the new API. Signed-off-by: Peng Fan <van.free...@gmail.com> Cc: Simon Glass <s...@chromium.org> Cc: Jagan Teki <jt...@openedev.com> --- V4: Con

[U-Boot] [PATCH V4 1/4] dm: spi: soft_spi bug fix

2016-05-02 Thread Peng Fan
When doing xfer, should use device->parent, but not device When doing bit xfer, should use "!!(tmpdout & 0x80)", but not "(tmpdout & 0x80)" Signed-off-by: Peng Fan <van.free...@gmail.com> Cc: Simon Glass <s...@chromium.org> Cc: Jagan Teki <j

[U-Boot] [PATCH V4 1/4] dm: spi: soft_spi bug fix

2016-05-02 Thread Peng Fan
When doing xfer, should use device->parent, but not device When doing bit xfer, should use "!!(tmpdout & 0x80)", but not "(tmpdout & 0x80)" Signed-off-by: Peng Fan <van.free...@gmail.com> Cc: Simon Glass <s...@chromium.org> Cc: Jagan Teki <j

[U-Boot] [PATCH V4 2/4] dm: spi: soft_spi: switch to use linux compatible string

2016-05-02 Thread Peng Fan
4LV595 spi-gpio chip. Signed-off-by: Peng Fan <van.free...@gmail.com> Cc: Simon Glass <s...@chromium.org> Cc: Przemyslaw Marczak <p.marc...@samsung.com> Reviewed-by: Simon Glass <s...@chromium.org> --- V4: None V3: None V2: Follow Simon's comments, drop uboot compat

[U-Boot] [PATCH] imx: correct speed grading info for i.MX6UL

2016-05-02 Thread Peng Fan
Correct speed grading info for i.MX6UL Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/cpu/armv7/mx6/soc.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c i

Re: [U-Boot] [PATCH] arm: imx-common: introduce back usec2ticks

2016-05-02 Thread Peng Fan
Hi Tom, On Mon, May 02, 2016 at 10:04:47PM -0400, Tom Rini wrote: >On Tue, May 03, 2016 at 09:17:51AM +0800, Peng Fan wrote: >> Hi Tom, >> >> On Mon, May 02, 2016 at 07:41:35PM -0400, Tom Rini wrote: >> >On Fri, Apr 29, 2016 at 09:56:09AM +0800, Peng Fan

[U-Boot] [PATCH] dfu: avoid memory leak

2016-05-02 Thread Peng Fan
When dfu_fill_entity fail, need to free dfu to avoid memory leak. Reported by Coverity: " Resource leak (RESOURCE_LEAK) leaked_storage: Variable dfu going out of scope leaks the storage it points to. " Signed-off-by: Peng Fan <van.free...@gmail.com> Cc: "Łukasz Majewski&quo

[U-Boot] [PATCH] usb: gadget: dfu: discard dead code

2016-05-02 Thread Peng Fan
Reported by Coverity: Logically dead code (DEADCODE) dead_error_line: Execution cannot reach this statement: (f_dfu->strings + --i).s = If calloc failed, i is still 0 and no need to call free, so discard the dead code. Signed-off-by: Peng Fan <van.free...@gmail.com> Cc: "Ł

[U-Boot] [PATCH] imx6: cache: disable L2 before touching Auxiliary Control Register

2016-05-04 Thread Peng Fan
From: Peng Fan <peng@nxp.com> According PL310 TRM, Auxiliary Control Register " The register must be written to using a secure access, and it can be read using either a secure or a NS access. If you write to this register with a NS access, it results in a write response with a DECE

Re: [U-Boot] [PATCH] arm: imx-common: introduce back usec2ticks

2016-05-02 Thread Peng Fan
Hi Tom, On Mon, May 02, 2016 at 07:41:35PM -0400, Tom Rini wrote: >On Fri, Apr 29, 2016 at 09:56:09AM +0800, Peng Fan wrote: > >> This commit "2bb014820c49a63902103bac710bc86b5772e843" >> do some clean up to use the code in lib/time.c. >> But usec2ticks is still

Re: [U-Boot] [PATCH] arm: imx-common: introduce back usec2ticks

2016-05-10 Thread Peng Fan
Hi Stefano, Kindly ping.. Thanks, Peng. On Fri, Apr 29, 2016 at 09:56:09AM +0800, Peng Fan wrote: >This commit "2bb014820c49a63902103bac710bc86b5772e843" >do some clean up to use the code in lib/time.c. >But usec2ticks is still being used by security related job rin

[U-Boot] [PATCH V2] dm: gpio: pca953x: introduce driver model support for pca953x

2016-04-14 Thread Peng Fan
c@021a8000 gpio[ ]| | |-- gpio@30 gpio[ ]| | `-- gpio@32 Signed-off-by: Peng Fan <van.free...@gmail.com> Cc: Simon Glass <s...@chromium.org> Cc: Masahiro Yamada <yamada.masah...@socionext.com> Cc: Wenyou Yang <wenyou.y...@atmel.com>

Re: [U-Boot] [PATCH] fdt: Do not report bad cell count when #size-cells = <0>

2016-04-14 Thread Peng Fan
** >__of_translate_address: Bad cell count for gpio@20 >Command 'gpio' failed: Error -19 > >This patch fixes OF_CHECK_COUNTS macro not to report problem when >size-cells is 0 which is also valid bus configuration. > >Signed-off-by: Michal Simek <michal.si...@xilinx.com>

[U-Boot] [PATCH V4] dm: gpio: pca953x: introduce driver model support for pca953x

2016-04-14 Thread Peng Fan
c@021a8000 gpio[ ]| | |-- gpio@30 gpio[ ]| | `-- gpio@32 Signed-off-by: Peng Fan <van.free...@gmail.com> Cc: Simon Glass <s...@chromium.org> Cc: Masahiro Yamada <yamada.masah...@socionext.com> Cc: Wenyou Yang <wenyou.y...@atmel.com>

[U-Boot] [PATCH V3] dm: gpio: pca953x: introduce driver model support for pca953x

2016-04-14 Thread Peng Fan
c@021a8000 gpio[ ]| | |-- gpio@30 gpio[ ]| | `-- gpio@32 Signed-off-by: Peng Fan <van.free...@gmail.com> Cc: Simon Glass <s...@chromium.org> Cc: Masahiro Yamada <yamada.masah...@socionext.com> Cc: Wenyou Yang <wenyou.y...@atmel.com>

Re: [U-Boot] [PATCH V2 3/3] dm: gpio: introduce 74x164 driver

2016-04-20 Thread Peng Fan
Hi Simon, On Wed, Apr 20, 2016 at 08:40:45AM -0600, Simon Glass wrote: >Hi Peng, > >On 13 April 2016 at 01:18, Peng Fan <van.free...@gmail.com> wrote: >> Introduce driver to support "fairchild,74hc595" devices. >> 1. Take linux drivers/drivers/gpio/gpio-7

Re: [U-Boot] [RFC 1/2] mmc: introduce mmc_power_init and pwrup hook function

2016-04-20 Thread Peng Fan
Hi Simon, On Wed, Apr 20, 2016 at 08:40:10AM -0600, Simon Glass wrote: >Hi Peng, > >On 10 April 2016 at 23:34, Peng Fan <van.free...@gmail.com> wrote: >> Hi Simon, >> >> On Sat, Apr 09, 2016 at 12:34:13PM -0600, Simon Glass wrote: >>>Hi Peng, >>&g

[U-Boot] [PATCH 3/5] mmc: sd: add erase timeout support

2016-08-11 Thread Peng Fan
Add timeout in mmc_cmd, we can use this in driver code. Add mmc_sd_erase_timeout, this function is modified from linux kernel. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Jaehoon Chung <jh80.ch...@samsung.com> Cc: Simon Glass <s...@chromium.org> Cc: Bin Meng <bmeng...@

[U-Boot] [PATCH 4/5] mmc: esdhc: change timeout value

2016-08-11 Thread Peng Fan
Change timeout according to the timeout value in mmc_cmd->timeout. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Jaehoon Chung <jh80.ch...@samsung.com> --- drivers/mmc/fsl_esdhc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/fsl_esdhc.

Re: [U-Boot] [PATCH 1/5] mmc: sd: extracting erase timeout information from sd status

2016-08-11 Thread Peng Fan
Hi Jaehoon, On Fri, Aug 12, 2016 at 11:08:28AM +0900, Jaehoon Chung wrote: >Hi Peng, > >On 08/11/2016 08:00 PM, Peng Fan wrote: >> Add function to read SD_STATUS information. >> According to the information, get erase_timeout/erase_size/erase_offset. >> Add a structure

Re: [U-Boot] [PATCH 5/5] mmc: sd: optimize erase

2016-08-11 Thread Peng Fan
Hi Fabio, On Thu, Aug 11, 2016 at 09:53:31PM -0300, Fabio Estevam wrote: >Hi Peng, > >On Thu, Aug 11, 2016 at 8:00 AM, Peng Fan <van.free...@gmail.com> wrote: >> To SD, there is no erase group, then the value erase_grp_size >> will be default 1. When erasing SD blocks, t

[U-Boot] [PATCH 1/5] mmc: sd: extracting erase timeout information from sd status

2016-08-11 Thread Peng Fan
Add function to read SD_STATUS information. According to the information, get erase_timeout/erase_size/erase_offset. Add a structure sd_ssr to include the erase related information. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Jaehoon Chung <jh80.ch...@samsung.com> Cc: Si

[U-Boot] dm video question

2016-08-15 Thread Peng Fan
Hi Simon, I am trying to coverting mxsfb.c to support dm. But met the following issue. " mxsfb_lcd_bind: Frame buffer size 200400 Video device 'lcdif@021c8000' cannot allocate frame buffer memory -ensure the device is set up before relocation " I add "u-boot, dm-pre-reloc" in dts as the

Re: [U-Boot] [PATCH 2/5] mmc: initialize mmc_cmd with 0

2016-08-13 Thread Peng Fan
Hi Simon, On Fri, Aug 12, 2016 at 11:20:25AM -0600, Simon Glass wrote: >Hi Peng, > >On 11 August 2016 at 05:00, Peng Fan <van.free...@gmail.com> wrote: >> Using {0} to initialize mmc_cmd, before filling the structure. >> >> Signed-off-by: Peng Fan <peng@nx

[U-Boot] [PATCH 06/21] imx: timer: update gpt driver for i.MX6ULL

2016-08-11 Thread Peng Fan
The i.MX6ULL's GPT supportting taking OSC as clock source. Add i.MX6ULL support. 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/timer.c | 7 --- 1 file changed, 4 insertions(+), 3

[U-Boot] [PATCH 03/21] imx: mx6ull: add kconfig entry for MX6ULL

2016-08-11 Thread Peng Fan
From: Ye Li <ye...@nxp.com> i.MX6ULL is derivative from i.MX6UL, so select MX6UL for MX6ULL. If need to differenate MX6ULL from MX6UL, use CONFIG_MX6ULL 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 13/21] imx: mx6ull: Add AIPS3 initialization

2016-08-11 Thread Peng Fan
Since the mx6ull adds the AIPS3, so enable its initialization. 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/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a

[U-Boot] [PATCH 08/21] imx: mx6ul: using runtime check when configuring PMIC_STBY_REQ

2016-08-11 Thread Peng Fan
Since MX6ULL select MX6UL, we can not use IS_ENABLED(CONFIG_MX6UL) here, because this piece code is only for i.MX6UL. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/cpu/armv7/mx6/soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[U-Boot] [PATCH 05/21] imx: ocotp: support i.MX6ULL

2016-08-11 Thread Peng Fan
, we use word index, so need to fix bank7/8 programming for i.mx6ull. For example: fuse prog 8 3 1; The word index is (8 << 3 | 3) --> 67. But actully it should be (7 << 3 | 7) ---> 63. So fix it. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...

[U-Boot] [PATCH 18/21] dt-bindings: add i.mx6ul clock header

2016-08-11 Thread Peng Fan
Add i.mx6ul clock header, copied from kernel commit (29b4817d401). i.MX6ULL reuse the file in Linux Kernel, so let's keep the same. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Simon Glass <s...@chromium.org> Cc: Stefano Babic <sba...@denx.de> --- include/dt-bindings/clock/im

[U-Boot] [PATCH 07/21] imx: mx6ull: skip setting ahb clock

2016-08-11 Thread Peng Fan
Rom already initialized clock at 396M and 132M for arm core and ahb, so skip setting them again in U-Boot. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/cpu/armv7/mx6/soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

[U-Boot] [PATCH 02/21] imx: mx6ull: add mx6ull major cpu type

2016-08-11 Thread Peng Fan
Add i.MX6ULL major cpu type. 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/cpu.c | 2 ++ arch/arm/include/asm/arch-imx/cpu.h | 3 ++- 2 files changed, 4 insertions(+), 1 delet

[U-Boot] [PATCH 14/21] imx: imx6ull: adjust the ldo 1.2v bandgap voltage

2016-08-11 Thread Peng Fan
Per to design team, on i.MX6UL, the LDO 1.2V bandgap voltage is 30mV higher, so we need to adjust the REFTOP_VBGADJ(anatop MISC0 bit[6:4]) setting to 2b'110. Signed-off-by: Peng Fan <peng@nxp.com> Signed-off-by: Bai Ping <ping@nxp.com> Cc: Stefano Babic <sba...@denx.de>

[U-Boot] [PATCH 20/21] dm: mmc: intialize dev when probe

2016-08-11 Thread Peng Fan
Need to initialize mmc->dev when probe, or will met "dev_get_uclass_priv: null device", when `mmc dev 1`. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> Cc: Simon Glass <s...@chromium.org> Cc: Jaehoon Chung <jh80.ch...@samsung.com

[U-Boot] [PATCH 04/21] imx-common: introduce is_mx6ull

2016-08-11 Thread Peng Fan
Introduce is_mx6ull macro. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/include/asm/imx-common/sys_proto.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/include/asm/imx-common/sys_proto.h b/arch/arm/include/asm/imx-common

[U-Boot] [PATCH 09/21] imx: mx6ull: misc soc update

2016-08-11 Thread Peng Fan
Update misc SOC related settings for i.MX6ULL, such as FEC mac address, cpu speed grading and mmdc channel mask clearing. Also update s_init to skip pfd reset. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/cpu/armv7/mx6/soc.c | 8

[U-Boot] [PATCH 15/21] imx: iomux: fix snvs usage for i.MX6ULL

2016-08-11 Thread Peng Fan
SNVS TAMPER pin and BOOT MODE pins are in SNVS IOMUXC module, not in IOMUXC, so correct the related registers' offset. Use IOMUX_CONFIG_LPSR flag for these pins, so we can differentiate them from iomuxc pins. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@de

[U-Boot] [PATCH 12/21] imx: mx6ull: Update memory map address

2016-08-11 Thread Peng Fan
Update memory map address for mx6ull. 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-mx6/imx-regs.h | 17 ++--- 1 file changed, 14 insertions(+), 3 deletions(-) dif

[U-Boot] [PATCH 16/21] pinctrl: imx6: support i.MX6ULL

2016-08-11 Thread Peng Fan
There two iomuxc for i.MX6ULL. one iomuxc is compatible is i.MX6UL, the other iomuxc is for SVNS usage, similar with the one in mx7. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> Cc: Simon Glass <s...@chromium.org> --- drivers/pinctrl/nxp/

[U-Boot] [PATCH 10/21] imx: mx6ull: adjust POR_B setting for i.MX6ULL

2016-08-11 Thread Peng Fan
Adjust POR_B settings on i.MX6ULL according to IC design team's suggestion: 2'b00 : always PUP100K 2'b01 : PUP100K when PMIC_ON_REQ || SOC_NOT_FAIL 2'b10 : always disable PUP100K 2'b11 : PDN100K when SOC_FAIL, PUP100K when SOC_NOT_FAIL -- recommended setting Signed-off-by: Peng Fan <p

[U-Boot] [PATCH 21/21] arm: imx: add i.MX6ULL 14x14 EVK board support

2016-08-11 Thread Peng Fan
: CPU Net Initialization Failed No ethernet found. Hit any key to stop autoboot: 0 => mmc dev 1 switch to partitions #0, OK mmc1 is current device Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/cpu/armv7/mx6/Kconfig | 7 + arch/a

[U-Boot] [PATCH] imx: mx7dsabresd: consolidate BOOT_FROM

2016-08-11 Thread Peng Fan
To i.MX7, different boot medias' IVT offset is fixed at 0x400. So consolidate BOOT_FROM to use FLASH_OFFSET_STANDARD. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- board/freescale/mx7dsabresd/imximage.cfg | 7 ++- 1 file changed, 2 inse

[U-Boot] [PATCH 00/21] imx: support i.MX6ULL and EVK board

2016-08-11 Thread Peng Fan
tree related files are reused from i.MX6UL, which also the same way in Linux Kernel. The clock header for device tree is added, although there is no DM clock driver for i.mx6/7 now, i do not want to change the device tree a lot from Linux dts. Peng Fan (20): imx: mx6ull: add iomux header file

[U-Boot] [PATCH 01/21] imx: mx6ull: add iomux header file

2016-08-11 Thread Peng Fan
Add iomux header file for i.MX6ULL. 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-mx6/mx6-pins.h|2 + arch/arm/include/asm/arch-mx6/mx6ull_pins.h | 1065 ++

[U-Boot] [PATCH 11/21] imx: mx6ull: update clock settings and CCM register map

2016-08-11 Thread Peng Fan
Update Clock settings and CCM register map for i.MX6ULL. 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/mx6/clock.c | 59 arch/arm/include/asm/a

[U-Boot] [PATCH 19/21] arm: dts: add device tree for i.MX6ULL

2016-08-11 Thread Peng Fan
Add device tree for i.MX6ULL. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Simon Glass <s...@chromium.org> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/dts/imx6ull.dtsi | 1161 + 1 file changed, 1161 insertions(+) create mode 1

[U-Boot] [PATCH 17/21] arm: dts: imx6ull: add pinctrl defines

2016-08-11 Thread Peng Fan
Add pinctrl defines for NXP i.MX 6ULL. Since i.MX6ULL reuses some definitions of i.MX6UL, also add i.MX6UL pinctrl defines from linux kernel commit (29b4817d401). Signed-off-by: Peng Fan <peng@nxp.com> Cc: Simon Glass <s...@chromium.org> Cc: Stefano Babic <sba...@denx.de>

[U-Boot] [PATCH V2 5/5] mmc: sd: optimize erase

2016-08-12 Thread Peng Fan
0x2000` time: 44.856 seconds (before optimization) time: 0.335 seconds (after optimization) Signed-off-by: Peng Fan <peng@nxp.com> Cc: Jaehoon Chung <jh80.ch...@samsung.com> Cc: Simon Glass <s...@chromium.org> Cc: Bin Meng <bmeng...@gmail.com> Cc: Stefan Wahren <stefan.w

[U-Boot] [PATCH V2 1/5] mmc: sd: extracting erase timeout information from sd status

2016-08-12 Thread Peng Fan
Add function to read SD_STATUS information. According to the information, get erase_timeout/erase_size/erase_offset. Add a structure sd_ssr to include the erase related information. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Jaehoon Chung <jh80.ch...@samsung.com> Cc: Si

[U-Boot] [PATCH V2 2/5] mmc: initialize mmc_cmd with 0

2016-08-12 Thread Peng Fan
Using {0} to initialize mmc_cmd, before filling the structure. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Jaehoon Chung <jh80.ch...@samsung.com> Cc: Simon Glass <s...@chromium.org> Cc: Bin Meng <bmeng...@gmail.com> Cc: Stefan Wahren <stefan.wah...@i2se.com> C

[U-Boot] [PATCH V2 3/5] mmc: sd: add erase timeout support

2016-08-12 Thread Peng Fan
Add timeout in mmc_cmd, we can use this in driver code. Add mmc_sd_erase_timeout, this function is modified from linux kernel. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Jaehoon Chung <jh80.ch...@samsung.com> Cc: Simon Glass <s...@chromium.org> Cc: Bin Meng <bmeng...@

[U-Boot] [PATCH V2 4/5] mmc: esdhc: change timeout value

2016-08-12 Thread Peng Fan
Change timeout according to the timeout value in mmc_cmd->timeout. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Jaehoon Chung <jh80.ch...@samsung.com> --- drivers/mmc/fsl_esdhc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/fsl_esdhc.

[U-Boot] [PATCH 5/5] mmc: sd: optimize erase

2016-08-11 Thread Peng Fan
To SD, there is no erase group, then the value erase_grp_size will be default 1. When erasing SD blocks, the blocks will be erased one by one, which is time consuming. use AU_SIZE as a group to speed up the erasing. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Jaehoon Chung &l

[U-Boot] [PATCH 2/5] mmc: initialize mmc_cmd with 0

2016-08-11 Thread Peng Fan
Using {0} to initialize mmc_cmd, before filling the structure. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Jaehoon Chung <jh80.ch...@samsung.com> Cc: Simon Glass <s...@chromium.org> Cc: Bin Meng <bmeng...@gmail.com> Cc: Stefan Wahren <stefan.wah...@i2se.com> C

Re: [U-Boot] erasing u-boot from u-boot

2016-07-18 Thread Peng Fan
On Mon, Jul 18, 2016 at 06:23:10PM +, mike.wors...@emerson.com wrote: >I'm working with a 2015.04 version of U-Boot, I have it flashed on a i.MX6 >DualLite based device in eMMC. I'm now trying to blow away that version of >U-Boot from within U-Boot itself (so the device goes back into Serial

Re: [U-Boot] erasing u-boot from u-boot

2016-07-18 Thread Peng Fan
Hi Fabio, On Mon, Jul 18, 2016 at 10:59:43PM -0300, Fabio Estevam wrote: >Hi Peng, > >On Mon, Jul 18, 2016 at 10:48 PM, Peng Fan <van.free...@gmail.com> wrote: > >> If you burned u-boot using mfgtool, the uboot will be burned into boot >> partition. >> However

Re: [U-Boot] [U-Boot, 1/3] mmc: fsl: reset to normal boot mode when eMMC fast boot

2016-08-07 Thread Peng Fan
Hi Jaehoon, On Thu, Aug 04, 2016 at 02:32:16PM +0900, Jaehoon Chung wrote: >Hi Peng, > >On 04/26/2016 03:54 PM, Peng Fan wrote: >> When booting in eMMC fast boot, MMC host does not exit from >> boot mode after bootrom loading image. So the first command >> 'CMD0' s

[U-Boot] [PATCH] imx6: clock: typo fix

2016-06-30 Thread Peng Fan
Typo fix, "PPL2 -> PLL2" Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- arch/arm/cpu/armv7/mx6/clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv7/mx6/clock.c b/arch/arm/cpu/armv7/mx6/clock

[U-Boot] [PATCH 1/2] imx: kconfig: introduce IMX_FIXED_IVT_OFFSET

2016-06-29 Thread Peng Fan
Introduce IMX_FIXED_IVT_OFFSET, which means different boot medias use the same IVT offset. To i.MX7, different boot medias' IVT offset is fixed at 0x400. So select IMX_FIXED_IVT_OFFSET for i.MX7D. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> ---

[U-Boot] [PATCH 2/2] imximage: differentiate IVT offset for IMX_FIXED_IVT_OFFSET

2016-06-29 Thread Peng Fan
When IMX_FIXED_IVT_OFFSET defined, use FLASH_OFFSET_STANDARD for different boot medias. This is needed for i.MX7. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> --- tools/imximage.h | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff -

Re: [U-Boot] [PATCH] fastboot: nand: fix compile error

2016-06-20 Thread Peng Fan
Hi Scott, On Mon, Jun 20, 2016 at 03:17:11AM -0500, Scott Wood wrote: >On Mon, 2016-06-20 at 15:15 +0800, Peng Fan wrote: >> Error info " >> common/fb_nand.c: In function 'fb_nand_lookup': >> common/fb_nand.c:65:3: error: 'mtd' undeclared (first use in this function) >

[U-Boot] [PATCH V2 2/2] ehci: mx7: fix otg id detection

2016-06-19 Thread Peng Fan
The USBNC_PHYCFG2_ACAENB bit should be cleared to enable the OTG ID detection, not set it. When the bit is set, the ACA Resistance Detection is enabled, which disables the OTG ID detection, because the internal pull up is off. Signed-off-by: Ye Li <ye...@nxp.com> Signed-off-by: Peng Fan

[U-Boot] [PATCH V2 1/2] ehci: mx7: fix usbnc_regs

2016-06-19 Thread Peng Fan
There is a 4 bytes hole between phy_cfg2 and phy_status, fix the usbnc_regs structure to include the hole. Signed-off-by: Ye Li <ye...@nxp.com> Signed-off-by: Peng Fan <peng@nxp.com> --- V2: Split from V1 to a single patch. drivers/usb/host/ehci-mx6.c | 3 ++- 1 file changed,

Re: [U-Boot] [PATCH] dm: ehci-mx6: support driver model

2016-06-19 Thread Peng Fan
Hi Simon, On Fri, Jun 17, 2016 at 04:59:49PM -0600, Simon Glass wrote: >Hi Peng, > >On 17 June 2016 at 00:19, Peng Fan <van.free...@gmail.com> wrote: >> Support driver model for ehci mx6 driver. >> Consolidate code to be shared between DM and non-DM, such as >>

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

2017-02-08 Thread Peng Fan
Hi Stefano, On Tue, Dec 27, 2016 at 06:04:06PM +0800, Peng Fan wrote: >This patchset is to add i.MX7 ULP support default enabling OF_CONTROL. >Also there are some new IPs, such lpi2c/lpuart/rapid gpio2p and etc. Do you have plan to pick this patchset? or any comments? We plan to choose 2

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

2017-02-22 Thread Peng Fan
-by tag V2: Restructure the lpuart driver and add i.MX7ULP support. Reuse code in imx-common Add HAB support Add plugin support Add wdog file license Add maintainer file Addressed some issues in board code. Peng Fan (16): imx: mx7ulp: Add mx7ulp to Kconfig imx: mx7ulp: add

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

2017-02-21 Thread Peng Fan
On Sun, Feb 12, 2017 at 10:25:02AM +0100, Stefano Babic wrote: > > >On 27/12/2016 11:04, Peng Fan wrote: >> From: Ye Li <ye...@nxp.com> >> >> This driver implements the HW WATCHDOG functions. Which needs >> to set CONFIG_HW_WATCHDOG to use them. Th

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

2017-02-22 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> Reviewed-by : Stefano Babic <sba...@denx.de> --- V

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

2017-02-21 Thread Peng Fan
On Sun, Feb 12, 2017 at 10:19:41AM +0100, Stefano Babic wrote: >Hi Peng, > >On 27/12/2016 11:04, Peng Fan wrote: >> Implement soc level functions to get cpu rev, reset cause, enable cache, >> etc. We will disable the wdog and init clocks in s_init at very early u-boot >>

Re: [U-Boot] [PATCH] Revert "imx: mx7: implement reset_misc"

2017-02-22 Thread Peng Fan
On Wed, Feb 22, 2017 at 06:33:32AM -0300, Fabio Estevam wrote: >Hi Stefano and Peng, > >On Tue, Feb 21, 2017 at 11:21 PM, Fabio Estevam wrote: >> From: Fabio Estevam >> >> Commit 9f8fa184fc1ac ("imx: mx7: implement reset_misc") says it needs to >> to

[U-Boot] [PATCH V3 14/19] serial: lpuart: add i.MX7ULP support

2017-02-22 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 V3 16/19] arm: dts: add i.MX7ULP dtsi file

2017-02-22 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> --- V3: None V2: None arch/arm/dts/imx7ulp-pinfunc.h| 882 ++ arch/arm/dts/imx7ulp.dtsi

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

2017-02-22 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> --- V3: None V2: Add bootcmd and more env. configs/mx7ulp_evk_defconfig

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

2017-02-22 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> --- V3: Merge patch 6 of V2 into this one. V2: None arch/arm/cpu/armv7/mx7ulp/Makefile |2 +- arch/arm/cpu/armv7/mx7ulp/clock.c| 315 +

[U-Boot] [PATCH V3 06/19] imx: mx7ulp: Implement the clock functions for i2c driver

2017-02-22 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> Reviewed-by: Stefano Babic <sba...@denx.de> --- V3:

Re: [U-Boot] [PATCH] Revert "imx: mx7: implement reset_misc"

2017-02-22 Thread Peng Fan
Hi Fabio, > -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: Wednesday, February 22, 2017 5:34 PM > To: Stefano Babic <sba...@denx.de> > Cc: Tom Rini <tr...@konsulko.com>; U-Boot-Denx <u-boot@lists.denx.de>; > Peng F

Re: [U-Boot] [PATCH] video: mxsfb: Fix reset hang when videomode variable is not present

2017-02-22 Thread Peng Fan
Hi Fabio, On Wed, Feb 22, 2017 at 06:52:24AM -0300, Fabio Estevam wrote: >From: Fabio Estevam > >Currently the system hangs when the 'videomode' variable is not present: > >=> setenv videomode >=> saveenv >=> reset > >(Board hangs) > >lcdif_power_down() assumes that the

[U-Boot] [PATCH V3 17/19] mmc: fsl_esdhc: support i.MX7ULP

2017-02-22 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> Reviewed-by: Jaehoon Chung <jh80.ch...@samsung.com> Reviewed-by : Stefano Babic <sba...@denx.de> --- V3: Add review tag V

[U-Boot] [PATCH V3 13/19] serial: lpuart: restructure lpuart driver

2017-02-22 Thread Peng Fan
use the orignal code. Signed-off-by: Peng Fan <peng@nxp.com> Reviewed-by : 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...@freescal

[U-Boot] [PATCH V3 10/19] wdog: Add the watchdog driver for MX7ULP.

2017-02-22 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 V3 12/19] i2c: lpi2c: add lpi2c driver for i.MX7ULP

2017-02-22 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> --- V3: none V2: none arch/arm/inclu

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

2017-02-22 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> --- V3: Remove get_imx_reset_cause Remove the fuse cfg0/cfg1/cfg2 for uid. Move registers definiton into patch 2 V2: Reuse code in

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

2017-02-22 Thread Peng Fan
@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> --- V3: Update commit log with new uboot tested. V2: Add maintainer file Drop board rev Drop

[U-Boot] [PATCH V3 11/19] pinctrl: Add i.MX7ULP pinctrl driver

2017-02-22 Thread Peng Fan
Add i.MX7ULP pinctrl driver. Select CONFIG_PINCTRL_IMX7ULP to use this driver. Signed-off-by: Peng Fan <peng@nxp.com> Reviewed-by: Simon Glass <s...@chromium.org> Reviewed-by : Stefano Babic <sba...@denx.de> --- V3: Add review tag V2: None drivers/pinctrl/nxp/Kcon

[U-Boot] [PATCH V3 08/19] mxc_ocotp: Update driver to support OCOTP controller on i.MX7ULP

2017-02-22 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 V3 15/19] mx7ulp: Add HAB boot support

2017-02-22 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> Reviewed-

[U-Boot] [PATCH V3 07/19] gpio: Add Rapid GPIO2P driver for i.MX7ULP

2017-02-22 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> Reviewed-by : Stefano Babic <sba...@denx.de> --- V

[U-Boot] [PATCH V3 09/19] mx7ulp: Add iomux pins header file

2017-02-22 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> --- V3: None V2: None arch/arm/include/asm/arch-mx7ulp/mx7ulp-pins.h | 910 + 1 file changed, 910 insertions(+) cre

[U-Boot] [PATCH V4 12/19] i2c: lpi2c: add lpi2c driver for i.MX7ULP

2017-02-23 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_I2C_IMX_LPI2C=y Signed-off-by: Peng Fan <peng@nxp.com> Acked-by: Heiko Schocher <h...@denx.de> Cc: Stefano Babic <sba...@denx.de> --- I do not repost the whole pa

[U-Boot] [PATCH V4 12/19] i2c: lpi2c: add lpi2c driver for i.MX7ULP

2017-02-23 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_I2C_IMX_LPI2C=y Signed-off-by: Peng Fan <peng@nxp.com> Acked-by: Heiko Schocher <h...@denx.de> Cc: Stefano Babic <sba...@denx.de> --- I do not repost the whole pa

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

2017-02-22 Thread Peng Fan
. Signed-off-by: Ye Li <ye...@nxp.com> Signed-off-by: Peng Fan <peng@nxp.com> Reviewed-by : Stefano Babic <sba...@denx.de> --- V3: Add review tag V2: none arch/arm/cpu/armv7/mx7ulp/Makefile | 8 +++ arch/arm/cpu/armv7/mx7ulp/iomux.c| 70 +++

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

2017-02-22 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> Reviewed-by : Stefano Babic <sba...@denx.de> --- V3: Move definitions in other patches into this one A

Re: [U-Boot] i.MX6QP sd boot issue

2017-03-01 Thread Peng Fan
> -Original Message- > From: Jagan Teki [mailto:ja...@openedev.com] > Sent: Wednesday, March 01, 2017 10:12 PM > To: Peng Fan <peng@nxp.com> > Cc: Jagan Teki <ja...@openedev.com>; u-boot@lists.denx.de > Subject: Re: [U-Boot] i.MX6QP sd boot issue >

<    5   6   7   8   9   10   11   12   13   14   >