[U-Boot] [PATCH v2 1/8] mmc: fsl_esdhc: Add peripheral clock support

2019-09-12 Thread Yinbo Zhu
This patch is to add peripheral clock support Signed-off-by: Yinbo Zhu --- .../armv8/fsl-layerscape/fsl_lsch2_speed.c| 49 --- .../armv8/fsl-layerscape/fsl_lsch3_speed.c| 45 - .../asm/arch-fsl-layerscape/immap_lsch2.h | 2 +-

[U-Boot] [PATCH v2 3/8] dts: armv8: add emmc hs200 support for ls1012ardb

2019-09-12 Thread Yinbo Zhu
This patch is to add emmc hs200 support for ls1012ardb Signed-off-by: Yinbo Zhu --- arch/arm/dts/fsl-ls1012a-rdb.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/fsl-ls1012a-rdb.dtsi b/arch/arm/dts/fsl-ls1012a-rdb.dtsi index 757e2eb351..83d19c69a9 100644 ---

Re: [U-Boot] [PATCH] arm: at91: gardena-smart-gateway-at91sam: Enable CONFIG_SYS_NAND_USE_FLASH_BBT

2019-09-12 Thread Eugen.Hristev
On 11.09.2019 16:13, Stefan Roese wrote: > > Hi Eugen, > > On 27.08.19 09:54, eugen.hris...@microchip.com wrote: >> >> >> On 27.08.2019 09:14, Stefan Roese wrote: >> >>> >>> This patch enables the BBT in NAND on the AT91SAM based GARDENA smart >>> Gateway. This is especially important, since

[U-Boot] [PATCH v2 7/8] configs: ls1012ardb/lx2160ardb/ls1028ardb: add hs200 config for esdhc

2019-09-12 Thread Yinbo Zhu
This patch is to add CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK and CONFIG_MMC_HS200_SUPPORT CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK and CONFIG_MMC_HS200_SUPPORT Signed-off-by: Yinbo Zhu --- configs/ls1012ardb_tfa_defconfig | 2 ++ configs/ls1028ardb_tfa_defconfig | 2 ++ configs/lx2160ardb_tfa_defconfig

[U-Boot] [PATCH v2 5/8] dts: armv8: add emmc hs200 support for ls1028ardb

2019-09-12 Thread Yinbo Zhu
This patch is to add emmc hs200 support for ls1028ardb Signed-off-by: Yinbo Zhu --- arch/arm/dts/fsl-ls1028a-rdb.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/fsl-ls1028a-rdb.dts b/arch/arm/dts/fsl-ls1028a-rdb.dts index f5fcbbf068..cc418df1fa 100644 ---

[U-Boot] [PATCH v2 6/8] mmc: fsl_esdhc: Add emmc hs200 support

2019-09-12 Thread Yinbo Zhu
Add eMMC hs200 mode support for ls1028a,lx2160a,ls1012a. This increases eMMC performance. Tuning procedure is currently not supported Signed-off-by: Yinbo Zhu --- Change in v2: update the commit information drivers/mmc/fsl_esdhc.c | 34 +++---

[U-Boot] [PATCH v2 2/8] mmc: add a Kconfig option to enable the peripheral clock support

2019-09-12 Thread Yinbo Zhu
eSDHC supports two reference clocks (platform clock and peripheral clock). Peripheral clock which could provide higher clock frequency is required to be used for tuning of SD UHS mode and eMMC HS200/HS400 modes. Signed-off-by: Yinbo Zhu --- drivers/mmc/Kconfig | 10 +- 1 file changed, 9

[U-Boot] [PATCH v2 8/8] mmc: fsl_esdhc: enable CONFIG_FSL_ESDHC in ls1028ardb config

2019-09-12 Thread Yinbo Zhu
This patch is to enable CONFIG_FSL_ESDHC in ls1028ardb config Signed-off-by: Yinbo Zhu --- Change in v2: for this patch series add this patch to enable CONFIG_FSL_ESDHC configs/ls1028ardb_tfa_defconfig | 1 + include/configs/ls1028a_common.h | 7 --- 2 files

[U-Boot] [PATCH v2 4/8] dts: armv8: add emmc hs200 support for lx2160ardb

2019-09-12 Thread Yinbo Zhu
This patch is to add emmc hs200 support for lx2160ardb Signed-off-by: Yinbo Zhu --- arch/arm/dts/fsl-lx2160a-rdb.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/fsl-lx2160a-rdb.dts b/arch/arm/dts/fsl-lx2160a-rdb.dts index 7c4f0e76ae..18ce9c25c7 100644 ---

[U-Boot] [PATCH] autoboot: add necessary dependency at AUTOBOOT_MENU_SHOW

2019-09-12 Thread AKASHI Takahiro
Otherwise, menu_show() will be undefined in bootdelay_process(). Signed-off-by: AKASHI Takahiro --- cmd/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/Kconfig b/cmd/Kconfig index 05872fa0d7f4..a6738a71b60f 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -172,6 +172,7 @@ config

Re: [U-Boot] [PATCH v3 0/3] spi: Split CONFIG_DM_SPI* to CONFIG_{SPL_TPL}DM_SPI*

2019-09-12 Thread Schrempf Frieder
Hi Lukasz, On 10.09.19 12:22, Lukasz Majewski wrote: > Hi Frieder, > >> On Mon, 9 Sep 2019 11:11:50 + >> Schrempf Frieder wrote: >> >>> Hi Lukasz, >>> >>> On 05.09.19 20:09, Tom Rini wrote: On Thu, Sep 05, 2019 at 12:16:36AM +0200, Lukasz Majewski wrote: > This patch

Re: [U-Boot] [PATCH v2 1/2] efi_loader: device_path: support Sandbox's "host" devices

2019-09-12 Thread Heinrich Schuchardt
On 9/12/19 6:52 AM, AKASHI Takahiro wrote: > Sandbox's "host" devices are currently described as UCLASS_ROOT udevice > with DEV_IF_HOST block device. As the current implementation of > efi_device_path doesn't support such a type, any "host" device > on sandbox cannot be seen as a distinct object.

[U-Boot] [PATCH v1 3/5] apalis/colibri_t30: avoid uart input from floating pins

2019-09-12 Thread Marcel Ziswiler
From: Marcel Ziswiler Avoid UART input from floating RX pins on UARTB and UARTC (Colibri T30) and UARTB, UARTC and UARTD (Apalis T30). Note: Floating pins may cause spurious break conditions potentially interrupting U-Boot's autoboot. Signed-off-by: Marcel Ziswiler ---

[U-Boot] [PATCH v1 2/5] colibri_t30: fix spi1 and uart2/3 resp. uartb/c pinmuxing

2019-09-12 Thread Marcel Ziswiler
From: Marcel Ziswiler Fix SPI1 and UART2/3 resp. UARTB/C pinmuxing. Note: The former was illegally muxing multiple SoC balls onto the same internal SoC signal which caused rather strange behaviour regarding the RS232 serial transceiver ForceOFF# pins as available on Iris. Signed-off-by: Marcel

[U-Boot] [PATCH v1 5/5] colibri_t30: disable rs232 serial transceiver forceoff pins

2019-09-12 Thread Marcel Ziswiler
From: Marcel Ziswiler Use gpio_early_init_uart() function to disable RS232 serial transceiver ForceOFF# pins on Iris. Signed-off-by: Marcel Ziswiler --- board/toradex/colibri_t30/colibri_t30.c | 11 +++ 1 file changed, 11 insertions(+) diff --git

Re: [U-Boot] [PATCH v2 2/3] efi_loader: disk: install FILE_SYSTEM_PROTOCOL only if available

2019-09-12 Thread AKASHI Takahiro
On Thu, Sep 12, 2019 at 10:57:20AM +0200, Heinrich Schuchardt wrote: > On 9/12/19 6:51 AM, AKASHI Takahiro wrote: > > In the current implementation, EFI_SIMPLEFILE_SYSTEM_PROTOCOL is always > > installed to all the partitions even if some of them may house no file > > system. > > > > With this

[U-Boot] [PATCH v1 4/5] apalis/colibri_t30: add note about colibri vs. nvidia uart mapping

2019-09-12 Thread Marcel Ziswiler
From: Marcel Ziswiler The following mapping is applicable for Apalis T30: Apalis UART1: NVIDIA UARTA Apalis UART2: NVIDIA UARTD Apalis UART3: NVIDIA UARTB Apalis UART4: NVIDIA UARTC The following mapping is applicable for Colibri T30: Colibri UART-A: NVIDIA UARTA Colibri UART-B: NVIDIA UARTD

Re: [U-Boot] [PATCH v2 2/3] efi_loader: disk: install FILE_SYSTEM_PROTOCOL only if available

2019-09-12 Thread Heinrich Schuchardt
On 9/12/19 11:17 AM, AKASHI Takahiro wrote: > On Thu, Sep 12, 2019 at 10:57:20AM +0200, Heinrich Schuchardt wrote: >> On 9/12/19 6:51 AM, AKASHI Takahiro wrote: >>> In the current implementation, EFI_SIMPLEFILE_SYSTEM_PROTOCOL is always >>> installed to all the partitions even if some of them may

Re: [U-Boot] [PATCH v2 2/2] efi_loader: device_path: show a host device in understandable form

2019-09-12 Thread Heinrich Schuchardt
On 9/12/19 11:07 AM, AKASHI Takahiro wrote: > On Thu, Sep 12, 2019 at 09:59:01AM +0200, Heinrich Schuchardt wrote: >> On 9/12/19 6:52 AM, AKASHI Takahiro wrote: >>> It would be better to give a user-friendly text to a host device >>> on sandbox instead of just dumping its guid. >>> >>> => host

[U-Boot] [PATCH v4 04/17] arm: socfpga: agilex: Add reset manager support

2019-09-12 Thread Ley Foon Tan
Add reset manager support for Agilex. Signed-off-by: Ley Foon Tan --- v3: - Add reset_manager_soc64.h - Convert to use defines instead of struct. --- arch/arm/mach-socfpga/include/mach/reset_manager.h| 2 ++ .../mach-socfpga/include/mach/reset_manager_agilex.h | 11 +++ 2 files

[U-Boot] [PATCH v4 05/17] arm: socfpga: Move Stratix10 and Agilex system manager common code

2019-09-12 Thread Ley Foon Tan
Move Stratix10 and Agilex system manager common code to system_manager_soc64.h. Signed-off-by: Ley Foon Tan --- v4: - Change prefix from SYSMGR_S10* to SYSMGR_SOC64*. v3: - Change filename to system_manager_soc64.h - Move to use defines instead of struct. v2: - Move common defines for Stratix

[U-Boot] [PATCH v4 03/17] arm: socfpga: Move Stratix10 and Agilex reset manager common code

2019-09-12 Thread Ley Foon Tan
Move Stratix10 and Agilex reset manager common code to reset_manager_soc64.h. Remove unused RSTMGR_XXX defines. Signed-off-by: Ley Foon Tan --- v4: - Change prefix from RSTMGR_S10* to RSTMGR_SOC64*. v3: - Add new reset_manager_soc64.h - Convert to use defines instead of struct. ---

[U-Boot] [PATCH] gpio: fix issue in set gpio output direction

2019-09-12 Thread Michal Simek
From: Ashok Reddy Soma This patch fixes zynq_gpio_direction() to call driver specific zynq_gpio_set_value function rather than top level gpio_set_value. Signed-off-by: Ashok Reddy Soma Signed-off-by: Michal Simek --- drivers/gpio/zynq_gpio.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [U-Boot] [PATCH v3 0/3] spi: Split CONFIG_DM_SPI* to CONFIG_{SPL_TPL}DM_SPI*

2019-09-12 Thread Lukasz Majewski
Hi Frieder, > Hi Lukasz, > > On 10.09.19 12:22, Lukasz Majewski wrote: > > Hi Frieder, > > > >> On Mon, 9 Sep 2019 11:11:50 + > >> Schrempf Frieder wrote: > >> > >>> Hi Lukasz, > >>> > >>> On 05.09.19 20:09, Tom Rini wrote: > On Thu, Sep 05, 2019 at 12:16:36AM +0200, Lukasz

Re: [U-Boot] [PATCH v2 2/2] efi_loader: device_path: show a host device in understandable form

2019-09-12 Thread AKASHI Takahiro
On Thu, Sep 12, 2019 at 09:59:01AM +0200, Heinrich Schuchardt wrote: > On 9/12/19 6:52 AM, AKASHI Takahiro wrote: > > It would be better to give a user-friendly text to a host device > > on sandbox instead of just dumping its guid. > > > > => host bind 0 /opt/disk/uboot_sandbox_fat.img > > => efi

[U-Boot] [PATCH v4 08/17] clk: agilex: Add clock driver for Agilex

2019-09-12 Thread Ley Foon Tan
Add clock manager driver for Agilex. Provides clock initialization and get_rate functions. Rename stratix10-clock.h to socfpga-soc64-clock.h. stratix10-clock.h is from Linux commit ID 89727949ea1e. Signed-off-by: Chee Hong Ang Signed-off-by: Ley Foon Tan --- v4: - Get address from DT.

[U-Boot] [PATCH v1 0/5] apalis/colibri_t30: uart pinmuxing improvements

2019-09-12 Thread Marcel Ziswiler
This series addresses some weaknesses in the current UART pinmuxing mainly observable when trying to use a different UART instance as main U-Boot serial console. Marcel Ziswiler (5): apalis/colibri_t30: add comment about tristate and input vs. output pinmuxing colibri_t30: fix spi1 and

[U-Boot] [PATCH v1 1/5] apalis/colibri_t30: add comment about tristate and input vs. output pinmuxing

2019-09-12 Thread Marcel Ziswiler
From: Marcel Ziswiler Add pinmuxing comment stating that TRISTATE means the output driver is tri-stated and INPUT means the input driver is enabled vs. OUTPUT where it is disabled. Signed-off-by: Marcel Ziswiler --- board/toradex/apalis_t30/pinmux-config-apalis_t30.h | 2 ++

[U-Boot] [PATCH 2/4] arm: mxs: fix comments in arch_cpu_init to match the code

2019-09-12 Thread Rasmus Villemoes
The comment says to clear the bypass bit, but in fact it sets it, thus selecting ref_xtal. And the next line of code does not set the divider to 12, but to (the reset value of) 1. Signed-off-by: Rasmus Villemoes --- arch/arm/cpu/arm926ejs/mxs/mxs.c | 4 ++-- 1 file changed, 2 insertions(+), 2

Re: [U-Boot] [PATCH v2 3/3] efi_loader: disk: install file system protocol to a whole disk

2019-09-12 Thread Heinrich Schuchardt
On 9/12/19 6:51 AM, AKASHI Takahiro wrote: > Currently, a whole disk without any partitions is not associated > with EFI_SIMPLE_FILE_SYSTEM_PROTOCOL. So even if it houses FAT > file system, there is a chance that we may not be able to access > it, particularly, when accesses are to be attempted

[U-Boot] [PATCH 3/4] arm: mxs: be more careful when enabling gpmi_clk

2019-09-12 Thread Rasmus Villemoes
The data sheet says that the DIV field cannot change while the CLKGATE bit is set or modified. So do it a little more carefully, by first clearing the bit, waiting for that to appear, then setting the DIV field. Signed-off-by: Rasmus Villemoes --- arch/arm/cpu/arm926ejs/mxs/mxs.c | 5 - 1

[U-Boot] [PATCH 0/4] arm: mxs: mxs_set_gpmiclk

2019-09-12 Thread Rasmus Villemoes
While trying to implement an mxs_set_gpmiclk() I stumbled on a few minor things. Rasmus Villemoes (4): arm: mxs: fix register definitions for clkctrl_gpmi and clkctrl_sspX arm: mxs: fix comments in arch_cpu_init to match the code arm: mxs: be more careful when enabling gpmi_clk arm: mxs:

[U-Boot] [PATCH 4/4] arm: mxs: implement mxs_set_gpmiclk

2019-09-12 Thread Rasmus Villemoes
This allows a board file to set the gpmiclk to something other than the default 24 MHz based on ref_xtal. I don't have an mx23-based board, but I believe there's a bug in the current mxs_get_gpmiclk: According to the data sheet, the gpmiclk can be derived from ref_io, not ref_cpu. Since other

[U-Boot] [PATCH v4 12/17] ddr: altera: Restructure Stratix 10 SDRAM driver

2019-09-12 Thread Ley Foon Tan
Restructure Stratix 10 SDRAM driver. Move common code to separate file, in preparation to support SDRAM driver for Agilex. Signed-off-by: Ley Foon Tan --- v4: - Change to use base address from DT. v3: - Change sdram_common.* to sdram_soc64.* --- drivers/ddr/altera/Makefile |

[U-Boot] [PATCH v4 10/17] arm: socfpga: agilex: Add CCU support for Agilex

2019-09-12 Thread Ley Foon Tan
Add Cache Coherency Unit (CCU) support for Agilex. CCU is to ensures consistency of shared data between multi masters in the system. Software need to initialize CCU's directories and coherency agent interfaces in CCU IP. Signed-off-by: Ley Foon Tan Reviewed-by: Simon Goldschmidt ---

[U-Boot] [PATCH v4 14/17] board: intel: agilex: Add socdk board support for Intel Agilex SoC

2019-09-12 Thread Ley Foon Tan
Add socdk board support for Intel Agilex SoC Signed-off-by: Ley Foon Tan Reviewed-by: Simon Goldschmidt --- board/intel/agilex-socdk/MAINTAINERS | 7 +++ board/intel/agilex-socdk/Makefile| 7 +++ board/intel/agilex-socdk/socfpga.c | 7 +++ 3 files changed, 21 insertions(+)

[U-Boot] [PATCH v4 15/17] arm: socfpga: agilex: Add SPL for Agilex SoC

2019-09-12 Thread Ley Foon Tan
Add SPL support for Agilex SoC. Signed-off-by: Ley Foon Tan Reviewed-by: Simon Goldschmidt --- v4: - Move spl_early_init() to entry of board_init_f - Add socfpga_get_manager_addr(). - Remove SYSMGR_DMA and SYSMGR_DMA_PERIPH, already set in firewall_setup(). v2: - Change clock driver probing

[U-Boot] [PATCH v4 16/17] arm: dts: agilex: Add base dtsi and devkit dts

2019-09-12 Thread Ley Foon Tan
Add device tree files for Agilex SoC platform. Based on Linux Commit ID4b36daf9ada30. Signed-off-by: Ley Foon Tan --- v4: - Add u-boot,dm-pre-reloc to sysmgr node. v3: - Fixed bank 1 memory alias base address to 0x28000. - Rename STRATIX10_*_CLK to SOCFPGA_SOC64_*_CLK. - Include

[U-Boot] [PATCH v4 11/17] arm: agilex: Add clock handoff offset for Agilex

2019-09-12 Thread Ley Foon Tan
Add clock handoff offset for Agilex. Remove S10 prefix to avoid confusion. Signed-off-by: Ley Foon Tan --- arch/arm/mach-socfpga/include/mach/handoff_s10.h | 9 +++-- arch/arm/mach-socfpga/wrap_pll_config_s10.c | 5 +++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git

[U-Boot] [PATCH] net: xilinx_axiemac: Fill the phy node pointer in phydev

2019-09-12 Thread Michal Simek
From: Siva Durga Prasad Paladugu This patch assings the phynode pointer to the phydev node as it is needed later in the corresponding phy driver to read phy properties from DT. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- This feature is present in these drivers:

Re: [U-Boot] [PATCH v2 8/8] mmc: fsl_esdhc: enable CONFIG_FSL_ESDHC in ls1028ardb config

2019-09-12 Thread Priyanka Jain
Nack These Changes already done. See Yangbo Lu patch: < 60742bfb53178ae1b80242a8028d3d91479d092d> --Priyanka >-Original Message- >From: Yinbo Zhu >Sent: Thursday, September 12, 2019 1:05 PM >To: Albert Aribaud ; Priyanka Jain >; Prabhakar Kushwaha >; Rajesh Bhagat ; >Sumit Garg ;

[U-Boot] [PATCH 1/4] arm: mxs: fix register definitions for clkctrl_gpmi and clkctrl_sspX

2019-09-12 Thread Rasmus Villemoes
I tried clearing a bit by writing to hw_clkctrl_gpmi_clr, then busy-waiting for it to actually clear. My board hung. The data sheet agrees, these registers do not have _set, _clr, _tog, so fix up the definitions. git grep -E 'clkctrl_(gpmi|ssp[0-9])_' says that nobody uses those non-existing ops

Re: [U-Boot] [PATCH v2 2/3] efi_loader: disk: install FILE_SYSTEM_PROTOCOL only if available

2019-09-12 Thread AKASHI Takahiro
On Thu, Sep 12, 2019 at 11:43:07AM +0200, Heinrich Schuchardt wrote: > On 9/12/19 11:17 AM, AKASHI Takahiro wrote: > > On Thu, Sep 12, 2019 at 10:57:20AM +0200, Heinrich Schuchardt wrote: > >> On 9/12/19 6:51 AM, AKASHI Takahiro wrote: > >>> In the current implementation,

[U-Boot] [PATCH v4 17/17] arm: socfpga: agilex: Enable Agilex SoC build

2019-09-12 Thread Ley Foon Tan
Add build support for Agilex SoC. Signed-off-by: Ley Foon Tan Reviewed-by: Simon Goldschmidt --- v3: - Disable CONFIG_USE_TINY_PRINTF v2: - Remove IC_CLK define, use clock DM method to get i2c clock - Change CONFIG_ENV_SIZE to 4KB since CONFIG_SPI_FLASH_USE_4K_SECTORS is enabled. ---

[U-Boot] [PATCH v4 13/17] ddr: altera: agilex: Add SDRAM driver for Agilex

2019-09-12 Thread Ley Foon Tan
Add SDRAM driver for Agilex SoC. Signed-off-by: Tien Fong Chee Signed-off-by: Ley Foon Tan --- v4: - Fixed checkpatch warnings v3: - Use sdmmc_soc64.* - Change compatible string to use "intel" (intel,sdr-ctl-agilex). - Improve error handing if DDR size mismatched. ---

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

2019-09-12 Thread Jun Nie
Peng Fan 于2019年9月11日周三 下午2:02写道: > > > > > -Original Message- > > From: Jun Nie > > Sent: 2019年9月9日 21:47 > > To: Peng Fan > > Cc: Stefano Babic ; Fabio Estevam ; > > Otavio Salvador ; Vanessa Maegima > > ; Bryan O'Donoghue > > ; U-Boot Mailing List > > Subject: Re: [PATCH 0/3] Support

Re: [U-Boot] [PATCH v2 2/2] efi_loader: device_path: show a host device in understandable form

2019-09-12 Thread Heinrich Schuchardt
On 9/12/19 6:52 AM, AKASHI Takahiro wrote: > It would be better to give a user-friendly text to a host device > on sandbox instead of just dumping its guid. > > => host bind 0 /opt/disk/uboot_sandbox_fat.img > => efi devices > Device Device Path > >

Re: [U-Boot] [PATCH v2 2/3] efi_loader: disk: install FILE_SYSTEM_PROTOCOL only if available

2019-09-12 Thread Heinrich Schuchardt
On 9/12/19 6:51 AM, AKASHI Takahiro wrote: > In the current implementation, EFI_SIMPLEFILE_SYSTEM_PROTOCOL is always > installed to all the partitions even if some of them may house no file > system. > > With this patch, that protocol will be installed only if FAT file system > exists. > >

[U-Boot] [PATCH v4 07/17] arm: socfpga: Move Stratix10 and Agilex clock manager common code

2019-09-12 Thread Ley Foon Tan
Move Stratix10 and Agilex clock manager common code to new header file. Fixed CLKMGR_INTOSC_HZ to 400MHz instead of 460MHz. Signed-off-by: Ley Foon Tan --- .../include/mach/clock_manager_s10.h | 16 +++-- .../include/mach/clock_manager_soc64.h| 23 +++

[U-Boot] [PATCH v4 06/17] arm: socfpga: agilex: Add system manager support

2019-09-12 Thread Ley Foon Tan
Add system manager support for Agilex. Signed-off-by: Ley Foon Tan --- v3: - Change include filename to system_manager_soc64.h. - Move to use defines instead of struct. v2: - Include system_manager_s10_agilex_common.h in system_manager_agilex.h ---

[U-Boot] [PATCH v4 09/17] arm: socfpga: agilex: Add clock wrapper functions

2019-09-12 Thread Ley Foon Tan
Add clock wrapper functions call to clock DM functions to get clock frequency and used in cm_print_clock_quick_summary(). Signed-off-by: Ley Foon Tan --- v4: - Change to use SYSMGR_SOC64* prefix. v3: - Improved commit message. - Rename STRATIX10_* to SOCFPGA_SOC64_* - Include

Re: [U-Boot] [PATCH] arm: at91: gardena-smart-gateway-at91sam: Enable CONFIG_SYS_NAND_USE_FLASH_BBT

2019-09-12 Thread Stefan Roese
Hi Eugen, On 12.09.19 08:07, eugen.hris...@microchip.com wrote: This patch enables the BBT in NAND on the AT91SAM based GARDENA smart Gateway. This is especially important, since the Linux driver also enables this option and uses the BBT table pages. Without setting this option, U-Boot will try

Re: [U-Boot] [PATCH v3 0/3] spi: Split CONFIG_DM_SPI* to CONFIG_{SPL_TPL}DM_SPI*

2019-09-12 Thread Schrempf Frieder
On 12.09.19 11:03, Lukasz Majewski wrote: > Hi Frieder, > >> Hi Lukasz, >> >> On 10.09.19 12:22, Lukasz Majewski wrote: >>> Hi Frieder, >>> On Mon, 9 Sep 2019 11:11:50 + Schrempf Frieder wrote: > Hi Lukasz, > > On 05.09.19 20:09, Tom Rini wrote: >> On

[U-Boot] Pull request for UEFI sub-system for v2019.10-rc4 (4)

2019-09-12 Thread Heinrich Schuchardt
The following changes since commit 2f760735c170c854ffca76be5607cec5c56fdc4f: Merge branch 'master' of git://git.denx.de/u-boot-sh (2019-09-07 13:49:39 -0400) are available in the Git repository at: https://gitlab.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-2019-10-rc4-4 for you to

[U-Boot] [PATCH v4 01/17] arm: socfpga: agilex: Add base address for Intel Agilex SoC

2019-09-12 Thread Ley Foon Tan
Add base address for Intel Agilex SoC. Reuse base_addr_s10.h for Agilex, only one base address is different from S10. Signed-off-by: Ley Foon Tan Reviewed-by: Simon Goldschmidt --- v2: - Reuse base_addr_s10.h and add #ifdef Agilex for SOCFPGA_FW_MPU_DDR_SCR_ADDRESS ---

[U-Boot] [PATCH v4 00/17] Add Intel Agilex SoC support

2019-09-12 Thread Ley Foon Tan
This is 4th version of patchset to add Intel Agilex SoC[1] support. Most of changes are related to _SOC64 prefix change and use base address from DT for managers access. Detail changelog can find in commit message. This patchset needs to apply after patchset in [2] for manager driver struct to

[U-Boot] [PATCH v4 02/17] arm: socfpga: Move firewall code to firewall file

2019-09-12 Thread Ley Foon Tan
Move firewall related code to new firewall.c, to share code in Stratix 10 and Agilex. SDMMC will transfer data to OCRAM in SPL. So, enable privilege for SDMMC to allow DMA transfer to OCRAM. Signed-off-by: Ley Foon Tan --- v4: - Move SYSMGR_DMA* to firewall.c v3: - Move SOCFPGA_FIREWALL_TCU

Re: [U-Boot] Regressions in MTD / SPI FLASH

2019-09-12 Thread Eugeniy Paltsev
Hi Vignesh, I doesn't have access to board with n25q512ax3 currently, however I can test this on Monday (16.09) --- Eugeniy Paltsev From: Vignesh Raghavendra Sent: Tuesday, September 10, 2019 15:27 To: Eugeniy Paltsev; Jagan Teki Cc:

Re: [U-Boot] [PATCH V2] ARM: dts: imx6q-logicpd: Add missing imx6q-logicpd-u-boot for SPL

2019-09-12 Thread Adam Ford
On Mon, Aug 19, 2019 at 8:22 AM Adam Ford wrote: > > On Wed, Aug 7, 2019 at 10:16 AM Adam Ford wrote: > > > > The SPL device tree is missing the entires for gpio1, uart1, usdhc1 and > > usdhc2. This creates the missing imx6q-logicpd-u-boot.dtsi file > > which will enable these functions so SPL

Re: [U-Boot] OMAP watchdog timer reset on BBB

2019-09-12 Thread Grygorii Strashko
CC: Lokesh On 12/09/2019 16:45, Sam Protsenko wrote: Hi Suniel, After transition to DM WDT, watchdog timer on BeagleBone Black resets the board after 1 minute or so. I'm using this defconfig: [1]. After disabling CONFIG_WDT and CONFIG_WATCHDOG options the board doesn't reset. I guess it might

Re: [U-Boot] OMAP watchdog timer reset on BBB

2019-09-12 Thread Stefan Roese
Hi Sam, On 12.09.19 15:45, Sam Protsenko wrote: Hi Suniel, After transition to DM WDT, watchdog timer on BeagleBone Black resets the board after 1 minute or so. I'm using this defconfig: [1]. After disabling CONFIG_WDT and CONFIG_WATCHDOG options the board doesn't reset. I guess it might be

Re: [U-Boot] [EXT] Re: [PATCH 1/6] spi: fsl_qspi: Fix DDR mode setting for latest iMX platforms

2019-09-12 Thread Stefan Roese
Hi Ashish, On 12.09.19 07:03, Ashish Kumar wrote: Please suggest way forward. How to correct this issue? The first thigh would be to make sure the Linux driver works for all platforms and then do the porting to U-Boot. I will be out of office for 10 days. After that I can try to work on

[U-Boot] OMAP watchdog timer reset on BBB

2019-09-12 Thread Sam Protsenko
Hi Suniel, After transition to DM WDT, watchdog timer on BeagleBone Black resets the board after 1 minute or so. I'm using this defconfig: [1]. After disabling CONFIG_WDT and CONFIG_WATCHDOG options the board doesn't reset. I guess it might be happening on other boards using CONFIG_WDT_OMAP3 as

Re: [U-Boot] nxp: HABv4 secure boot on iMX7 NAND broken

2019-09-12 Thread Igor Opaniuk
Hy Bryan, Breno, On Tue, Jul 30, 2019 at 5:33 PM Bryan O'Donoghue wrote: > > > > On 30/07/2019 15:26, Igor Opaniuk wrote: > > Anyway, let me go through this article one more time, > > and I'll get back to you. > > If I've understood you, you are using the same binary for serial > download and

Re: [U-Boot] Pull request: u-boot-rockchip-20190912

2019-09-12 Thread Tom Rini
e/u-boot/custodians/u-boot-x86 (2019-09-10 > 08:52:00 -0400) > > are available in the Git repository at: > > https://gitlab.denx.de/u-boot/custodians/u-boot-rockchip.git > tags/u-boot-rockchip-20190912 > > for you to fetch changes up to 326b2624192336c99ba18d5151b51d0c

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

2019-09-12 Thread Breno Matheus Lima
Hi Peng, Em qua, 11 de set de 2019 às 22:07, Peng Fan escreveu: > > Hi Breno, > > > Subject: [PATCH 2/4] habv4: tools: Avoid hardcoded CSF size for SPL targets > > I saw this patch in imx/master, not in Tom's tree. But this patch breaks > build for other archs, such as arc and etc. > Thanks for

[U-Boot] [PATCH 1/2] Revert "configs: Remove am335x_boneblack_defconfig"

2019-09-12 Thread Sam Protsenko
Commit 8fa7f65dd02c ("configs: Remove am335x_boneblack_defconfig") removes defconfig for BeagleBone Black board, and it's advised to use am335x_evm_defconfig for all AM335x boards. But it's impossible to use am335x_evm_defconfig in eMMC use-case without modifications for BBB (NAND must be

[U-Boot] [PATCH 2/2] configs: am335x_boneblack: Sync with am335x_evm

2019-09-12 Thread Sam Protsenko
Old am335x_boneblack defconfig doesn't have Driver Model enabled. Pull DM options from am335x_evm, along with some others, like ones for shrinking SPL, making am335x_boneblack defconfig as close as possible to am335x_evm. Fixes: 8fa7f65dd02c ("configs: Remove am335x_boneblack_defconfig")

Re: [U-Boot] Why do we need both MDIO and MII commands

2019-09-12 Thread Tom Rini
On Wed, Sep 11, 2019 at 10:58:22PM +0300, Ramon Fried wrote: > Hi. > Marek raised this issue in IRC several weeks ago and I was wondering > the same. why do we support this two commands which accomplish > basically the same ? > > Can we ditch the mii comand and move the missing functionality to

[U-Boot] [PATCH 1/3] ubi: provide a way to skip CRC checks

2019-09-12 Thread Stefan Roese
From: Quentin Schulz Some users of static UBI volumes implement their own integrity check, thus making the volume CRC check done at open time useless. For instance, this is the case when one use the ubiblock + dm-verity + squashfs combination, where dm-verity already checks integrity of the

[U-Boot] [PATCH 2/3] ubi: Print skip_check in ubi_dump_vol_info()

2019-09-12 Thread Stefan Roese
It might be interesting, if "skip_check" is set of not, so lets print this flag in ubi_dump_vol_info() as well. Signed-off-by: Stefan Roese Cc: Quentin Schulz Cc: Boris Brezillon Cc: Heiko Schocher --- drivers/mtd/ubi/debug.c | 1 + 1 file changed, 1 insertion(+) diff --git

[U-Boot] [PATCH 3/3] ubi: Add "skipcheck" command to set/clear this bit in the UBI volume hdr

2019-09-12 Thread Stefan Roese
U-Boot now supports the "skip_check" flag to optionally skip the CRC check at open time. Currently its only possible to set this bit upon UBI volume creation. But it might be very useful to also set this bit on already installed systems (e.g. field upgrade) to make also use of the boot-time

Re: [U-Boot] Tinker-rk3288 SPL broken with MMC timeout

2019-09-12 Thread Tom Rini
On Thu, Sep 12, 2019 at 08:55:24AM +0530, Jagan Teki wrote: > I have seen this even on v2019.07 release, and the only release that > it got working with on v2019.01 (SPL, BROM_RETURN) > > Any idea? here is the log dump. > > U-Boot TPL 2019.10-rc3-00297-g5ba8b12543 (Sep 12 2019 - 08:50:36) >

Re: [U-Boot] [PATCH PATCH v4 04/15] spl: fit: allocate a temporary buffer to load the overlays

2019-09-12 Thread Jean-Jacques Hiblot
On 13/08/2019 11:33, Simon Glass wrote: Hi Jean-Jacques, On Mon, 5 Aug 2019 at 03:44, Jean-Jacques Hiblot wrote: If the node describing an overlay does not specify a load address, it will be loaded at the address previously used. Fixing it by allocating a temporary 64kB region that will be

Re: [U-Boot] [PATCH 1/2] Revert "configs: Remove am335x_boneblack_defconfig"

2019-09-12 Thread Andre Heider
Hi, On 9/12/19 5:23 PM, Sam Protsenko wrote: Commit 8fa7f65dd02c ("configs: Remove am335x_boneblack_defconfig") removes defconfig for BeagleBone Black board, and it's advised to use am335x_evm_defconfig for all AM335x boards. But it's impossible to use am335x_evm_defconfig in eMMC use-case

Re: [U-Boot] OMAP watchdog timer reset on BBB

2019-09-12 Thread Sam Protsenko
Hi Stefan, On Thu, Sep 12, 2019 at 5:38 PM Stefan Roese wrote: > > Hi Sam, > > On 12.09.19 15:45, Sam Protsenko wrote: > > Hi Suniel, > > > > After transition to DM WDT, watchdog timer on BeagleBone Black resets > > the board after 1 minute or so. I'm using this defconfig: [1]. After > >

[U-Boot] [PATCH 1/2] fs: fat: treat invalid FAT clusters as errors

2019-09-12 Thread Heinrich Schuchardt
When hitting an invalid FAT cluster while reading a file always print an error message and return an error code. Signed-off-by: Heinrich Schuchardt --- fs/fat/fat.c | 30 -- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/fs/fat/fat.c b/fs/fat/fat.c

[U-Boot] [PATCH 0/2] fs: fat: error handling in get_contents()

2019-09-12 Thread Heinrich Schuchardt
If a FAT entry is corrupted, reading a file should always lead to an error. get_contents() should always return -1 when an error occurs. Heinrich Schuchardt (2): fs: fat: treat invalid FAT clusters as errors fs: fat: get_contents() always returns -1 for errors fs/fat/fat.c | 32

[U-Boot] [PATCH 2/2] fs: fat: get_contents() always returns -1 for errors

2019-09-12 Thread Heinrich Schuchardt
If out of memory, return -1 and not -ENOMEM from get_contents(). Signed-off-by: Heinrich Schuchardt --- fs/fat/fat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fat/fat.c b/fs/fat/fat.c index b4e8083734..da822f4f38 100644 --- a/fs/fat/fat.c +++ b/fs/fat/fat.c @@

[U-Boot] [PATCH v2 1/2] Revert "configs: Remove am335x_boneblack_defconfig"

2019-09-12 Thread Sam Protsenko
Commit 8fa7f65dd02c ("configs: Remove am335x_boneblack_defconfig") removes defconfig for BeagleBone Black board, and it's advised to use am335x_evm_defconfig for all AM335x boards. But it's impossible to store environment in eMMC with am335x_evm_defconfig without modifications (NAND must be

[U-Boot] [PATCH 1/1] arm64: print instructions leading to exception

2019-09-12 Thread Heinrich Schuchardt
If an exception occurs in a loaded image and the relocation offset is unknown, it is helpful to know the instructions pointed to by the program counter. This patch adds the missing output. A possible output is: Code: 910c4021 aa1303e0 f9400662 d63f0040 (e7f7defb) The parentheses indicate the

Re: [U-Boot] [PATCH 1/2] Revert "configs: Remove am335x_boneblack_defconfig"

2019-09-12 Thread Sam Protsenko
The eMMC boot works fine, but "env save" fails with message: Saving Environment to FAT... Failed (1) That's because CONFIG_ENV_IS_IN_MMC=y is not enabled, which wouldn't work without CONFIG_SYS_EXTRA_OPTIONS="EMMC_BOOT", because in include/configs/am335x_evm.h it defines eMMC environment

Re: [U-Boot] [PATCH v2] patman: Use the Change-Id, version, and prefix in the Message-Id

2019-09-12 Thread Simon Glass
On Tue, 3 Sep 2019 at 14:15, Douglas Anderson wrote: > > As per the centithread on ksummit-discuss [1], there are folks who > feel that if a Change-Id is present in a developer's local commit that > said Change-Id could be interesting to include in upstream posts. > Specifically if two commits

Re: [U-Boot] [PATCH 1/2] Revert "configs: Remove am335x_boneblack_defconfig"

2019-09-12 Thread Sam Protsenko
On Thu, Sep 12, 2019 at 6:23 PM Sam Protsenko wrote: > > Commit 8fa7f65dd02c ("configs: Remove am335x_boneblack_defconfig") > removes defconfig for BeagleBone Black board, and it's advised to use > am335x_evm_defconfig for all AM335x boards. But it's impossible to use > am335x_evm_defconfig in

[U-Boot] [PATCH v2 2/2] configs: am335x_boneblack: Sync with am335x_evm

2019-09-12 Thread Sam Protsenko
Old am335x_boneblack defconfig doesn't have Driver Model enabled. Pull DM options from am335x_evm, along with some others, like ones for shrinking SPL, making am335x_boneblack defconfig as close as possible to am335x_evm. Main differences betweend am335x_boneblack and am335x_evm defconfigs: -

Re: [U-Boot] [PATCH v2 19/40] env: net: Move eth_parse_enetaddr() to net.c/h

2019-09-12 Thread Simon Glass
Hi, On Thu, 12 Sep 2019 at 10:59, Ondřej Jirman wrote: > > Hello, > > On Thu, Aug 01, 2019 at 09:46:54AM -0600, Simon Glass wrote: > > This function fits better with the network subsystem, so move it. > > Unfortunately, this breaks builds without CONFIG_NET. Reverting it > fixes the issue. > >

Re: [U-Boot] [PATCH v2 19/40] env: net: Move eth_parse_enetaddr() to net.c/h

2019-09-12 Thread Ondřej Jirman
Hello, On Thu, Aug 01, 2019 at 09:46:54AM -0600, Simon Glass wrote: > This function fits better with the network subsystem, so move it. Unfortunately, this breaks builds without CONFIG_NET. Reverting it fixes the issue. LD u-boot cmd/built-in.o: In function `eth_env_get_enetaddr':

Re: [U-Boot] [PATCH v2 19/40] env: net: Move eth_parse_enetaddr() to net.c/h

2019-09-12 Thread Ondřej Jirman
Hi, On Thu, Sep 12, 2019 at 12:22:15PM -0600, Simon Glass wrote: > Hi, > > On Thu, 12 Sep 2019 at 10:59, Ondřej Jirman wrote: > > > > Hello, > > > > On Thu, Aug 01, 2019 at 09:46:54AM -0600, Simon Glass wrote: > > > This function fits better with the network subsystem, so move it. > > > >

[U-Boot] [PATCH 1/5] pico-imx6ul: Add DWARF baseboard support

2019-09-12 Thread Otavio Salvador
This add the boot menu option for the DWARF baseboard as well as a specific config file for users which wish to use it as a pre-defined board. Signed-off-by: Otavio Salvador --- configs/pico-dwarf-imx6ul_defconfig | 64 + include/configs/pico-imx6ul.h | 6 ++-

[U-Boot] [PATCH 4/5] pico-imx7d: Add instructions for booting in Falcon mode

2019-09-12 Thread Otavio Salvador
From: Fabio Estevam Improve the README by adding instructions on how to boot using Falcon mode, which allows the SPL to load the kernel directly, without using U-Boot proper. Signed-off-by: Fabio Estevam Signed-off-by: Otavio Salvador --- board/technexion/pico-imx7d/README | 91

[U-Boot] [PATCH] logos: Add the TechNexion's logo

2019-09-12 Thread Otavio Salvador
From: Fabio Estevam Add the TechNexion's logo from their internal U-Boot tree. Signed-off-by: Fabio Estevam Signed-off-by: Otavio Salvador --- tools/logos/technexion.bmp | Bin 0 -> 22390 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 tools/logos/technexion.bmp

[U-Boot] [PATCH 2/5] pico-imx7d: Add DWARF baseboard support

2019-09-12 Thread Otavio Salvador
This add the boot menu option for the DWARF baseboard as well as a specific config file for users which wish to use it as a pre-defined board. Signed-off-by: Otavio Salvador --- configs/pico-dwarf-imx7d_defconfig | 68 ++ include/configs/pico-imx7d.h | 4 +-

[U-Boot] [PATCH 5/5] pico-imx7d: Provide a way to escape the Falcon mode

2019-09-12 Thread Otavio Salvador
From: Fabio Estevam When CONFIG_SPL_OS_BOOT is selected, it is still convenient to be able to escape from Falcon mode and boot to U-Boot proper. Add a mechanism that allows booting in U-Boot proper when the key 'c' is entered on console at boot time. Signed-off-by: Fabio Estevam

[U-Boot] Saving u-boot environment on LS1046ardb QSPI bricks flash memory

2019-09-12 Thread Matthew Ratson
Hi there, I am currently working with a LS1046ardb development board from NXP/Layerscape. Using their provided firmware image from the primary QSPI memory bank, I have tried to flash my own compiled u-boot (using the ls1046ardb_qspi_defconfig file) onto the alternate memory bank. I have also

[U-Boot] [PATCH 1/1] drivers: mmc: Add sdhci driver for Broadcom iProc platform

2019-09-12 Thread Arun Parameswaran
Add SDHCI driver for iProc family of Broadcom devices. Signed-off-by: Corneliu Doban Signed-off-by: Pramod Kumar Signed-off-by: Pavithra Ravi Signed-off-by: Bharat Kumar Reddy Gooty Signed-off-by: Vladimir Olovyannikov Signed-off-by: Arun Parameswaran ---

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

2019-09-12 Thread Stefano Babic
Hi Peng, On 11/09/19 14:28, Peng Fan wrote: > Hi Stefano, > > Please pull nxp-imx-9-11-2019. This pull request was based on imx/master. > > But I also created a new branch based on origin/master, imx-master-9-11-2019 > and > CI is based the branch:

Re: [U-Boot] [U-Boot-DM] Sample RAM disk image for powerpc based boards

2019-09-12 Thread Simon Glass
+Moving to normal mailing list as the -dm one isn't really used. +Marek Vasut do you think we could delete it or disable subscriptions? On Thu, 12 Sep 2019 at 07:22, Matt Sykes wrote: > > I am new to this and having a play to see how it all works, and have a board > up and running (UBoot,

[U-Boot] [PATCH 2/5] pico-imx6ul: Increase the CONFIG_ENV_OFFSET size

2019-09-12 Thread Otavio Salvador
From: Fabio Estevam U-Boot binary has grown in such a way that it goes beyond the reserved area for the environment variables. Running "saveenv" causes U-Boot to hang because of this overlap. Fix this problem by increasing the CONFIG_ENV_OFFSET size. Also, in order to prevent this same

[U-Boot] [PATCH 3/5] pico-imx6ul: Add LCD support

2019-09-12 Thread Otavio Salvador
From: Fabio Estevam Add support for the VXT VL050-8048NT-C01 panel connected through the 24 bit parallel LCDIF interface. Signed-off-by: Fabio Estevam Signed-off-by: Otavio Salvador --- board/technexion/pico-imx6ul/pico-imx6ul.c | 55 +-

[U-Boot] [PATCH 4/5] pico-imx6ul: Update the Falcon mode instructions

2019-09-12 Thread Otavio Salvador
From: Fabio Estevam Sync the Falcon mode instructions with the ones fro pico-imx7d. Signed-off-by: Fabio Estevam Signed-off-by: Otavio Salvador --- board/technexion/pico-imx6ul/README | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

  1   2   >