Re: [U-Boot] [U-Boot,2/2] smbios: fix checkstyle warning

2018-08-10 Thread Tom Rini
On Mon, Jul 30, 2018 at 01:22:07PM +0200, Christian Gmeiner wrote: > Fixes the following checkstyle warning: > > WARNING: Missing a blank line after declarations > + int tmp = smbios_write_funcs[i]((ulong *)&addr, handle++); > + max_struct_size = max(max_struct_size, t

Re: [U-Boot] configs: omap: Remove dead config CONFIG_SYS_NAND_ADDR

2018-08-10 Thread Tom Rini
On Sun, Jul 29, 2018 at 09:51:04AM -0500, Adam Ford wrote: > CONFIG_SYS_NAND_ADDR is defined and never referenced. This patch > removes the dead code. > > Signed-off-by: Adam Ford Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature _

Re: [U-Boot] configs: omap3_logic: Disable NAND ID during SPL

2018-08-10 Thread Tom Rini
On Sun, Jul 29, 2018 at 08:16:49PM -0500, Adam Ford wrote: > For these boards, the GPMC timings are more determined by > processor speed/type than the NAND/PoP memory. This code > is never invoked, so disable the config option, so it doesn't > take the time to compile it in. > > Signed-off-by: A

Re: [U-Boot] [U-Boot, v2, 1/2] snapdragon: Add DRAM detection & FDT fixup

2018-08-10 Thread Tom Rini
On Tue, Jul 31, 2018 at 12:29:57PM +0300, Ramon Fried wrote: > Fixup the Linux FDT with the detection of onboard DRAM as > provided by SBL (Secondary boot loader) by reading > the shared-memory region. > > Signed-off-by: Ramon Fried Applied to u-boot/master, thanks! -- Tom signature.asc Des

Re: [U-Boot] [U-Boot, 1/1] elf: Add support for PPC64 ELF V1 ABI in bootelf

2018-08-10 Thread Tom Rini
On Tue, Jul 31, 2018 at 10:57:42PM -0400, Rob Bracero wrote: > This update adds PPC64 ELF V1 ABI support to bootelf for both the > program header and section header options. Elf64 support was already > present for the program header option, but it was not handling the > PPC64 ELF V1 ABI case. For

Re: [U-Boot] [U-Boot,1/1] README: U_BOOT_ENV_CALLBACK functions

2018-08-10 Thread Tom Rini
On Sun, Jul 29, 2018 at 11:08:14AM +0200, Heinrich Schuchardt wrote: > Describe the interface of environment variable callback functions. > > Signed-off-by: Heinrich Schuchardt Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot, 1/2] doc: FIT image: clarify usage of "compression" property

2018-08-10 Thread Tom Rini
On Mon, Jul 30, 2018 at 12:53:18PM +0200, Simon Goldschmidt wrote: > Compressed images should have their compression property > set to "none" if U-Boot should leave them compressed. > > This is especially the case for compressed ramdisks that > should be uncompressed by the kernel only. > > Sign

Re: [U-Boot] omap3_logic: Fix CONS_INDEX

2018-08-10 Thread Tom Rini
On Sat, Jul 28, 2018 at 02:03:21PM -0500, Adam Ford wrote: > The console index for SPL should be 1 not 3 in order to see text during > SPL. > > Fixes 6f6b7cfa89e5 ("Convert all of CONFIG_CONS_INDEX to Kconfig") > > Signed-off-by: Adam Ford > > diff --git a/configs/omap3_logic_defconfig b/confi

Re: [U-Boot] [U-Boot,1/2] smbios: fix checkstyle error

2018-08-10 Thread Tom Rini
On Mon, Jul 30, 2018 at 01:22:06PM +0200, Christian Gmeiner wrote: > Fixes the following chechpatch -f error: > > ERROR: "(foo*)" should be "(foo *)" > + strncpy((char*)t->uuid, serial_str, sizeof(t->uuid)); > > Signed-off-by: Christian Gmeiner > Reviewed-by: Simon Glass Applied

Re: [U-Boot] [U-Boot, 1/1] doc: README.iscsi: make compatible with restructured text

2018-08-10 Thread Tom Rini
On Sun, Jul 29, 2018 at 01:50:50PM +0200, Heinrich Schuchardt wrote: > The Sphinx documentation system uses restructured text. > Make the README.iscsi file compatible. > > Signed-off-by: Heinrich Schuchardt Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature __

Re: [U-Boot] [U-Boot,v2,2/2] db410c: Fixup DRAM

2018-08-10 Thread Tom Rini
On Tue, Jul 31, 2018 at 12:29:58PM +0300, Ramon Fried wrote: > Call the MSM DRAM detection and fixup function to support > dynamic detection of onboard memory. > > Signed-off-by: Ramon Fried Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature __

Re: [U-Boot] [U-Boot, v4, 3/5] dm: led: move default state support in led uclass

2018-08-10 Thread Tom Rini
On Fri, Jul 27, 2018 at 04:37:07PM +0200, Patrick Delaunay wrote: > This patch save common LED property "default-state" value > in post bind of LED uclass. > The configuration for this default state is only performed when > led_default_state() is called; > It can be called in your board_init() > o

Re: [U-Boot] [U-Boot,1/1] drivers: serial: document on_baudrate()

2018-08-10 Thread Tom Rini
On Sun, Jul 29, 2018 at 10:41:02AM +0200, Heinrich Schuchardt wrote: > Add parameter description. > > Signed-off-by: Heinrich Schuchardt Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Bo

Re: [U-Boot] travis: give every job a name

2018-08-10 Thread Tom Rini
On Mon, Jul 30, 2018 at 10:19:43AM -0600, Stephen Warren wrote: > From: Stephen Warren > > Travis CI now supports giving jobs an explicit name. Do this for all jobs. > This allows more direct control over jobs names than the previous > automatic or implicit naming based on the environment variab

Re: [U-Boot] [U-Boot, v3, 2/2] disk: part: Don't show redundant error message

2018-08-10 Thread Tom Rini
On Mon, Jul 30, 2018 at 07:19:27PM +0300, Sam Protsenko wrote: > Underlying API should already print some meaningful error message, so > this one is just brings more noise. E.g. we can see log like this: > > MMC: no card present > ** Bad device mmc 0 ** > > Obviously, second error messag

Re: [U-Boot] [U-Boot, v4, 5/5] sandbox: led: use new function to configure default state

2018-08-10 Thread Tom Rini
On Fri, Jul 27, 2018 at 04:37:09PM +0200, Patrick Delaunay wrote: > Initialize the led with the default state defined in device tree > in board_init and solve issue with test for led default state. > > Reviewed-by: Simon Glass > > > Signed-off-by: Patrick Delaunay Applied to u-boot/master, t

Re: [U-Boot] [U-Boot, v3, 1/2] env: Don't show "Failed" error message

2018-08-10 Thread Tom Rini
On Mon, Jul 30, 2018 at 07:19:26PM +0300, Sam Protsenko wrote: > "Failed" error message from env_load() only clutters the log with > unnecessary details, as we already have all needed warnings by that > time. Example: > > Loading Environment from FAT... MMC: no card present > ** Bad devic

Re: [U-Boot] sata: fix sata_Probe return value check

2018-08-10 Thread Tom Rini
On Fri, Jul 27, 2018 at 04:45:26PM -0700, Troy Kisky wrote: > sata_probe returns 1 for failure, so don't checkout for < 0 > > fixes: f19f1ecb6025 dm: sata: Support driver model with the 'sata' command > > Signed-off-by: Troy Kisky > Reviewed-by: Simon Glass > > diff --git a/cmd/sata.c b/cmd/s

Re: [U-Boot] [U-Boot, 1/1] doc: add structure to Sphinx generated docs

2018-08-10 Thread Tom Rini
On Sun, Jul 29, 2018 at 01:45:47PM +0200, Heinrich Schuchardt wrote: > Create separate html pages for linker lists, the serial subsystem, > and the EFI subsystem. > > Add a table of content. > > Signed-off-by: Heinrich Schuchardt Applied to u-boot/master, thanks! -- Tom signature.asc Descr

Re: [U-Boot] [U-Boot, v4, 4/5] stm32mp1: use new function led default state

2018-08-10 Thread Tom Rini
On Fri, Jul 27, 2018 at 04:37:08PM +0200, Patrick Delaunay wrote: > Initialize the led with the default state defined in device tree. > > Reviewed-by: Simon Glass > > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot, v4, 2/5] Revert "dm: led: auto probe() LEDs with "default-state""

2018-08-10 Thread Tom Rini
On Fri, Jul 27, 2018 at 04:37:06PM +0200, Patrick Delaunay wrote: > This reverts commit bc882f5d5c7b4d6ed5e927bf838863af43c786e7. > because this patch adds the probe of LED driver during the > binding phasis. It is not allowed in driver model because > the drivers (clock, pincontrol) needed by the

Re: [U-Boot] [U-Boot,v4,1/5] stm32mp1: add gpio led support

2018-08-10 Thread Tom Rini
On Fri, Jul 27, 2018 at 04:37:05PM +0200, Patrick Delaunay wrote: > This patch add the 4 LED available on the ED1 board and activated > gpio led driver. > > Reviewed-by: Simon Glass > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP si

Re: [U-Boot] [PULL] u-boot-usb/master

2018-08-10 Thread Tom Rini
On Thu, Aug 09, 2018 at 09:29:58AM +0200, Marek Vasut wrote: > The following changes since commit b1aad8dbe28415695b290726199681ced969c118: > > zynqmp: Add avnet_ultra96_rev1_defconfig to the lits of boards > (2018-08-07 11:36:39 -0400) > > are available in the Git repository at: > > git://

Re: [U-Boot] [PATCH 0/9] Support 4GB of memory on 32bit systems

2018-08-10 Thread Tom Rini
On Thu, Jul 26, 2018 at 03:59:42PM +0200, Philipp Tomsich wrote: > Even on 32bit systems a full 4GB of DRAM may be installed and reported > by the DRAM controller. Whether these 4GB are larger available > depends on the size/configuration of address decoding windows and > architectural features.

Re: [U-Boot] [PATCH v2 40/53] spi: Add Allwinner A31 SPI driver

2018-08-10 Thread Fahad Sadah
> Add Allwinner sun6i SPI driver for A31, H3/H5 an A64. > > Cc: Fahad Sadah > Signed-off-by: Jagan Teki > --- > drivers/spi/Kconfig | 6 + > drivers/spi/Makefile| 1 + > drivers/spi/sun6i_spi.c | 475 > 3 files changed, 482 insertions(+) > c

[U-Boot] [PATCH] ARM: da850evm: Enable SPL_SYS_MALLOC_SIMPLE

2018-08-10 Thread Adam Ford
The SPL space is limited. In order to try to enable DM in SPL, we need more space. When combined wtih TINY_PRINTF, this reduces the size of SPL by 6.5k Original: textdata bss dec hex filename 207601216 80 220565628 spl/u-boot-spl Tiny Printf textdata

[U-Boot] [PATCH] ARM: da850evm: Enable USE_TINY_PRINTF

2018-08-10 Thread Adam Ford
The SPL space is limited. In order to try to enable DM in SPL, we need more space. This reduces the size of SPL by ~2.7K before: textdata bss dec hex filename 207601216 80 220565628 spl/u-boot-spl after: textdata bss dec hex filename 17947

Re: [U-Boot] [PATCH] arm: socfpga: make socfpga_socrates_defconfig boot from QSPI

2018-08-10 Thread Marek Vasut
On 08/10/2018 10:11 PM, Simon Goldschmidt wrote: > On 10.08.2018 15:15, Marek Vasut wrote: >> On 08/10/2018 02:56 PM, Simon Goldschmidt wrote: >>> On 09.08.2018 23:57, Marek Vasut wrote: On 08/09/2018 09:17 PM, Simon Goldschmidt wrote: > [..] > BTW, the DIP switches even allow the SoCr

Re: [U-Boot] [PATCH] arm: socfpga: make socfpga_socrates_defconfig boot from QSPI

2018-08-10 Thread Simon Goldschmidt
On 10.08.2018 15:15, Marek Vasut wrote: On 08/10/2018 02:56 PM, Simon Goldschmidt wrote: On 09.08.2018 23:57, Marek Vasut wrote: On 08/09/2018 09:17 PM, Simon Goldschmidt wrote: [..] BTW, the DIP switches even allow the SoCrates to boot from fpga, which is what I'm currently working on. In thi

Re: [U-Boot] [PATCH] spi: davinci: Full dm conversion

2018-08-10 Thread Adam Ford
On Fri, Aug 10, 2018 at 7:42 AM Jagan Teki wrote: > > On Fri, Aug 10, 2018 at 3:50 PM, Adam Ford wrote: > > On Fri, Aug 10, 2018 at 12:14 AM Jagan Teki > > wrote: > >> > >> On Wed, Aug 8, 2018 at 6:47 PM, Adam Ford wrote: > >> > On Tue, Aug 7, 2018 at 1:29 AM Jagan Teki > >> > wrote: > >> >>

[U-Boot] [PATCH 1/3] pinctrl: bcm6838: add pinctrl support

2018-08-10 Thread Philippe Reynes
Add pinctrl support for broadcom bcm6838 SoC. Signed-off-by: Philippe Reynes --- .../pinctrl/bcm6838-pinctrl.txt| 35 + drivers/pinctrl/broadcom/Kconfig | 8 ++ drivers/pinctrl/broadcom/Makefile | 1 + drivers/pinctrl/broadcom/pinct

[U-Boot] [PATCH 3/3] bcm968380gerg: enable pinctrl

2018-08-10 Thread Philippe Reynes
Signed-off-by: Philippe Reynes --- configs/bcm968380gerg_ram_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/bcm968380gerg_ram_defconfig b/configs/bcm968380gerg_ram_defconfig index 3354a5e..7c83d43 100644 --- a/configs/bcm968380gerg_ram_defconfig +++ b/configs/bcm968380gerg

[U-Boot] [PATCH 2/3] dt: bcm6838: add pinctrl

2018-08-10 Thread Philippe Reynes
Add pinctrl node and related syscon node for broadcom bcm6838 SoC. Signed-off-by: Philippe Reynes --- arch/mips/dts/brcm,bcm6838.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/mips/dts/brcm,bcm6838.dtsi b/arch/mips/dts/brcm,bcm6838.dtsi index d365d0f..f276a6a 100644

Re: [U-Boot] [PATCH] spi: davinci: Full dm conversion

2018-08-10 Thread Jagan Teki
On Fri, Aug 10, 2018 at 7:11 PM, Adam Ford wrote: > On Fri, Aug 10, 2018 at 8:38 AM Jagan Teki wrote: >> >> On Wed, Aug 8, 2018 at 6:47 PM, Adam Ford wrote: >> > On Tue, Aug 7, 2018 at 1:29 AM Jagan Teki >> > wrote: >> >> >> >> davinci_spi now support dt along with platform data, >> >> respect

[U-Boot] [PATCH v1 1/4] ARM: dts: stm32mp1: Add usb gadget support for stm32mp157c-ev1 board

2018-08-10 Thread Patrice Chotard
Add DT nodes to enable DWC2 gadget support Signed-off-by: Patrice Chotard --- arch/arm/dts/stm32mp157-pinctrl.dtsi | 6 ++ arch/arm/dts/stm32mp157c-ev1-u-boot.dtsi | 5 + arch/arm/dts/stm32mp157c-ev1.dts | 8 +++ arch/arm/dts/stm32mp157c.dtsi| 36 +

[U-Boot] [PATCH v1 2/4] ARM: dts: stm32mp1: Add EHCI support for stm32mp157c-ev1 board

2018-08-10 Thread Patrice Chotard
Add DT nodes to enable EHCI support Signed-off-by: Patrice Chotard --- arch/arm/dts/stm32mp157c-ev1.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/dts/stm32mp157c-ev1.dts b/arch/arm/dts/stm32mp157c-ev1.dts index e2128af93fe5..902a42bee290 100644 --- a/arch/arm/dts/stm32

[U-Boot] [PATCH v1 4/4] board: st: stm32mp1: Add usb gadget support

2018-08-10 Thread Patrice Chotard
Enable USB gadget support using DWC2 driver Populate board_usb_init() to initialize clocks, phy, reset and data needed for DWC2 IP. Signed-off-by: Patrice Chotard --- board/st/stm32mp1/stm32mp1.c | 168 +++ 1 file changed, 168 insertions(+) diff --git a/

[U-Boot] [PATCH v1 0/4] Add USB EHCI and gadget support for STM32MP1

2018-08-10 Thread Patrice Chotard
This series : - Adds DT nodes to add usb gadget support for stm32mp157-ev1 board - Adds DT nodes to add EHCI support for stm32mp157-ev1 board - Enables all USB relative flags needed for USB EHCI, DWC2 gadget and mass storage support - Update stm32mp1 board by populating board_usb_init(

[U-Boot] [PATCH v1 3/4] configs: stm32mp15: Enable USB relative flags

2018-08-10 Thread Patrice Chotard
Enable config USB relative flags in order to enable USB EHCI, DWC2 gadget, download and mass_storage support. Signed-off-by: Patrice Chotard --- configs/stm32mp15_basic_defconfig | 16 1 file changed, 16 insertions(+) diff --git a/configs/stm32mp15_basic_defconfig b/configs/s

Re: [U-Boot] [PATCH v1] arm: at91: wdt: Convert watchdog driver to dm

2018-08-10 Thread Tom Rini
On Thu, Jul 26, 2018 at 02:56:27PM -0700, Prasanthi Chellakumar wrote: > Convert the Watchdog driver for AT91SAM9x processors to support > the driver model and device tree > > Signed-off-by: Prasanthi Chellakumar > --- > arch/arm/mach-at91/include/mach/at91_wdt.h | 12 +++- > drivers/watchdog/

Re: [U-Boot] [PATCH V3 08/32] misc: imx8: add scfw api impementation

2018-08-10 Thread Anatolij Gustschin
On Mon, 6 Aug 2018 10:50:23 +0800 Peng Fan peng@nxp.com wrote: > Add clk/misc/pad/pm/rm scfw api implementaion for different > drivers to invoke. The low level code is using misc_call > to invoke imx8_scu driver. > > Signed-off-by: Peng Fan > Cc: Stefano Babic > --- > arch/arm/include/asm

Re: [U-Boot] [PATCH] serial: omap: Introduce DM specific omap serial

2018-08-10 Thread Adam Ford
On Fri, Aug 10, 2018 at 8:07 AM Lokesh Vutla wrote: > > Add driver model support for OMAP_SERIAL while reusing > the functions in ns16550.c > > Signed-off-by: Lokesh Vutla > --- > > Based on the conclusion on the thread[1], added a separate driver for > omap uart. > > [1] https://patchwork.ozlabs

Re: [U-Boot] [PATCH V3 07/32] misc: add i.MX8 misc driver

2018-08-10 Thread Anatolij Gustschin
Hi Peng, On Fri, 10 Aug 2018 02:30:09 + Peng Fan peng@nxp.com wrote: ... > > Thanks for working on this! I think we should rename this driver to imx-mu > > and > > unify it, so that it can be used on i.MX7 and i.MX6SX, if needed. > > > Thanks for reviewing the patcset. Communicating w

Re: [U-Boot] [PATCH v3 1/1] avb2.0: add get_size_of_partition()

2018-08-10 Thread Igor Opaniuk
Sam, Could you please double-check this patch and confirm that your tag can be still applied? Thanks! On 10 August 2018 at 17:06, Andrew F. Davis wrote: > On 08/10/2018 08:59 AM, Igor Opaniuk wrote: >> Implement get_size_of_partition() operation, >> which is required by the latest upstream liba

Re: [U-Boot] [PATCH v3 1/1] avb2.0: add get_size_of_partition()

2018-08-10 Thread Andrew F. Davis
On 08/10/2018 08:59 AM, Igor Opaniuk wrote: > Implement get_size_of_partition() operation, > which is required by the latest upstream libavb [1]. > > [1] > https://android.googlesource.com/platform/external/avb/+/android-p-preview-5 > > Signed-off-by: Igor Opaniuk Sam reviewed v1, not sure en

[U-Boot] [PATCH v3 1/1] avb2.0: add get_size_of_partition()

2018-08-10 Thread Igor Opaniuk
Implement get_size_of_partition() operation, which is required by the latest upstream libavb [1]. [1] https://android.googlesource.com/platform/external/avb/+/android-p-preview-5 Signed-off-by: Igor Opaniuk --- Changes for v3: - reword commit message, added avblib repository link, that stick to

Re: [U-Boot] [PATCH] arm: socfpga: make socfpga_socrates_defconfig boot from QSPI

2018-08-10 Thread Marek Vasut
On 08/10/2018 02:56 PM, Simon Goldschmidt wrote: > On 09.08.2018 23:57, Marek Vasut wrote: >> On 08/09/2018 09:17 PM, Simon Goldschmidt wrote: >>> [..] >>> BTW, the DIP switches even allow the SoCrates to boot from fpga, which >>> is what I'm currently working on. In this case, it seems like we nee

Re: [U-Boot] [PATCH] common: fdt: set the value of MEMORY_BANKS_MAX to 8

2018-08-10 Thread Ramon Fried
On Fri, Aug 10, 2018 at 2:54 PM Anand Moon wrote: > set the value of MEMORY_BANKS_MAX to 8. > Odroid-XU4 fails to boot with following message > > fdt_fixup_memory_banks: num banks 8 exceeds hardcoded limit 4. > Recompile with higher MEMORY_BANKS_MAX? > ERROR: arch-specific fdt fixup failed > - m

Re: [U-Boot] [PATCH] spi: davinci: Full dm conversion

2018-08-10 Thread Adam Ford
On Fri, Aug 10, 2018 at 8:38 AM Jagan Teki wrote: > > On Wed, Aug 8, 2018 at 6:47 PM, Adam Ford wrote: > > On Tue, Aug 7, 2018 at 1:29 AM Jagan Teki > > wrote: > >> > >> davinci_spi now support dt along with platform data, > >> respective boards need to switch into dm for the same. > >> > >> Cc

Re: [U-Boot] [PATCH] spi: davinci: Full dm conversion

2018-08-10 Thread Jagan Teki
On Wed, Aug 8, 2018 at 6:47 PM, Adam Ford wrote: > On Tue, Aug 7, 2018 at 1:29 AM Jagan Teki wrote: >> >> davinci_spi now support dt along with platform data, >> respective boards need to switch into dm for the same. >> >> Cc: Adam Ford >> Cc: Vitaly Andrianov >> Cc: Stefano Babic >> Cc: Peter

Re: [U-Boot] [PATCH] serial: omap: Introduce DM specific omap serial

2018-08-10 Thread Tom Rini
On Fri, Aug 10, 2018 at 06:36:20PM +0530, Lokesh Vutla wrote: > Add driver model support for OMAP_SERIAL while reusing > the functions in ns16550.c > > Signed-off-by: Lokesh Vutla > --- > > Based on the conclusion on the thread[1], added a separate driver for > omap uart. > > [1] https://patch

Re: [U-Boot] [PATCH 1/6] arm: socfpga: fix SPL on gen5 after moving to DM serial

2018-08-10 Thread Marek Vasut
On 08/10/2018 02:55 PM, Simon Goldschmidt wrote: > On 10.08.2018 14:41, Marek Vasut wrote: >> On 08/10/2018 02:39 PM, Simon Goldschmidt wrote: >>> On 09.08.2018 23:42, Marek Vasut wrote: On 08/09/2018 09:04 PM, Simon Goldschmidt wrote: > There were NULL pointers dereferenced because DM was

[U-Boot] [PATCH] serial: omap: Introduce DM specific omap serial

2018-08-10 Thread Lokesh Vutla
Add driver model support for OMAP_SERIAL while reusing the functions in ns16550.c Signed-off-by: Lokesh Vutla --- Based on the conclusion on the thread[1], added a separate driver for omap uart. [1] https://patchwork.ozlabs.org/patch/944756/ drivers/serial/Kconfig | 9 +++ drivers/ser

Re: [U-Boot] [PATCH] arm: socfpga: make socfpga_socrates_defconfig boot from QSPI

2018-08-10 Thread Simon Goldschmidt
On 09.08.2018 23:57, Marek Vasut wrote: On 08/09/2018 09:17 PM, Simon Goldschmidt wrote: [..] BTW, the DIP switches even allow the SoCrates to boot from fpga, which is what I'm currently working on. In this case, it seems like we need a separate config at least, but the dts can still be the same

Re: [U-Boot] [PATCH 1/6] arm: socfpga: fix SPL on gen5 after moving to DM serial

2018-08-10 Thread Simon Goldschmidt
On 10.08.2018 14:41, Marek Vasut wrote: On 08/10/2018 02:39 PM, Simon Goldschmidt wrote: On 09.08.2018 23:42, Marek Vasut wrote: On 08/09/2018 09:04 PM, Simon Goldschmidt wrote: There were NULL pointers dereferenced because DM was used too early without correct initialization: - malloc_simple

[U-Boot] [PATCH 2/2] fdt: fdtdec_setup_memory_banksize() use livetree

2018-08-10 Thread Jens Wiklander
Converts fdtdec_setup_memory_banksize() to use ofnode functions instead. Signed-off-by: Jens Wiklander --- lib/fdtdec.c | 46 +- 1 file changed, 21 insertions(+), 25 deletions(-) diff --git a/lib/fdtdec.c b/lib/fdtdec.c index a208589c48ae..fef2f88f9d1

[U-Boot] [PATCH 1/2] ofnode: add ofnode_by_prop_value()

2018-08-10 Thread Jens Wiklander
Adds ofnode_by_prop_value() to search for nodes with a given property and value, an ofnode version of fdt_node_offset_by_prop_value(). Signed-off-by: Jens Wiklander --- drivers/core/of_access.c | 27 +++ drivers/core/ofnode.c| 14 ++ include/dm/of_access.h

[U-Boot] [PATCH 0/2] Convert fdtdec_setup_memory_banksize() to use livetree

2018-08-10 Thread Jens Wiklander
Hi, As requested while reviewing 452bc121027d ("fdt: fix fdtdec_setup_memory_banksize()") heres a patch set converting fdtdec_setup_memory_banksize() to use livetree. Thanks, Jens Jens Wiklander (2): ofnode: add ofnode_by_prop_value() fdt: fdtdec_setup_memory_banksize() use livetree driver

Re: [U-Boot] [PATCH 2/6] x86: Remove support for Advantech SOM-6896

2018-08-10 Thread George McCollister
I don't have time to test the generic coreboot support on this board right now but sounds fine to me. Thanks, George McCollister On Fri, Aug 10, 2018 at 4:39 AM, Bin Meng wrote: > Now that we have generic coreboot payload support, remove the > dedicated support for Advantech SOM-6896. > > Signed

Re: [U-Boot] [PATCH] spi: davinci: Full dm conversion

2018-08-10 Thread Jagan Teki
On Fri, Aug 10, 2018 at 3:50 PM, Adam Ford wrote: > On Fri, Aug 10, 2018 at 12:14 AM Jagan Teki > wrote: >> >> On Wed, Aug 8, 2018 at 6:47 PM, Adam Ford wrote: >> > On Tue, Aug 7, 2018 at 1:29 AM Jagan Teki >> > wrote: >> >> >> >> davinci_spi now support dt along with platform data, >> >> res

Re: [U-Boot] [PATCH 1/6] arm: socfpga: fix SPL on gen5 after moving to DM serial

2018-08-10 Thread Marek Vasut
On 08/10/2018 02:39 PM, Simon Goldschmidt wrote: > On 09.08.2018 23:42, Marek Vasut wrote: >> On 08/09/2018 09:04 PM, Simon Goldschmidt wrote: >>> There were NULL pointers dereferenced because DM was used >>> too early without correct initialization: >>> - malloc_simple returned NULL when called fr

Re: [U-Boot] [PATCH 1/6] arm: socfpga: fix SPL on gen5 after moving to DM serial

2018-08-10 Thread Simon Goldschmidt
On 09.08.2018 23:42, Marek Vasut wrote: On 08/09/2018 09:04 PM, Simon Goldschmidt wrote: There were NULL pointers dereferenced because DM was used too early without correct initialization: - malloc_simple returned NULL when called from preloader_console_init() because gd->malloc_limit was 0 -

Re: [U-Boot] [PATCH] pci: Support parsing PCI controller DT subnodes

2018-08-10 Thread Marek Vasut
On 08/10/2018 02:01 PM, Tom Rini wrote: > On Wed, Aug 08, 2018 at 09:37:25PM +0200, Marek Vasut wrote: >> On 08/08/2018 05:32 PM, Bin Meng wrote: >>> Hi Marek, >>> >>> On Wed, Aug 8, 2018 at 10:33 PM, Marek Vasut wrote: On 08/08/2018 03:39 PM, Bin Meng wrote: > Hi Marek, > > On We

Re: [U-Boot] [PATCH] pci: Support parsing PCI controller DT subnodes

2018-08-10 Thread Tom Rini
On Wed, Aug 08, 2018 at 09:37:25PM +0200, Marek Vasut wrote: > On 08/08/2018 05:32 PM, Bin Meng wrote: > > Hi Marek, > > > > On Wed, Aug 8, 2018 at 10:33 PM, Marek Vasut wrote: > >> On 08/08/2018 03:39 PM, Bin Meng wrote: > >>> Hi Marek, > >>> > >>> On Wed, Aug 8, 2018 at 9:24 PM, Marek Vasut wr

Re: [U-Boot] [PATCH 5/6] serial: ns16550: fix debug uart putc called before init

2018-08-10 Thread Marek Vasut
On 08/10/2018 01:37 PM, Simon Goldschmidt wrote: > On 10.08.2018 11:51, Marek Vasut wrote: >> On 08/10/2018 07:22 AM, Simon Goldschmidt wrote: >>> On 10.08.2018 00:41, Marek Vasut wrote: On 08/10/2018 12:35 AM, Andy Shevchenko wrote: > On Fri, Aug 10, 2018 at 12:45 AM, Marek Vasut wrote:

[U-Boot] [PATCH] common: fdt: set the value of MEMORY_BANKS_MAX to 8

2018-08-10 Thread Anand Moon
set the value of MEMORY_BANKS_MAX to 8. Odroid-XU4 fails to boot with following message fdt_fixup_memory_banks: num banks 8 exceeds hardcoded limit 4. Recompile with higher MEMORY_BANKS_MAX? ERROR: arch-specific fdt fixup failed - must RESET the board to recover. Fixes: commit 2a1f4f1758b5 (Reve

Re: [U-Boot] [PATCH 5/6] serial: ns16550: fix debug uart putc called before init

2018-08-10 Thread Simon Goldschmidt
On 10.08.2018 11:51, Marek Vasut wrote: On 08/10/2018 07:22 AM, Simon Goldschmidt wrote: On 10.08.2018 00:41, Marek Vasut wrote: On 08/10/2018 12:35 AM, Andy Shevchenko wrote: On Fri, Aug 10, 2018 at 12:45 AM, Marek Vasut wrote: On 08/09/2018 11:13 PM, Adam Ford wrote: On Thu, Aug 9, 2018 a

Re: [U-Boot] [PATCH v5 3/8] Enable CONFIG_BLK and CONFIG_DM_MMC to Kconfig

2018-08-10 Thread Y.b. Lu
Hi Yinbo, Better to apply this patch as the final one of this patch-set, after these dts node patches. Otherwise, mmc couldn't work at this commit on all boards. Best regards, Yangbo Lu > -Original Message- > From: Yinbo Zhu [mailto:yinbo@nxp.com] > Sent: Friday, August 10, 2018 3:5

Re: [U-Boot] [PATCH v5 1/8] dm: mmc: use block layer in mmc driver

2018-08-10 Thread Y.b. Lu
Hi Yinbo, > -Original Message- > From: Yinbo Zhu [mailto:yinbo@nxp.com] > Sent: Friday, August 10, 2018 3:52 PM > To: Yinbo Zhu ; york...@freescale.com; > u-boot@lists.denx.de > Cc: Y.b. Lu ; Xiaobo Xie ; Andy > Tang ; Peng Ma > Subject: [PATCH v5 1/8] dm: mmc: use block layer in mmc

Re: [U-Boot] [PATCH] pci: Support parsing PCI controller DT subnodes

2018-08-10 Thread Marek Vasut
On 08/10/2018 05:42 AM, Bin Meng wrote: > Hi Marek, > > On Thu, Aug 9, 2018 at 6:25 PM, Marek Vasut wrote: >> On 08/09/2018 11:41 AM, Bin Meng wrote: >> >> [...] >> >>> Sorry this is a hack to current U-Boot implementation, not fix. >> >> I am waiting for a better solution or suggesti

Re: [U-Boot] [PATCH 5/6] serial: ns16550: fix debug uart putc called before init

2018-08-10 Thread Marek Vasut
On 08/10/2018 07:22 AM, Simon Goldschmidt wrote: > On 10.08.2018 00:41, Marek Vasut wrote: >> On 08/10/2018 12:35 AM, Andy Shevchenko wrote: >>> On Fri, Aug 10, 2018 at 12:45 AM, Marek Vasut wrote: On 08/09/2018 11:13 PM, Adam Ford wrote: > On Thu, Aug 9, 2018 at 2:08 PM Simon Goldschmidt

[U-Boot] [PATCH] configs: da850evm: Remove DM_I2C_COMPAT

2018-08-10 Thread Adam Ford
Since using DM_I2C_COMPAT throws a warning during compilation, and it isn't really needed any longer, so this patch removes this feature and shrinks the code a bit. from: textdata bss dec hex filename 343326 13388 123448 480162 753a2 u-boot to: textdata bss

Re: [U-Boot] [PATCH] spi: davinci: Full dm conversion

2018-08-10 Thread Adam Ford
On Fri, Aug 10, 2018 at 12:14 AM Jagan Teki wrote: > > On Wed, Aug 8, 2018 at 6:47 PM, Adam Ford wrote: > > On Tue, Aug 7, 2018 at 1:29 AM Jagan Teki > > wrote: > >> > >> davinci_spi now support dt along with platform data, > >> respective boards need to switch into dm for the same. > >> > >> C

Re: [U-Boot] [PATCH] efi_loader: fix a parameter check at CreateEvent()

2018-08-10 Thread Heinrich Schuchardt
On 08/10/2018 08:36 AM, AKASHI Takahiro wrote: > The commit 21b3edfc9644 ("efi_loader: check parameters of CreateEvent") > enforces a strict parameter check at CreateEvent(). On the other hand, > UEFI specification version 2.7, section 7.1, says: > > The EVT_NOTIFY_WAIT and EVT_NOTIFY_SIGNAL f

[U-Boot] [PATCH] Convert CONFIG_SYS_I2C_DAVINCI to Kconfig

2018-08-10 Thread Adam Ford
This converts the following to Kconfig: CONFIG_SYS_I2C_DAVINCI Signed-off-by: Adam Ford diff --git a/configs/da850_am18xxevm_defconfig b/configs/da850_am18xxevm_defconfig index abb2295951..31e0529e40 100644 --- a/configs/da850_am18xxevm_defconfig +++ b/configs/da850_am18xxevm_defconfig @@ -3

[U-Boot] [PATCH 5/6] x86: coreboot: Add default TSC frequency in the device tree

2018-08-10 Thread Bin Meng
It was observed sometimes U-Boot as the coreboot payload fails to boot on QEMU. This is because TSC calibration fails with no valid frequency. This adds default TSC frequency in the device tree. Signed-off-by: Bin Meng --- arch/x86/dts/coreboot.dts | 4 1 file changed, 4 insertions(+) dif

[U-Boot] [PATCH 6/6] x86: efi: payload: Add default TSC frequency in the device tree

2018-08-10 Thread Bin Meng
It was observed sometimes U-Boot as the EFI payload fails to boot on QEMU. This is because TSC calibration fails with no valid frequency. This adds default TSC frequency in the device tree. Signed-off-by: Bin Meng --- arch/x86/dts/efi-x86_payload.dts | 4 1 file changed, 4 insertions(+) d

[U-Boot] [PATCH 4/6] x86: tsc: Try hardware calibration first

2018-08-10 Thread Bin Meng
At present if TSC frequency is provided in the device tree, it takes precedence over hardware calibration result. This swaps the order to try hardware calibration first and uses device tree as last resort. This can be helpful when a generic dts (eg: coreboot/efi payload) is supposed to work on as

[U-Boot] [PATCH 3/6] x86: dts: Remove coreboot_fb.dtsi

2018-08-10 Thread Bin Meng
There is no need to keep a separate coreboot_fb.dtsi since now we have a generic coreboot payload dts. While we are here, this also remove the out-of-date description in the documentation regarding to coreboot framebuffer driver with U-Boot loaded as a payload from coreboot. As the testing result

[U-Boot] [PATCH 2/6] x86: Remove support for Advantech SOM-6896

2018-08-10 Thread Bin Meng
Now that we have generic coreboot payload support, remove the dedicated support for Advantech SOM-6896. Signed-off-by: Bin Meng --- arch/x86/dts/Makefile | 1 - arch/x86/dts/broadwell_som-6896.dts | 52 - include/configs/som-6896.h | 2

[U-Boot] [PATCH 1/6] x86: coreboot: Add generic coreboot payload support

2018-08-10 Thread Bin Meng
Currently building U-Boot as the coreboot payload requires user to change the build configuration for a specific board during menuconfig process. This uses the board's native device tree to configure the hardware. For example, the device tree provides PCI address range for the PCI host controller a

Re: [U-Boot] [UBOOT PATCH 0/2] dm: core: Scan "/firmware" node by default

2018-08-10 Thread Michal Simek
Hi Simon, On 10.8.2018 10:45, Rajan Vaja wrote: > All Linux firmware drivers are put under "/firmware" node > and it has support to populate "/firmware" node by default. > > u-boot and Linux can share same DTB. In this case, driver > probe for devices under "/firmware" will not be invoked > as "/

Re: [U-Boot] [PATCH v2 00/18] spi: mpc8xxx: DM conversion

2018-08-10 Thread Jagan Teki
On Fri, Aug 10, 2018 at 1:27 PM, Mario Six wrote: > Hi Christophe, > > On Fri, Aug 10, 2018 at 9:35 AM Christophe LEROY > wrote: >> >> Hello Mario, >> >> Le 26/04/2018 à 10:36, Mario Six a écrit : >> > Hi Joakim, >> > >> > On Thu, Apr 26, 2018 at 10:23 AM, Joakim Tjernlund >> > wrote: >> >> On T

[U-Boot] [PATCH v5 8/8] armv7: ls1021a: enable esdhc

2018-08-10 Thread Yinbo Zhu
This patch is to enable eSDHC for ls1021a. Signed-off-by: Yinbo Zhu --- arch/arm/dts/ls1021a.dtsi |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/arch/arm/dts/ls1021a.dtsi b/arch/arm/dts/ls1021a.dtsi index 5b3fc6a..59c97d5 100644 --- a/arch/arm/dts/ls1021a.dtsi +++ b/arc

Re: [U-Boot] [PATCH v2 00/18] spi: mpc8xxx: DM conversion

2018-08-10 Thread Mario Six
Hi Christophe, On Fri, Aug 10, 2018 at 9:35 AM Christophe LEROY wrote: > > Hello Mario, > > Le 26/04/2018 à 10:36, Mario Six a écrit : > > Hi Joakim, > > > > On Thu, Apr 26, 2018 at 10:23 AM, Joakim Tjernlund > > wrote: > >> On Thu, 2018-04-26 at 11:35 +0530, Jagan Teki wrote: > >>> CAUTION: Thi

[U-Boot] [PATCH v5 4/8] armv8: ls2088a: add eSDHC node

2018-08-10 Thread Yinbo Zhu
This patch is to add eSDHC node for ls2088a. Signed-off-by: Yinbo Zhu --- arch/arm/dts/fsl-ls2080a.dtsi |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/fsl-ls2080a.dtsi b/arch/arm/dts/fsl-ls2080a.dtsi index b0f8517..2d537ae 100644 --- a/arch/arm/dts/f

[U-Boot] [PATCH v5 5/8] armv8: ls1088a: add eSDHC node

2018-08-10 Thread Yinbo Zhu
This patch is to add eSDHC node for ls1088a. Signed-off-by: Yinbo Zhu --- arch/arm/dts/fsl-ls1088a.dtsi |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/fsl-ls1088a.dtsi b/arch/arm/dts/fsl-ls1088a.dtsi index 077caf3..72d755a 100644 --- a/arch/arm/dts/

[U-Boot] [PATCH v5 6/8] armv8: ls1043a: add eSDHC node

2018-08-10 Thread Yinbo Zhu
This patch is to add eSDHC node for ls1043a. Signed-off-by: Yinbo Zhu --- arch/arm/dts/fsl-ls1043a.dtsi |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/fsl-ls1043a.dtsi b/arch/arm/dts/fsl-ls1043a.dtsi index ff40122..a804f51 100644 --- a/arch/arm/dts/f

[U-Boot] [PATCH v5 7/8] armv8: ls1046a: add eSDHC node

2018-08-10 Thread Yinbo Zhu
This patch is to add eSDHC node for ls1046a. Signed-off-by: Yinbo Zhu --- arch/arm/dts/fsl-ls1046a.dtsi |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/fsl-ls1046a.dtsi b/arch/arm/dts/fsl-ls1046a.dtsi index 4acbaf7..7687d12 100644 --- a/arch/arm/dts/f

[U-Boot] [PATCH v5 3/8] Enable CONFIG_BLK and CONFIG_DM_MMC to Kconfig

2018-08-10 Thread Yinbo Zhu
This enables the folowing to Kconfig: CONFIG_BLK CONFIG_DM_MMC Signed-off-by: Yinbo Zhu --- configs/ls1021atwr_nor_SECURE_BOOT_defconfig |2 ++ configs/ls1021atwr_nor_defconfig |2 ++ configs/ls1021atwr_nor_lpuart_defconfig|2 ++ co

[U-Boot] [PATCH v5 2/8] armv8/ls1088a/ls2088a: esdhc: Add esdhc clock support

2018-08-10 Thread Yinbo Zhu
This patch adds esdhc clock support for ls1088a and ls2088a. Signed-off-by: Yinbo Zhu --- .../arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c b/arch/arm/cpu/

[U-Boot] [PATCH v5 1/8] dm: mmc: use block layer in mmc driver

2018-08-10 Thread Yinbo Zhu
At present the MMC subsystem maintains its own list of MMC devices. This cannot work with driver model when CONFIG_BLK is enabled, use blk_dread to replace previous mmc read interface, use mmc_get_blk_desc to get the mmc device property Signed-off-by: Yinbo Zhu --- Change in v5: u

[U-Boot] [PATCH 4/5 v2] mips: Add Gardena Smart-Gateway board support

2018-08-10 Thread Stefan Roese
The Gardena Smart-Gateway boards have a MT7688 SoC with 128 MiB of RAM and 8 MiB of flash (SPI NOR) and additional 128MiB SPI NAND storage. This patch also includes 2 targets. One is the target that can be programmed into the SPI NOR flash and a 2nd target "xxx-ram" is added to support loading and

[U-Boot] [PATCH 1/5 v2] mips: Add basic MediaTek MT7620/88 support

2018-08-10 Thread Stefan Roese
This patch adds basic support for the MediaTek MT7620/88 SoCs. Parts of the code is copied from the MediaTek GitHub repository: https://github.com/MediaTek-Labs/linkit-smart-uboot.git Support for the LinkIt Smart 7688 module and the Gardena Smart Gateway both based on the MT7688 will be added in

[U-Boot] [PATCH 3/5 v2] mips: Add LinkIt Smart 7688 support

2018-08-10 Thread Stefan Roese
The LinkIt Smart 7688 modules have a MT7688 SoC with 128 MiB of RAM and 32 MiB of flash (SPI NOR). The mt7628a.dtsi file is imported from Linux v4.17. This patch also includes 2 targets. One is the target that can be programmed into the SPI NOR flash and a 2nd target "xxx-ram" is added to support

[U-Boot] [PATCH 5/5 v2] mips: mt76xx: Add sysreset support

2018-08-10 Thread Stefan Roese
This patch adds the necessary sysreset DT node and enables the required drivers via Kconfig. Signed-off-by: Stefan Roese Cc: Daniel Schwierzeck --- v2: - New patch arch/mips/Kconfig | 1 + arch/mips/dts/mt7628a.dtsi | 7 +++ 2 files changed, 8 insertions(+) diff --git a/arch/mips

[U-Boot] [PATCH 2/5 v2] mips: Add arch/mips/include/asm/atomic.h

2018-08-10 Thread Stefan Roese
This is needed for the UBIFS support. The file is a copy of arch/xtensa/include/asm/atomic.h Signed-off-by: Stefan Roese Cc: Daniel Schwierzeck --- v2: - No change arch/mips/include/asm/atomic.h | 54 ++ 1 file changed, 54 insertions(+) create mode 100644 arch/

Re: [U-Boot] [PATCH v2 00/18] spi: mpc8xxx: DM conversion

2018-08-10 Thread Christophe LEROY
Hello Mario, Le 26/04/2018 à 10:36, Mario Six a écrit : Hi Joakim, On Thu, Apr 26, 2018 at 10:23 AM, Joakim Tjernlund wrote: On Thu, 2018-04-26 at 11:35 +0530, Jagan Teki wrote: CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless yo

Re: [U-Boot] [PATCH v2] spi: Add SPI driver for MT76xx SoCs

2018-08-10 Thread Jagan Teki
On Fri, Aug 10, 2018 at 12:26 PM, Stefan Roese wrote: > This patch adds the SPI driver for the MediaTek MT7688 SoC (and > derivates). Its been tested on the LinkIt Smart 7688 and the Gardena > Smart Gateway with and SPI NOR on CS0 and on the Gardena Smart > Gateway additionally with an SPI NAND on

[U-Boot] [PATCH v4 2/2] armv8: layerscape: Enable EHCI access for LS1012A

2018-08-10 Thread Ran Wang
Program Central Security Unit (CSU) to grant access permission for USB 2.0 controller, otherwiase EHCI funciton will down. Signed-off-by: Ran Wang --- Change in v4: - None Change in v3: - None Change in v2: - Add EL checking code to make sure related programming only happen

  1   2   >