[U-Boot] [PATCH] spl: unbreak CONFIG_SPL_MULTI_DTB_FIT after fixing CONFIG_OF_EMBED

2018-01-09 Thread Goldschmidt Simon
Commit 9bd76b80 "spl: make CONFIG_OF_EMBED pass dts through fdtgrep" moved the fdtgrep code from scripts/Makefile.spl to dts/Makefile so that the dtb is stripped in embedded mode, too. This broke CONFIG_SPL_MULTI_DTB_FIT where fdtgrep is still called from scripts/Makefile.spl to strip all dtbs in

Re: [U-Boot] [PATCH] spl: make CONFIG_OF_EMBED pass dts through fdtgrep

2018-01-09 Thread Goldschmidt Simon
On Tue, 09/01/18 15:43, Lokesh Vutla wrote: > On Sunday 26 November 2017 05:08 PM, Simon Glass wrote: > > On 21 November 2017 at 05:29, Goldschmidt Simon > > wrote: > >> Building spl with CONFIG_OF_EMBED enabled results in an error message > >> on my board: "SPL

Re: [U-Boot] [PATCH] doc: bindings: soft-spi: update documentation to match the code

2018-01-09 Thread Jagan Teki
On Fri, Dec 29, 2017 at 8:25 PM, Miquel Raynal wrote: > Linux bindings have been introduced in the code (removing the U-Boot > specific ones) without documentation update. Compatible string has > changed, as well as the four GPIO properties. Reflect this by

Re: [U-Boot] RFE : CONFIG_OF_LIBFDT_OVERLAY=y in configs/orangepi_one_defconfig

2018-01-09 Thread Jagan Teki
On Tue, Jan 9, 2018 at 8:04 AM, Peter Robinson wrote: > On Mon, Jan 8, 2018 at 7:01 AM, Ken Harris wrote: >> Can you enable the "fdt apply" command on the "Orange Pi One" u-boot : > > I think most AllWinner boards would likely want/need this >

Re: [U-Boot] [PATCH 09/11] sunxi: imply CONFIG_OF_LIBFDT_OVERLAY

2018-01-09 Thread Jagan Teki
On Thu, Dec 21, 2017 at 6:10 PM, Maxime Ripard wrote: > From: Andre Heider > > fdt overlay support is useful for all sunxi boards, enable per default > and remove it from sunxi defconfigs. > > Signed-off-by: Andre Heider

[U-Boot] [PATCH] serial: lpuart: Proper device identification

2018-01-09 Thread Sriram Dash
Identify and distinguish between platform device type of MX7ULP and LS1021A. This is a fix to: 7edf5c45 serial: lpuart: add i.MX7ULP support Signed-off-by: Sriram Dash Acked-by: Peng Fan --- drivers/serial/serial_lpuart.c | 18 +++--- 1 file

Re: [U-Boot] [PATCH 08/11] net: regex: Disable by default on sunXi

2018-01-09 Thread Jagan Teki
On Thu, Dec 21, 2017 at 9:35 PM, Andre Przywara wrote: > Hi, > > On 21/12/17 12:40, Maxime Ripard wrote: >> The sunXi arm64 build has overflown, leading to the main U-boot binary >> overwriting the environment when flashing the new image, or even worse, >> overwriting

Re: [U-Boot] [PATCH 07/11] video: bpp16: Disable by default on sunXi

2018-01-09 Thread Jagan Teki
On Thu, Dec 21, 2017 at 9:42 PM, Anatolij Gustschin wrote: > On Thu, 21 Dec 2017 13:40:26 +0100 > Maxime Ripard maxime.rip...@free-electrons.com wrote: > >> The sunXi arm64 build has overflown, leading to the main U-boot binary >> overwriting the environment when flashing the new

Re: [U-Boot] [PATCH 06/11] video: bpp8: Disable by default on sunXi

2018-01-09 Thread Jagan Teki
On Thu, Dec 21, 2017 at 9:31 PM, Anatolij Gustschin wrote: > On Thu, 21 Dec 2017 13:40:25 +0100 > Maxime Ripard maxime.rip...@free-electrons.com wrote: > >> The sunXi arm64 build has overflown, leading to the main U-boot binary >> overwriting the environment when flashing the new

Re: [U-Boot] [PATCH 05/11] cmd: misc: Disable by default on sunXi

2018-01-09 Thread Jagan Teki
On Thu, Dec 21, 2017 at 6:10 PM, Maxime Ripard wrote: > The sunXi arm64 build has overflown, leading to the main U-boot binary > overwriting the environment when flashing the new image, or even worse, > overwriting itself when we're calling saveenv. > > Disable

Re: [U-Boot] [PATCH 04/11] cmd: loads: Disable by default on sunXi

2018-01-09 Thread Jagan Teki
On Thu, Dec 21, 2017 at 6:10 PM, Maxime Ripard wrote: > The sunXi arm64 build has overflown, leading to the main U-boot binary > overwriting the environment when flashing the new image, or even worse, > overwriting itself when we're calling saveenv. > > Disable

Re: [U-Boot] [PATCH 03/11] cmd: loadb: Disable by default on sunXi

2018-01-09 Thread Jagan Teki
On Thu, Dec 21, 2017 at 6:10 PM, Maxime Ripard wrote: > The sunXi arm64 build has overflown, leading to the main U-boot binary > overwriting the environment when flashing the new image, or even worse, > overwriting itself when we're calling saveenv. > > Disable

Re: [U-Boot] [PATCH 02/11] cmd: unzip: Disable by default on sunXi

2018-01-09 Thread Jagan Teki
On Thu, Dec 21, 2017 at 6:10 PM, Maxime Ripard wrote: > The sunXi arm64 build has overflown, leading to the main U-boot binary > overwriting the environment when flashing the new image, or even worse, > overwriting itself when we're calling saveenv. > > Disable

Re: [U-Boot] [PATCH 01/11] cmd: crc32: Disable by default on sunXi

2018-01-09 Thread Jagan Teki
On Thu, Dec 21, 2017 at 6:10 PM, Maxime Ripard wrote: > The sunXi arm64 build has overflown, leading to the main U-boot binary > overwriting the environment when flashing the new image, or even worse, > overwriting itself when we're calling saveenv. > > Disable

Re: [U-Boot] [PATCH v2] musb: sunxi: Use base address from device tree

2018-01-09 Thread Jagan Teki
On Thu, Jan 4, 2018 at 6:55 PM, Maxime Ripard wrote: > On Sat, Dec 30, 2017 at 08:44:07PM +0800, Chen-Yu Tsai wrote: >> Now that the musb sunxi glue driver is completely device model / device >> tree driven, we should use the base address from the device tree, >>

Re: [U-Boot] [PATCH] ARM: sunxi: Remove left-over cd-inverted property from pcDuino3

2018-01-09 Thread Jagan Teki
On Thu, Jan 4, 2018 at 8:34 PM, Maxime Ripard wrote: > On Sat, Dec 23, 2017 at 12:30:56AM +0200, Tuomas Tynkkynen wrote: >> Commit 8620f384098b ("dm: sunxi: Linksprite_pcDuino3: Correct polarity >> of MMC card detect") claims that the Pcduino3 device tree had an

Re: [U-Boot] [PATCH] sunxi: maintainers: Add myself for the TBS A711

2018-01-09 Thread Jagan Teki
On Thu, Dec 21, 2017 at 6:26 PM, Tom Rini wrote: > On Thu, Dec 21, 2017 at 01:55:52PM +0100, Maxime Ripard wrote: > >> Support for that board got introduced recently without the maintainers >> part. Let's fix that. >> >> Signed-off-by: Maxime Ripard

[U-Boot] [PATCH V5 18/31] imx: cpu: support get_boot_device for i.MX8M

2018-01-09 Thread Peng Fan
Enable get_boot_device for i.MX8M, it supports boot type USB. Signed-off-by: Peng Fan Cc: Stefano Babic Cc: Fabio Estevam --- arch/arm/mach-imx/cpu.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH V5 26/31] net: fec: do not access reserved register for i.MX8M

2018-01-09 Thread Peng Fan
The MIB RAM and FIFO receive start register does not exist on i.MX8M. Accessing these register will cause system hang. Signed-off-by: Peng Fan Acked-by: Joe Hershberger Reviewed-by: Stefano Babic Reviewed-by: Fabio Estevam

[U-Boot] [PATCH V5 29/31] power: pmic/regulator allow dm be omitted by SPL

2018-01-09 Thread Peng Fan
Allow the dm driver be omitted by SPL. Signed-off-by: Peng Fan Reviewed-by: Simon Glass Cc: Jaehoon Chung Cc: Stefano Babic --- drivers/power/pmic/Makefile | 2 +- drivers/power/regulator/Makefile | 2 +- 2

[U-Boot] [PATCH V5 17/31] imx: mx7: move get_boot_device to cpu.c

2018-01-09 Thread Peng Fan
Move get_boot_device to cpu.c to prepare adding i.MX8M support, because i.MX8M share same code with i.MX7. Signed-off-by: Peng Fan Cc: Stefano Babic Cc: Fabio Estevam --- arch/arm/include/asm/arch-mx7/imx-regs.h | 8 ---

[U-Boot] [PATCH V5 22/31] misc: ocotp: add i.MX8M support

2018-01-09 Thread Peng Fan
i.MX8M OCOTP follow same flow as i.MX6Q, but it has 64 banks and each bank 4 words. Signed-off-by: Peng Fan Reviewed-by: Stefano Babic Reviewed-by: Fabio Estevam --- drivers/misc/mxc_ocotp.c | 7 +++ 1 file changed, 7 insertions(+)

[U-Boot] [PATCH V5 25/31] gpio: mxc: add i.MX8M support

2018-01-09 Thread Peng Fan
Add i.MX8M GPIO support. There are 4 GPIO banks on i.MX8M. Signed-off-by: Peng Fan Reviewed-by: Fabio Estevam Cc: Stefano Babic --- drivers/gpio/mxc_gpio.c | 22 +++--- 1 file changed, 15 insertions(+), 7 deletions(-)

[U-Boot] [PATCH V5 31/31] imx: add i.MX8MQ EVK support

2018-01-09 Thread Peng Fan
Add i.MX8MQ EVK support. SPL will initialize ddr and load ddr phy firmware. Then loading FIT image, ATF to OCRAM, U-Boot and DTB to DRAM. The boot log with Arm trusted firmware console enabled: " U-Boot SPL 2018.01-00038-gbd426c08ea (Jan 10 2018 - 13:14:56) PMIC: PFUZE100 ID=0x10 Normal Boot

[U-Boot] [PATCH V5 24/31] imx: lcdif: include i.MX8M

2018-01-09 Thread Peng Fan
Include i.MX8M in lcdif register layout map. Also included i.MX7ULP in this patch, since share same with i.MX8M. Signed-off-by: Peng Fan Reviewed-by: Stefano Babic Reviewed-by: Fabio Estevam ---

[U-Boot] [PATCH V5 23/31] mmc: fsl_esdhc: support i.MX8M

2018-01-09 Thread Peng Fan
Support i.MX8M in fsl esdhc driver. Signed-off-by: Peng Fan Reviewed-by: Stefano Babic Reviewed-by: Fabio Estevam --- drivers/mmc/fsl_esdhc.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git

[U-Boot] [PATCH V5 16/31] imx: bootaux: support i.MX8M

2018-01-09 Thread Peng Fan
Add i.MX8M support. Because i.MX8M use SiP call trap to Arm Trusted Firmware to handle M4, so use #ifdef to avoid build error on i.MX6/7. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx_bootaux.c | 10 ++ 1 file changed, 10 insertions(+) diff --git

[U-Boot] [PATCH V5 30/31] imx: mx8m: add ddr controller memory map

2018-01-09 Thread Peng Fan
Add ddrc memory map and enum types used in ddr initialization. Signed-off-by: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- arch/arm/include/asm/arch-mx8m/ddr.h | 356 +++ 1 file changed, 356

[U-Boot] [PATCH V5 28/31] imx: imx8mq: add dtsi file

2018-01-09 Thread Peng Fan
Add dtsi file for i.MX8MQ. Signed-off-by: Peng Fan Reviewed-by: Fabio Estevam Cc: Stefano Babic --- arch/arm/dts/fsl-imx8-ca53.dtsi | 92 + arch/arm/dts/fsl-imx8mq.dtsi | 429

[U-Boot] [PATCH V5 27/31] net: fec: fix build warnings for 64bits support

2018-01-09 Thread Peng Fan
From: Ye Li When building for 64bits system, we get some warnings about type cast between pointer and integer. This patch eliminates the warnings by using ulong/long type which is 32bits on 32bits system or 64bits on 64bits system. Signed-off-by: Ye Li

[U-Boot] [PATCH V5 15/31] imx: cleanup bootaux

2018-01-09 Thread Peng Fan
Move i.MX6/7 bootaux code to imx_bootaux.c. The i.MX6/7 has different src layout, so define M4 reg offset to ease the cleanup. Redefine the M4 related BIT for share common code. Signed-off-by: Peng Fan Cc: Stefano Babic Cc: Fabio Estevam

[U-Boot] [PATCH V5 19/31] imx: mx7: move mmc env code to mmc_env.c

2018-01-09 Thread Peng Fan
The mx7 mmc env code is shared by i.MX8M, so move it to mmc_env.c. Signed-off-by: Peng Fan --- arch/arm/mach-imx/Makefile | 1 + arch/arm/mach-imx/mmc_env.c | 30 ++ arch/arm/mach-imx/mx7/soc.c | 21 - 3 files changed, 31

[U-Boot] [PATCH V5 13/31] imx: cpu: add cpu speed/grade for i.MX8M

2018-01-09 Thread Peng Fan
Use more general enum types for speed grade. Refine get_cpu_speed_grade_hz to support i.MX8M. Signed-off-by: Peng Fan Cc: Stefano Babic Cc: Fabio Estevam --- arch/arm/mach-imx/cpu.c | 27 +++ 1 file changed, 15

[U-Boot] [PATCH V5 11/31] imx: add pad settings bit definition for i.MX8M

2018-01-09 Thread Peng Fan
Add pad settings bit definition for i.MX8M. Signed-off-by: Peng Fan Reviewed-by: Fabio Estevam Cc: Stefano Babic --- arch/arm/include/asm/mach-imx/iomux-v3.h | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-)

[U-Boot] [PATCH V5 20/31] imx: mx8m: add soc related settings and files

2018-01-09 Thread Peng Fan
Add SoC level initialization code - arch_cpu_init - mmu table - detect cpu revision - reset cpu and wdog settings - timer init - wdog settings - lowlevel init to save/restore registers - a few dummy header file to avoid build failure - ft_system_setup Signed-off-by: Peng Fan

[U-Boot] [PATCH V5 21/31] imx: makefile: compile files for i.MX8M

2018-01-09 Thread Peng Fan
Compile files for i.MX8M Signed-off-by: Peng Fan Reviewed-by: Fabio Estevam Cc: Stefano Babic --- arch/arm/mach-imx/Makefile | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/Makefile

[U-Boot] [PATCH V5 07/31] imx: boot_mode: add USB_BOOT entry

2018-01-09 Thread Peng Fan
Add USB_BOOT entry. Signed-off-by: Peng Fan Reviewed-by: Stefano Babic Reviewed-by: Fabio Estevam --- arch/arm/include/asm/mach-imx/boot_mode.h | 1 + 1 file changed, 1 insertion(+) diff --git

[U-Boot] [PATCH V5 10/31] imx: add i.MX8MQ SoC Revision and is_mx8m helper

2018-01-09 Thread Peng Fan
Add i.MX8MQ SoC Revision Add is_mx8m helper The 7ULP is a dummy number, so use 0xEx. Signed-off-by: Peng Fan Reviewed-by: Fabio Estevam Cc: Stefano Babic --- arch/arm/include/asm/arch-imx/cpu.h | 6 --

[U-Boot] [PATCH V5 14/31] imx: refactor imx_get_mac_from_fuse

2018-01-09 Thread Peng Fan
Move imx_get_mac_from_fuse to a new mac.c for i.MX6/7. Since fuse regs structure are different for i.MX6/7, use mac address offset in code and define a new local struture imx_mac_fuse. Also sort the config order. Signed-off-by: Peng Fan Cc: Stefano Babic Cc:

[U-Boot] [PATCH V5 09/31] imx: spl: implement spl_boot_device for i.MX8M

2018-01-09 Thread Peng Fan
Implement spl_boot_device for i.MX8M. Signed-off-by: Peng Fan Reviewed-by: Fabio Estevam Cc: Stefano Babic --- arch/arm/mach-imx/spl.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git

[U-Boot] [PATCH V5 12/31] imx: cpu: move speed/temp to common cpu

2018-01-09 Thread Peng Fan
The i.MX7 cpu speed/temp code could be reused on i.MX8M, so move them to common cpu code. Signed-off-by: Peng Fan Cc: Stefano Babic Cc: Fabio Estevam --- arch/arm/mach-imx/cpu.c | 73 +

[U-Boot] [PATCH V5 08/31] imx: cpu: update cpu file to support i.MX8M

2018-01-09 Thread Peng Fan
Update get_reset_cause to reflect i.MX8M Compile out get_ahb_clk and set_chipselect_size for i.MX8M Signed-off-by: Peng Fan Reviewed-by: Stefano Babic Reviewed-by: Fabio Estevam --- arch/arm/mach-imx/cpu.c | 11 ++- 1 file

[U-Boot] [PATCH V5 04/31] imx: mx8m: add pin header file

2018-01-09 Thread Peng Fan
Add pin header file for i.MX8M Signed-off-by: Peng Fan Reviewed-by: Fabio Estevam Cc: Stefano Babic --- arch/arm/include/asm/arch-mx8m/mx8mq_pins.h | 623 1 file changed, 623 insertions(+) create mode

[U-Boot] [PATCH V5 05/31] imx: mx8m: add clock driver

2018-01-09 Thread Peng Fan
Add clock driver to support i.MX8M. There are two kind PLLs, FRAC pll and SSCG pll. ROM already configured SYS PLL1/2, we only need to configure the output. ocotp/i2c/pll decoding and configuration/usdhc/lcdif/dram pll/ enet clock are configured in the code. Signed-off-by: Peng Fan

[U-Boot] [PATCH V5 06/31] imx: add sip function

2018-01-09 Thread Peng Fan
Add SiP (Silicon Provider) services function to issue SMC call to Arm Trusted Firmware. More SiP information could be found in https://github.com/ARM-software/arm-trusted-firmware/blob/master/ docs/arm-sip-service.rst Signed-off-by: Peng Fan Reviewed-by: Fabio Estevam

[U-Boot] [PATCH V5 03/31] imx: mx8m: add register definition header file

2018-01-09 Thread Peng Fan
Add register definition header file for i.MX8M Signed-off-by: Peng Fan Reviewed-by: Fabio Estevam Cc: Stefano Babic --- arch/arm/include/asm/arch-mx8m/imx-regs.h | 468 ++ 1 file changed, 468 insertions(+)

[U-Boot] [PATCH V5 01/31] arm: imx: Rework i.MX specific commands to be excluded from SPL

2018-01-09 Thread Peng Fan
From: Tom Rini The "clocks" and "bootaux" commands are only usable in full U-Boot, not SPL, so do not link them inside of SPL. Rework a little of the bootaux related code to make use of __weak and declare parts of it static as it's local to the file. Cc: Stefano Babic

[U-Boot] [PATCH V5 02/31] imx: add i.MX8M into Kconfig

2018-01-09 Thread Peng Fan
Add i.MX8M into Kconfig, create a new folder mx8m dedicated for i.MX8M. Signed-off-by: Peng Fan Reviewed-by: Fabio Estevam Cc: Stefano Babic --- arch/arm/Kconfig | 14 +++--- arch/arm/Makefile | 4

[U-Boot] [PATCH V5 00/31] imx: add i.MX8M support and i.MX8MQ EVK

2018-01-09 Thread Peng Fan
This patchset is to add i.MX8M and i.MX8MQ-EVK support V5: Drop wait_mask_set/clr_timeout and switch to use readl_poll_timeout in the patchset. V4: Regenerate patchset based on Tom's master tree. In this patchset, https://patchwork.ozlabs.org/patch/855027/ "arm: imx: Rework i.MX specific

Re: [U-Boot] [PATCH V4 05/32] time: add wait_mask_set/clr_timeout helper functions

2018-01-09 Thread Peng Fan
On Wed, Jan 10, 2018 at 12:19:28PM +0900, Masahiro Yamada wrote: >2018-01-10 12:05 GMT+09:00 Peng Fan : >> Add heler functions for wait mask set/clr. >> >> Signed-off-by: Peng Fan >> Cc: Stefano Babic >> Cc: Fabio Estevam

[U-Boot] [PATCH] ddr: marvell: only assert M_ODT[0] on write for a single CS

2018-01-09 Thread Chris Packham
When using only a single DDR chip select only assert M_ODT[0] on write. Do not assert it on read and do not assert M_ODT[1] at all. Signed-off-by: Chris Packham --- I have a custom board that sees correctable ECC errors (when running memtester[1] from Linux). When I

Re: [U-Boot] [PATCH V4 05/32] time: add wait_mask_set/clr_timeout helper functions

2018-01-09 Thread Masahiro Yamada
2018-01-10 12:05 GMT+09:00 Peng Fan : > Add heler functions for wait mask set/clr. > > Signed-off-by: Peng Fan > Cc: Stefano Babic > Cc: Fabio Estevam > Cc: Masahiro Yamada > Cc: Simon

[U-Boot] [GIT PULL] ZFS: lundman/master

2018-01-09 Thread Jorgen Lundman
Hello, I didn't hear back about the changes, so I'll proceed to this stage. :) Please find additional ZFS boot features, and fixes. Please advise if outside git repositories are not allowed. The following changes since commit ab61e175713a0400c6ece6348e8f655998cf574d: ARM: rmobile: Rework the

[U-Boot] [PATCH V4 32/32] imx: add i.MX8MQ EVK support

2018-01-09 Thread Peng Fan
Add i.MX8MQ EVK support. SPL will initialize ddr and load ddr phy firmware. Then loading FIT image, ATF to OCRAM, U-Boot and DTB to DRAM. The boot log with Arm trusted firmware console enabled: " U-Boot SPL 2018.01-rc3-00044-g0b075f6be7 (Jan 09 2018 - 17:57:28) PMIC: PFUZE100 ID=0x10 Normal Boot

[U-Boot] [PATCH V4 23/32] misc: ocotp: add i.MX8M support

2018-01-09 Thread Peng Fan
i.MX8M OCOTP follow same flow as i.MX6Q, but it has 64 banks and each bank 4 words. Signed-off-by: Peng Fan Reviewed-by: Stefano Babic Reviewed-by: Fabio Estevam --- drivers/misc/mxc_ocotp.c | 7 +++ 1 file changed, 7 insertions(+)

[U-Boot] [PATCH V4 28/32] net: fec: fix build warnings for 64bits support

2018-01-09 Thread Peng Fan
From: Ye Li When building for 64bits system, we get some warnings about type cast between pointer and integer. This patch eliminates the warnings by using ulong/long type which is 32bits on 32bits system or 64bits on 64bits system. Signed-off-by: Ye Li

[U-Boot] [PATCH V4 25/32] imx: lcdif: include i.MX8M

2018-01-09 Thread Peng Fan
Include i.MX8M in lcdif register layout map. Also included i.MX7ULP in this patch, since share same with i.MX8M. Signed-off-by: Peng Fan Reviewed-by: Stefano Babic Reviewed-by: Fabio Estevam ---

[U-Boot] [PATCH V4 26/32] gpio: mxc: add i.MX8M support

2018-01-09 Thread Peng Fan
Add i.MX8M GPIO support. There are 4 GPIO banks on i.MX8M. Signed-off-by: Peng Fan Reviewed-by: Fabio Estevam Cc: Stefano Babic --- drivers/gpio/mxc_gpio.c | 22 +++--- 1 file changed, 15 insertions(+), 7 deletions(-)

[U-Boot] [PATCH V4 17/32] imx: bootaux: support i.MX8M

2018-01-09 Thread Peng Fan
Add i.MX8M support. Because i.MX8M use SiP call trap to Arm Trusted Firmware to handle M4, so use #ifdef to avoid build error on i.MX6/7. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx_bootaux.c | 10 ++ 1 file changed, 10 insertions(+) diff --git

[U-Boot] [PATCH V4 22/32] imx: makefile: compile files for i.MX8M

2018-01-09 Thread Peng Fan
Compile files for i.MX8M Signed-off-by: Peng Fan Reviewed-by: Fabio Estevam Cc: Stefano Babic --- arch/arm/mach-imx/Makefile | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/Makefile

[U-Boot] [PATCH V4 30/32] power: pmic/regulator allow dm be omitted by SPL

2018-01-09 Thread Peng Fan
Allow the dm driver be omitted by SPL. Signed-off-by: Peng Fan Reviewed-by: Simon Glass Cc: Jaehoon Chung Cc: Stefano Babic --- drivers/power/pmic/Makefile | 2 +- drivers/power/regulator/Makefile | 2 +- 2

[U-Boot] [PATCH V4 16/32] imx: cleanup bootaux

2018-01-09 Thread Peng Fan
Move i.MX6/7 bootaux code to imx_bootaux.c. The i.MX6/7 has different src layout, so define M4 reg offset to ease the cleanup. Redefine the M4 related BIT for share common code. Signed-off-by: Peng Fan Cc: Stefano Babic Cc: Fabio Estevam

[U-Boot] [PATCH V4 14/32] imx: cpu: add cpu speed/grade for i.MX8M

2018-01-09 Thread Peng Fan
Use more general enum types for speed grade. Refine get_cpu_speed_grade_hz to support i.MX8M. Signed-off-by: Peng Fan Cc: Stefano Babic Cc: Fabio Estevam --- arch/arm/mach-imx/cpu.c | 27 +++ 1 file changed, 15

[U-Boot] [PATCH V4 27/32] net: fec: do not access reserved register for i.MX8M

2018-01-09 Thread Peng Fan
The MIB RAM and FIFO receive start register does not exist on i.MX8M. Accessing these register will cause system hang. Signed-off-by: Peng Fan Acked-by: Joe Hershberger Reviewed-by: Stefano Babic Reviewed-by: Fabio Estevam

[U-Boot] [PATCH V4 29/32] imx: imx8mq: add dtsi file

2018-01-09 Thread Peng Fan
Add dtsi file for i.MX8MQ. Signed-off-by: Peng Fan Reviewed-by: Fabio Estevam Cc: Stefano Babic --- arch/arm/dts/fsl-imx8-ca53.dtsi | 92 + arch/arm/dts/fsl-imx8mq.dtsi | 429

[U-Boot] [PATCH V4 15/32] imx: refactor imx_get_mac_from_fuse

2018-01-09 Thread Peng Fan
Move imx_get_mac_from_fuse to a new mac.c for i.MX6/7. Since fuse regs structure are different for i.MX6/7, use mac address offset in code and define a new local struture imx_mac_fuse. Also sort the config order. Signed-off-by: Peng Fan Cc: Stefano Babic Cc:

[U-Boot] [PATCH V4 21/32] imx: mx8m: add soc related settings and files

2018-01-09 Thread Peng Fan
Add SoC level initialization code - arch_cpu_init - mmu table - detect cpu revision - reset cpu and wdog settings - timer init - wdog settings - lowlevel init to save/restore registers - a few dummy header file to avoid build failure - ft_system_setup Signed-off-by: Peng Fan

[U-Boot] [PATCH V4 24/32] mmc: fsl_esdhc: support i.MX8M

2018-01-09 Thread Peng Fan
Support i.MX8M in fsl esdhc driver. Signed-off-by: Peng Fan Reviewed-by: Stefano Babic Reviewed-by: Fabio Estevam --- drivers/mmc/fsl_esdhc.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git

[U-Boot] [PATCH V4 12/32] imx: add pad settings bit definition for i.MX8M

2018-01-09 Thread Peng Fan
Add pad settings bit definition for i.MX8M. Signed-off-by: Peng Fan Reviewed-by: Fabio Estevam Cc: Stefano Babic --- arch/arm/include/asm/mach-imx/iomux-v3.h | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-)

[U-Boot] [PATCH V4 20/32] imx: mx7: move mmc env code to mmc_env.c

2018-01-09 Thread Peng Fan
The mx7 mmc env code is shared by i.MX8M, so move it to mmc_env.c. Signed-off-by: Peng Fan --- arch/arm/mach-imx/Makefile | 1 + arch/arm/mach-imx/mmc_env.c | 30 ++ arch/arm/mach-imx/mx7/soc.c | 21 - 3 files changed, 31

[U-Boot] [PATCH V4 31/32] imx: mx8m: add ddr controller memory map

2018-01-09 Thread Peng Fan
Add ddrc memory map and enum types used in ddr initialization. Signed-off-by: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- arch/arm/include/asm/arch-mx8m/ddr.h | 356 +++ 1 file changed, 356

[U-Boot] [PATCH V4 13/32] imx: cpu: move speed/temp to common cpu

2018-01-09 Thread Peng Fan
The i.MX7 cpu speed/temp code could be reused on i.MX8M, so move them to common cpu code. Signed-off-by: Peng Fan Cc: Stefano Babic Cc: Fabio Estevam --- arch/arm/mach-imx/cpu.c | 73 +

[U-Boot] [PATCH V4 18/32] imx: mx7: move get_boot_device to cpu.c

2018-01-09 Thread Peng Fan
Move get_boot_device to cpu.c to prepare adding i.MX8M support, because i.MX8M share same code with i.MX7. Signed-off-by: Peng Fan Cc: Stefano Babic Cc: Fabio Estevam --- arch/arm/include/asm/arch-mx7/imx-regs.h | 8 ---

[U-Boot] [PATCH V4 19/32] imx: cpu: support get_boot_device for i.MX8M

2018-01-09 Thread Peng Fan
Enable get_boot_device for i.MX8M, it supports boot type USB. Signed-off-by: Peng Fan Cc: Stefano Babic Cc: Fabio Estevam --- arch/arm/mach-imx/cpu.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH V4 06/32] imx: mx8m: add clock driver

2018-01-09 Thread Peng Fan
Add clock driver to support i.MX8M. There are two kind PLLs, FRAC pll and SSCG pll. ROM already configured SYS PLL1/2, we only need to configure the output. ocotp/i2c/pll decoding and configuration/usdhc/lcdif/dram pll/ enet clock are configured in the code. Signed-off-by: Peng Fan

[U-Boot] [PATCH V4 04/32] imx: mx8m: add pin header file

2018-01-09 Thread Peng Fan
Add pin header file for i.MX8M Signed-off-by: Peng Fan Reviewed-by: Fabio Estevam Cc: Stefano Babic --- arch/arm/include/asm/arch-mx8m/mx8mq_pins.h | 623 1 file changed, 623 insertions(+) create mode

[U-Boot] [PATCH V4 07/32] imx: add sip function

2018-01-09 Thread Peng Fan
Add SiP (Silicon Provider) services function to issue SMC call to Arm Trusted Firmware. More SiP information could be found in https://github.com/ARM-software/arm-trusted-firmware/blob/master/ docs/arm-sip-service.rst Signed-off-by: Peng Fan Reviewed-by: Fabio Estevam

[U-Boot] [PATCH V4 08/32] imx: boot_mode: add USB_BOOT entry

2018-01-09 Thread Peng Fan
Add USB_BOOT entry. Signed-off-by: Peng Fan Reviewed-by: Stefano Babic Reviewed-by: Fabio Estevam --- arch/arm/include/asm/mach-imx/boot_mode.h | 1 + 1 file changed, 1 insertion(+) diff --git

[U-Boot] [PATCH V4 10/32] imx: spl: implement spl_boot_device for i.MX8M

2018-01-09 Thread Peng Fan
Implement spl_boot_device for i.MX8M. Signed-off-by: Peng Fan Reviewed-by: Fabio Estevam Cc: Stefano Babic --- arch/arm/mach-imx/spl.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git

[U-Boot] [PATCH V4 09/32] imx: cpu: update cpu file to support i.MX8M

2018-01-09 Thread Peng Fan
Update get_reset_cause to reflect i.MX8M Compile out get_ahb_clk and set_chipselect_size for i.MX8M Signed-off-by: Peng Fan Reviewed-by: Stefano Babic Reviewed-by: Fabio Estevam --- arch/arm/mach-imx/cpu.c | 11 ++- 1 file

[U-Boot] [PATCH V4 11/32] imx: add i.MX8MQ SoC Revision and is_mx8m helper

2018-01-09 Thread Peng Fan
Add i.MX8MQ SoC Revision Add is_mx8m helper The 7ULP is a dummy number, so use 0xEx. Signed-off-by: Peng Fan Reviewed-by: Fabio Estevam Cc: Stefano Babic --- arch/arm/include/asm/arch-imx/cpu.h | 6 --

[U-Boot] [PATCH V4 05/32] time: add wait_mask_set/clr_timeout helper functions

2018-01-09 Thread Peng Fan
Add heler functions for wait mask set/clr. Signed-off-by: Peng Fan Cc: Stefano Babic Cc: Fabio Estevam Cc: Masahiro Yamada Cc: Simon Glass --- include/linux/delay.h | 4

[U-Boot] [PATCH V4 03/32] imx: mx8m: add register definition header file

2018-01-09 Thread Peng Fan
Add register definition header file for i.MX8M Signed-off-by: Peng Fan Reviewed-by: Fabio Estevam Cc: Stefano Babic --- arch/arm/include/asm/arch-mx8m/imx-regs.h | 468 ++ 1 file changed, 468 insertions(+)

[U-Boot] [PATCH V4 02/32] imx: add i.MX8M into Kconfig

2018-01-09 Thread Peng Fan
Add i.MX8M into Kconfig, create a new folder mx8m dedicated for i.MX8M. Signed-off-by: Peng Fan Reviewed-by: Fabio Estevam Cc: Stefano Babic --- arch/arm/Kconfig | 14 +++--- arch/arm/Makefile | 4

[U-Boot] [PATCH V4 00/32] imx: add i.MX8M support and i.MX8MQ EVK

2018-01-09 Thread Peng Fan
This patchset is to add i.MX8M and i.MX8MQ-EVK support V4: Regenerate patchset based on Tom's master tree. In this patchset, https://patchwork.ozlabs.org/patch/855027/ "arm: imx: Rework i.MX specific commands to be excluded from SPL" from Tom is included to avoid merge conflicts because the

[U-Boot] [PATCH V4 01/32] arm: imx: Rework i.MX specific commands to be excluded from SPL

2018-01-09 Thread Peng Fan
From: Tom Rini The "clocks" and "bootaux" commands are only usable in full U-Boot, not SPL, so do not link them inside of SPL. Rework a little of the bootaux related code to make use of __weak and declare parts of it static as it's local to the file. Cc: Stefano Babic

Re: [U-Boot] [PATCH V3 00/31] imx: add i.MX8M support and i.MX8MQ EVK

2018-01-09 Thread Peng Fan
On Wed, Jan 10, 2018 at 12:13:42AM -0200, Fabio Estevam wrote: >On Wed, Jan 10, 2018 at 12:09 AM, Fabio Estevam wrote: > >> It would be better to generate the series against U-Boot 2018.11 master. > >2018.01 I mean :-) ok. I'll post out V4 based on Tom's master tree with.

Re: [U-Boot] [PATCH v4 1/7] driver/ddr: Add support for setting timing in hws_topology_map

2018-01-09 Thread Chris Packham
Hi Marek, On Sat, Jun 10, 2017 at 5:28 AM, Marek BehĂșn wrote: > The DDR3 training code for Marvell A38X currently computes 1t timing > when given board topology map of the Turris Omnia, but Omnia needs 2t. > > This patch adds support for enforcing the 2t timing in struct >

Re: [U-Boot] [PATCH 03/07] db410c: replace reset driver with psci

2018-01-09 Thread Tuomas Tynkkynen
Hi Jorge, On 01/09/2018 11:12 AM, Jorge Ramirez-Ortiz wrote: From: Jorge Ramirez-Ortiz this should be the norm for armv8 platforms. Signed-off-by: Jorge Ramirez-Ortiz --- arch/arm/dts/dragonboard410c.dts | 5

Re: [U-Boot] [PATCH V3 00/31] imx: add i.MX8M support and i.MX8MQ EVK

2018-01-09 Thread Fabio Estevam
On Wed, Jan 10, 2018 at 12:09 AM, Fabio Estevam wrote: > It would be better to generate the series against U-Boot 2018.11 master. 2018.01 I mean :-) ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH V3 00/31] imx: add i.MX8M support and i.MX8MQ EVK

2018-01-09 Thread Fabio Estevam
Hi Peng, On Tue, Jan 9, 2018 at 10:55 PM, Peng Fan wrote: > As noted in cover-letter, > This patchset based on https://patchwork.ozlabs.org/patch/855027/ > "arm: imx: Rework i.MX specific commands to be excluded from SPL" from > Tom to avoid this patchset fail apply after

[U-Boot] [PATCH v3 5/6] treewide: convert assert() to BUG_ON()

2018-01-09 Thread Masahiro Yamada
We do not need multiple ways to do the same thing. Instead of assert(), use BUG_ON() from Linux. The logic is opposite, but Coccinelle is of great help for such a conversion. We could simply convert assert(x) to BUG_ON(!x) for all expressions "x", but I did a bit better job by converting

[U-Boot] [PATCH v3 0/6] assert() is almost used in the same way as BUG_ON(), except:

2018-01-09 Thread Masahiro Yamada
- the logic is opposite - currently, assert() is compiled only when DEBUG is defined Coccinelle can easily convert assert() to BUG_ON(). A problem is it would grow the image size. In v2, I introduced a new CONFIG option to allow to disable it. In v3, it is default 'y'. I disabled it only

[U-Boot] [PATCH v3 3/6] Introduce CONFIG_BUG_CHECKS to allow to disable BUG{_ON} and WARN_ON

2018-01-09 Thread Masahiro Yamada
BUG(), BUG_ON(), WARN_ON(), etc. are generally used to test a condition that should never happen. If it does, it is a bug, then they print noisy messages. They are useful to catch bugs, and Linux always enables them, but doing so in U-Boot causes image size problems on some platforms. Introduce

[U-Boot] [PATCH v3 2/6] usb: xhci: return ERR_PTR(-ETIMEDOUT) at the end of xhci_wait_for_event()

2018-01-09 Thread Masahiro Yamada
xhci_wait_for_event() is supposed to return a pointer to union xhci_trb, but it does not return anything at the end of the function. This relies on that the end of the function is unreachable due to BUG(). We are planning to make BUG() no-op for platforms with strong image size constraint.

[U-Boot] [PATCH v3 6/6] Remove assert()

2018-01-09 Thread Masahiro Yamada
No more users of assert() except host tools. Remove. Signed-off-by: Masahiro Yamada Reviewed-by: Simon Glass --- Changes in v3: - Rebase on v2017.01 Changes in v2: None include/log.h | 15 --- lib/tiny-printf.c | 9

[U-Boot] [PATCH v3 1/6] Enable CONFIG_PANIC_HANG for boards without do_reset()

2018-01-09 Thread Masahiro Yamada
Calling panic() for these boards causes build error: undefined reference to `do_reset' They must compile do_reset(), or define CONFIG_PANIC_HANG. Signed-off-by: Masahiro Yamada Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2:

[U-Boot] [PATCH v3 4/6] ARM: openrd: disable CONFIG_BUG_CHECKS

2018-01-09 Thread Masahiro Yamada
These boards are always on the boundary of "u-boot-nodtb.bin exceeds file size limit" error. Commit ab5502bf561b ("ARM: openrd: set CONFIG_LOGLEVEL to 2") reduced the loglevel to save memory footprint. They are hitting the size limit, again. Disable CONFIG_BUG_CHECKS. Signed-off-by: Masahiro

Re: [U-Boot] [PATCH V3 00/31] imx: add i.MX8M support and i.MX8MQ EVK

2018-01-09 Thread Peng Fan
Hi Diego, On Tue, Jan 09, 2018 at 03:42:29PM -0200, Diego Dorta wrote: >Hi peng, > >2018-01-09 10:11 GMT-02:00 Peng Fan : >> This patchset is to add i.MX8M and i.MX8MQ-EVK support >> >> V3: >> This patchset based on https://patchwork.ozlabs.org/patch/855027/ >> "arm: imx:

Re: [U-Boot] [PATCH v2 06/16] efi: sandbox: Adjust memory usage for sandbox

2018-01-09 Thread Heinrich Schuchardt
On 12/04/2017 10:28 PM, Simon Glass wrote: > With sandbox the U-Boot code is not mapped into the sandbox memory range > so does not need to be excluded when allocating EFI memory. Update the EFI > memory init code to take account of that. > > Also use mapmem instead of a cast to convert a memory

  1   2   3   >