Re: [U-Boot] [PATCH] i.MX6 nand bootupdate

2016-06-15 Thread Peng Fan
Hi Sergey, On Tue, Jun 14, 2016 at 11:32:37AM -0700, Sergey Kubushyn wrote: >Here is the initial support for writing i.MX6 NAND U-Boot into NAND >with all FCB and DBBT stuff as required. > >Just build U-Boot for NAND as u-boot.imx, load it somehow in RAM and >say "nand bootupdate [addr] [size]".

[U-Boot] [PATCH 2/4] imx6ulevk: fix 74LV OE usage

2016-06-15 Thread Peng Fan
Fix 74LV OE gpio index. gpio index is wrong, so gpio output will not have effect, since we use wrong GPIO5_IO18, but not correct GPIO5_IO8. And at the end of the initialization of 74lv init, should keep OE voltage level at LOW to make 74lv output the correct voltage. Signed-off-by: Peng Fan

[U-Boot] [PATCH 3/4] imx6ulevk: fix LCD_nPWREN setting

2016-06-15 Thread Peng Fan
Q901 is PMOS, LCD_nPWREN should be at low voltage then output is 3V3. If LCD_nPWREN is high, output is 2.4V which is not correct. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> Cc: Fabio Estevam <fabio.este...@nxp.com> --- board/freesca

[U-Boot] [PATCH 4/4] imx: mx6ulevk: change QSPI PAD DSE to 120ohm

2016-06-15 Thread Peng Fan
The current pad DSE for QSPI is 60ohm. This setting cause too strong drive to clock and data signals. Need to change the DSE to 120ohm for better signal quality. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <sba...@denx.de> Cc: Fabio Estevam <fabio.este...@nxp.

[U-Boot] [PATCH] common: add new boot media kconfig entry

2016-06-15 Thread Peng Fan
. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Simon Glass <s...@chromium.org> Cc: Heiko Schocher <h...@denx.de> Cc: Joe Hershberger <joe.hershber...@ni.com> Cc: Bin Meng <bmeng...@gmail.com> Cc: Christophe Ricard <christophe-h.ric...@st.com> Cc: Nikita

[U-Boot] [PATCH V2 2/2] common: add new boot media kconfig entry

2016-06-17 Thread Peng Fan
. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Simon Glass <s...@chromium.org> Cc: Heiko Schocher <h...@denx.de> Cc: Joe Hershberger <joe.hershber...@ni.com> Cc: Bin Meng <bmeng...@gmail.com> Cc: Christophe Ricard <christophe-h.ric...@st.com> Cc: Nikita Kiryanov

[U-Boot] [PATCH V2 1/2] Kconfig: make NOR_BOOT a common option

2016-06-17 Thread Peng Fan
Not only am335x supports booting from NOR, i.MX6 SoCs also supports booting from NOR. Make NOR_BOOT a common option to let different SoCs share it. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Simon Glass <s...@chromium.org> Cc: Heiko Schocher <h...@denx.de> Cc: Joe Hershbe

Re: [U-Boot] [PATCH] ehci: mx7: Fix OTG ID detection

2016-06-19 Thread Peng Fan
Hi Marek, On Sat, Jun 18, 2016 at 12:48:07AM +0200, Marek Vasut wrote: >On 06/17/2016 08:19 AM, Peng Fan wrote: >> From: Ye Li <ye...@nxp.com> >> >> 1. The offset for phy_status register in usbnc_regs is not correct. >> 2. We should clear the USBNC_PHYCFG

Re: [U-Boot] [PATCH V2 2/2] common: add new boot media kconfig entry

2016-06-19 Thread Peng Fan
Hi Masahiro, +Simon On Fri, Jun 17, 2016 at 07:08:23PM +0900, Masahiro Yamada wrote: >2016-06-17 18:39 GMT+09:00 Peng Fan <van.free...@gmail.com>: >> Add CONFIG_{SD|NAND|ONENAND|SPI|QSPI|SATA}_BOOT kconfig entries. >> >> SoCs supports loading U-Boot from different media

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

2016-06-20 Thread Peng Fan
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) *mtd = nand_info[dev->id->num]; ^ " Correct fb_nand_lookup parameter name to fix this issue. Signed-off-by: Peng Fan <peng@

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

2016-06-24 Thread Peng Fan
Hi York, Stefano Any comments on this patch set? Would you kindly pick up this patch set? Thanks, Peng. On Wed, Jun 15, 2016 at 10:53:00AM +0800, 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 >'C

Re: [U-Boot] [PATCH] imx: mx6/7 define CONFIG_SYS_VSNPRINTF

2016-01-13 Thread Peng Fan
Hi Tom, On Wed, Jan 13, 2016 at 02:57:00PM -0500, Tom Rini wrote: >On Tue, Jan 12, 2016 at 05:45:24PM +0800, Peng Fan wrote: > >> From: Peng Fan <peng@nxp.com> >> >> Define CONFIG_SYS_VSNPRINTF to use snprintf. If not define >> CONFIG_SYS_VSNPRINTF

Re: [U-Boot] [PATCH 06/11] imx: imx-common: introduce boot auxiliary core

2016-01-17 Thread Peng Fan
Hi Stefan, Sorry for this late reply. On Wed, Jan 13, 2016 at 12:45:05PM -0800, Stefan Agner wrote: >Hi, > >I would like to keep the discussion going and shed some light on the >image format introduced here, see below... > >On 2016-01-07 00:38, Peng Fan wrote: >> Hi S

Re: [U-Boot] [PATCH 06/11] imx: imx-common: introduce boot auxiliary core

2016-01-17 Thread Peng Fan
Hi Simon, Sorry for this late reply. On Thu, Jan 14, 2016 at 10:17:20AM -0700, Simon Glass wrote: >+Bin > >Hi Peng, > >On 4 January 2016 at 22:56, Peng Fan <van.free...@gmail.com> wrote: >> From: Peng Fan <peng@nxp.com> >> >> To boot a auxiliary c

Re: [U-Boot] [PATCH 1/3] vsprintf.c: Always enable CONFIG_SYS_VSNPRINTF

2016-01-14 Thread Peng Fan
Hi Tom, On Thu, Jan 14, 2016 at 01:02:03PM -0500, Tom Rini wrote: >Enabling this function always removes some class of string saftey issues. >The size change here in general is about 400 bytes and this seems a reasonable >trade-off. > >Cc: Peng Fan <peng@nxp.com> >Cc:

[U-Boot] [PATCH] imx: mx6ulevk: add CONFIG_SPI_FLASH_STMICRO

2016-01-18 Thread Peng Fan
From: Peng Fan <peng@nxp.com> Add CONFIG_SPI_FLASH_STMICRO to let qspi driver can detect the qspi chips. " => sf probe SF: Detected N25Q256 with page size 256 Bytes, erase size 64 KiB, total 32 MiB " Signed-off-by: Peng Fan <peng@nxp.com> Cc: Jagan Teki <jt.

Re: [U-Boot] [PATCH V2 2/2] common: add new boot media kconfig entry

2016-06-28 Thread Peng Fan
Hi Masahiro, On Tue, Jun 28, 2016 at 02:24:00PM +0900, Masahiro Yamada wrote: >Hi. > > >2016-06-28 14:02 GMT+09:00 Peng Fan <van.free...@gmail.com>: >> Hi Tom, >> >> On Fri, Jun 24, 2016 at 06:57:44PM -0400, Tom Rini wrote: >>>On Sun, Jun 19, 2016

Re: [U-Boot] [PATCH V2 2/2] common: add new boot media kconfig entry

2016-06-27 Thread Peng Fan
Hi Tom, On Fri, Jun 24, 2016 at 06:57:44PM -0400, Tom Rini wrote: >On Sun, Jun 19, 2016 at 06:20:52PM +0800, Peng Fan wrote: >> Hi Masahiro, >> >> +Simon >> On Fri, Jun 17, 2016 at 07:08:23PM +0900, Masahiro Yamada wrote: >> >2016-06-17 18:39 GMT+09:00 Peng Fa

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

2016-06-28 Thread Peng Fan
On Fri, Jun 24, 2016 at 03:21:35PM +, york sun wrote: >On 06/24/2016 02:39 AM, Peng Fan wrote: >> Hi York, Stefano >> >> Any comments on this patch set? Would you kindly pick up this patch set? > >Technically Panto is the maintainer of MMC. Since this set is dealin

[U-Boot] [PATCH] cmd: usb: check if_type before using this device

2016-06-17 Thread Peng Fan
For legacy usb storage driver, USB_MAX_STOR_DEV is defined as 7. If we only have one usb disk on board, `usb dev 0` is ok. But if `usb dev 1`, still ok, then `usb read xxx` will trigger system fault and reboot. So check if_type before using this device. Signed-off-by: Peng Fan <peng@nxp.

[U-Boot] [PATCH] ehci: mx7: Fix OTG ID detection

2016-06-17 Thread Peng Fan
ection, because the internal pull up is off. Signed-off-by: Peng Fan <peng@nxp.com> Signed-off-by: Ye Li <ye...@nxp.com> Cc: Marek Vasut <ma...@denx.de> Cc: Mateusz Kulikowski <mateusz.kulikow...@gmail.com> Cc: Stefan Agner <ste...@agner.ch> --- drivers/usb/host/ehci-m

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

2016-06-17 Thread Peng Fan
for DM is not added now. These will be added in future patches. Signed-off-by: Peng Fan <peng@nxp.com> Cc: Marek Vasut <ma...@denx.de> Cc: Mateusz Kulikowski <mateusz.kulikow...@gmail.com> Cc: Stefan Agner <ste...@agner.ch> Cc: Simon Glass <s...@chromium.org> --- dri

Re: [U-Boot] [PATCH] common: add new boot media kconfig entry

2016-06-17 Thread Peng Fan
Hi Joe, On Wed, Jun 15, 2016 at 10:11:39AM -0500, Joe Hershberger wrote: >Hi Peng, > >On Wed, Jun 15, 2016 at 1:15 AM, Peng Fan <van.free...@gmail.com> wrote: >> Add CONFIG_{SD|NOR|NAND|ONENAND|SPI|QSPI|SATA}_BOOT kconfig entries. >> >> SoCs supports loading U-B

Re: [U-Boot] [PATCH] common: add new boot media kconfig entry

2016-06-17 Thread Peng Fan
Hello Heiko, On Wed, Jun 15, 2016 at 05:34:49PM +0200, Heiko Schocher wrote: >Hello Peng, > >Am 15.06.2016 um 08:15 schrieb Peng Fan: >>Add CONFIG_{SD|NOR|NAND|ONENAND|SPI|QSPI|SATA}_BOOT kconfig entries. >> >>SoCs supports loading U-Boot from different medias to DRAM,

[U-Boot] [PATCH V2 1/3] imx: mx7dsabresd: move mmc_get_env_devno to soc code

2016-01-28 Thread Peng Fan
From: Peng Fan <peng@nxp.com> Move mmc_get_env_devno to soc.c and rename to mmc_get_env_dev to match the one in common/env_mmc.c. Introduce a weak function board_mmc_get_env_dev. Different boards can implement this according to sdhc controller which is used by the board. Signed-off-by

[U-Boot] [PATCH V2 3/3] imx: mx6: implement board_mmc_get_env_dev

2016-01-28 Thread Peng Fan
From: Peng Fan <peng@nxp.com> Implement board_mmc_get_env_dev for the boards. Following is examples: SD1/SD2/SD3: return devno; SD2/SD3: return devno - 1; SD2/SD4: if (devno == 2), return dev - 2; return dev - 1; Signed-off-by: Peng Fan <peng@nxp.com> Cc: Stefano Babic <

[U-Boot] [PATCH V2 2/3] imx: mx6: implement mmc_get_env_dev

2016-01-28 Thread Peng Fan
From: Peng Fan <peng@nxp.com> Implement mmc_get_env_dev, devno can be got from smbr1 of SRC. Introduce a weak function board_mmc_get_env_dev, different boards can implement it according to different sdhc controllers that used by the board. Signed-off-by: Peng Fan <peng@nx

[U-Boot] [PATCH V2 04/11] imx: mx7d: Add RDC support

2016-01-28 Thread Peng Fan
From: Peng Fan <peng@nxp.com> Add the peripherals/masters definitions and registers base addresses for mx7d RDC. Signed-off-by: Ye.Li <ye...@nxp.com> Signed-off-by: Peng Fan <peng@nxp.com> --- V2: no change arch/arm/include/asm/arch-mx7/imx-rdc.h | 16 +++ arch/ar

[U-Boot] [PATCH V2 05/11] imx: mx7d: clock support for RDC

2016-01-28 Thread Peng Fan
From: Peng Fan <peng@nxp.com> If CONFIG_IMX_RDC is enabled, enable clock for RDC and SEMAPHORE. Signed-off-by: Peng Fan <peng@nxp.com> --- V2: no change arch/arm/cpu/armv7/mx7/clock.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/cpu/armv7/mx7/clock.

[U-Boot] [PATCH V2 06/11] imx: imx-common: introduce boot auxiliary core

2016-01-28 Thread Peng Fan
From: Peng Fan <peng@nxp.com> To boot a auxiliary core in asymmetric multicore system, introduce the new command "bootaux" to do it. Example of boot auxliary core from 0x7000 where stores the boot head information that should be parsed by auxiliary core, "bootaux 0

[U-Boot] [PATCH V2 09/11] imx: mx7: implement functions to boot auxiliary core

2016-01-28 Thread Peng Fan
From: Peng Fan <peng@nxp.com> Implement arch_auxiliary_core_up and arch_auxiliary_core_check_up. arch_auxiliary_core_check_up is used to check whether M4 is running or not. arch_auxiliary_core_up is to boot M4 core, the m4 core will use the pc and stack which is set in arch_auxiliary_c

[U-Boot] [PATCH V2 07/11] imx: mx6: implement functions to boot auxiliary core

2016-01-28 Thread Peng Fan
From: Peng Fan <peng@nxp.com> Implement arch_auxiliary_core_up and arch_auxiliary_core_check_up. arch_auxiliary_core_check_up is used to check whether M4 is running or not. arch_auxiliary_core_up is to boot M4 core, the m4 core will use the pc and stack which is set in arch_auxiliary_c

[U-Boot] [PATCH V2 08/11] imx: mx6sxsabresd: add command and macros for boot m4 core

2016-01-28 Thread Peng Fan
From: Peng Fan <peng@nxp.com> Introduce macros and command to support booting M4 core for i.MX6SX SabreSD board. Signed-off-by: Ye.Li <ye...@nxp.com> Signed-off-by: Peng Fan <peng@nxp.com> --- V2: no change include/configs/mx6sxsabresd.h | 24 ++

[U-Boot] [PATCH V2 11/11] imx: mx7d: isolate resources to domain 0 for A7 core

2016-01-28 Thread Peng Fan
From: Peng Fan <peng@nxp.com> In current design, if any peripheral was assigned to both A7 and M4, it will receive ipg_stop or ipg_wait when any of the 2 platforms enter low power mode. We will have a risk that, if A7 enter wait, M4 enter stop, peripheral will have chance to get ip

[U-Boot] [PATCH V2 10/11] imx: mx7dsabresd: add command and macros for boot m4 core

2016-01-28 Thread Peng Fan
From: Peng Fan <peng@nxp.com> Introduce macros and command to support booting M4 core for i.MX7D SabreSD board. Signed-off-by: Ye.Li <ye...@nxp.com> Signed-off-by: Peng Fan <peng@nxp.com> --- V2: no change include/configs/mx7dsabresd.h | 24 ++

[U-Boot] [PATCH V2 02/11] imx: imx-common: introduce Resource Domain Controller support

2016-01-28 Thread Peng Fan
From: Peng Fan <peng@nxp.com> Introduce Resource Domain Controller support for i.MX. Now i.MX6SX and i.MX7D supports this feature to assign masters and peripherals to different domains. Signed-off-by: Ye.Li <ye...@nxp.com> Signed-off-by: Peng Fan <peng@nxp.com>

[U-Boot] [PATCH V2 00/11] imx: introduce rdc and boot auxiliary core

2016-01-28 Thread Peng Fan
From: Peng Fan <peng@nxp.com> To i.MX6SX and i.MX7D, there is a M4 core embedded. Resources can be shared or occupied exclusively by setting Resource domain controller between A9/7 core and M4 core. Refer "Chapter 52 Resource Domain Controller (RDC)" of i.MX 6SoloX RM

[U-Boot] [PATCH V2 03/11] imx: mx6sx Add RDC mappings of masters and peripherals

2016-01-28 Thread Peng Fan
From: Peng Fan <peng@nxp.com> Add the definitions for the RDC mappings for i.MX6 SoloX. Signed-off-by: Ye.Li <ye...@nxp.com> Signed-off-by: Peng Fan <peng@nxp.com> --- V2: no change arch/arm/include/asm/arch-mx6/imx-rdc.h | 4 + arch/arm/include/asm/arch-mx6

[U-Boot] [PATCH V2 01/11] imx: mx6: introduce rdc regs

2016-01-28 Thread Peng Fan
From: Peng Fan <peng@nxp.com> Introudce rdc regs structure and rdc sema reg structure for i.MX6. For now, to i.MX6, only i.MX6SX supports this. Signed-off-by: Ye.Li <ye...@nxp.com> Signed-off-by: Peng Fan <peng@nxp.com> --- V2: no change arch/arm/include/asm/arch-m

Re: [U-Boot] [PATCH] fdt: introudce fdt_get_child_count

2016-01-31 Thread Peng Fan
Hi Simon, On Sun, Jan 31, 2016 at 08:37:45AM -0700, Simon Glass wrote: >Hi Peng, > >On 30 January 2016 at 23:38, Peng Fan <van.free...@gmail.com> wrote: >> Introudce fdt_get_child_count for get the number of subnodes of >> one parent node. >> >> Signed-

[U-Boot] [PATCH 1/2] pinctrl: imx: Introduce pinctrl driver for i.MX6

2016-01-31 Thread Peng Fan
0x3bc val 0x7f mux_reg 0x148, conf_reg 0x3b8, input_reg 0x5d4, mux_mode 0x0, input_val 0x1, config_val 0x407f write mux: offset 0x148 val 0x10 select_input: offset 0x5d4 val 0x1 write config: offset 0x3b8 val 0x7f " this means imx6 pinctrl driver works as expected

[U-Boot] [PATCH 2/2] pinctrl: imx: Support i.MX7D

2016-01-31 Thread Peng Fan
Introudce i.MX7 pinctrl driver support. For now only i.MX7D supported. There are two iomux controllers in i.MX7D, iomuxc and iomuxc_lpsr. To iomuxc_lpsr, ZERO_OFFSET_VALID is set, means offset of mux_reg and conf_reg can begin at 0. Signed-off-by: Peng Fan <van.free...@gmail.com> Cc: Simon

[U-Boot] [PATCH V2] fdt: introduce fdtdec_get_child_count

2016-01-31 Thread Peng Fan
Introduce fdtdec_get_child_count for get the number of subnodes of one parent node. Signed-off-by: Peng Fan <van.free...@gmail.com> Cc: Simon Glass <s...@chromium.org> --- V2: correct spell error. renamed to fdtdec_get_child_count, move code to lib/fdtdec.c and add prototyp

[U-Boot] [PATCH V2] arm: config: enforce -fno-pic for gcc

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

Re: [U-Boot] [PATCH v2] arm: imx: Add support for GE Bx50v3 boards

2016-01-29 Thread Peng Fan
and OpenVG 1.1 > HDMI, 24-bit LVDS > 1x UART, 2x I2C, 8x GPIO, > 4x Host USB 2.0 port, 1x USB OTG port, > 1x micro SD (SDHC),1x SDIO, 1x SATA II, > 1x 10/100/1000 Mbps Ethernet, 1x PCIe X1 Gen2 > >Signed-off-by: Akshay Bhat <akshay.b..

[U-Boot] [PATCH V2] imx: MX6DQ{P}/DL:SABRESD Fix bmode eMMC failure

2016-01-29 Thread Peng Fan
From: Ye Li <ye...@nxp.com> The BOOTCFG value used by bmode for SABRESD eMMC boot are actually for SD card. Fixed the value to correct one. Signed-off-by: Ye Li <ye...@nxp.com> Signed-off-by: Peng Fan <peng@nxp.com> Reviewed-by: Stefano Babic <sba...@denx.de> Cc: F

[U-Boot] [PATCH] fdt: introudce fdt_get_child_count

2016-01-30 Thread Peng Fan
Introudce fdt_get_child_count for get the number of subnodes of one parent node. Signed-off-by: Peng Fan <van.free...@gmail.com> Cc: Simon Glass <s...@chromium.org> --- include/libfdt.h | 18 ++ 1 file changed, 18 insertions(+) diff --git a/include/libfdt.h b/incl

Re: [U-Boot] [PATCH 2/2] pinctrl: imx: Support i.MX7D

2016-02-02 Thread Peng Fan
Hi Simon, On Mon, Feb 01, 2016 at 05:05:18PM -0700, Simon Glass wrote: >Hi Peng, > >On 31 January 2016 at 22:38, Peng Fan <van.free...@gmail.com> wrote: >> Introudce i.MX7 pinctrl driver support. >> For now only i.MX7D supported. >> There are two io

Re: [U-Boot] [PATCH 1/2] pinctrl: imx: Introduce pinctrl driver for i.MX6

2016-02-02 Thread Peng Fan
Hi Simon, On Mon, Feb 01, 2016 at 05:05:05PM -0700, Simon Glass wrote: >Hi Peng, > >On 31 January 2016 at 22:38, Peng Fan <van.free...@gmail.com> wrote: >> Introduce pinctrl for i.MX6 >> 1. pinctrl-imx.c is for common usage. It's used by i.MX6/7. >> 2. Add PINCT

Re: [U-Boot] [PATCH V2 2/4] common: env_mmc: support loading env from different cards

2016-02-02 Thread Peng Fan
Hi Stefano, On Tue, Feb 02, 2016 at 08:46:09PM +0100, Stefano Babic wrote: >Hi Peng, > >On 17/12/2015 05:43, Peng Fan wrote: >> Some boards support booting from different SD card slots. >> For example, mx6dpsabresd board supports booting from SD2, >> SD3, EMMC4,

[U-Boot] [PATCH V2 1/2] pinctrl: imx: Introduce pinctrl driver for i.MX6

2016-02-02 Thread Peng Fan
0x3bc val 0x7f mux_reg 0x148, conf_reg 0x3b8, input_reg 0x5d4, mux_mode 0x0, input_val 0x1, config_val 0x407f write mux: offset 0x148 val 0x10 select_input: offset 0x5d4 val 0x1 write config: offset 0x3b8 val 0x7f " this means imx6 pinctrl driver works as expected

[U-Boot] [PATCH V2 2/2] pinctrl: imx: Support i.MX7D

2016-02-02 Thread Peng Fan
Introudce i.MX7 pinctrl driver support. For now only i.MX7D supported. There are two iomux controllers in i.MX7D, iomuxc and iomuxc_lpsr. To iomuxc_lpsr, ZERO_OFFSET_VALID is set, means offset of mux_reg and conf_reg can begin at 0. Signed-off-by: Peng Fan <van.free...@gmail.com> Re

Re: [U-Boot] ARMv8: Use U-Boot to boot Xen?

2016-01-28 Thread Peng Fan
Hi Dirk, Cc Ian xen experts. On Thu, Jan 28, 2016 at 08:06:30PM +0100, Dirk Behme wrote: >Hi, > >are there any U-Boot examples/patches to boot Xen on an ARMv8/aarch64 system? > >I've found > >http://lists.denx.de/pipermail/u-boot/2015-October/230077.html > >what might be helpful. > >But maybe I

Re: [U-Boot] [PATCH v1] arm: imx: Add support for GE Bx50v3 boards

2016-01-28 Thread Peng Fan
Hi Akshay, CC i.MX maintainer Stefano for you. On Wed, Jan 27, 2016 at 05:53:47PM -0500, Akshay Bhat wrote: >Add support for GE B450v3, B650v3 and B850v3 boards. The boards >are based on Advantech BA16 module which has a imx6 processor. Which imx6 processor? >The boards support: > - FEC

[U-Boot] [PATCH] imx: MX6DQ{P}/DL:SABRESD Fix bmode eMMC failure

2016-01-28 Thread Peng Fan
From: Ye Li <ye...@nxp.com> The BOOTCFG value used by bmode for SABRESD eMMC boot are actually for SD card. Fixed the value to correct one. The issue was fixed in 2014.04 u-boot, but that patch seems missed during porting to 2015.04. Signed-off-by: Ye Li <ye...@nxp.com> Signed-off-

Re: [U-Boot] [PATCH] mx7: Distinguish between dual and solo versions

2016-02-28 Thread Peng Fan
/cpu.h >index 8a75902..7c63c13 100644 >--- a/arch/arm/include/asm/arch-imx/cpu.h >+++ b/arch/arm/include/asm/arch-imx/cpu.h >@@ -21,6 +21,7 @@ > #define MXC_CPU_MX6D 0x67 > #define MXC_CPU_MX6DP 0x68 > #define MXC_CPU_MX6QP 0x69 >+#define MXC_CPU_MX7S

Re: [U-Boot] [PATCH 1/2] mx7_common: Put early/late init configs into board file

2016-02-28 Thread Peng Fan
d.h >@@ -14,6 +14,9 @@ > #define CONFIG_DBG_MONITOR > #define PHYS_SDRAM_SIZE SZ_1G > >+#define CONFIG_BOARD_EARLY_INIT_F >+#define CONFIG_BOARD_LATE_INIT >+ > /* Uncomment to enable secure boot support */ > /* #define

Re: [U-Boot] [PATCH 2/2] warp7: Add initial support

2016-02-28 Thread Peng Fan
TACKSIZE SZ_128K >+ >+/* Physical Memory Map */ >+#define CONFIG_NR_DRAM_BANKS 1 >+#define PHYS_SDRAM MMDC0_ARB_BASE_ADDR >+ >+#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM >+#define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR >+#

Re: [U-Boot] Olimex-A20-EVB ethernet stops working with latest U-boot, works with tag v2016.01

2016-02-24 Thread Peng Fan
Hi Damiano, Can you try revert the following patch and retest on your board? " commit a058052c358c3ecf5f394ff37def6a45eb26768c Author: Stefan Agner Date: Wed Dec 9 11:21:25 2015 -0800 net: phy: do not read configuration register on reset When doing a software

Re: [U-Boot] [PATCH] nand: mxs: fix error handling for mxs_nand_init

2016-01-25 Thread Peng Fan
Hi Scott, Gentle ping.. it's a few weeks since patch sent out. Thanks, Peng. On Sat, Jan 09, 2016 at 09:23:53PM +0800, Peng Fan wrote: >From: Peng Fan <peng@nxp.com> > >Fix error handling for mxs_nand_init. > >The original error handling is wrong for err2 and err1. >

Re: [U-Boot] env_mmc: support overriding mmc dev from board code

2016-01-25 Thread Peng Fan
On Mon, Jan 25, 2016 at 04:28:55PM -0500, Tom Rini wrote: >On Wed, Jan 20, 2016 at 03:43:37PM +0100, Clemens Gruber wrote: > >> This enables boards to choose where to/from the environment should be >> saved/loaded. They can then for example support using the same device >> (dynamically) from which

Re: [U-Boot] [PATCH 3/4] spi: omap3: Convert to DM

2016-01-25 Thread Peng Fan
Hi Simon, On Mon, Jan 25, 2016 at 06:11:24PM -0700, Simon Glass wrote: >+Hans > >Hi Tom, > >On 21 January 2016 at 05:24, Tom Rini wrote: >> On Wed, Jan 20, 2016 at 07:46:15PM -0700, Simon Glass wrote: >>> +Mugunthan, Tom >>> >>> On 17 January 2016 at 03:56, Christophe Ricard

Re: [U-Boot] [PATCH] fsl_qspi: fix address mask issue

2016-01-19 Thread Peng Fan
@@ -25,7 +25,7 @@ DECLARE_GLOBAL_DATA_PTR; > #define TX_BUFFER_SIZE0x40 > #endif > >-#define OFFSET_BITS_MASK GENMASK(24, 0) >+#define OFFSET_BITS_MASK GENMASK(23, 0) > > #define FLASH_STATUS_WEL 0x02 Reviewed-by: Peng Fan <peng@nxp.com> >

Re: [U-Boot] [PATCH 1/2] mx6: soc: Add ENET2 mac address support

2016-01-19 Thread Peng Fan
On Tue, Jan 19, 2016 at 09:16:35PM +0800, Ye Li wrote: >The i.MX6SX and i.MX6UL has two ENET controllers, add support for reading >MAC address from fuse for ENET2. > >Signed-off-by: Ye Li <ye...@nxp.com> Reviewed-by: Peng Fan <peng@nxp.com> >--- >

Re: [U-Boot] [PATCH 2/2] imx: mx6sxsabreauto: Add support for mx6sx SABREAUTO board

2016-01-19 Thread Peng Fan
On Tue, Jan 19, 2016 at 09:16:36PM +0800, Ye Li wrote: >Initial version for mx6sx SABREAUTO board support with features: >PMIC, QSPI, NAND flash, SD/MMC, USB, Ethernet, I2C, IO Expander. > >Signed-off-by: Ye Li <ye...@nxp.com> Tested-by: Peng Fan <peng@nxp.com> >-

Re: [U-Boot] [PATCH V2] net: bootp: Ignore packets whose yiaddr is 0

2016-01-24 Thread Peng Fan
Gentle ping.. Regards, Peng. On Thu, Jan 07, 2016 at 05:09:04PM +0100, Wolfgang Denk wrote: >Dear Peng Fan, > >In message <1452151703-30647-1-git-send-email-van.free...@gmail.com> you wrote: >> From: Peng Fan <peng@nxp.com> >> >> When doing `dhcp`, t

Re: [U-Boot] [PATCH] imx: mx6sxsabresd: support emmc

2016-01-24 Thread Peng Fan
Hi Stefano, On Sun, Jan 24, 2016 at 12:07:14PM +0100, Stefano Babic wrote: >Hi Peng, > >On 23/12/2015 04:10, Peng Fan wrote: >> Hi Otavio, >> On Tue, Dec 22, 2015 at 09:51:37AM -0200, Otavio Salvador wrote: >>> On Tue, Dec 22, 2015 at 7:03 AM, Peng Fan <van.fr

Re: [U-Boot] [PATCH] mmc: add missing prototype for mmc_get_env_dev

2016-01-26 Thread Peng Fan
it(void); > int board_mmc_init(bd_t *bis); > int cpu_mmc_init(bd_t *bis); > int mmc_get_env_addr(struct mmc *mmc, int copy, u32 *env_addr); >+int mmc_get_env_dev(void); > > struct pci_device_id; Reviewed-by: Peng Fan <peng@nxp.com> > >-- >2.7.0

[U-Boot] [patch resend] nand: mxs: fix error handling for mxs_nand_init

2016-01-26 Thread Peng Fan
stevam <fabio.este...@freescale.com> Cc: Scott Wood <scottw...@freescale.com> Cc: Marek Vasut <ma...@denx.de> Signed-off-by: Peng Fan <van.free...@gmail.com> --- drivers/mtd/nand/mxs_nand.c | 24 +++- 1 file changed, 15 insertions(+), 9 deletions(-)

Re: [U-Boot] [PATCH 3/4] spi: omap3: Convert to DM

2016-01-26 Thread Peng Fan
On Tue, Jan 26, 2016 at 10:12:10AM -0500, Tom Rini wrote: >On Tue, Jan 26, 2016 at 10:58:47AM +0800, Peng Fan wrote: >> On Mon, Jan 25, 2016 at 09:45:47PM -0500, Tom Rini wrote: >> >On Tue, Jan 26, 2016 at 09:55:43AM +0800, Peng Fan wrote: >> >> Hi Simon, >> >

Re: [U-Boot] env_mmc: support overriding mmc dev from board code

2016-01-25 Thread Peng Fan
On Mon, Jan 25, 2016 at 09:13:00PM -0500, Tom Rini wrote: >On Tue, Jan 26, 2016 at 09:42:38AM +0800, Peng Fan wrote: >> On Mon, Jan 25, 2016 at 04:28:55PM -0500, Tom Rini wrote: >> >On Wed, Jan 20, 2016 at 03:43:37PM +0100, Clemens Gruber wrote: >> > >> >&

Re: [U-Boot] [PATCH 3/4] spi: omap3: Convert to DM

2016-01-25 Thread Peng Fan
On Mon, Jan 25, 2016 at 09:45:47PM -0500, Tom Rini wrote: >On Tue, Jan 26, 2016 at 09:55:43AM +0800, Peng Fan wrote: >> Hi Simon, >> >> On Mon, Jan 25, 2016 at 06:11:24PM -0700, Simon Glass wrote: >> >+Hans >> > >> >Hi Tom, >> > >> &g

Re: [U-Boot] [PATCH V2 1/2] pinctrl: imx: Introduce pinctrl driver for i.MX6

2016-02-15 Thread Peng Fan
Hi Simon, Gentle ping.. Thanks, Peng. On Wed, Feb 03, 2016 at 10:06:07AM +0800, Peng Fan wrote: >Introduce pinctrl for i.MX6 >1. pinctrl-imx.c is for common usage. It's used by i.MX6/7. >2. Add PINCTRL_IMX PINCTRL_IMX6 Kconfig entry. >3. To the pinctrl_ops implementation, on

Re: [U-Boot] [PATCH V2 1/2] pinctrl: imx: Introduce pinctrl driver for i.MX6

2016-02-16 Thread Peng Fan
Hi Simon, On Tue, Feb 16, 2016 at 09:00:55AM -0700, Simon Glass wrote: >Hi Peng, > >On 15 February 2016 at 01:33, Peng Fan <van.free...@gmail.com> wrote: >> Hi Simon, >> >> Gentle ping.. > >Do you mean Stefan? I reviewed the previous so did not think i

Re: [U-Boot] [PATCH V2 1/2] pinctrl: imx: Introduce pinctrl driver for i.MX6

2016-02-16 Thread Peng Fan
Hi Simon, On Tue, Feb 16, 2016 at 07:50:25PM -0700, Simon Glass wrote: >Hi Peng, > >On 16 February 2016 at 19:45, Peng Fan <van.free...@gmail.com> wrote: >> Hi Simon, >> >> On Tue, Feb 16, 2016 at 09:00:55AM -0700, Simon Glass wrote: >>>Hi Peng, >

Re: [U-Boot] [PATCH] mx6ul_14x14_evk: Select CONFIG_FSL_QSPI

2016-02-17 Thread Peng Fan
;--- a/include/configs/mx6ul_14x14_evk.h >+++ b/include/configs/mx6ul_14x14_evk.h >@@ -195,6 +195,7 @@ > #define CONFIG_CMD_CACHE > #endif > >+#define CONFIG_FSL_QSPI > #ifdef CONFIG_FSL_QSPI > #define CONFIG_CMD_SF > #define CONFIG_SPI_FLASH Reviewed-by: Peng Fan <peng@nx

Re: [U-Boot] [PATCH] MAINTAINERS: Update Peng Fan's email address

2016-02-21 Thread Peng Fan
abreauto/MAINTAINERS >index 687f68c..f148dac 100644 >--- a/board/freescale/mx6qsabreauto/MAINTAINERS >+++ b/board/freescale/mx6qsabreauto/MAINTAINERS >@@ -1,6 +1,6 @@ > MX6QSABREAUTO BOARD > M:Fabio Estevam <fabio.este...@nxp.com> >-M:Peng Fan <peng@freescale.co

[U-Boot] [PATCH 1/2] fsl: esdhc: consolidate fsl_esdhc_cfg structure

2016-03-10 Thread Peng Fan
We can use phys_addr_to for esdhc_base to discard the #ifdef. Signed-off-by: Peng Fan <van.free...@gmail.com> Cc: York Sun <york@nxp.com> Cc: Yangbo Lu <yangbo...@nxp.com> Cc: Hector Palacios <hector.palac...@digi.com> Cc: Eric Nelson <e...@nelint.com> Cc: Ste

[U-Boot] [PATCH 2/2] fsl: esdhc: support driver model

2016-03-10 Thread Peng Fan
: " =>dm tree simple_bus [ + ]| `-- aips-bus@0210 mmc[ + ]| |-- usdhc@0219 mmc[ + ]| |-- usdhc@02194000 => mmc list FSL_SDHC: 0 (SD) FSL_SDHC: 1 (SD) " Signed-off-by: Peng Fan <van.free...@gmail.com> Cc: York Sun <y

Re: [U-Boot] [PATCH 1/2] dm: gpio: mxc: fix mxc_gpio_bank_get_value

2016-03-18 Thread Peng Fan
On Wed, Mar 16, 2016 at 09:48:24AM -0300, Fabio Estevam wrote: >Hi Peng, > >On Tue, Mar 15, 2016 at 10:27 PM, Peng Fan <van.free...@gmail.com> wrote: > >> If set the SION bit, we need to change the pinmux settings in device tree, >> however device tree are introdu

Re: [U-Boot] Problems with D-cache invalidation in Freescale eSDHC driver

2016-03-18 Thread Peng Fan
Hi Mario, On Fri, Mar 18, 2016 at 09:16:48AM +0100, mario@gdsys.cc wrote: > >Hello, > >I've been working on a QorIQ P1022 board (controlcenterd) to run the newest >U-Boot on it, and I encountered some strange behavior. > >During boot, we get these error messages > >" >ERROR: Cannot import

Re: [U-Boot] [PATCH 1/2] dm: gpio: mxc: fix mxc_gpio_bank_get_value

2016-03-15 Thread Peng Fan
Hi Fabio, On Tue, Mar 15, 2016 at 09:53:15AM -0300, Fabio Estevam wrote: >On Tue, Mar 15, 2016 at 2:48 AM, Peng Fan <van.free...@gmail.com> wrote: >> When configured a gpio to output direction, directly reading PSR register >> can not return the output value, since we

[U-Boot] [RFC 2/2] dm: mmc: implement pwrup function

2016-03-15 Thread Peng Fan
in-suspend; enable-sdio-wakeup; vmmc-supply = <_sd1_vmmc>; status = "okay"; }; " Signed-off-by: Peng Fan <van.free...@gmail.com> Cc: Pantelis Antoniou <pa...@antoniou-consulting.com> Cc: Simon Glass <s...@chromium.org> Cc: Eric Nelson <e..

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

2016-03-15 Thread Peng Fan
. Then if pwrup hook functions have been implemented for different mmc drivers, pwrup will be invoked. Signed-off-by: Peng Fan <van.free...@gmail.com> Cc: Pantelis Antoniou <pa...@antoniou-consulting.com> Cc: Andrew Gabbasov <andrew_gabba...@mentor.com> Cc: Simon Glass <s...@chromium.or

Re: [U-Boot] fdt problem

2016-03-18 Thread Peng Fan
x [0x10]", then "fdt resize", then "mknode" Regards, Peng. > >On Tue, Mar 15, 2016 at 6:34 AM, Peng Fan <van.free...@gmail.com> wrote: > >Hi Safa, > >Cc Xen experts, Ian. > >On Mon, Mar 14, 2016 at 10:21:15AM +0100, Safa Hamz

[U-Boot] [PATCH] dm: i2c: mxc_i2c: implement i2c_idle_bus

2016-03-11 Thread Peng Fan
2c1_gpio: i2c1grp_gpio { fsl,pins = < MX6UL_PAD_UART4_TX_DATA__GPIO1_IO28 0x1b8b0 MX6UL_PAD_UART4_RX_DATA__GPIO1_IO29 0x1b8b0 >; }; " Signed-off-by: Peng Fan <van.free...@gmail.com> Cc: Albert Aribaud <albert.u.b...@aribaud.net> Cc: Stefano Ba

[U-Boot] [PATCH] dm: core: device: set pinctrl state for pinctrl device

2016-03-11 Thread Peng Fan
rocess of pinctrl device, select the default state of pinctrl device. Signed-off-by: Peng Fan <van.free...@gmail.com> Cc: Simon Glass <s...@chromium.org> --- drivers/core/device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/core/device.c b/drivers/core/device.c inde

[U-Boot] [PATCH] power: regulator: fixed: set gpio direction before set value

2016-03-11 Thread Peng Fan
Before set value for a gpio, need to set its direction to output first. Signed-off-by: Peng Fan <van.free...@gmail.com> Cc: Przemyslaw Marczak <p.marc...@samsung.com> Cc: Simon Glass <s...@chromium.org> --- drivers/power/regulator/fixed.c | 5 + 1 file changed, 5 inserti

Re: [U-Boot] [PATCH 2/2] fsl: esdhc: support driver model

2016-03-11 Thread Peng Fan
Hi Simon, On Fri, Mar 11, 2016 at 05:33:05PM -0700, Simon Glass wrote: >Hi Peng, > >On 10 March 2016 at 01:57, Peng Fan <van.free...@gmail.com> wrote: >> Support Driver Model for fsl esdhc driver. >> >> In order to minimize the change, reuse the fsl_esdhc_ini

[U-Boot] [PATCH V2] fsl: esdhc: consolidate fsl_esdhc_cfg structure

2016-03-15 Thread Peng Fan
We can use phys_addr_to for esdhc_base to discard the #ifdef. Signed-off-by: Peng Fan <van.free...@gmail.com> Cc: York Sun <york@nxp.com> Cc: Yangbo Lu <yangbo...@nxp.com> Cc: Eric Nelson <e...@nelint.com> Cc: Fabio Estevam <fabio.este...@nxp.com> Cc: Pan

[U-Boot] [PATCH V2] fsl: esdhc: support driver model

2016-03-15 Thread Peng Fan
SL_SDHC: 1 (SD) " Signed-off-by: Peng Fan <van.free...@gmail.com> Cc: York Sun <york@nxp.com> Cc: Yangbo Lu <yangbo...@nxp.com> Cc: Hector Palacios <hector.palac...@digi.com> Cc: Eric Nelson <e...@nelint.com> Cc: Stefano Babic <sba...@denx.de> Cc: Fabio Es

[U-Boot] [PATCH 3/3] imx: mx6ul_evk: convert to use Driver model for power and i2c

2016-03-08 Thread Peng Fan
-common/i2c-mxv7.c. Later we may need to find out a way to refine this. To avoid SPL build warning, disable i2c-mxc driver for SPL part. Signed-off-by: Peng Fan <van.free...@gmail.com> Cc: Stefano Babic <sba...@denx.de> Cc: Fabio Estevam <fabio.este...@nxp.com> --- board/freesca

[U-Boot] [PATCH 2/3] imx: mx6ul_evk: default enable device tree support

2016-03-08 Thread Peng Fan
Default enable device tree for mx6ul_14x14_evk and mx6ul_9x9_evk board. And sort the defconfig file to be in alphabet order. Enable pinctrl driver for the two boards. Signed-off-by: Peng Fan <van.free...@gmail.com> Cc: Stefano Babic <sba...@denx.de> Cc: Fabio Estevam <fabio.

[U-Boot] [PATCH 0/3] imx6ul: convert to enable pinctrl/DM POWER

2016-03-08 Thread Peng Fan
settings are still needed in board file, because there are some dependency in arch/arm/imx-common/i2c-mxv7.c. In future, we may need to refine this to totally let i2c driver handle this. Peng Fan (3): imx: imx6ul: Introduce device tree files imx: mx6ul_evk: default enable device tree support imx

Re: [U-Boot] [PATCH] power: regulator: fixed: set gpio direction before set value

2016-03-13 Thread Peng Fan
Hi Simon, On Sat, Mar 12, 2016 at 07:51:51PM -0700, Simon Glass wrote: >Hi Peng, > >On 11 March 2016 at 22:19, Peng Fan <van.free...@gmail.com> wrote: >> Before set value for a gpio, need to set its direction to >> output first. >> >> Signed-off-by:

Re: [U-Boot] [PATCH 2/2] fsl: esdhc: support driver model

2016-03-13 Thread Peng Fan
Hi Simon, On Sat, Mar 12, 2016 at 07:51:53PM -0700, Simon Glass wrote: >Hi Peng, > >On 11 March 2016 at 21:21, Peng Fan <van.free...@gmail.com> wrote: >> Hi Simon, >> >> On Fri, Mar 11, 2016 at 05:33:05PM -0700, Simon Glass wrote: >>>Hi Peng, >>&g

Re: [U-Boot] [PATCH 2/3] imx: mx6ul_evk: default enable device tree support

2016-03-09 Thread Peng Fan
Hi Fabio, On Wed, Mar 09, 2016 at 08:48:40AM -0300, Fabio Estevam wrote: >Hi Peng, > >On Wed, Mar 9, 2016 at 3:01 AM, Peng Fan <van.free...@gmail.com> wrote: >> Default enable device tree for mx6ul_14x14_evk and >> mx6ul_9x9_evk board. And sort the defconfig file

Re: [U-Boot] fdt problem

2016-03-14 Thread Peng Fan
Hi Safa, Cc Xen experts, Ian. On Mon, Mar 14, 2016 at 10:21:15AM +0100, Safa Hamza wrote: >i'm trying to run xen on omap5 ..but i get a problem while doing this >libfdt fdt_setprop(): FDT_ERR_NOSPACE > >**

[U-Boot] [PATCH 2/2] dm: gpio: mxc: implement xlate function

2016-03-14 Thread Peng Fan
To i.MX controller, we use such as "< 3 GPIO_ACTIVE_LOW>" for a device to refer a gpio pin in device tree. So need to implement xlate function, to correctly handle gpio flags and offset. Signed-off-by: Peng Fan <van.free...@gmail.com> Cc: Simon Glass <s...@chromium.or

[U-Boot] [PATCH 1/2] dm: gpio: mxc: fix mxc_gpio_bank_get_value

2016-03-14 Thread Peng Fan
"regulator enable": " => regulator enable => regulator status Regulator VSD_3V3 status: * enable: 0 (false) * value uV: 330 * current uA: No data available (err: -61) * mode id:Function not implemented (err: -38) " Signed-off-by: Peng Fan <

<    3   4   5   6   7   8   9   10   11   12   >