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

2018-11-18 Thread Baruch Siach
Hi Peter, Ricardo, Peter Robinson writes: > On Fri, Nov 16, 2018 at 1:06 AM Ricardo Salveti wrote: >> On Wed, Nov 14, 2018 at 5:07 AM Baruch Siach wrote: >> > 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

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

2018-11-18 Thread Bin Meng
On Fri, Nov 16, 2018 at 1:59 AM Andy Shevchenko wrote: > > 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 > --

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

2018-11-18 Thread Bin Meng
Hi Andy, On Fri, Nov 16, 2018 at 1:59 AM 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 > This URL redirects to https://do

[U-Boot] [PATCH] ofnode: fix comment typo

2018-11-18 Thread Baruch Siach
Signed-off-by: Baruch Siach --- include/dm/ofnode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/dm/ofnode.h b/include/dm/ofnode.h index 2fc9fa39a356..3d3b8dd93c40 100644 --- a/include/dm/ofnode.h +++ b/include/dm/ofnode.h @@ -323,7 +323,7 @@ ofnode ofnode_get_paren

Re: [U-Boot] [PATCH v1 1/2] x86: acpi: Enable RTC for Intel Tangier

2018-11-18 Thread Bin Meng
On Tue, Nov 13, 2018 at 4:41 PM Bin Meng wrote: > > On Sat, Nov 10, 2018 at 11:37 PM Andy Shevchenko > wrote: > > > > Intel Tangier SoC has RTC inside. So, enable it in ACPI. > > > > Signed-off-by: Andy Shevchenko > > --- > > arch/x86/include/asm/arch-tangier/acpi/platform.asl | 13

Re: [U-Boot] [PATCH v1 2/2] x86: acpi: Fix indentation in Intel Tangier ASL code

2018-11-18 Thread Bin Meng
On Tue, Nov 13, 2018 at 4:41 PM Bin Meng wrote: > > On Sat, Nov 10, 2018 at 11:37 PM Andy Shevchenko > wrote: > > > > Make the indentation aligned with what used elsewhere in U-Boot. > > > > No functional change intended. > > > > Signed-off-by: Andy Shevchenko > > --- > > .../include/asm/arch-t

Re: [U-Boot] [PATCH] x86: make the LAPIC / IOAPIC construct switchable with Kconfig

2018-11-18 Thread Bin Meng
On Tue, Oct 23, 2018 at 3:03 AM Hannes Schmelzer wrote: > > There are still systems running which do not have any LAPIC or even > IOAPIC, furthermore the MSRs for that aren't existing and the systems nits: furthermore -> Furthermore. aren't existing -> don't exist > are crashing on trying setup

Re: [U-Boot] [PATCH] x86: make X86IRQ per Kconfig switchable

2018-11-18 Thread Bin Meng
Hi Hannes, On Tue, Oct 23, 2018 at 3:08 PM Hannes Schmelzer wrote: > > > On 10/23/2018 05:24 AM, Bin Meng wrote: > > Hi Hannes, > > Hi Bing, > thanks for your response. > > On Tue, Oct 23, 2018 at 5:12 AM Hannes Schmelzer wrote: > > This commit creates the freedom for boards to do nothing with t

Re: [U-Boot] [PATCH v2 4/4] usb: am335x_evm: Disable CONFIG_SPL_DM_USB

2018-11-18 Thread Tom Rini
On Sun, Nov 18, 2018 at 04:33:34AM +0100, Marek Vasut wrote: > On 11/16/2018 12:04 PM, Sven Schwermer wrote: > > This configuration doesn't use USB in the SPL, so we need to disable > > driver model for USB in the SPL. > > > > Signed-off-by: Sven Schwermer > > How many other boards will need suc

Re: [U-Boot] [PATCH] cmd: fdt: Fix fdt address information after the movement

2018-11-18 Thread Marek Vasut
On 11/17/2018 01:13 AM, Simon Glass wrote: > On Thu, 18 Oct 2018 at 12:44, Marek Vasut wrote: >> >> From: Hiroyuki Yokoyama >> >> This patch fixes the address information of fdt. >> >> wrong case: >> => fdt addr 0x4800 >> => fdt move 0x4800 0x4100 0xa000 >> => fdt addr >> The addre

[U-Boot] [PATCH v2 00/10] Various fixes and improvements

2018-11-18 Thread Simon Glass
This series collects together a large number of small patches that I have been fiddling with for a while. At lot of them relate to SPL and TPL and updating Chromium OS verified boot to work on U-Boot. Unfortunately one patch (RTC) in the original series had a subtle failure which requires a bit of

[U-Boot] [PATCH v2 01/10] malloc_simple: Add logging of allocations

2018-11-18 Thread Simon Glass
It is sometimes useful to see what memory is being allocated early during boot. Add logging to support this, using a new LOGC_ALLOC category. Signed-off-by: Simon Glass --- Changes in v2: - Rebase to master - Correct definition of log() when logging is disabled common/malloc_simple.c | 58

[U-Boot] [PATCH v2 06/10] dm: core: Add a few more specific child-finding functions

2018-11-18 Thread Simon Glass
Add two functions which can find a child device by uclass or by name. The first is useful with Multi-Function-Devices (MFDs) to find one of a particular type. The second is useful when only the name is known. Signed-off-by: Simon Glass --- Changes in v2: None drivers/core/device.c | 34 +++

[U-Boot] [PATCH v2 03/10] power: pmic: Correct debug/error output

2018-11-18 Thread Simon Glass
There is a newline missing from quite a few printf() strings in these pmic files. Fix them. Signed-off-by: Simon Glass --- Changes in v2: None drivers/power/pmic/act8846.c | 2 +- drivers/power/pmic/as3722.c | 14 +++--- drivers/power/pmic/as3722_gpio.c | 11 ++- driv

[U-Boot] [PATCH v2 09/10] dm: sandbox: i2c: Use new emulator parent uclass

2018-11-18 Thread Simon Glass
Update the device tree, sandbox i2c driver and tests to use the new emulation parent to hold emulators. Signed-off-by: Simon Glass --- Changes in v2: None arch/sandbox/dts/sandbox.dts | 25 +++ arch/sandbox/dts/sandbox_pmic.dtsi | 71 +++--- arch/sandbox/d

[U-Boot] [PATCH v2 10/10] rtc: Allow child drivers

2018-11-18 Thread Simon Glass
Some RTC chips have child drivers, e.g. to provide access to their non-volatile RAM. Scan for these when binding. Signed-off-by: Simon Glass --- Changes in v2: - Drop patches previously applied - Add new patches to support the RTC change drivers/rtc/rtc-uclass.c | 1 + 1 file changed, 1 inser

[U-Boot] [PATCH v2 07/10] dm: core: Put UCLASS_SIMPLE_BUS in order

2018-11-18 Thread Simon Glass
This is currently at the top in the space for internal use. But this uclass is used outside driver model and test code. Move it into the correct alpha order. Signed-off-by: Simon Glass --- Changes in v2: None include/dm/uclass-id.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

[U-Boot] [PATCH v2 08/10] dm: sandbox: i2c: Add a new 'emulation parent' uclass

2018-11-18 Thread Simon Glass
Sandbox i2c works using emulation drivers which are currently children of the i2c device: rtc_0: rtc@43 { reg = <0x43>; compatible = "sandbox-rtc"; emul { compatible = "sandbox,i2c-rtc"; }; };

[U-Boot] [PATCH v2 04/10] test: Add a 'make qcheck' target for quicker testing

2018-11-18 Thread Simon Glass
At present tests are quite slow to run, over a minute on my machine. This presents a considerable barrier to bisecting for failures. The slowest tests are the filesystem ones and the buildman --fetch-arch test. Add a new 'qcheck' target that skips these tests. This reduces test time down to about

[U-Boot] [PATCH v2 02/10] spl: misc: Allow misc drivers in SPL and TPL

2018-11-18 Thread Simon Glass
In some cases it is necessary to read the keyboard in early phases of U-Boot. The cros_ec keyboard is kept in the misc directory. Update the config to allow this. Signed-off-by: Simon Glass --- Changes in v2: - Leave the misc uclass alone since it stops sandbox_spl working drivers/misc/Kconfig

[U-Boot] [PATCH v2 05/10] dm: core: Export uclass_find_device_by_phandle()

2018-11-18 Thread Simon Glass
This function may be useful to code outside of the code driver-model implementation. Export it and add a test. Signed-off-by: Simon Glass --- Changes in v2: None drivers/core/uclass.c| 6 ++ include/dm/uclass-internal.h | 17 + test/dm/test-fdt.c | 20 +++

Re: [U-Boot] [PATCH v14 0/4] efi_loader: Code refactoring and improvement

2018-11-18 Thread Simon Glass
Hi Alex, On Wed, 14 Nov 2018 at 16:11, Simon Glass wrote: > > This collects the patches previously sent to break up the very large > functions in efi_loader into smaller pieces. Now that the other sandbox > stuff is applied, perhaps it is time to apply these patches. > > This also adds a few new

[U-Boot] [PATCH] RFC: checkpatch: Add a check for tests needed for uclasses

2018-11-18 Thread Simon Glass
This is an experimental check for adding new uclasses without a test. I am not sure of the best way to add U-Boot-specific tests, although in this case, it would not fire on Linux. Signed-off-by: Simon Glass --- scripts/checkpatch.pl | 7 +++ 1 file changed, 7 insertions(+) diff --git a/s

[U-Boot] [PATCH v3 1/9] efi_loader: eliminate sandbox addresses

2018-11-18 Thread Heinrich Schuchardt
Do not use the sandbox's virtual address space for the internal structures of the memory map. This way we can eliminate a whole lot of unnecessary conversions. The only conversion remaining is the one when adding known memory. Signed-off-by: Heinrich Schuchardt --- v3 rebase the patch to

[U-Boot] [PATCH v3 5/9] fdt: sandbox: correct use of ${fdtcontroladdr}

2018-11-18 Thread Heinrich Schuchardt
The sandbox uses a virtual address space that is neither the physical nor the virtual address space of the operating system. All address used on the command line live in this address space. So also the environment variable ${fdtcontroladdr} has to be in this address space. Commands like bootefi an

[U-Boot] [PATCH v3 3/9] efi_selftest: building sandbox with EFI_SELFTEST

2018-11-18 Thread Heinrich Schuchardt
Enable building the sandbox with CONFIG_EFI_SELFTEST. Signed-off-by: Heinrich Schuchardt --- v3 rebase patch --- lib/efi_selftest/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/efi_selftest/Kconfig b/lib/efi_selftest/Kconfig index b52696778dd..59f9f36801c

[U-Boot] [PATCH v3 4/9] efi_loader: macro efi_size_in_pages()

2018-11-18 Thread Heinrich Schuchardt
When allocating EFI memory pages the size in bytes has to be converted to pages. Provide a macro efi_size_in_pages() for this conversion. Use it in the EFI subsystem and correct related comments. Signed-off-by: Heinrich Schuchardt --- v3 rebase the patch fix a comment --- cmd/bo

[U-Boot] [PATCH v3 6/9] fdt_support: fdt reservations on the sandbox

2018-11-18 Thread Heinrich Schuchardt
On the sandbox the memory addresses in the device tree refer to the virtual address space of the sandbox. This implies that the memory reservations for the fdt also have to be converted to this address space. Signed-off-by: Heinrich Schuchardt --- v3 map the correct parameter of fdt_add_m

[U-Boot] [PATCH v3 8/9] efi_loader: create fdt reservation before copy

2018-11-18 Thread Heinrich Schuchardt
When copying the device we must ensure that the copy does not fall into a memory area reserved by the same. So let's change the sequence: first create memory reservations and then copy the device tree. Signed-off-by: Heinrich Schuchardt --- v3 rebase patch --- cmd/bootefi.c | 12 +++

[U-Boot] [PATCH v3 7/9] efi_loader: fix memory mapping for sandbox

2018-11-18 Thread Heinrich Schuchardt
The sandbox is using a virtual address space which is neither the physical address space of the operating system nor the virtual address space in which Linux aplications live. The addresses used insided the flattened device tree use this sandbox virtual address space. The EFI subsystem uses the vir

[U-Boot] [PATCH v3 9/9] efi_selftest: check fdt is marked as runtime data

2018-11-18 Thread Heinrich Schuchardt
Check that the memory area containing the device tree is marked as runtime data. Update the Python test to pass ${fdtcontroladdr} to bootefi. Update the description of the Python test. Signed-off-by: Heinrich Schuchardt --- v3 update python test too --- lib/efi_selftest/efi_selftest_me

[U-Boot] [PATCH v3 0/9] efi_loader: fix memory handling

2018-11-18 Thread Heinrich Schuchardt
The Sandbox uses an address space that is neither the physical nor the virtual address space of the operating system. In the EFI subsystem we should only use addresses that can be used by an EFI application. With the patch series we eliminate the Sandbox addresses from the EFI memory map. In the

[U-Boot] [PATCH v3 2/9] efi_selftest: add test for memory allocation

2018-11-18 Thread Heinrich Schuchardt
This unit test checks the following runtime services: AllocatePages, FreePages, GetMemoryMap Signed-off-by: Heinrich Schuchardt --- v3: no change --- lib/efi_selftest/Makefile | 1 + lib/efi_selftest/efi_selftest_memory.c | 163 + 2 files changed, 1

Re: [U-Boot] [PATCH v2 4/4] usb: am335x_evm: Disable CONFIG_SPL_DM_USB

2018-11-18 Thread Sven Schwermer
>>> This configuration doesn't use USB in the SPL, so we need to disable >>> driver model for USB in the SPL. >>> >>> Signed-off-by: Sven Schwermer >> >> How many other boards will need such a patch ? > > In this case, "all" am335x boards should as only am43xx and later offer > ROM loads SPL fr

Re: [U-Boot] [PATCH v2 1/4] usb: Introduce CONFIG_SPL_DM_USB

2018-11-18 Thread Sven Schwermer
Hi! >> -ifdef CONFIG_CMD_USB >> +ifdef CONFIG_USB > > Shouldn't this be a separate change ? Do you mean a separate patch set or its own patch? I was actually not 100% sure about this one but ran into link problems with the status quo. It seemed odd that this code would depend on the USB comman

Re: [U-Boot] [U-Boot, v2, 1/6] ARM: vexpress-ca9x4_defconfig: Enable CMD_UBI support

2018-11-18 Thread Linus Walleij
On Fri, Nov 16, 2018 at 5:42 PM Otavio Salvador wrote: > On Fri, Nov 16, 2018 at 1:03 PM Tom Rini wrote: > > On Tue, Oct 23, 2018 at 10:35:51AM -0300, Otavio Salvador wrote: > > > This allow for convenient use of QEMU machine to test loading of UBI > > > filesystem. > > > > > > Acked-by: Linus Wa

Re: [U-Boot] [PATCH v2 4/4] usb: am335x_evm: Disable CONFIG_SPL_DM_USB

2018-11-18 Thread Marek Vasut
On 11/18/2018 08:05 PM, Sven Schwermer wrote: This configuration doesn't use USB in the SPL, so we need to disable driver model for USB in the SPL. Signed-off-by: Sven Schwermer >>> > >>> >>> How many other boards will need such a patch ? >> >> In t

Re: [U-Boot] [PATCH] mtd: Use get_mtdids() instead of env_get("mtdids") in mtd_search_alternate_name()

2018-11-18 Thread Boris Brezillon
On Sat, 17 Nov 2018 11:59:52 +0100 Miquel Raynal wrote: > Hi Boris, > > Boris Brezillon wrote on Fri, 16 Nov 2018 > 23:15:42 +0100: > > > The environment is not guaranteed to contain a valid mtdids variable > > when called from mtd_search_alternate_name(). Call get_mtdids() instead > > of env_

[U-Boot] [GIT PULL] u-boot-mips

2018-11-18 Thread Daniel Schwierzeck
Hi Tom, please pull updates for MIPS. https://travis-ci.org/danielschwierzeck/u-boot/builds/456633159 The following changes since commit 0c4b382f9041f9f2f00246c8a0ece90dae5451be: Merge branch '2018-11-16-master-imports' (2018-11-17 08:19:40 -0500) are available in the Git repository at:

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

2018-11-18 Thread Ricardo Salveti
Hi Baruch, On Sun, Nov 18, 2018 at 7:51 AM Baruch Siach wrote: > > Hi Peter, Ricardo, > > Peter Robinson writes: > > On Fri, Nov 16, 2018 at 1:06 AM Ricardo Salveti > > wrote: > >> On Wed, Nov 14, 2018 at 5:07 AM Baruch Siach wrote: > >> > On Tue, Nov 13, 2018 at 11:42:44AM -0200, Ricardo Salv

[U-Boot] [PATCH 1/2] mtd: nand: let the raw NAND devices be compiled upon selection

2018-11-18 Thread Miquel Raynal
Today way is to rely on CMD_NAND to be selected and from the root Makefile compile what is in drivers/mtd/nand/raw. While this will work most of the time with decent configurations, it is better to also compile this subsystem upon simple request in the configuration. Otherwise, a user not selectin

[U-Boot] [PATCH 0/2] Remove MTD sub-directories from the root Makefile

2018-11-18 Thread Miquel Raynal
Hello, Two patches to do what we discussed with jagan a few weeks back: remove MTD sub-directories from the root Makefile. The first patch has already been sent but as I could not see it in mainline (I can't remember when I sent this one) I decided to put it back here. The second one does simple m

[U-Boot] [PATCH 2/2] Makefile: move MTD-related lines in coherent Makefiles

2018-11-18 Thread Miquel Raynal
A move has been started to move Makefile definitions out of the main root file and instead move these lines in their respective directory. This change does not change any logic already in place, it just moves lines to make the reading easier. Signed-off-by: Miquel Raynal --- Makefile

[U-Boot] [PATCH 1/2] mtd: fix mtd_oobavail() incoherent returned value

2018-11-18 Thread Miquel Raynal
mtd_oobavail() returns either mtd->oovabail or mtd->oobsize. Both values are unsigned 32-bit entities, so there is no reason to pretend returning a signed one. Signed-off-by: Miquel Raynal --- include/linux/mtd/mtd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/lin

[U-Boot] [PATCH 2/2] mtd: fix Coverity integer handling issue

2018-11-18 Thread Miquel Raynal
A Coverity robot reported an integer handling issue (OVERFLOW_BEFORE_WIDEN) in the potentially overflowing expression: (mtd_div_by_ws(mtd->size, mtd) - mtd_div_by_ws(offs, mtd)) * mtd_oobavail(mtd, ops) While such overflow will certainly never happen due to the numbers handled, it is clea

Re: [U-Boot] [PATCH 2/2] mtd: fix Coverity integer handling issue

2018-11-18 Thread Miquel Raynal
Hello, Miquel Raynal wrote on Sun, 18 Nov 2018 21:11:47 +0100: > A Coverity robot reported an integer handling issue > (OVERFLOW_BEFORE_WIDEN) in the potentially overflowing expression: > > (mtd_div_by_ws(mtd->size, mtd) - mtd_div_by_ws(offs, mtd)) * > mtd_oobavail(mtd, ops) > > While

[U-Boot] [PATCH] sandbox: Improve debugging in initcall_run_list()

2018-11-18 Thread Simon Glass
At present if one of the initcalls fails on sandbox the address printing is not help, e.g.: initcall sequence 557678967c80 failed at call 5576709dfe1f (err=-96) This is because U-Boot gets relocated high into memory and the relocation offset (gd->reloc_off) does not work correctly for s

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

2018-11-18 Thread Baruch Siach
Hi Ricardo, Ricardo Salveti writes: > On Sun, Nov 18, 2018 at 7:51 AM Baruch Siach wrote: >> Peter Robinson writes: >> > On Fri, Nov 16, 2018 at 1:06 AM Ricardo Salveti >> > wrote: >> >> On Wed, Nov 14, 2018 at 5:07 AM Baruch Siach wrote: >> >> > On Tue, Nov 13, 2018 at 11:42:44AM -0200, Ricar

Re: [U-Boot] [PATCH v2 1/4] usb: Introduce CONFIG_SPL_DM_USB

2018-11-18 Thread Marek Vasut
On 11/18/2018 08:08 PM, Sven Schwermer wrote: > Hi! > >>> -ifdef CONFIG_CMD_USB >>> +ifdef CONFIG_USB >> >> Shouldn't this be a separate change ? > > Do you mean a separate patch set or its own patch? I was actually not > 100% sure about this one but ran into link problems with the status quo. >

Re: [U-Boot] [PATCH v2 4/4] usb: am335x_evm: Disable CONFIG_SPL_DM_USB

2018-11-18 Thread Tom Rini
On Sun, Nov 18, 2018 at 08:05:11PM +0100, Sven Schwermer wrote: > >>> This configuration doesn't use USB in the SPL, so we need to disable > >>> driver model for USB in the SPL. > >>> > >>> Signed-off-by: Sven Schwermer > >> > >> How many other boards will need such a patch ? > > > > In this ca

[U-Boot] [PATCH] ARM: vexpress_*: Enable CMD_UBI support

2018-11-18 Thread Otavio Salvador
This allow for convenient use of QEMU machine to test loading of UBI filesystem. There are a couple of changes made together of this which are required: 1) The malloc must be at least 512 KiB to allow the use of UBI filesystem. We are going to enable it in a next patch. 2) MTD_DEVICE must b

[U-Boot] [PATCH v3] ARM: rpi_*_defconfig: Add support to find UUID for filesystem

2018-11-18 Thread Otavio Salvador
The most generic way of having a stable boot behavior is to rely on UUID instead of device names for root partition, so the order of probing does not cause issues with booting. This enables the `CMD_FS_UUID` for following defconfig files: - rpi_0_w_defconfig - rpi_2_defconfig - rpi_3_32b_defco

Re: [U-Boot] [U-Boot, v2, 1/6] ARM: vexpress-ca9x4_defconfig: Enable CMD_UBI support

2018-11-18 Thread Otavio Salvador
On Sun, Nov 18, 2018 at 5:13 PM Linus Walleij wrote: > > On Fri, Nov 16, 2018 at 5:42 PM Otavio Salvador > wrote: > > On Fri, Nov 16, 2018 at 1:03 PM Tom Rini wrote: > > > On Tue, Oct 23, 2018 at 10:35:51AM -0300, Otavio Salvador wrote: > > > > This allow for convenient use of QEMU machine to te

[U-Boot] [PATCH 0/4] Submit upstream changes made while porting a customer board to mainline

2018-11-18 Thread Otavio Salvador
Those changes are intended to easy the process of using U-Boot mainline with rv1108 based boards. Please give them a good review and if possible, merge them as they are in use for some time on our custom tree and working fine. Otavio Salvador (4): clk_rv1108: Sync with vendor tree rv1108: En

[U-Boot] [PATCH 1/4] clk_rv1108: Sync with vendor tree

2018-11-18 Thread Otavio Salvador
Make adjustments to the rv1108 clock driver in order to align it with the internal Rockchip version. Signed-off-by: Otavio Salvador --- .../include/asm/arch-rockchip/cru_rv1108.h| 143 +- drivers/clk/rockchip/clk_rv1108.c | 457 +- include/dt-bindings/clock/r

[U-Boot] [PATCH 4/4] rv1108: Add support for default distro_bootcmd

2018-11-18 Thread Otavio Salvador
This allow easier integration of RV1108 based boards on generic distributions and build systems. Signed-off-by: Otavio Salvador --- include/configs/rv1108_common.h | 15 +++ 1 file changed, 15 insertions(+) diff --git a/include/configs/rv1108_common.h b/include/configs/rv1108_commo

[U-Boot] [PATCH 2/4] rv1108: Enable eMMC support

2018-11-18 Thread Otavio Salvador
In order to be able to build the Rockchip eMMC driver on rv1108, the CONFIG_BOUNCE_BUFFER option needs to be selected. Select it like it is done on the other Rockchip SoC common files. This also adds the pinctrl handles to enable the use of eMMC on custom boards (as minievk) and makes it easier f

[U-Boot] [PATCH 3/4] rv1108: Make USB OTG functional

2018-11-18 Thread Otavio Salvador
Like it is done for other Rockchip SoCs, introduce a board_usb_init() function so that USB OTG can be functional on rv1108 too. Signed-off-by: Otavio Salvador --- arch/arm/dts/rv1108.dtsi | 45 ++- arch/arm/mach-rockchip/Makefile | 1 + arch/arm/mach-rockchip/rv1

Re: [U-Boot] [PATCH 1/2] mtd: nand: let the raw NAND devices be compiled upon selection

2018-11-18 Thread Boris Brezillon
On Sun, 18 Nov 2018 21:07:31 +0100 Miquel Raynal wrote: > Today way is to rely on CMD_NAND to be selected and from the root > Makefile compile what is in drivers/mtd/nand/raw. > > While this will work most of the time with decent configurations, it > is better to also compile this subsystem upon

Re: [U-Boot] [PATCH 2/2] Makefile: move MTD-related lines in coherent Makefiles

2018-11-18 Thread Boris Brezillon
On Sun, 18 Nov 2018 21:07:32 +0100 Miquel Raynal wrote: > A move has been started to move Makefile definitions out of the main > root file and instead move these lines in their respective > directory. This change does not change any logic already in place, it > just moves lines to make the readin

Re: [U-Boot] [PATCH v2 03/10] power: pmic: Correct debug/error output

2018-11-18 Thread Lukasz Majewski
On Sun, 18 Nov 2018 08:14:28 -0700 Simon Glass wrote: > There is a newline missing from quite a few printf() strings in these > pmic files. Fix them. > > Signed-off-by: Simon Glass > --- Reviewed-by: Lukasz Majewski Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Ma

[U-Boot] [PATCH v2 0/5] sandbox: Changes and improvements to support verified boot

2018-11-18 Thread Simon Glass
This series compiles a number of fixes and improvement sto sandbox, cros_ec, tpm and a few other pieces. This allows U-Boot to support Chromium OS verified boot and assist with debugging of this. Changes in v2: - Split out from main TPM patch - Split out from main TPM patch - Correct missing conve

[U-Boot] [PATCH v2 1/5] tpm: Add a delay on start-up

2018-11-18 Thread Simon Glass
Some TPMs hang on startup without a short delay after getting the lock. Add a small delay to cope with this. Signed-off-by: Simon Glass --- Changes in v2: - Split out from main TPM patch drivers/tpm/tpm_tis_lpc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/tpm/tpm_tis_lpc.c

[U-Boot] [PATCH v2 5/5] mmc: Add hardware partition support

2018-11-18 Thread Simon Glass
MMC devices support multiple partitions, defined by the hardware. At present U-Boot can only access partition zero. Add support for selecting other partitions. Also add a way to check if a partition is write-protected. Note: There is existing support for this in the legacy MMC code, but this is b

[U-Boot] [PATCH v2 3/5] tpm: Export the open/close functions

2018-11-18 Thread Simon Glass
At present these functions are not accessible outside the TPM library, but in some cases we need to call them. Export them in the header file and add a define for the SHA1 digest size. Also adjust tpm_open() to call tpm_close() first so that the TPM is in a known state before opening (e.g. by a pr

Re: [U-Boot] [PATCH] cmd: fdt: Fix fdt address information after the movement

2018-11-18 Thread Simon Glass
Hi Marek, On Sun, 18 Nov 2018 at 08:02, Marek Vasut wrote: > > On 11/17/2018 01:13 AM, Simon Glass wrote: > > On Thu, 18 Oct 2018 at 12:44, Marek Vasut wrote: > >> > >> From: Hiroyuki Yokoyama > >> > >> This patch fixes the address information of fdt. > >> > >> wrong case: > >> => fdt addr 0x4

[U-Boot] [PATCH v2 2/5] tpm: Add a constant for the minimum supported digest size

2018-11-18 Thread Simon Glass
When SHA1 is used we need 20 bytes for the digest size. Add a constant so that clients can make use of this, e.g. to allocate local buffers. Signed-off-by: Simon Glass --- Changes in v2: - Split out from main TPM patch include/tpm-common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/

Re: [U-Boot] [PATCH 20/25] efi_loader: Don't enable in SPL/TPL by default

2018-11-18 Thread Simon Glass
Hi Alex, On Wed, 14 Nov 2018 at 06:28, Alexander Graf wrote: > > On 11/06/2018 11:21 PM, Simon Glass wrote: > > Generally this functionality is not useful in SPL or TPL. Update the > > Makefile so that it is not built. > > > > Signed-off-by: Simon Glass > > --- > > > > lib/Makefile | 8 ---

Re: [U-Boot] [PATCH 25/25] mmc: Add hardware partition support

2018-11-18 Thread Simon Glass
Hi Faiz, On Wed, 7 Nov 2018 at 00:36, Faiz Abbas wrote: > > Hi Simon, > > On Wednesday 07 November 2018 03:51 AM, Simon Glass wrote: > > MMC devices support multiple partitions, defined by the hardware. At > > present U-Boot can only access partition zero. Add support for selecting > > other parti

Re: [U-Boot] [PATCH 17/25] tpm: Export the open/close functions

2018-11-18 Thread Simon Glass
Hi Miquel, On Wed, 7 Nov 2018 at 00:52, Miquel Raynal wrote: > > Hi Simon, > > Simon Glass wrote on Tue, 6 Nov 2018 15:21:34 -0700: > > > At present these functions are not accessible outside the TPM library, but > > in some cases we need to call them. > > I was not aware, what is the use case?

Re: [U-Boot] [PATCH 1/2] core: ofnode: Fix ofnode_get_addr_size_index function

2018-11-18 Thread Simon Glass
Hi Keerthy, On Fri, 16 Nov 2018 at 17:09, Simon Glass wrote: > > On Tue, 13 Nov 2018 at 12:53, Simon Glass wrote: > > > > On 4 November 2018 at 22:47, Keerthy wrote: > > > Currently the else part of ofnode_get_addr_size_index function > > > does not fetch addresses based on the index but rather

[U-Boot] [PATCH v2] x86: make the LAPIC / IOAPIC construct switchable with Kconfig

2018-11-18 Thread Hannes Schmelzer
There are still systems running which do not have any LAPIC or even IOAPIC. Responsible MSRs for those do not exist and the systems are crashing on trying setup LAPIC. So this commit makes the APIC stuff able to switch off for those boards which dont' have a LAPIC / IOAPIC. Signed-off-by: Hannes

Re: [U-Boot] [PATCH] x86: make X86IRQ per Kconfig switchable

2018-11-18 Thread Hannes Schmelzer
On 11/18/18 3:07 PM, Bin Meng wrote: Hi Hannes, Hi Bin, On Tue, Oct 23, 2018 at 3:08 PM Hannes Schmelzer wrote: On 10/23/2018 05:24 AM, Bin Meng wrote: Hi Hannes, Hi Bing, thanks for your response. On Tue, Oct 23, 2018 at 5:12 AM Hannes Schmelzer wrote: This commit creates the freedom

Re: [U-Boot] [RFC PATCH 0/4] cmd: Simplify support for sub-commands

2018-11-18 Thread Boris Brezillon
+Tom, Marek as I realize I only sent this to the ML, and I'm actually expecting feedback from maintainers. Let me know if you think I should Cc other people. On Fri, 16 Nov 2018 23:38:08 +0100 Boris Brezillon wrote: > Hello, > > This patch series aims at simplifying the command parsing logic do

[U-Boot] [PATCH] tools: env: support skip leading zero of env

2018-11-18 Thread zqb-all
Signed-off-by: zqb-all --- tools/env/fw_env.c | 38 ++ 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c index a5d7595..4f4cd54 100644 --- a/tools/env/fw_env.c +++ b/tools/env/fw_env.c @@ -398,7 +398,14 @@ c

[U-Boot] [PATCH v2 4/5] tpm: Convert to use a device parameter

2018-11-18 Thread Simon Glass
At present many TPM calls assume there is only one TPM in the system and look up this TPM themselves. This is inconsistent with driver model, which expects all driver methods to have a device parameter. Update the code to correct this. Signed-off-by: Simon Glass --- Changes in v2: - Correct miss

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

2018-11-18 Thread Ricardo Salveti
Hi Baruch, On Sun, Nov 18, 2018 at 6:29 PM Baruch Siach wrote: > > Hi Ricardo, > > Ricardo Salveti writes: > > The line where it locks up waiting for the command to complete: > > http://git.denx.de/?p=u-boot.git;a=blob;f=drivers/mmc/fsl_esdhc.c;h=3cdfa7f5a689789ea2f24da867d7c947ab78c002;hb=HEAD#l

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

2018-11-18 Thread Weijie Gao
On Fri, 2018-11-16 at 09:30 -0500, Tom Rini wrote: > On Thu, Nov 15, 2018 at 11:59:34AM -0800, Simon Glass wrote: > > 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 0

[U-Boot] [PATCH v1 0/3] ARM: pinctrl: Provide pinctrl driver for Vybrid (vf610)

2018-11-18 Thread Lukasz Majewski
This series enables pinctrl driver for the vybrid NXP SoC. Changes in v1: - None Lukasz Majewski (3): ARM: vybrid: Provide pinctrl driver for Vybrid (vf610) ARM: DTS: Add iomux node to vf.dtsi for Vybrid devices ARM: DTS: Provide pinfunc definitions for vybrid vf610 from Linux kernel

[U-Boot] [PATCH v1 2/3] ARM: DTS: Add iomux node to vf.dtsi for Vybrid devices

2018-11-18 Thread Lukasz Majewski
This node is in sync with v4.20-next tree: e4dda4f5a4df "x86/kaslr, ACPI/NUMA: avoid including asm/kaslr.h on arm64" Signed-off-by: Lukasz Majewski --- Changes in v1: None arch/arm/dts/vf.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/dts/vf.dtsi b/arch/arm/dts/vf.dtsi

[U-Boot] [PATCH v1 1/3] ARM: vybrid: Provide pinctrl driver for Vybrid (vf610)

2018-11-18 Thread Lukasz Majewski
This implementation comply with other iMX devices pinctrl drivers already available in U-boot. Signed-off-by: Lukasz Majewski --- Changes in v1: - None drivers/pinctrl/nxp/Kconfig | 14 + drivers/pinctrl/nxp/Makefile| 1 + drivers/pinctrl/nxp/pinctrl-vf610.c | 41

[U-Boot] [PATCH v1 3/3] ARM: DTS: Provide pinfunc definitions for vybrid vf610 from Linux kernel

2018-11-18 Thread Lukasz Majewski
This file is in sync with v4.20-next tree: e4dda4f5a4df "x86/kaslr, ACPI/NUMA: avoid including asm/kaslr.h on arm64" Signed-off-by: Lukasz Majewski --- Changes in v1: None arch/arm/dts/vf610-pinfunc.h | 810 +++ 1 file changed, 810 insertions(+) create

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

2018-11-18 Thread Fabio Estevam
Hi Ricardo, On Sun, Nov 18, 2018 at 5:44 PM Ricardo Salveti wrote: > Also tried with ARM's pre-built toolchain (same version), and got the > same hang. Looking a bit further, it basically looks up while waiting > the first mmc command to complete: > > has_emmc -> mmc_get_op_cond -> mmc_send_if_c

Re: [U-Boot] [PATCH v2] x86: make the LAPIC / IOAPIC construct switchable with Kconfig

2018-11-18 Thread Bin Meng
On Mon, Nov 19, 2018 at 6:19 AM Hannes Schmelzer wrote: > > There are still systems running which do not have any LAPIC or even > IOAPIC. Responsible MSRs for those do not exist and the systems are > crashing on trying setup LAPIC. > > So this commit makes the APIC stuff able to switch off for tho

Re: [U-Boot] [PATCH v14 0/4] efi_loader: Code refactoring and improvement

2018-11-18 Thread Simon Glass
Hi Heinrich, On Sun, 18 Nov 2018 at 08:20, Simon Glass wrote: > > Hi Alex, > > On Wed, 14 Nov 2018 at 16:11, Simon Glass wrote: > > > > This collects the patches previously sent to break up the very large > > functions in efi_loader into smaller pieces. Now that the other sandbox > > stuff is ap

Re: [U-Boot] [PATCH v2] x86: make the LAPIC / IOAPIC construct switchable with Kconfig

2018-11-18 Thread Bin Meng
On Mon, Nov 19, 2018 at 9:47 AM Bin Meng wrote: > > On Mon, Nov 19, 2018 at 6:19 AM Hannes Schmelzer wrote: > > > > There are still systems running which do not have any LAPIC or even > > IOAPIC. Responsible MSRs for those do not exist and the systems are > > crashing on trying setup LAPIC. > > >

Re: [U-Boot] [PATCH] x86: make X86IRQ per Kconfig switchable

2018-11-18 Thread Bin Meng
Hi Hannes, On Mon, Nov 19, 2018 at 6:29 AM Hannes Schmelzer wrote: > > > On 11/18/18 3:07 PM, Bin Meng wrote: > > Hi Hannes, > Hi Bin, > > On Tue, Oct 23, 2018 at 3:08 PM Hannes Schmelzer > > wrote: > >> > >> On 10/23/2018 05:24 AM, Bin Meng wrote: > >> > >> Hi Hannes, > >> > >> Hi Bing, > >> t

Re: [U-Boot] [PATCH] x86: tsc: Add support for APL soc

2018-11-18 Thread Bin Meng
Hi Bernhard, On Thu, Oct 25, 2018 at 6:51 PM Bernhard Messerklinger wrote: > Missing commit message APL means ApolloLake? Could you please spell it out? > Signed-off-by: Bernhard Messerklinger > > --- > > drivers/timer/tsc_timer.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/d

Re: [U-Boot] [GIT PULL] u-boot-mips

2018-11-18 Thread Tom Rini
On Sun, Nov 18, 2018 at 08:30:56PM +0100, Daniel Schwierzeck wrote: > Hi Tom, > > please pull updates for MIPS. > > https://travis-ci.org/danielschwierzeck/u-boot/builds/456633159 > > > The following changes since commit 0c4b382f9041f9f2f00246c8a0ece90dae5451be: > > Merge branch '2018-11-16

Re: [U-Boot] [PATCH 2/4] rv1108: Enable eMMC support

2018-11-18 Thread Andy Yan
Hi Otavio: It's better to spilt the dtsi and config header file as two patches. And when you send different versions , you should mark your series with v1, v2... On 2018/11/19 上午4:56, Otavio Salvador wrote: In order to be able to build the Rockchip eMMC driver on rv1108, the CONFIG_BOUNCE_B

Re: [U-Boot] [PATCH 1/2] core: ofnode: Fix ofnode_get_addr_size_index function

2018-11-18 Thread J, KEERTHY
On 11/19/2018 2:59 AM, Simon Glass wrote: Hi Keerthy, On Fri, 16 Nov 2018 at 17:09, Simon Glass wrote: On Tue, 13 Nov 2018 at 12:53, Simon Glass wrote: On 4 November 2018 at 22:47, Keerthy wrote: Currently the else part of ofnode_get_addr_size_index function does not fetch addresses ba

[U-Boot] [PATCH v3 2/2] core: ofnode: Add ofnode_get_addr_size_index

2018-11-18 Thread Keerthy
Add ofnode_get_addr_size_index function to fetch the address and size of the reg space based on index. Signed-off-by: Keerthy --- drivers/core/ofnode.c | 14 ++ include/dm/ofnode.h | 14 ++ 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/drivers/core/ofn

[U-Boot] [PATCH v3 0/2] core: ofnode: Fix ofnode_get_addr_index function

2018-11-18 Thread Keerthy
The series adds a fix to ofnode_get_addr_index function and also adds a new ofnode_get_addr_size_index function. Changes in v3: Fixed compilation issues with sandbox_defconfig Keerthy (2): core: ofnode: Fix ofnode_get_addr_index function core: ofnode: Add ofnode_get_addr_size_index drivers

[U-Boot] [PATCH v3 1/2] core: ofnode: Fix ofnode_get_addr_index function

2018-11-18 Thread Keerthy
Currently the else part of ofnode_get_addr_index function does not fetch addresses based on the index but rather just returns the base address. Fix that. Signed-off-by: Keerthy --- drivers/core/ofnode.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/driver

Re: [U-Boot] [PATCH 3/4] mtd: Delete partitions attached to the device when a device is deleted

2018-11-18 Thread Heiko Schocher
Hello Boris, Am 17.11.2018 um 10:19 schrieb Boris Brezillon: On Fri, 16 Nov 2018 15:40:25 +0100 Boris Brezillon wrote: If we don't do that, partitions might still be exposed while the underlying device is gone. Fixes: 2a74930da57f ("mtd: mtdpart: implement proper partition handling") Signed-

Re: [U-Boot] [PATCH 1/2] core: ofnode: Fix ofnode_get_addr_size_index function

2018-11-18 Thread J, KEERTHY
On 11/19/2018 10:47 AM, J, KEERTHY wrote: On 11/19/2018 2:59 AM, Simon Glass wrote: Hi Keerthy, On Fri, 16 Nov 2018 at 17:09, Simon Glass wrote: On Tue, 13 Nov 2018 at 12:53, Simon Glass wrote: On 4 November 2018 at 22:47, Keerthy wrote: Currently the else part of ofnode_get_addr_si

[U-Boot] [PATCH] ARM: mvebu: db-88f6820: remove redundant comment

2018-11-18 Thread Chris Packham
After migration to Kconfig the comment about TEXT_BASE has become redundant. Signed-off-by: Chris Packham --- include/configs/db-88f6820-amc.h | 5 - include/configs/db-88f6820-gp.h | 5 - 2 files changed, 10 deletions(-) diff --git a/include/configs/db-88f6820-amc.h b/include/configs

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

2018-11-18 Thread Weijie Gao
On Fri, 2018-11-16 at 11:26 -0700, Simon Glass wrote: > Hi Weijie, > > On 15 November 2018 at 23:08, Weijie Gao > wrote: > > On Thu, 2018-11-15 at 11:21 -0800, Simon Glass wrote: > >> Hi, > >> > >> On 14 November 2018 at 18:07, Ryder Lee > wrote: > >> > From: Weijie Gao > >> > > >> > This adds

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

2018-11-18 Thread Baruch Siach
Hi Ricardo, On Sun, Nov 18, 2018 at 05:43:02PM -0200, Ricardo Salveti wrote: > On Sun, Nov 18, 2018 at 7:51 AM Baruch Siach wrote: > > Peter Robinson writes: > > > On Fri, Nov 16, 2018 at 1:06 AM Ricardo Salveti > > > wrote: > > >> On Wed, Nov 14, 2018 at 5:07 AM Baruch Siach wrote: > > >> > O