Re: [U-Boot] [PATCH 1/3] Kbuild: add LDFLAGS_STANDALONE

2018-11-02 Thread Daniel Schwierzeck
Am 23.09.18 um 19:15 schrieb Daniel Schwierzeck: > Introduce a new Makefile variable for passing LDFLAGS to standalone > programs. Currently the variable CONFIG_STANDALONE_LOAD_ADDR is > misued on some archs to pass a specific linker script. > > Signed-off-by: Daniel Schwierzeck > --- > >

Re: [U-Boot] [PATCH 1/3] configs: drop CMD_CACHE from mx23_olinuxino_defconfig

2018-11-02 Thread Michael Heimpold
Am Dienstag, 30. Oktober 2018, 11:35:25 CET schrieb Marek Vasut: > On 10/29/2018 08:21 PM, Michael Heimpold wrote: > > This prevents the warning message > > "No arch specific invalidate_icache_all available!" > > during boot. > > Can you implement it ? The cache support worked on MX23. Hm, I had

[U-Boot] [PATCH] doc: imx: fix typos in mxsimage.txt

2018-11-02 Thread Michael Heimpold
This fixes two small typos in mxsimage.txt. Signed-off-by: Michael Heimpold --- doc/imx/mkimage/mxsimage.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/imx/mkimage/mxsimage.txt b/doc/imx/mkimage/mxsimage.txt index c3975ee5e6..9159f93a97 100644 ---

[U-Boot] [PATCH] doc: imx: fix typo in imximage.txt

2018-11-02 Thread Michael Heimpold
Signed-off-by: Michael Heimpold --- doc/imx/mkimage/imximage.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/imx/mkimage/imximage.txt b/doc/imx/mkimage/imximage.txt index 803682f558..f2cf23c5da 100644 --- a/doc/imx/mkimage/imximage.txt +++

Re: [U-Boot] [PATCH 2/3] Kbuild: standalone: do not ignore platform-specific OBJCOPYFLAGS

2018-11-02 Thread Daniel Schwierzeck
Am 23.09.18 um 19:15 schrieb Daniel Schwierzeck: > Currently the OBJCOPYFLAGS are cleared when assigning "-O srec" > or "-O binary" for standalone programs. All flags set by arch-specific > Makefiles are lost. This is bad if an arch demands arch-specific > flags for the objcopy step. > >

Re: [U-Boot] [PATCH 3/3] MIPS: fix linking of standalone programs

2018-11-02 Thread Daniel Schwierzeck
Am 23.09.18 um 19:15 schrieb Daniel Schwierzeck: > Use the global MIPS specific u-boot.lds for linking standalone programs > instead of the outdated ones in examples/standalone/. Also pass --gc-sections > in LDFLAGS_STANDALONE to optimize the size of standalone programs. > Finally remove the

Re: [U-Boot] [PATCH 2/6] efi_loader: Initial HII database protocols

2018-11-02 Thread Heinrich Schuchardt
On 11/02/2018 01:32 AM, AKASHI Takahiro wrote: > On Thu, Nov 01, 2018 at 08:39:04AM +0100, Heinrich Schuchardt wrote: >> On 11/01/2018 05:47 AM, AKASHI Takahiro wrote: >>> From: Leif Lindholm >>> >>> This patch provides enough implementation of the following protocols to >>> run EDKII's Shell.efi

Re: [U-Boot] [PATCH 6/6] efi_selftest: add HII database protocols test

2018-11-02 Thread Heinrich Schuchardt
On 11/02/2018 01:55 AM, AKASHI Takahiro wrote: > On Thu, Nov 01, 2018 at 08:33:09AM +0100, Heinrich Schuchardt wrote: >> On 11/01/2018 05:47 AM, AKASHI Takahiro wrote: >>> This efi_selftest tests HII database protocol and HII string protocol. >>> > > OK, but the root issue is that

[U-Boot] Feedback: Device probe during boot

2018-11-02 Thread Vabhav Sharma
Hello Maintainer/Owners, Please provide your valuable input Referring '[PATCH] drivers: serial: probe all serial devices' email regarding unified way to probe device during boot using DM model I would like to take this thread forward and request your time to help identify the design

Re: [U-Boot] [U-Boot-DM] [PATCH] drivers: serial: probe all serial devices

2018-11-02 Thread Vabhav Sharma
> -Original Message- > From: Wolfgang Denk > Sent: Friday, October 26, 2018 4:57 PM > To: Vabhav Sharma > Cc: Marek Vasut ; u-boot@lists.denx.de; u-boot- > d...@lists.denx.de; s...@chromium.org; yamada.masah...@socionext.com; > bmeng...@gmail.com > Subject: Re: [U-Boot-DM] [PATCH]

Re: [U-Boot] [U-Boot-DM] Feedback: Device probe during boot

2018-11-02 Thread Wolfgang Denk
Dear Vabhav, In message you wrote: > > Referring '[PATCH] drivers: serial: probe all serial devices' > email regarding unified way to probe device during boot using DM > model > > I would like to take this thread forward and request your time to > help identify the design framework > > 1.

Re: [U-Boot] [PATCH] drivers: serial: probe all serial devices

2018-11-02 Thread Wolfgang Denk
Dear Vabhav, In message you wrote: > > > "enable" means we have all required information needed to initialize them, > > if we need them. The need arises only when someone wants to transfer > > data over that UART. If nobody uses the UArt, there is no need to ever > > initialize it. > On

[U-Boot] [PATCH v2 3/3] dts: arm: socfpga: merge gen5 devicetrees from linux

2018-11-02 Thread Simon Goldschmidt
Add -u-boot.dtsi files to keep the current U-Boot behaviour: - add u-boot,dm-pre-reloc where required - disable watchdog - set uart clock frequency - add gpio bank-name properties where appropriate: - make qspi work (add alias for spi0, fix compatible for flash) - enable usb (status okay, add

[U-Boot] [PATCH v2 1/3] gpio: dwapb_gpio: fix binding without bank-name property

2018-11-02 Thread Simon Goldschmidt
As a preparation for merging the socfpga gen5 devicetree files from Linux, this patch makes the dwapb gpio driver work correctly without the 'bank-name' property on the gpio-controller nodes. This property is not present in the Linux drivers and thus is not present in the Linux devicetrees. It is

[U-Boot] [PATCH v2 2/3] spi: cadence_qspi: use "cdns, qspi-nor" as compatible

2018-11-02 Thread Simon Goldschmidt
Linux uses "cdns,qspi-nor" as compatible string for the cadence qspi driver, so change driver, docs and all device trees. Signed-off-by: Simon Goldschmidt --- Changes in v2: - remove old compatible "cadence,qspi" for cadence qspi driver and change all affected dts files to the new compatible

[U-Boot] [PATCH v2 0/3] dts: arm: socfpga: merge gen5 devicetrees from linux

2018-11-02 Thread Simon Goldschmidt
This series merges socfpga gen5 dts and dtsi files from linux while keeping U-Boot behaviour. Changes in those files that need fixing (mostly in -u-boot.dtsi board files) are: - watchdog is now enabled - ethernet, spi and i2c aliases removed from socfpga.dtsi - gpio bank names not available - mmc

[U-Boot] [PATCH v4 05/10] armv7R: K3: am654: Add support for triggering ddr init from SPL

2018-11-02 Thread Lokesh Vutla
In SPL, DDR should be made available by the end of board_init_f() so that apis in board_init_r() can use ddr. Adding support for triggering DDR initialization from board_init_f(). Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla --- arch/arm/mach-k3/am6_init.c | 13 + 1 file

[U-Boot] [PATCH v4 10/10] board: ti: am65x: Update README to add R5 build support

2018-11-02 Thread Lokesh Vutla
Update the README file to add r5 build support and system firmware support. Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla Signed-off-by: Andreas Dannenberg --- board/ti/am65x/README | 114 ++ 1 file changed, 92 insertions(+), 22 deletions(-) diff

[U-Boot] [PATCH v4 06/10] board: ti: am654: r5: Add initial support for am654

2018-11-02 Thread Lokesh Vutla
Add initial support for AM654 based EVM running on R5. Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla Signed-off-by: Andreas Dannenberg --- board/ti/am65x/Kconfig| 24 include/configs/am65x_evm.h | 6 ++ include/configs/ti_armv7_common.h | 2

Re: [U-Boot] [PATCH V2 02/13] mmc: tmio: Switch to clock framework

2018-11-02 Thread Marek Vasut
On 11/02/2018 03:24 AM, Masahiro Yamada wrote: > On Thu, Nov 1, 2018 at 6:39 PM Marek Vasut wrote: >> >> Switch the driver to using clk_get_rate()/clk_set_rate() instead of >> caching the mclk frequency in it's private data. This is required on >> the SDHI variant of the controller, where the

Re: [U-Boot] [PATCH V2 02/13] mmc: tmio: Switch to clock framework

2018-11-02 Thread Marek Vasut
On 11/02/2018 03:19 AM, Masahiro Yamada wrote: > On Thu, Nov 1, 2018 at 8:38 PM Masahiro Yamada > wrote: >> >> On Thu, Nov 1, 2018 at 6:39 PM Marek Vasut wrote: >>> >>> Switch the driver to using clk_get_rate()/clk_set_rate() instead of >>> caching the mclk frequency in it's private data. This

[U-Boot] [PATCH v3 10/18] pinctrl: MediaTek: add pinctrl driver for MT7629 SoC

2018-11-02 Thread Ryder Lee
This patch adds pinctrl support for MT7629 SoC. The IO core found on the SoC has the registers for pinctrl, pinconf and gpio mixed up in the same register range. Hence the driver also implements the gpio functionality through UCLASS_GPIO. This also creates a common file as there might be other

[U-Boot] [PATCH v3 09/18] watchdog: MediaTek: add watchdog driver for MediaTek SoCs

2018-11-02 Thread Ryder Lee
This patch adds a common driver for the Mediatek SoC integrated watchdog. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger Reviewed-by: Simon Glass --- drivers/watchdog/Kconfig | 8 +++ drivers/watchdog/Makefile | 1 + drivers/watchdog/mtk_wdt.c | 135

[U-Boot] [PATCH v3 04/18] arm: MediaTek: add basic support for MT7629 boards

2018-11-02 Thread Ryder Lee
This adds a general board file based on MT7629 SoCs from MediaTek. Apart from the generic parts (cpu) we add some low level init codes and initialize the early clocks. Signed-off-by: Ryder Lee Signed-off-by: Weijie Gao --- arch/arm/Kconfig | 16

[U-Boot] [PATCH v3 01/18] tools: MediaTek: add MTK boot header generation to mkimage

2018-11-02 Thread Ryder Lee
This patch adds support for MTK boot image generation. Signed-off-by: Weijie Gao Signed-off-by: Ryder Lee --- Makefile | 20 ++ common/image.c | 1 + include/image.h | 1 + scripts/Makefile.spl | 11 + tools/Makefile | 1 + tools/mtk_image.c| 749

[U-Boot] [PATCH v3 02/18] arm: dts: MediaTek: add device tree for MT7629

2018-11-02 Thread Ryder Lee
This patch adds MT7629 device tree and the includes it needs. Signed-off-by: Ryder Lee Reviewed-by: Simon Glass --- arch/arm/dts/Makefile| 3 + arch/arm/dts/mt7629-rfb-u-boot.dtsi | 24 +++ arch/arm/dts/mt7629-rfb.dts | 70 +

Re: [U-Boot] [PATCH] sunxi: Fix memory 2-rank initialization for a33 cpu

2018-11-02 Thread Michael Nazzareno Trimarchi
Hi Maxime On Wed, Oct 31, 2018 at 8:03 PM Michael Trimarchi wrote: > > When we initialize the memory we need to autodetect rank and size > but this can happen only if we send the proper reset to both > memory module including cke signal. > For this reason we need initialize the physical on both

[U-Boot] CycloneV kernel hang with big zImage over tftpboot

2018-11-02 Thread Clément Péron
Hi, I'm on top of U-Boot 2018.11-rc3 and try to boot using TFTP to load a Kernel 4.9.130 My board is a custom SoCFPGA CycloneV with 512MiB and I try to load : -zImage (kernel + rootfs) @ 0x100 (the size is around 29MiB kernel is compressed with gzip) -DeviceTree @ 0x1800 The SDRAM should

Re: [U-Boot] CycloneV kernel hang with big zImage over tftpboot

2018-11-02 Thread Marek Vasut
On 11/02/2018 02:10 PM, Clément Péron wrote: > Hi, Hi, > I'm on top of U-Boot 2018.11-rc3 and try to boot using TFTP to load a > Kernel 4.9.130 > My board is a custom SoCFPGA CycloneV with 512MiB and I try to load : > -zImage (kernel + rootfs) @ 0x100 (the size is around 29MiB kernel > is

[U-Boot] [PATCH v4 01/10] ram: Introduce K3 AM654 DDR Sub System driver

2018-11-02 Thread Lokesh Vutla
K3 based AM654 devices has DDR memory subsystem that comprises Synopys DDR controller, Synopsis DDR phy and wrapper logic to intergrate these blocks into the device. This DDR subsystem provides an interface to external SDRAM devices. Adding support for the initialization of the external SDRAM

Re: [U-Boot] [PATCH] armv8: ls1012afrwy: update of env board variables

2018-11-02 Thread York Sun
On 10/12/18 4:01 AM, Pramod Kumar wrote: > ls1012afrwy and ls1012afrdm both boards are variant > of ls1012a based SoC, by default board and board_name > uboot env variables are set as ls1012afrdm. whenever board > is detected as ls1012afrwy, uboot env variables are updated to > ls1012afrwy if it

[U-Boot] [PATCH V3 04/13] mmc: tmio: Configure clock before any other IOS

2018-11-02 Thread Marek Vasut
Configure the clock settings before reconfiguring any other IO settings. This is required when the clock must be stopped before changing eg. the pin configuration or any of the other properties of the bus. Running the clock configuration first allows the MMC core to do just that. Signed-off-by:

[U-Boot] [PATCH V3 12/13] mmc: tmio: sdhi: Switch CPG settings in UHS modes

2018-11-02 Thread Marek Vasut
Switch CPG settings when transitioning between HS200/HS400/SDR104 and regular modes. This is required for the SCC block to operate correctly. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- V2: No change V3: No change --- drivers/mmc/renesas-sdhi.c | 28 +++- 1 file

[U-Boot] [PATCH V3 06/13] mmc: tmio: Switch to clock framework

2018-11-02 Thread Marek Vasut
Switch the driver to using clk_get_rate()/clk_set_rate() instead of caching the mclk frequency in it's private data. This is required on the SDHI variant of the controller, where the upstream mclk need to be adjusted when using UHS modes. Platforms which do not support clock framework or do not

[U-Boot] [PATCH V3 07/13] mmc: tmio: Do not set divider to 1 in DDR mode

2018-11-02 Thread Marek Vasut
The TMIO core has a quirk where divider == 1 must not be set in DDR modes. Handle this by setting divider to 2, as suggested in the documentation. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- V2: No change V3: No change --- drivers/mmc/tmio-common.c | 4 1 file changed, 4

[U-Boot] [PATCH V3 08/13] mmc: tmio: Keep generating clock when clock are enabled

2018-11-02 Thread Marek Vasut
The TMIO core has a feature where it can automatically disable clock output when the bus is not in use. While this is useful, it also interferes with switching the bus to 1.8V and other background tasks of the SD/MMC cards, which require clock to be enabled. This patch respects the

[U-Boot] [PATCH V3 05/13] mmc: tmio: Preinitialize regulator to 3.3V

2018-11-02 Thread Marek Vasut
Preinitialize the SD card signals regulator to 3.3V, which is the default post-reset setting, to be sure the regulator is set to a valid value. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- V2: No change V3: No change --- drivers/mmc/tmio-common.c | 2 ++ 1 file changed, 2 insertions(+)

[U-Boot] [PATCH V3 13/13] mmc: tmio: sdhi: Merge DTCNTL access into single register write

2018-11-02 Thread Marek Vasut
It is perfectly fine to write th DTCNTL TAP count and enable the SCC sampling clock operation in the same write. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- V2: No change V3: No change --- drivers/mmc/renesas-sdhi.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff

[U-Boot] [PATCH V3 11/13] mmc: tmio: sdhi: Implement waiting for DAT0 line state

2018-11-02 Thread Marek Vasut
When the bus switches to 1.8V mode of operation, it is necessary to verify that the card correctly initiated and completed the voltage switch. This is done by reading out the state of DATA0 line. This patch implement support for reading out the state of the DATA0 line, so the MMC core code can

[U-Boot] [PATCH v3 06/18] clk: MediaTek: add clock driver for MT7629 SoC.

2018-11-02 Thread Ryder Lee
This patch adds clock modules for MediaTek SoCs: - Shared part: a common driver which contains the general operations for plls, muxes, dividers and gates so that we can reuse it in future. - Specific SoC part: the group of structures used to hold the hardware configuration for each SoC. We take

[U-Boot] [PATCH v3 03/18] arm: dts: MediaTek: add device tree for MT7623

2018-11-02 Thread Ryder Lee
This adds device tree for MT7623 development board - Bananapi R2 Detailed hardware information for BPI-R2 which could be found on http://wiki.banana-pi.org/Banana_Pi_BPI-R2. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger Reviewed-by: Simon Glass --- arch/arm/dts/Makefile

[U-Boot] [PATCH v4 02/10] armv7R: K3: am654: Enable MPU regions

2018-11-02 Thread Lokesh Vutla
Enable MPU regions for AM654 evm: - Region0: 0x - 0x: Device memory, not executable - Region1: 0x41c0 - 0x4240: Normal, executable, WB, Write alloc - Region2: 0x8000 - 0x: Normal, executable, WB, Write alloc - region3-15: Disabled With this dcache can be

Re: [U-Boot] [PATCH v2 0/3] dts: arm: socfpga: merge gen5 devicetrees from linux

2018-11-02 Thread Marek Vasut
On 11/02/2018 11:54 AM, Simon Goldschmidt wrote: > This series merges socfpga gen5 dts and dtsi files from linux > while keeping U-Boot behaviour. Changes in those files that need > fixing (mostly in -u-boot.dtsi board files) are: > - watchdog is now enabled > - ethernet, spi and i2c aliases

Re: [U-Boot] [PATCH 08/13] mmc: tmio: Silence transfer errors when tuning

2018-11-02 Thread Marek Vasut
On 11/02/2018 04:59 AM, Masahiro Yamada wrote: > On Thu, Nov 1, 2018 at 9:14 PM Marek Vasut wrote: >> >> On 11/01/2018 12:42 PM, Masahiro Yamada wrote: >>> On Thu, Nov 1, 2018 at 2:22 AM Marek Vasut wrote: In case the controller performs card tuning, that is, sends MMC command 19

Re: [U-Boot] [PATCH 01/13] mmc: tmio: Simplify pinmux handling

2018-11-02 Thread Masahiro Yamada
On Fri, Nov 2, 2018 at 11:29 PM Marek Vasut wrote: > > On 11/02/2018 04:58 AM, Masahiro Yamada wrote: > > On Thu, Nov 1, 2018 at 9:14 PM Marek Vasut wrote: > >> > >> On 11/01/2018 12:38 PM, Masahiro Yamada wrote: > >>> On Thu, Nov 1, 2018 at 2:21 AM Marek Vasut wrote: > > The SD UHS

[U-Boot] [PATCH V3 01/13] mmc: tmio: Simplify pinmux handling

2018-11-02 Thread Marek Vasut
The SD UHS SDR12, SDR25, SDR50, SDR104, DDR50 and MMC HS200, HS400 modes all use 1.8V signaling, while all the legacy modes use 3.3V signaling. While there are extra modes which use 1.2V signaling, the existing hardware does not support those. Simplify the pinmux such that 3.3V signaling implies

[U-Boot] [PATCH V3 09/13] mmc: tmio: sdhi: Touch SCC only when UHS capable

2018-11-02 Thread Marek Vasut
Add check to avoid touching the SCC tuning registers in case the IP doesn't support them or if the support isn't in place yet. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- V2: No change V3: No change --- drivers/mmc/renesas-sdhi.c | 5 +++-- 1 file changed, 3 insertions(+), 2

[U-Boot] [PATCH V3 10/13] mmc: tmio: sdhi: Clear HS400 settings when resetting SCC

2018-11-02 Thread Marek Vasut
Make sure to clear HS400 configuration when resetting the SCC block. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- V2: No change V3: No change --- drivers/mmc/renesas-sdhi.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/mmc/renesas-sdhi.c b/drivers/mmc/renesas-sdhi.c

[U-Boot] [PATCH v3 05/18] arm: MediaTek: add basic support for MT7623 boards

2018-11-02 Thread Ryder Lee
From: Weijie Gao This adds a general board file based on MT7623 SoCs from MediaTek. As this u-boot is loaded by MTK proprietary preloader, there is no low level initializtion codes. Signed-off-by: Weijie Gao Signed-off-by: Ryder Lee Tested-by: Matthias Brugger ---

[U-Boot] [PATCH v3 07/18] clk: MediaTek: add clock driver for MT7623 SoC.

2018-11-02 Thread Ryder Lee
This patch adds a driver for MT7623 clock blocks. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger Reviewed-by: Simon Glass --- drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt7623.c | 870 ++ 2 files changed, 871 insertions(+)

[U-Boot] [PATCH v3 00/18] Add U-Boot support for MediaTek SoCs - MT7623n & MT7629

2018-11-02 Thread Ryder Lee
Hello, This is the new round to add U-Boot support for MediaTek SoCs - MT7623n & MT7629, and the most of the drivers are based on mainline Linux, such as clock, timer, mmc, pinctrl, watchdog, power domain and device tree. Current implementation was validated via the FIT image. Thanks, Ryder

Re: [U-Boot] CycloneV kernel hang with big zImage over tftpboot

2018-11-02 Thread Clément Péron
Hi Marek, On Fri, 2 Nov 2018 at 14:23, Marek Vasut wrote: > > On 11/02/2018 02:10 PM, Clément Péron wrote: > > Hi, > > Hi, > > > I'm on top of U-Boot 2018.11-rc3 and try to boot using TFTP to load a > > Kernel 4.9.130 > > My board is a custom SoCFPGA CycloneV with 512MiB and I try to load : > >

[U-Boot] [PATCH v4 00/10] arm: am654: Add r5 support for am654-evm

2018-11-02 Thread Lokesh Vutla
This series adds r5 build support for booting am654 evm. There is still 1 step(loading system firmware) missing to complete the full boot. This will be posted as a separate series. Series depends on the following 2 pathces: - https://patchwork.ozlabs.org/patch/985201/ -

[U-Boot] [PATCH v4 07/10] arm: dts: k3: Sync dts from Linux

2018-11-02 Thread Lokesh Vutla
Sync the k3-am654 specific dts files from Linux next with tag 20181019. This changes are in queue for Linux v4.20-rc1 Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla --- arch/arm/dts/k3-am65-main.dtsi | 51 +-- arch/arm/dts/k3-am65-mcu.dtsi| 18

[U-Boot] [PATCH v4 04/10] armv7R: K3: am654: Add support to start ATF from R5 SPL

2018-11-02 Thread Lokesh Vutla
Considering the boot time requirements, Cortex-A core should be able to start immediately after SPL on R5. Add support for the same. Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla --- arch/arm/mach-k3/Kconfig | 7 ++ arch/arm/mach-k3/Makefile | 1 + arch/arm/mach-k3/common.c | 52

[U-Boot] [PATCH v4 08/10] armv7r: dts: am654: Add initial support

2018-11-02 Thread Lokesh Vutla
Add R5 specific dts for am654-evm. Signed-off-by: Lokesh Vutla Signed-off-by: Andreas Dannenberg Signed-off-by: Keerthy Signed-off-by: Schuyler Patton Signed-off-by: James Doublesin --- arch/arm/dts/Makefile | 2 +- .../dts/k3-am654-base-board-ddr4-1600MHz.dtsi |

[U-Boot] [RFC PATCH 3/3] ARM: dts: meson: Update dts files from Linux v4.19

2018-11-02 Thread Loic Devulder
This patch modifies Device Tree of meson boards. The dts files are synchronized from Linux 4.19. Signed-off-by: Loic Devulder --- arch/arm/dts/meson-gx.dtsi| 31 + arch/arm/dts/meson-gxbb-nanopi-k2.dts | 48 +++

[U-Boot] [RFC PATCH 1/3] ARM: meson: Add regmap support for clock driver

2018-11-02 Thread Loic Devulder
This patch modifies the meson clock driver to use syscon/regmap like the Linux kernel does, as it is needed if we want to share the same DTS files. Compatibility is kept with the old behaviour, if needed. Signed-off-by: Loic Devulder --- drivers/clk/clk_meson.c | 49

[U-Boot] [RFC PATCH 0/3] ARM: meson: Use syscon/regmap for clock driver

2018-11-02 Thread Loic Devulder
This patch series modifies the meson clock driver to use syscon/regmap like the Linux kernel does. It is needed if we want to share the same DTS files with the Linux kernel, as last changes in clock-controller break U-Boot. I tried to keep compatibility with the old behaviour, if needed. These

[U-Boot] [RFC PATCH 2/3] ARM: meson: Enable syscon on all supported boards

2018-11-02 Thread Loic Devulder
This patch enable CONFIG_SYSCON option on all supported meson boards, as this is need for the new clock driver to work. Signed-off-by: Loic Devulder --- configs/khadas-vim2_defconfig | 1 + configs/khadas-vim_defconfig | 1 + configs/libretech-cc_defconfig | 1 + configs/nanopi-k2_defconfig

[U-Boot] [PATCH V3 03/13] mmc: tmio: Silence transfer errors when tuning

2018-11-02 Thread Marek Vasut
In case the controller performs card tuning, that is, sends MMC command 19 or 21, silence possible CRC error warning prints. The warnings are bound to happen, since the tuning will fail for some settings while searching for the optimal configuration of the bus and that is perfectly OK. This patch

[U-Boot] [PATCH V3 02/13] mmc: tmio: Improve error handling

2018-11-02 Thread Marek Vasut
Properly handle return values and abort operations when they are non-zero. This is a minor improvement, which fixes two remaining unchecked return values. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- V2: No change V3: No change --- drivers/mmc/tmio-common.c | 7 --- 1 file changed, 4

[U-Boot] [PATCH v3 12/18] power domain: MediaTek: add power domain driver for MT7629 SoC

2018-11-02 Thread Ryder Lee
This adds a power domain driver for the Mediatek SCPSYS unit. The System Control Processor System (SCPSYS) has several power management related tasks in the system. The tasks include thermal measurement, dynamic voltage frequency scaling (DVFS), interrupt filter and lowlevel sleep control. The

[U-Boot] [PATCH v3 14/18] serial: 16550: allow the driver to support MediaTek serial

2018-11-02 Thread Ryder Lee
This patch adds an extra operation in ns16550.c to suuport MediaTek SoCs as we have a highspeed register which influences the calcualtion of the divisor. Note that we don't support the baudrate greater than 115200 currently. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger Reviewed-by:

[U-Boot] [PATCH v3 11/18] pinctrl: MediaTek: add pinctrl driver for MT7623 SoC

2018-11-02 Thread Ryder Lee
This patch adds pinctrl support for MT7623 SoC. And most of the structures are used to hold the hardware configuration for each pin. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger --- drivers/pinctrl/mediatek/Kconfig |4 + drivers/pinctrl/mediatek/Makefile |

[U-Boot] [PATCH v3 08/18] timer: MediaTek: add timer driver for MediaTek SoCs

2018-11-02 Thread Ryder Lee
This patch adds clock source and clock event for the timer found on the Mediatek SoCs. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger Reviewed-by: Simon Glass --- drivers/timer/Kconfig | 7 drivers/timer/Makefile| 1 + drivers/timer/mtk_timer.c | 85

[U-Boot] [PATCH v4 03/10] armv7R: K3: am654: Add support for generating build targets

2018-11-02 Thread Lokesh Vutla
Update Makefiles to generate: - tiboot3.bin: Image format that can be processed by ROM. Below is the tiboot3.bin image format that is required by ROM: ___ |X509 | | Certificate | |

[U-Boot] [PATCH v4 09/10] configs: am65x_evm_r5: Add initial support

2018-11-02 Thread Lokesh Vutla
Add initial defconfig support for AM65x that runs on R5. Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla Signed-off-by: Andreas Dannenberg Signed-off-by: Keerthy --- board/ti/am65x/MAINTAINERS | 1 + configs/am65x_evm_r5_defconfig | 87 ++ 2 files

Re: [U-Boot] [PATCH 01/13] mmc: tmio: Simplify pinmux handling

2018-11-02 Thread Marek Vasut
On 11/02/2018 04:58 AM, Masahiro Yamada wrote: > On Thu, Nov 1, 2018 at 9:14 PM Marek Vasut wrote: >> >> On 11/01/2018 12:38 PM, Masahiro Yamada wrote: >>> On Thu, Nov 1, 2018 at 2:21 AM Marek Vasut wrote: The SD UHS SDR12, SDR25, SDR50, SDR104, DDR50 and MMC HS200, HS400 modes

Re: [U-Boot] [PATCH 3/3] pci: layerscape: Add the dts fixup for EP and RC

2018-11-02 Thread York Sun
On 10/25/18 7:01 PM, Xiaowei Bao wrote: > Add the dts fixup when PCI controller work diffferent mode. > > Signed-off-by: Xiaowei Bao > --- > drivers/pci/pcie_layerscape_fixup.c | 25 +++-- > 1 files changed, 23 insertions(+), 2 deletions(-) > > diff --git

[U-Boot] [PATCH v3 18/18] MAINTAINERS: add an entry for MediaTek

2018-11-02 Thread Ryder Lee
This patch adds an entry for MediaTek. Signed-off-by: Ryder Lee Reviewed-by: Simon Glass --- MAINTAINERS | 20 1 file changed, 20 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index cf8f73f..9940200 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -157,6 +157,26 @@ T:

[U-Boot] [PATCH v3 13/18] power domain: MediaTek: add power domain driver for MT7623 SoC

2018-11-02 Thread Ryder Lee
This adds power domain (scpsys) support for MT7623 SoC. Signed-off-by: Ryder Lee Reviewed-by: Simon Glass --- drivers/power/domain/mtk-power-domain.c | 80 + 1 file changed, 80 insertions(+) diff --git a/drivers/power/domain/mtk-power-domain.c

[U-Boot] [PATCH v3 16/18] mmc: mtk-sd: add SD/MMC host controller driver for MT7623 SoC

2018-11-02 Thread Ryder Lee
From: Weijie Gao This patch adds MT7623 host controller driver for accessing SD/MMC. Cc: Jaehoon Chung Signed-off-by: Weijie Gao Signed-off-by: Ryder Lee Tested-by: Matthias Brugger Reviewed-by: Simon Glass --- drivers/mmc/Kconfig | 11 + drivers/mmc/Makefile |1 +

[U-Boot] [PATCH v3 17/18] doc: README.mediatek: Add a simple README for MediaTek

2018-11-02 Thread Ryder Lee
Add a few notes on how to try out the MediaTek support so far. Signed-off-by: Ryder Lee --- doc/README.mediatek | 54 + 1 file changed, 54 insertions(+) create mode 100644 doc/README.mediatek diff --git a/doc/README.mediatek

[U-Boot] [PATCH] dm: serial: fix comment on dm_serial_ops setconfig

2018-11-02 Thread Simon Goldschmidt
The comment on this function prototype describes nonexistent parameters. It seems to be copied from 'setparity'. Update it to match its the parameter list. Signed-off-by: Simon Goldschmidt --- include/serial.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

Re: [U-Boot] [PATCH v6 1/5] dma: move dma_ops to dma-uclass.h

2018-11-02 Thread Tom Rini
On Mon, Oct 22, 2018 at 04:24:56PM -0500, Grygorii Strashko wrote: > From: Álvaro Fernández Rojas > > Move dma_ops to a separate header file, following other uclass > implementations. While doing so, this patch also improves dma_ops > documentation. > > Reviewed-by: Simon Glass >

[U-Boot] [PATCH] serial: ns16550: add setconfig support

2018-11-02 Thread Simon Goldschmidt
Add possibility to update the serial parity used. Signed-off-by: Simon Goldschmidt --- drivers/serial/ns16550.c | 43 ++-- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c index

Re: [U-Boot] configs: sama5d2_ptc_ek: read environment from FAT

2018-11-02 Thread Tom Rini
On Tue, Oct 23, 2018 at 08:13:35AM +, andrei.stefane...@microchip.com wrote: > On our demo setup for SD card boot, the u-boot environment > is in a FAT partition. > > This patch changes the default configuration, specifing that > the u-boot environment is in a FAT partition instead of raw

Re: [U-Boot] [PATCH v6 2/5] dma: add channels support

2018-11-02 Thread Tom Rini
On Mon, Oct 22, 2018 at 04:24:57PM -0500, Grygorii Strashko wrote: > From: Álvaro Fernández Rojas > > This adds channels support for dma controllers that have multiple channels > which can transfer data to/from different devices (enet, usb...). > > DMA channel API: > dma_get_by_index() >

Re: [U-Boot] w1: fix data abort if no one wire bus master present

2018-11-02 Thread Tom Rini
On Mon, Oct 22, 2018 at 06:31:08PM +0200, Martin Fuzzey wrote: > When the "w1 bus" command is used with no bus master present > a data abort may occur. > > This is because uclass_first_device() returns zero, but sets the output > struct udevice pointer to NULL in the no device found case. > >

Re: [U-Boot] arm: ti: boot: Don't read environment partition

2018-11-02 Thread Tom Rini
On Tue, Oct 30, 2018 at 07:57:48PM +0200, Sam Protsenko wrote: > This part should've been remove in commit 88d60db01168 ("arm: ti: boot: > Remove environment partition"), but I missed it somehow. Remove reading > dtb file from environment partition on eMMC, as we don't have it > anymore. > >

Re: [U-Boot] power: spl: add SPL_DM_REGULATOR_GPIO in Kconfig

2018-11-02 Thread Tom Rini
On Wed, Oct 24, 2018 at 09:06:50PM +0530, Lokesh Vutla wrote: > The Makefile already tests for SPL_DM_REGULATOR_GPIO, but Kconfig > does not provide it. This adds SPL_DM_REGULATOR_GPIO to Kconfig. > > Signed-off-by: Lokesh Vutla Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [U-Boot] cmd: remoteproc: Fix the base of strtoul for ID conversion from 3 to 10

2018-11-02 Thread Tom Rini
On Wed, Oct 24, 2018 at 11:47:14AM +0530, Keerthy wrote: > Currently the base is 3 fix it 10 so that IDs follow decimal system. > > Signed-off-by: Keerthy > Reviewed-by: Lokesh Vutla Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] configs: at91: at91sam9x5ek: fix bootcmd for NAND flash

2018-11-02 Thread Tom Rini
On Tue, Oct 23, 2018 at 07:41:33AM +, eugen.hris...@microchip.com wrote: > The default bootcommand needs to be accurate w.r.t the nand memory map > at > http://www.at91.com/linux4sam/bin/view/Linux4SAM/AT91sam9x5ekMainPage#NAND_Flash_demo_Memory_map > > Updated to load kernel + dtb at right

Re: [U-Boot] Please pull ARC changes

2018-11-02 Thread Tom Rini
On Thu, Nov 01, 2018 at 08:41:46PM +, Alexey Brodkin wrote: > Hi Tom, > > The following changes since commit fdaccfeb5e03e18c05be386b8a7c6be02be2cf15: > > Merge branch 'master' of git://git.denx.de/u-boot-socfpga (2018-10-31 > 17:15:55 -0400) > > are available in the Git repository at:

Re: [U-Boot] [PATCH v6 3/5] sandbox: dma: add dma-uclass test

2018-11-02 Thread Tom Rini
On Mon, Oct 22, 2018 at 04:24:58PM -0500, Grygorii Strashko wrote: > Add a sandbox DMA driver implementation (provider) and corresponding DM > test. > > Signed-off-by: Grygorii Strashko Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] cmd: remove CONFIG_SOURCE support in Makefile

2018-11-02 Thread Tom Rini
On Thu, Oct 25, 2018 at 04:54:42PM +0200, Patrick Delaunay wrote: > This line is no more needed and can be removed. > > Only CONFIG_CMD_SOURCE is defined in Kconfig and > used in defconfig files. > > CONFIG_SOURCE if not defined in source code and > "config SOURCE" is not present in any

Re: [U-Boot] [PATCH v4 08/10] armv7r: dts: am654: Add initial support

2018-11-02 Thread Tom Rini
On Fri, Nov 02, 2018 at 07:51:09PM +0530, Lokesh Vutla wrote: > Add R5 specific dts for am654-evm. > > Signed-off-by: Lokesh Vutla > Signed-off-by: Andreas Dannenberg > Signed-off-by: Keerthy > Signed-off-by: Schuyler Patton > Signed-off-by: James Doublesin Reviewed-by: Tom Rini -- Tom

Re: [U-Boot] w1-eeprom: ds24xxx: fix data abort in ds24xxx_probe()

2018-11-02 Thread Tom Rini
On Mon, Oct 22, 2018 at 06:31:07PM +0200, Martin Fuzzey wrote: > Data abort was occurring when using "w1 bus" with a DS24B33 present. > > The abort occurred in the ds24xxx_probe() because the struct w1_device > pointer was NULL. This is because that structure is allocated by > the parent device

Re: [U-Boot] test: tee: fix resource leak in dm_test_tee()

2018-11-02 Thread Tom Rini
On Mon, Oct 29, 2018 at 11:41:35AM +0100, Jens Wiklander wrote: > Fixes possible resource leak in dm_test_tee() reported by Coverity. > > Reported-by: Coverity (CID: 184175) > Signed-off-by: Jens Wiklander Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

[U-Boot] [PATCH] spl: fix debug prints for tiny printf

2018-11-02 Thread Simon Goldschmidt
Tiny printf does not support %.*s and %lX. Since tiny printf should be very common in SPL, replace these by %32s (for printing image name) and %lx. Signed-off-by: Simon Goldschmidt --- common/spl/spl.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git

Re: [U-Boot] [PATCH v3 2/7] configs: net: convert DRIVER_TI_KEYSTONE_NET kconfig

2018-11-02 Thread Joe Hershberger
On Wed, Oct 31, 2018 at 4:26 PM Grygorii Strashko wrote: > > Convert DRIVER_TI_KEYSTONE_NET to Kconfig. > > Reviewed-by: Tom Rini > Acked-by: Joe Hershberger > Signed-off-by: Grygorii Strashko [ ... ] > diff --git a/drivers/net/ti/Kconfig b/drivers/net/ti/Kconfig > index 35a6b5d..c38e273

Re: [U-Boot] [PATCH v2] fsl-lsch3: soc: Enable AHB read support for Flexspi controller

2018-11-02 Thread York Sun
On 9/26/18 4:10 AM, Ashish Kumar wrote: > Enable AHB support for Flexspi controller interface meaning > memory can be accessed via md command using absolute addresses > > Signed-off-by: Yogesh Gaur > Signed-off-by: Rajat Srivastava > Signed-off-by: Ashish Kumar > --- > v2: > 1. Rename FSPI to

[U-Boot] [PATCH v3 15/18] ram: MediaTek: add DDR3 driver for MT7629 SoC

2018-11-02 Thread Ryder Lee
This patch adds a DDR3 driver for MT7629 SoC. Signed-off-by: Wu Zou Signed-off-by: Ryder Lee Reviewed-by: Simon Glass --- drivers/ram/Makefile | 1 + drivers/ram/mediatek/Makefile | 7 + drivers/ram/mediatek/ddr3-mt7629.c | 766 + 3

Re: [U-Boot] [PATCH] arm: socfpga: check total size of SPL

2018-11-02 Thread Simon Goldschmidt
Am Fr., 2. Nov. 2018, 01:08 hat Marek Vasut geschrieben: > On 11/01/2018 08:26 PM, Simon Goldschmidt wrote: > > On 31.10.2018 11:00, Marek Vasut wrote: > >> On 10/31/2018 06:44 AM, Simon Goldschmidt wrote: > >>> On Tue, Oct 30, 2018 at 11:02 PM Marek Vasut > >>> wrote: > On 10/30/2018