[U-Boot] [PATCH 10/10] imx8mm: evk: enable bd71837 pmic

2019-10-16 Thread Peng Fan
Enable bd71837 pmic for i.MX8MM EVK board, need to set voltage for DRAM and linux suspend voltage requirement. Signed-off-by: Peng Fan --- arch/arm/dts/imx8mm-evk-u-boot.dtsi | 20 ++ board/freescale/imx8mm_evk/spl.c| 41 + configs

[U-Boot] [PATCH 07/10] pmic: bd71837: drop DEBUG macro

2019-10-16 Thread Peng Fan
Drop DEBUG macro definition which is used for debug purpose. Signed-off-by: Peng Fan --- drivers/power/pmic/bd71837.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/power/pmic/bd71837.c b/drivers/power/pmic/bd71837.c index e292d42a8c..2e04298273 100644 --- a/drivers/power/pmic

[U-Boot] [PATCH 08/10] power: pmic: Kconfig: add CONFIG_SPL_DM_PMIC_BD71837

2019-10-16 Thread Peng Fan
Add CONFIG_SPL_DM_PMIC_BD71837 to make this driver could be used in SPL stage Signed-off-by: Peng Fan --- drivers/power/pmic/Kconfig | 8 1 file changed, 8 insertions(+) diff --git a/drivers/power/pmic/Kconfig b/drivers/power/pmic/Kconfig index 586772fdec..4718dc700c 100644

[U-Boot] [PATCH 09/10] imx8m: evk: spl: probe clk in spl early stage

2019-10-16 Thread Peng Fan
We are going to add i2c pmic support before dram could be used. So we need enable clk driver earlier, so use spl_early_init and move clock controller probe eariler to board_init_f. Signed-off-by: Peng Fan --- board/freescale/imx8mm_evk/spl.c | 22 +++--- 1 file changed, 11

[U-Boot] [PATCH 06/10] arm: dts: imx8mm: sync dts from Linux Kernel

2019-10-16 Thread Peng Fan
Sync dts for i.MX8MM from Linux Kernel 5.4.0-rc1 Signed-off-by: Peng Fan --- arch/arm/dts/imx8mm-evk-u-boot.dtsi | 2 +- arch/arm/dts/imx8mm-evk.dts | 285 +++- arch/arm/dts/imx8mm.dtsi| 222 ++-- 3 files changed, 459

[U-Boot] [PATCH 03/10] imx: imx8mq: add init_nand_clk

2019-10-16 Thread Peng Fan
Add init_nand_clk to enable gpmi nand clock. Since i.MX8MQ not use CCF, so we still use legacy mode to configure the clock. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8m/clock_imx8mq.h | 2 ++ arch/arm/mach-imx/imx8m/clock_imx8mq.c | 9 + 2 files changed, 11

[U-Boot] [PATCH 04/10] imx: spl: implement spl_boot_mode for i.MX7/8/8M

2019-10-16 Thread Peng Fan
It will be easy to separate SD/EMMC when booting in SPL stage, then no need to bother which device is BOOT_DEVICE_MMC1/2. Signed-off-by: Peng Fan --- arch/arm/mach-imx/spl.c | 29 + 1 file changed, 29 insertions(+) diff --git a/arch/arm/mach-imx/spl.c b/arch/arm

[U-Boot] [PATCH 05/10] dt-bindings: import usb pd

2019-10-16 Thread Peng Fan
Import usb pd bindings from Linux 5.4.0-rc1. This file will be included by imx8mm-evk.dts. Signed-off-by: Peng Fan --- include/dt-bindings/usb/pd.h | 88 1 file changed, 88 insertions(+) create mode 100644 include/dt-bindings/usb/pd.h diff --git

[U-Boot] [PATCH 02/10] imx8m: clock: improve irq response latency

2019-10-16 Thread Peng Fan
Improve the IRQ response latency by setting GIC root clock source to sys_pll2_200m from osc. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/clock_imx8mq.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-imx/imx8m/clock_imx8mq.c b/arch/arm/mach-imx/imx8m

[U-Boot] [PATCH 01/10] imx8m: imx8mq: get chip rev for B1 revision

2019-10-16 Thread Peng Fan
The i.MX8MQ B1 uses OCOTP_HW_OCOTP_READ_FUSE_DATA register for chip id. It returns a magic number 0xff0055aa. update get_cpu_rev to support it, and enable ocotp clock to access ocotp. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/clock_imx8mq.c | 1 + arch/arm/mach-imx/imx8m/soc.c

[U-Boot] [PATCH 00/10] Enable i.MX8MM EVK BD71837 pmic

2019-10-16 Thread Peng Fan
This patch is to enable BD71837 pmic for i.MX8MM EVK. Two i.MX8MQ patches are also included. Peng Fan (10): imx8m: imx8mq: get chip rev for B1 revision imx8m: clock: improve irq response latency imx: imx8mq: add init_nand_clk imx: spl: implement spl_boot_mode for i.MX7/8/8M dt-bindings

[U-Boot] [PATCH] imx: imx8m: fix boot when CONFIG_$(SPL_)CLK not defined

2019-10-15 Thread Peng Fan
When CONFIG_$(SPL_)CLK not defined, the clock controller device not exist, so to avoid boot failure for platform not have CONFIG_$(SPL_)CLK, add a check. Reviewed-by: Patrick Wildt Tested-by: Patrick Wildt Signed-off-by: Peng Fan --- V1: Based on pull request https://github.com/MrVan/u-boot

Re: [U-Boot] [PATCH] imx: update i.MX8MQ device trees

2019-10-15 Thread Peng Fan
he previous device tree: > > * Keep the PSCI reserved memory range > * Keep the alias for ethernet, so that the MAC address can be set > * Keep the modified #include for the IOMUXC pins > > Signed-off-by: Patrick Wildt Acked-by: Peng Fan > --- > arch/arm/dts/Makefil

Re: [U-Boot] [PATCH] imx: update i.MX8MQ device trees

2019-10-15 Thread Peng Fan
> Subject: [PATCH] imx: update i.MX8MQ device trees > > This updates the i.MX8MQ device trees and, necessarily, also the > i.MX8MQ clock bindings. These are taken verbatim from from the > Linux kernel version v5.4-rc2, which three small changes which > were already part of the previous device

Re: [U-Boot] [PATCH] imx: require CCM driver only on i.MX8MM

2019-10-15 Thread Peng Fan
> Subject: [PATCH] imx: require CCM driver only on i.MX8MM > > Since there is no clock driver like that for i.MX8MQ, we cannot require it on > that platform, so make sure it is only built for i.MX8MM. This makes > i.MX8MQ platforms work again. I would add this: diff --git

Re: [U-Boot] [NXP-IMX] please pull imx-master-10-14

2019-10-15 Thread Peng Fan
Hi Stefano, > > > Subject: Re: [NXP-IMX] please pull imx-master-10-14 > > > > Hi Peng, > > > > On 14/10/19 11:48, Peng Fan wrote: > > > Hi Stefano, > > > > > > Please pull imx-master-10-14. This pull request was based on imx/master.

Re: [U-Boot] [NXP-IMX] please pull imx-master-10-14

2019-10-14 Thread Peng Fan
> Subject: Re: [NXP-IMX] please pull imx-master-10-14 > > Hi Peng, > > On 14/10/19 11:48, Peng Fan wrote: > > Hi Stefano, > > > > Please pull imx-master-10-14. This pull request was based on imx/master. > > > > I have 40 patches already applied in m

[U-Boot] [NXP-IMX] please pull imx-master-10-14

2019-10-14 Thread Peng Fan
/u-boot.git imx-master-10-14 for you to fetch changes up to 2959d05c04516e0dddfb0d14a6f2190e43ad8c41: imx8qxp: mek: add secure boot script (2019-10-14 10:12:00 +0800) Peng Fan (27): imx: imx8mm_evk: add board_mmc_get_env_dev

[U-Boot] [PULL] u-boot-mmc mmc-10-10-2019

2019-10-13 Thread Peng Fan
Hi Tom, Please pull u-boot-mmc mmc-10-10-2019 Add sdhci driver for Broadcom iProc platform add a driver callback for power-cycle for mmc implement host_power_cycle callback for stm32_sdmmc2 spl: dm_mmc: Initialize only the required mmc

Re: [U-Boot] [PATCH] spl: mmc: Add option to set eMMC HW boot partition

2019-10-10 Thread Peng Fan
Hi Tom, > Subject: Re: [PATCH] spl: mmc: Add option to set eMMC HW boot partition > > On Wed, Oct 09, 2019 at 11:07:18AM +0200, Lukasz Majewski wrote: > > Dear Tom, > > > > > From: Mans Rullgard > > > > > > This change allows setting pre-defined eMMC boot partition for SPL > > > eMMC booting.

Re: [U-Boot] [PATCH 2/3] ARM: imx6q_logic: Enable Pin muxing in SPL

2019-10-10 Thread Peng Fan
> CONFIG_MII=y > CONFIG_PINCTRL=y > +CONFIG_SPL_PINCTRL=y > CONFIG_PINCTRL_IMX6=y > CONFIG_DM_PMIC_PFUZE100=y > CONFIG_DM_REGULATOR=y Reviewed-by: Peng Fan > -- > 2.17.1 ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 3/3] video: mxsfb: set gd->fb_base

2019-10-09 Thread Peng Fan
> Subject: [PATCH 3/3] video: mxsfb: set gd->fb_base > > Set gd->fb_base so it can be shown with bdinfo command. > > Signed-off-by: Sébastien Szymanski > --- > drivers/video/mxsfb.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index >

Re: [U-Boot] [PATCH 2/3] opos6uldev: migrate to DM_VIDEO

2019-10-09 Thread Peng Fan
gt; +#define CONFIG_BMP_24BPP > +#define CONFIG_BMP_32BPP > #define CONFIG_VIDEO_MXS > #define MXS_LCDIF_BASE MX6UL_LCDIF1_BASE_ADDR #endif @@ -87,6 > +89,8 @@ > "mmcroot=/dev/mmcblk0p2 ro\0" > \ > "mmcrootfstype=ext4 rootwait\0" &

Re: [U-Boot] [PATCH 1/3] imx6ul: opos6ul: migrate to DM_ETH

2019-10-09 Thread Peng Fan
.h b/include/configs/opos6uldev.h index > b13e476027..b10071eaaf 100644 > --- a/include/configs/opos6uldev.h > +++ b/include/configs/opos6uldev.h > @@ -41,14 +41,6 @@ > #define CONFIG_USB_MAX_CONTROLLER_COUNT 2 > #endif > > -/* Ethernet */ > -#ifdef CONFIG_FEC_MXC > -#define IMX_FEC_BASE ENET_BASE_ADDR > -#define CONFIG_FEC_MXC_PHYADDR 0x1 > -#define CONFIG_FEC_XCV_TYPE RMII > -#define CONFIG_ETHPRIME "FEC" > -#endif > - > /* LCD */ > #ifndef CONFIG_SPL_BUILD > #ifdef CONFIG_VIDEO Reviewed-by: Peng Fan > -- > 2.21.0 ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH] spl: dm_mmc: Initialize only the required mmc device

2019-10-08 Thread Peng Fan
> Subject: Re: [PATCH] spl: dm_mmc: Initialize only the required mmc device > > Hi Peng, > > On 10/09/19 7:50 AM, Peng Fan wrote: > >> Subject: [PATCH] spl: dm_mmc: Initialize only the required mmc device > >> > >> In SPL, all the availabl

[U-Boot] [PATCH] imx: imx8mm_evk: add board_mmc_get_env_dev

2019-10-08 Thread Peng Fan
Add board_mmc_get_env_dev to correctly return devno for mmc env Signed-off-by: Peng Fan --- board/freescale/imx8mm_evk/imx8mm_evk.c | 5 + 1 file changed, 5 insertions(+) diff --git a/board/freescale/imx8mm_evk/imx8mm_evk.c b/board/freescale/imx8mm_evk/imx8mm_evk.c index 3706e1ec55

Re: [U-Boot] [PATCH V3 27/27] imx: Add i.MX8MM EVK board support.

2019-10-08 Thread Peng Fan
Hi Tim, > Subject: Re: [U-Boot] [PATCH V3 27/27] imx: Add i.MX8MM EVK board > support. > > On Mon, Aug 26, 2019 at 11:28 PM Peng Fan wrote: > > > > > diff --git a/board/freescale/imx8mm_evk/README > > b/board/freescale/imx8mm_evk/README > > new file mode

[U-Boot] [PATCH V3 2/2] core: device: use dev_power_domain_on

2019-09-26 Thread Peng Fan
When multiple power domains attached to a device, need power on them all, so use dev_power_domain_on to do that. Signed-off-by: Peng Fan Reviewed-by: Simon Glass --- V3: Add R-b tag V2: Use dev_power_domain_on drivers/core/device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions

[U-Boot] [PATCH V3 1/2] power: domain: add dev_power_domain_on

2019-09-26 Thread Peng Fan
Add this new API to power on multiple domains attached to a device. Signed-off-by: Peng Fan Reviewed-by: Lokesh Vutla Reviewed-by: Simon Glass --- V3: Fix build break Add R-b tag V2: create dev_power_domain_on drivers/power/domain/power-domain-uclass.c | 22

[U-Boot] [PATCH 2/3] imx8qm: mek: add secure boot script

2019-09-25 Thread Peng Fan
Add secure boot script, use ahab to verify image Signed-off-by: Peng Fan --- include/configs/imx8qm_mek.h | 64 +--- 1 file changed, 49 insertions(+), 15 deletions(-) diff --git a/include/configs/imx8qm_mek.h b/include/configs/imx8qm_mek.h index

[U-Boot] [PATCH 1/3] imx8: Add AHAB secure boot support

2019-09-25 Thread Peng Fan
ding container images. Users can set CONFIG_AHAB_BOOT=y to enable the feature. It is not set at default. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8/Kconfig | 5 + arch/arm/mach-imx/imx8/ahab.c| 347 +++ arch/arm

[U-Boot] [PATCH 3/3] imx8qxp: mek: add secure boot script

2019-09-25 Thread Peng Fan
Add secure boot script, use ahab to verify image Signed-off-by: Peng Fan --- include/configs/imx8qxp_mek.h | 64 +-- 1 file changed, 49 insertions(+), 15 deletions(-) diff --git a/include/configs/imx8qxp_mek.h b/include/configs/imx8qxp_mek.h index

Re: [U-Boot] [PATCH] mmc: am654_sdhci: Drop a redundant power_domain_on in probe

2019-09-24 Thread Peng Fan
", ret); > - return ret; > - } > - > ret = clk_get_by_index(dev, 0, ); > if (ret) { > dev_err(dev, "failed to get clock\n"); Reviewed-by: Peng Fan > -- > 2.22.0 ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH V2 2/2] core: device: use dev_power_domain_on

2019-09-24 Thread Peng Fan
Hi Lokesh, > Subject: Re: [PATCH V2 2/2] core: device: use dev_power_domain_on > > > > On 17/09/19 2:59 PM, Peng Fan wrote: > > When multiple power domains attached to a device, need power on them > > all, so use dev_power_domain_on to do that. >

Re: [U-Boot] [PATCH] imx: mx6ul_14x14_evk: fix link issue

2019-09-23 Thread Peng Fan
; logo code and do not link, fix them. > > Signed-off-by: Anatolij Gustschin Acked-by: Peng Fan > --- > .../mx6ul_14x14_evk/mx6ul_14x14_evk.c | 19 ++- > configs/mx6ul_14x14_evk_defconfig | 1 + > configs/mx6ul_9x9_evk_defconfig

[U-Boot] [PATCH] misc: imx8: add more scfw api

2019-09-23 Thread Peng Fan
Add more scfw api for clk/partition/seco usage The api will be used by ccf/partition/secure boot. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8/sci/rpc.h | 24 + arch/arm/include/asm/arch-imx8/sci/sci.h | 42 +- arch/arm/include/asm/arch-imx8/sci/svc/seco/api.h

[U-Boot] [PATCH V2 8/9] spl: spi: support loading i.MX container format file

2019-09-22 Thread peng . fan
From: Peng Fan i.MX8 only support AHAB secure boot with Container format image, we could not use FIT to support secure boot, so introduce container support to let SPL could load container images. Cc: Simon Goldschmidt Cc: Tien Fong Chee Cc: York Sun Cc: Marek Vasut Cc: Alex Kiernan Cc

[U-Boot] [PATCH V2 4/9] spl: nand: Introduce spl_nand_get_uboot_raw_page

2019-09-22 Thread peng . fan
From: Peng Fan Introduce weak spl_nand_get_uboot_raw_page, then platform could have their own implementation. Signed-off-by: Peng Fan Cc: Simon Goldschmidt Cc: Tien Fong Chee Cc: Marek Vasut Cc: Andreas Dannenberg Cc: Alex Kiernan Cc: Stefan Roese Cc: Patrick Delaunay Cc: Miquel Raynal

[U-Boot] [PATCH V2 3/9] spl: nor: introduce spl_nor_get_uboot_base

2019-09-22 Thread peng . fan
From: Peng Fan Introduce weak spl_nor_get_uboot_base, then platform have their own implementation. Signed-off-by: Peng Fan Cc: Simon Goldschmidt Cc: Tien Fong Chee Cc: Marek Vasut Cc: Andreas Dannenberg Cc: Alex Kiernan Cc: Stefan Roese Cc: Patrick Delaunay Cc: Miquel Raynal Cc: Michal

[U-Boot] [PATCH V2 7/9] spl: nand: support loading i.MX container format file

2019-09-22 Thread peng . fan
From: Peng Fan i.MX8 only support AHAB secure boot with Container format image, we could not use FIT to support secure boot, so introduce container support to let SPL could load container images. Cc: Simon Goldschmidt Cc: Tien Fong Chee Cc: York Sun Cc: Marek Vasut Cc: Alex Kiernan Cc

[U-Boot] [PATCH V2 2/9] spl: spi: introduce spl_spi_get_uboot_offs

2019-09-22 Thread peng . fan
From: Peng Fan Introduce a weak function spl_spi_get_uboot_offs, then platform could have their own implementation. Signed-off-by: Peng Fan Cc: Simon Goldschmidt Cc: Tien Fong Chee Cc: Marek Vasut Cc: Andreas Dannenberg Cc: Alex Kiernan Cc: Stefan Roese Cc: Patrick Delaunay Cc: Miquel

[U-Boot] [PATCH V2 9/9] spl: nor: support loading i.MX container format file

2019-09-22 Thread peng . fan
From: Peng Fan i.MX8 only support AHAB secure boot with Container format image, we could not use FIT to support secure boot, so introduce container support to let SPL could load container images. Cc: Simon Goldschmidt Cc: Tien Fong Chee Cc: York Sun Cc: Marek Vasut Cc: Alex Kiernan Cc

[U-Boot] [PATCH V2 5/9] imx8: Add support to get container image set size

2019-09-22 Thread peng . fan
From: Peng Fan To avoid hardcoded offset when adding u-boot.cnt to flash.bin, we use flexible offset which is calculated based on the size of the container image generated int the first stage. And pad u-boot.cnt at 1KB alignment. So add code to get the offset when SPL loading u-boot.cnt

[U-Boot] [PATCH V2 1/9] spl: mmc: introduce spl_mmc_get_uboot_raw_sector

2019-09-22 Thread peng . fan
From: Peng Fan Introduce a weak function spl_mmc_get_uboot_raw_sector, then platform could have their own implementation. Signed-off-by: Peng Fan Cc: Simon Goldschmidt Cc: Tien Fong Chee Cc: Marek Vasut Cc: Andreas Dannenberg Cc: Alex Kiernan Cc: Stefan Roese Cc: Patrick Delaunay Cc

[U-Boot] [PATCH V2 6/9] imx8: update README

2019-09-22 Thread peng . fan
From: Peng Fan After u-boot.cnt is padded to flash.bin automatically by script, no need to burn the image mannually, so drop the step. Signed-off-by: Peng Fan --- V2: None board/freescale/imx8qm_mek/README | 1 - board/freescale/imx8qxp_mek/README | 1 - 2 files changed, 2 deletions

Re: [U-Boot] [PATCH 2/6] spl: spi: introduce spl_spi_get_uboot_raw_sector

2019-09-20 Thread Peng Fan
> Subject: Re: [PATCH 2/6] spl: spi: introduce spl_spi_get_uboot_raw_sector > > Hi Peng, > > On 20.09.19 05:27, Peng Fan wrote: > > Introduce a weak function spl_spi_get_uboot_raw_sector, then platform > > could have their own implementation. > > > >

[U-Boot] [PATCH 5/6] imx8: Add support to get container image set size

2019-09-19 Thread Peng Fan
Signed-off-by: Peng Fan --- arch/arm/mach-imx/Makefile | 9 +- arch/arm/mach-imx/imx8/Makefile | 2 +- arch/arm/mach-imx/imx8/image.c | 246 3 files changed, 255 insertions(+), 2 deletions(-) create mode 100644 arch/arm/mach-imx/imx8/image.c

[U-Boot] [PATCH 6/6] imx8: update README

2019-09-19 Thread Peng Fan
After u-boot.cnt is padded to flash.bin automatically by script, no need to burn the image mannually, so drop the step. Signed-off-by: Peng Fan --- board/freescale/imx8qm_mek/README | 1 - board/freescale/imx8qxp_mek/README | 1 - 2 files changed, 2 deletions(-) diff --git a/board/freescale

[U-Boot] [PATCH 4/6] spl: nand: Introduce spl_nand_get_uboot_raw_page

2019-09-19 Thread Peng Fan
Introduce weak spl_nand_get_uboot_raw_page, then platform could have their own implementation. Signed-off-by: Peng Fan Cc: Simon Goldschmidt Cc: Tien Fong Chee Cc: Marek Vasut Cc: Andreas Dannenberg Cc: Alex Kiernan Cc: Stefan Roese Cc: Patrick Delaunay Cc: Miquel Raynal Cc: Michal Simek

[U-Boot] [PATCH 2/6] spl: spi: introduce spl_spi_get_uboot_raw_sector

2019-09-19 Thread Peng Fan
Introduce a weak function spl_spi_get_uboot_raw_sector, then platform could have their own implementation. Signed-off-by: Peng Fan Cc: Simon Goldschmidt Cc: Tien Fong Chee Cc: Marek Vasut Cc: Andreas Dannenberg Cc: Alex Kiernan Cc: Stefan Roese Cc: Patrick Delaunay Cc: Miquel Raynal Cc

[U-Boot] [PATCH 3/6] spl: nor: introduce spl_nor_get_uboot_base

2019-09-19 Thread Peng Fan
Introduce weak spl_nor_get_uboot_base, then platform have their own implementation. Signed-off-by: Peng Fan Cc: Simon Goldschmidt Cc: Tien Fong Chee Cc: Marek Vasut Cc: Andreas Dannenberg Cc: Alex Kiernan Cc: Stefan Roese Cc: Patrick Delaunay Cc: Miquel Raynal Cc: Michal Simek

[U-Boot] [PATCH 1/6] spl: mmc: introduce spl_mmc_get_uboot_raw_sector

2019-09-19 Thread Peng Fan
Introduce a weak function spl_mmc_get_uboot_raw_sector, then platform could have their own implementation. Signed-off-by: Peng Fan Cc: Simon Goldschmidt Cc: Tien Fong Chee Cc: Marek Vasut Cc: Andreas Dannenberg Cc: Alex Kiernan Cc: Stefan Roese Cc: Patrick Delaunay Cc: Miquel Raynal Cc

[U-Boot] [PATCH 2/2] tools: imx8mimage: add SECOND_LOADER_IVT

2019-09-19 Thread Peng Fan
SECOND_LOADER. The example is: SECOND_LOADER_IVT u-boot.itb 0x4020 0x0 Signed-off-by: Peng Fan --- include/imximage.h | 1 + tools/imx8mimage.c | 42 +++--- 2 files changed, 40 insertions(+), 3 deletions(-) diff --git a/include/imximage.h b/include/imximage.h index

[U-Boot] [PATCH 1/2] tools: imx8mimage: add SOC_TYPE

2019-09-19 Thread Peng Fan
Add SOC_TYPE for i.MX8MN usage. i.MX8MN ivt_offset needs to be 0, and for flexspi, the rom_image_offset needs to be 4KB. Signed-off-by: Peng Fan --- include/imximage.h | 1 + tools/imx8mimage.c | 20 ++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/include

Re: [U-Boot] Ethernet on i.MX8MM with mainline U-Boot

2019-09-18 Thread Peng Fan
Hi Frider, > -Original Message- > From: Schrempf Frieder > Sent: 2019年9月17日 21:49 > To: Peng Fan > Cc: u-boot@lists.denx.de > Subject: Ethernet on i.MX8MM with mainline U-Boot > > Hi Peng, > > I tried to get Ethernet running on i.MX8MM with mainline U-

[U-Boot] [PATCH V2 2/2] core: device: use dev_power_domain_on

2019-09-17 Thread Peng Fan
When multiple power domains attached to a device, need power on them all, so use dev_power_domain_on to do that. Signed-off-by: Peng Fan --- V2: use dev_power_domain_on in patch 1/2 drivers/core/device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/core

[U-Boot] [PATCH V2 1/2] power: domain: add dev_power_domain_on

2019-09-17 Thread Peng Fan
Add this new API to power on multiple domains attached to a device. Signed-off-by: Peng Fan --- V2: New patch drivers/power/domain/power-domain-uclass.c | 19 +++ include/power-domain.h | 17 + 2 files changed, 36 insertions(+) diff --git

Re: [U-Boot] [PATCH v2 3/7] clk: imx8: Update imx8 clock driver

2019-09-17 Thread Peng Fan
iled: %d\n", __func__, ret); > @@ -70,21 +346,22 @@ int soc_clk_dump(void) > > if (ret == -ENOTSUPP) { > printf("clk ID %lu not supported yet\n", > - imx8_clk_names[i].id); > +clks[i].hdr.id)

Re: [U-Boot] [PATCH] core: device: support multiple power domains for one device

2019-09-17 Thread Peng Fan
Hi Simon, > Subject: Re: [PATCH] core: device: support multiple power domains for one > device > > Hi Peng, > > On Mon, 2 Sep 2019 at 04:19, Peng Fan wrote: > > > > When device has multiple power domains, power_domain_get could not > > able to support that

Re: [U-Boot] [PATCH] imx: fix missing MAINTAINERS pico boards

2019-09-16 Thread Peng Fan
ERS > +++ b/board/technexion/pico-imx7d/MAINTAINERS > @@ -8,3 +8,5 @@ F:configs/pico-imx7d_defconfig > F: configs/pico-imx7d_bl33_defconfig > F: configs/pico-hobbit-imx7d_defconfig > F: configs/pico-pi-imx7d_defconfig > +F: configs/pico-nymph-imx7d_defconfig > +F: c

Re: [U-Boot] [PATCH] core: device: support multiple power domains for one device

2019-09-16 Thread Peng Fan
> Subject: [PATCH] core: device: support multiple power domains for one device Ping.. Thanks, Peng. > > When device has multiple power domains, power_domain_get could not able > to support that. So let's iterate each power domain and enable it. > > Signed-off-by: Peng Fan

[U-Boot] [PATCH 17/17] imx: add i.MX8MN DDR4 board support

2019-09-15 Thread Peng Fan
. Hit any key to stop autoboot: 0 Signed-off-by: Peng Fan --- arch/arm/dts/Makefile|3 +- arch/arm/dts/imx8mm-evk.dts |6 +- arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi | 92 +++ arch/arm/dts/imx8mn-ddr4-evk.dts | 221 ++ arch/arm/mach-imx/imx8m

[U-Boot] [PATCH 16/17] imx: add dtsi for i.MX8MN

2019-09-15 Thread Peng Fan
Add dtsi for i.MX8MN Signed-off-by: Peng Fan --- arch/arm/dts/imx8mn-pinfunc.h| 646 arch/arm/dts/imx8mn.dtsi | 712 +++ include/dt-bindings/clock/imx8mn-clock.h | 215 ++ 3 files changed, 1573

[U-Boot] [PATCH 15/17] imx8m: add i.MX8MN ddr4 image cfg file

2019-09-15 Thread Peng Fan
Add cfg file for i.MX8MN DDR4 Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/imximage-8mn-ddr4.cfg | 17 + 1 file changed, 17 insertions(+) create mode 100644 arch/arm/mach-imx/imx8m/imximage-8mn-ddr4.cfg diff --git a/arch/arm/mach-imx/imx8m/imximage-8mn-ddr4.cfg b/arch

[U-Boot] [PATCH 14/17] clk: imx: add i.MX8MN ccf driver

2019-09-15 Thread Peng Fan
Add i.MX8MM ccf driver support. Modifed from Linux Kernel 5.3.0-rc1, drop some entries that not used in U-Boot and adapt to U-Boot CCF style. Signed-off-by: Peng Fan Cc: Lukasz Majewski --- drivers/clk/imx/Kconfig | 16 ++ drivers/clk/imx/Makefile | 2 + drivers/clk/imx/clk

[U-Boot] [PATCH 13/17] tools: imx8m_image: support ddr4 firmware

2019-09-15 Thread Peng Fan
some boards use ddr4, not lpddr4, so we need to check ddr4 firmware. Signed-off-by: Peng Fan --- tools/imx8m_image.sh | 10 ++ 1 file changed, 10 insertions(+) diff --git a/tools/imx8m_image.sh b/tools/imx8m_image.sh index 08a6a48180..603ba6e8f4 100755 --- a/tools/imx8m_image.sh +++ b

[U-Boot] [PATCH 12/17] pinctrl: imx8m: support i.MX8MN

2019-09-15 Thread Peng Fan
Support i.MX8MN in imx8m pinctrl driver Signed-off-by: Peng Fan --- drivers/pinctrl/nxp/pinctrl-imx8m.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/nxp/pinctrl-imx8m.c b/drivers/pinctrl/nxp/pinctrl-imx8m.c index 8bb03b7a62..b3844314b3 100644 --- a/drivers/pinctrl/nxp

[U-Boot] [PATCH 11/17] tools: imx8mimage: add ROM VERSION

2019-09-15 Thread Peng Fan
The IVT offset is changed on i.MX8MN. Use ROM_VERSION to pass the v1 or v2 to mkimage. v1 is for iMX8MQ and iMX8MM v2 is for iMX8M Nano (iMX8MN) Signed-off-by: Peng Fan --- include/imximage.h | 1 + tools/imx8mimage.c | 24 ++-- 2 files changed, 23 insertions(+), 2

[U-Boot] [PATCH 10/17] imx8mn: add get_boot_device

2019-09-15 Thread Peng Fan
No ROM INFO structure on iMX8MN, use new ROM API to get boot device from ROM. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/soc.c | 48 +++ 1 file changed, 48 insertions(+) diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c

[U-Boot] [PATCH 09/17] imx: cpu: restrict get_boot_device

2019-09-15 Thread Peng Fan
i.MX8MN has its own get_boot_device, so restrict with i.MX8MQ and i.MX8MM. Signed-off-by: Peng Fan --- arch/arm/mach-imx/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/cpu.c b/arch/arm/mach-imx/cpu.c index 1a36bc54fc..9df3f40b54 100644 --- a/arch/arm

[U-Boot] [PATCH 08/17] imx: add rom api support

2019-09-15 Thread Peng Fan
i.MX8MN support loading images with rom api, so we implement reuse board_return_to_bootrom to let ROM loading images. Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/sys_proto.h | 33 arch/arm/mach-imx/Kconfig | 4 + arch/arm/mach-imx/Makefile

[U-Boot] [PATCH 06/17] imx8mn: add pin header

2019-09-15 Thread Peng Fan
Add pin header for i.MX8MN Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8m/imx8mn_pins.h | 763 ++ 1 file changed, 763 insertions(+) create mode 100644 arch/arm/include/asm/arch-imx8m/imx8mn_pins.h diff --git a/arch/arm/include/asm/arch-imx8m/imx8mn_pins.h

[U-Boot] [PATCH 07/17] imx: spl: use spl_board_boot_device for i.MX8MN

2019-09-15 Thread Peng Fan
i.MX8MN follow same logic as i.MX8MM, so use spl_board_boot_device Signed-off-by: Peng Fan --- arch/arm/mach-imx/spl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/spl.c b/arch/arm/mach-imx/spl.c index 7ada60d7a2..15abf98649 100644 --- a/arch/arm/mach

[U-Boot] [PATCH 05/17] imx: add i.MX8MN PE property

2019-09-15 Thread Peng Fan
i.MX8MN does not have LVTTL, it has a PE property Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/iomux-v3.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/asm/mach-imx/iomux-v3.h b/arch/arm/include/asm/mach-imx/iomux-v3.h index 720e8f7043

[U-Boot] [PATCH 03/17] imx8m: add clk support for i.MX8MN

2019-09-15 Thread Peng Fan
i.MX8MN has similar architecture with i.MX8MM, so it could reuse the clock code of i.MX8MM, but i.MX8MN has different CCM root configurations, so need a separate root entry. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8m/clock.h| 2 +- arch/arm/include/asm/arch-imx8m

[U-Boot] [PATCH 04/17] imx8mn: set BYPASS ID SWAP to avoid AXI bus errors

2019-09-15 Thread Peng Fan
Set the BYPASS ID SWAP bit (GPR10 bit 1) in order for GPU not to generated AXI bus errors with TZC380 enabled. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m

[U-Boot] [PATCH 02/17] imx8mn: support get_cpu_rev

2019-09-15 Thread Peng Fan
Add a dummy cpu type and support get_cpu_rev for i.MX8MN Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx/cpu.h | 1 + arch/arm/include/asm/mach-imx/sys_proto.h | 1 + arch/arm/mach-imx/cpu.c | 2 ++ arch/arm/mach-imx/imx8m/soc.c | 4 +++- 4 files

[U-Boot] [PATCH 01/17] imx: add i.MX8MN kconfig entry

2019-09-15 Thread Peng Fan
Add i.MX8MN kconfig entry Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-imx/imx8m/Kconfig b/arch/arm/mach-imx/imx8m/Kconfig index f520075875..b0932f1647 100644 --- a/arch/arm/mach-imx/imx8m/Kconfig +++ b/arch

[U-Boot] [PATCH 00/17] Add i.MX8MN support

2019-09-15 Thread Peng Fan
on i.MX8MM, and ddr4 fixes. Not expect this patchset be accpeted in this release cycle, preparing for next release. Peng Fan (17): imx: add i.MX8MN kconfig entry imx8mn: support get_cpu_rev imx8m: add clk support for i.MX8MN imx8mn: set BYPASS ID SWAP to avoid AXI bus errors imx: add i.MX8MN

Re: [U-Boot] [PATCH] mmc: dw_mmc: Clean up variable name

2019-09-15 Thread Peng Fan
> Subject: [PATCH] mmc: dw_mmc: Clean up variable name Please at least write some commit message here. Thanks, Peng. > > Signed-off-by: Michael Trimarchi > --- > drivers/mmc/dw_mmc.c | 4 ++-- > include/dwmmc.h | 4 ++-- > 2 files changed, 4 insertions(+), 4 deletions(-) > > diff --git

Re: [U-Boot] [PATCH 2/4] habv4: tools: Avoid hardcoded CSF size for SPL targets

2019-09-11 Thread Peng Fan
Hi Breno, > Subject: [PATCH 2/4] habv4: tools: Avoid hardcoded CSF size for SPL targets I saw this patch in imx/master, not in Tom's tree. But this patch breaks build for other archs, such as arc and etc. Regards, Peng. > > Currently it's not possible to authenticate the U-Boot proper of >

Re: [U-Boot] [RFC PATCH v1 0/5] imx: nandbcb: support for i.MX7 and bcb only updates

2019-09-11 Thread Peng Fan
+Alice who is also working on same feature including more nand chips and i.MX family support. Regards, Peng. > Subject: [RFC PATCH v1 0/5] imx: nandbcb: support for i.MX7 and bcb only > updates > > This introduces support for writing BCB(FCB/FDDT) for i.MX7 and additional > subcommand for

[U-Boot] [NXP-IMX] please pull nxp-imx-9-11-2019

2019-09-11 Thread Peng Fan
to cacc604a32591b682b1b6440c6f48f7fcdef3f8b: imx8: cpu: fix mac fuse word for i.MX8QM (2019-09-11 20:32:07 +0800) Peng Fan (21): imx: mx6sabresd: fix usb start when DM enabled imx: imx6qdl: dtsi: move U-Boot specific change to u-boot.dtsi imx

Re: [U-Boot] [PATCH 0/3] Support distro boot in pico-imx7d BL33 case

2019-09-11 Thread Peng Fan
> -Original Message- > From: Jun Nie > Sent: 2019年9月9日 21:47 > To: Peng Fan > Cc: Stefano Babic ; Fabio Estevam ; > Otavio Salvador ; Vanessa Maegima > ; Bryan O'Donoghue > ; U-Boot Mailing List > Subject: Re: [PATCH 0/3] Support distro boot in pico-imx7d

Re: [U-Boot] [PATCH v4 0/1] imx: support i.MX8QM ROM 7720 a1 board

2019-09-10 Thread Peng Fan
> Subject: Re: [PATCH v4 0/1] imx: support i.MX8QM ROM 7720 a1 board > > On 10/09/19, Peng Fan wrote: > > > Subject: [PATCH v4 0/1] imx: support i.MX8QM ROM 7720 a1 board > > > > > > Hello list, > > > > > > need some information howto avoi

Re: [U-Boot] [PATCH v2 5/5] imx: add i.MX6ULZ board

2019-09-10 Thread Peng Fan
> Subject: Re: [U-Boot] [PATCH v2 5/5] imx: add i.MX6ULZ board > > Hi Peng, > Hi Fabio, > > On 06.09.19 09:43, Peng Fan wrote: > >> Subject: Re: [U-Boot] [PATCH v2 5/5] imx: add i.MX6ULZ board > >> > >> Hi Stefan, > >> &

Re: [U-Boot] [PATCH v4 0/1] imx: support i.MX8QM ROM 7720 a1 board

2019-09-09 Thread Peng Fan
> Subject: [PATCH v4 0/1] imx: support i.MX8QM ROM 7720 a1 board > > Hello list, > > need some information howto avoid the imx-mkimage repo and create full > boostream directly from u-boot with all the binary blobs. Try the diff, and see whether it helps. diff --git a/arch/arm/mach-imx/Makefile

Re: [U-Boot] [PATCH] spl: dm_mmc: Initialize only the required mmc device

2019-09-09 Thread Peng Fan
4 > --- a/include/mmc.h > +++ b/include/mmc.h > @@ -698,6 +698,7 @@ void mmc_destroy(struct mmc *mmc); > */ > int mmc_unbind(struct udevice *dev); > int mmc_initialize(bd_t *bis); > +int mmc_init_device(int num); > int mmc_init(struct mmc *mmc); > int mmc_send_tuning(struct mmc *mmc, u32 opcode, int *cmd_error); Reviewed-by: Peng Fan > > -- > 2.22.0 ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 1/2] Convert CONFIG_SYS_FSL_ESDHC_HAS_DDR_MODE to Kconfig

2019-09-09 Thread Peng Fan
+Y.b > -Original Message- > From: Sébastien Szymanski > Sent: 2019年9月9日 14:36 > To: Peng Fan ; u-boot@lists.denx.de > Cc: Fabio Estevam ; Otavio Salvador > > Subject: Re: [PATCH 1/2] Convert CONFIG_SYS_FSL_ESDHC_HAS_DDR_MODE > to Kconfig > > Hello, &g

Re: [U-Boot] [PATCH 1/2] Convert CONFIG_SYS_FSL_ESDHC_HAS_DDR_MODE to Kconfig

2019-09-08 Thread Peng Fan
> Subject: [PATCH 1/2] Convert CONFIG_SYS_FSL_ESDHC_HAS_DDR_MODE to > Kconfig > > This converts the following to Kconfig: > > CONFIG_SYS_FSL_ESDHC_HAS_DDR_MODE > > Signed-off-by: Sébastien Szymanski > --- > configs/warp7_defconfig | 1 + > configs/warp_defconfig | 1 + >

[U-Boot] [PULL] u-boot-mmc mmc-9-6-2019

2019-09-08 Thread Peng Fan
Hi Tom, Please pull u-boot-mmc tag mmc-9-6-2019. Bug fixes to mmc_spi Add Aspeed SD driver Fix dw_mmc timeout calculation Fix timeout values passed to mmc_wait_dat0 sdhci dt caps/mask update

Re: [U-Boot] [PATCH v2 5/5] imx: add i.MX6ULZ board

2019-09-06 Thread Peng Fan
> Subject: Re: [U-Boot] [PATCH v2 5/5] imx: add i.MX6ULZ board > > Hi Stefan, > > On Thu, Sep 5, 2019 at 5:59 AM Stefan Roese wrote: > > > a) > > Why is SPL not used in the mainline i.MX6ULL/ULZ port? The i.MX6UL > > (14x14) does use SPL. > > Yes, I think it could SPL as well. Maybe Peng can

Re: [U-Boot] [PATCH 0/3] mmc: fsl_esdhc: clean up code

2019-09-05 Thread Peng Fan
: Monday, August 19, 2019 4:28 PM > > To: u-boot@lists.denx.de; Peng Fan > > Cc: Y.b. Lu > > Subject: [PATCH 0/3] mmc: fsl_esdhc: clean up code > > > > This patch-set is to clean up fsl_esdhc code. > > > > Yangbo Lu (3): > > mmc: fsl_esdhc: mak

Re: [U-Boot] [PATCH 0/3] mmc: fsl_esdhc: clean up code

2019-09-04 Thread Peng Fan
> Subject: RE: [PATCH 0/3] mmc: fsl_esdhc: clean up code > > Any comments? I'll pick up. Regards, Peng. > Thanks:) > > > -Original Message- > > From: Yangbo Lu > > Sent: Monday, August 19, 2019 4:28 PM > > To: u-boot@lists.denx.de; Peng Fan &

Re: [U-Boot] [PATCH] imx: apalis_imx6: select MX6Q via Kconfig

2019-09-02 Thread Peng Fan
ct MX6Q > select DM > select DM_SERIAL > select DM_THERMAL Reviewed-by: Peng Fan > -- > 2.23.0 ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH] apalis_imx6: allocate specific region of memory to OP-TEE

2019-09-02 Thread Peng Fan
> Subject: [PATCH] apalis_imx6: allocate specific region of memory to OP-TEE > > OP-TEE uses the memory region defined by the maximum DRAM address > minus CONFIG_OPTEE_TZDRAM_SIZE, so subtract > CONFIG_OPTEE_TZDRAM_SIZE from the available DRAM size to avoid > conflicts. > > Signed-off-by:

Re: [U-Boot] [PATCH] apalis_imx6: add board_fit_config_name_match to support FIT in SPL

2019-09-02 Thread Peng Fan
1121,6 +1121,16 @@ void board_init_f(ulong dummy) > board_init_r(NULL, 0); > } > > +#ifdef CONFIG_SPL_LOAD_FIT > +int board_fit_config_name_match(const char *name) { > + if (!strcmp(name, "imx6-apalis")) > + return 0; > + > + return

Re: [U-Boot] [PATCH] spl: imx: only use HAB if spl fit signature is not enabled

2019-09-02 Thread Peng Fan
ulong board_spl_fit_size_align(ulong size) { > /* > @@ -285,6 +286,7 @@ void board_spl_fit_post_load(ulong load_addr, size_t > length) > hang(); > } > } > +#endif > > #endif Reviewed-by: Peng Fan > > -- > 2.23.0 ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH] apalis_imx6: fix broken fsl_esdhc_imx conversion

2019-09-02 Thread Peng Fan
d_init(int port) } #endif > > -#if defined(CONFIG_FSL_ESDHC) && defined(CONFIG_SPL_BUILD) > +#if defined(CONFIG_FSL_ESDHC_IMX) && defined(CONFIG_SPL_BUILD) > /* use the following sequence: eMMC, MMC1, SD1 */ struct fsl_esdhc_cfg > usdhc_cfg[CONFIG_SYS_FSL_USDHC_NUM] = { >

Re: [U-Boot] [PATCH 0/3] Support distro boot in pico-imx7d BL33 case

2019-09-02 Thread Peng Fan
Hi Jun, > Subject: Re: [PATCH 0/3] Support distro boot in pico-imx7d BL33 case > > Jun Nie 于2019年8月8日周四 下午12:04写道: > > > > Jun Nie 于2019年7月16日周二 下午3:43写道: > > > > > > Support distro boot in pico-imx7d BL33 case with changing the > > > enviroment variables. While the other two patches are for

  1   2   3   4   5   6   7   8   9   10   >