[U-Boot] [PATCH] mx6: Select CONFIG_MP with MX6_SMP

2018-05-12 Thread Peter Robinson
It makes sense to select the MP multi processor option at the same time we select the other SMP options needed for SMP capable i.MX6 SoCs. Signed-off-by: Peter Robinson --- arch/arm/mach-imx/mx6/Kconfig | 1 + include/configs/mx6_common.h | 1 - 2 files changed, 1

[U-Boot] [PATCH 5/7] mach-snapdragon: Introduce pinctrl driver

2018-05-12 Thread Ramon Fried
This patch adds pinmux and pinctrl driver for TLMM subsystem in snapdragon chipsets. Currently, supporting only 8016, but implementation is generic and 8096 can be added easily. Driver is using the generic dt-bindings and doesn't introduce any new bindings (yet). Signed-off-by: Ramon Fried

[U-Boot] [PATCH 1/7] db820c: set clk node to be probed before relocation

2018-05-12 Thread Ramon Fried
The clock and serial nodes are needed before relocation. This patch ensures that the msm-serial driver will probe and provide uart output before relocation. Signed-off-by: Ramon Fried --- arch/arm/dts/dragonboard820c-uboot.dtsi | 14 ++ 1 file changed, 14

[U-Boot] [PATCH 2/7] serial: serial_msm: fail probe if settings clocks fails

2018-05-12 Thread Ramon Fried
Failure to set the clocks will causes data abort exception when trying to write to AHB uart registers. This patch ensures that we don't touch these registers if clock setting failed. Signed-off-by: Ramon Fried --- drivers/serial/serial_msm.c | 4 ++-- 1 file changed, 2

[U-Boot] [PATCH 3/7] serial: serial_msm: initialize uart only before relocation

2018-05-12 Thread Ramon Fried
The uart is already initialized prior to relocation, reinitialization after relocation is unnecessary. Signed-off-by: Ramon Fried --- drivers/serial/serial_msm.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/serial/serial_msm.c

[U-Boot] [PATCH] mx6: remove duplicated BOUNCE_BUFFER defines

2018-05-12 Thread Peter Robinson
The mx6_common.h file already defines BOUNCE_BUFFER so no need to definit it again in specific configs. Signed-off-by: Peter Robinson --- include/configs/advantech_dms-ba16.h | 1 - include/configs/apalis_imx6.h| 1 - include/configs/colibri_imx6.h | 1 -

[U-Boot] [PATCH 7/7] serial: serial_msm: added pinmux & config

2018-05-12 Thread Ramon Fried
Serial port configuration was missing from previous implementation. It only worked because it was preconfigured by LK. This patch configures the uart for 115200 8N1. It also configures the pin mux for uart pins using DT bindings. Signed-off-by: Ramon Fried ---

[U-Boot] [PATCH 4/7] mach-snapdragon: Fix UART clock flow

2018-05-12 Thread Ramon Fried
UART clock enabling flow was wrong. Changed the flow according to downstream implementation in LK. Signed-off-by: Ramon Fried --- arch/arm/mach-snapdragon/clock-apq8016.c | 23 +++--- arch/arm/mach-snapdragon/clock-apq8096.c | 4 ++--

[U-Boot] [PATCH 6/7] db410: added pinctrl node and serial bindings

2018-05-12 Thread Ramon Fried
Added TLMM pinctrl node for pin muxing & config. Additionally, added a serial node for uart. Signed-off-by: Ramon Fried --- arch/arm/dts/dragonboard410c.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/dts/dragonboard410c.dts

[U-Boot] [PATCH 2/2] efi_selftest: unit test for variable services

2018-05-12 Thread Heinrich Schuchardt
Provide a unit test for variable services. Signed-off-by: Heinrich Schuchardt --- lib/efi_selftest/Makefile | 1 + lib/efi_selftest/efi_selftest_variables.c | 178 ++ 2 files changed, 179 insertions(+) create mode 100644

[U-Boot] [PATCH 1/2] efi_loader: adjust definitions of variable services

2018-05-12 Thread Heinrich Schuchardt
The definitons of the variable services are adjusted: - use efi_uintn_t instead of unsigned long - use u16 * instead of s16 * for Unicode strings - correct definition of QueryVariableInfo - rename efi_get_next_variable to efi_get_next_variable_name Signed-off-by: Heinrich Schuchardt

[U-Boot] [PATCH 0/2] efi_loader: adjust definitions of variable services

2018-05-12 Thread Heinrich Schuchardt
The definitons of the variable services are adjusted: - use efi_uintn_t instead of unsigned long - use u16 * instead of s16 * for Unicode strings - correct definition of QueryVariableInfo - rename efi_get_next_variable to efi_get_next_variable_name A unit test for the variable services is

[U-Boot] [PATCH] mx7: remove empty ifndef statement

2018-05-12 Thread Peter Robinson
Signed-off-by: Peter Robinson --- include/configs/mx7_common.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/configs/mx7_common.h b/include/configs/mx7_common.h index da5a92502b..b0b7e1edd4 100644 --- a/include/configs/mx7_common.h +++

[U-Boot] [PATCH] mx6 common: remove dangling comment

2018-05-12 Thread Peter Robinson
Signed-off-by: Peter Robinson --- include/configs/mx6_common.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/configs/mx6_common.h b/include/configs/mx6_common.h index a8182b3434..3023701875 100644 --- a/include/configs/mx6_common.h +++

[U-Boot] [PATCH] net: cpsw: ti: Reap completed packets before stopping interface

2018-05-12 Thread Alex Kiernan
If you send a final packet just before stopping the interface (e.g. a final ACK as part of the UDP fastboot protocol), then that packet isn't reliably delivered onto the wire. Reap packets prior to stopping the interface to ensure any which are in-flight make it out. Also remove buffer and len

Re: [U-Boot] [PATCH v7 06/35] musb: sunxi: Add OTG device clkgate and reset for H3/H5

2018-05-12 Thread Marek Vasut
On 05/11/2018 11:29 PM, Maxime Ripard wrote: > On Mon, May 07, 2018 at 10:55:16PM +0200, Marek Vasut wrote: >> On 05/07/2018 10:11 PM, Maxime Ripard wrote: >>> On Mon, May 07, 2018 at 05:32:34PM +0200, Marek Vasut wrote: On 05/07/2018 04:52 PM, Maxime Ripard wrote: > On Mon, May 07, 2018

Re: [U-Boot] Beaglebone Black U-boot won't buid - THUMB instruction issue

2018-05-12 Thread Måns Rullgård
John Babrick writes: > Hello - I am trying to work through the book "Mastering Embedded Linux > Programming" by Chris Simmonds, and trying to work through building u-boot > after having built the cross toolchain. I am running into an error when I > try to build u-boot, any

Re: [U-Boot] [PATCH v2 1/6] kconfig: re-sync with Linux 4.17-rc4

2018-05-12 Thread Petr Vorel
Hi Eugeniu, > Hello Petr, > On Sat, May 12, 2018 at 08:25:56PM +0200, Petr Vorel wrote: > > When applied all 6 patches, I got several errors (see bellow). > > I tested in on 2 distros (Debian unstable and openSUSE Tumbleweed). > > The code I applied is here, did I make error when applying

[U-Boot] [PATCH 12/12] ARM: socfpga: Adding SoCFPGA info for both SPL and U-Boot

2018-05-12 Thread Marek Vasut
From: Tien Fong Chee SoC FPGA info is required in both SPL and U-Boot. Signed-off-by: Tien Fong Chee --- arch/arm/mach-socfpga/board.c| 4 arch/arm/mach-socfpga/misc_arria10.c | 5 - arch/arm/mach-socfpga/spl.c | 6

[U-Boot] [PATCH 09/12] configs: Add DDR Kconfig support for Arria 10

2018-05-12 Thread Marek Vasut
From: Tien Fong Chee This patch enables DDR Kconfig support for Arria 10. Signed-off-by: Tien Fong Chee Reviewed-by: Dinh Nguyen --- arch/arm/mach-socfpga/Kconfig | 1 + drivers/ddr/altera/Kconfig| 2 +- 2 files

[U-Boot] [PATCH 10/12] ARM: socfpga: Enable SPL memory allocation

2018-05-12 Thread Marek Vasut
From: Tien Fong Chee Enable memory allocation in SPL for preparation to enable FAT in SPL. Memory allocation is needed by FAT to work properly. Signed-off-by: Tien Fong Chee Reviewed-by: Dinh Nguyen ---

[U-Boot] [PATCH 11/12] ARM: socfpga: Adding clock frequency info for U-Boot

2018-05-12 Thread Marek Vasut
From: Tien Fong Chee Clock frequency info is required in U-Boot because info would be erased when transition from SPL to U-Boot. Signed-off-by: Tien Fong Chee --- arch/arm/mach-socfpga/board.c | 7 +++ 1 file changed, 7 insertions(+)

[U-Boot] [PATCH 3/6] ARM: rmobile: Drop old R8A7792 PFC tables

2018-05-12 Thread Marek Vasut
All the boards use new modern PFC framework, the old PFC tables are no longer used, so remove them. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- arch/arm/mach-rmobile/Makefile|2 +-

[U-Boot] [PATCH 1/3] fit: Fix CONFIG_FIT_SPL_PRINT

2018-05-12 Thread Marek Vasut
Rename CONFIG_FIT_SPL_PRINT to CONFIG_SPL_FIT_PRINT and add Kconfig entry for it. Signed-off-by: Marek Vasut Cc: Pantelis Antoniou Cc: Simon Glass --- Kconfig| 6 ++ README | 2 +- common/image-fit.c

[U-Boot] [PATCH 2/3] fit: Add empty fit_print_contents() and fit_image_print()

2018-05-12 Thread Marek Vasut
These functions may be needed in SPL, so add empty variants of them if CONFIG_SPL_FIT_PRINT is disabled. Signed-off-by: Marek Vasut Cc: Pantelis Antoniou Cc: Simon Glass --- common/image-fit.c | 4 +++- 1 file changed, 3

[U-Boot] [PATCH 3/3] fit: Add standalone image type handling

2018-05-12 Thread Marek Vasut
Just add IH_TYPE_STANDALONE to fit_get_image_type_property(). Signed-off-by: Marek Vasut Cc: Pantelis Antoniou Cc: Simon Glass --- common/image-fit.c | 2 ++ include/image.h| 1 + 2 files changed, 3 insertions(+) diff

[U-Boot] [PATCH] spl: Add full fitImage support

2018-05-12 Thread Marek Vasut
Add support for loading U-Boot and optionally FDT from a fitImage in SPL by using the full fitImage support from U-Boot. While we do have limited SPL loading support in SPL with a small footprint, it is missing a lot of important features, like checking signatures. This support has all the

[U-Boot] [PATCH 06/12] ARM: socfpga: Rename the gen5 sdram driver to more specific name

2018-05-12 Thread Marek Vasut
From: Tien Fong Chee Current sdram driver is only applied to gen5 device, hence it is better to rename sdram driver to more specific name which is related to gen5 device. Signed-off-by: Tien Fong Chee ---

[U-Boot] [PATCH 07/12] ARM: socfpga: Add DRAM bank size initialization function

2018-05-12 Thread Marek Vasut
From: Tien Fong Chee Add function for both multiple DRAM bank and single DRAM bank size initialization. This common functionality could be used by every single SOCFPGA board. Signed-off-by: Tien Fong Chee Tested-by: Ley Foon Tan

[U-Boot] [PATCH 08/12] ARM: socfpga: Add DDR driver for Arria 10

2018-05-12 Thread Marek Vasut
From: Tien Fong Chee Add DDR driver support for Arria 10. Signed-off-by: Tien Fong Chee --- arch/arm/mach-socfpga/include/mach/sdram.h | 2 + arch/arm/mach-socfpga/include/mach/sdram_arria10.h | 2 + drivers/ddr/altera/Makefile

[U-Boot] [PATCH 05/12] ARM: socfpga: Repair A10 EMAC reset handling

2018-05-12 Thread Marek Vasut
The EMAC reset and PHY mode configuration was never working on the Arria10 SoC, fix this. This patch pulls out the common code into misc.c and passes the SoC-specific function call in as a function pointer. Signed-off-by: Marek Vasut Cc: Chin Liang See

[U-Boot] [PATCH V2 2/4] i2c: rcar_i2c: Add DM and DT capable I2C driver

2018-05-12 Thread Marek Vasut
Add derivative of the rcar_i2c driver which is capable of probing itself from DM and uses DT. Signed-off-by: Marek Vasut Cc: Heiko Schocher Cc: Nobuhiro Iwamatsu --- drivers/i2c/Kconfig| 6 + drivers/i2c/Makefile | 1

Re: [U-Boot] [PATCH v2 1/6] kconfig: re-sync with Linux 4.17-rc4

2018-05-12 Thread Eugeniu Rosca
Hi Petr, On Sat, May 12, 2018 at 09:31:48PM +0200, Petr Vorel wrote: > Hi Eugeniu, > > > Hello Petr, > > > On Sat, May 12, 2018 at 08:25:56PM +0200, Petr Vorel wrote: > > > > When applied all 6 patches, I got several errors (see bellow). > > > I tested in on 2 distros (Debian unstable and

[U-Boot] [PATCH] fdt: Add another Altera Arria10 clock init compatible

2018-05-12 Thread Marek Vasut
The DT bindings for the Arria10 clock init have changed, add another compatible to make them work with U-Boot until a proper clock driver gets written. Signed-off-by: Marek Vasut Cc: Tom Rini Cc: Chin Liang See Cc: Dinh Nguyen

[U-Boot] [PATCH] spl: fit: Add support for loading FPGA bitstream

2018-05-12 Thread Marek Vasut
Add support for loading FPGA into the SPL fitImage support. The mechanism is flexible and allows user to override the actual function for loading the FPGA itself. This is because on some systems, the FPGA must be programmed to allow DRAM access, so loading the full fitImage may not be possible if

[U-Boot] [PATCH] ARM: socfpga: Convert to DM serial

2018-05-12 Thread Marek Vasut
Pull the serial port configuration from DT and use DM serial instead of having the serial configuration in two places, DT and board config. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen --- arch/arm/Kconfig

[U-Boot] [PATCH v2 4/6] scripts/dtc: Update to upstream version v1.4.6-9-gaadd0b65c987

2018-05-12 Thread Eugeniu Rosca
From: Rob Herring This adds the following commits from upstream: aadd0b65c987 checks: centralize printing of property names in failure messages 88960e398907 checks: centralize printing of node path in check_msg f1879e1a50eb Add limited read-only support for older (V2 and V3)

[U-Boot] [PATCH 5/6] ARM: rmobile: Drop old R8A7794 PFC tables

2018-05-12 Thread Marek Vasut
All the boards use new modern PFC framework, the old PFC tables are no longer used, so remove them. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- arch/arm/mach-rmobile/Makefile|2 +-

[U-Boot] [PATCH 6/6] ARM: rmobile: Unify Gen2 Makefile entry

2018-05-12 Thread Marek Vasut
Drop per-SoC Makefile entries and replace them with one unified entry now that the PFC tables are gone. Shuffle the Makefile around a bit to make it more organized. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu ---

[U-Boot] [PATCH 03/12] ARM: socfpga: Synchronize Arria10 DTs

2018-05-12 Thread Marek Vasut
Synchronize Altera Arria 10 DT sources with Linux 4.16.3 as of commit ef8216d28a5920022cddcb694d2d75bd1f0035ca Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen --- arch/arm/dts/socfpga_arria10.dtsi| 594

[U-Boot] [PATCH 04/12] ARM: socfpga: Synchronize Arria10 SoCDK SDMMC handoff

2018-05-12 Thread Marek Vasut
Regenerate Altera Arria 10 SoCDK SDMMC handoff file using latest Quartus to get the new set of clock bindings in. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen --- .../dts/socfpga_arria10_socdk_sdmmc_handoff.dtsi

[U-Boot] [PATCH] ARM: rmobile: Update V2H Blanche

2018-05-12 Thread Marek Vasut
The V2H Blanche port was broken since some time. This patch updates the V2H Blanche port to use modern frameworks, DM, DT probing, SPL for the preloading and puts it on par with the M2 Porter board. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu

[U-Boot] [PATCH 1/4] i2c: rcar_i2c: Remove the driver

2018-05-12 Thread Marek Vasut
Remove the rcar_i2c driver, since it's no longer used by any board and will be superseded by a DM and DT capable variant. Signed-off-by: Marek Vasut Cc: Heiko Schocher Cc: Nobuhiro Iwamatsu --- drivers/i2c/Makefile | 1 -

[U-Boot] Support for the Raspberry Pi 3B+?

2018-05-12 Thread Qwerty Chouskie
The defconfig for the 3 seems to work fine, except that for some reason Ethernet doesn't work (from what I understand, it is on the USB bus, though u-boot doesn't detect it? A quick google found some (maybe) useful files (e.g. the DTS) here:

[U-Boot] [PATCH 3/4] ARM: rmobile: Enable DM capable RCar I2C driver on Lager

2018-05-12 Thread Marek Vasut
Enable the DM capable driver instead of the legacy one. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- configs/lager_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/lager_defconfig b/configs/lager_defconfig index

[U-Boot] [PATCH 4/4] ARM: rmobile: Enable DM capable RCar I2C driver on Silk

2018-05-12 Thread Marek Vasut
Enable the DM capable driver instead of the legacy one. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- configs/silk_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/silk_defconfig b/configs/silk_defconfig index

[U-Boot] [PATCH 01/12] ARM: socfpga: Sync A10 clock manager binding parser

2018-05-12 Thread Marek Vasut
The A10 clock manager parsed DT bindings generated by Quartus the bsp-editor to configure the A10 clocks. Sadly, those DT bindings changed at some point. The clock manager patch used the old ones, this patch replaces the bindings parser with one for the new set. Signed-off-by: Marek Vasut

[U-Boot] [PATCH 02/12] ARM: socfpga: Sort the DT Makefile

2018-05-12 Thread Marek Vasut
Sort the Makefile entries, no functional change. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen --- arch/arm/dts/Makefile | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[U-Boot] [PATCH v2 6/6] sandbox: dts: test: Fix wrong aliases property names

2018-05-12 Thread Eugeniu Rosca
After importing v4.17-rc1 Linux commit 9130ba884640 ("scripts/dtc: Update to upstream version v1.4.6-9-gaadd0b65c987"), sandbox build reports below warnings: arch/sandbox/dts/test.dtb: Warning (alias_paths): /aliases: aliases property name must include only lowercase and '-'

[U-Boot] [PATCH 4/6] ARM: rmobile: Drop old R8A7793 PFC tables

2018-05-12 Thread Marek Vasut
All the boards use new modern PFC framework, the old PFC tables are no longer used, so remove them. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- arch/arm/mach-rmobile/Makefile|2 +-

[U-Boot] [PATCH] ARM: socfpga: Clean up Kconfig entries

2018-05-12 Thread Marek Vasut
Shuffle the default Kconfig entries around so it is not such a mess. No functional change. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen --- arch/arm/Kconfig | 20 +++-

[U-Boot] [PATCH] ARM: socfpga: Zap CONFIG_SOCFPGA_VIRTUAL_TARGET

2018-05-12 Thread Marek Vasut
This was never used, is not used anywhere and is just in the way by adding annoying ifdeffery. Get rid of it. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen --- arch/arm/mach-socfpga/include/mach/reset_manager.h | 4

[U-Boot] [PATCH] ARM: socfpga: Put stack at the end of SRAM

2018-05-12 Thread Marek Vasut
The global data are in the .data section, so there's no point in reserving any space for it above stack. Put stack at the end of SRAM. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen ---

[U-Boot] [PATCH v2 2/6] board: eets: pdu001: Fix wrong default value in Kconfig

2018-05-12 Thread Eugeniu Rosca
After importing linux v4.16-rc1 commit 2c37e08464a8 ("kconfig: Warn if choice default is not in choice"), Kconfig complains: scripts/kconfig/conf --syncconfig Kconfig board/eets/pdu001/Kconfig:22:warning:\ choice default symbol 'PDU001_RUN_LED_RED' \ is not contained in the choice

[U-Boot] [PATCH v2 3/6] scripts/dtc: Update to upstream version v1.4.5-6-gc1e55a5513e9

2018-05-12 Thread Eugeniu Rosca
From: Rob Herring Pickup the fix for handling unresolved phandles in overlays. This adds the following commits from upstream: c1e55a5513e9 checks: fix handling of unresolved phandles for dts plugins f8872e29ce06 tests: Avoid 64-bit arithmetic in assembler 48c91c08bcfa libfdt:

Re: [U-Boot] [PATCH v2 1/6] kconfig: re-sync with Linux 4.17-rc4

2018-05-12 Thread Petr Vorel
Hi Eugeniu, > My testing was limited to: > - make defconfig all > - make ARCH=arm CROSS_COMPILE=aarch64-linux-gnu- r8a7795_ulcb_defconfig all > - comparing .config before and after the re-sync > - running the newly imported Kconfig unit tests as seen below: I tested whole patch-set with the

Re: [U-Boot] [PATCH v2 1/6] kconfig: re-sync with Linux 4.17-rc4

2018-05-12 Thread Eugeniu Rosca
Hello Petr, On Sat, May 12, 2018 at 08:25:56PM +0200, Petr Vorel wrote: > Hi Eugeniu, > > > My testing was limited to: > > - make defconfig all > > - make ARCH=arm CROSS_COMPILE=aarch64-linux-gnu- r8a7795_ulcb_defconfig all > > - comparing .config before and after the re-sync > > - running the

Re: [U-Boot] [RFC PATCH 1/2] kconfig: re-sync with Linux 4.17-rc4

2018-05-12 Thread Eugeniu Rosca
Hi Masahiro, On Sat, May 12, 2018 at 01:46:15PM +0900, Masahiro Yamada wrote: > > This seems to happen because the Kbuild updates apparently didn't make > > room for both "*shipped"-based builds and flex/bison-based builds. A > > similar problem has been reported for genksyms parser in v4.17-rc1

[U-Boot] [PATCH 1/6] ARM: rmobile: Drop old R8A7790 PFC tables

2018-05-12 Thread Marek Vasut
All the boards use new modern PFC framework, the old PFC tables are no longer used, so remove them. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- arch/arm/mach-rmobile/Makefile|2 +-

[U-Boot] [PATCH 2/6] ARM: rmobile: Drop old R8A7791 PFC tables

2018-05-12 Thread Marek Vasut
All the boards use new modern PFC framework, the old PFC tables are no longer used, so remove them. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- arch/arm/mach-rmobile/Makefile|2 +-

[U-Boot] [PATCH 0/7] *** Qualcomm Snapdraon serial fixes***

2018-05-12 Thread Ramon Fried
In my ongoing effort to get rid of LK (Qualcomm's bootloader) that runs before U-boot, I found that there were some problems with the uart driver of Snapdragon. It appears that the uart only worked because the initialization was previously done by LK. While fixing, I also introduced a new pinctrl