[U-Boot] [PATCH 2/2] x86: ich-spi: Clear atomic preop only when SPI settings are not locked

2017-08-26 Thread Bin Meng
The atomic preop register can only be written when SPI settings are not locked, otherwise it's read-only. Signed-off-by: Bin Meng --- drivers/spi/ich.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/spi/ich.c b/drivers/spi/ich.c index

[U-Boot] [PATCH 1/2] x86: ich-spi: Remove useless assignment in ich_spi_xfer()

2017-08-26 Thread Bin Meng
In ich_spi_xfer() when the driver presets control fields, control variable gets assigned twice. Apparently only the last assignment takes effect. Remove the other one. Signed-off-by: Bin Meng --- drivers/spi/ich.c | 2 -- 1 file changed, 2 deletions(-) diff --git

[U-Boot] [PATCH] cmd/spl.c: Include for fdt_totalsize

2017-08-26 Thread Tom Rini
In order to be able to reliably use fdt_totalsize, we must have included. Fixes: 767cb74a0028 ("cmd: spl: provide address and size of prepared FDT ...") Signed-off-by: Tom Rini --- cmd/spl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/spl.c b/cmd/spl.c index

Re: [U-Boot] Patman avoiding bounces

2017-08-26 Thread Bin Meng
+Simon, Tom, Wolfgang, On Sun, Aug 27, 2017 at 7:59 AM, Chris Packham wrote: > Hi, > > I recently sent a few patches using patman and ran into two problems. > > The first is a set of undeliverable addresses. This isn't a big problem, > more of an annoyance but it also

Re: [U-Boot] [PATCH 5/5] x86: fsp: Configure SPI opcode registers before SPI is locked down

2017-08-26 Thread Bin Meng
Hi Simon, On Sun, Aug 27, 2017 at 6:40 AM, Simon Glass wrote: > Hi Bin, > > On 26 August 2017 at 07:58, Bin Meng wrote: >> Hi Simon, >> >> On Sat, Aug 26, 2017 at 9:39 PM, Simon Glass wrote: >>> Hi Bin, >>> >>> On 15 August 2017 at

Re: [U-Boot] [PATCH 11/13] x86: braswell: Add FSP configuration

2017-08-26 Thread Bin Meng
Hi Simon, On Sun, Aug 27, 2017 at 6:39 AM, Simon Glass wrote: > Hi Bin, > > On 26 August 2017 at 07:56, Bin Meng wrote: >> Hi Simon, >> >> On Sat, Aug 26, 2017 at 9:39 PM, Simon Glass wrote: >>> On 15 August 2017 at 23:42, Bin Meng

[U-Boot] Patman avoiding bounces

2017-08-26 Thread Chris Packham
Hi, I recently sent a few patches using patman and ran into two problems. The first is a set of undeliverable addresses. This isn't a big problem, more of an annoyance but it also means that anyone replying to my patches also gets the same set of bounces. Would adding a blacklist feature be a

Re: [U-Boot] [RFC PATCH 4/4] usb: net: migrate USB Ethernet adapters to Kconfig

2017-08-26 Thread Simon Glass
On 20 August 2017 at 04:20, Chris Packham wrote: > This migrates ASIX, ASIX88179, MCS7830, RTL8152 and SMSC95XX to Kconfig. > Update defconfigs. > > Signed-off-by: Chris Packham > --- > > configs/arndale_defconfig | 4

Re: [U-Boot] [RFC PATCH 3/4] usb: net: migrate CONFIG_USB_HOST_ETHER to Kconfig

2017-08-26 Thread Chris Packham
On 27/08/2017 11:13 AM, "Simon Glass" wrote: On 20 August 2017 at 04:20, Chris Packham wrote: > CONFIG_USB_HOST_ETHER is the framework that the drivers are dependent on > USB_HOST_ETHER. Use this as a menu and move the existing LAN75XX and > LAN78XX

Re: [U-Boot] [RFC PATCH 3/4] usb: net: migrate CONFIG_USB_HOST_ETHER to Kconfig

2017-08-26 Thread Simon Glass
On 20 August 2017 at 04:20, Chris Packham wrote: > CONFIG_USB_HOST_ETHER is the framework that the drivers are dependent on > USB_HOST_ETHER. Use this as a menu and move the existing LAN75XX and > LAN78XX options under new menu. Finally update the defconfigs that need >

Re: [U-Boot] [PATCH] ARM: mvebu: Convert CONFIG_MVNETA to Kconfig

2017-08-26 Thread Simon Glass
On 21 August 2017 at 02:17, Chris Packham wrote: > This converts the following to Kconfig: >CONFIG_MVNETA > > Signed-off-by: Chris Packham > --- > > arch/arm/mach-mvebu/include/mach/config.h | 3 --- > configs/clearfog_defconfig

Re: [U-Boot] [RFC PATCH 2/4] Kconfig: drop CONFIG_USB_ETHER_RNDIS

2017-08-26 Thread Simon Glass
On 20 August 2017 at 04:20, Chris Packham wrote: > This is not a valid option. Drop it. > > Signed-off-by: Chris Packham > --- > > include/configs/cl-som-am57x.h | 1 - > include/configs/cm_t54.h | 1 - > include/configs/omap3_beagle.h | 1

Re: [U-Boot] [RFC PATCH 1/4] Kconfig: drop CONFIG_USB_ETHER_DM9601

2017-08-26 Thread Simon Glass
On 20 August 2017 at 04:20, Chris Packham wrote: > This is not a valid option. Drop it. > > Signed-off-by: Chris Packham > --- > > include/configs/dragonboard410c.h | 1 - > scripts/config_whitelist.txt | 1 - > 2 files changed, 2

Re: [U-Boot] [PATCH 1/3] rockchip: rk3399-evb: add script for atf fit

2017-08-26 Thread Simon Glass
Hi, On 17 August 2017 at 23:07, Kever Yang wrote: > Add a script to generate binaries from bl31.elf, and generate > u-boot.its file for FIT image including u-boot, dtb and atf binaries. > > Signed-off-by: Kever Yang > --- > >

[U-Boot] [PATCH 21/23] efi_loader: fix efi_net_get_status

2017-08-26 Thread Heinrich Schuchardt
The returned interrupt status was wrong. As out transmit buffer is empty we need to always set EFI_SIMPLE_NETWORK_TRANSMIT_INTERRUPT. When we have received a packet we need to set EFI_SIMPLE_NETWORK_RECEIVE_INTERRUPT. Furthermore we should call efi_timer_check() to handle events.

[U-Boot] [PATCH 10/23] efi_loader: open_info in OpenProtocol

2017-08-26 Thread Heinrich Schuchardt
efi_open_protocol and close_protocol have to keep track of opened protocols. So we add an array open_info to each protocol of each handle. OpenProtocol has enter the agent and controller handle information into this array. Signed-off-by: Heinrich Schuchardt ---

[U-Boot] [PATCH 17/23] efi_loader: efi_net: hwaddr_size = 6

2017-08-26 Thread Heinrich Schuchardt
The length of a MAC address is 6. We have to set this length in the EFI_SIMPLE_NETWORK_MODE structure of the EFI_SIMPLE_NETWORK_PROTOCOL. Without this patch iPXE fails to initialize the network with error message SNP MAC(001e0633bcbf,0x0) has invalid hardware address length 0 Signed-off-by:

[U-Boot] [PATCH 22/23] efi_loader: set parent handle in efi_load_image

2017-08-26 Thread Heinrich Schuchardt
The parent_handle of the loaded image must be set. Add the file path protocol from the provided parameter. Set system table. Add parameter checks. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_boottime.c | 31 +-- 1 file changed, 29

[U-Boot] [PATCH 20/23] efi_loader: use events for efi_net_receive

2017-08-26 Thread Heinrich Schuchardt
A timer event is defined. The timer handler cares for receiving new packets. efi_timer_check is called both in efi_net_transmit and efi_net_receive to enable events during network communication. Calling efi_timer_check in efi_net_get_status is implemented in a separate patch. Signed-off-by:

[U-Boot] [PATCH 14/23] efi_loader: pass GUIDs as const efi_guid_t *

2017-08-26 Thread Heinrich Schuchardt
We need to call some boottime services internally. Our GUIDs are stored as const efi_guid_t *. The boottime services never change GUIDs. So we can define the parameters as const efi_guid_t *. Signed-off-by: Heinrich Schuchardt --- include/efi_api.h | 44

[U-Boot] [PATCH 12/23] efi_loader: implement OpenProtocolInformation

2017-08-26 Thread Heinrich Schuchardt
efi_open_protocol_information provides the agent and controller handles as well as the attributes and open count of an protocol on a handle. Cc: Rob Clark Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_boottime.c | 55

[U-Boot] [PATCH 23/23] efi_loader: implement SetWatchdogTimer

2017-08-26 Thread Heinrich Schuchardt
The watchdog is initialized with a 5 minute timeout period. It can be reset by SetWatchdogTimer. It is stopped by ExitBoottimeServices. Signed-off-by: Heinrich Schuchardt --- cmd/bootefi.c | 1 + include/efi_loader.h | 4 +++

[U-Boot] [PATCH 16/23] efi_loader: implement DisconnectController

2017-08-26 Thread Heinrich Schuchardt
Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_boottime.c | 77 ++- 1 file changed, 76 insertions(+), 1 deletion(-) diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index 1069da7d79..c5a17b6252

[U-Boot] [PATCH 19/23] efi_loader: correct bits of receive_filters bit mask

2017-08-26 Thread Heinrich Schuchardt
Remove extraneous commas. Add comment. Signed-off-by: Heinrich Schuchardt --- include/efi_api.h | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/include/efi_api.h b/include/efi_api.h index b2838125d7..029b57ca5e 100644 --- a/include/efi_api.h

[U-Boot] [PATCH 13/23] efi_loader: non-static efi_open_protocol, efi_close_protocol

2017-08-26 Thread Heinrich Schuchardt
We need efi_open_protocol and efi_close_protocol for implementing other functions. So they shouldn't be static. Signed-off-by: Heinrich Schuchardt --- include/efi_loader.h | 9 + lib/efi_loader/efi_boottime.c | 9 - 2 files changed, 13 insertions(+),

[U-Boot] [PATCH 15/23] efi_loader: implement ConnectController

2017-08-26 Thread Heinrich Schuchardt
Signed-off-by: Heinrich Schuchardt --- include/efi_api.h | 22 include/efi_loader.h | 1 + lib/efi_loader/efi_boottime.c | 119 +- 3 files changed, 141 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH 09/23] efi_loader: simplify efi_uninstall_protocol_interface

2017-08-26 Thread Heinrich Schuchardt
Use function efi_search_obj and efi_search_protocol to simplify the coding. Do away with efi_uninstall_protocol_interface_ext. We can use EFI_CALL for internal usage. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_boottime.c | 56

[U-Boot] [PATCH 05/23] efi_loader: rework efi_search_obj

2017-08-26 Thread Heinrich Schuchardt
EFI_HANDLEs are used both in boottime and in runtime services. efi_search_obj is a function that can be used to validate handles. So let's make it accessible via efi_loader.h. We can simplify the coding using list_for_each_entry. Signed-off-by: Heinrich Schuchardt ---

[U-Boot] [PATCH 18/23] efi_net: return EFI_UNSUPPORTED where appropriate

2017-08-26 Thread Heinrich Schuchardt
U-Boot does not implement all functions of the simple network protocol. The unimplemented functions return either of EFI_SUCCESS and EFI_INVALID_PARAMETER. The UEFI spec foresees to return EFI_UNSUPPORTED in these cases. Signed-off-by: Heinrich Schuchardt ---

[U-Boot] [PATCH 11/23] efi_loader: open_info in CloseProtocol

2017-08-26 Thread Heinrich Schuchardt
efi_open_protocol and efi_close_protocol have to keep track of opened protocols. efi_close_protocol has to mark the appropriate entry as empty. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_boottime.c | 33 - 1 file changed, 32

[U-Boot] [PATCH 07/23] efi_loader: simplify efi_install_protocol_interface

2017-08-26 Thread Heinrich Schuchardt
Use function efi_search_obj and efi_search_protocol to simplify the coding. Do away with efi_install_protocol_interface_ext. We can use EFI_CALL for internal usage. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_boottime.c | 76

[U-Boot] [PATCH 06/23] efi_loader: new function efi_search_protocol

2017-08-26 Thread Heinrich Schuchardt
In multiple functions we are searching for the protocol of a handle. This patch provides a new function efi_search_protocol that we can use to avoid duplicating code. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_boottime.c | 25 + 1 file

[U-Boot] [PATCH 03/23] efi_loader: support 16 protocols per efi_object

2017-08-26 Thread Heinrich Schuchardt
8 protocols per efi_object is insufficient for iPXE. Signed-off-by: Heinrich Schuchardt --- include/efi_loader.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/efi_loader.h b/include/efi_loader.h index 6f71a6202b..e8fb4fbb0a 100644 ---

[U-Boot] [PATCH 08/23] efi_loader: allow creating new handles

2017-08-26 Thread Heinrich Schuchardt
In efi_install_protocol_interface support creating a new handle. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_boottime.c | 22 -- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/lib/efi_loader/efi_boottime.c

[U-Boot] [PATCH 04/23] efi_loader: rework efi_locate_handle

2017-08-26 Thread Heinrich Schuchardt
Check the parameters in efi_locate_handle. Use list_for_each_entry instead of list_for_each. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_boottime.c | 42 +++--- 1 file changed, 31 insertions(+), 11 deletions(-) diff --git

[U-Boot] [PATCH 02/23] efi_loader: notify when ExitBootServices is invoked

2017-08-26 Thread Heinrich Schuchardt
All events of type EVT_SIGNAL_EXIT_BOOT_SERVICES have to be notified when ExitBootServices is invoked. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_boottime.c | 9 + 1 file changed, 9 insertions(+) diff --git a/lib/efi_loader/efi_boottime.c

[U-Boot] [PATCH 01/23] efi_loader: allow return value in EFI_CALL

2017-08-26 Thread Heinrich Schuchardt
Macro EFI_CALL was introduced to call an UEFI function. Unfortunately it does not support return values. Most UEFI functions have a return value. So let's rename EFI_CALL to EFI_CALL_VOID and introduce a new EFI_CALL macro that supports return values. Cc: Rob Clark

[U-Boot] [PATCH 00/23] efi_loader implement missing functions

2017-08-26 Thread Heinrich Schuchardt
This patch sequence contains all patches needed to load iPXE and use it for downloading and executing images via https or http or to mount iSCSI volumes. Network speed on an Odroid C2 reached 30 MB/s which should be enough for most use cases. I have tested the following iPXE commands

Re: [U-Boot] [PATCH 5/5] x86: fsp: Configure SPI opcode registers before SPI is locked down

2017-08-26 Thread Simon Glass
Hi Bin, On 26 August 2017 at 07:58, Bin Meng wrote: > Hi Simon, > > On Sat, Aug 26, 2017 at 9:39 PM, Simon Glass wrote: >> Hi Bin, >> >> On 15 August 2017 at 23:38, Bin Meng wrote: >>> Some Intel FSP (like Braswell) does SPI lock-down

Re: [U-Boot] [PATCH 11/13] x86: braswell: Add FSP configuration

2017-08-26 Thread Simon Glass
Hi Bin, On 26 August 2017 at 07:56, Bin Meng wrote: > Hi Simon, > > On Sat, Aug 26, 2017 at 9:39 PM, Simon Glass wrote: >> On 15 August 2017 at 23:42, Bin Meng wrote: >>> Add FSP related configuration for Braswell. >>> >>>

[U-Boot] [PATCH] ARM: DRA72x: Add support for detection of DRA71x SR 2.1

2017-08-26 Thread Vishal Mahaveer
DRA71x processors are reduced pin and software compatible derivative of DRA72 processors. Add support for detection of SR2.1 version of DRA71x family of processors. Signed-off-by: Vishal Mahaveer --- arch/arm/include/asm/arch-omap5/omap.h | 1 +

Re: [U-Boot] [PATCH] mtdparts: Fix uninitialized scalar usage

2017-08-26 Thread Tom Rini
On Sat, Aug 26, 2017 at 05:05:30PM -0400, Tom Rini wrote: > When reworking this code to fix other issues found by Coverity, I forgot > to ensure tmp_ep was always cleared before use. > > Reported-by: Coverity (CID: 166612) > Fixes: bc028345acc4 ("mtdparts: Fix final outstanding issue reported by

[U-Boot] [PATCH] mtdparts: Fix uninitialized scalar usage

2017-08-26 Thread Tom Rini
When reworking this code to fix other issues found by Coverity, I forgot to ensure tmp_ep was always cleared before use. Reported-by: Coverity (CID: 166612) Fixes: bc028345acc4 ("mtdparts: Fix final outstanding issue reported by Coverity") Signed-off-by: Tom Rini ---

Re: [U-Boot] [PATCH v3] rpi: Enable USB keyboard support

2017-08-26 Thread Tom Rini
On Sat, Aug 26, 2017 at 11:43:44AM -0600, Simon Glass wrote: > This is currently disabled, so USB keyboards are not detected in U-Boot. > Enable this option to fix that. > > Signed-off-by: Simon Glass > Tested-by: Jonathan Gray > Reviewed-by: Bin Meng

Re: [U-Boot] scripts: objdiff: Ignore debug info when comparing

2017-08-26 Thread Tom Rini
On Wed, Aug 23, 2017 at 10:59:31AM +0900, Masahiro Yamada wrote: > From: Stephen Boyd > > If the kernel is configured to be built with debug symbols, or > has bug tables, comparing files may not work if line numbers > change. This makes comparing object files with these

Re: [U-Boot] [U-Boot, 1/2] igep00x0: move SPL routines into separate file

2017-08-26 Thread Tom Rini
On Thu, Aug 17, 2017 at 03:06:45AM +0200, Ladislav Michl wrote: > Avoid cluttering board file with CONFIG_SPL_BUILD ifdefs > by moving SPL related functions into separate file. > > Signed-off-by: Ladislav Michl > Tested-by: Pau Pajuelo > Acked-by: Enric

Re: [U-Boot] [U-Boot, v4] ARMv8/sec_firmware : Update chosen/kaslr-seed with random number

2017-08-26 Thread Tom Rini
On Wed, Aug 16, 2017 at 03:58:10PM +0530, Ruchika Gupta wrote: > kASLR support in kernel requires a random number to be passed via > chosen/kaslr-seed propert. sec_firmware generates this random seed > which can then be passed in the device tree node. > > sec_firmware reserves JR3 for it's own

Re: [U-Boot] [U-Boot, v2, 2/3] arm: am57xx: Define Android boot arguments

2017-08-26 Thread Tom Rini
On Wed, Aug 16, 2017 at 03:55:49PM +0300, Semen Protsenko wrote: > Signed-off-by: Sam Protsenko Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list

Re: [U-Boot] spl: stm32: make falcon mode activation configurable

2017-08-26 Thread Tom Rini
On Sun, Aug 20, 2017 at 11:05:37AM -0700, Vikas Manocha wrote: > With this change, it will be possible to de-select falcon mode & spl > will only boot U-Boot. > > Signed-off-by: Vikas Manocha > Suggested-by: Bo Shen > Reviewed-by: Tom Rini

Re: [U-Boot] [U-Boot, v2, 1/3] arm: omap: Define command for booting Android from eMMC

2017-08-26 Thread Tom Rini
On Wed, Aug 16, 2017 at 03:55:48PM +0300, Semen Protsenko wrote: > If SD card is present -- try to boot from it first. If no -- try to boot > Android from eMMC. > > Signed-off-by: Sam Protsenko Applied to u-boot/master, thanks! -- Tom signature.asc Description:

Re: [U-Boot] disk: part: align buffer so it can be used with DMA enabled drivers

2017-08-26 Thread Tom Rini
On Wed, Aug 23, 2017 at 09:46:17AM -0700, Stefan Agner wrote: > From: Stefan Agner > > When using ISO partitions with a DMA enabled block device driver > reading the ISO partition leads to unaligned DMA operations: > CACHE: Misaligned operation at range [bffb7da8,

Re: [U-Boot] [U-Boot, 2/2] arch/arm/cpu/arm926ejs/spear/cpu.c: guard do_switch_ecc() with CONFIG_NAND_FSMC

2017-08-26 Thread Tom Rini
On Tue, Aug 15, 2017 at 10:52:45PM +0200, Thomas Petazzoni wrote: > do_switch_ecc() calls fsmc_nand_switch_ecc(), which is a direct > function call into drivers/mtd/nand/fsmc_nand.c. However, this > function is not guarded by CONFIG_NAND_FSMC, which results to a build > failure if

Re: [U-Boot] cmd: spl: provide address and size of prepared FDT in environment

2017-08-26 Thread Tom Rini
On Thu, Aug 17, 2017 at 09:01:48PM +0200, Anatolij Gustschin wrote: > Writing prepared FDT to persistent storage should be possible in > scripts. Create environment variables containing address and size > of the updated FDT. Scripts can use these variables after running > 'spl export fdt ...'

Re: [U-Boot] doc: verified-boot: fix typos

2017-08-26 Thread Tom Rini
On Tue, Aug 22, 2017 at 03:19:20PM +0900, Masahiro Yamada wrote: > Signed-off-by: Masahiro Yamada Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list

Re: [U-Boot] [U-Boot, PATCHv2, 2/2] igep00x0: merge igep0020 and igep0030 defconfigs to igep00x0_defconfig

2017-08-26 Thread Tom Rini
On Thu, Aug 17, 2017 at 03:09:14AM +0200, Ladislav Michl wrote: > From: Pau Pajuelo > > Update igep00x0 code with the following features: Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___

Re: [U-Boot] [U-Boot, v2, 2/2] board: atmel: Use the new PIT timer driver

2017-08-26 Thread Tom Rini
On Tue, Aug 15, 2017 at 05:40:27PM +0800, wenyou.y...@microchip.com wrote: > Use the Atmel PIT timer driver which supports the driver model > and device tree. > > Signed-off-by: Wenyou Yang Applied to u-boot/master, thanks! -- Tom signature.asc Description:

Re: [U-Boot] [U-Boot, v2, 3/3] arm: dra7xx: Define Android boot arguments

2017-08-26 Thread Tom Rini
On Wed, Aug 16, 2017 at 03:55:50PM +0300, Semen Protsenko wrote: > Signed-off-by: Sam Protsenko Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list

Re: [U-Boot] ram: kconfig: s/SPL/TPL/ in TPL_RAM help text

2017-08-26 Thread Tom Rini
On Fri, Aug 25, 2017 at 08:16:00PM +0530, Jagannadha Sutradharudu Teki wrote: > From: Jagan Teki > > Signed-off-by: Jagan Teki Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature

Re: [U-Boot] mtdparts: Fix final outstanding issue reported by Coverity

2017-08-26 Thread Tom Rini
On Sun, Aug 20, 2017 at 08:05:40PM -0400, Tom Rini wrote: > As part of fixing the previously reported issues, it was missed that in > the case of mtdparts_init() we need to make sure that tmp_ep is long > enough to contain PARTITION_MAXLEN and a NULL termination. Then, to be > sure the buffer is

Re: [U-Boot] fs: fat: fix fatwrite overflow calculation

2017-08-26 Thread Tom Rini
On Sun, Aug 13, 2017 at 03:16:17PM -0400, Reno Farnesi wrote: > The overflow calculation was incorrect. Adding the start block of the > partition is not needed because the sectors are already relative to the > beginning of the partition. If you attempted to write a file smaller > than

Re: [U-Boot] [U-Boot,1/2] powerpc: Rework interrupt_init_cpu()

2017-08-26 Thread Tom Rini
On Sun, Aug 13, 2017 at 10:44:37PM -0400, Tom Rini wrote: > The function interrupt_init_cpu() is given an int return type but does > not return anything but 0. Rework this to be a void function. > > Signed-off-by: Tom Rini > Acked-by: Mario Six Applied

Re: [U-Boot] [U-Boot, v2] arm: dts: am33xx: sync DTS with Linux 4.13-rc4

2017-08-26 Thread Tom Rini
On Sat, Aug 12, 2017 at 01:26:38PM +0530, suni...@techveda.org wrote: > From: Suniel Mahesh > > This re-syncs AM33xx DTS file with current file from > Linux v4.13-rc4 to ensure a consistent configuration. Upstream > Linux removed the redundant Interrupt-parent property

Re: [U-Boot] fs: ext4: Fix journal overrun issue reported by Coverity

2017-08-26 Thread Tom Rini
On Sun, Aug 20, 2017 at 10:30:15PM -0400, Tom Rini wrote: > While _jdb[fs->blksz] is a valid expression (it points *one* char > sized element past the end of the array, e.g. _jdb[fs->blksz + 1] is > invalid (according to the C standard (C99/C11)). > > Changing this to tag = (struct

Re: [U-Boot] [U-Boot, 1/2] board/spear/common: move code to arch/arm/cpu/arm926ejs/spear/

2017-08-26 Thread Tom Rini
On Tue, Aug 15, 2017 at 10:52:44PM +0200, Thomas Petazzoni wrote: > The code in board/spear/common/ is not board-specific but > SoC-specific. Therefore, boards from other vendors than "spear" may > want to re-use this code, which is currently difficult with the code > being placed in

Re: [U-Boot] Please pull from u-boot-i2c

2017-08-26 Thread Tom Rini
On Wed, Aug 23, 2017 at 10:38:04AM +0200, Heiko Schocher wrote: > Hello Tom, > > please pull from u-boot-i2c master > > The following changes since commit 90ae53ce1ae665a1b43ecf5ccafc339839392427: > > fastboot: Ensure we treat CONFIG_FASTBOOT_BUF_ADDR as long (2017-08-22 > 08:20:02 -0400) >

Re: [U-Boot] Please pull u-boot-sh/rmobile branch

2017-08-26 Thread Tom Rini
On Sat, Aug 26, 2017 at 07:31:03AM +0900, Nobuhiro Iwamatsu wrote: > Hi Tom, > > The following changes since commit 90ae53ce1ae665a1b43ecf5ccafc339839392427: > > fastboot: Ensure we treat CONFIG_FASTBOOT_BUF_ADDR as long > (2017-08-22 08:20:02 -0400) > > are available in the git repository

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

2017-08-26 Thread Tom Rini
On Thu, Aug 24, 2017 at 11:18:14AM +0800, Bin Meng wrote: > Hi Tom, > > This contains various fixes and a reworked version of serial RX buffer > support. Hopefully this is the last PR from x86 for v2017.09. > > The following changes since commit 90ae53ce1ae665a1b43ecf5ccafc339839392427: > >

Re: [U-Boot] [U-Boot, v2, 1/2] driver: timer: Add the Atmel PIT timer driver

2017-08-26 Thread Tom Rini
On Tue, Aug 15, 2017 at 05:40:26PM +0800, wenyou.y...@microchip.com wrote: > Add the new Atmel PIT timer driver, which supports the driver model > and device tree. > > Signed-off-by: Wenyou Yang Applied to u-boot/master, thanks! -- Tom signature.asc Description:

Re: [U-Boot] Please pull u-boot-cfi-flash/master

2017-08-26 Thread Tom Rini
On Tue, Aug 22, 2017 at 12:11:12PM +0200, Stefan Roese wrote: > Hi Tom, > > please pull the cleanup patch from Marek for the CFI driver. > > Thanks, > Stefan > > > The following changes since commit 2d7cb5b426e7e0cdf684d7f8029ad132d7a8d383: > > env: Replace all open-coded gd->env_valid

Re: [U-Boot] Please pull u-boot-sh/master branch

2017-08-26 Thread Tom Rini
On Sat, Aug 26, 2017 at 07:42:45AM +0900, Nobuhiro Iwamatsu wrote: > Hi, Tom. > > The following changes since commit 90ae53ce1ae665a1b43ecf5ccafc339839392427: > > fastboot: Ensure we treat CONFIG_FASTBOOT_BUF_ADDR as long > (2017-08-22 08:20:02 -0400) > > are available in the git repository

Re: [U-Boot] [Patch v2] configs: SECURE_BOOT: Enable CONFIG_CMD_EXT4_WRITE

2017-08-26 Thread Tom Rini
On Fri, Aug 25, 2017 at 03:33:10PM +0530, Sumit Garg wrote: > As part of chain of trust with confidentiality along with distro > boot, linux kernel image needs to be stored in encrypted form on > ext4 boot partition. So enable CONFIG_CMD_EXT4_WRITE in case of > Secure boot. > > Signed-off-by:

[U-Boot] [PATCH 1/1] efi_disk: efi_disk_rw_blocks is not an API function

2017-08-26 Thread Heinrich Schuchardt
There is no need to use attribute EFIAPI for efi_disk_rw_blocks. It is not an API function. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_disk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/efi_loader/efi_disk.c

[U-Boot] [PATCH 3/3] arm: da850-evm: Enable DM and device tree support for da850-evm

2017-08-26 Thread Adam Ford
With the device tree ported and DM compatible drivers, enable: OF_CONTROL, DM_SPI, DM_SPI_FLASH and DM_SERIAL Signed-off-by: Adam Ford --- configs/da850evm_defconfig | 9 +++-- include/configs/da850evm.h | 17 +++-- 2 files changed, 22 insertions(+), 4

[U-Boot] [PATCH 2/3] spi: davinci_spi: Add da830-spi support for DM

2017-08-26 Thread Adam Ford
The DM support is already in the driver, so add da830-spi to the compatible list. Signed-off-by: Adam Ford --- drivers/spi/davinci_spi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/davinci_spi.c b/drivers/spi/davinci_spi.c index 291ef95..eda252d 100644

[U-Boot] [PATCH 1/3] arm: dts: da850: Migrate da850-evm DTS files from Linux 4.13-RC5

2017-08-26 Thread Adam Ford
A few small additional items are needed to support DM_SPI and DM_SERIAL, so those were added to da850-evm-u-boot.dtsi Signed-off-by: Adam Ford --- arch/arm/dts/da850-evm-u-boot.dtsi | 22 ++ arch/arm/dts/da850-evm.dts | 304 +++

Re: [U-Boot] rk3xxx.dtsi /usb_host missing specific compatible

2017-08-26 Thread Artturi Alm
On Sat, Aug 26, 2017 at 07:48:28PM +0200, Heiko Stuebner wrote: > Am Freitag, 25. August 2017, 13:20:47 CEST schrieb Philipp Tomsich: > > + Heiko > > > > On Wed, 23 Aug 2017, Artturi Alm wrote: > > > > > Hi, > > > > > > > > > no idea if this is the right place to mail about this, but i got > > >

Re: [U-Boot] [PATCH v3 0/8] sf: improve support of (Q)SPI flash memories

2017-08-26 Thread Tom Rini
On Sat, Aug 26, 2017 at 10:36:57AM +0200, Marek Vasut wrote: > On 08/26/2017 08:14 AM, Jagan Teki wrote: > > On Sat, Aug 26, 2017 at 4:35 AM, Bin Meng wrote: > >> On Sat, Aug 26, 2017 at 12:45 AM, Marek Vasut wrote: > >>> On 08/25/2017 06:28 PM, Jagan Teki

Re: [U-Boot] rk3xxx.dtsi /usb_host missing specific compatible

2017-08-26 Thread Heiko Stuebner
Am Freitag, 25. August 2017, 13:20:47 CEST schrieb Philipp Tomsich: > + Heiko > > On Wed, 23 Aug 2017, Artturi Alm wrote: > > > Hi, > > > > > > no idea if this is the right place to mail about this, but i got > > suggested this node is out-of-norm, and the diff below fixes that > > for me on

[U-Boot] [PATCH v3] rpi: Enable USB keyboard support

2017-08-26 Thread Simon Glass
This is currently disabled, so USB keyboards are not detected in U-Boot. Enable this option to fix that. Signed-off-by: Simon Glass Tested-by: Jonathan Gray Reviewed-by: Bin Meng Tested-by: Paul Barker --- Changes

[U-Boot] [PATCH v2] rpi: Enable USB keyboard support

2017-08-26 Thread Simon Glass
This is currently disabled, so USB keyboards are not detected in U-Boot. Enable this option to fix that. Series-cc trini Signed-off-by: Simon Glass --- Changes in v2: - Fix U_Boot typo configs/rpi_2_defconfig | 1 + configs/rpi_3_32b_defconfig | 1 +

Re: [U-Boot] [PATCH v2 4/4] rockchip: enable rockusb for all rockchip SoCs

2017-08-26 Thread Łukasz Majewski
On 08/26/2017 02:46 PM, Tom Rini wrote: On Fri, Aug 25, 2017 at 01:06:55PM +0200, Łukasz Majewski wrote: Hi Philipp, Andy, Tom On 25 Aug 2017, at 03:51, Andy Yan wrote: Hi Lukasz: 2017-08-22 18:05 GMT+08:00 Łukasz Majewski >: Hi

Re: [U-Boot] [PATCH 1/1] efi_loader: call __efi_exit_check in efi_exit

2017-08-26 Thread Rob Clark
On Fri, Aug 25, 2017 at 1:53 PM, Heinrich Schuchardt wrote: > The calls to __efi_entry_check and __efi_exit_check have to match. > If DEBUG is defined, panic() will be called otherwise. > > If debugging is activated some Travis CI builds fail due to an > assertion in EFI_CALL

Re: [U-Boot] [PATCH 5/5] x86: fsp: Configure SPI opcode registers before SPI is locked down

2017-08-26 Thread Bin Meng
Hi Simon, On Sat, Aug 26, 2017 at 9:39 PM, Simon Glass wrote: > Hi Bin, > > On 15 August 2017 at 23:38, Bin Meng wrote: >> Some Intel FSP (like Braswell) does SPI lock-down during the call >> to fsp_notify(INIT_PHASE_BOOT). But before SPI lock-down is

Re: [U-Boot] [PATCH 11/13] x86: braswell: Add FSP configuration

2017-08-26 Thread Bin Meng
Hi Simon, On Sat, Aug 26, 2017 at 9:39 PM, Simon Glass wrote: > On 15 August 2017 at 23:42, Bin Meng wrote: >> Add FSP related configuration for Braswell. >> >> Signed-off-by: Bin Meng >> --- >> >> arch/x86/cpu/braswell/Makefile

Re: [U-Boot] [PATCH 12/18] rockchip: sdhci: Convert to livetree

2017-08-26 Thread Simon Glass
On 16 August 2017 at 11:32, Philipp Tomsich wrote: > Update the Rockchip SDHCI wrapper to support a live device tree. > > Signed-off-by: Philipp Tomsich > --- > > drivers/mmc/rockchip_sdhci.c | 3 +-- > 1 file

Re: [U-Boot] [PATCH v2 2/2] board: atmel: Use the new PIT timer driver

2017-08-26 Thread Simon Glass
On 15 August 2017 at 03:40, Wenyou Yang wrote: > Use the Atmel PIT timer driver which supports the driver model > and device tree. > > Signed-off-by: Wenyou Yang > --- > > Changes in v2: > - Integrate the PATCH {timer: Add Atmel PIT timer

Re: [U-Boot] [PATCH 10/13] x86: braswell: Add microcode for B0/C0/D0 stepping SoC

2017-08-26 Thread Simon Glass
On 15 August 2017 at 23:41, Bin Meng wrote: > This adds microcode device tree fragment for Braswell B0 (406C2), > C0 (406C3) and D0 (406C4) stepping SoC. > > Signed-off-by: Bin Meng > --- > > arch/x86/dts/microcode/m01406c2220.dtsi | 4308 >

Re: [U-Boot] [PATCH v3 4/5] spl: fit: Support both external and embedded data

2017-08-26 Thread Simon Glass
On 15 August 2017 at 12:14, York Sun wrote: > SPL supports U-Boot image in FIT format which has data outside of > FIT structure. This adds support for embedded data for normal FIT > images. > > Signed-off-by: York Sun > Reviewed-by: Tom Rini

Re: [U-Boot] [PATCH 11/13] x86: braswell: Add FSP configuration

2017-08-26 Thread Simon Glass
On 15 August 2017 at 23:42, Bin Meng wrote: > Add FSP related configuration for Braswell. > > Signed-off-by: Bin Meng > --- > > arch/x86/cpu/braswell/Makefile | 2 +- > arch/x86/cpu/braswell/fsp_configs.c| 158

Re: [U-Boot] [PATCH 09/13] x86: Add Intel Braswell SoC support

2017-08-26 Thread Simon Glass
On 15 August 2017 at 23:41, Bin Meng wrote: > This adds initial Intel Braswell SoC support. It uses Intel FSP > to initialize the chipset. > > Similar to its predecessor BayTrail, there are some work to do to > enable the legacy UART integrated in the Braswell SoC. > >

Re: [U-Boot] [PATCH 15/18] rockchip: gpio: convert to livetree

2017-08-26 Thread Simon Glass
On 16 August 2017 at 11:32, Philipp Tomsich wrote: > Update the Rockchip GPIO-bank driver to support a live tree. > > Signed-off-by: Philipp Tomsich > --- > > drivers/gpio/rk_gpio.c | 2 +- > 1 file changed, 1

Re: [U-Boot] [PATCH 11/18] rockchip: spi: Convert to livetree

2017-08-26 Thread Simon Glass
On 16 August 2017 at 11:32, Philipp Tomsich wrote: > Update the Rockchip SPI driver to support a live device tree. > > Signed-off-by: Philipp Tomsich > --- > > drivers/spi/rk_spi.c | 2 +- > 1 file changed, 1

Re: [U-Boot] [PATCH 06/13] x86: dts: Include Intel Video BIOS Table in the ROM image

2017-08-26 Thread Simon Glass
On 15 August 2017 at 23:41, Bin Meng wrote: > Now that binman is able to recognize the Video BIOS Table entry, > add such one in the u-boot.dtsi. > > Signed-off-by: Bin Meng > --- > > arch/x86/dts/u-boot.dtsi | 6 ++ > 1 file changed, 6 insertions(+)

Re: [U-Boot] [PATCH 01/13] x86: tsc: Add Airmont reference clock values

2017-08-26 Thread Simon Glass
On 15 August 2017 at 23:41, Bin Meng wrote: > Per the Intel 64 and IA-32 Architecture Software Developer's Manual, > add the reference clock for Intel Atom Processors based on the Airmont > Microarchitecture (Braswell). > > This keeps in sync with Linux kernel commit: >

Re: [U-Boot] [PATCH 13/18] rockchip: rk8xx: remove unused header includes

2017-08-26 Thread Simon Glass
On 16 August 2017 at 11:32, Philipp Tomsich wrote: > Remove header file includes that have been left over after the > conversion to livetree-support. > > Signed-off-by: Philipp Tomsich > --- > >

Re: [U-Boot] [PATCH 05/13] tools: binman: Add a new entry type for Intel VBT

2017-08-26 Thread Simon Glass
On 15 August 2017 at 23:41, Bin Meng wrote: > This adds a new entry type for Intel Video BIOS Table. > > Signed-off-by: Bin Meng > --- > > tools/binman/etype/intel_vbt.py| 14 ++ > tools/binman/func_test.py | 9 - >

Re: [U-Boot] [PATCH 17/18] rockchip: dts: rk3368-lion: add /chosen/tick-timer

2017-08-26 Thread Simon Glass
On 16 August 2017 at 11:32, Philipp Tomsich wrote: > To support bootstage recording, we want to mark our DM timer as the > tick-timer; this triggers the support for 'trying harder' to read the > timer in the Rockchip DM timer driver, even if the device model

Re: [U-Boot] [PATCH 13/13] x86: Support Intel Cherry Hill board

2017-08-26 Thread Simon Glass
On 15 August 2017 at 23:42, Bin Meng wrote: > This adds support to Intel Cherry Hill board, a board based on > Intel Braswell SoC. The following devices are validated: > > - serial port as the serial console > - on-board Realtek 8169 ethernet controller > - SATA AHCI

Re: [U-Boot] [PATCH v2 09/10] ut: fix fdt_getprop_u32() change

2017-08-26 Thread Simon Glass
On 11 August 2017 at 02:52, Pantelis Antoniou wrote: > fdt_getprop_u32 is not exported and it's different than what the > unit test uses. Rename u32 prop access methods to something that's > unit test specific. > > Signed-off-by: Pantelis Antoniou

Re: [U-Boot] [PATCH 10/18] rockchip: pinctrl: rk3368: Convert to livetree

2017-08-26 Thread Simon Glass
On 16 August 2017 at 11:32, Philipp Tomsich wrote: > Update the pinctrl driver for the RK3368 to support a live device tree. > > Signed-off-by: Philipp Tomsich > --- > > drivers/pinctrl/rockchip/pinctrl_rk3368.c | 3

  1   2   >