[PATCH V2 00/17] usb: gadget: update

2021-01-25 Thread peng . fan
From: Peng Fan V2: Fix imx6dl_mamoj size SPL exceeded issue V1: This patchset is to upstream NXP downstream gadget driver patches for feature update. Jun Li (2): usb: gadget: set correct usb_configuration for os_desc_config usb: gadget: update os_desc_config when add config Li Jun (13

[PATCH V2 01/17] usb: gadget: Add ep_config call back to usb_gadget_ops

2021-01-25 Thread peng . fan
know the EP information and configure the EP once the set configuration request is received. Signed-off-by: Sherry Sun Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/usb/gadget/epautoconf.c | 4 include/linux/usb/gadget.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a

[PATCH V2 02/17] usb: gadget: don't change ep name for dwc3 while ep autoconfig

2021-01-25 Thread peng . fan
From: Li Jun As the SDP protocol use the predefined ep num for communication, we can't change its name hence reset its ep num while do ep autoconfig, this is only apply for SPL. Signed-off-by: Li Jun Signed-off-by: Peng Fan --- drivers/usb/gadget/epautoconf.c | 2 ++ 1 file chang

[PATCH V2 03/17] usb: gadget: OS String support

2021-01-25 Thread peng . fan
on the qw_sign array and b_vendor_code. Interested gadgets need to set the cdev->use_os_string flag, fill cdev->qw_sign with appropriate values and fill cdev->b_vendor_code with a value of their choice. This patch does not however implement responding to any vendor-specific USB requests.&q

[PATCH V2 04/17] usb: gadget: move utf8_to_utf16le to header file

2021-01-25 Thread peng . fan
From: Li Jun As other users may use utf8_to_utf16le() to convert the utf8 to utf16 for usb, so move it to head file. Signed-off-by: Li Jun Signed-off-by: Peng Fan --- drivers/usb/gadget/usbstring.c | 74 + include/linux/utf.h| 75

[PATCH V2 05/17] usb: gadget: add Kconfig for OS descriptors

2021-01-25 Thread peng . fan
From: Peng Fan Add Kconfig for OS descriptors Signed-off-by: Peng Fan --- drivers/usb/gadget/Kconfig | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index 7c0df5c264..4a3b22e6de 100644 --- a/drivers/usb/gadget/Kconfig +++ b

[PATCH V2 06/17] usb: gadget: OS Feature Descriptors support

2021-01-25 Thread peng . fan
used with such non-USB-compliant hosts it can invoke "usb_add_config" in any order because the designated configuration will be reported to be at index 0 anyway. This patch also adds handling vendor-specific requests addressed at device or interface and

[PATCH V2 08/17] usb: gadget: fastboot: add ext properties for WCID

2021-01-25 Thread peng . fan
From: Li Jun Add device interface GUID for Microsoft Extended Properties Feature Descriptor. Signed-off-by: Li Jun Signed-off-by: Peng Fan --- drivers/usb/gadget/f_fastboot.c | 34 + 1 file changed, 34 insertions(+) diff --git a/drivers/usb/gadget

[PATCH V2 07/17] usb: gadget: add WCID support for mfgtool

2021-01-25 Thread peng . fan
From: Li Jun Enable WCID(Microsoft Compatible ID Feature Descriptor) for mfgtool. Signed-off-by: Li Jun Signed-off-by: Peng Fan --- drivers/usb/gadget/composite.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget

[PATCH V2 09/17] usb: gadget: set correct usb_configuration for os_desc_config

2021-01-25 Thread peng . fan
ter Chen Signed-off-by: Peng Fan --- drivers/usb/gadget/composite.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c index cd61bfec38..e6fdefd3d0 100644 --- a/drivers/usb/gadget/composite.c +++ b/drivers/

[PATCH V2 10/17] usb: gadget: update os_desc_config when add config

2021-01-25 Thread peng . fan
From: Jun Li Always use the new added config for os_desc_config to fix cdev-> os_desc_config may miss set in case we restart usb gadget driver. Signed-off-by: Li Jun Signed-off-by: Peng Fan --- drivers/usb/gadget/composite.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) d

[PATCH V2 11/17] usb: gadget: add super speed support

2021-01-25 Thread peng . fan
From: Li Jun This patch is to add usb gadget super speed support in common driver, including BOS descriptor and select the super speed descriptor from function driver. Reviewed-by: Ye Li Reviewed-by: Peter Chen Tested-by: faqiang.zhu Signed-off-by: Li Jun Signed-off-by: Peng Fan

[PATCH V2 12/17] usb: fastboot: add super speed support

2021-01-25 Thread peng . fan
From: Li Jun Add super speed EP config. Reviewed-by: Ye Li Reviewed-by: Peter Chen Tested-by: faqiang.zhu Signed-off-by: Li Jun Signed-off-by: Peng Fan --- drivers/usb/gadget/f_fastboot.c | 47 ++--- 1 file changed, 44 insertions(+), 3 deletions(-) diff --git

[PATCH V2 13/17] usb: gadget: dnl: set dnl to be super speed

2021-01-25 Thread peng . fan
From: Li Jun Set its max_speed to be super speed. Reviewed-by: Ye Li Reviewed-by: Peter Chen Tested-by: faqiang.zhu Signed-off-by: Li Jun Signed-off-by: Peng Fan --- drivers/usb/gadget/g_dnl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/g_dnl.c b/drivers/usb

[PATCH V2 14/17] usb: composite: force gadget to be USB2 for HS only function

2021-01-25 Thread peng . fan
USB 2.0 mode. Reviewed-by: Ye Li Reviewed-by: Peter Chen Tested-by: faqiang.zhu Signed-off-by: Li Jun Signed-off-by: Peng Fan --- drivers/usb/gadget/composite.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c

[PATCH V2 15/17] usb: udc: ci: update speed handling

2021-01-25 Thread peng . fan
From: Li Jun Remove the gadget driver speed check, and set its max_speed to be USB_SPEED_HIGH. Reviewed-by: Ye Li Reviewed-by: Peter Chen Tested-by: faqiang.zhu Signed-off-by: Li Jun Signed-off-by: Peng Fan --- drivers/usb/gadget/ci_udc.c | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH V2 16/17] usb: gadget: fastboot: use correct max packet size

2021-01-25 Thread peng . fan
From: Li Jun Change to use wMaxPacketSize of current speed EP desc for request length wrap up. Reviewed-by: Peter Chen Signed-off-by: Li Jun Signed-off-by: Peng Fan --- drivers/usb/gadget/f_fastboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget

[PATCH V2 17/17] usb: gaget: ci: set ep's desc when enable ep

2021-01-25 Thread peng . fan
From: Li Jun As we need standard usb_ep's desc, so set it when enable ep. Reviewed-by: Peter Chen Signed-off-by: Li Jun Signed-off-by: Peng Fan --- drivers/usb/gadget/ci_udc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/gadget/ci_udc.c b/drivers/usb/gadget/ci_

RE: [PATCH v3] mmc: mmc_spi: Print verbose debug output when crc16 check fails

2021-02-07 Thread Peng Fan
> Subject: Re: [PATCH v3] mmc: mmc_spi: Print verbose debug output when > crc16 check fails > > On Tue, Feb 2, 2021 at 10:32 AM Bin Meng wrote: > > > > Add some verbose debug output when crc16 check fails. > > > > Signed-off-by: Bin Meng > > Reviewed-by: Jaehoon Chung > > > > --- > > > > Change

RE: [PATCH V2 10/46] arm: imx8ulp: add container support

2021-07-18 Thread Peng Fan
Hi Stefano, > Subject: Re: [PATCH V2 10/46] arm: imx8ulp: add container support > > Hi peng, Ye, > > On 29.06.21 04:32, Peng Fan (OSS) wrote: > > From: Ye Li > > > > i.MX8ULP support using ROM API to load container image, it use same > > ROM API as i.MX8

Re: Pull request: u-boot-imx u-boot-imx-20210720

2021-07-21 Thread Peng Fan
.ms/o0ukef> 发件人: Stefano Babic 发送时间: 星期三, 七月 21, 2021 4:17 下午 收件人: Frieder Schrempf; Tom Rini; Stefano Babic; Peng Fan 抄送: U-Boot@lists.denx.de 主题: Re: Pull request: u-boot-imx u-boot-imx-20210720 On 21.07.21 10:07, Frieder Schrempf wrote: > Hi Tom, Stefan

RE: [PATCH] ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us property

2021-02-22 Thread Peng Fan
Hi Fabio, > Subject: [PATCH] ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us > property > > Commit 247bbeb74c18 ("ARM: dts: imx8m: increase off-on delay on the SD > Vcc > regulator") caused the imx8mq-evk board to not be able to store the > environment variables in the SD card. > > Remove th

RE: [PATCH] ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us property

2021-02-22 Thread Peng Fan
> Subject: Re: [PATCH] ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us > property > > Hi Peng, > > On Mon, Feb 22, 2021 at 10:53 PM Peng Fan wrote: > > > It is board dependent, some board may has a big capacitance, the > > off-on-delay is to give enough tim

RE: [PATCH 03/17] board: Introduce xenguest_arm64 board

2020-07-02 Thread Peng Fan
> Subject: [PATCH 03/17] board: Introduce xenguest_arm64 board > > From: Andrii Anisov > > Introduce a minimal Xen guest board running as a virtual machine under Xen > Project's hypervisor [1], [2]. > > Part of the code is ported from Xen mini-os and also uses work initially done > by different

RE: [PATCH 01/17] armv8: Fix SMCC and ARM_PSCI_FW dependencies

2020-07-02 Thread Peng Fan
> Subject: [PATCH 01/17] armv8: Fix SMCC and ARM_PSCI_FW dependencies > > From: Oleksandr Andrushchenko > > Currently SMCC selects ARM_PSCI_FW if enabled which is not correct as > there are cases that PSCI can function without firmware at all. > ARM_PSCI_FW itself is built with driver model appr

RE: [PATCH 12/17] xen: pvblock: Add initial support for para-virtualized block driver

2020-07-02 Thread Peng Fan
> Subject: Re: [PATCH 12/17] xen: pvblock: Add initial support for > para-virtualized block driver > > On 7/1/20 6:29 PM, Anastasiia Lukianenko wrote: > > From: Anastasiia Lukianenko > > > > Add initial infrastructure for Xen para-virtualized block device. > > This includes compile-time configura

RE: [PATCH 04/17] xen: Add essential and required interface headers

2020-07-02 Thread Peng Fan
25a9f76d37811923221b21db3882e017 Please use commit <12+> ("commit header") Then: Acked-by: Peng Fan > as those have more comments in them. > > Signed-off-by: Oleksandr Andrushchenko > > Signed-off-by: Anastasiia Lukianenko > --- > include/xen/arm/interface.h

[PATCH 1/2] Kconfig: add SPL_LOAD_FIT_ADDRESS

2020-07-06 Thread peng . fan
From: Peng Fan Add SPL_LOAD_FIT_ADDRESS to make user could add it in defconfig Signed-off-by: Peng Fan --- Kconfig | 8 1 file changed, 8 insertions(+) diff --git a/Kconfig b/Kconfig index 8f3fba085a..1e63e1d7ba 100644 --- a/Kconfig +++ b/Kconfig @@ -474,6 +474,14 @@ config

[PATCH 2/2] configs: migrate CONFIG_SPL_LOAD_FIT_ADDRESS to defconfigs

2020-07-06 Thread peng . fan
From: Peng Fan Done with: ./tools/moveconfig.py -S SPL_LOAD_FIT_ADDRESS ./tools/moveconfig.py -S SPL_LOAD_FIT_ADDRESS -H Signed-off-by: Peng Fan --- configs/am57xx_hs_evm_usb_defconfig| 3 ++- configs/avnet_ultrazedev_cc_v1_0_ultrazedev_som_v1_0_defconfig | 1

[PATCH 03/11] imx8m: add sdhc/nand/ecspi clk api

2020-07-09 Thread peng . fan
From: Peng Fan Current DM CLK is a bit complicated, for simplity, let DM clk only support enable/disable/get_rate. For the expected rate settings, we use non-DM clk to do that. Then we could have simple DM clk for i.MX and could also share between SPL/U-Boot proper. Signed-off-by: Peng Fan

[PATCH 04/11] imx8m: add eqos clk

2020-07-09 Thread peng . fan
From: Peng Fan Add imx_eqos_txclk_set_rate/imx_get_eqos_csr_clk to override the weak function in driver Add set_clk_eqos to configure eQoS clk Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/clock_imx8mm.c | 90 ++ 1 file changed, 90 insertions(+) diff

[PATCH 02/11] imx8m: configure NoC clk

2020-07-09 Thread peng . fan
From: Peng Fan Configure NoC clk for better system performance Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/clock_imx8mm.c | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/mach-imx/imx8m/clock_imx8mm.c b/arch/arm/mach-imx/imx8m/clock_imx8mm.c index

[PATCH 00/11] imx8m: soc/clk update

2020-07-09 Thread peng . fan
From: Peng Fan This is to upstream some patches from NXP tree after adapt to U-Boot upstream. Added a few APIs that directly touch CCM/PLL register without CLK DM. I plan to simplify the clk DM part to only keep gate and get rate, so move complicated set rate out from clk DM with non-DM API

[PATCH 01/11] imx8m: configure arm clk sources from PLL

2020-07-09 Thread peng . fan
From: Peng Fan A53 CCM root max support 1GHz, to support high freq, we need to switch ARM clk sources from ARM PLL directly. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/clock_imx8mm.c | 130 - 1 file changed, 129 insertions(+), 1 deletion(-) diff --git

[PATCH 10/11] clk: imx8m: drop clk settings

2020-07-09 Thread peng . fan
From: Peng Fan We use non-dm code to configure the clk settings in order to simplify dm clk driver in future, so remove the duplicated code from clk driver Signed-off-by: Peng Fan --- drivers/clk/imx/clk-imx8mm.c | 34 -- drivers/clk/imx/clk-imx8mn.c | 34

[PATCH 06/11] imx8mp: Add fused parts support

2020-07-09 Thread peng . fan
Core, VPU, ISP MIMX8ML5DVNLZAA Quad Core, VPU MIMX8ML4DVNLZAA Quad Lite MIMX8ML3DVNLZAA Dual Core, VPU, NPU, ISP, DSP Add the support in U-Boot Reviewed-by: Peng Fan Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx/cpu.h | 5

[PATCH 08/11] imx8mn/imx8mp: override env_get_offset and env_get_location

2020-07-09 Thread peng . fan
From: Ye Li To use one defconfig for all boot device, we have to runtime set env offset and return env medium according to the boot device. This patch overrides the env_get_offset and env_get_location to implement the feature. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach

[PATCH 05/11] imx8m: workaround ROM serror

2020-07-09 Thread peng . fan
From: Peng Fan ROM SError happens on two cases: 1. ERR050342, on iMX8MQ HDCP enabled parts ROM writes to GPV1 register, but when ROM patch lock is fused, this write will cause SError. 2. ERR050350, on iMX8MQ/MM/MN, when the field return fuse is burned, HAB is field return mode, but the last 4K

[PATCH 07/11] imx8m: power down fused cores

2020-07-09 Thread peng . fan
From: Peng Fan For non-Quad SoCs, the fused cpu cores could be powered down in SPL to save power. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8m/imx-regs.h | 158 + arch/arm/mach-imx/imx8m/soc.c | 19 2 files changed, 177 insertions

[PATCH 09/11] imx8m: disable nodes before kernel/mfgtool boot for fused part

2020-07-09 Thread peng . fan
From: Peng Fan To fused part, we need to disable nodes of dtb to let kernel boot. To mfgtool, USB issue when using super-speed for mfgtool, temporally work around the problem to use high-speed only. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/soc.c | 333

[PATCH 11/11] imx8m: Refactor the OPTEE memory removal

2020-07-09 Thread peng . fan
From: Peng Fan Current codes assume the OPTEE address is at the end of first DRAM bank. Adjust the process to allow OPTEE in the middle of first bank. When OPTEE memory is removed from first bank, it may split the first bank to two banks, adjust the MMU table for the split case, Since the

[PATCH 1/2] imx8m: implement armv8_el2_to_aarch32

2020-07-09 Thread peng . fan
From: Peng Fan Add iMX8M specific armv8_el2_to_aarch32 to let AArch64 mode U-Boot could boot aarch32 mode linux with FIT image as below: /dts-v1/; / { description = "Configuration to load ARM32 Linux"; images { kernel@1 { d

[PATCH 2/2] imx8mm_evk: enlarge CONFIG_SYS_BOOTM_LEN

2020-07-09 Thread peng . fan
From: Peng Fan Enlarge CONFIG_SYS_BOOTM_LEN when booting FIT image with kernel. Signed-off-by: Peng Fan --- include/configs/imx8mm_evk.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/imx8mm_evk.h b/include/configs/imx8mm_evk.h index 382ba620cc..d1c0e0ec2e 100644 --- a

Re: Question Porting U-Boot to iMX8MN with LPDDR4

2020-07-10 Thread Peng Fan
? 4.19 is a bit old. THanks, Peng. From: Adam Ford Sent: Friday, July 10, 2020 10:56 PM To: U-Boot Mailing List ; dl-linux-imx ; Peng Fan Subject: Question Porting U-Boot to iMX8MN with LPDDR4 I have a board already supported in U-Boot based on the i.MX8MM with

RE: [PATCH] arm: Add extra boot device (UART) to run Ymodem u-boot.img boot on XEA (imx28)

2020-07-10 Thread Peng Fan
; Please start picocom: > sudo picocom -b 115200 -s "sz -vv" /dev/ttyUSB1 sudo ./uuu/uuu -V > imx28_xea.lst > > On the U-boot console one shall see: > Trying to boot from UART > CCC > > Then please press CTRL+A, S > and type u-boot.img > > > Signed-off

RE: [PATCH] power: pmic: pca9450: fix i2c address for PCA9450A

2020-07-13 Thread Peng Fan
= PCA9450_REG_NUM; > - p->hw.i2c.addr = 0x35; > + p->hw.i2c.addr = 0x25; > p->hw.i2c.tx_num = 1; > p->bus = bus; There was a thread to address this, but not take udevice_id into consideration. Your version looks better. Reviewed-by: Peng Fan > > -- > 2.17.1

RE: [PATCH] power: pmic: pca9450: fix i2c address for PCA9450A

2020-07-13 Thread Peng Fan
> Subject: Re: [PATCH] power: pmic: pca9450: fix i2c address for PCA9450A > > Hi, > > On 7/13/20 10:47 AM, Peng Fan wrote: > >> Subject: [PATCH] power: pmic: pca9450: fix i2c address for PCA9450A > >> > >> Change the I2C Slave Address of the PCA9450A: &

[GIT PULL] please pull NXP i.MX

2020-07-14 Thread Peng Fan
mn driver: ddr: imx: correct the pwrctl setting of selfref_en on imx8m Jian Li (3): imx8mp: enable rd_port_urgent imx8mp: DDR performance tunning imx8mp: Disables use of MR4 TUF flag (MR4[7]) bit Oliver Chen (1): drivers: ddr: imx Workaround for i.MX8M DDRPHY rank to r

RE: [PATCH] mmc: Parse new binding for eMMC fixed driver type

2020-07-14 Thread Peng Fan
> Subject: [PATCH] mmc: Parse new binding for eMMC fixed driver type > > Parse the new binding and store it in the mmc config struct after doing some > sanity checks. The code is designed to support fixed mmc driver type if we > ever need that. > > Signed-off-by: Shunsuke Tokumoto > Signed-off-b

[GIT PULL] please pull mmc-7-24-2020

2020-07-14 Thread Peng Fan
Hi Tom, Please pull mmc-7-24-2020 Correct mmc_spi check condition Generate R1/R2/R1b response Read SSR for SD SPI CI: https://travis-ci.org/github/MrVan/u-boot/builds/707901966 Thanks, Peng. The following changes since c

RE: am654_sdhci: mmc fail to send stop cmd

2020-07-19 Thread Peng Fan
Hi Jan, > Subject: am654_sdhci: mmc fail to send stop cmd > > Hi all, > > on one device with one specific SD-card (possibly an aging one), I'm seeing > frequent "mmc fail to send stop cmd" messages, followed by read errors > when loading kernel and dtb. -ETIMEDOUT is returned by mmd_send_cmd. >

RE: [v2, 01/11] mmc: add a reinit() API

2020-07-19 Thread Peng Fan
> Subject: [v2, 01/11] mmc: add a reinit() API > > For DM_MMC, the controller re-initialization is needed to clear old > configuration for mmc rescan. > > Signed-off-by: Yangbo Lu > --- > Changes for v2: > - None. > --- > drivers/mmc/mmc-uclass.c | 15 +++ > drivers/mmc/mmc.c

RE: [v2, 05/11] mmc: add a hs400_tuning flag

2020-07-19 Thread Peng Fan
> Subject: [v2, 05/11] mmc: add a hs400_tuning flag > > Add a hs400_tuning flag to identify the tuning for HS400 mode. Why? Please explain a bit more. Thanks, Peng. > > Signed-off-by: Yangbo Lu > --- > Changes for v2: > - None. > --- > drivers/mmc/mmc.c | 2 ++ > include/mmc.h | 1

RE: [v2, 06/11] mmc: add a mmc_hs400_prepare_ddr() interface

2020-07-19 Thread Peng Fan
> Subject: [v2, 06/11] mmc: add a mmc_hs400_prepare_ddr() interface > > Add a mmc_hs400_prepare_ddr() interface for controllers which needs > preparation before switching to DDR mode for > HS400 mode. This is LSx specific? If yes, could this be done in fsl_esdhc.c? Thanks, Peng. > > Signed-off

RE: [v2, 07/11] mmc: fsl_esdhc: support eMMC HS400 mode

2020-07-19 Thread Peng Fan
> Subject: [v2, 07/11] mmc: fsl_esdhc: support eMMC HS400 mode > > The process for eMMC HS400 mode for eSDHC is, > > 1. Perform the Tuning Process at the HS400 target operating frequency. >Latched the clock division value. > 2. if read transaction, then set the SDTIMNGCTL[FLW_CTL_BG]. > 3. Sw

RE: [v2, 10/11] arm: dts: lx2160ardb: support eMMC HS400 mode

2020-07-19 Thread Peng Fan
> Subject: [v2, 10/11] arm: dts: lx2160ardb: support eMMC HS400 mode > > Add properties related to eMMC HS400 mode. > > mmc-hs400-1_8v; > bus-width = <8>; > > Signed-off-by: Yangbo Lu > --- > Changes for v2: > - None. > --- > arch/arm/dts/fsl-lx2160a-rdb.dts | 2 ++ > 1 file changed, 2 i

RE: [PATCH 1/2] imx8m: ddrphy_utils: Improve coding style

2020-07-19 Thread Peng Fan
tmp = ddrc_wr_gap + (g_cdd_ww_max[i] >> 1); > else > tmp = ddrc_wr_gap + (g_cdd_ww_max[i] >> 1) + 1; > @@ > -342,7 +343,7 @@ void update_umctl2_rank_space_setting(unsigned int > pstat_num) > } > } > > - if(is_imx8mq()) { > + if (is_imx8mq()) { > /* update rankctl: wr_gap:11:8; rd:gap:7:4; quasi-dymic, doc > wrong(static) */ > rdata = reg32_read(DDRC_RANKCTL(0)); > ddrc_wr_gap = (rdata >> 8) & 0xf; > -- Reviewed-by: Peng Fan > 2.17.1

RE: [PATCH 2/2] imx8m: soc: Remove unneeded space

2020-07-19 Thread Peng Fan
NFO, > IMX_SIP_BUILDINFO_GET_COMMITHASH, > - 0, 0 , 0, 0, 0, 0, &res); > + 0, 0, 0, 0, 0, 0, &res); > atf_commit = res.a0; > if (atf_commit == 0x) { > debug("ATF does not support build info\n"); Reviewed-by: Peng Fan > -- > 2.17.1

RE: [PATCH 1/4] firmware: add new driver for SCMI firmwares

2020-07-19 Thread Peng Fan
Hi Etienne, +Sudeep > Subject: [PATCH 1/4] firmware: add new driver for SCMI firmwares Thanks for posting this out. > > This change introduces SCMI agent driver in U-Boot in the firmware U-class. > > SCMI agent driver is designed for platforms that embed a SCMI server in a > firmware hosted f

RE: [PATCH 2/4] dt-bindings: arm: SCMI bindings documentation

2020-07-19 Thread Peng Fan
> Subject: [PATCH 2/4] dt-bindings: arm: SCMI bindings documentation Since kernel already has the binding doc, there is no need to add a U-Boot copy. Regards, Peng. > > Dump SCMI DT bindings documentation from Linux kernel source tree > v5.8-rc1. > > Signed-off-by: Etienne Carriere > --- > >

RE: [PATCH 3/4] clk: add clock driver for SCMI agents

2020-07-19 Thread Peng Fan
> Subject: [PATCH 3/4] clk: add clock driver for SCMI agents > > This change introduces a clock driver for SCMI agent devices. When SCMI > agent and SCMI clock drivers are enabled, SCMI agent binds a clock device for > each SCMI clock protocol devices enabled in the FDT. > > SCMI clock driver i

RE: [PATCH 4/4] reset: add reset controller driver for SCMI agents

2020-07-19 Thread Peng Fan
> Subject: [PATCH 4/4] reset: add reset controller driver for SCMI agents > > This change introduces a reset controller driver for SCMI agent devices. > When SCMI agent and SCMI reset domain drivers are enabled, SCMI agent > binds a reset controller device for each SCMI reset domain protocol devic

RE: [v2, 10/11] arm: dts: lx2160ardb: support eMMC HS400 mode

2020-07-20 Thread Peng Fan
> Subject: RE: [v2, 10/11] arm: dts: lx2160ardb: support eMMC HS400 mode > > Hi Peng, > > > -Original Message----- > > From: Peng Fan > > Sent: Monday, July 20, 2020 9:45 AM > > To: Y.b. Lu ; u-boot@lists.denx.de; Priyanka Jain > > ; 'Jaehoo

RE: i.MX8QXP MEK does not boot

2020-02-13 Thread Peng Fan
Hi Fabio > Subject: Re: i.MX8QXP MEK does not boot > > Hi Peng, > > On Wed, Feb 12, 2020 at 1:54 PM Fabio Estevam > wrote: > > > > Hi Peng, > > > > i.MX8QXP MEK board is not booting for me on 2020.04-rc2. > > > > I am using the ATF, imx-firmware and imx-sc-firmware as stated at > > board/freesc

RE: [PATCH 0/9] mmc: sdhci: code clean-up and fix cache coherency problem.

2020-02-13 Thread Peng Fan
Hi Masahiro, > Subject: [PATCH 0/9] mmc: sdhci: code clean-up and fix cache coherency > problem. CI, build fail, please give a check. mips: + pic32mzdask +drivers/mmc/sdhci.c:18:10: fatal error: asm/dma-mapping.h: No such file or directory + #include + ^~~ +co

RE: [PATCH v1 2/2] ARM: dts: imx8mm-verdin: drop rgmii_rxc_dly/txc_dly

2020-02-14 Thread Peng Fan
> Subject: [PATCH v1 2/2] ARM: dts: imx8mm-verdin: drop > rgmii_rxc_dly/txc_dly > > From: Max Krummenacher > > The FEC in the i.MX8MM doesn't support this feature. So don't pretend one > can use it. > > Signed-off-by: Max Krummenacher > Signed-o

RE: [PATCH v1 1/2] ARM: dts: imx8mm-verdin: dm-spl for pinctrl_usdhc1 node

2020-02-14 Thread Peng Fan
> Subject: [PATCH v1 1/2] ARM: dts: imx8mm-verdin: dm-spl for pinctrl_usdhc1 > node > > From: Igor Opaniuk > > Let pinctrl configuration for eMMC node (usdhc1) also be accessible in SPL. > > Signed-off-by: Igor Opaniuk Reviewed-by: Peng Fan > --- > &

RE: [PATCH] power-domain: fix hang in endless loop on i.MX8

2020-02-16 Thread Peng Fan
> Subject: Re: [PATCH] power-domain: fix hang in endless loop on i.MX8 > > Hi Simon, Peng, > > On Sun, 16 Feb 2020 12:02:55 -0700 > Simon Glass s...@chromium.org wrote: > ... > > > drivers/power/domain/power-domain-uclass.c | 12 > > > 1 file changed, 12 insertions(+) > > > > Can we

RE: imx8m: composite clock wrong clock parent ?

2020-02-17 Thread Peng Fan
> Subject: imx8m: composite clock wrong clock parent ? > > Hi, > > I am working on a i.MX8MM based board and I got issue to make the > Ethernet phy work. > I noticed that the MDIO clock is not configured properly and the FEC outputs a > 26,6MHz MDIO clock. > That's because the clk_get_rate() call

Please pull mmc mmc-2-19-2020

2020-02-19 Thread Peng Fan
Hi Tom Please pull mmc-2-29-2020. sdhci: code clean-up and fix cache coherency problem enable cache snooping on mpc830x Fix build error when MMC_WRITE disabled CI: https://travis-ci.org/MrVan/u-boot/builds/652476827 Thank

RE: Please pull mmc mmc-2-19-2020

2020-02-19 Thread Peng Fan
> Subject: Re: Please pull mmc mmc-2-19-2020 > > Hi Peng, > > On Thu, Feb 20, 2020 at 1:34 PM Tom Rini wrote: > > > > On Thu, Feb 20, 2020 at 01:56:41AM +, Peng Fan wrote: > > > > > Hi Tom > > > > > > Please pull mmc-2-2

Please pull mmc mmc-2-20-2020

2020-02-20 Thread Peng Fan
Hi Tom Please pull mmc-2-20-2020. I redo CI with Masahiro's fix, and no issue. sdhci: code clean-up and fix cache coherency problem enable cache snooping on mpc830x Fix build error when MMC_WRITE disabled CI: https://travi

RE: [U-Boot] [PATCH V3 15/27] imx8m: Fix MMU table issue for OPTEE memory

2020-03-04 Thread Peng Fan
> Subject: Re: [U-Boot] [PATCH V3 15/27] imx8m: Fix MMU table issue for > OPTEE memory > > Hi Peng, > > On Tue, Aug 27, 2019 at 9:38 AM Peng Fan wrote: > > > > When running with OPTEE, the MMU table in u-boot does not remove the > > OPTEE memory from its sett

RE: [U-Boot] [PATCH V3 15/27] imx8m: Fix MMU table issue for OPTEE memory

2020-03-05 Thread Peng Fan
> Subject: Re: [U-Boot] [PATCH V3 15/27] imx8m: Fix MMU table issue for > OPTEE memory > > Hi Peng, > > On Thu, Mar 5, 2020 at 2:50 AM Peng Fan wrote: > > > > > Subject: Re: [U-Boot] [PATCH V3 15/27] imx8m: Fix MMU table issue > > > for OPTEE memory &g

RE: [PATCH v3 00/11] Add Support for eMMC boot in AM65x and J721e

2020-03-05 Thread Peng Fan
> Subject: Re: [PATCH v3 00/11] Add Support for eMMC boot in AM65x and > J721e > > Peng, > > On 26/02/20 4:31 pm, Jaehoon Chung wrote: > > Hi Faiz, > > > > On 2/26/20 5:14 PM, Faiz Abbas wrote: > >> The following patches add support for eMMC boot in TI's Am65x and > >> J721e devices. > > > > Abou

RE: [PATCH 3/3] mmc: Kconfig: remove MMC_BROKEN_CD configuration

2020-03-08 Thread Peng Fan
Hi Jaehoon, > Subject: [PATCH 3/3] mmc: Kconfig: remove MMC_BROKEN_CD configuration > > Remove MMC_BROKEN_CD configuration. > It doesn't need to use configuration, instead use broken-cd property. Will this cause issue if board not use dts saying in SPL stage? Regards, Peng. > > Signed-off-by:

Please pull mmc-2020-3-9

2020-03-10 Thread Peng Fan
Hi Tom, Please pull mmc-2020-3-9 -- DM support for CA SoCs eMMC board for presidio-asic Add defer probe for mmc sdhci TI SoCs mmc misc update -- CI: https://travis-ci.org/MrVan/u-boot/builds/659943777 Thanks, Peng. The follow

Re: [U-Boot] [PATCH V4 5/6] net: fec_mxc: support i.MX8M with CLK_CCF

2019-11-03 Thread Peng Fan
Hi Stefano, > -Original Message- > From: Stefano Babic > Sent: 2019年11月3日 23:20 > To: Peng Fan ; sba...@denx.de; feste...@gmail.com; > lu...@denx.de; joe.hershber...@ni.com > Cc: dl-uboot-imx ; u-boot@lists.denx.de; > frieder.schre...@kontron.de > Subject

Re: [U-Boot] [PATCH V4 5/6] net: fec_mxc: support i.MX8M with CLK_CCF

2019-11-03 Thread Peng Fan
> Subject: RE: [PATCH V4 5/6] net: fec_mxc: support i.MX8M with CLK_CCF > > Hi Stefano, > > > > -Original Message- > > From: Stefano Babic > > Sent: 2019年11月3日 23:20 > > To: Peng Fan ; sba...@denx.de; > feste...@gmail.com; > > lu...@denx

[U-Boot] [PATCH] imx: Kconfig: fix dependency of SPL_IMX_ROMAPI_LOADADDR

2019-11-03 Thread Peng Fan
Fix dependency of SPL_IMX_ROMAPI_LOADADDR, currently only i.MX8MN has this feature. Signed-off-by: Peng Fan --- V1: CI build with imx/next rebased to Tom's tree and apply some patches https://travis-ci.org/MrVan/u-boot/builds/605898636 arch/arm/mach-imx/Kconfig | 2 +- 1 file chang

[U-Boot] [PATCH] power: regulator: support off-on-delay-us

2019-11-04 Thread Peng Fan
off-on-delay-us has been supported by Linux, so let's use it. Signed-off-by: Peng Fan --- V1: Linux Tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=f7907e57aea2adcd0b57ebcca410e125412ab680 drivers/power/regulator/regulator_common.c | 4 1

[U-Boot] [PATCH 1/2] mmc: fsl_esdhc_imx: drop redundant clock settings

2019-11-04 Thread Peng Fan
t's simplify to remove redundant clock settings. Signed-off-by: Peng Fan --- drivers/mmc/fsl_esdhc_imx.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc/fsl_esdhc_imx.c index 43106dec75..67549036d4 100644 --- a/dri

[U-Boot] [PATCH 2/2] mmc: fsl_esdhc_imx: Update compatible string for imx8m

2019-11-04 Thread Peng Fan
To enable HS400(ES) and UHS for imx8m platforms, update the driver data to share with imx8qm esdhc_soc_data. Signed-off-by: Peng Fan --- drivers/mmc/fsl_esdhc_imx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc/fsl_esdhc_imx.c index 67549036d4

Re: [U-Boot] [PATCH] imx: sync with kernel device tree for Phycore SoM

2019-11-04 Thread Peng Fan
Signed-off-by: Parthiban Nallathambi Acked-by: Peng Fan > --- > arch/arm/dts/Makefile | 4 +- > arch/arm/dts/imx6ul-phycore-segin.dts | 81 > ...on.dtsi => imx6ul-phytec-phycore-som.dtsi} | 130 +++ > .../dts/imx6ul-phytec-segin-ff-rdk-nand.

Re: [U-Boot] [PATCH v2 6/6] mx7ulp: Add support for Embedded Artists COM board

2019-11-04 Thread Peng Fan
> Subject: [PATCH v2 6/6] mx7ulp: Add support for Embedded Artists COM > board Hi Fabio, Seems you not add dts files. CI build fail arm: + mx7ulp_com +make[3]: *** No rule to make target 'arch/arm/dts/imx7ulp-com.dtb', needed by 'dtbs'. Stop. +make[2]: *** [arch-dtbs] Error 2 +make[1

[U-Boot] [NXP-IMX] please pull imx-master-11-4

2019-11-04 Thread Peng Fan
) Peng Fan (30): imx8qm: mek: enable dm-spl for pm arm: dts: imx8qxp-mek: add u-boot, dm-spl for lpuart0 arm: dts: imx8qm-mek: add u-boot, dm-spl for lpuart0 misc: imx8: scu: simplify code to make it extendable power

[U-Boot] [PULL] u-boot-mmc mmc-2019-11-5

2019-11-05 Thread Peng Fan
.de/u-boot/custodians/u-boot-mmc.git tags/mmc-2019-11-5 for you to fetch changes up to f65d08411d76f01ddfb5d44909c667b91b847ddf: mmc: fsl_esdhc_imx: Update compatible string for imx8m (2019-11-05 11:21:25 +0800) -------- Peng Fan (2):

Re: [U-Boot] [PATCH v1] imx: bootaux: elf firmware support

2019-11-11 Thread Peng Fan
Hi Igor. > Subject: [PATCH v1] imx: bootaux: elf firmware support We also have similar support for i.MX8 DSP firmware loading. Good to see your patch. > > From: Igor Opaniuk > > Currently imx-specific bootaux command doesn't support ELF format > firmware for Cortex-M4 core. > > This patches

Re: [U-Boot] [PATCH v3 6/6] mx7ulp: Add support for Embedded Artists COM board

2019-11-12 Thread Peng Fan
t; > Add the initial support for the board. > > > > Signed-off-by: Fabio Estevam > > --- > > Changes since v2: > > - Add the imx7ulp-com.dts (Peng Fan) > > > > arch/arm/dts/Makefile| 3 +- > > arch/arm/dts/imx7ulp-com.dts | 90 +++

Re: [U-Boot] [PATCH v3 6/6] mx7ulp: Add support for Embedded Artists COM board

2019-11-20 Thread Peng Fan
> Subject: Re: [PATCH v3 6/6] mx7ulp: Add support for Embedded Artists COM > board > > Hi Peng, > > On Wed, Nov 13, 2019 at 1:59 AM Peng Fan wrote: > > > I'll help collect patches if Stefano not pick up. > > Could you please help collecting this series?

Re: [U-Boot] [PATCH] mmc: sdhci: make sdhci_get_cd static

2019-11-20 Thread Peng Fan
> Subject: [PATCH] mmc: sdhci: make sdhci_get_cd static > > sdhci_get_cd() is not referenced anywhere else. Limit its scope to sdhci.c. > > Signed-off-by: Baruch Siach > --- > drivers/mmc/sdhci.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mmc/sdhci.c b/dri

Re: [U-Boot] [PATCH 0/4] Drop redundant code for eSDHC clock getting

2019-11-20 Thread Peng Fan
> Subject: [PATCH 0/4] Drop redundant code for eSDHC clock getting > After CI https://travis-ci.org/MrVan/u-boot/builds/614839218 It will show in mmc/master. Thanks, Peng. > This patch-set is to drop redundant code for eSDHC clock getting. > The fsl_esdhc driver is able to simply get clock from

Re: [U-Boot] [PATCH 1/9] mmc: tmio: sdhi: Track current tap number in private data

2019-11-20 Thread Peng Fan
> Subject: [PATCH 1/9] mmc: tmio: sdhi: Track current tap number in private > data After CI https://travis-ci.org/MrVan/u-boot/builds/614839218 patchset will show in mmc/master. Thanks, Peng. > > Retain the tap number from last calibration in private data. This will be > later > used for SCC e

RE: [PATCH] drivers: mmc: rpmb: do not build for SPL

2020-04-15 Thread Peng Fan
> Subject: [PATCH] drivers: mmc: rpmb: do not build for SPL > > RPMB support is used by the 'mmc rpmb' command and by the OP-TEE > support. > We do not need it in SPL. > > Signed-off-by: Heinrich Schuchardt Reviewed-by: Peng Fan > --- > drivers/mmc

RE: [PATCH] imx8qxp_mek: Start with USDHC2 unpowered

2020-04-15 Thread Peng Fan
the VMMC supply to get unpowered first. > > Signed-off-by: Fabio Estevam Reviewed-by: Peng Fan > --- > board/freescale/imx8qxp_mek/spl.c | 18 ++ > 1 file changed, 18 insertions(+) > > diff --git a/board/freescale/imx8qxp_mek/spl.c > b/board/freesca

RE: [Uboot-stm32] [PATCH 1/3] env: mmc: allow support of mmc_get_env_dev with OF_CONTROL

2020-04-21 Thread Peng Fan
> Subject: Re: [Uboot-stm32] [PATCH 1/3] env: mmc: allow support of > mmc_get_env_dev with OF_CONTROL > > Hi Tom > > I just noticed that this env series is delegated to Peng Fan (mmc maintainer) > instead of Joe Hershberger (env maintainer). > > Is there any reaso

RE: [PATCH] imx8qxp_mek: Run with caches enabled

2020-04-21 Thread Peng Fan
Hi Fabio, > -Original Message- > From: Fabio Estevam > Sent: 2020年4月21日 2:55 > To: sba...@denx.de > Cc: Peng Fan ; dl-uboot-imx ; > u-boot@lists.denx.de; Fabio Estevam > Subject: [PATCH] imx8qxp_mek: Run with caches enabled > > There is no need to run with c

RE: [PATCH] imx8qxp_mek: Run with caches enabled

2020-04-21 Thread Peng Fan
Hi Fabio, > Subject: Re: [PATCH] imx8qxp_mek: Run with caches enabled > > Hi Peng, > > On Tue, Apr 21, 2020 at 9:15 AM Peng Fan wrote: > > > > -CONFIG_SPL_SYS_ICACHE_OFF=y > > > -CONFIG_SPL_SYS_DCACHE_OFF=y > > > > Currently there is no mmu setu

RE: [PATCH] imx8qxp_mek: Run with caches enabled

2020-04-21 Thread Peng Fan
> Subject: Re: [PATCH] imx8qxp_mek: Run with caches enabled > > Hi Peng, > > On Tue, Apr 21, 2020 at 9:22 AM Peng Fan wrote: > > > As I recall, icache could be enabled, but if enable dcache, we might > > need setup mmu for SPL. > > Does this requirement app

RE: [PATCH] imx8qxp_mek: Run with caches enabled

2020-04-21 Thread Peng Fan
> Subject: [PATCH] imx8qxp_mek: Run with caches enabled > > There is no need to run with caches disabled. > > Signed-off-by: Fabio Estevam Reviewed-by: Peng Fan > --- > configs/imx8qxp_mek_defconfig | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/c

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