[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

[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 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 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

[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

[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

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] [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

[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

[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

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 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

[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] 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
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

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] 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

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. >     

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] [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] 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] [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.

[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] 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] [RESEND][PATCH] power: regulator: denied disable on always-on regulator

2018-11-15 Thread Patrice Chotard
From: Patrick Delaunay Don't disable regulator which are tagged as "regulator-always-on" in DT. Signed-off-by: Patrick Delaunay Reviewed-by: Simon Glass Reviewed-by: Jack Mitchell Tested-by: Jack Mitchell Signed-off-by: Patrice Chotard --- drivers/power/regulator/regulator-uclass.c | 5

[U-Boot] [PATCH v4] armv8: lx2160aqds : Add support for LX2160AQDS platform

2018-11-15 Thread Pankaj Bansal
LX2160AQDS is a development board that supports LX2160A family SoCs. This patch add base support for this board. Signed-off-by: Wasim Khan Signed-off-by: Sriram Dash Signed-off-by: Pankaj Bansal --- Notes: This patch depends on following patches: [1]

[U-Boot] [PATCH v3] armv8: lx2160aqds : Add support for LX2160AQDS platform

2018-11-15 Thread Pankaj Bansal
LX2160AQDS is a development board that supports LX2160A family SoCs. This patch add base support for this board. Signed-off-by: Wasim Khan Signed-off-by: Sriram Dash Signed-off-by: Pankaj Bansal --- Notes: This patch depends on following patches: [1]

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

2018-11-15 Thread codekipper
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, HDMI, an IR receiver, a dual colour LED and an optical S/PDIF connector.

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

2018-11-15 Thread codekipper
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, HDMI, an IR receiver, a dual colour LED and an optical S/PDIF connector.

Re: [U-Boot] [ANN] U-Boot v2018.11 released

2018-11-15 Thread Wolfgang Denk
Dear Tom, In message <20181114161128.GI11247@bill-the-cat> you wrote: > > It's a few days past the scheduled release day, but we're here now and > I'm happy enough with the last minute SPI changes that we're releasing > now. The release is live on git (I hope) and FTP and ACD (along with > the

[U-Boot] mtd partitions go away

2018-11-15 Thread Heiko Schocher
Hello all, just see with current HEAD of u-boot on an imx6ull based board with SPI NOR and NAND following behaviour: => mtdparts device nand0 , # parts = 1 #: namesizeoffset mask_flags 0: ubi 0x0800 0x 0 device nor0

Re: [U-Boot] [U-Boot, 1/2] rockchip: rk3188: add support for usb-uart functionality

2018-11-15 Thread Philipp Tomsich
Heiko, > On 15.11.2018, at 00:35, Philipp Tomsich > wrote: > >> Rockchip socs can route the debug uart pins through the d+ and d- pins >> of one specific usbphy per soc. Add a config option and implement the >> setting on the rk3188. >> >> Signed-off-by: Heiko Stuebner >> Reviewed-by:

Re: [U-Boot] [PATCH v2 1/2] mtd/spi: Add JEDEC SFDP support in SPI framework

2018-11-15 Thread Vignesh R
Hi Rajat, On 13/11/18 5:30 PM, Rajat Srivastava wrote: > Add support for JESD216 rev B standard JEDEC Serial > Flash Discoverable Parameters (SFDP) tables to > dynamically initialize flash size, page size and > address width of the flash. More parameters can be > added as per requirement. > SFDP

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

2018-11-15 Thread Sven Schwermer
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 --- This solves the dependency problem I described in [1]. [1]:

<    1   2