Re: [U-Boot] [PATCH] travis: Use kernel.org pre-built toolchain for riscv

2018-09-03 Thread Rick Chen
> From: Tom Rini [mailto:tr...@konsulko.com] > Sent: Tuesday, September 04, 2018 3:24 AM > To: Bin Meng > Cc: U-Boot Mailing List; Rick Jian-Zhi Chen(陳建志) > Subject: Re: [PATCH] travis: Use kernel.org pre-built toolchain for riscv > > On Mon, Sep 03, 2018 at 05:50:39PM +0800, Bin Meng

Re: [U-Boot] [PATCH 2/4] x86: tangier: pinmux: add API to configure protected pins

2018-09-03 Thread Bin Meng
On Mon, Sep 3, 2018 at 11:07 PM Georgii Staroselskii wrote: > > This API is going to be used to configure some pins that are protected > for simple modification. > > It's not a comprehensive pinctrl driver but can be turned into one > when we need this in the future. Now it is planned to be used

Re: [U-Boot] [PATCH v4] gpio: dwapb_gpio: Add reset ctrl to driver

2018-09-03 Thread Marek Vasut
On 09/04/2018 03:34 AM, Ley Foon Tan wrote: > On Thu, Aug 30, 2018 at 8:11 PM Marek Vasut wrote: >> >> On 08/30/2018 02:45 AM, Ley Foon Tan wrote: >>> On Wed, Aug 29, 2018 at 7:57 PM Marek Vasut wrote: On 08/29/2018 10:44 AM, Ley Foon Tan wrote: > Add code to reset all reset

Re: [U-Boot] [PATCH 4/4] x86: tangier: acpi: add I2C6 node

2018-09-03 Thread Bin Meng
On Mon, Sep 3, 2018 at 11:07 PM Georgii Staroselskii wrote: > > Now that we have I2C#6 working, it's time to add a corresponsing > ACPI binding. > > Signed-off-by: Georgii Staroselskii > --- > arch/x86/include/asm/arch-tangier/acpi/southcluster.asl | 10 ++ > 1 file changed, 10

Re: [U-Boot] [PATCH 3/4] x86: dts: edison: configure I2C#6 pins

2018-09-03 Thread Bin Meng
On Tue, Sep 4, 2018 at 2:23 AM Andy Shevchenko wrote: > > On Mon, Sep 3, 2018 at 7:41 PM Georgii Staroselskii > wrote: > > > > Now that we have the pinctrl driver for Merrifield in place we can make > > use of it and set I2C#6 pins appropriately. > > > > Initial configuration came from the

Re: [U-Boot] [PATCH 2/4] x86: tangier: pinmux: add API to configure protected pins

2018-09-03 Thread Bin Meng
Hi Georgii, On Mon, Sep 3, 2018 at 11:07 PM Georgii Staroselskii wrote: > > This API is going to be used to configure some pins that are protected > for simple modification. > > It's not a comprehensive pinctrl driver but can be turned into one > when we need this in the future. Now it is

Re: [U-Boot] [PATCH 1/4] x86: cpu: introduce scu_ipc_raw_command()

2018-09-03 Thread Bin Meng
On Tue, Sep 4, 2018 at 2:23 AM Andy Shevchenko wrote: > > On Mon, Sep 3, 2018 at 7:40 PM Georgii Staroselskii > wrote: > > > > This interface will be used to configure properly some pins on > > Merrifield that are shared with SCU. > > > > scu_ipc_raw_command() writes SPTR and DPTR registers

Re: [U-Boot] [PATCH v2 07/13] x86: Fix signed shift overflow in MSR_IA32_APICBASE_BASE

2018-09-03 Thread Bin Meng
Hi Eugeniu, On Sat, Sep 1, 2018 at 6:59 PM Eugeniu Rosca wrote: > > Hi there, > > On Tue, Aug 28, 2018 at 08:42:01AM +0200, Eugeniu Rosca wrote: > > Hi Bin, > > > > cc: Masahiro, Andrey > > > > On Tue, Aug 28, 2018 at 10:05:51AM +0800, Bin Meng wrote: > > > Hi Eugeniu, > > > > > > On Mon, Aug

Re: [U-Boot] [PATCH v4] gpio: dwapb_gpio: Add reset ctrl to driver

2018-09-03 Thread Ley Foon Tan
On Thu, Aug 30, 2018 at 8:11 PM Marek Vasut wrote: > > On 08/30/2018 02:45 AM, Ley Foon Tan wrote: > > On Wed, Aug 29, 2018 at 7:57 PM Marek Vasut wrote: > >> > >> On 08/29/2018 10:44 AM, Ley Foon Tan wrote: > >>> Add code to reset all reset signals as in gpio DT node. A reset property > >>> is

Re: [U-Boot] [PATCH] travis: Use kernel.org pre-built toolchain for riscv

2018-09-03 Thread Bin Meng
Hi Rick, On Tue, Sep 4, 2018 at 3:23 AM Tom Rini wrote: > > On Mon, Sep 03, 2018 at 05:50:39PM +0800, Bin Meng wrote: > > Hi Tom, > > > > On Thu, Aug 30, 2018 at 9:12 PM Bin Meng wrote: > > > > > > This updates travis configuration to use kernel.org pre-built > > > toolchain for riscv. > > > >

[U-Boot] [PATCH] amlogic: board p212: Fix Ethernet PHY init

2018-09-03 Thread Jasper kcoding
Without this patch the Ethernet PHY on the p212 board does not get fully configured. When this happens Ethernet does not function. The similar libretech-cc and khadas-vim boards have this code already. That's why the Ethernet on these boards do work. Signed-off-by: Jasper Kcoding Acked-by: Neil

[U-Boot] [PATCH 2/2] watchdog: Add sunxi watchdog driver

2018-09-03 Thread Chris Blake
Based on the linux mainline driver, this adds support for the hardware watchdog timer found on some sunxi boards. Signed-off-by: Chris Blake --- common/board_f.c | 3 +- drivers/watchdog/Kconfig | 18 drivers/watchdog/Makefile| 1 + drivers/watchdog/sunxi_wdt.c

[U-Boot] [PATCH 0/2] Watchdog: Add support for sunxi hardware watchdog

2018-09-03 Thread Chris Blake
The following patches are needed to add support for the hardware watchdog found in most sunxi SoC's. The patches below have only been tested on a sun50i device (H5 SoC) and work as expected. The actual sunxi_wdt.c was roughly based off of the mainline linux driver, and is enabled by adding

[U-Boot] [PATCH 1/2] watchdog: Fix SPL builds when watchdog is enabled

2018-09-03 Thread Chris Blake
Without this fix, u-boot fails to comple as it tries to load watchdog.h during an SPL build. This breaks support for things such as the sunxi arch. Signed-off-by: Chris Blake --- include/watchdog.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/watchdog.h

Re: [U-Boot] [PATCH 1/3] spi: davinci: Add platdata support

2018-09-03 Thread Adam Ford
On Mon, Sep 3, 2018 at 5:21 PM Adam Ford wrote: > > On Mon, Sep 3, 2018 at 12:30 PM Jagan Teki wrote: > > > > Davanci spi driver has DM support already, this patch > > add support for platdata so-that SPL can use it for > > low foot-print. > > > > In order for this to work, I had to apply a

Re: [U-Boot] [PATCH 1/3] spi: davinci: Add platdata support

2018-09-03 Thread Adam Ford
On Mon, Sep 3, 2018 at 12:30 PM Jagan Teki wrote: > > Davanci spi driver has DM support already, this patch > add support for platdata so-that SPL can use it for > low foot-print. > In order for this to work, I had to apply a patch [1] that I submitted before. That patch disabled the manual

Re: [U-Boot] [PATCH 08/12] riscv: Add a helper routine to print CPU information

2018-09-03 Thread Auer, Lukas
On Thu, 2018-08-30 at 00:54 -0700, Bin Meng wrote: > This adds a helper routine to print CPU information. Currently > it prints all the instruction set extensions that the processor > core supports. > > Signed-off-by: Bin Meng > --- > > arch/riscv/Makefile | 1 + >

Re: [U-Boot] [PATCH 03/12] riscv: bootm: Correct the 1st kernel argument to hart id

2018-09-03 Thread Auer, Lukas
On Thu, 2018-08-30 at 00:54 -0700, Bin Meng wrote: > The first argument of Linux kernel is the risc-v core hart id, > from which the kernel is booted from. It is not the mach_id, > which seems to be copied from arm. > > Signed-off-by: Bin Meng > --- > > arch/riscv/lib/bootm.c | 18

Re: [U-Boot] [PATCH 12/12] riscv: Add QEMU virt board support

2018-09-03 Thread Auer, Lukas
On Thu, 2018-08-30 at 00:54 -0700, Bin Meng wrote: > This adds QEMU RISC-V 'virt' board target support, with the hope of > helping people easily test U-Boot on RISC-V. > > The QEMU virt machine models a generic RISC-V virtual machine with > support for the VirtIO standard networking and block

Re: [U-Boot] [PATCH v3 4/5] efi_loader: EFI_UNICODE_COLLATION_PROTOCOL

2018-09-03 Thread Alexander Graf
On 03.09.18 23:24, Heinrich Schuchardt wrote: > On 09/03/2018 11:09 PM, Alexander Graf wrote: >> >> >> On 03.09.18 18:35, Heinrich Schuchardt wrote: >>> The patch implements the EFI_UNICODE_COLLATION_PROTOCOL. >>> >>> Signed-off-by: Heinrich Schuchardt >>> --- >>> v3: >>> no change >>> v2:

Re: [U-Boot] [PATCH v3 4/5] efi_loader: EFI_UNICODE_COLLATION_PROTOCOL

2018-09-03 Thread Heinrich Schuchardt
On 09/03/2018 11:09 PM, Alexander Graf wrote: > > > On 03.09.18 18:35, Heinrich Schuchardt wrote: >> The patch implements the EFI_UNICODE_COLLATION_PROTOCOL. >> >> Signed-off-by: Heinrich Schuchardt >> --- >> v3: >> no change >> v2: >> add more comments >> --- >> MAINTAINERS

Re: [U-Boot] [PATCH v3 4/5] efi_loader: EFI_UNICODE_COLLATION_PROTOCOL

2018-09-03 Thread Alexander Graf
On 03.09.18 18:35, Heinrich Schuchardt wrote: > The patch implements the EFI_UNICODE_COLLATION_PROTOCOL. > > Signed-off-by: Heinrich Schuchardt > --- > v3: > no change > v2: > add more comments > --- > MAINTAINERS| 2 + > include/cp1250.h

Re: [U-Boot] [PATCH v3 1/5] efi_loader: capitalization table

2018-09-03 Thread Alexander Graf
On 03.09.18 18:35, Heinrich Schuchardt wrote: > This patch provides a define to initialize a table that maps lower to > capital letters for Unicode code point 0x - 0x. > > Signed-off-by: Heinrich Schuchardt > --- > v3: > remove codes < 0x80 from tables for code pages 437 and 1250

[U-Boot] [ANN] U-Boot v2018.09-rc3 released

2018-09-03 Thread Tom Rini
Hey all, Some of you may have noticed I didn't do a release last week. Slipped my mind until about Wednesday/Thursday and I figured it would make more sense to just wait until today as I had promised a release today. My fault, got out of the habit of setting a calendar reminder. You may also

Re: [U-Boot] [PATCH] travis: Use kernel.org pre-built toolchain for riscv

2018-09-03 Thread Tom Rini
On Mon, Sep 03, 2018 at 05:50:39PM +0800, Bin Meng wrote: > Hi Tom, > > On Thu, Aug 30, 2018 at 9:12 PM Bin Meng wrote: > > > > This updates travis configuration to use kernel.org pre-built > > toolchain for riscv. > > > > Signed-off-by: Bin Meng > > --- > > > > .travis.yml | 5 ++--- > > 1

[U-Boot] [PATCH] ARM: omap3_logic: Enable DM_PMIC and DM_REGULATOR

2018-09-03 Thread Adam Ford
Enabling DM_PMIC, DM_REGULATOR_FIXED, and DM_REGULATOR_GPIO gives us the ability to better monitor voltages and enable hardware through the device tree. The TL4030 (TPS65950) is not yet migrated to DM, so this patch only enables the fixed and GPIO controlled regulators. Signed-off-by: Adam Ford

[U-Boot] [PATCH 1/1] efi_loader: description efi_update_capsule()

2018-09-03 Thread Heinrich Schuchardt
Correct the description of efi_update_capsule(). Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_runtime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/efi_loader/efi_runtime.c b/lib/efi_loader/efi_runtime.c index 2b4f399e9a..c5fbd91fa3 100644 ---

[U-Boot] [PATCH] ARM: omap3_logic: Enable Pinctrl

2018-09-03 Thread Adam Ford
The simple pinctrl driver currently available works with the omap3. Enabling this will use the device tree to automatically set the pin-muxing for various drivers. Signed-off-by: Adam Ford diff --git a/configs/omap3_logic_defconfig b/configs/omap3_logic_defconfig index c6acfab602..cea4e5521d

[U-Boot] [PATCH 1/1] docs: kernel-doc: fix parsing of function pointers

2018-09-03 Thread Heinrich Schuchardt
kernel-doc fails to parse function definitions like the one below efi_status_t efi_create_event(uint32_t type, efi_uintn_t notify_tpl, void (EFIAPI *notify_function) ( struct efi_event *event,

Re: [U-Boot] [PATCH 0/4] Add a pinctrl driver for Merrifield to pinmux I2C#6

2018-09-03 Thread Andy Shevchenko
On Mon, Sep 3, 2018 at 9:26 PM Andy Shevchenko wrote: > Thanks for doing this! > > I'll review patches individually. > By some reason Gmail doesn't show me Simon's and Bin's emails in the > message. Are they delivered? I reviewed, looks pretty much good, except few small comments in patch 2.

Re: [U-Boot] [PATCH 2/4] x86: tangier: pinmux: add API to configure protected pins

2018-09-03 Thread Andy Shevchenko
On Mon, Sep 3, 2018 at 7:39 PM Georgii Staroselskii wrote: > > This API is going to be used to configure some pins that are protected > for simple modification. > > It's not a comprehensive pinctrl driver but can be turned into one > when we need this in the future. Now it is planned to be used

Re: [U-Boot] [PATCH 0/4] Add a pinctrl driver for Merrifield to pinmux I2C#6

2018-09-03 Thread Andy Shevchenko
On Mon, Sep 3, 2018 at 7:41 PM Georgii Staroselskii wrote: > > We have lacked the support for any pinmuxing in U-Boot for Merrifield. > A need for pinmuxing some pins has arisen from the fact the I2C#6 is shared > with I2C#8 on Merrifield. The latter is not easily accessible because it's > a part

Re: [U-Boot] [PATCH 4/4] x86: tangier: acpi: add I2C6 node

2018-09-03 Thread Andy Shevchenko
On Mon, Sep 3, 2018 at 7:38 PM Georgii Staroselskii wrote: > > Now that we have I2C#6 working, it's time to add a corresponsing > ACPI binding. > Reviewed-by: Andy Shevchenko > Signed-off-by: Georgii Staroselskii > --- > arch/x86/include/asm/arch-tangier/acpi/southcluster.asl | 10

Re: [U-Boot] [PATCH 3/4] x86: dts: edison: configure I2C#6 pins

2018-09-03 Thread Andy Shevchenko
On Mon, Sep 3, 2018 at 7:41 PM Georgii Staroselskii wrote: > > Now that we have the pinctrl driver for Merrifield in place we can make > use of it and set I2C#6 pins appropriately. > > Initial configuration came from the firmware. Which quite likely has > been used in the phones, where that is

Re: [U-Boot] [PATCH 1/4] x86: cpu: introduce scu_ipc_raw_command()

2018-09-03 Thread Andy Shevchenko
On Mon, Sep 3, 2018 at 7:40 PM Georgii Staroselskii wrote: > > This interface will be used to configure properly some pins on > Merrifield that are shared with SCU. > > scu_ipc_raw_command() writes SPTR and DPTR registers before sending > a command to SCU. > > This code has been ported from Linux

[U-Boot] [PATCH 3/3] configs: omapl138_lcdk: Enable DM_SPI, DM_SPI_FLASH

2018-09-03 Thread Jagan Teki
Enable DM_SPI and DM_SPI_FLASH for omapl138_lcdk board. Cc: Peter Howard Signed-off-by: Jagan Teki --- Note: This would need spi DT node. configs/omapl138_lcdk_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig

[U-Boot] [PATCH 2/3] board: da8xxevm: Add SPL DM for serial, spi

2018-09-03 Thread Jagan Teki
This patch add SPL DM support for da8xxevm boards with SPL serial, SPI drivers supported via platdata. Cc: Adam Ford Signed-off-by: Jagan Teki --- board/davinci/da8xxevm/da850evm.c | 27 +++ configs/da850_am18xxevm_defconfig | 3 +++ configs/da850evm_defconfig|

[U-Boot] [PATCH 1/3] spi: davinci: Add platdata support

2018-09-03 Thread Jagan Teki
Davanci spi driver has DM support already, this patch add support for platdata so-that SPL can use it for low foot-print. Signed-off-by: Jagan Teki --- drivers/spi/davinci_spi.c | 47 +++--- include/dm/platform_data/spi_davinci.h | 15 2 files changed,

[U-Boot] [PATCH 1/1] efi_loader: fix typos in efi_runtime.c

2018-09-03 Thread Heinrich Schuchardt
Fix multiple typos Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_runtime.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/efi_loader/efi_runtime.c b/lib/efi_loader/efi_runtime.c index 27136cbedd..2b4f399e9a 100644 ---

[U-Boot] [PATCH 1/1] efi_loader: fix typos in efi_boottime.c

2018-09-03 Thread Heinrich Schuchardt
Fix numerous typos. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_boottime.c | 42 +-- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index f9f59b93f9..dfddcb5aa5 100644

[U-Boot] [PATCH 1/4] x86: cpu: introduce scu_ipc_raw_command()

2018-09-03 Thread Georgii Staroselskii
This interface will be used to configure properly some pins on Merrifield that are shared with SCU. scu_ipc_raw_command() writes SPTR and DPTR registers before sending a command to SCU. This code has been ported from Linux work done by Andy Shevchenko. Signed-off-by: Georgii Staroselskii ---

[U-Boot] [PATCH v3 1/5] efi_loader: capitalization table

2018-09-03 Thread Heinrich Schuchardt
This patch provides a define to initialize a table that maps lower to capital letters for Unicode code point 0x - 0x. Signed-off-by: Heinrich Schuchardt --- v3: remove codes < 0x80 from tables for code pages 437 and 1250 sort tables for code pages 437 and 1250 v2:

[U-Boot] [PATCH 4/4] x86: tangier: acpi: add I2C6 node

2018-09-03 Thread Georgii Staroselskii
Now that we have I2C#6 working, it's time to add a corresponsing ACPI binding. Signed-off-by: Georgii Staroselskii --- arch/x86/include/asm/arch-tangier/acpi/southcluster.asl | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/x86/include/asm/arch-tangier/acpi/southcluster.asl

[U-Boot] [PATCH 3/4] x86: dts: edison: configure I2C#6 pins

2018-09-03 Thread Georgii Staroselskii
Now that we have the pinctrl driver for Merrifield in place we can make use of it and set I2C#6 pins appropriately. Initial configuration came from the firmware. Which quite likely has been used in the phones, where that is not part of Atom peripheral, is in use. Thus we need to override the

[U-Boot] [PATCH v3 4/5] efi_loader: EFI_UNICODE_COLLATION_PROTOCOL

2018-09-03 Thread Heinrich Schuchardt
The patch implements the EFI_UNICODE_COLLATION_PROTOCOL. Signed-off-by: Heinrich Schuchardt --- v3: no change v2: add more comments --- MAINTAINERS| 2 + include/cp1250.h | 40 +++ include/cp437.h| 40

[U-Boot] [PATCH v3 5/5] efi_selftest: EFI_UNICODE_COLLATION_PROTOCOL

2018-09-03 Thread Heinrich Schuchardt
Provide a unit test for the EFI_UNICODE_COLLATION_PROTOCOL. Signed-off-by: Heinrich Schuchardt --- v3: no change v2: avoid lines over 80 characters --- lib/efi_selftest/Makefile | 1 + .../efi_selftest_unicode_collation.c | 260 ++

[U-Boot] [PATCH 2/4] x86: tangier: pinmux: add API to configure protected pins

2018-09-03 Thread Georgii Staroselskii
This API is going to be used to configure some pins that are protected for simple modification. It's not a comprehensive pinctrl driver but can be turned into one when we need this in the future. Now it is planned to be used only in one place. So that's why I decided not to polute the codebase

[U-Boot] [PATCH 0/4] Add a pinctrl driver for Merrifield to pinmux I2C#6

2018-09-03 Thread Georgii Staroselskii
We have lacked the support for any pinmuxing in U-Boot for Merrifield. A need for pinmuxing some pins has arisen from the fact the I2C#6 is shared with I2C#8 on Merrifield. The latter is not easily accessible because it's a part of a separate MCU we don't have easy access to. I2C#6 can be and

[U-Boot] [PATCH v3 00/05]efi_loader: EFI_UNICODE_COLLATION_PROTOCOL

2018-09-03 Thread Heinrich Schuchardt
This patchset implements the EFI_UNICODE_COLLATION_PROTOCOL and provides unit tests. An error in Unicode handling in the FAT file system shall be fixed after merging Takahiro's FAT patches. Until then some redundancy between old and new Unicode functions remains. v3: drop accepted

[U-Boot] [PATCH v3 2/5] lib: charset: upper/lower case conversion

2018-09-03 Thread Heinrich Schuchardt
Provide functions for upper and lower case conversion. Signed-off-by: Heinrich Schuchardt --- v3: no change v2: add configuration switch EFI_UNICODE_CAPITALIZATION --- include/charset.h | 16 ++ lib/charset.c | 47

[U-Boot] [PATCH v3 3/5] test: tests for utf_to_lower() utf_to_upper().

2018-09-03 Thread Heinrich Schuchardt
Provide unit tests for utf_to_lower() utf_to_upper(). Signed-off-by: Heinrich Schuchardt --- v3: add test for latin letter O with diaresis v2: use ut_assert*() for testing --- test/unicode_ut.c | 34 ++ 1 file changed, 34 insertions(+) diff --git

Re: [U-Boot] [PATCH] spi: mxc_spi: Fix chipselect with DM_SPI in SPL

2018-09-03 Thread Jagan Teki
On Mon, Sep 3, 2018 at 4:02 PM, Bernhard Messerklinger wrote: > Since CONFIG_IS_ENABLED(DM_SPI) is not working in SPL because > CONFIG_SPL_DM_SPI is not defined we should go with #ifdef CONFIG_DM_SPI. Better enabled it for SPL, did you find any size constraint? if yet try for platdata?

Re: [U-Boot] [PATCH v4] usb: ehci-generic: Add vbus-supply regulator support

2018-09-03 Thread Marek Vasut
On 09/03/2018 03:39 PM, Patrice Chotard wrote: > Add vbus-supply regulator support. > On some board vbus is not controlled by the phy but by > an external regulator. > > Signed-off-by: Patrice Chotard > --- > > Changes in v4: > - Remove useless dev->name in dev_dgb() Two remaining nits,

Re: [U-Boot] [PATCH 3/4] console: unify fgetc function when console MUX is deactivated

2018-09-03 Thread Patrick DELAUNAY
Hi Simon, > From: s...@google.com On Behalf Of Simon Glass > Sent: mercredi 8 août 2018 11:56 > To: Patrick DELAUNAY > On 3 August 2018 at 05:38, Patrick Delaunay wrote: > > Unify the fgetc function when MUX is activated or not: > > - always call tstc() : it is the normal behavior expected > >

[U-Boot] [PATCH v3 18/20] test_avb: Update pymark.buildconfigspec information for the AVB tests

2018-09-03 Thread Jens Wiklander
Update the pymark.buildconfigspec to depend on 'cmd_mmc' in addition to 'cmd_avb' for those tests that needs more a more complete MMC implementation or the "mmc" command. Signed-off-by: Jens Wiklander --- test/py/tests/test_avb.py | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-)

[U-Boot] [PATCH v3 20/20] Kconfig: sandbox: enable cmd_avb and dependencies

2018-09-03 Thread Jens Wiklander
Enables cmd_avb and its dependencies need to run the AVB tests. Signed-off-by: Jens Wiklander --- arch/Kconfig | 4 drivers/fastboot/Kconfig | 2 ++ 2 files changed, 6 insertions(+) diff --git a/arch/Kconfig b/arch/Kconfig index 8f10f3fc06e8..543362578f50 100644 ---

[U-Boot] [PATCH v3 16/20] test: tee: test TEE uclass

2018-09-03 Thread Jens Wiklander
Tests the TEE uclass with a sandbox tee driver. Reviewed-by: Simon Glass Signed-off-by: Jens Wiklander --- test/dm/Makefile | 1 + test/dm/tee.c| 98 2 files changed, 99 insertions(+) create mode 100644 test/dm/tee.c diff --git

[U-Boot] [PATCH v3 19/20] avb_verify: support sandbox configuration

2018-09-03 Thread Jens Wiklander
With CONFIG_SANDBOX malloc a buffer in get_sector_buf() and return that instead of returning CONFIG_FASTBOOT_BUF_ADDR since there's no such buffer reserved. Signed-off-by: Jens Wiklander --- include/avb_verify.h | 9 + 1 file changed, 9 insertions(+) diff --git a/include/avb_verify.h

[U-Boot] [PATCH v3 14/20] sandbox: imply CONFIG_TEE (TEE uclass)

2018-09-03 Thread Jens Wiklander
Signed-off-by: Jens Wiklander --- arch/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/Kconfig b/arch/Kconfig index bf1b4a9afac6..8f10f3fc06e8 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -91,6 +91,7 @@ config SANDBOX imply HASH_VERIFY imply LZMA imply

[U-Boot] [PATCH v3 13/20] sandbox: dt: add sandbox_tee node

2018-09-03 Thread Jens Wiklander
Adds a sandbox_tee node to enable the sandbox tee driver in all the sandbox dts files. Reviewed-by: Simon Glass Signed-off-by: Jens Wiklander --- arch/sandbox/dts/sandbox.dts | 4 arch/sandbox/dts/sandbox64.dts | 4 arch/sandbox/dts/test.dts | 4 3 files changed, 12

[U-Boot] [PATCH v3 12/20] tee: optee: support AVB trusted application

2018-09-03 Thread Jens Wiklander
Adds configuration option OPTEE_TA_AVB and a header file describing the interface to the Android Verified Boot 2.0 (AVB) trusted application provided by OP-TEE. Tested-by: Igor Opaniuk Reviewed-by: Igor Opaniuk Signed-off-by: Jens Wiklander --- MAINTAINERS| 1 +

[U-Boot] [PATCH v3 17/20] avb_verify: support using OP-TEE TA AVB

2018-09-03 Thread Jens Wiklander
With CONFIG_OPTEE_TA_AVB use the trusted application AVB provided by OP-TEE to manage rollback indexes and device lock status. Signed-off-by: Jens Wiklander --- common/avb_verify.c | 118 ++- doc/README.avb2 | 13 + include/avb_verify.h | 4

[U-Boot] [PATCH v3 15/20] tee: add sandbox driver

2018-09-03 Thread Jens Wiklander
Adds a sandboxtee driver which emulates a generic TEE with the OP-TEE AVB TA. Signed-off-by: Jens Wiklander --- drivers/tee/Kconfig | 12 +- drivers/tee/Makefile | 1 + drivers/tee/optee/Kconfig | 2 +- drivers/tee/sandbox.c | 299 ++

[U-Boot] [PATCH v3 10/20] arm: dt: hikey: Add optee node

2018-09-03 Thread Jens Wiklander
Sync with 14e21cb8f811 ("arm64: dt: hikey: Add optee node" from Linux kernel. Reviewed-by: Simon Glass Signed-off-by: Jens Wiklander --- arch/arm/dts/hi6220-hikey.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/dts/hi6220-hikey.dts b/arch/arm/dts/hi6220-hikey.dts index

[U-Boot] [PATCH v3 11/20] optee: support routing of rpmb data frames to mmc

2018-09-03 Thread Jens Wiklander
Adds support in optee supplicant to route signed (MACed) RPMB frames from OP-TEE Secure OS to MMC and vice versa to manipulate the RPMB partition. Tested-by: Igor Opaniuk Signed-off-by: Jens Wiklander --- drivers/tee/optee/Makefile| 1 + drivers/tee/optee/core.c | 8 ++

[U-Boot] [PATCH v3 06/20] Add UCLASS_TEE for Trusted Execution Environment

2018-09-03 Thread Jens Wiklander
Adds a uclass to interface with a TEE (Trusted Execution Environment). A TEE driver is a driver that interfaces with a trusted OS running in some secure environment, for example, TrustZone on ARM cpus, or a separate secure co-processor etc. The TEE subsystem can serve a TEE driver for a Global

[U-Boot] [PATCH v3 09/20] Documentation: tee uclass and op-tee driver

2018-09-03 Thread Jens Wiklander
Reviewed-by: Simon Glass Signed-off-by: Jens Wiklander --- doc/README.tee | 112 + 1 file changed, 112 insertions(+) create mode 100644 doc/README.tee diff --git a/doc/README.tee b/doc/README.tee new file mode 100644 index

[U-Boot] [PATCH v3 08/20] tee: add OP-TEE driver

2018-09-03 Thread Jens Wiklander
Adds a OP-TEE driver. * Targets ARM and ARM64 * Supports using any U-Boot memory as shared memory * Probes OP-TEE version using SMCs * Uses OPTEE message protocol version 2 to communicate with secure world Reviewed-by: Simon Glass Tested-by: Igor Opaniuk Signed-off-by: Jens Wiklander ---

[U-Boot] [PATCH v3 07/20] dt/bindings: add bindings for optee

2018-09-03 Thread Jens Wiklander
Sync with c8bfafb15944 ("dt/bindings: add bindings for optee") from Linux kernel. Introduces linaro prefix and adds bindings for ARM TrustZone based OP-TEE implementation. Signed-off-by: Jens Wiklander --- .../firmware/linaro,optee-tz.txt | 31 +++ 1 file changed,

[U-Boot] [PATCH v3 05/20] mmc: rpmb: add mmc_rpmb_route_frames()

2018-09-03 Thread Jens Wiklander
Adds mmc_rpmb_route_frames() to route RPMB data frames from/to an external entity. Tested-by: Igor Opaniuk Signed-off-by: Jens Wiklander --- drivers/mmc/rpmb.c | 160 + include/mmc.h | 2 + 2 files changed, 162 insertions(+) diff --git

[U-Boot] [PATCH v3 04/20] avb_verify: bugfix avb_ops_free() skipping free

2018-09-03 Thread Jens Wiklander
Before this patch avb_ops_free() was returning early if supplied "ops" argument was not NULL. This patch fixes this by inverting the condition. Signed-off-by: Jens Wiklander --- common/avb_verify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/avb_verify.c

[U-Boot] [PATCH v3 03/20] cmd: avb: print error message if command fails

2018-09-03 Thread Jens Wiklander
Reviewed-by: Simon Glass Signed-off-by: Jens Wiklander --- cmd/avb.c | 17 + 1 file changed, 17 insertions(+) diff --git a/cmd/avb.c b/cmd/avb.c index ca4b26d5d7b3..ff00be4cee38 100644 --- a/cmd/avb.c +++ b/cmd/avb.c @@ -35,6 +35,8 @@ int do_avb_init(cmd_tbl_t *cmdtp, int flag,

[U-Boot] [PATCH v3 02/20] cmd: avb read_rb: print rb_idx in hexadecimal

2018-09-03 Thread Jens Wiklander
Prior to this patch was do_avb_write_rb() reading supplied rb_idx as a hexadecimal number while do_avb_read_rb() printed the read out rb_idx as decimal number. For consistency change do_avb_read_rb() to print rb_idx as a hexadecimal number too. Reviewed-by: Simon Glass Reviewed-by: Igor Opaniuk

[U-Boot] [PATCH v3 01/20] dm: fdt: scan for devices under /firmware too

2018-09-03 Thread Jens Wiklander
Just as /chosen may contain devices /firmware may contain devices, scan for devices under /firmware too. Reviewed-by: Simon Glass Signed-off-by: Jens Wiklander --- drivers/core/root.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/core/root.c

[U-Boot] [PATCH v3 00/20] AVB using OP-TEE

2018-09-03 Thread Jens Wiklander
Hi, This adds support for storing AVB rollback indexes in the RPMB partition. The RPMB partition (content and key) is managed by OP-TEE (https://www.op-tee.org/) which is a secure OS leveraging ARM TrustZone. The Linux kernel can already support OP-TEE with reading and updating rollback indexes

Re: [U-Boot] [PATCH 1/9] dm: allow 4GB of DRAM on 32bit systems

2018-09-03 Thread Lokesh Vutla
On Sunday 02 September 2018 11:19 PM, Alexander Graf wrote: > > >> Am 02.09.2018 um 18:04 schrieb Vagrant Cascadian : >> >>> On 2018-09-02, Alexander Graf wrote: On 02.08.18 23:31, Dr. Philipp Tomsich wrote: > On 2 Aug 2018, at 22:36, Simon Glass wrote: > > On 26 July

[U-Boot] [PATCH] ARM: dts: logicpd-torpedo-37xx-devkit-u-boot: Fix MMC Card Detect

2018-09-03 Thread Adam Ford
When re-syncing the DTS files from the kernel, something caused the MMC driver to no longer detect the MMC card. Undoing the CD-invert appears to fix the issue. Fixes: e6ea2390cde3 ("ARM: DTS: Resync LogicPD-Torpedo-37xx-devkit with Linux 4.18-RC4") Signed-off-by: Adam Ford diff --git

Re: [U-Boot] [PATCH 2/4] serial: protect access to serial rx buffer

2018-09-03 Thread Stefan
Hi Patrick, On 03.09.2018 15:35, Patrick DELAUNAY wrote: Hi Simon and Stefan, Sorry for my late answer (I just come back from my summer holiday) From: s...@google.com On Behalf Of Simon Glass Sent: mercredi 8 août 2018 11:56 On 3 August 2018 at 05:38, Patrick Delaunay wrote: Add test to

[U-Boot] Breakage in ids8313 due to u-boot-imx

2018-09-03 Thread Stefano Babic
Hi Denis, you introduced a way to switch the bus for the I2C counter. I merged these changes into u-boot-imx (they were related to GE i.MX boards), Tom found that this breaks ids8313 (PowerPC). In fact, ids8313 could not set CONFIG_SYS_BOOTCOUNT_I2C_BUS (it is new), and the fallback in comment

[U-Boot] [PATCH v4] usb: ehci-generic: Add vbus-supply regulator support

2018-09-03 Thread Patrice Chotard
Add vbus-supply regulator support. On some board vbus is not controlled by the phy but by an external regulator. Signed-off-by: Patrice Chotard --- Changes in v4: - Remove useless dev->name in dev_dgb() Changes in v3: - Update test on device_get_supply_regulator() call -

Re: [U-Boot] [PATCH 2/4] serial: protect access to serial rx buffer

2018-09-03 Thread Patrick DELAUNAY
Hi Simon and Stefan, Sorry for my late answer (I just come back from my summer holiday) > From: s...@google.com On Behalf Of Simon Glass > Sent: mercredi 8 août 2018 11:56 > > On 3 August 2018 at 05:38, Patrick Delaunay wrote: > > Add test to avoid access to rx buffer when this buffer is

Re: [U-Boot] [PATCH 02/13] pico-imx6ul: Convert to SPL

2018-09-03 Thread Michael Nazzareno Trimarchi
Hi Fabio On Mon, Sep 3, 2018 at 3:01 PM Fabio Estevam wrote: > > Hi Jagan, > > On Sun, Sep 2, 2018 at 3:07 PM, Jagan Teki wrote: > > >> --- /dev/null > >> +++ b/board/technexion/pico-imx6ul/spl.c > >> @@ -0,0 +1,115 @@ > >> +// SPDX-License-Identifier: GPL-2.0+ > > > > space > > > > >> +static

Re: [U-Boot] [PATCH 02/13] pico-imx6ul: Convert to SPL

2018-09-03 Thread Fabio Estevam
Hi Jagan, On Sun, Sep 2, 2018 at 3:07 PM, Jagan Teki wrote: >> --- /dev/null >> +++ b/board/technexion/pico-imx6ul/spl.c >> @@ -0,0 +1,115 @@ >> +// SPDX-License-Identifier: GPL-2.0+ > > space > >> +static void ccgr_init(void) >> +{ >> + struct mxc_ccm_reg *ccm = (struct mxc_ccm_reg

Re: [U-Boot] [PATCH] amlogic: board p212: Fix Ethernet PHY init

2018-09-03 Thread Neil Armstrong
Hi jasper, On 28/08/2018 22:26, Jasper Kcoding wrote: > Without this patch the Ethernet PHY on the p212 board does not get fully > configured. > When this happens Ethernet does not function. > > The similar libretech-cc and khadas-vim boards have this code already. > That's why the Ethernet on

[U-Boot] [PATCH] spi: mxc_spi: Fix chipselect with DM_SPI in SPL

2018-09-03 Thread Bernhard Messerklinger
Since CONFIG_IS_ENABLED(DM_SPI) is not working in SPL because CONFIG_SPL_DM_SPI is not defined we should go with #ifdef CONFIG_DM_SPI. Signed-off-by: Bernhard Messerklinger --- drivers/spi/mxc_spi.c | 28 1 file changed, 16 insertions(+), 12 deletions(-) diff

Re: [U-Boot] [PATCH] travis: Use kernel.org pre-built toolchain for riscv

2018-09-03 Thread Bin Meng
Hi Tom, On Thu, Aug 30, 2018 at 9:12 PM Bin Meng wrote: > > This updates travis configuration to use kernel.org pre-built > toolchain for riscv. > > Signed-off-by: Bin Meng > --- > > .travis.yml | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > Since this is travis-ci changes,

[U-Boot] [PATCH v2] sandbox: Build with -fPIC

2018-09-03 Thread Andy Shevchenko
Sandbox is not a real bootloader and it does require a position independent code to be supported. Thus, build it with -fPIC explicitly. Fixes: 16940f720f9b ("Makefile: Don't generate position independent code") Signed-off-by: Andy Shevchenko Reported-by: Simon Glass Tested-by: Bin Meng --- -

Re: [U-Boot] [PATCH v1] sandbox: Build with -fPIC

2018-09-03 Thread Bin Meng
Hi Andy, On Mon, Sep 3, 2018 at 4:33 PM Andy Shevchenko wrote: > > Sandbox is not a real bootloader and it does require > a position independent code to be supported. > > Thus, build it with -fPIC explicitly. > > Fixes: 16940f720f9b ("Makefile: Don't generate position independent code") >

Re: [U-Boot] [PATCH] serial: mxc: Add match string for i.mx6 quad/dual lite serial

2018-09-03 Thread Hannes Schmelzer
On 09/03/2018 10:17 AM, Bernhard Messerklinger wrote: Signed-off-by: Bernhard Messerklinger --- drivers/serial/serial_mxc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/serial/serial_mxc.c b/drivers/serial/serial_mxc.c index 4f1f822c58..e586c18cf0 100644 ---

Re: [U-Boot] [PATCH v6 20/31] mtd: declare MTD_PARTITIONS symbol in Kconfig

2018-09-03 Thread Miquel Raynal
Hi Jagan, Jagan Teki wrote on Mon, 3 Sep 2018 13:17:13 +0530: > On Thu, Aug 16, 2018 at 9:00 PM, Miquel Raynal > wrote: > > UBI selects MTD_PARTITIONS which is the symbol to compile > > drivers/mtd/mtdpart.c. Unfortunately, the symbol was not defined in > > Kconfig and this worked only with

[U-Boot] [PATCH V2] MMC: davinici_mmc: Enable CD and WP with DM and OF_CONTROL

2018-09-03 Thread Adam Ford
When used with a device tree, this will extract the card detect and write protect pins from the device tree and configure them accordingly. This assumes the GPIO_ACTIVE_LOW/HIGH is supported by da8xx_gpio. Signed-off-by: Adam Ford --- V2: Wrap the CD and WP GPIO references around DM_GPIO to

[U-Boot] [PATCH v1] sandbox: Build with -fPIC

2018-09-03 Thread Andy Shevchenko
Sandbox is not a real bootloader and it does require a position independent code to be supported. Thus, build it with -fPIC explicitly. Fixes: 16940f720f9b ("Makefile: Don't generate position independent code") Signed-off-by: Andy Shevchenko Reported-by: Simon Glass --- arch/sandbox/config.mk

Re: [U-Boot] [PATCH v6 20/31] mtd: declare MTD_PARTITIONS symbol in Kconfig

2018-09-03 Thread Miquel Raynal
Hi Jagan, Jagan Teki wrote on Mon, 3 Sep 2018 13:17:13 +0530: > On Thu, Aug 16, 2018 at 9:00 PM, Miquel Raynal > wrote: > > UBI selects MTD_PARTITIONS which is the symbol to compile > > drivers/mtd/mtdpart.c. Unfortunately, the symbol was not defined in > > Kconfig and this worked only with

Re: [U-Boot] [PATCH v7 10/13] cmd: mtd: add 'mtd' command

2018-09-03 Thread Miquel Raynal
Hi Jagan, Jagan Teki wrote on Mon, 3 Sep 2018 13:34:21 +0530: > On Mon, Sep 3, 2018 at 12:24 PM, Miquel Raynal > wrote: > > Hi Stefan, > > > > Stefan Roese wrote on Sat, 1 Sep 2018 10:59:56 +0200: > > > >> On 31.08.2018 16:57, Miquel Raynal wrote: > >> > There should not be a 'nand'

[U-Boot] [PATCH] serial: mxc: Add match string for i.mx6 quad/dual lite serial

2018-09-03 Thread Bernhard Messerklinger
Signed-off-by: Bernhard Messerklinger --- drivers/serial/serial_mxc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/serial/serial_mxc.c b/drivers/serial/serial_mxc.c index 4f1f822c58..e586c18cf0 100644 --- a/drivers/serial/serial_mxc.c +++ b/drivers/serial/serial_mxc.c @@ -339,6

Re: [U-Boot] [PATCH v7 10/13] cmd: mtd: add 'mtd' command

2018-09-03 Thread Jagan Teki
On Mon, Sep 3, 2018 at 12:24 PM, Miquel Raynal wrote: > Hi Stefan, > > Stefan Roese wrote on Sat, 1 Sep 2018 10:59:56 +0200: > >> On 31.08.2018 16:57, Miquel Raynal wrote: >> > There should not be a 'nand' command, a 'sf' command and certainly not >> > a new 'spi-nand' command. Write a 'mtd'

Re: [U-Boot] [PATCH v1] Makefile: Don't generate position independent code

2018-09-03 Thread Andy Shevchenko
On Sun, Sep 02, 2018 at 05:50:24PM -0600, Simon Glass wrote: > Hi, > > On 10 August 2018 at 00:04, Bin Meng wrote: > > On Thu, Aug 9, 2018 at 9:07 PM, Andy Shevchenko > > wrote: > >> On Thu, 2018-08-09 at 14:25 +0200, Heinrich Schuchardt wrote: > >> > >>> I did not test loading of > >>> Linux

[U-Boot] [PATCH] imx: ge: remove comments from autogenerated files

2018-09-03 Thread Stefano Babic
defconfigs files should be generated and they should not contain additional comments because they can be lost. Force the rule dropping the commnts inside the GE boards. Signed-off-by: Stefano Babic CC: Denis Zalevskiy Reported-by: Tom Rini --- configs/ge_bx50v3_defconfig | 31

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

2018-09-03 Thread Stefano Babic
On 02/09/2018 16:15, Tom Rini wrote: > On Sun, Sep 02, 2018 at 03:20:25PM +0200, Sébastien Szymanski wrote: > >> Hi Tom, >> >>> On 1 Sep 2018, at 13:37, Tom Rini wrote: >>> >>> - So I start reading the whole diff and I see: >>> commit 8e00d802e402d2a6734a88ebeb77a70efcfc354c >>> Author:

Re: [U-Boot] [PATCH v6 20/31] mtd: declare MTD_PARTITIONS symbol in Kconfig

2018-09-03 Thread Jagan Teki
On Thu, Aug 16, 2018 at 9:00 PM, Miquel Raynal wrote: > UBI selects MTD_PARTITIONS which is the symbol to compile > drivers/mtd/mtdpart.c. Unfortunately, the symbol was not defined in > Kconfig and this worked only with board files defining it. Fix this by > adding a boolean in Kconfig so boards

  1   2   >