Re: [U-Boot] [PATCH v4 1/1] efi_loader: PSCI reset and shutdown

2018-10-18 Thread Alexander Graf
On 17.10.18 20:06, Heinrich Schuchardt wrote: > On 10/17/2018 07:37 PM, Alexander Graf wrote: >> >> >> On 17.10.18 19:05, Heinrich Schuchardt wrote: >>> When an operating system started via bootefi tries to reset or power off >>> this is done by calling the EFI runtime ResetSystem(). On most ARMv

Re: [U-Boot] [PATCH 2/2] ARM: qemu-arm: define fdt_addr_r

2018-10-18 Thread Alexander Graf
On 18.10.18 00:25, Tuomas Tynkkynen wrote: > Hi Alexander, > > On Tue, 16 Oct 2018 15:04:26 +0200 > Alexander Graf wrote: > > ... >>> Glancing at cmd/pxe.c, there is a problem though, in that if ${fdt_addr_r} were defined, a PXE file using the FDTDIR directive would attempt l

Re: [U-Boot] [PATCH 1/2] efi_loader: rework fdt handling in distro boot script

2018-10-18 Thread Alexander Graf
On 18.10.18 04:07, AKASHI Takahiro wrote: > On Tue, Oct 16, 2018 at 03:15:13PM +0200, Alexander Graf wrote: >> >> >> On 12.10.18 07:07, AKASHI Takahiro wrote: >>> The current scenario for default UEFI booting, scan_dev_for_efi, has >>> several issues: >>> * invoke 'bootmgr' only if BOOTEFI_NAME b

[U-Boot] [PATCH] distro: Imply USB_STORAGE when USB is available

2018-10-18 Thread Alexander Graf
When you support distro boot and you support USB, you usually want to also support booting from USB storage. Reflect that in the Kconfig, so that we don't have to explicitly add USB storage support to every defconfig individually. Reported-by: AKASHI Takahiro Signed-off-by: Alexander Graf ---

Re: [U-Boot] [PATCH 3/6] efi_loader: bootmgr: add load option helper functions

2018-10-18 Thread AKASHI Takahiro
On Wed, Oct 17, 2018 at 10:40:26AM +0200, Alexander Graf wrote: > > > On 17.10.18 09:32, AKASHI Takahiro wrote: > > In this patch, helper functions for an load option variable (Boot) > > are added: > > * efi_parse_load_option(): parse a string into load_option data > >

Re: [U-Boot] [PATCH 3/6] efi_loader: bootmgr: add load option helper functions

2018-10-18 Thread Alexander Graf
On 18.10.18 09:57, AKASHI Takahiro wrote: > On Wed, Oct 17, 2018 at 10:40:26AM +0200, Alexander Graf wrote: >> >> >> On 17.10.18 09:32, AKASHI Takahiro wrote: >>> In this patch, helper functions for an load option variable (Boot) >>> are added: >>> * efi_parse_load_option(): parse a string in

Re: [U-Boot] [U-Boot, 1/1] efi_loader: fix typos in efi_device_path.c

2018-10-18 Thread Alexander Graf
> Fix some typos in comments. > > Signed-off-by: Heinrich Schuchardt Thanks, applied to efi-next Alex ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 6/6] efi_loader: bootmgr: run an EFI application of a given load option

2018-10-18 Thread Alexander Graf
On 18.10.18 07:48, AKASHI Takahiro wrote: > On Wed, Oct 17, 2018 at 10:43:22AM +0200, Alexander Graf wrote: >> >> >> On 17.10.18 09:32, AKASHI Takahiro wrote: >>> With this patch applied, we will be able to selectively execute >>> an EFI application by specifying a load option, say "-1" for Boot0

Re: [U-Boot] [PATCH 0/6] efi: make efi and bootmgr more usable

2018-10-18 Thread Alexander Graf
On 18.10.18 07:24, AKASHI Takahiro wrote: > On Wed, Oct 17, 2018 at 10:06:58AM +0200, Alexander Graf wrote: >> >> >> On 17.10.18 09:32, AKASHI Takahiro wrote: >>> This patch set is a collection of patches to enhance efi user interfaces >>> /commands. It will help improve user experience on efi bo

[U-Boot] [PATCH v5 1/1] efi_loader: PSCI reset and shutdown

2018-10-18 Thread Heinrich Schuchardt
When an operating system started via bootefi tries to reset or power off this is done by calling the EFI runtime ResetSystem(). On most ARMv8 system the actual reset relies on PSCI. Depending on whether the PSCI firmware resides the hypervisor (EL2) or in the secure monitor (EL3) either an HVC or a

[U-Boot] [PATCH] Kconfig: Convert CONFIG_IMX_WATCHDOG to Kconfig

2018-10-18 Thread Xiaoliang Yang
Move this option to Kconfig and tidy up the config file of eight boards which use it. Signed-off-by: Xiaoliang Yang --- configs/aristainetos2_defconfig |1 + configs/aristainetos2b_defconfig |1 + configs/aristainetos_defconfig|1 + configs/dh_imx6_defconfig

[U-Boot] [PATCH v2 1/2] watchdog: driver support for fsl-lsch2

2018-10-18 Thread Xiaoliang Yang
Support watchdog driver for fsl-lsch2. It's disabled in default. If you want to use it, please enable CONFIG_IMX_WATCHDOG. Define CONFIG_WATCHDOG_TIMEOUT_MSECS to set watchdog timeout. Signed-off-by: Xiaoliang Yang --- v1->v2: Remove LSCH3 config from imx-watchdog.c, because it only suppo

[U-Boot] [PATCH v2 2/2] watchdog: imx: add config to disable wdog reset

2018-10-18 Thread Xiaoliang Yang
Add Kconfig option WATCHDOG_RESET_DISABLE to disable watchdog reset in imx_watchdog driver, so that the watchdog will not be fed in u-boot if CONFIG_WATCHDOG_RESET_DISABLE is enabled. Signed-off-by: Xiaoliang Yang --- arch/arm/cpu/armv8/fsl-layerscape/doc/README.lsch2 |2 ++ drivers/watchdog

Re: [U-Boot] [RFC PATCH v2 3/3] tools: Add a tool to get an overview of the usage of CONFIG options

2018-10-18 Thread Jean-Jacques Hiblot
Simon, On 09/10/2018 18:20, Simon Glass wrote: Hi Jean-Jacques, On 3 October 2018 at 07:53, Jean-Jacques Hiblot wrote: configs2csv.py is tool that allow to check how some options are used for a particular subset of platforms. The purpose is to identify the targets that are actually using one

[U-Boot] [PATCH] ARM: mvebu: dts: add Clearfog GT-8K

2018-10-18 Thread Baruch Siach
From: Rabeeh Khoury The SolidRun Clearfog GT-8K is based on Armada 8040. https://wiki.solid-run.com/doku.php?id=products:a8040:clearfoggt8k Signed-off-by: Rabeeh Khoury Signed-off-by: Baruch Siach --- arch/arm/dts/Makefile | 1 + arch/arm/dts/armada-8040-clearfog-gt-8

Re: [U-Boot] [RFC PATCH v2 2/3] tools: Add a tool to get a list of defconfigs based on filters

2018-10-18 Thread Jean-Jacques Hiblot
On 09/10/2018 18:20, Simon Glass wrote: Hi Jean-Jacques, On 3 October 2018 at 07:53, Jean-Jacques Hiblot wrote: The possible filters are "arch", "vendor", "soc", "cpu" and "arch". The list of all the defconfigs is read from boards.cfg. If this file doesn't exist, then tools/genboardscfg.py

[U-Boot] [PATCH v6 00/34] i.MX: Add i.MX8QXP support

2018-10-18 Thread Anatolij Gustschin
This patchset is to upstream basic i.MX8QXP and MEK board support, with some drivers update to support i.MX8QXP. The information about the processor could be found under https://www.nxp.com/products/processors-and-microcontrollers/applications-processors/i.mx-applications-processors/i.mx-8-proce

[U-Boot] [PATCH v6 01/34] dt-bindings: pinctrl: add i.MX8QXP pads definition

2018-10-18 Thread Anatolij Gustschin
From: Peng Fan Add i.MX8QXP pads definition Signed-off-by: Peng Fan Reviewed-by: Anatolij Gustschin Cc: Stefano Babic --- include/dt-bindings/pinctrl/pads-imx8qxp.h | 757 + 1 file changed, 757 insertions(+) create mode 100644 include/dt-bindings/pinctrl/pads-imx8qxp.h

[U-Boot] [PATCH v6 02/34] dt-bindings: clock: dt-bindings: pinctrl: add i.MX8QXP clocks definition

2018-10-18 Thread Anatolij Gustschin
From: Peng Fan Add i.MX8QXP clocks definition Signed-off-by: Peng Fan Reviewed-by: Anatolij Gustschin Cc: Stefano Babic --- include/dt-bindings/clock/imx8qxp-clock.h | 583 ++ 1 file changed, 583 insertions(+) create mode 100644 include/dt-bindings/clock/imx8qxp-clock.h

[U-Boot] [PATCH v6 03/34] dt-bindings: soc: add i.MX8QXP pm and rsrc definition

2018-10-18 Thread Anatolij Gustschin
From: Peng Fan Add i.MX8QXP power and resource definition Signed-off-by: Peng Fan Reviewed-by: Anatolij Gustschin Cc: Stefano Babic --- include/dt-bindings/soc/imx8_pd.h | 188 ++ include/dt-bindings/soc/imx_rsrc.h | 557 + 2 files changed, 745 insertions

[U-Boot] [PATCH v6 05/34] imx: add Kconfig entry for i.MX8QXP

2018-10-18 Thread Anatolij Gustschin
From: Peng Fan Add Kconfig entry for i.MX8QXP Signed-off-by: Peng Fan Reviewed-by: Anatolij Gustschin Cc: Stefano Babic --- arch/arm/Kconfig | 8 arch/arm/mach-imx/Makefile | 1 + arch/arm/mach-imx/imx8/Kconfig | 13 + 3 files changed, 22 insertions(+

[U-Boot] [PATCH v6 04/34] imx8: add scfw macro definition

2018-10-18 Thread Anatolij Gustschin
From: Peng Fan Add SCFW macro definition. Signed-off-by: Peng Fan Reviewed-by: Anatolij Gustschin Cc: Stefano Babic --- arch/arm/include/asm/arch-imx8/sci/rpc.h | 158 + arch/arm/include/asm/arch-imx8/sci/sci.h | 58 + .../include/asm/arch-imx8/sci/svc/misc/api.h

[U-Boot] [PATCH v6 06/34] arm: build mach-imx for i.MX8

2018-10-18 Thread Anatolij Gustschin
From: Peng Fan Build mach-imx for i.MX8 Signed-off-by: Peng Fan Reviewed-by: Anatolij Gustschin Cc: Stefano Babic --- arch/arm/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/Makefile b/arch/arm/Makefile index e52a35db18..4b6c5e1935 100644 --- a/arch/arm

[U-Boot] [PATCH v6 07/34] arm: global_data: add scu_dev for i.MX8

2018-10-18 Thread Anatolij Gustschin
From: Peng Fan Add scu_dev for i.MX8, this will be used as a handle to communite with SCU from A35. Signed-off-by: Peng Fan Reviewed-by: Anatolij Gustschin Cc: Stefano Babic --- arch/arm/include/asm/global_data.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/include/asm/gl

[U-Boot] [PATCH v6 20/34] imx8: cpu: add function for reading FEC MAC from fuse

2018-10-18 Thread Anatolij Gustschin
FEC driver requires imx_get_mac_from_fuse(). Add it in preparation for ENETx support. Signed-off-by: Anatolij Gustschin Cc: Stefano Babic --- arch/arm/mach-imx/imx8/cpu.c | 38 1 file changed, 38 insertions(+) diff --git a/arch/arm/mach-imx/imx8/cpu.c b/arc

[U-Boot] [PATCH v6 10/34] imx: boot_mode: Add FLEXSPI boot entry

2018-10-18 Thread Anatolij Gustschin
From: Peng Fan i.MX8 support FLEXSPI boot support. So add FLEXSPI boot entry. Signed-off-by: Peng Fan Reviewed-by: Anatolij Gustschin Cc: Stefano Babic --- arch/arm/include/asm/mach-imx/boot_mode.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/include/asm/mach-imx/boot_mode.h

[U-Boot] [PATCH v6 16/34] imx8: add boot device detection

2018-10-18 Thread Anatolij Gustschin
From: Peng Fan Add get_boot_device to detect boot device. Add print_bootinfo to print the boot device info. Signed-off-by: Peng Fan Reviewed-by: Anatolij Gustschin Cc: Stefano Babic --- arch/arm/include/asm/arch-imx8/sys_proto.h | 10 +++ arch/arm/mach-imx/imx8/cpu.c | 85 +

[U-Boot] [PATCH v6 11/34] imx8: add imx-regs header file

2018-10-18 Thread Anatolij Gustschin
From: Peng Fan Add imx-regs header file to include the register base definition Signed-off-by: Peng Fan Reviewed-by: Anatolij Gustschin Cc: Stefano Babic --- arch/arm/include/asm/arch-imx8/imx-regs.h | 46 +++ 1 file changed, 46 insertions(+) create mode 100644 arch/arm/

[U-Boot] [PATCH v6 12/34] imx8: pins: include i.MX8QXP pin header when CONFIG_IMX8QXP defined

2018-10-18 Thread Anatolij Gustschin
From: Peng Fan Include i.MX8QXP pin header when CONFIG_IMX8QXP defined, if no SoC macro defined, report error. Signed-off-by: Peng Fan Reviewed-by: Anatolij Gustschin Cc: Stefano Babic --- arch/arm/include/asm/arch-imx8/imx8-pins.h | 15 +++ 1 file changed, 15 insertions(+) crea

[U-Boot] [PATCH v6 23/34] imx8: add dummy clock

2018-10-18 Thread Anatolij Gustschin
From: Peng Fan This driver is mostly used to avoid build errors. We use uclass clk driver for clk related operations. Signed-off-by: Peng Fan Reviewed-by: Anatolij Gustschin Cc: Stefano Babic --- arch/arm/include/asm/arch-imx8/clock.h | 27 ++ arch/arm/mach-imx/imx8/c

[U-Boot] [PATCH v6 19/34] imx8: add arch_cpu_init arch_cpu_init_dm

2018-10-18 Thread Anatolij Gustschin
From: Peng Fan Add arch_cpu_init(_dm) mainly to open the channel between ACore and SCU. Signed-off-by: Peng Fan Reviewed-by: Anatolij Gustschin Cc: Stefano Babic --- arch/arm/include/asm/arch-imx8/sys_proto.h | 9 arch/arm/mach-imx/imx8/cpu.c | 53 +-

[U-Boot] [PATCH v6 08/34] misc: add i.MX8 misc driver

2018-10-18 Thread Anatolij Gustschin
From: Peng Fan Add i.MX8 MISC driver to handle the communication between A35 Core and SCU. Signed-off-by: Peng Fan Reviewed-by: Anatolij Gustschin Cc: Stefano Babic --- drivers/misc/Makefile | 1 + drivers/misc/imx8/Makefile | 3 + drivers/misc/imx8/scu.c| 266 ++

[U-Boot] [PATCH v6 13/34] imx: add i.MX8 cpu type

2018-10-18 Thread Anatolij Gustschin
From: Peng Fan Add i.MX8 cpu type and is_imx8/is_imx8qxp help macros. Signed-off-by: Peng Fan Cc: Stefano Babic --- arch/arm/include/asm/arch-imx/cpu.h | 5 + arch/arm/include/asm/mach-imx/sys_proto.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/arch/arm/include/asm/arch-

[U-Boot] [PATCH v6 18/34] imx8: add mmu and dram related functions

2018-10-18 Thread Anatolij Gustschin
From: Peng Fan Add mmu memmap, some memory regions are reserved by M4, Arm Trusted Firmware, so need to get memreg using SCFW API and setup the memmap. Add dram_init, dram_init_banksize, get_effective_memsize functions, according to the memreg. Signed-off-by: Peng Fan Reviewed-by: Anatolij Gus

[U-Boot] [PATCH v6 09/34] misc: imx8: add scfw api impementation

2018-10-18 Thread Anatolij Gustschin
From: Peng Fan Add clk/misc/pad/pm/rm scfw api implementaion for different drivers to invoke. The low level code is using misc_call to invoke imx8_scu driver. Signed-off-by: Peng Fan Reviewed-by: Anatolij Gustschin Cc: Stefano Babic --- arch/arm/include/asm/arch-imx8/sci/sci.h | 30 ++ driv

[U-Boot] [PATCH v6 15/34] imx8: add basic cpu support

2018-10-18 Thread Anatolij Gustschin
From: Peng Fan Add basic cpu support, including cpu revision, cpu type, cpu core detection. Signed-off-by: Peng Fan Reviewed-by: Anatolij Gustschin Cc: Stefano Babic --- arch/arm/mach-imx/imx8/Makefile | 7 +++ arch/arm/mach-imx/imx8/cpu.c| 93 + 2 files

[U-Boot] [PATCH v6 22/34] imx8: add iomux configuration api

2018-10-18 Thread Anatolij Gustschin
From: Peng Fan Add iomux configuration api. Signed-off-by: Peng Fan Reviewed-by: Anatolij Gustschin Cc: Stefano Babic --- arch/arm/include/asm/arch-imx8/iomux.h | 40 arch/arm/mach-imx/imx8/Makefile| 2 +- arch/arm/mach-imx/imx8/iomux.c | 43

[U-Boot] [PATCH v6 17/34] imx8: implement mmc_get_env_dev

2018-10-18 Thread Anatolij Gustschin
From: Peng Fan Implement mmc_get_env_dev for i.MX8. Signed-off-by: Peng Fan Reviewed-by: Anatolij Gustschin Cc: Stefano Babic --- 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-im

[U-Boot] [PATCH v6 33/34] arm: dts: introduce dtsi for i.MX8QXP

2018-10-18 Thread Anatolij Gustschin
From: Peng Fan Introduce dtsi for i.MX8QXP, since there is other variants i.MX8DX(P), so add them there, because i.MX8QXP includes the dtsi of them. Signed-off-by: Peng Fan Reviewed-by: Anatolij Gustschin --- arch/arm/dts/fsl-imx8-ca35.dtsi | 66 + arch/arm/dts/fsl-imx8dx.dtsi| 499 +

[U-Boot] [PATCH v6 26/34] power: Add power domain driver for i.MX8

2018-10-18 Thread Anatolij Gustschin
From: Peng Fan Add the power domain DM driver for i.MX8, that it depends on the DTB power domain trees to generate the power domain provider devices. Users need to add power domain trees with property "compatible = "nxp,imx8-pd";" When power on a PD device, the driver will power on its ancestor

[U-Boot] [PATCH v6 28/34] serial_lpuart: Update lpuart driver to support i.MX8

2018-10-18 Thread Anatolij Gustschin
From: Peng Fan Add i.MX8 compatible string and cpu type support to lpuart driver, to use little endian 32 bits configurations. Also, according to RM, the Receive FIFO Enable (RXFE) field in LPUART FIFO register is bit 3, so this definition should change to 0x08 (not 0x40) for i.MX8, otherwise th

[U-Boot] [PATCH v6 30/34] serial: lpuart: support uclass clk api

2018-10-18 Thread Anatolij Gustschin
From: Peng Fan Modify most APIs to use udevice as the first parameter, then it will be easy to get the clk reference by using udevice pointer. Use uclass api to get lpuart clk when CONFIG_CLK is enabled. Signed-off-by: Peng Fan Reviewed-by: Anatolij Gustschin Cc: Stefano Babic --- drivers/se

[U-Boot] [PATCH v6 25/34] pinctrl: Add pinctrl driver for i.MX8

2018-10-18 Thread Anatolij Gustschin
From: Peng Fan Add pinctrl driver for i.MX8. The pads configuration is controlled by SCU, so need to ask SCU to configure pads through scfw API. Add pinctrl-scu to invoke sc_pad_set to configure pads. Add a new flag IMX8_USE_SCU to differentiate i.MX8 from other platforms which could directly con

[U-Boot] [PATCH v6 34/34] imx: add i.MX8QXP MEK board support

2018-10-18 Thread Anatolij Gustschin
From: Peng Fan Add i.MX8QXP MEK board support Enabled pinctrl/clk/power-domain/mmc/i2c/fec driver. Added README file. Signed-off-by: Peng Fan Reviewed-by: Anatolij Gustschin Cc: Stefano Babic Cc: Fabio Estevam --- arch/arm/dts/Makefile | 2 + arch/arm/dts/fsl-imx8qxp-m

[U-Boot] [PATCH v6 14/34] armv8: add cpu core helper functions

2018-10-18 Thread Anatolij Gustschin
From: Peng Fan Add helper functions to identify different armv8 variants. Signed-off-by: Peng Fan Reviewed-by: Anatolij Gustschin Cc: Stefano Babic --- arch/arm/include/asm/armv8/cpu.h | 26 ++ 1 file changed, 26 insertions(+) create mode 100644 arch/arm/include/asm/

[U-Boot] [PATCH v6 32/34] mmc: fsl_esdhc: add uclass clk support

2018-10-18 Thread Anatolij Gustschin
From: Peng Fan When CONIFG_CLK is enabled, use uclass clk api to handle the clock. Signed-off-by: Peng Fan Reviewed-by: Anatolij Gustschin Cc: Jaehoon Chung Cc: Stefano Babic --- drivers/mmc/fsl_esdhc.c | 26 ++ 1 file changed, 22 insertions(+), 4 deletions(-) diff

[U-Boot] [PATCH v6 27/34] clk: imx: add clk driver for i.MX8QXP

2018-10-18 Thread Anatolij Gustschin
From: Peng Fan Add clk driver for i.MX8QXP. This basic version supports clk enable/disable/get_rate/set_rate operations for I2C, ENET, SDHC0 and UART clocks. Signed-off-by: Peng Fan Signed-off-by: Anatolij Gustschin Cc: Stefano Babic --- drivers/clk/Kconfig| 1 + drivers/clk/Makefi

[U-Boot] [PATCH v6 24/34] gpio: mxc_gpio: add support for i.MX8

2018-10-18 Thread Anatolij Gustschin
From: Peng Fan Add i.MX8 support, there are 8 GPIO banks. Signed-off-by: Peng Fan Reviewed-by: Anatolij Gustschin Cc: Stefano Babic --- arch/arm/include/asm/arch-imx8/gpio.h | 21 +++ drivers/gpio/mxc_gpio.c | 30 +++ 2 files changed, 42

[U-Boot] [PATCH v6 31/34] fsl_esdhc: Update usdhc driver to support i.MX8

2018-10-18 Thread Anatolij Gustschin
From: Ye Li Add CONFIG_ARCH_IMX8 to use the 64bits support in usdhc driver. Signed-off-by: Ye Li Signed-off-by: Peng Fan Reviewed-by: Anatolij Gustschin Cc: Jaehoon Chung --- drivers/mmc/fsl_esdhc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/fsl_

[U-Boot] [PATCH v6 29/34] serial: lpuart: Enable RX and TX FIFO

2018-10-18 Thread Anatolij Gustschin
From: Ye Li Enable the RX and TX FIFO in LPUART driver to avoid the input lost during U-Boot boot up. Signed-off-by: Ye Li Acked-by: Peng Fan Reviewed-by: Anatolij Gustschin Cc: Stefano Babic --- drivers/serial/serial_lpuart.c | 33 ++--- 1 file changed, 26 inser

[U-Boot] [PATCH v6 21/34] imx8: cpu: add uclass based CPU driver

2018-10-18 Thread Anatolij Gustschin
print_cpuinfo() in board init code requires uclass CPU driver, add it to be able to display CPU info when CONFIG_DISPLAY_CPUINFO option is enabled. CPU node in DT will have to include 'clocks' and 'u-boot,dm-pre-reloc' properties for generic print_cpuinfo() to work as expected. The driver outputs i

Re: [U-Boot] [PATCH 27/41] net: fec: do not access reserved register for i.MX8

2018-10-18 Thread Anatolij Gustschin
Hi Peng, On Mon, 28 May 2018 20:25:12 +0800 Peng Fan peng@nxp.com wrote: > The MIB RAM and FIFO receive start register does not exist on > i.MX8. Accessing these register will cause SERROR. > > Signed-off-by: Peng Fan > Cc: Joe Hershberger > --- > drivers/net/fec_mxc.c | 2 +- > 1 file ch

[U-Boot] [PATCH] net: fec_mxc: fix phy-reset-gpios logic

2018-10-18 Thread Anatolij Gustschin
'phy-reset-gpios' property is optional, don't return error when it is missing. Read 'phy-reset-duration' property only if 'phy-reset-gpios' exists. The binding defines the duration value in milliseconds, so use mdelay() for waiting. Signed-off-by: Anatolij Gustschin Cc: Joe Hershberger --- driv

[U-Boot] [PATCH] net: fec_mxc: add support for i.MX8X

2018-10-18 Thread Anatolij Gustschin
Add compatible property and enable the FEC ipg clock when probing on i.MX8X. Add specific function for reading FEC clock rate via clock driver when configuring MII speed register. Allow FEC_MXC selection for i.MX8. Signed-off-by: Anatolij Gustschin Cc: Joe Hershberger --- drivers/net/Kconfig

[U-Boot] [PATCH] gpio: pca953x_gpio: fix DT GPIO flags translation

2018-10-18 Thread Anatolij Gustschin
Commit fb01e07a95 accidentally broke initialisation of GPIO descriptor flags from device tree: currently the active low flag from gpio-specifier is always ignored. Fix it. Signed-off-by: Anatolij Gustschin Cc: Mario Six --- drivers/gpio/pca953x_gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 d

[U-Boot] [PATCH] gpio: pca953x: Clear the polarity invert register at init

2018-10-18 Thread Anatolij Gustschin
From: Ye Li The pca953x_gpio driver uses default value of polarity inversion register. For some devices like PCA9557 and MAX7310, their polarity inversion register default value is 0xf0. So for high 4 ports, when reading their values, the values are inverted as the actual level. This patch clear

Re: [U-Boot] [PATCH v3 2/5] dm: video: bridge: don't fail to activate bridge if reset or sleep GPIO is missing

2018-10-18 Thread Andre Przywara
On Wed, 17 Oct 2018 22:56:48 -0700 Vasily Khoruzhick wrote: > Both GPIOs are optional, so we shouldn't fail if any is missing. > Without this fix reset is not deasserted if sleep GPIO is missing. > > Signed-off-by: Vasily Khoruzhick > Acked-by: Maxime Ripard > Tested-by: Maxime Ripard > Cc: V

Re: [U-Boot] [PATCH v3 1/5] mmc: sunxi: add support for automatic delay calibration

2018-10-18 Thread Andre Przywara
On Wed, 17 Oct 2018 22:56:47 -0700 Vasily Khoruzhick wrote: > A64 and H6 support automatic delay calibration and Linux driver uses > it instead of hardcoded delays. Add support for it to u-boot driver. > > Fixes eMMC instability on Pinebook > > Signed-off-by: Vasily Khoruzhick > Acked-by: Maxi

[U-Boot] [PATCH] i2c: imx_lpi2c: fix typo and register base address format

2018-10-18 Thread Anatolij Gustschin
Output the register base address in hex notation. Signed-off-by: Anatolij Gustschin --- drivers/i2c/imx_lpi2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/imx_lpi2c.c b/drivers/i2c/imx_lpi2c.c index 6c343072fb..4586d4331f 100644 --- a/drivers/i2c/imx_lpi2

Re: [U-Boot] [RFC PATCH v2 2/3] tools: Add a tool to get a list of defconfigs based on filters

2018-10-18 Thread Jean-Jacques Hiblot
On 09/10/2018 18:20, Simon Glass wrote: Hi Jean-Jacques, On 3 October 2018 at 07:53, Jean-Jacques Hiblot wrote: The possible filters are "arch", "vendor", "soc", "cpu" and "arch". The list of all the defconfigs is read from boards.cfg. If this file doesn't exist, then tools/genboardscfg.py

Re: [U-Boot] [PATCH v2 02/19] dm: i2c: Add dm_i2c_probe_device() to test the presence of a chip

2018-10-18 Thread Jean-Jacques Hiblot
On 12/10/2018 02:00, Simon Glass wrote: Hi Jean-Jacques, On 11 October 2018 at 06:01, Jean-Jacques Hiblot wrote: Hi Simon, thanks for the reviews. On 11/10/2018 05:13, Simon Glass wrote: Hi Jean-Jacques, On 5 October 2018 at 10:45, Jean-Jacques Hiblot wrote: In a non-DM environment, i

Re: [U-Boot] [PATCH v3 5/5] sunxi: DT: add support for Pinebook

2018-10-18 Thread Vagrant Cascadian
On 2018-10-17, Vasily Khoruzhick wrote: > Pinebook is a laptop produced by Pine64, with USB-connected keyboard, > USB-connected touchpad and an eDP LCD panel connected via a RGB-eDP > bridge from Analogix. > > Signed-off-by: Vasily Khoruzhick > Acked-by: Maxime Ripard > Tested-by: Maxime Ripard

Re: [U-Boot] [U-Boot, 3/3] pwm: sunxi: choose best prescaler to improve PWM resolution

2018-10-18 Thread Vagrant Cascadian
On 2018-10-16, Vasily Khoruzhick wrote: > Choose best prescaler to improve PWM resolution. Without this change > driver chooses first prescaler that gives us period value within > range, but it could be not the best one. > > Signed-off-by: Vasily Khoruzhick Fixes LCD backlight issues with the pin

[U-Boot] [BUG] H2+/H3 : SPI driver : error: ‘AHB_GATE_OFFSET_SPI0’ undeclared (first use in this function)

2018-10-18 Thread Arjan van Vught
Version: u-boot-2018.09 Configuration : orangepi_zero_defconfig In file included from include/wait_bit.h:15:0, from drivers/spi/sun4i_spi.c:26: drivers/spi/sun4i_spi.c: In function 'sun4i_spi_enable_clock':   LD  drivers/usb/musb-new/built-in.o drivers/spi/sun4i_spi.c:246:38

[U-Boot] [PATCH] ARM: rmobile: Drop PRR syscon driver

2018-10-18 Thread Marek Vasut
The PRR syscon driver is available too late for Multi DTB build of U-Boot. Replace it with simple check whether a platform is Gen3 or not and produce an address of the PRR. Signed-off-by: Marek Vasut --- arch/arm/mach-rmobile/cpu_info-rcar.c | 61 --- 1 file changed, 8 in

[U-Boot] [PATCH] ARM: dts: rmobile: Build -u-boot variants of DTs

2018-10-18 Thread Marek Vasut
Build the -u-boot variants of the device trees so they can be included in Multi-DTB fitImage, which in turn allows us to build single U-Boot image for multiple boards. Signed-off-by: Marek Vasut --- arch/arm/dts/Makefile | 16 1 file changed, 8 insertions(+), 8 deletions(-) dif

[U-Boot] [PATCH] fdt: Fix uncompress_blob() for U-Boot proper

2018-10-18 Thread Marek Vasut
When U-Boot proper is compiled with CONFIG_MULTI_DTB_FIT and tries to call uncompress_blob(), it fails with -ENOTSUPP. This is because the full implementation of this function which includes compression is available only in SPL. In U-Boot proper or if the compression is not enabled, the blob is not

[U-Boot] [PATCH 1/9] ARM: rmobile: Fix CPGWPR Address define and Settings on Gen3

2018-10-18 Thread Marek Vasut
From: Hiroyuki Yokoyama This patch fixes the write-protect control of CPG. Signed-off-by: Hiroyuki Yokoyama --- board/renesas/draak/draak.c | 4 ++-- board/renesas/salvator-x/salvator-x.c | 4 ++-- board/renesas/ulcb/ulcb.c | 4 ++-- 3 files changed, 6 insertions(+), 6 de

[U-Boot] [PATCH 9/9] ARM: dts: rmobile: r8a77990: Add USB2.0(EHCI) DT nodes on Ebisu

2018-10-18 Thread Marek Vasut
From: Hiroyuki Yokoyama Add device tree nodes for USB2.0(EHCI) on R-Car E3 Ebisu board. Signed-off-by: Hiroyuki Yokoyama --- arch/arm/dts/r8a77990-ebisu.dts | 16 ++ arch/arm/dts/r8a77990.dtsi| 38 +++ include/dt-bindings/power/r8a77990-sys

[U-Boot] [PATCH 5/9] ARM: rmobile: salvator-x: Remove GSX clock force supply

2018-10-18 Thread Marek Vasut
From: Hiroyuki Yokoyama GSX clock force supply code is unnecessary at U-Boot, because GSX clock control is supported at the kernel driver. Signed-off-by: Hiroyuki Yokoyama --- board/renesas/salvator-x/salvator-x.c | 12 1 file changed, 12 deletions(-) diff --git a/board/renesas/s

[U-Boot] [PATCH 8/9] ARM: rmobile: Fix module clock controls refer status on Gen3

2018-10-18 Thread Marek Vasut
From: Hiroyuki Yokoyama When referring to the MSTPSR register, it contains the clock status of SYS, RT, SECURE, and controlling SMSTPCR using this value has the problem of being affected by the RT and SECURE status.This patch changes the reference register to SMSTPCR. Signed-off-by: Hiroyuki Yok

[U-Boot] [PATCH 7/9] ARM: rmobile: Enable cache command on Gen3

2018-10-18 Thread Marek Vasut
From: Hiroyuki Yokoyama This patch enables the cache command, mostly for convenience of testing. Signed-off-by: Hiroyuki Yokoyama Signed-off-by: Marek Vasut --- arch/arm/mach-rmobile/Kconfig| 1 + configs/r8a7795_salvator-x_defconfig | 1 + include/configs/draak.h | 1 -

[U-Boot] [PATCH 2/9] ARM: rmobile: Remove console parameter from bootargs on Gen3

2018-10-18 Thread Marek Vasut
From: Hiroyuki Yokoyama This patch removes 'console=' argument, because kernel uses stdout-path as parameter. Signed-off-by: Hiroyuki Yokoyama --- configs/r8a7795_salvator-x_defconfig | 2 +- configs/r8a7795_ulcb_defconfig| 2 +- configs/r8a77965_salvator-x_defconfig | 2 +- configs/r

[U-Boot] [PATCH 4/9] ARM: rmobile: Remove Watchdog and CPG settings on Gen3

2018-10-18 Thread Marek Vasut
From: Hiroyuki Yokoyama This code is unnecessary, because these registers are set by the initial program loader (IPL). Signed-off-by: Hiroyuki Yokoyama --- board/renesas/draak/draak.c | 13 - board/renesas/salvator-x/salvator-x.c | 13 - board/renesas/ulcb/ulc

[U-Boot] [PATCH 3/9] ARM: rmobile: Remove TMU0/TMU1 settings on Gen3

2018-10-18 Thread Marek Vasut
From: Hiroyuki Yokoyama U-Boot uses ARM generic timer, TMU0 and TMU1 are not used, remove them. Signed-off-by: Hiroyuki Yokoyama --- board/renesas/draak/draak.c | 5 - board/renesas/eagle/eagle.c | 5 - board/renesas/ebisu/ebisu.c | 5 - board/renesas/

[U-Boot] [PATCH] cmd: fdt: Fix fdt address information after the movement

2018-10-18 Thread Marek Vasut
From: Hiroyuki Yokoyama This patch fixes the address information of fdt. wrong case: => fdt addr 0x4800 => fdt move 0x4800 0x4100 0xa000 => fdt addr The address of the fdt is 4800 Active address in this case is 0x4100. Signed-off-by: Hiroyuki Yokoyama Signed-off-by: Mar

[U-Boot] [PATCH 6/9] ARM: rmobile: Tidy up SYSC_PWRx define of 3DG on Gen3

2018-10-18 Thread Marek Vasut
From: Hiroyuki Yokoyama Tidy up unused definition related to power control of 3DG. Signed-off-by: Hiroyuki Yokoyama --- board/renesas/draak/draak.c | 6 -- board/renesas/salvator-x/salvator-x.c | 6 -- board/renesas/ulcb/ulcb.c | 6 -- 3 files changed, 18 dele

[U-Boot] [PATCH] usb: ohci: Add OHCI PCI driver

2018-10-18 Thread Marek Vasut
Add small OHCI PCI driver for USB 1.1 OHCI controllers on PCI bus. This driver matches only on PCI class (serial-ohci) and requires DM-USB ; any sort of deprecated legacy usage is not supported. Signed-off-by: Marek Vasut --- drivers/usb/host/Kconfig| 6 drivers/usb/host/Makefile |

[U-Boot] [PATCH] mmc: dw_mmc: fix dwmci_data_transfer not filling data buffer

2018-10-18 Thread paweljarosz3691
From: Paweł Jarosz In current version of the driver when data size is low (observed with 2 bytes or 16 bytes) like in case when mmc tries to read card capabilities or switch card mode, data buffer in function dwmci_data_transfer not being filled. The reason is that interrupt Receive FIFO Data R

[U-Boot] socfpga cyclone5 dts

2018-10-18 Thread Simon Goldschmidt
Hi Marek, I was playing with updating the dts files for cyclone5 (and arria5) from current kernel sources, but I found that the kernel as 4 boards that U-Boot doesn't have and U-Boot has 6 boards that the kernel doesn't have. How should I proceed here? Should I copy new boards from the kernel? S

[U-Boot] [PATCH] arm: ti: boot: Remove environment partition

2018-10-18 Thread Sam Protsenko
Remove "environment" partition and do not read it when booting Android from eMMC. We don't use this partition anymore, so this is just an unintentional leftover. Earlier we were reading dtb file from "environment" partition to feed it further to kernel. Now we are using dtb from FIT image ("boot"

[U-Boot] [PATCH 1/1] efi_loader: fix typos

2018-10-18 Thread Heinrich Schuchardt
Fix typos in EFI subsystem comments. Signed-off-by: Heinrich Schuchardt --- cmd/bootefi.c| 2 +- lib/efi_loader/efi_bootmgr.c | 2 +- lib/efi_loader/efi_console.c | 4 ++-- lib/efi_loader/efi_device_path_to_text.c | 8 lib/efi_load

Re: [U-Boot] [PATCH] arm: ti: boot: Remove environment partition

2018-10-18 Thread Bajjuri, Praneeth
On 10/18/2018 2:47 PM, Sam Protsenko wrote: Remove "environment" partition and do not read it when booting Android from eMMC. We don't use this partition anymore, so this is just an unintentional leftover. Earlier we were reading dtb file from "environment" partition to feed it further to kern

Re: [U-Boot] socfpga cyclone5 dts

2018-10-18 Thread Marek Vasut
On 10/18/2018 09:28 PM, Simon Goldschmidt wrote: > Hi Marek, Hi, > I was playing with updating the dts files for cyclone5 (and arria5) from > current kernel sources, but I found that the kernel as 4 boards that > U-Boot doesn't have and U-Boot has 6 boards that the kernel doesn't have. Thanks fo

Re: [U-Boot] socfpga cyclone5 dts

2018-10-18 Thread Simon Goldschmidt
Marek Vasut schrieb am Do., 18. Okt. 2018, 22:15: > On 10/18/2018 09:28 PM, Simon Goldschmidt wrote: > > Hi Marek, > > Hi, > > > I was playing with updating the dts files for cyclone5 (and arria5) from > > current kernel sources, but I found that the kernel as 4 boards that > > U-Boot doesn't hav

Re: [U-Boot] socfpga cyclone5 dts

2018-10-18 Thread Marek Vasut
On 10/18/2018 10:20 PM, Simon Goldschmidt wrote: > > > Marek Vasut mailto:marek.va...@gmail.com>> > schrieb am Do., 18. Okt. 2018, 22:15: > > On 10/18/2018 09:28 PM, Simon Goldschmidt wrote: > > Hi Marek, > > Hi, > > > I was playing with updating the dts files for cyclone5 (and

Re: [U-Boot] [PATCH 1/3] pwm: sunxi: fix off-by-one that prevented PWM to use prescaler bypass

2018-10-18 Thread Anatolij Gustschin
On Tue, 16 Oct 2018 21:56:33 -0700 Vasily Khoruzhick anars...@gmail.com wrote: > Fix off-by-one that prevented PWM driver to use prescaler bypass. > Without this change prescaler is always enabled. > > Signed-off-by: Vasily Khoruzhick > --- > drivers/pwm/sunxi_pwm.c | 2 +- > 1 file changed, 1

[U-Boot] efi-next: Kconfig: error: recursive dependency detected!

2018-10-18 Thread Heinrich Schuchardt
Hello Alex, in branch efi-next Kconfig has a recursive dependency: $ make qemu_arm64_defconfig drivers/usb/Kconfig:1:error: recursive dependency detected! drivers/usb/Kconfig:1: symbol USB is selected by DISTRO_DEFAULTS Kconfig:89: symbol DISTRO_DEFAULTS depends on USB For a resolution refer

Re: [U-Boot] [PATCH] ARM: Samsung: Add Exynos5422-based Odroid HC2 support

2018-10-18 Thread Dirk Meul
Odroid HC2 board is based on Odroid XU4 board, like the Odroid HC1. The linux kernel does not provide a hc2 DTB so the hc1 DTB is also used for the Odroid HC2. Signed-off-by: Dirk Meul --- board/samsung/common/exynos5-dt-types.c | 16 +--- board/samsung/common/exynos5-dt.c |

[U-Boot] socfpga cyclone5 dts

2018-10-18 Thread goldsi...@gmx.de
Hi Marek, I was playing with updating the dts files for cyclone5 (and arria5) from current kernel sources, but I found that the kernel as 4 boards that U-Boot doesn't have and U-Boot has 6 boards that the kernel doesn't have. How should I proceed here? Should I copy new boards from the kernel

[U-Boot] [PATCH v7 30/34] serial: lpuart: support uclass clk api

2018-10-18 Thread Anatolij Gustschin
From: Peng Fan Modify most APIs to use udevice as the first parameter, then it will be easy to get the clk reference by using udevice pointer. Use uclass api to get lpuart clk when CONFIG_CLK is enabled. Signed-off-by: Peng Fan Signed-off-by: Anatolij Gustschin Cc: Stefano Babic --- Changes i

[U-Boot] [PATCH] mtd: nand: lpc32xx mlc: predefine number of NAND chips to support

2018-10-18 Thread Vladimir Zapolskiy
Build option CONFIG_SYS_MAX_NAND_CHIPS is used by NXP LPC32xx NAND MLC driver only, as a preparation for potential removal or replacement of the option the change predefines CONFIG_SYS_MAX_NAND_CHIPS to 1, same value is used by the single user Work Microwave Work 92105 board, thus it will be safe n

[U-Boot] [PATCH] mtd: nand: lpc32xx slc: disable DMA support in SPL builds

2018-10-18 Thread Vladimir Zapolskiy
Testing and analysis shows that at the moment LPC32xx NAND SLC driver can not get PL080 DMA backbone support in SPL build, because SPL NAND loaders operate with subpage (ECC step to be precisely) reads, and this is not supported in the NAND SLC + DMA + hardware ECC calculation bundle. The change r

Re: [U-Boot] [PATCH 0/2] arm: lpc32xx: create platform specific Kconfig file

2018-10-18 Thread Vladimir Zapolskiy
Hi Tom, On 09/17/2018 09:43 PM, Vladimir Zapolskiy wrote: > There is a need to introduce ARCH_LPC32XX build config symbol > to improve selection of build options for drivers, which are > specific to NXP LPC32xx platform only. At the same time the > new Kconfig file and sections can be used to desc

Re: [U-Boot] Errors when starting sandbox

2018-10-18 Thread Simon Glass
Hi Joe, On 1 October 2018 at 16:01, Joe Hershberger wrote: > > On Mon, Oct 1, 2018 at 4:27 PM, Simon Glass wrote: > > Hi Joe, > > > > On 1 October 2018 at 15:14, Joe Hershberger wrote: > >> > >> Hi Simon, > >> > >> On Mon, Oct 1, 2018 at 12:32 PM, Simon Glass wrote: > >> > Hi Joe, > >> > > >>

Re: [U-Boot] [PATCH v6 20/34] imx8: cpu: add function for reading FEC MAC from fuse

2018-10-18 Thread Peng Fan
Hi Anatolij, > -Original Message- > From: Anatolij Gustschin [mailto:ag...@denx.de] > Sent: 2018年10月18日 20:28 > To: u-boot@lists.denx.de; Peng Fan ; sba...@denx.de > Subject: [PATCH v6 20/34] imx8: cpu: add function for reading FEC MAC from > fuse > > FEC driver requires imx_get_mac_from_

Re: [U-Boot] [PATCH v6 21/34] imx8: cpu: add uclass based CPU driver

2018-10-18 Thread Peng Fan
Hi Anatolij, > -Original Message- > From: Anatolij Gustschin [mailto:ag...@denx.de] > Sent: 2018年10月18日 20:28 > To: u-boot@lists.denx.de; Peng Fan ; sba...@denx.de > Subject: [PATCH v6 21/34] imx8: cpu: add uclass based CPU driver > > print_cpuinfo() in board init code requires uclass CPU

Re: [U-Boot] [PATCH v3 5/9] pinctrl: stm32: Add get_pins_count() ops

2018-10-18 Thread Simon Glass
On 9 October 2018 at 07:31, Patrice Chotard wrote: > Add get_pins_count ops to obtain the number of pins > owns by a pin-controller. > On STM32 SoCs bindings, each pin-controller owns > several gpio banks. Each GPIO bank can own up to 16 pins. > > To obtain the total pins count, walk through each

Re: [U-Boot] [PATCH v3 6/9] pinctrl: stm32: Add get_pin_name() ops

2018-10-18 Thread Simon Glass
On 9 October 2018 at 07:31, Patrice Chotard wrote: > Add get_pin_name ops to obtain a pin name given a > pin index of a specified pin-controller. > > Signed-off-by: Patrice Chotard > --- > > Changes in v3: None > Changes in v2: None > > drivers/pinctrl/pinctrl_stm32.c | 47 > +++

Re: [U-Boot] [PATCH] syscon: reset node list syscon_list after relocation

2018-10-18 Thread Simon Glass
Hi Patrick, On 12 October 2018 at 09:26, Patrick Delaunay wrote: > Reset the list head after the reallocation because the list syscon_list > use allocated pointer and they are no more valid. > This patch avoid issue (crash) when syscon_node_to_regmap() is called > before and after reallocation. >

  1   2   >