RE: [PATCH V2 resend 1/4] imx: add module fuse support

2020-05-03 Thread Peng Fan
Hi Stefano, > Subject: Re: [PATCH V2 resend 1/4] imx: add module fuse support > > Hi Peng, > > On 01.05.20 16:08, Peng Fan wrote: > > There are different parts from one SoC. Take i.MX6ULL for example, > > some part might not have ENET, some might have; some might n

[PATCH V2 1/6] dt-bindings: imx_rsrc: add SC_R_NONE

2020-05-04 Thread Peng Fan
Add SC_R_NONE entry Signed-off-by: Peng Fan --- V2: New For other patches in patchset, only patch 6 is changed. include/dt-bindings/soc/imx_rsrc.h | 1 + 1 file changed, 1 insertions(+) diff --git a/include/dt-bindings/soc/imx_rsrc.h b/include/dt-bindings/soc/imx_rsrc.h index 4870eb985b

[PATCH V2 2/6] imx8: power: Add PD device lookup interface to power domain uclass

2020-05-04 Thread Peng Fan
tream patch only for legacy imx8 power domain driver, since we have not migrated to use new power domain driver. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8/sys_proto.h | 7 +++ drivers/power/domain/imx8-power-domain-legacy.c

[PATCH V2 4/6] power: imx8: remove the resource owned check before power off

2020-05-04 Thread Peng Fan
resource owner, the power domain in the other software partition could be powered off with parent partition could access child partition resources. Signed-off-by: Peng Fan --- drivers/power/domain/imx8-power-domain-legacy.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a

[PATCH V2 6/6] imx8: Replace SC_R_LAST with SC_R_NONE in DTB

2020-05-04 Thread Peng Fan
every time we need to update linux and uboot headers together or boot can fail. Fix this by replacing SC_R_LAST usage with a new constant SC_R_NONE defined to be 0xFFF0. Reviewed-by: Peng Fan Signed-off-by: Leonard Crestez Signed-off-by: Peng Fan --- V2: fix dtsi arch/arm/dts/fsl-imx8dx.dtsi

[PATCH V2 3/6] power: imx8-power-domain: Set DM_FLAG_DEFAULT_PD_CTRL_OFF flag

2020-05-04 Thread Peng Fan
DM_FLAG_DEFAULT_PD_CTRL_OFF to avoid such issue Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/power/domain/imx8-power-domain-legacy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/power/domain/imx8-power-domain-legacy.c b/drivers/power/domain/imx8-power-domain-legacy.c index

[PATCH V2 5/6] power: imx8: Check owned resource in power on

2020-05-04 Thread Peng Fan
in power on. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/power/domain/imx8-power-domain-legacy.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/power/domain/imx8-power-domain-legacy.c b/drivers/power/domain/imx8-power-domain-legacy.c index b68be40766..a5f2f8a445

RE: [PATCH V2 1/9] uclass: cpu: Add new API to get udevice for current CPU

2020-05-04 Thread Peng Fan
Hi Simon, > Subject: Re: [PATCH V2 1/9] uclass: cpu: Add new API to get udevice for > current CPU > > Hi Peng, > > On Sun, 3 May 2020 at 07:14, Peng Fan wrote: > > > > Hi Simon, > > > > > Subject: Re: [PATCH V2 1/9] uclass: cpu: Add new API to get

[PATCH 00/14] mtd: nand: i.MX update

2020-05-04 Thread Peng Fan
: mxs_nand: fix the gf_13/14 definition issue mxs_nand: don't check zero count when ECC reading with randomizer Peng Fan (3): nand: mxs: fix the bitflips for erased page when uncorrectable error nand: mxs: correct bitflip for erased NAND page mtd: nand: support GPMI NAND driver for i.MX

[PATCH 01/14] mtd: gpmi: change the BCH layout setting for large oob NAND

2020-05-04 Thread Peng Fan
use calc_ecc_layout_by_info 3. legacy_calc_ecc_layout only used for some NAND chips does not contains necessary information. So this is only a backup plan, it is NOT recommended to use these NAND chips. Signed-off-by: Han Xu Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/mtd/nand/raw/mxs_nan

[PATCH 02/14] mtd: gpmi: provide the option to use legacy bch geometry

2020-05-04 Thread Peng Fan
Xu Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/mtd/nand/raw/mxs_nand.c| 4 ++-- drivers/mtd/nand/raw/mxs_nand_dt.c | 2 ++ include/mxs_nand.h | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/raw/mxs_nand.c b/drivers/mt

[PATCH 06/14] nand: Update SPL MXS NAND mini driver

2020-05-04 Thread Peng Fan
From: Ye Li Update the mini driver to add support for getting ecc info from ONFI and support read image data from page unaligned NAND address. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/mtd/nand/raw/mxs_nand_spl.c | 41 ++--- 1 file changed, 34

[PATCH 04/14] nand: mxs: correct bitflip for erased NAND page

2020-05-04 Thread Peng Fan
Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/regs-bch.h | 7 ++- drivers/mtd/nand/raw/mxs_nand.c | 18 +- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/arch/arm/include/asm/mach-imx/regs-bch.h b/arch/arm/include/asm/mach-imx/regs-bch.h in

[PATCH 05/14] mxs_nand: Add support for i.MX8M

2020-05-04 Thread Peng Fan
From: Ye Li Update the gpmi/apbh_dma/bch drivers and relevant registers for i.MX8M. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/dma.h | 2 +- arch/arm/include/asm/mach-imx/regs-apbh.h | 6 +++--- arch/arm/include/asm/mach-imx/regs-bch.h | 4

[PATCH 03/14] nand: mxs: fix the bitflips for erased page when uncorrectable error

2020-05-04 Thread Peng Fan
age filled with the '0xFF' data. " Signed-off-by: Peng Fan --- drivers/mtd/nand/raw/mxs_nand.c | 44 + 1 file changed, 44 insertions(+) diff --git a/drivers/mtd/nand/raw/mxs_nand.c b/drivers/mtd/nand/raw/mxs_nand.c index 3247064c3f..55d2

[PATCH 07/14] mxs_nand: Update compatible string for i.MX6SX

2020-05-04 Thread Peng Fan
From: Ye Li The iMX6SX uses compatible string "fsl,imx6sx-gpmi-nand" for gpmi node in DTS, so update the driver for the string Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/mtd/nand/raw/mxs_nand_dt.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/mt

[PATCH 08/14] mtd: nand: mxs_nand: add i.MX6QP compatible string

2020-05-04 Thread Peng Fan
From: Han Xu add the dedicate compatible string for i.MX6QP Signed-off-by: Han Xu Signed-off-by: Peng Fan --- drivers/mtd/nand/raw/mxs_nand_dt.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/mtd/nand/raw/mxs_nand_dt.c b/drivers/mtd/nand/raw/mxs_nand_dt.c index 7efc9684db

[PATCH 10/14] nand: mxs_nand: make imx8mm can use hardware BCH and randomizer

2020-05-04 Thread Peng Fan
From: Alice Guo imx8mm needs to BCH encode and set NAND page number needed to be randomized modify conditional compilation Use CONFIG_IMX8M, so it apply to imx8mq/mm/mn Signed-off-by: Alice Guo Signed-off-by: Peng Fan --- drivers/mtd/nand/raw/mxs_nand.c | 2 +- 1 file changed, 1 insertion

[PATCH 09/14] mtd: mxs_nand: fix the gf_13/14 definition issue

2020-05-04 Thread Peng Fan
From: Han Xu gf_13/14 mask was not set correctly in register definition. Signed-off-by: Han Xu Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/regs-bch.h | 8 drivers/mtd/nand/raw/mxs_nand.c | 2 ++ include/mxs_nand.h | 1 + 3 files changed

[PATCH 11/14] mtd: nand: support GPMI NAND driver for i.MX8

2020-05-04 Thread Peng Fan
enable the GPMI NAND driver for i.MX8, i.MX8 use similar controller as i.MX8M - register definition for i.mx8 - DMA structure must be 32bit address Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/dma.h | 15 --- arch/arm/include/asm/mach-imx/regs-apbh.h | 9

[PATCH 13/14] mxs_nand: don't check zero count when ECC reading with randomizer

2020-05-04 Thread Peng Fan
From: Han Xu When enabled randomizer during ECC reading, the controller reported it's erased page. Checking zero count will cause data get modified to all 0xFF. Stop checking during randomizer to workaround this issue. Signed-off-by: Han Xu Signed-off-by: Peng Fan --- drivers/mtd/nan

[PATCH 14/14] nand: enable the Randomizer module for i.mx7 and i.mx8

2020-05-04 Thread Peng Fan
From: Alice Guo To enable the Randomizer module, set GPMI_ECCCTRL[RANDOMIZER_ENABLE] to 1, then set GPMI_ECCCOUNT[RANDOMIZER_PAGE] to select randomizer page number needed to be randomized. Signed-off-by: Alice Guo Signed-off-by: Peng Fan --- drivers/mtd/nand/raw/mxs_nand.c | 8 +++- 1

[PATCH 12/14] MXS_NAND: Add clock support for iMX8

2020-05-04 Thread Peng Fan
From: Ye Li Since iMX8 has enabled clock uclass, we can parse the clocks from DTB and enable them in GPMI driver. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/mtd/nand/raw/mxs_nand_dt.c | 69 ++ 1 file changed, 69 insertions(+) diff --git a

RE: [PATCH] dm: serial: introduce puts hook

2020-05-04 Thread Peng Fan
Hi Simon, > Subject: Re: [PATCH] dm: serial: introduce puts hook > > Hi Peng, > > On Sun, 3 May 2020 at 06:42, Peng Fan wrote: > > > > Introduce puts hook for dm serial driver. > > > > Signed-off-by: Peng Fan > > --- > > drivers/serial/seria

RE: [PATCH 1/4] sata: ahsata: Fix resource leak

2020-05-04 Thread Peng Fan
Hi Simon, > Subject: Re: [PATCH 1/4] sata: ahsata: Fix resource leak > > On Sun, 3 May 2020 at 08:04, Peng Fan wrote: > > > > From: Ye Li > > > > Fix coverity issue CID 3606684: Resource leak (RESOURCE_LEAK) > > leaked_storage: Variable uc_priv goin

RE: [PATCH 10/13] imx: load calibration parameters from fuse for i.MX8MP

2020-05-04 Thread Peng Fan
> Subject: Re: [PATCH 10/13] imx: load calibration parameters from fuse for > i.MX8MP > > Hi Peng, > > On Sun, May 3, 2020 at 8:39 PM Peng Fan wrote: > > > 5.4.3 upstream kernel + latest upstream boot? > > No, I meant imx_5.4.3_2.0.0 NXP kernel + latest upstre

[PATCH] imx: Kconfig: enable IMX_BOOTAUX for i.MX8M

2020-05-05 Thread Peng Fan
i.MX8M could use imx bootaux to boot m4/m7 core, so let's add it to the dependency list. Signed-off-by: Peng Fan --- arch/arm/mach-imx/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index 396f7c9288..2b972

[PATCH 03/10] imx: imx8qm/qxp: add get_board_serial

2020-05-05 Thread Peng Fan
Add get_board_serial support, the info could be got from fuse. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8/cpu.c | 32 1 file changed, 32 insertions(+) diff --git a/arch/arm/mach-imx/imx8/cpu.c b/arch/arm/mach-imx/imx8/cpu.c index 2c79bd0091..3bd0dee025

[PATCH 00/10] imx: imx8qm/qxp update

2020-05-05 Thread Peng Fan
This patchset is various update for i.MX8 from NXP downstream Support reserve ddr memory for M4 Add get board serial power down resources when SPL jump to u-boot recover SPL data check m4 partition boot Fix get_effective_memsize select boot device dynamically Peng Fan (8): imx: imx8qm/qxp

[PATCH 01/10] imx: imx8qm/qxp: reserving DDR memory for M4

2020-05-05 Thread Peng Fan
x27;t access M4 reserved memory. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8/Kconfig | 8 arch/arm/mach-imx/imx8/fdt.c | 10 ++ 2 files changed, 18 insertions(+) diff --git a/arch/arm/mach-imx/imx8/Kconfig b/arch/arm/mach-imx/imx8/Kconfig index 1f8add015f..69149d3cd5 1

[PATCH 02/10] imx: imx8qm/qxp: Fix issue in get_effective_memsize

2020-05-05 Thread Peng Fan
: Peng Fan Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8/cpu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-imx/imx8/cpu.c b/arch/arm/mach-imx/imx8/cpu.c index f87276e8ea..2c79bd0091 100644 --- a/arch/arm/mach-imx/imx8/cpu.c

[PATCH 04/10] imx: imx8qm/imx8qxp: Power down the resources before SPL jump to u-boot

2020-05-05 Thread Peng Fan
"imx8_power_off_pd_devices" to power off all active devices. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8/sys_proto.h | 1 + board/freescale/imx8qm_mek/spl.c| 6 + board/freescale/imx8qxp_mek/spl.c | 6 + drivers/power/domain/

[PATCH 06/10] imx8: Select boot device dynamically

2020-05-05 Thread Peng Fan
From: Ye Li For fspi build, we will enable both SPL NOR support and SPL SPI support. SPL will dynamically check the resource owner then select corresponding boot device. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8/cpu.c | 12 1 file changed, 12

[PATCH 05/10] imx: imx8qm/qxp: Recover SPL data section for partition reboot

2020-05-05 Thread Peng Fan
cold boot, the data section will be saved to that new section at SPL early phase. When from partition reboot, the data section will be restored from the new section. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/cpu/armv8/Kconfig| 6 ++ arch/arm/cpu/armv8/Makefile

[PATCH 07/10] imx: imx8qm/qxp: check whether m4 partition booted

2020-05-05 Thread Peng Fan
Add code to check m4 partition booted or not, we will use this to runtime set device tree file that passed to Linux Kernel. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8/sys_proto.h | 1 + arch/arm/mach-imx/imx8/cpu.c | 30 ++ board

[PATCH 09/10] imx: imx8qxp: update fdt_file according to m4 state

2020-05-05 Thread Peng Fan
Update fdt_file according to m4 parts state Signed-off-by: Peng Fan --- board/freescale/imx8qxp_mek/imx8qxp_mek.c | 13 + include/configs/imx8qxp_mek.h | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/board/freescale/imx8qxp_mek/imx8qxp_mek.c b

[PATCH 10/10] imx8: cpu: check resource owned after sid fail

2020-05-05 Thread Peng Fan
When we create software partition, we still need let parent partition to configure sid, so move the check after sid failed. Acked-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8/fdt.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-imx

[PATCH 08/10] imx: imx8qm: update fdt_file according to m4 state

2020-05-05 Thread Peng Fan
Update fdt_file according to m4 parts state Signed-off-by: Peng Fan --- board/freescale/imx8qm_mek/imx8qm_mek.c | 13 + include/configs/imx8qm_mek.h| 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/board/freescale/imx8qm_mek/imx8qm_mek.c b/board

RE: [RFC] arm: dts: imx: imx8qm: usb support

2020-05-05 Thread Peng Fan
> Subject: [RFC] arm: dts: imx: imx8qm: usb support > > Try to get USB working with imx8qm. Therefore I took below from NXP vendor > tree. Can someone point me to the missing driver parts that are needed? The usb driver still not enabled. Regards, Peng. > > Best regards, > > Oliver > > --- >

[PATCH 0/6] imx: nandbcb update

2020-05-05 Thread Peng Fan
i.MX nandbcb update to support i.MX8M, add dump command, restructure, fix gf_14, add boot search count for i.MX8 Alice Guo (3): nandbcb: support i.MX8M nandbcb: add nandbcb dump command for i.MX8MM nandbcb: add nandbcb dump command for i.MX6 Han Xu (3): nandbcb: fix the issue cannot suppo

[PATCH 1/6] nandbcb: fix the issue cannot support gf_14 NAND boot

2020-05-05 Thread Peng Fan
From: Han Xu bchtype in FCB should be associated to the gf_13/14 settings in BCH, fix the issue and test on Micron 29F64G08CBABB, it can boot after the change. Signed-off-by: Han Xu Signed-off-by: Peng Fan --- arch/arm/mach-imx/cmd_nandbcb.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 2/6] nandbcb: support i.MX8M

2020-05-05 Thread Peng Fan
From: Alice Guo Tested on i.MX8MM EVK, imx8mm evk uses BCH encoding and randomizer modify macro and print size_t with %zx use CONFIG_IMX8M because it should apply to imx8mq/mm/mn Signed-off-by: Alice Guo Signed-off-by: Peng Fan --- arch/arm/mach-imx/Kconfig | 2 +- arch/arm/mach-imx

[PATCH 6/6] nandbcb: read boot search count from fuse for imx8qxp

2020-05-05 Thread Peng Fan
From: Han Xu add support for imx8qxp to read boot search count from fuse in nandbcb Signed-off-by: Han Xu Signed-off-by: Peng Fan --- arch/arm/mach-imx/cmd_nandbcb.c | 39 ++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx

[PATCH 4/6] nandbcb: add nandbcb dump command for i.MX6

2020-05-05 Thread Peng Fan
From: Alice Guo Verify/dump boot structures. Signed-off-by: Alice Guo Signed-off-by: Peng Fan --- arch/arm/mach-imx/cmd_nandbcb.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-imx/cmd_nandbcb.c b/arch/arm/mach-imx/cmd_nandbcb.c index 02a65ffd43..a8531def35 100644

[PATCH 3/6] nandbcb: add nandbcb dump command for i.MX8MM

2020-05-05 Thread Peng Fan
From: Alice Guo Verify/dump boot structures written to NAND Flash chip. Signed-off-by: Alice Guo Signed-off-by: Peng Fan --- arch/arm/mach-imx/cmd_nandbcb.c | 266 ++-- 1 file changed, 258 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-imx

[PATCH 5/6] cmd: nandbcb: Reconstruct the nandbcb tool for all platforms

2020-05-05 Thread Peng Fan
Hamming coding/ 40bit BCH/ 62bit BCH coding FCB. 6. Dump and compare all written FCB/DBBT to verify data integrity. The tool has been verified on iMX6Q/DL, 6SX, 7D, 6ULL, iMX8QX, iMX8MM. Signed-off-by: Han Xu Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/imx-nandbcb.h |4 +- arch

[PATCH] mtd: nand: raw: mxs_nand changes for nandbcb

2020-05-06 Thread Peng Fan
From: Han Xu Add more BCH setting mode and remove the unnecessary platform constrain Signed-off-by: Han Xu Signed-off-by: Peng Fan --- drivers/mtd/nand/raw/mxs_nand.c | 43 ++--- include/mxs_nand.h | 3 ++- 2 files changed, 42 insertions

RE: [PATCH 10/13] imx: load calibration parameters from fuse for i.MX8MP

2020-05-06 Thread Peng Fan
> Subject: Re: [PATCH 10/13] imx: load calibration parameters from fuse for > i.MX8MP > > Hi Peng, > > On Mon, May 4, 2020 at 11:50 PM Peng Fan wrote: > > > Busfreq could be disabled by set the device tree node to disabled. > > This does not help. If I use

RE: [PATCH] imx8mp_evk: Make SPL binary size smaller

2020-05-10 Thread Peng Fan
> Subject: Re: [PATCH] imx8mp_evk: Make SPL binary size smaller > > On Thu, May 7, 2020 at 8:59 AM Fabio Estevam > wrote: > > > > Commit f24dea4e1b52 ("ARM: imx8m: Fix reset in SPL on NXP iMX8MP > EVK") > > caused the u-boot-spl.bin binary size to grow by around 2000 bytes, > > which makes the bo

[PATCH 1/2] imx: imx8mp_evk: fix boot issue

2020-05-10 Thread Peng Fan
The u-boot-spl.bin pad with ddr firmware conflicts with the CONFIG_MALLOC_F_ADDR area, the ddr firmware will be overwritten by malloc in SPL stage and cause ddr initialization not able to finish. So update the related addresses to fix the issue. Reported-by: Fabio Estevam Signed-off-by: Peng Fan

[PATCH 2/2] imx8mp_evk: simplify board spl code

2020-05-10 Thread Peng Fan
Simplify board SPL code - BSS area will be cleared by crt0_64.S - No need to get ccm device in spl_board_init - Use spl_early_init, not spl_init - timer_init has been invoked in arch_cpu_init Signed-off-by: Peng Fan --- board/freescale/imx8mp_evk/spl.c | 28 ++-- 1

[PATCH V2 1/2] imx: imx8mp_evk: fix boot issue

2020-05-10 Thread Peng Fan
The u-boot-spl.bin pad with ddr firmware conflicts with the CONFIG_MALLOC_F_ADDR area, the ddr firmware will be overwritten by malloc in SPL stage and cause ddr initialization not able to finish. So update the related addresses to fix the issue. Reported-by: Fabio Estevam Signed-off-by: Peng Fan

[PATCH V2 2/2] imx8mp_evk: simplify board spl code

2020-05-10 Thread Peng Fan
Simplify board SPL code - BSS area will be cleared by crt0_64.S - No need to get ccm device in spl_board_init - Use spl_early_init, not spl_init - timer_init has been invoked in arch_cpu_init Signed-off-by: Peng Fan --- V2: Fix build warning board/freescale/imx8mp_evk/spl.c | 30

[PATCH] armv8: cache_v8: fix mmu_set_region_dcache_behaviour

2020-05-11 Thread Peng Fan
enum dcache_option already shift left 2 bits, PMD_ATTRINDX(option), will wrongly shift left the attr 4bits, which is wrong. And make the region user set not has expected attribute and might affect the splitted block region. Reviewed-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/cpu/armv8

[PATCH 1/6] imx8: misc: use arm_smccc_smc

2020-05-11 Thread Peng Fan
Use arm_smccc_smc to replace call_imx_sip Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8/misc.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/imx8/misc.c b/arch/arm/mach-imx/imx8/misc.c index 76d6571d8b..f3fdd22d28 100644 --- a/arch/arm/mach

[PATCH 0/6] imx: clean up sip file

2020-05-11 Thread Peng Fan
No need keep imx sip code, since we could use arm_smccc_smc Peng Fan (6): imx8: misc: use arm_smccc_smc imx8m: soc: use arm_smccc_smc imx: bootaux: use arm_smccc_smc imx8: fuse: use arm_smccc_smc imx: power-domain: use arm_smccc_smc imx: remove imx sip file arch/arm/mach-imx

[PATCH 2/6] imx8m: soc: use arm_smccc_smc

2020-05-11 Thread Peng Fan
Use arm_smccc_smc to replace call_imx_sip Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/soc.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c index 347fd6d0ad..e6863ab5cf 100644 --- a/arch/arm/mach

[PATCH 3/6] imx: bootaux: use arm_smccc_smc

2020-05-11 Thread Peng Fan
Use arm_smccc_smc to replace call_imx_sip Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx_bootaux.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/imx_bootaux.c b/arch/arm/mach-imx/imx_bootaux.c index ec0da1164f..908125fff7 100644 --- a/arch

[PATCH 6/6] imx: remove imx sip file

2020-05-11 Thread Peng Fan
We have switch to use arm_smccc_smc, no need to keep i.MX specific sip wrapper. Signed-off-by: Peng Fan --- arch/arm/mach-imx/Makefile | 2 +- arch/arm/mach-imx/sip.c| 46 -- 2 files changed, 1 insertion(+), 47 deletions(-) delete mode 100644

[PATCH 4/6] imx8: fuse: use arm_smccc_smc

2020-05-11 Thread Peng Fan
Use arm_smccc_smc to replace call_imx_sip Signed-off-by: Peng Fan --- drivers/misc/imx8/fuse.c | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/drivers/misc/imx8/fuse.c b/drivers/misc/imx8/fuse.c index 4d7f2f524d..be18122937 100644 --- a/drivers/misc/imx8

[PATCH 5/6] imx: power-domain: use arm_smccc_smc

2020-05-11 Thread Peng Fan
Use arm_smccc_smc to replace call_imx_sip Signed-off-by: Peng Fan --- drivers/power/domain/imx8m-power-domain.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/power/domain/imx8m-power-domain.c b/drivers/power/domain/imx8m-power-domain.c index 5b6467cda7

[PATCH 1/8] driver: ddr: imx: skip ddr_ss_gpr config on imx8mn

2020-05-11 Thread Peng Fan
From: Jacky Bai There is no DDR_SS_GPR0 exits on i.MX8MN, so skip setting this register on i.MX8MN. Signed-off-by: Jacky Bai Signed-off-by: Peng Fan --- drivers/ddr/imx/imx8m/ddr_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ddr/imx/imx8m/ddr_init.c b

[PATCH 3/8] imx8mp: ddr: Add inline ECC feature support

2020-05-11 Thread Peng Fan
From: Sherry Sun Add inline ECC support for lpddr4 on imx8mp-evk. And add a config which can enable/disable inline ECC feature for lpddr4 on imx8mp-evk board. Signed-off-by: Sherry Sun Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8m/ddr.h | 7 +++ board/freescale/imx8mp_evk

[PATCH 2/8] driver: ddr: imx: correct the pwrctl setting of selfref_en on imx8m

2020-05-11 Thread Peng Fan
From: Jacky Bai The 'selfref_en' should be bit'0', so correct the setting to enable the auto self-refresh. Reviewed-by: Jian Li Reviewed-by: Ye Li Signed-off-by: Jacky Bai Signed-off-by: Peng Fan --- drivers/ddr/imx/imx8m/ddr_init.c | 2 +- 1 file changed, 1 inse

[PATCH 0/8] imx: drivers: ddr: ddr driver update

2020-05-11 Thread Peng Fan
This is to upstream NXP vendor tree ddr driver related fix and update Jacky Bai (2): driver: ddr: imx: skip ddr_ss_gpr config on imx8mn 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:

[PATCH 4/8] drivers: ddr: imx8m: add print for DRAM rate

2020-05-11 Thread Peng Fan
From: Ye Li Enable print to show the DRAM rate of current setting and training result. Reviewed-by: Peng Fan Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/ddr/imx/imx8m/ddr_init.c | 7 --- drivers/ddr/imx/imx8m/ddrphy_utils.c | 2 +- 2 files changed, 5 insertions(+), 4

RE: Status i.MX U-Boot patches

2020-05-11 Thread Peng Fan
Hi Stefano, > Subject: Status i.MX U-Boot patches > > Sorry, forgotten ML... > > Hi Fabio, Peng, > > I have thought about how to handle Peng's last series and I came to the > decision to merge them as soon as possible, letting some more time for fixes > if > required. Thanks for merging the p

RE: [PATCH V2 1/2] imx: imx8mp_evk: fix boot issue

2020-05-11 Thread Peng Fan
> Subject: Re: [PATCH V2 1/2] imx: imx8mp_evk: fix boot issue > > Hi Peng, > > On Mon, May 11, 2020 at 3:55 AM Peng Fan wrote: > > > > The u-boot-spl.bin pad with ddr firmware conflicts with the > > CONFIG_MALLOC_F_ADDR area, the ddr firmware will be overwritt

RE: [PATCH V2 2/2] imx8mp_evk: simplify board spl code

2020-05-11 Thread Peng Fan
> Subject: Re: [PATCH V2 2/2] imx8mp_evk: simplify board spl code > > Hi Peng, > > On Mon, May 11, 2020 at 3:55 AM Peng Fan wrote: > > > > Simplify board SPL code > > - BSS area will be cleared by crt0_64.S > > - No need to get ccm device in spl_bo

RE: [PATCH 4/8] drivers: ddr: imx8m: add print for DRAM rate

2020-05-11 Thread Peng Fan
> Subject: Re: [PATCH 4/8] drivers: ddr: imx8m: add print for DRAM rate > > On 11.05.20 11:53, Peng Fan wrote: > > From: Ye Li > > > > Enable print to show the DRAM rate of current setting and training > > result. > > > > Reviewed-by: Peng Fan >

RE: [PATCH 3/8] imx8mp: ddr: Add inline ECC feature support

2020-05-11 Thread Peng Fan
> Subject: Re: [PATCH 3/8] imx8mp: ddr: Add inline ECC feature support > > Hi Peng, > > On Mon, May 11, 2020 at 6:30 AM Peng Fan wrote: > > > > From: Sherry Sun > > > > Add inline ECC support for lpddr4 on imx8mp-evk. And add a config > > which can

RE: [PATCH 1/2] imx: imx8mp_evk: fix boot issue

2020-05-11 Thread Peng Fan
> Subject: Re: [PATCH 1/2] imx: imx8mp_evk: fix boot issue > > Hi Peng, > > On Mon, May 11, 2020 at 2:55 AM Peng Fan wrote: > > > > The u-boot-spl.bin pad with ddr firmware conflicts with the > > CONFIG_MALLOC_F_ADDR area, the ddr firmware will be overwritt

[PATCH V2 1/7] driver: ddr: imx: skip ddr_ss_gpr config on imx8mn

2020-05-11 Thread Peng Fan
From: Jacky Bai There is no DDR_SS_GPR0 exits on i.MX8MN, so skip setting this register on i.MX8MN. Signed-off-by: Jacky Bai Signed-off-by: Peng Fan --- drivers/ddr/imx/imx8m/ddr_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ddr/imx/imx8m/ddr_init.c b

[PATCH V2 2/7] driver: ddr: imx: correct the pwrctl setting of selfref_en on imx8m

2020-05-11 Thread Peng Fan
From: Jacky Bai The 'selfref_en' should be bit'0', so correct the setting to enable the auto self-refresh. Reviewed-by: Jian Li Reviewed-by: Ye Li Signed-off-by: Jacky Bai Signed-off-by: Peng Fan --- drivers/ddr/imx/imx8m/ddr_init.c | 2 +- 1 file changed, 1 inse

[PATCH V2 3/7] drivers: ddr: imx8mp: Add inline ECC feature support

2020-05-11 Thread Peng Fan
curs, then there is no performance penalty accessing the non-ECC-protected memory (no need to access ECC for this portion of the memory map). This is all configured with the DRAM Controller. Signed-off-by: Sherry Sun Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8m/ddr.h | 7 d

[PATCH V2 0/7] imx: drivers: ddr: ddr driver update

2020-05-11 Thread Peng Fan
V2: Drop patch to print dram rate remove board ddr ecc part from patch enabling inline ecc feature This is to upstream NXP vendor tree ddr driver related fix and update Jacky Bai (2): driver: ddr: imx: skip ddr_ss_gpr config on imx8mn driver: ddr: imx: correct the pwrctl setting of selfref_

RE: [PATCH 1/2] imx: imx8mp_evk: fix boot issue

2020-05-11 Thread Peng Fan
> Subject: RE: [PATCH 1/2] imx: imx8mp_evk: fix boot issue > > > Subject: Re: [PATCH 1/2] imx: imx8mp_evk: fix boot issue > > > > Hi Peng, > > > > On Mon, May 11, 2020 at 2:55 AM Peng Fan wrote: > > > > > > The u-boot-spl.bin pad with ddr

[PATCH V2 0/5] imx8mp: evk: fix boot and update

2020-05-12 Thread Peng Fan
V2: Split code into minor patches Update fix boot patch, use simple malloc and drop malloc_f Tested 5.4.24 kernel, boots well. Peng Fan (5): imx8mp_evk: spl: drop useless code imx8mp_evk: spl: drop timer_init imx8mp_evk: spl: use spl_early_init imx8mp_evk: spl: no need the code since

[PATCH V2 1/5] imx8mp_evk: spl: drop useless code

2020-05-12 Thread Peng Fan
Drop useless getting ccm device, there is no need to explicted do this in board code, and we not enable SPL CLK currently. Signed-off-by: Peng Fan --- board/freescale/imx8mp_evk/spl.c | 14 -- 1 file changed, 14 deletions(-) diff --git a/board/freescale/imx8mp_evk/spl.c b/board

[PATCH V2 2/5] imx8mp_evk: spl: drop timer_init

2020-05-12 Thread Peng Fan
timer_init has been invoked in arch_cpu_init, no need to invoke it again in board code. Signed-off-by: Peng Fan --- board/freescale/imx8mp_evk/spl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/board/freescale/imx8mp_evk/spl.c b/board/freescale/imx8mp_evk/spl.c index 8151b49d97

[PATCH V2 3/5] imx8mp_evk: spl: use spl_early_init

2020-05-12 Thread Peng Fan
Use spl_early_init to replace spl_init, spl_init will be invoked in board_init_r, we only need use spl_early_init to setup malloc and scan early dt. Signed-off-by: Peng Fan --- board/freescale/imx8mp_evk/spl.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a

[PATCH V2 4/5] imx8mp_evk: spl: no need the code since spl framework could do that

2020-05-12 Thread Peng Fan
We no need invoke the code, since spl framework could help us do that. Signed-off-by: Peng Fan --- board/freescale/imx8mp_evk/spl.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/board/freescale/imx8mp_evk/spl.c b/board/freescale/imx8mp_evk/spl.c index 284d477514

[PATCH V2 5/5] imx: imx8mp_evk: fix boot issue

2020-05-12 Thread Peng Fan
The u-boot-spl.bin pad with ddr firmware conflicts with the CONFIG_MALLOC_F_ADDR area, the ddr firmware will be overwritten by malloc in SPL stage and cause ddr initialization not able to finish. So update the related addresses to fix the issue. Reported-by: Fabio Estevam Signed-off-by: Peng Fan

[PATCH 0/5] spl: imx: update and fix

2020-05-12 Thread Peng Fan
avoid copy data twice Fix stream mode for secure boot Update boot dev Drop useless node Peng Fan (4): spl: romapi: Fix issue for stream mode with secure boot enabled spl: romapi: avoid copy data when get fit image size spl: imx8m: add QSPI boot dev spl: fit: remove useless CONFIG_IMX_HAB

[PATCH 2/5] spl: romapi: avoid copy data when get fit image size

2020-05-12 Thread Peng Fan
No need to copy data when only need to get fit image size. Signed-off-by: Peng Fan --- arch/arm/mach-imx/spl_imx_romapi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/spl_imx_romapi.c b/arch/arm/mach-imx/spl_imx_romapi.c index 1a695ea837..d753d0207c

[PATCH 3/5] spl: imx: Change USB boot device type

2020-05-12 Thread Peng Fan
From: Ye Li The SPL SDP is configured as BOOT_DEVICE_BOARD, so when booting from USB, change its type to BOOT_DEVICE_BOARD, so we can use SDP. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/spl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm

[PATCH 4/5] spl: imx8m: add QSPI boot dev

2020-05-12 Thread Peng Fan
When boot type could not be detected from rom sw info, read sbmr1 to detect, here we only use it to detect FLEXSPI boot, because ROM not update it in rom sw info. Signed-off-by: Peng Fan --- arch/arm/mach-imx/cpu.c | 6 -- arch/arm/mach-imx/spl.c | 2 ++ 2 files changed, 6 insertions(+), 2

[PATCH 1/5] spl: romapi: Fix issue for stream mode with secure boot enabled

2020-05-12 Thread Peng Fan
it will alway fail. This patch skip the authentication only for this tricky using. Signed-off-by: Peng Fan --- arch/arm/mach-imx/spl_imx_romapi.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/mach-imx/spl_imx_romapi.c b/arch/arm/mach-imx/spl_imx_romapi.c index

[PATCH 5/5] spl: fit: remove useless CONFIG_IMX_HAB

2020-05-12 Thread Peng Fan
No need to guard code with CONFIG_IMX_HAB, there is already a weak function. Signed-off-by: Peng Fan --- common/spl/spl_fit.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c index c51e4beb1c..3e5648b4eb 100644 --- a/common/spl/spl_fit.c +++ b

RE: [PATCH 2/5] spl: romapi: avoid copy data when get fit image size

2020-05-12 Thread Peng Fan
> Subject: [PATCH 2/5] spl: romapi: avoid copy data when get fit image size > Drop this patch, this is wrong. Regards, Peng. > No need to copy data when only need to get fit image size. > > Signed-off-by: Peng Fan > --- > arch/arm/mach-imx/spl_imx_romapi.c | 4 ++--

RE: [PATCH 0/5] spl: imx: update and fix

2020-05-12 Thread Peng Fan
> Subject: [PATCH 0/5] spl: imx: update and fix Push button fast, wrong version. will post v2 after fix. > > avoid copy data twice > Fix stream mode for secure boot > Update boot dev > Drop useless node > > Peng Fan (4): > spl: romapi: Fix issue for stream mo

RE: [PATCH V2 1/5] imx8mp_evk: spl: drop useless code

2020-05-12 Thread Peng Fan
> Subject: Re: [PATCH V2 1/5] imx8mp_evk: spl: drop useless code > > Hi Peng, > > On Tue, May 12, 2020 at 6:16 AM Peng Fan wrote: > > > > Drop useless getting ccm device, there is no need to explicted do this > > in board code, and we not enable SPL CLK curre

RE: [PATCH 1/2] mmc: sdhci: Use debug for not supported SDMA info message

2020-05-12 Thread Peng Fan
A; > } else { > - printf("%s: Your controller doesn't support SDMA!!\n", > -__func__); > + debug("%s: Your controller doesn't support SDMA!!\n", > + __func__); > } > #endif > #if CONFIG_IS_ENABLED(MMC_SDHCI_ADMA) > -- Reviewed-by: Peng Fan

RE: [PATCH 2/2] configs: rpi_arm64: enable SDHCI SDMA support

2020-05-12 Thread Peng Fan
CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y > CONFIG_DM_KEYBOARD=y > CONFIG_DM_MMC=y > CONFIG_MMC_SDHCI=y > +CONFIG_MMC_SDHCI_SDMA=y > CONFIG_MMC_SDHCI_BCM2835=y > CONFIG_DM_ETH=y > CONFIG_BCMGENET=y Reviewed-by: Peng Fan

RE: [ANN] U-Boot v2020.07-rc2 released

2020-05-16 Thread Peng Fan
Hi Tom, > -Original Message- > From: U-Boot On Behalf Of Tom Rini > Sent: 2020年5月12日 6:29 > To: u-boot@lists.denx.de > Cc: u-boot-custodi...@lists.denx.de; > u-boot-board-maintain...@lists.denx.de > Subject: [ANN] U-Boot v2020.07-rc2 released > > Hey all, > > It's release day and I've t

RE: [PATCH v2 0/3] Support SDMA mode on RPI4 target - 32bit

2020-03-17 Thread Peng Fan
> Subject: Re: [PATCH v2 0/3] Support SDMA mode on RPI4 target - 32bit > > Hi > > Is there any comment or plan to apply? Sorry, I missed this patchset. Will pick it up. Thanks, Peng. > > Best Regards, > Jaehoon Chung > > On 2/18/20 10:25 AM, Jaehoon Chung wrote: > > RPI4's SDHCI controller i

RE: [PATCH v2 0/3] Support SDMA mode on RPI4 target - 32bit

2020-03-22 Thread Peng Fan
Hi Jaehoon, > Subject: Re: [PATCH v2 0/3] Support SDMA mode on RPI4 target - 32bit > > On 3/18/20 10:00 AM, Peng Fan wrote: > >> Subject: Re: [PATCH v2 0/3] Support SDMA mode on RPI4 target - 32bit > >> > >> Hi > >> > >> Is there any

RE: [PATCH 1/1] mmc: adjust Kconfig for mmc sub-commands

2020-03-31 Thread Peng Fan
ard. > > -config CMD_BKOPS_ENABLE > - bool "mmc bkops enable" > - depends on CMD_MMC > - default n > - help > - Enable command for setting manual background operations > handshake > - on a eMMC device. The feature is optionally available on eMMC > devices > - conforming to standard >= 4.41. > - > config CMD_BLOCK_CACHE > bool "blkcache - control and stats for block cache" > depends on BLOCK_CACHE Reviewed-by: Peng Fan > -- > 2.20.1

RE: i.MX8QXP hangs in SPL after a "reboot" command

2020-04-07 Thread Peng Fan
> Subject: Re: i.MX8QXP hangs in SPL after a "reboot" command > > On Thu, Apr 2, 2020 at 4:21 PM Fabio Estevam > wrote: > > > U-Boot SPL 2020.04-rc4-00061-ge0718b3ab7 (Apr 02 2020 - 16:14:22 > > -0300) Normal Boot > > WDT: Not found! > > Trying to boot from MMC2_2 > > spl: mmc init failed with

RE: i.MX8QXP hangs in SPL after a "reboot" command

2020-04-07 Thread Peng Fan
> Subject: Re: i.MX8QXP hangs in SPL after a "reboot" command > > Hi Peng, > > On Tue, Apr 7, 2020 at 9:47 PM Peng Fan wrote: > > > > > Subject: Re: i.MX8QXP hangs in SPL after a "reboot" command > > > > > > On Thu, Apr 2,

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