Re: [PATCH RESEND] ARM: imx: mx6ull: Add iMX6ULL VisionSOM SoM and EVK

2020-01-21 Thread Stefano Babic
Hi Marek, On 20/01/20 23:18, Marek Vasut wrote: > From: Arkadiusz Karas > > Add iMX6ULL VisionSOM SoM and VisionCB-RT-STD evaluation board support. > The SoM has an iMX6ULL, 512 MiB of DRAM and microSD slot. The carrier > board has Ethernet, USB host port, USB OTG port. > Patch was already

[PATCH v3 00/20] Refactor the architecture parts of mt7628

2020-01-21 Thread Weijie Gao
This patch series are divided into two parts: The main part is to rewrite the whole architecture code of mt7628: * Lock parts of the d-cache for initial stack so the rest of the code can be reimplemented in C. * Memory controller & DDR initialization have been fully written to support

[PATCH v3 03/20] mips: add an option to support initialize SRAM for initial stack

2020-01-21 Thread Weijie Gao
Currently CONFIG_MIPS_INIT_STACK_IN_SRAM assumes the memory space for the initial stack can be used directly. However on some platform the SRAM needs initialization, e.g. lock cache. This patch adds an option to allow a new function mips_sram_init() being called before setup_stack_gd.

[PATCH v3 05/20] sysreset: add reset controller based reboot driver

2020-01-21 Thread Weijie Gao
Some chips provide their sysreset function in reset controller, which is normally a bit written to 1 to perform the sysreset. This patch adds a new sysreset driver to take advantage of it. Reviewed-by: Daniel Schwierzeck Reviewed-by: Simon Glass Signed-off-by: Weijie Gao --- Changes since v2:

[PATCH v3 04/20] mips: start.S: avoid overwriting outside gd when clearing global data in stack

2020-01-21 Thread Weijie Gao
When setting up initial stack, global data will also be put in the stack, and being cleared. The assembler instructions for clearing gd is as follows: movet0, k0 1: PTR_S zero, 0(t0) blt t0, t1, 1b PTR_ADDIU t0, PTRSIZE t0 is the start address of gd,

[PATCH v3 06/20] mips: mtmips: make use of sysreset-resetctrl for mt7628 soc

2020-01-21 Thread Weijie Gao
This patch replaces sysreset-syscon with sysreset-resetctrl for mt7628 soc. Reviewed-by: Daniel Schwierzeck Signed-off-by: Weijie Gao --- Changes since v2: none --- arch/mips/dts/mt7628a.dtsi | 10 +- arch/mips/mach-mtmips/Kconfig | 1 +

[PATCH v3 08/20] mips: add a mtmips-specific field to architecture-specific global data

2020-01-21 Thread Weijie Gao
SoCs of mtmips can use different CPU frequencies depending on the HW/SW configurations. For example mt7628 uses 580MHz clock if the input xtal frequency is 40MHz, and 575MHz clock if the xtal is 25MHz. Upon cold boot the CPU uses the xtal frequency directly. So hardcoding the timer frequency

[PATCH v3 07/20] configs: enable CONFIG_RESTORE_EXCEPTION_VECTOR_BASE for all mtmips boards

2020-01-21 Thread Weijie Gao
This patch enables CONFIG_RESTORE_EXCEPTION_VECTOR_BASE for all mtmips boards. Reviewed-by: Daniel Schwierzeck Signed-off-by: Weijie Gao --- Changes since v2: none --- configs/gardena-smart-gateway-mt7688-ram_defconfig | 1 + configs/gardena-smart-gateway-mt7688_defconfig | 1 +

[PATCH v3 09/20] mips: add a option to support not reserving malloc space on initial stack

2020-01-21 Thread Weijie Gao
The initial stack on some platforms is too small to hold a large malloc space. This patch adds a option to allow these platforms not reserving the malloc space on initial stack. These platforms should set the malloc base after DRAM is usable. Signed-off-by: Weijie Gao --- Changes since v2: none

[PATCH v3 10/20] mips: mtmips: rewrite lowlevel codes of mt7628

2020-01-21 Thread Weijie Gao
This patch rewrites the mtmips architecture with the following changes: 1. Move MT7628 soc parts into a subfolder. 2. Lock parts of D-Cache as temporary stack. 3. Reimplement DDR initialization in C language. 4. Reimplement DDR calibration in a clear logic. 5. Add full support for auto size

[PATCH v3 12/20] mips: enable support for appending dtb to spl binary

2020-01-21 Thread Weijie Gao
If CONFIG_SPL_OF_CONTROL is enabled for SPL and CONFIG_OF_SEPARATE is also enabled, the dtb will be appended to the u-boot-spl.bin. When calling dm_init_and_scan() in SPL, fdtdec_setup() will try to locate dtb at the end of u-boot-spl.bin, by referencing to _image_binary_end. However

[PATCH v3 11/20] dts: mtmips: add alternative pinmux node for uart2

2020-01-21 Thread Weijie Gao
This patch adds a new pinmux for UART2, which shares the pins with SPIS. Signed-off-by: Weijie Gao --- Changes since v2: new patch --- arch/mips/dts/mt7628a.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/mips/dts/mt7628a.dtsi b/arch/mips/dts/mt7628a.dtsi index

[PATCH v3 14/20] lib: enable lzma decompression support for SPL build

2020-01-21 Thread Weijie Gao
This patch enables LZMA decompression support for SPL build Reviewed-by: Tom Rini Signed-off-by: Weijie Gao --- Changes since v2: none --- lib/Kconfig | 5 + lib/Makefile | 1 + 2 files changed, 6 insertions(+) diff --git a/lib/Kconfig b/lib/Kconfig index d040a87d26..6e491c3552 100644

[PATCH v3 13/20] mips: add an option to enable u_boot_list section for SPL loaders in u-boot-spl.lds

2020-01-21 Thread Weijie Gao
u_boot_list is not only used by DM, but also by some SPL image load methods such as spl_nor.c. This patch adds an option CONFIG_SPL_LOADER_SUPPORT in conjunction with CONFIG_SPL_DM surrounding the u_boot_list section to make sure SPL image loaders can be correctly built into u-boot SPL without DM

[PATCH v3 16/20] tools: binman: add etype file for u-boot-lzma-img

2020-01-21 Thread Weijie Gao
This patch adds etype u-boot-lzma-img for binman. README.entries is also updated. Signed-off-by: Weijie Gao --- Changes since v2: none --- tools/binman/README.entries | 15 ++ tools/binman/etype/u_boot_lzma_img.py | 28 +++ 2 files changed, 43

[PATCH v3 17/20] spl: nor: add lzma decompression support for legacy image

2020-01-21 Thread Weijie Gao
This patch adds support for decompressing LZMA compressed u-boot payload in legacy uImage format. Using this patch together with u-boot-lzma.img is useful for NOR flashes as they can reduce the size and load time of u-boot payload. Signed-off-by: Weijie Gao --- Changes since v2: new ---

Re: [PATCH 3/6] sunxi: SPL SPI: Introduce is_new_gen_spi()

2020-01-21 Thread Jagan Teki
On Mon, Jan 6, 2020 at 6:59 AM Andre Przywara wrote: > > So far we were using the CONFIG_SUNXI_GEN_SUN6I symbol to select between > the two SPI controller generations used on Allwinner SoCs. This is a > convenience symbol to roughly differentiate between "older" and "newer" > generation of SoCs.

[PATCH v3 19/20] mips: mtmips: enable SPL for all boards

2020-01-21 Thread Weijie Gao
This patch enables SPL for all mtmips boards. And also remove defconfig files which are intend to build ram bootable u-boot files. SPL_DM and OF_CONTROL are enabled for both boards. Signed-off-by: Weijie Gao --- Changes since v2: * Move spi related files to previous patch ---

[PATCH v3 15/20] Makefile: add support to generate LZMA compressed u-boot image

2020-01-21 Thread Weijie Gao
This patch adds support for generating LZMA compressed u-boot image. The compressed image can be used for SPL to reduce the size of the u-boot binary. Reviewed-by: Daniel Schwierzeck Reviewed-by: Simon Glass Signed-off-by: Weijie Gao --- Changes since v2: none --- Makefile | 13 +

[PATCH v3 20/20] mips: mtmips: add support for mt7628-rfb

2020-01-21 Thread Weijie Gao
This patch adds support for mt7628 reference board. SPL_DM and DT are not enabled for SPL to save about 17KiB for u-boot-spl.bin. Signed-off-by: Weijie Gao --- Changes since v2: none --- arch/mips/dts/Makefile| 1 + arch/mips/dts/mediatek,mt7628-rfb.dts | 67

[PATCH v3 18/20] mips: mtmips: add SPL support

2020-01-21 Thread Weijie Gao
This patch adds SPL support for mtmips platform. The lowlevel architecture is split into SPL and the rest parts are built into a memory loadable u-boot image. Optional SPL_DM and OF_CONTROL are also supported. The increment of size is very small (< 10 KiB) if SPL_DM and OF_CONTROL are not enabled

Re: [U-Boot] [RESEND PATCH] common: add blkcache init

2020-01-21 Thread Angelo Dureghello
Hi Tom and Eric, ack, sure, will do. v2 in short. Regards, Angelo On Wed, Jan 15, 2020 at 9:47 PM Tom Rini wrote: > > On Sat, Nov 23, 2019 at 11:51:11PM +0100, Angelo Dureghello wrote: > > > From: Angelo Durgehello > > > > On m68k, block_cache list is relocated, but next and prev list > >

[PATCH v3 01/20] mips: add support to restore exception vector base before booting linux

2020-01-21 Thread Weijie Gao
In U-Boot the exception vector base will be moved to top of memory, to be used to display register dump when exception occurs. But some old linux kernel does not honor the base set in CP0_EBASE. A modified exception vector base will cause kernel crash. This patch adds an option to enable reset

[PATCH v3 02/20] mips: mtmips: add predefined i-cache/d-cache size and linesize

2020-01-21 Thread Weijie Gao
Both mt7620 and mt7628 has the same cache configuration. There is no need to use CONFIG_SYS_CACHE_SIZE_AUTO to probe it at runtime. Add them into Kconfig to reduce some code size. Reviewed-by: Stefan Roese Signed-off-by: Weijie Gao --- Changes since v2: none --- arch/mips/mach-mtmips/Kconfig

Re: [PATCH v3 00/20] Refactor the architecture parts of mt7628

2020-01-21 Thread Weijie Gao
I'm having a holiday from tomorrow to Jan 30th and I may not reply during the holiday. Sincerely On Tue, 2020-01-21 at 16:17 +0800, Weijie Gao wrote: > This patch series are divided into two parts: > > The main part is to rewrite the whole architecture code of mt7628: > * Lock parts of the

Re: [PATCH v3 06/20] mips: mtmips: make use of sysreset-resetctrl for mt7628 soc

2020-01-21 Thread Stefan Roese
On 21.01.20 09:18, Weijie Gao wrote: This patch replaces sysreset-syscon with sysreset-resetctrl for mt7628 soc. Reviewed-by: Daniel Schwierzeck Signed-off-by: Weijie Gao --- Changes since v2: none Reviewed-by: Stefan Roese Thanks, Stefan

Re: [PATCH 1/4] sunxi: dts: R40: Update Bananapi M2 Berry .dts

2020-01-21 Thread Jagan Teki
On Thu, Jan 2, 2020 at 5:15 AM Andre Przywara wrote: > > Update the .dts file from the kernel, which carries much more nodes, > some of them we need to enable USB and Ethernet support for the board. > > Signed-off-by: Andre Przywara > --- Would be better to have all R40 files to sync at the

[PATCH] ARM: dts: sunxi: Sync R40 dts(i) from v5.4

2020-01-21 Thread Jagan Teki
Sync R40 dts(i) files from linux-next v5.4 tag. This sync would update r40 dts(i) and v40-bananapi-m2-berry dts files. Signed-off-by: Jagan Teki Signed-off-by: Andre Przywara --- arch/arm/dts/sun8i-r40-bananapi-m2-ultra.dts | 7 +- arch/arm/dts/sun8i-r40.dtsi | 24 ++--

Re: [PATCH v3 08/20] mips: add a mtmips-specific field to architecture-specific global data

2020-01-21 Thread Stefan Roese
On 21.01.20 09:18, Weijie Gao wrote: SoCs of mtmips can use different CPU frequencies depending on the HW/SW configurations. For example mt7628 uses 580MHz clock if the input xtal frequency is 40MHz, and 575MHz clock if the xtal is 25MHz. Upon cold boot the CPU uses the xtal frequency directly.

Re: [PATCH v3 07/20] configs: enable CONFIG_RESTORE_EXCEPTION_VECTOR_BASE for all mtmips boards

2020-01-21 Thread Stefan Roese
On 21.01.20 09:18, Weijie Gao wrote: This patch enables CONFIG_RESTORE_EXCEPTION_VECTOR_BASE for all mtmips boards. Reviewed-by: Daniel Schwierzeck Signed-off-by: Weijie Gao --- Changes since v2: none Reviewed-by: Stefan Roese Thanks, Stefan

Re: [PATCH v3 09/20] mips: add a option to support not reserving malloc space on initial stack

2020-01-21 Thread Stefan Roese
On 21.01.20 09:18, Weijie Gao wrote: The initial stack on some platforms is too small to hold a large malloc space. This patch adds a option to allow these platforms not reserving the malloc space on initial stack. These platforms should set the malloc base after DRAM is usable. Signed-off-by:

Re: [PATCH v3 10/20] mips: mtmips: rewrite lowlevel codes of mt7628

2020-01-21 Thread Stefan Roese
On 21.01.20 09:19, Weijie Gao wrote: This patch rewrites the mtmips architecture with the following changes: 1. Move MT7628 soc parts into a subfolder. 2. Lock parts of D-Cache as temporary stack. 3. Reimplement DDR initialization in C language. 4. Reimplement DDR calibration in a clear logic.

Re: [PATCH v3 11/20] dts: mtmips: add alternative pinmux node for uart2

2020-01-21 Thread Stefan Roese
On 21.01.20 09:19, Weijie Gao wrote: This patch adds a new pinmux for UART2, which shares the pins with SPIS. Signed-off-by: Weijie Gao --- Changes since v2: new patch Reviewed-by: Stefan Roese Thanks, Stefan

Re: [PATCH v3 12/20] mips: enable support for appending dtb to spl binary

2020-01-21 Thread Stefan Roese
On 21.01.20 09:19, Weijie Gao wrote: If CONFIG_SPL_OF_CONTROL is enabled for SPL and CONFIG_OF_SEPARATE is also enabled, the dtb will be appended to the u-boot-spl.bin. When calling dm_init_and_scan() in SPL, fdtdec_setup() will try to locate dtb at the end of u-boot-spl.bin, by referencing to

Re: [PATCH v3 13/20] mips: add an option to enable u_boot_list section for SPL loaders in u-boot-spl.lds

2020-01-21 Thread Stefan Roese
On 21.01.20 09:19, Weijie Gao wrote: u_boot_list is not only used by DM, but also by some SPL image load methods such as spl_nor.c. This patch adds an option CONFIG_SPL_LOADER_SUPPORT in conjunction with CONFIG_SPL_DM surrounding the u_boot_list section to make sure SPL image loaders can be

Re: [PATCH v3 14/20] lib: enable lzma decompression support for SPL build

2020-01-21 Thread Stefan Roese
On 21.01.20 09:19, Weijie Gao wrote: This patch enables LZMA decompression support for SPL build Reviewed-by: Tom Rini Signed-off-by: Weijie Gao --- Changes since v2: none Reviewed-by: Stefan Roese Thanks, Stefan

Re: [PATCH v3 15/20] Makefile: add support to generate LZMA compressed u-boot image

2020-01-21 Thread Stefan Roese
On 21.01.20 09:19, Weijie Gao wrote: This patch adds support for generating LZMA compressed u-boot image. The compressed image can be used for SPL to reduce the size of the u-boot binary. Reviewed-by: Daniel Schwierzeck Reviewed-by: Simon Glass Signed-off-by: Weijie Gao --- Changes since v2:

Re: [PATCH v3 16/20] tools: binman: add etype file for u-boot-lzma-img

2020-01-21 Thread Stefan Roese
On 21.01.20 09:19, Weijie Gao wrote: This patch adds etype u-boot-lzma-img for binman. README.entries is also updated. Signed-off-by: Weijie Gao --- Changes since v2: none Reviewed-by: Stefan Roese Thanks, Stefan

Re: [PATCH v3 17/20] spl: nor: add lzma decompression support for legacy image

2020-01-21 Thread Stefan Roese
On 21.01.20 09:20, Weijie Gao wrote: This patch adds support for decompressing LZMA compressed u-boot payload in legacy uImage format. Using this patch together with u-boot-lzma.img is useful for NOR flashes as they can reduce the size and load time of u-boot payload. Signed-off-by: Weijie Gao

Re: [PATCH v3 19/20] mips: mtmips: enable SPL for all boards

2020-01-21 Thread Stefan Roese
On 21.01.20 09:20, Weijie Gao wrote: This patch enables SPL for all mtmips boards. And also remove defconfig files which are intend to build ram bootable u-boot files. SPL_DM and OF_CONTROL are enabled for both boards. Signed-off-by: Weijie Gao --- Changes since v2: * Move spi related files

Re: [PATCH v3 18/20] mips: mtmips: add SPL support

2020-01-21 Thread Stefan Roese
On 21.01.20 09:20, Weijie Gao wrote: This patch adds SPL support for mtmips platform. The lowlevel architecture is split into SPL and the rest parts are built into a memory loadable u-boot image. Optional SPL_DM and OF_CONTROL are also supported. The increment of size is very small (< 10 KiB)

Re: [PATCH v3 20/20] mips: mtmips: add support for mt7628-rfb

2020-01-21 Thread Stefan Roese
On 21.01.20 09:20, Weijie Gao wrote: This patch adds support for mt7628 reference board. SPL_DM and DT are not enabled for SPL to save about 17KiB for u-boot-spl.bin. Signed-off-by: Weijie Gao --- Changes since v2: none Reviewed-by: Stefan Roese Thanks, Stefan

[PATCH] common: add blkcache init

2020-01-21 Thread Angelo Dureghello
From: Angelo Durgehello On m68k, block_cache list is relocated, but next and prev list pointers are not adjusted to the relocated struct list_head address, so the first iteration over the block_cache list hangs. This patch initializes the block_cache list after relocation. Signed-off-by:

[PATCH] mmc: sdhci-cadence: send tune request twice to work around errata

2020-01-21 Thread Masahiro Yamada
Cadence sent out an errata report to their customers of this IP. This errata is not so severe, but the tune request should be sent twice to avoid the potential issue. Quote from the report: Problem Summary --- The IP6116 SD/eMMC PHY design has a timing issue on receive data path.

[PATCH v2 3/7] gpio: do not include for Cortina CAxxxx SoCs

2020-01-21 Thread Alex Nemirovsky
From: Jason Li The Cortina CA GPIO driver maintains DM_GPIO support across different CPU ISA in the CA Soc Family; Not just ARM. Therefore, it is not desirable to split out and maintain separete gpio header file for each CPU architecture. Signed-off-by: Jason Li Signed-off-by: Alex

[PATCH v2 0/7] Add Cortina Access basic DM drivers

2020-01-21 Thread Alex Nemirovsky
Cortina Access management has decided that we want to add formal upstream support of u-boot going forward for our line of SoCs and evaluation boards. Our line of SoC’s all begin with the “CA” designation followed by 4 digits. i.e. CA. The CA series supports both ARM and MIPS ISA based

[PATCH v2 1/7] MAINTAINERS, git-mailrc: cortina: add Custodian for Cortina Access Inc.

2020-01-21 Thread Alex Nemirovsky
Assign Alex Nemirovsky as custodian for all Cortina Access (CA) for ARM and MIPS based SoCs. Currently Cortina Access CA family of SoCs support both ARM and MIPS ISA. Drivers have cross platform support for both architectures. Signed-off-by: Alex Nemirovsky --- Changes in v2: - Modified

[PATCH v2 2/7] cortina: common: armv8: add custom init for CA ARMv8 based SoCs

2020-01-21 Thread Alex Nemirovsky
Cortina Access ARMv8 boards share common custom ARMV8 init routines. Add common board init code for Cortina Access SoC ARMv8 based SoCs Signed-off-by: Alex Nemirovsky --- Changes in v2: None board/cortina/common/armv8/lowlevel_init.S | 87 ++ 1 file changed, 87

[PATCH v2 4/7] gpio: cortina_gpio: add DM_GPIO driver for CAxxxx SoCs

2020-01-21 Thread Alex Nemirovsky
From: Jason Li DM_GPIO based GPIO controller driver for CA SoCs. This driver support multiple CPU architectures and Cortina Access SoC platforms. Signed-off-by: Jason Li Signed-off-by: Alex Nemirovsky --- Changes in v2: - Rename driver in DT namespace for consistency between all CA

[PATCH v2 5/7] watchdog: cortina_wdt: add support for HW WDT on CAxxxx SoCs

2020-01-21 Thread Alex Nemirovsky
From: Jason Li Add support for hardware watchdog timer on all Cortina Access CA family of SoCs. Reviewed-by: Stefan Roese Signed-off-by: Jason Li Signed-off-by: Alex Nemirovsky --- Changes in v2: - Rename driver in DT namespace for consistency between all CA drivers. - Remove blank

[PATCH v2 6/7] serial: serial_cortina: add UART DM driver for CAxxxx SoCs

2020-01-21 Thread Alex Nemirovsky
From: Jason Li Add serial UART driver support for all Cortina Access CA family of SoCs. Signed-off-by: Jason Li Signed-off-by: Alex Nemirovsky --- Changes in v2: - Rename driver in DT namespace for consistency between all CA drivers. - Remove blank line after SPDX identifier -

[PATCH v2 7/7] board: presidio-asic: Add basic G3 engr. development board support

2020-01-21 Thread Alex Nemirovsky
Add basic Presidio G3 engineering board support Signed-off-by: Alex Nemirovsky --- Changes in v2: None arch/arm/Kconfig | 5 ++ arch/arm/dts/Makefile| 2 + arch/arm/dts/ca-presidio-engboard.dts| 69 +++

[PATCH] dtc: add ability to make nodes conditional on them being referenced

2020-01-21 Thread Andre Przywara
From: Maxime Ripard This is needed when importing mainline DTs into U-Boot, as some started using this /omit-if-no-ref/ tag, so won't compile with U-Boot's current dtc copy. This is just a cherry-pick of the patch introducing this feature. Original commit message from Maxime: --

Re: [PATCH] ARM: dts: sunxi: Sync R40 dts(i) from v5.4

2020-01-21 Thread Andre Przywara
On Tue, 21 Jan 2020 14:05:12 +0530 Jagan Teki wrote: Hi Jagan, thanks for taking care of this. > Sync R40 dts(i) files from linux-next v5.4 tag. Why this tag? Shouldn't it be just the v5.4 release tag? But honestly we should take the latest from Maxime's sunxi/for-next branch. This isn't

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

2020-01-21 Thread Oliver Graute
On 16/12/19, Igor Opaniuk wrote: > Hi Oliver, Fabio, Peng, > > On Thu, Dec 12, 2019 at 9:20 AM Oliver Graute > wrote: > > > > On 11/12/19, Fabio Estevam wrote: > > > Hi Oliver, > > > > > > On Tue, Dec 10, 2019 at 11:50 PM Peng Fan wrote: > > > > > > > Update your scfw/atf and they try again. >

[PATCH 1/1] tools: imx8m_image: fix warning message

2020-01-21 Thread Sébastien Szymanski
When a firmware file is missing the warning message doesn't indicate the firmware file name because '$tmp' var doesn't exist. Fix the warning message and while at it reduce the if/else statement. Signed-off-by: Sébastien Szymanski --- tools/imx8m_image.sh | 6 ++ 1 file changed, 2

Re: [PATCH v3 2/4] arm: sunxi: add a config option to fixup a Bluetooth address

2020-01-21 Thread Ondřej Jirman
On Tue, Jan 21, 2020 at 01:12:47PM +0530, Jagan Teki wrote: > On Tue, Dec 3, 2019 at 2:15 PM Andre Heider wrote: > > > > Some Bluetooth controllers, like the BCM4345C5 of the Orange Pi 3, > > ship with the controller default address. > > > > Add a config option to fix it up so it can function

[PATCH v3 01/10] lib: elf: Move the generic elf loading/validating functions to lib

2020-01-21 Thread Keerthy
Move the generic elf loading/validating functions to lib/ so that they can be re-used and accessed by code existing outside cmd. Signed-off-by: Keerthy Suggested-by: Simon Goldschmidt Reviewed-by: Simon Goldschmidt --- cmd/Kconfig | 1 + cmd/elf.c | 229

[PATCH v3 04/10] armv7R: K3: Add support for jumping to firmware

2020-01-21 Thread Keerthy
MCU Domain rf50 is currently shutting down after loading the ATF. Load elf firmware and jump to firmware post loading ATF. ROM doesn't enable ATCM memory, so make sure that firmware that is being loaded doesn't use ATCM memory or override SPL. Signed-off-by: Keerthy Signed-off-by: Lokesh Vutla

[PATCH v3 03/10] armv7R: K3: r5_mpu: Enable execute permission for MCU0 BTCM

2020-01-21 Thread Keerthy
Enable execute permission for mcu_r5fss0_core0 BTCM so that we can jump to a firmware directly from SPL. Signed-off-by: Keerthy --- arch/arm/mach-k3/r5_mpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-k3/r5_mpu.c b/arch/arm/mach-k3/r5_mpu.c index

[PATCH v3 00/10] Add support for loading main_r5fss0_core0

2020-01-21 Thread Keerthy
This patch series enables mcu_r5fss0_core0 & main_r5fss0_core0. Tested for firmware loading and execution on J721e. Changes in v3: * Removed saving env in MMC and fixed env saving in SPL when nowhere option is set. Changes in v2: * Factored out all the generic elf handling functions

[PATCH v3 02/10] arm: k3: Add support for loading non linux remote cores

2020-01-21 Thread Keerthy
Add MAIN domain R5FSS0 remoteproc support from spl. This enables loading the elf firmware in SPL and starting the remotecore. In order to start the core, there should be a file with path "/lib/firmware/j7-main-r5f0_0-fw" under filesystem of respective boot mode. Signed-off-by: Keerthy

[PATCH v3 07/10] include: configs: j721e_evm: Add env variables for mcu_r5fss0_core0 & main_r5fss0_core0

2020-01-21 Thread Keerthy
Add env variables for mcu_r5fss0_core0 & main_r5fss0_core0 firmware loadaddr and name. Signed-off-by: Keerthy --- include/configs/j721e_evm.h | 4 1 file changed, 4 insertions(+) diff --git a/include/configs/j721e_evm.h b/include/configs/j721e_evm.h index eaed520e6b..265239e32a 100644 ---

[PATCH v3 05/10] arm: dts: k3-j721e-r5: Add fs_loader node

2020-01-21 Thread Keerthy
Add fs_loader node which will be needed for loading firmwares from the boot media/filesystem. Signed-off-by: Keerthy Signed-off-by: Lokesh Vutla --- arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH v3 08/10] configs: j721e_evm_r5: Enable R5F remoteproc support

2020-01-21 Thread Keerthy
Enable r5f remoteproc support in r5 defconfig so that r5s can be started in spl. Signed-off-by: Keerthy Signed-off-by: Lokesh Vutla --- configs/j721e_evm_r5_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/j721e_evm_r5_defconfig b/configs/j721e_evm_r5_defconfig index

[PATCH v3 09/10] configs: j721e_evm_r5_defconfig: Remove saving ENV in eMMC

2020-01-21 Thread Keerthy
Remove saving ENV in eMMC in r5 as the power domains are not setup. Environment in eMMC cannot be read if we do not boot from eMMC. Signed-off-by: Keerthy --- configs/j721e_evm_r5_defconfig | 4 1 file changed, 4 deletions(-) diff --git a/configs/j721e_evm_r5_defconfig

[PATCH v3 06/10] arm: dts: k3-j721e-r5: Enable r5fss0 cluster in SPL

2020-01-21 Thread Keerthy
Enable MAIN domain r5fss0 cluster and its core0 in R5 spl. Signed-off-by: Keerthy Signed-off-by: Lokesh Vutla --- arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/dts/k3-j721e-r5-common-proc-board.dts

[PATCH v3 10/10] env: nowhere: set default enviroment

2020-01-21 Thread Keerthy
set default enviroment so that set_env calls succeed when ENV_IS_NOWHERE is alone set. Signed-off-by: Keerthy --- env/nowhere.c | 1 + 1 file changed, 1 insertion(+) diff --git a/env/nowhere.c b/env/nowhere.c index f5b0a17652..70c3b3e011 100644 --- a/env/nowhere.c +++ b/env/nowhere.c @@ -23,6

Re: [PATCH 1/1] tools: imx8m_image: fix warning message

2020-01-21 Thread Schrempf Frieder
On 21.01.20 11:58, Sébastien Szymanski wrote: > When a firmware file is missing the warning message doesn't indicate the > firmware file name because '$tmp' var doesn't exist. > Fix the warning message and while at it reduce the if/else statement. > > Signed-off-by: Sébastien Szymanski Thanks

Re: [RFC] Vocore2 MMC needs clock patches

2020-01-21 Thread Mauro Condarelli
Thanks Weijie, I made the changes You suggested. I have also seen You sent a new version of Your patches. Since mine are based on yours I *think* I should suspend sending my VoCore2 patches till Yours are fixed and integrated into master. @Stefan Roese: is this the right course of action? I am

[U-boot,0/4] Add ethernet support for MT7622

2020-01-21 Thread MarkLee
This patch series adds and enable ethernet support for MT7622, including 1. add sgmii mode support in mediatek eth driver 2. add mt7622 support in mediatek eth driver 3. add ethernet and sgmii dts node for mt7622 4. enable mt7622 ethernet support in defconfig

[U-boot, 3/4] arm: dts: mediatek: add ethernet and sgmii dts node for mt7622

2020-01-21 Thread MarkLee
This patch add eth and sgmii dts node for mt7622 to support ethernet Signed-off-by: MarkLee --- arch/arm/dts/mt7622-rfb.dts | 13 +++ arch/arm/dts/mt7622.dtsi| 45 + 2 files changed, 58 insertions(+) diff --git a/arch/arm/dts/mt7622-rfb.dts

[U-boot, 1/4] eth: mtk-eth: add sgmii mode support in mediatek eth driver

2020-01-21 Thread MarkLee
This patch add sgmii init part for the mediatek SoC that support sgmii mode. It is a must for mt7622. Signed-off-by: MarkLee --- drivers/net/mtk_eth.c | 44 +++ drivers/net/mtk_eth.h | 15 +++ 2 files changed, 59 insertions(+) diff --git

[U-boot,4/4] configs: mediatek: enable mt7622 ethernet support

2020-01-21 Thread MarkLee
This patch enable mt7622 ethernet support in its defconfig Signed-off-by: MarkLee --- configs/mt7622_rfb_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/configs/mt7622_rfb_defconfig b/configs/mt7622_rfb_defconfig index e1917e70e7..806087a3d6 100644 ---

[U-boot,2/4] eth: mtk-eth: add mt7622 support in mediatek eth driver

2020-01-21 Thread MarkLee
This patch add mt7622 support in mediatek eth driver Signed-off-by: MarkLee --- drivers/net/mtk_eth.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/mtk_eth.c b/drivers/net/mtk_eth.c index 7721ffb46c..85bbc2a3c5 100644 --- a/drivers/net/mtk_eth.c +++

Re: [PATCH RESEND] ARM: imx: mx6ull: Add iMX6ULL VisionSOM SoM and EVK

2020-01-21 Thread Marek Vasut
On 1/21/20 9:12 AM, Stefano Babic wrote: > Hi Marek, Hi, > On 20/01/20 23:18, Marek Vasut wrote: >> From: Arkadiusz Karas >> >> Add iMX6ULL VisionSOM SoM and VisionCB-RT-STD evaluation board support. >> The SoM has an iMX6ULL, 512 MiB of DRAM and microSD slot. The carrier >> board has Ethernet,

Re: [RFC] Vocore2 MMC needs clock patches

2020-01-21 Thread Stefan Roese
Hi Mauro, On 21.01.20 12:27, Mauro Condarelli wrote: Thanks Weijie, I made the changes You suggested. I have also seen You sent a new version of Your patches. Since mine are based on yours I *think* I should suspend sending my VoCore2 patches till Yours are fixed and integrated into master.

Re: [PATCH v3 01/10] lib: elf: Move the generic elf loading/validating functions to lib

2020-01-21 Thread Andrew F. Davis
On 1/21/20 6:07 AM, Keerthy wrote: > Move the generic elf loading/validating functions to lib/ > so that they can be re-used and accessed by code existing > outside cmd. > > Signed-off-by: Keerthy > Suggested-by: Simon Goldschmidt > Reviewed-by: Simon Goldschmidt > --- > diff --git

Aw: [U-boot,0/4] Add ethernet support for MT7622

2020-01-21 Thread Frank Wunderlich
Hi Mark, does it depend on another patch(set)? i got unsupported switch, because in eth-driver [1] there is a check only for mt7530 (else print this error) and in dts [2], mediatek,switch is set to mt7531 (which is right, but trigger the error). i found no patch adding check for mt7531 (or

Re: [PATCH v3 02/10] arm: k3: Add support for loading non linux remote cores

2020-01-21 Thread Andrew F. Davis
On 1/21/20 6:07 AM, Keerthy wrote: > Add MAIN domain R5FSS0 remoteproc support from spl. This enables > loading the elf firmware in SPL and starting the remotecore. > > In order to start the core, there should be a file with path > "/lib/firmware/j7-main-r5f0_0-fw" under filesystem > of

Re: [PATCH v2 00/10] ARM: clearfog: add run-time board detect

2020-01-21 Thread Stefan Roese
On 20.01.20 13:20, Baruch Siach wrote: Newer revisions of SolidRun Clearfog Base/Pro carriers and Armada 388 SOM add EEPROM storage for board detection. This patch series adds support for reading EEPROM stored board information, and using it to set RAM training parameters, serdes configuration,

Re: [PATCH v3 07/10] include: configs: j721e_evm: Add env variables for mcu_r5fss0_core0 & main_r5fss0_core0

2020-01-21 Thread Andrew F. Davis
On 1/21/20 6:07 AM, Keerthy wrote: > Add env variables for mcu_r5fss0_core0 & main_r5fss0_core0 firmware > loadaddr and name. > > Signed-off-by: Keerthy > --- > include/configs/j721e_evm.h | 4 > 1 file changed, 4 insertions(+) > > diff --git a/include/configs/j721e_evm.h

Re: [PATCH v3 08/10] configs: j721e_evm_r5: Enable R5F remoteproc support

2020-01-21 Thread Andrew F. Davis
On 1/21/20 6:07 AM, Keerthy wrote: > Enable r5f remoteproc support in r5 defconfig so that r5s can > be started in spl. > s/r5f/R5F s/r5/R5 s/spl/SPL > Signed-off-by: Keerthy > Signed-off-by: Lokesh Vutla > --- > configs/j721e_evm_r5_defconfig | 2 ++ > 1 file changed, 2 insertions(+) > >

Please pull u-boot-marvell/master

2020-01-21 Thread Stefan Roese
Hi Tom, please pull the 2nd batch of MVEBU related patches in this merge window: - Clearfog: Add run-time board detection with TLV EEPROM support (Baruch) Here

Re: [PATCH v3 10/10] env: nowhere: set default enviroment

2020-01-21 Thread Andrew F. Davis
On 1/21/20 6:07 AM, Keerthy wrote: > set default enviroment so that set_env calls succeed > when ENV_IS_NOWHERE is alone set. > Capitalize first letter of a sentence. Also no need to line wrap at 50 chars.. For last line: "when only ENV_IS_NOWHERE is set." reads better. Andrew >

Re: Please pull u-boot-marvell/master

2020-01-21 Thread Tom Rini
On Tue, Jan 21, 2020 at 02:03:57PM +0100, Stefan Roese wrote: > Hi Tom, > > please pull the 2nd batch of MVEBU related patches in this merge > window: > > > - Clearfog: Add run-time board detection with TLV EEPROM support >

[GIT PULL] Pull request: u-boot-imx u-boot-imx-20200121

2020-01-21 Thread Stefano Babic
-boot/custodians/u-boot-imx.git tags/u-boot-imx-20200121 for you to fetch changes up to 419603ca2d7a8065029a838cb0227ad7bfc5e1d3: colibri-imx8x: Remove unused function detail_board_ddr_info() (2020-01-20 15:38:16 +0100

Re: Please pull u-boot-marvell/master

2020-01-21 Thread Stefan Roese
Added Baruch to Cc On 21.01.20 14:11, Tom Rini wrote: On Tue, Jan 21, 2020 at 02:03:57PM +0100, Stefan Roese wrote: Hi Tom, please pull the 2nd batch of MVEBU related patches in this merge window: - Clearfog: Add run-time board

[PATCH] mx7ulp_com: Remove unneeded SoC definitions

2020-01-21 Thread Fabio Estevam
Since commit 9c27310ac23c ("mx7ulp: Move SoC base address to a common file") we no longer need to have these SoC definitions in the board file, so remove them. Signed-off-by: Fabio Estevam --- include/configs/mx7ulp_com.h | 4 1 file changed, 4 deletions(-) diff --git

Re: Please pull u-boot-marvell/master

2020-01-21 Thread Baruch Siach
Hi Stefan, On Tue, Jan 21, 2020 at 02:19:19PM +0100, Stefan Roese wrote: > Added Baruch to Cc > > On 21.01.20 14:11, Tom Rini wrote: > > On Tue, Jan 21, 2020 at 02:03:57PM +0100, Stefan Roese wrote: > > > Hi Tom, > > > > > > please pull the 2nd batch of MVEBU related patches in this merge > > >

Re: Please pull u-boot-marvell/master

2020-01-21 Thread Tom Rini
On Tue, Jan 21, 2020 at 03:31:31PM +0200, Baruch Siach wrote: > Hi Stefan, > > On Tue, Jan 21, 2020 at 02:19:19PM +0100, Stefan Roese wrote: > > Added Baruch to Cc > > > > On 21.01.20 14:11, Tom Rini wrote: > > > On Tue, Jan 21, 2020 at 02:03:57PM +0100, Stefan Roese wrote: > > > > Hi Tom, > > >

Re: Please pull u-boot-marvell/master

2020-01-21 Thread Stefan Roese
On 21.01.20 14:31, Baruch Siach wrote: Hi Stefan, On Tue, Jan 21, 2020 at 02:19:19PM +0100, Stefan Roese wrote: Added Baruch to Cc On 21.01.20 14:11, Tom Rini wrote: On Tue, Jan 21, 2020 at 02:03:57PM +0100, Stefan Roese wrote: Hi Tom, please pull the 2nd batch of MVEBU related patches in

[PATCH v3] cmd: add tlv_eeprom command

2020-01-21 Thread Baruch Siach
Add support for read/write of ONIE "Tlvinfo" EEPROM data format. TLV stands for Type-Length-Value. The data format is described here: https://opencomputeproject.github.io/onie/design-spec/hw_requirements.html#board-eeprom-information-format Based on U-Boot patch from the Open Compute project:

Please pull u-boot-marvell/master v2

2020-01-21 Thread Stefan Roese
Hi Tom, please pull the 2nd batch of MVEBU related patches in this merge window: - Clearfog: Add run-time board detection with TLV EEPROM support (Baruch)

Re: [PATCH] genboardscfg.py: fix python version dependency comment

2020-01-21 Thread Masahiro Yamada
Hi. On Mon, Jan 20, 2020 at 9:08 PM Baruch Siach wrote: > > genboardscfg.py requires python 3.x since commit 3bc14098d8fb > ("genboardscfg.py: Convert to Python 3"). > > Cc: Masahiro Yamada > Signed-off-by: Baruch Siach > --- > tools/genboardscfg.py | 2 +- > 1 file changed, 1 insertion(+), 1

Re: [PATCH v4 2/6] rsa: add CONFIG_RSA_VERIFY_WITH_PKEY config

2020-01-21 Thread Tom Rini
On Tue, Jan 21, 2020 at 01:29:58PM +0900, AKASHI Takahiro wrote: > Tom, Simon, > > On Fri, Jan 17, 2020 at 06:59:44AM +0100, Heinrich Schuchardt wrote: > > On 1/17/20 3:24 AM, AKASHI Takahiro wrote: > > >On Tue, Jan 14, 2020 at 12:43:40PM +0100, Heinrich Schuchardt wrote: > > >>On 1/14/20 8:45

Re: [PATCH v4 6/6] test: add rsa_verify() unit test

2020-01-21 Thread Tom Rini
On Tue, Jan 21, 2020 at 02:48:52PM +0900, AKASHI Takahiro wrote: > On Fri, Jan 17, 2020 at 06:26:34AM +0100, Heinrich Schuchardt wrote: > > On 1/17/20 2:53 AM, AKASHI Takahiro wrote: > > >On Tue, Jan 14, 2020 at 01:04:58PM +0100, Heinrich Schuchardt wrote: > > >>On 1/14/20 8:33 AM, AKASHI Takahiro

Re: [PATCH] genboardscfg.py: fix python version dependency comment

2020-01-21 Thread Baruch Siach
Hi Masahiro Yamada, On Wed, Jan 22, 2020 at 12:19:31AM +0900, Masahiro Yamada wrote: > On Mon, Jan 20, 2020 at 9:08 PM Baruch Siach wrote: > > > > genboardscfg.py requires python 3.x since commit 3bc14098d8fb > > ("genboardscfg.py: Convert to Python 3"). > > > > Cc: Masahiro Yamada > >

Re: fat: handle Windows formatted partition (thru USB Mass Storage)

2020-01-21 Thread Andy Shevchenko
On Tue, Jan 21, 2020 at 2:39 AM AKASHI Takahiro wrote: > On Fri, Jan 17, 2020 at 11:47:03AM +0200, Andy Shevchenko wrote: > > On Fri, Jan 17, 2020 at 8:13 AM AKASHI Takahiro > > wrote: ... > Really? I've got messed up now. > - Why do you need to use g_multi to access the disk? How else you

Re: [PATCH V4 1/3] watchdog: designware: Migrate CONFIG_DESIGNWARE_WATCHDOG to Kconfig

2020-01-21 Thread Marek Vasut
On 1/9/20 11:06 AM, Marek Vasut wrote: > Migrate CONFIG_DESIGNWARE_WATCHDOG to Kconfig and update the headers > accordingly, no functional change. The S10 enables the WDT only in > SPL, but does not enable it in U-Boot itself, hence disable it in > the config again. > > Signed-off-by: Marek Vasut

  1   2   >