Re: [U-Boot] [PATCH v2 2/2] rockchip: fix incorrect detection of ram size

2018-11-15 Thread Philipp Tomsich
Marty, > On 13.09.2018, at 23:55, Marty E. Plummer wrote: > > Taken from coreboot's src/soc/rockchip/rk3288/sdram.c > > Without this change, my u-boot build for the asus c201 chromebook (4GiB) > is incorrectly detected as 0 Bytes of ram. > > Signed-off-by: Marty E. Plummer Please revise.

Re: [U-Boot] [PATCH v1 1/2] WIP: serial: Introduce ->getinfo() callback

2018-11-15 Thread Andy Shevchenko
On Tue, Sep 25, 2018 at 10:24:42AM +0800, Bin Meng wrote: > On Sat, Sep 22, 2018 at 9:05 PM Andy Shevchenko > wrote: I found a bit of time to look at this again. > > +static int ns16550_serial_getinfo(struct udevice *dev, struct > > serial_device_info *info) > > +{ > > + struct NS16550

Re: [U-Boot] [PATCH] usb: Introduce CONFIG_SPL_DM_USB

2018-11-15 Thread Marek Vasut
On 11/15/2018 04:09 PM, Sven Schwermer wrote: >> Sweet! Is this s/CONFIG_DM_USB/CONFIG_IS_ENABLED(DM_USB)/ or is there >> some other stuff in the patch too ? > > There is also a bunch of CONFIG_BLK replacements. > >> If the later is the case, it'd be >> nice to do the

Re: [U-Boot] mtd partitions go away

2018-11-15 Thread Boris Brezillon
On Thu, 15 Nov 2018 16:15:51 +0100 Boris Brezillon wrote: > Hi Heiko, > > On Thu, 15 Nov 2018 15:21:31 +0100 > Boris Brezillon wrote: > > > > > Looks like spi_flash_mtd_register() is doing something really bad here > > [1]: memsetting the global sf_mtd_info object without testing if > >

Re: [U-Boot] mtd partitions go away

2018-11-15 Thread Boris Brezillon
On Thu, 15 Nov 2018 14:48:49 +0100 Marek Vasut wrote: > On 11/15/2018 11:14 AM, Heiko Schocher wrote: > > Hello all, > > > > just see with current HEAD of u-boot on an imx6ull based board with SPI NOR > > and NAND following behaviour: > > +CC Boris, since he was recently looking into this

Re: [U-Boot] confusion about CONFIG_SYS_TEXT_BASE and gd->relocaddr

2018-11-15 Thread Marek Vasut
On 11/15/2018 10:33 AM, tamzi...@sina.com wrote: > Hi Marek, Hi, CC the list next time. >     I am Kin, nice to meet you, I know you because I saw your u-boot > video on Youtube. >     I am a learner of u-boot, and I have a big confusion on it, so I > would like to find answer from you. >     

[U-Boot] Getting rid of board_mtdparts_default()

2018-11-15 Thread Boris Brezillon
Hello Enric, Miquel and I recently reworked drivers/mtd/mtdpart.c to get MTD partitions exposed as MTD devices (as is done in Linux) instead of having yet another abstraction to handle them (see what's currently done in cmd/{mtdparts,nand,sf,...}.c). This lead us to duplicate the mtdparts/mtdids

Re: [U-Boot] [PATCH v1 2/2] WIP: x86: acpi: Generate SPCR table

2018-11-15 Thread Andy Shevchenko
On Tue, Sep 25, 2018 at 10:27:33AM +0800, Bin Meng wrote: > On Sat, Sep 22, 2018 at 9:05 PM Andy Shevchenko > wrote: > > +/* SPCR (Serial Port Console Redirection table) */ > > +struct __packed acpi_spcr { > > + struct acpi_table_header header;/* Common ACPI table header > > */ >

Re: [U-Boot] [PATCH] usb: Introduce CONFIG_SPL_DM_USB

2018-11-15 Thread Marek Vasut
On 11/15/2018 09:20 AM, Sven Schwermer wrote: > This allows building the SPL without driver model for USB. So far, > support has only been added to the iMX6/7 host driver. Other boards will > keep their existing behaviour. > > Signed-off-by: Sven Schwermer > --- Sweet! Is this

Re: [U-Boot] mtd partitions go away

2018-11-15 Thread Boris Brezillon
Hi Heiko, On Thu, 15 Nov 2018 15:21:31 +0100 Boris Brezillon wrote: > > Looks like spi_flash_mtd_register() is doing something really bad here > [1]: memsetting the global sf_mtd_info object without testing if > this object has already been registered, and then registering it again > to the

[U-Boot] [PATCH] travis: Ensure we use pytest 2.8.7

2018-11-15 Thread Tom Rini
The latest version of pytest (4.0.0) makes some of the code we have in test/py/conftest.py a fatal error that needs to be migrated. Unfortunately this in turn requires changes that don't exist in older versions of pytest such as 2.8.7 that ships with Ubuntu 16.04. Force travis to use this older

Re: [U-Boot] [PATCH v2 3/4] arm: socfpga: stratix10: Add Stratix10 FPGA into FPGA device table

2018-11-15 Thread Marek Vasut
On 11/15/2018 08:13 AM, Ang, Chee Hong wrote: > On Wed, 2018-11-14 at 12:52 +0100, Marek Vasut wrote: >> On 11/14/2018 08:09 AM, Ang, Chee Hong wrote: >>> >>> On Thu, 2018-10-11 at 10:03 +, Marek Vasut wrote: On 10/11/2018 08:21 AM, Ang, Chee Hong wrote: > > > On Wed,

Re: [U-Boot] [PATCH v3] sun8i: h3: Add support for the Beelink-x2 STB

2018-11-15 Thread Maxime Ripard
On Thu, Nov 15, 2018 at 11:39:03AM +0100, codekip...@gmail.com wrote: > From: Marcus Cooper > > The Beelink X2 is an STB based on the Allwinner H3 SoC with a uSD slot, > 2 USB ports( 1 * USB-2 Host, 1 USB OTG), a 10/100M ethernet port using the > SoC's integrated PHY, Wifi via an sdio wifi chip,

Re: [U-Boot] [PATCH u-boot v3 0/3] Add Amlogic Meson SPI Flash Controller driver

2018-11-15 Thread Jerome Brunet
On Wed, 2018-11-14 at 11:25 +0100, Neil Armstrong wrote: > The Amlogic Meson SoCs embeds a Flash oriented SPI Controller name SPIFC. > > This patchset add the driver ported from linux, but also import the regmap > regmap_read_poll_timeout() to implify the register polling in the driver. > > Neil

Re: [U-Boot] [PATCH] usb: Introduce CONFIG_SPL_DM_USB

2018-11-15 Thread Sven Schwermer
> Sweet! Is this s/CONFIG_DM_USB/CONFIG_IS_ENABLED(DM_USB)/ or is there > some other stuff in the patch too ? There is also a bunch of CONFIG_BLK replacements. > If the later is the case, it'd be > nice to do the s/CONFIG_DM_USB/CONFIG_IS_ENABLED(DM_USB)/ in a separate > patch, to make the later

[U-Boot] Fw: [question] need help with mmc-env-addr

2018-11-15 Thread Frank Wunderlich
can anybody help me here: tried implementation here https://github.com/frank-w/u-boot/blob/7a31819225b51d41cd6f1202250c2316e274aacf/board/mediatek/mt7623/mt7623_rfb.c#L55 but i'm unsure it's right, so currently it is disabled and mmc_get_env_dev always return CONFIG_SYS_MMC_ENV_DEV=0=emmc

[U-Boot] Please pull u-boot-dm

2018-11-15 Thread Simon Glass
Hi Tom, The following changes since commit 208ecbad2ea8e8f3c9933213867addf16f4a: Merge branch 'next' (2018-11-14 11:30:07 -0500) are available in the Git repository at: git://git.denx.de/u-boot-dm.git tags/pull-14nov18 for you to fetch changes up to

Re: [U-Boot] mtd partitions go away

2018-11-15 Thread Marek Vasut
On 11/15/2018 11:14 AM, Heiko Schocher wrote: > Hello all, > > just see with current HEAD of u-boot on an imx6ull based board with SPI NOR > and NAND following behaviour: +CC Boris, since he was recently looking into this stuff. > => mtdparts > > device nand0 , # parts = 1 >  #: name   

[U-Boot] [PATCH v2 0/5] ACPI: Generate SPCR table

2018-11-15 Thread Andy Shevchenko
This is a series to enable SPCR table generation in U-Boot. This table is useful to get early console in Linux for debugging purposes. The benefit of using it is not only for x86, but also for arm64 community (actually they introduced support in Linux kernel). This implementation has been tested

[U-Boot] [PATCH v2 1/5] serial: Introduce ->getinfo() callback

2018-11-15 Thread Andy Shevchenko
New callback will give a necessary information to fill up ACPI SPCR table, for example. Maybe used later for other purposes. Signed-off-by: Andy Shevchenko --- drivers/serial/serial-uclass.c | 21 + include/common.h | 3 +++ include/serial.h | 17

[U-Boot] [PATCH v2 5/5] x86: acpi: Generate SPCR table

2018-11-15 Thread Andy Shevchenko
Microsoft specifies a SPCR (Serial Port Console Redirection Table) [1]. Let's provide it in U-Boot. [1] https://msdn.microsoft.com/en-us/library/windows/hardware/dn639132(v=vs.85).aspx Signed-off-by: Andy Shevchenko --- arch/x86/include/asm/acpi_table.h | 2 + arch/x86/lib/acpi_table.c

Re: [U-Boot] [PATCH v2 0/3] sunxi-mmc: enable new clock mode on A64

2018-11-15 Thread Vasily Khoruzhick
On Fri, Nov 9, 2018 at 8:41 PM Vasily Khoruzhick wrote: > > A64 requires new clock mode on SD and eMMC controllers. Not using > new clock mode causes stability issues of the driver - SPL may > occasionally fail to load u-boot from SD for some particular SD card > on some particular devices. > >

Re: [U-Boot] [PATCH v2 1/5] serial: Introduce ->getinfo() callback

2018-11-15 Thread Simon Glass
Hi Andy, On 15 November 2018 at 11:51, Andy Shevchenko wrote: > On Thu, Nov 15, 2018 at 9:46 PM Simon Glass wrote: >> On 15 November 2018 at 09:58, Andy Shevchenko >> wrote: >> > >> > New callback will give a necessary information to fill up ACPI SPCR table, >> > for example. Maybe used later

[U-Boot] [PATCH] arm: ti: boot: Fix U-Boot environment partition address

2018-11-15 Thread Sam Protsenko
Recent removal of obsolete partition led to shifting of starting address of "reserved" partition (which reflects U-Boot environment). Fix its start address to keep it in sync with ENV_OFFSET and DFU environment. This patch also provides fixed start address for "reserved" partition, so that we can

Re: [U-Boot] Please pull u-boot-dm

2018-11-15 Thread Tom Rini
On Thu, Nov 15, 2018 at 12:21:15PM -0800, Simon Glass wrote: > Hi Tom, > > On 15 November 2018 at 08:32, Simon Glass wrote: > > Hi Tom, > > > > The following changes since commit 208ecbad2ea8e8f3c9933213867addf16f4a: > > > > Merge branch 'next' (2018-11-14 11:30:07 -0500) > > > > are

[U-Boot] [PATCH v2 2/5] serial: ns16550: Read reg-io-width from device tree

2018-11-15 Thread Andy Shevchenko
Cache the value of the reg-io-width property for the future use. Signed-off-by: Andy Shevchenko --- drivers/serial/ns16550.c | 1 + include/ns16550.h| 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c index

[U-Boot] [PATCH v2 3/5] serial: ns16550: Provide ->getinfo() implementation

2018-11-15 Thread Andy Shevchenko
New callback will supply necessary information, for example, to ACPI SPCR table. Signed-off-by: Andy Shevchenko --- drivers/serial/ns16550.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c index b51b56de9f..698acbfb51

Re: [U-Boot] [PATCH v2 5/5] x86: acpi: Generate SPCR table

2018-11-15 Thread Alexander Graf
On 15.11.18 18:58, Andy Shevchenko wrote: > Microsoft specifies a SPCR (Serial Port Console Redirection Table) [1]. > Let's provide it in U-Boot. > > [1] > https://msdn.microsoft.com/en-us/library/windows/hardware/dn639132(v=vs.85).aspx > > Signed-off-by: Andy Shevchenko > --- >

Re: [U-Boot] [PATCH v2 2/5] serial: ns16550: Read reg-io-width from device tree

2018-11-15 Thread Alexander Graf
On 15.11.18 18:58, Andy Shevchenko wrote: > Cache the value of the reg-io-width property for the future use. > > Signed-off-by: Andy Shevchenko > --- > drivers/serial/ns16550.c | 1 + > include/ns16550.h| 4 +++- > 2 files changed, 4 insertions(+), 1 deletion(-) > > diff --git

Re: [U-Boot] [PATCH v2 2/5] serial: ns16550: Read reg-io-width from device tree

2018-11-15 Thread Andy Shevchenko
On Thu, Nov 15, 2018 at 8:28 PM Alexander Graf wrote: > On 15.11.18 18:58, Andy Shevchenko wrote: > > Cache the value of the reg-io-width property for the future use. > > struct ns16550_platdata { > > unsigned long base; > > + int reg_width; > > int reg_shift; > > - int

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

2018-11-15 Thread Simon Glass
Hi Ryder, On 13 November 2018 at 17:32, Ryder Lee wrote: > On Tue, 2018-11-13 at 11:53 -0800, Simon Glass wrote: >> Hi Ryder, >> >> On 6 November 2018 at 01:47, Ryder Lee wrote: >> > This patch adds an extra operation in ns16550.c to suuport MediaTek >> > SoCs as we have a highspeed register

Re: [U-Boot] [PATCH v2 2/5] serial: ns16550: Read reg-io-width from device tree

2018-11-15 Thread Alexander Graf
On 15.11.18 20:33, Andy Shevchenko wrote: > On Thu, Nov 15, 2018 at 8:28 PM Alexander Graf wrote: >> On 15.11.18 18:58, Andy Shevchenko wrote: >>> Cache the value of the reg-io-width property for the future use. > >>> struct ns16550_platdata { >>> unsigned long base; >>> + int

Re: [U-Boot] Please pull u-boot-dm

2018-11-15 Thread Simon Glass
Hi Tom, On 15 November 2018 at 08:32, Simon Glass wrote: > Hi Tom, > > The following changes since commit 208ecbad2ea8e8f3c9933213867addf16f4a: > > Merge branch 'next' (2018-11-14 11:30:07 -0500) > > are available in the Git repository at: > > git://git.denx.de/u-boot-dm.git

Re: [U-Boot] [PATCH v2 1/5] serial: Introduce ->getinfo() callback

2018-11-15 Thread Alexander Graf
On 15.11.18 18:58, Andy Shevchenko wrote: > New callback will give a necessary information to fill up ACPI SPCR table, > for example. Maybe used later for other purposes. > > Signed-off-by: Andy Shevchenko > --- > drivers/serial/serial-uclass.c | 21 + > include/common.h

Re: [U-Boot] [PATCH v2 5/5] x86: acpi: Generate SPCR table

2018-11-15 Thread Alexander Graf
On 15.11.18 20:43, Andy Shevchenko wrote: > On Thu, Nov 15, 2018 at 8:27 PM Alexander Graf wrote: >> On 15.11.18 18:58, Andy Shevchenko wrote: >>> Microsoft specifies a SPCR (Serial Port Console Redirection Table) [1]. >>> Let's provide it in U-Boot. >>> >>> [1] >>>

[U-Boot] [PATCH v2 4/5] x86: acpi: Add SPCR table description

2018-11-15 Thread Andy Shevchenko
Add SPCR table description as it provided in Linux kernel. Port subtype for ACPI_DBG2_SERIAL_PORT is used as an interface type in SPCR. Thus, provide a set of definitions to be utilized later. Signed-off-by: Andy Shevchenko --- arch/x86/include/asm/acpi_table.h | 49

Re: [U-Boot] [PATCH v2 3/5] serial: ns16550: Provide ->getinfo() implementation

2018-11-15 Thread Alexander Graf
On 15.11.18 18:58, Andy Shevchenko wrote: > New callback will supply necessary information, for example, > to ACPI SPCR table. > > Signed-off-by: Andy Shevchenko > --- > drivers/serial/ns16550.c | 14 ++ > 1 file changed, 14 insertions(+) > > diff --git a/drivers/serial/ns16550.c

Re: [U-Boot] [PATCH v2 5/5] x86: acpi: Generate SPCR table

2018-11-15 Thread Andy Shevchenko
On Thu, Nov 15, 2018 at 8:27 PM Alexander Graf wrote: > On 15.11.18 18:58, Andy Shevchenko wrote: > > Microsoft specifies a SPCR (Serial Port Console Redirection Table) [1]. > > Let's provide it in U-Boot. > > > > [1] > >

Re: [U-Boot] [PATCH v2 1/5] serial: Introduce ->getinfo() callback

2018-11-15 Thread Andy Shevchenko
On Thu, Nov 15, 2018 at 9:46 PM Simon Glass wrote: > On 15 November 2018 at 09:58, Andy Shevchenko > wrote: > > > > New callback will give a necessary information to fill up ACPI SPCR table, > > for example. Maybe used later for other purposes. > Seems useful to me. Thanks. What do you think

Re: [U-Boot] [PATCH v12 1/6] sandbox: Put CPUs under a cpu-bus node

2018-11-15 Thread Alexander Graf
On 15.11.18 21:01, Simon Glass wrote: > Hi Alex, > > On 14 November 2018 at 00:34, Alexander Graf wrote: >> On 11/06/2018 11:57 PM, Simon Glass wrote: >>> >>> The CPU uclass expects that all CPUs have a parent device which is a >>> cpu-bus. Fix up the sandbox test DT to follow this convention.

[U-Boot] [PATCH] mmc: tmio: Reorder TMIO clock handling

2018-11-15 Thread Marek Vasut
Reorder the tmio_sd_set_clk_rate() function such that it handles all of the clock requiests correctly. Specifically, before this patch, clock request with (mmc->clock == 0 && mmc->clk_disable) could leave the clock enabled, as the function would exit on if (!mmc->clock) condition on top and will

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

2018-11-15 Thread Simon Glass
Hi, On 14 November 2018 at 18:07, Ryder Lee wrote: > 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:

Re: [U-Boot] [PATCH 02/19] dm: cpu: Add timebase frequency to the platdata

2018-11-15 Thread Simon Glass
Hi Bin, On 13 November 2018 at 17:14, Bin Meng wrote: > Hi Simon, > > On Wed, Nov 14, 2018 at 4:02 AM Simon Glass wrote: >> >> On 13 November 2018 at 00:21, Bin Meng wrote: >> > This adds a timebase_freq member to the 'struct cpu_platdata', to >> > hold the "timebase-frequency" value in the

Re: [U-Boot] [PATCH v5 14/18] serial: MediaTek: add high-speed uart driver for MediaTek SoCs

2018-11-15 Thread Simon Glass
On 14 November 2018 at 18:08, Ryder Lee wrote: > > Many SoCs from MediaTek have a high-speed uart. This UART is compatible > with the ns16550 in legacy mode. It has extra registers for high-speed > mode which can reach a maximum baudrate at 921600. > > However this UART will no longer be

Re: [U-Boot] efi disks in u-boot

2018-11-15 Thread Simon Glass
Hi Akashi-san, On 14 November 2018 at 22:57, AKASHI, Takahiro wrote: > Hi Simon, > > On Wed, 14 Nov 2018 at 03:52, Simon Glass wrote: >> >> Hi Akahsi, >> >> On 5 November 2018 at 20:15, AKASHI Takahiro >> wrote: >> > Hello Simon, >> > >> > You said, in efi/lib_loader/efi_disk.c, >> > >> >

[U-Boot] environment reliability after "env default -f -a"

2018-11-15 Thread Sam Protsenko
Hi all, It was noticed that after resetting the U-Boot environment ("env default -f -a") some variables are missing, and being added back after "reset". E.g. in my case it's next variables: board_name=am57xx_evm_reva3 ethaddr=fc:0f:4b:7b:27:9c fastboot.board_rev=A.3A

Re: [U-Boot] [PATCH v12 1/6] sandbox: Put CPUs under a cpu-bus node

2018-11-15 Thread Simon Glass
Hi Alex, On 14 November 2018 at 00:34, Alexander Graf wrote: > On 11/06/2018 11:57 PM, Simon Glass wrote: >> >> The CPU uclass expects that all CPUs have a parent device which is a >> cpu-bus. Fix up the sandbox test DT to follow this convention. This allow >> the code in smbios_write_type4_dm()

Re: [U-Boot] [PATCH v2 1/5] serial: Introduce ->getinfo() callback

2018-11-15 Thread Andy Shevchenko
On Thu, Nov 15, 2018 at 8:22 PM Alexander Graf wrote: > On 15.11.18 18:58, Andy Shevchenko wrote: > > New callback will give a necessary information to fill up ACPI SPCR table, > > for example. Maybe used later for other purposes. > > +/* REVISIT: ACPI GAS specification implied */ > > What does

Re: [U-Boot] [PATCH v2 1/5] serial: Introduce ->getinfo() callback

2018-11-15 Thread Alexander Graf
On 15.11.18 20:31, Andy Shevchenko wrote: > On Thu, Nov 15, 2018 at 8:22 PM Alexander Graf wrote: >> On 15.11.18 18:58, Andy Shevchenko wrote: >>> New callback will give a necessary information to fill up ACPI SPCR table, >>> for example. Maybe used later for other purposes. > >>> +/* REVISIT:

Re: [U-Boot] [PATCH 1/1] efi_loader: remove efi_exit_caches()

2018-11-15 Thread Alexander Graf
On 15.11.18 06:34, Jonathan Gray wrote: > On Sun, Sep 23, 2018 at 02:33:47PM +0200, Heinrich Schuchardt wrote: >> Since GRUB patch d0c070179d4d ("arm/efi: Switch to arm64 linux loader", >> 2018-07-09) we do not need a workaround for GRUB on 32bit ARM anymore. >> >> So let's eliminate function

Re: [U-Boot] [PATCH] travis: Ensure we use pytest 2.8.7

2018-11-15 Thread Tom Rini
On Thu, Nov 15, 2018 at 08:58:15AM -0500, Tom Rini wrote: > The latest version of pytest (4.0.0) makes some of the code we have in > test/py/conftest.py a fatal error that needs to be migrated. > Unfortunately this in turn requires changes that don't exist in older > versions of pytest such as

Re: [U-Boot] [PATCH] armv7r: K3: Allow SPL to run only on core 0

2018-11-15 Thread Tom Rini
On Thu, Nov 15, 2018 at 11:04:50AM +0530, Lokesh Vutla wrote: > Based on the MCU R5 efuse settings, R5F cores in MCU domain > either work in split mode or in lock step mode. > > If efuse settings are in lockstep mode: ROM release R5 cores > and SPL continues to run on the R5 core is lockstep

Re: [U-Boot] Pull request: u-boot-sunxi/master

2018-11-15 Thread Tom Rini
On Wed, Nov 14, 2018 at 12:49:45AM +0530, Jagan Teki wrote: > Hi Tom, > > Please pull this PR. > > thanks, > Jagan. > > The following changes since commit 454cf76184c65426b68033a23da086e73663f2fc: > > Prepare v2018.11-rc3 (2018-10-29 16:04:26 -0400) > > are available in the Git repository

Re: [U-Boot] Please pull u-boot-dm

2018-11-15 Thread Simon Glass
On 15 November 2018 at 13:02, Tom Rini wrote: > > On Thu, Nov 15, 2018 at 12:21:15PM -0800, Simon Glass wrote: > > Hi Tom, > > > > On 15 November 2018 at 08:32, Simon Glass wrote: > > > Hi Tom, > > > > > > The following changes since commit > > > 208ecbad2ea8e8f3c9933213867addf16f4a: > > >

Re: [U-Boot] [PATCH v2 2/5] serial: ns16550: Read reg-io-width from device tree

2018-11-15 Thread Simon Glass
Hi Andy, On 15 November 2018 at 09:58, Andy Shevchenko wrote: > Cache the value of the reg-io-width property for the future use. > > Signed-off-by: Andy Shevchenko > --- > drivers/serial/ns16550.c | 1 + > include/ns16550.h| 4 +++- > 2 files changed, 4 insertions(+), 1 deletion(-) > >

Re: [U-Boot] [PATCH v2 1/5] serial: Introduce ->getinfo() callback

2018-11-15 Thread Simon Glass
Hi Andy, On 15 November 2018 at 09:58, Andy Shevchenko wrote: > > New callback will give a necessary information to fill up ACPI SPCR table, > for example. Maybe used later for other purposes. > > Signed-off-by: Andy Shevchenko > --- > drivers/serial/serial-uclass.c | 21 +

Re: [U-Boot] [PATCH v2 3/5] serial: ns16550: Provide ->getinfo() implementation

2018-11-15 Thread Simon Glass
HI Andy, On 15 November 2018 at 11:37, Andy Shevchenko wrote: > On Thu, Nov 15, 2018 at 8:30 PM Alexander Graf wrote: >> On 15.11.18 18:58, Andy Shevchenko wrote: >> > New callback will supply necessary information, for example, >> > to ACPI SPCR table. > >> > +static int

Re: [U-Boot] Ping failure

2018-11-15 Thread Alexander Weidinger
Hi Paul, hi everyone, we had the same problem with our olinuxino-a64, but we were able to solve it by using an old patch series proposed by Icenowy Zheng. We extended the *.dts with content of the current torvalds/Linux master branch to contain an emac configuration, which basically results in

Re: [U-Boot] Ping failure

2018-11-15 Thread Marek Vasut
On 11/15/2018 08:47 PM, Alexander Weidinger wrote: > Hi Paul, hi everyone, > > we had the same problem with our olinuxino-a64, but we were able to > solve it by using an old patch series proposed by Icenowy Zheng. > > We extended the *.dts with content of the current torvalds/Linux master >

Re: [U-Boot] Getting rid of board_mtdparts_default()

2018-11-15 Thread Enric Balletbo Serra
Hello Boris, Missatge de Boris Brezillon del dia dj., 15 de nov. 2018 a les 16:58: > > Hello Enric, > > Miquel and I recently reworked drivers/mtd/mtdpart.c to get MTD > partitions exposed as MTD devices (as is done in Linux) instead of > having yet another abstraction to handle them (see what's

Re: [U-Boot] [PATCH v2 4/4] pinctrl: stm32: make pinctrl use hwspinlock

2018-11-15 Thread Simon Glass
On 14 November 2018 at 01:01, Benjamin Gaignard wrote: > From: Benjamin Gaignard > > Protect configuration registers with a hardware spinlock. > > If a hwspinlock is defined in the device-tree node used it > to be sure that none of the others processors on the SoC could > change the

Re: [U-Boot] [PULL] Please pull u-boot-imx

2018-11-15 Thread Ricardo Salveti
Hi Baruch, On Wed, Nov 14, 2018 at 5:07 AM Baruch Siach wrote: > > Hi Ricardo, > > On Tue, Nov 13, 2018 at 11:42:44AM -0200, Ricardo Salveti wrote: > > On Thu, Sep 6, 2018 at 12:52 PM Fabio Estevam wrote: > > > On Thu, Sep 6, 2018 at 12:42 PM, Baruch Siach wrote: > > > > > > > I tested current

Re: [U-Boot] Getting rid of board_mtdparts_default()

2018-11-15 Thread Boris Brezillon
On Thu, 15 Nov 2018 23:18:46 +0100 Enric Balletbo Serra wrote: > Hello Boris, > > Missatge de Boris Brezillon del dia dj., > 15 de nov. 2018 a les 16:58: > > > > Hello Enric, > > > > Miquel and I recently reworked drivers/mtd/mtdpart.c to get MTD > > partitions exposed as MTD devices (as is

Re: [U-Boot] [PATCH 12/19] riscv: Do some basic architecture level cpu initialization

2018-11-15 Thread Auer, Lukas
Hi Bin, On Tue, 2018-11-13 at 00:22 -0800, Bin Meng wrote: > Implement arch_cpu_init() to do some basic architecture level cpu > initialization, like FPU enable, etc. > > Signed-off-by: Bin Meng > --- > > arch/riscv/cpu/cpu.c | 21 + > 1 file changed, 21 insertions(+) > >

Re: [U-Boot] [PATCH v2 1/1] efi_selftest: don't hang on missing timer

2018-11-15 Thread Auer, Lukas
On Wed, 2018-11-14 at 09:23 +0100, Alexander Graf wrote: > On 11/12/2018 08:57 PM, Heinrich Schuchardt wrote: > > qemu-riscv32_defconfig and qemu-riscv64_defconfig do not supply a > > timer. > > This causes the EFI selftest to hang on tests which require a > > timer. > > > > So let's disable

Re: [U-Boot] [PATCH v2 1/4] dm: Add Hardware Spinlock class

2018-11-15 Thread Simon Glass
On 14 November 2018 at 01:01, Benjamin Gaignard wrote: > From: Benjamin Gaignard > > This is uclass for Hardware Spinlocks. > It implements two mandatory operations: lock and unlock > and one optional relax operation. > > Signed-off-by: Benjamin Gaignard > --- > version 2: > - use -ETIMEDOUT

Re: [U-Boot] [PATCH v2 2/4] clk: stm32: add hardware spinlock clock

2018-11-15 Thread Simon Glass
On 14 November 2018 at 01:01, Benjamin Gaignard wrote: > From: Benjamin Gaignard > > Add hardware spinlock in the list of the clocks. > > Signed-off-by: Benjamin Gaignard > --- > drivers/clk/clk_stm32mp1.c | 3 +++ > 1 file changed, 3 insertions(+) Reviewed-by: Simon Glass

Re: [U-Boot] [PATCH v2 01/23] log: Correct definition of log_msg_ret()

2018-11-15 Thread Simon Glass
Hi Bin, On 4 October 2018 at 02:25, Bin Meng wrote: > > Hi Simon, > > On Tue, Oct 2, 2018 at 8:25 PM Simon Glass wrote: > > > > This macro should have two parameters, not one. Fix it so that it > > correctly resolves to _ret when logging is disabled. > > > > Signed-off-by: Simon Glass > > ---

Re: [U-Boot] [PATCH] mmc: Parse HS400 DT properties

2018-11-15 Thread Simon Glass
On 13 November 2018 at 15:39, Marek Vasut wrote: > Add HS400 properties parsing support to mmc_of_parse(). > > Signed-off-by: Marek Vasut > Cc: Tom Rini > Cc: Jaehoon Chung > Cc: Jean-Jacques Hiblot > Cc: Kishon Vijay Abraham I > Cc: Peng Fan > Cc: Simon Glass > --- >

Re: [U-Boot] [U-Boot, v2, 12/23] spl: Print a message if we are unable to load an image

2018-11-15 Thread Simon Glass
Hi Tom, On 9 November 2018 at 10:43, Tom Rini wrote: > On Tue, Oct 02, 2018 at 05:22:42AM -0600, Simon Glass wrote: > >> It can confusing when U-Boot SPL hangs for no obvious reason, when it is >> unable to load U-Boot. Add a message to indicate the cause. >> >> Signed-off-by: Simon Glass >>

Re: [U-Boot] [U-Boot,v2,04/23] spl: Set up the bloblist in SPL

2018-11-15 Thread Simon Glass
Hi Tom, On 9 November 2018 at 10:43, Tom Rini wrote: > On Tue, Oct 02, 2018 at 05:22:34AM -0600, Simon Glass wrote: >> The bloblist is normally set up in SPL ready for use by U-Boot. Add >> a simple implementation of this to the common SPL code. >> >> Signed-off-by: Simon Glass >> --- >> >>

Re: [U-Boot] [PATCH v3] cmd, fdt: add subcommand "get" to fdt header

2018-11-15 Thread Simon Glass
On 14 November 2018 at 21:06, Heiko Schocher wrote: > store fdt header member with name in U-Boot > Environment variable with name . > > for example to get the total length of the fdt and store > it in filesize, call: > > fdt header get filesize totalsize > > For membernames look into fdt header

Re: [U-Boot] [PATCH v2 3/4] hwspinlock: add stm32 hardware spinlock support

2018-11-15 Thread Simon Glass
On 14 November 2018 at 01:01, Benjamin Gaignard wrote: > Implement hardware spinlock support for STM32MP1. > > Signed-off-by: Benjamin Gaignard > --- > version 2: > - remove useless include > - add a private structure to store base address > - be more verbose in configuration flag description >

Re: [U-Boot] [U-Boot,v2,04/23] spl: Set up the bloblist in SPL

2018-11-15 Thread Tom Rini
On Thu, Nov 15, 2018 at 04:07:59PM -0800, Simon Glass wrote: > Hi Tom, > > On 9 November 2018 at 10:43, Tom Rini wrote: > > On Tue, Oct 02, 2018 at 05:22:34AM -0600, Simon Glass wrote: > >> The bloblist is normally set up in SPL ready for use by U-Boot. Add > >> a simple implementation of this

Re: [U-Boot] [U-Boot,v2,04/23] spl: Set up the bloblist in SPL

2018-11-15 Thread Simon Glass
Hi Tom, On 15 November 2018 at 16:10, Tom Rini wrote: > On Thu, Nov 15, 2018 at 04:07:59PM -0800, Simon Glass wrote: >> Hi Tom, >> >> On 9 November 2018 at 10:43, Tom Rini wrote: >> > On Tue, Oct 02, 2018 at 05:22:34AM -0600, Simon Glass wrote: >> >> The bloblist is normally set up in SPL ready

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

2018-11-15 Thread AKASHI Takahiro
This efi_selftest tests HII database protocol and HII string protocol. Signed-off-by: AKASHI Takahiro --- lib/efi_selftest/Makefile|1 + lib/efi_selftest/efi_selftest_hii.c | 1046 ++ lib/efi_selftest/efi_selftest_hii_data.c | 452 ++ 3

[U-Boot] [PATCH v2 5/6] efi: hii: add HII config routing/access protocols

2018-11-15 Thread AKASHI Takahiro
This patch is a place holder for HII configuration routing protocol and HII configuration access protocol. Signed-off-by: AKASHI Takahiro --- include/efi_api.h | 157 include/efi_loader.h| 4 + lib/efi_loader/Makefile | 2 +-

[U-Boot] [PATCH v3 08/21] spl: Add a define for SPL_TPL_PROMPT

2018-11-15 Thread Simon Glass
We should use a macro rather than hard-coding the SPL prompt to 'spl' since the code can be used by TPL too. Add a macro that works for both and use it in various places. This allows TPL to use the same code without printing confusing messages. Note that the string is lower case ('spl', 'tpl')

[U-Boot] [PATCH v3 01/21] spl: Add support for logging in SPL and TPL

2018-11-15 Thread Simon Glass
It is sometimes useful to log information in SPL and TPL. Add support for this. Reviewed-by: Tom Rini Signed-off-by: Simon Glass --- Changes in v3: - Add comments to the log_ret() functions to indicate usage - Update log_msg_ret() to make use of the message and avoid a warning Changes in v2:

[U-Boot] [PATCH v3 00/21] spl: Add features for passing info from SPL to U-Boot proper

2018-11-15 Thread Simon Glass
At present we have no standard way of passing information from SPL to U-Boot. Such information may be the size of DRAM banks or some information about the reset state of the machine,for example. This series first adds a bloblist, which allows a list of 'blobs' to be created, each with a tag so

[U-Boot] [PATCH v3 12/21] test/py: Add a way to pass flags to sandbox

2018-11-15 Thread Simon Glass
It is sometimes useful to restart sandbox with some particular flags to test certain functionality. Add a new method to ConsoleSandbox to handle this, without changing the existing APIs. Signed-off-by: Simon Glass Acked-by: Stephen Warren --- Changes in v3: None Changes in v2: - Add back a

[U-Boot] [PATCH v3 17/21] sandbox: Refactor code to create os_jump_to_file()

2018-11-15 Thread Simon Glass
At present os_jump_to_image() jumps to a given image, and this is written to a file. But it is useful to be able to jump to a file also. To avoid duplicating code, split out the implementation of os_jump_to_image() into a new function that jumps to a file. Signed-off-by: Simon Glass ---

[U-Boot] [PATCH v3 03/21] spl: Set up the bloblist in SPL

2018-11-15 Thread Simon Glass
The bloblist is normally set up in SPL ready for use by U-Boot. Add a simple implementation of this to the common SPL code. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None common/spl/spl.c | 18 -- include/spl.h| 27 +++ 2

Re: [U-Boot] [PATCH v2 01/23] log: Correct definition of log_msg_ret()

2018-11-15 Thread Simon Glass
Hi Bin, On 15 November 2018 at 17:43, Bin Meng wrote: > > Hi Simon, > > On Fri, Nov 16, 2018 at 8:08 AM Simon Glass wrote: > > > > Hi Bin, > > > > On 4 October 2018 at 02:25, Bin Meng wrote: > > > > > > Hi Simon, > > > > > > On Tue, Oct 2, 2018 at 8:25 PM Simon Glass wrote: > > > > > > > >

[U-Boot] [PATCH v2 4/6] efi: hii: add keyboard layout package support

2018-11-15 Thread AKASHI Takahiro
Allow for handling keyboard layout package in HII database protocol. A package can be added or deleted in HII database protocol, but we don't set 'current' keyboard layout as there is no driver that requests a keyboard layout. Signed-off-by: AKASHI Takahiro --- include/efi_api.h| 11

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

2018-11-15 Thread AKASHI Takahiro
From: Leif Lindholm This patch provides enough implementation of the following protocols to run EDKII's Shell.efi and UEFI SCT: * EfiHiiDatabaseProtocol * EfiHiiStringProtocol Not implemented are: * ExportPackageLists() * RegisterPackageNotify()/UnregisterPackageNotify() *

[U-Boot] [PATCH v3 18/21] sandbox: Use malloc() and free() from os layer

2018-11-15 Thread Simon Glass
At present sandbox calls malloc() from various places in the OS layer and this results in calls to U-Boot's malloc() implementation. It is better to use the on in the OS layer, since it does not mix allocations with the main U-Boot code. Fix this by replacing calls with malloc() to os_malloc(),

[U-Boot] [PATCH v3 04/21] bloblist: Locate bloblist in U-Boot

2018-11-15 Thread Simon Glass
Add support for locating a bloblist in U-Boot that has been set up by SPL. It is copied into RAM during relocation. Reviewed-by: Tom Rini Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None common/board_f.c | 34 +++

[U-Boot] [PATCH v3 11/21] sandbox: Add a memory map to the sandbox README

2018-11-15 Thread Simon Glass
We have a few things in the memory map now, so add documentation for this to avoid confusion. Also note that it is possible to run all tests now. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None board/sandbox/README.sandbox | 14 +- 1 file changed, 13

[U-Boot] [PATCH v3 21/21] spl: Add support for passing handoff info to U-Boot proper

2018-11-15 Thread Simon Glass
There is some basic informaton that SPL normally wants to pass through to U-Boot, such as the SDRAM size and bank information. Mkae use of the new bloblist structure for this. Add a new 'handoff' blob which is set up in SPL and passed to U-Boot proper. Also adda test for sandbox_spl that checks

[U-Boot] [PATCH v3 19/21] sandbox: Filter arguments when starting U-Boot

2018-11-15 Thread Simon Glass
The current method of starting U-Boot from U-Boot adds arguments to pass the memory file through, so that memory is preserved. This is fine for a single call, but if we call from TPL -> SPL -> U-Boot the arguments build up and we have several memory files in the argument list. Adjust the

[U-Boot] [PATCH v3 05/21] test: Add a simple test for bloblist

2018-11-15 Thread Simon Glass
Add a unit test for the bloblist functionality and enable bloblist for sandbox. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/Kconfig | 1 + include/test/suites.h | 1 + test/Makefile | 1 + test/bloblist.c | 187

[U-Boot] [PATCH v3 14/21] sandbox: Drop the deprecated 'sb' command

2018-11-15 Thread Simon Glass
The old 'sb' command was deprecated in 2015 and replaced with 'host'. Remove the remaining users and the command, so that the name is available for other purposes. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None cmd/host.c | 5 - doc/README.trace

[U-Boot] [PATCH v2 0/6] efi_loader: add HII database protocol

2018-11-15 Thread AKASHI Takahiro
HII database protocol is the last missing (major?) piece of code so that we can run unmodified EDKII's shell and UEFI SCT on EFI-enabled u-boot. The original code was initially written by Leif and Rob a year ago[1], and now I'm reworking it. The implementation has not been much enhanced from the

[U-Boot] [PATCH v3 07/21] spl: Support hash, input, pch, pci, rtc, tpm in SPL

2018-11-15 Thread Simon Glass
At present these subsystems are only supported in U-Boot proper but it is sometimes necessary to support them in SPL, or even TPL. Update the Kconfig and Makefile to support this. Also adjust GPIO so that it can be used in TPL if required. Reviewed-by: Tom Rini Signed-off-by: Simon Glass ---

[U-Boot] [PATCH v3 02/21] Add core support for a bloblist to convey data from SPL

2018-11-15 Thread Simon Glass
At present there is no standard way in U-Boot to pass information from SPL to U-Boot proper. But sometimes SPL wants to convey information to U-Boot that U-Boot cannot easily figure out. For example, if SPL sets up SDRAM then it might want to pass the size of SDRAM, or the location of each bank,

[U-Boot] [PATCH v3 09/21] spl: Make SPL_DISABLE_BANNER_PRINT a positive option

2018-11-15 Thread Simon Glass
Rather than having a negative option, make this a positive option and enable it by default. This makes it easier to understand. Reviewed-by: Tom Rini Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None common/spl/Kconfig | 17 + common/spl/spl.c | 2 +-

[U-Boot] [PATCH v3 20/21] sandbox: Boot in U-Boot through the standard call

2018-11-15 Thread Simon Glass
Most architectures use jump_to_image_no_args() to jump from SPL to U-Boot. At present sandbox is special in that it jumps in its spl_board_load_image() call. This is not strictly correct, and means that sandbox misses out some parts of board_init_r(), just as calling bloblist_finish(), for

[U-Boot] [PATCH v3 06/21] Add bloblist documentation

2018-11-15 Thread Simon Glass
Add a description of the purpose of bloblist and how to use it. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None doc/README.bloblist | 82 + 1 file changed, 82 insertions(+) create mode 100644 doc/README.bloblist diff --git

[U-Boot] [PATCH v3 13/21] sandbox: Add an option to display of-platdata in SPL

2018-11-15 Thread Simon Glass
At present we don't have a test that of-platdata can be accessed in SPL. Add this in as a command-line option to SPL. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: - Drop the wildcard in the .lds file as it is not needed arch/sandbox/cpu/spl.c | 14 ++

  1   2   >