Re: [U-Boot] [PATCH v2 2/2] regulator: bd718x7: support ROHM BD71837 and BD71847 PMICs

2019-04-24 Thread Vaittinen, Matti
Hello Simon and thanks again for taking the time to check this =) On Wed, 2019-04-24 at 17:58 -0600, Simon Glass wrote: > HI Matti, > > On Wed, 24 Apr 2019 at 06:37, Matti Vaittinen > wrote: > > > > BD71837 and BD71847 is PMIC intended for powering single-core, > > dual-core, and quad-core

[U-Boot] [PATCH 1/1] efi_loader: parameter check CreateEventEx()

2019-04-24 Thread Heinrich Schuchardt
CreateEvent() and CreateEventEx() should check that a notify function is provided for either of EVT_NOTIFY_SIGNAL or EVT_NOTIFY_WAIT. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_boottime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [PATCH] arm: mvebu: turris_omnia: Use thumb instructions in SPL to save space

2019-04-24 Thread Stefan Roese
With the latest changes to the drivers (SPI_FLASH_SPANSION etc), Travis reports that the SPL image is too big. Let's use the thumb instructions in SPL to save some space and make the image fit again. Signed-off-by: Stefan Roese Cc: Baruch Siach Cc: Marek Behun ---

Re: [U-Boot] [PATCH v3 1/9] Revert "pico-imx7d: Add LCD support"

2019-04-24 Thread Fabio Estevam
Hi Jun, On Wed, Apr 24, 2019 at 11:53 PM Jun Nie wrote: > It blocks boot up with default defconfig. I see it is suggested to be > reverted in mailist weeks ago. I thought you guys knew about it. Please keep in mind that the rationale of a patch must always be provided. In this case the issue

Re: [U-Boot] [PATCH 2/4] crypto/fsl: Use __sec_set_jr_context_normal

2019-04-24 Thread Breno Matheus Lima
Hi Bryan, Em ter, 23 de abr de 2019 às 07:20, Bryan O'Donoghue escreveu: > > Use __sec_set_jr_context_normal() to set job-ring ownership rather than the > current in-line array walk. > > Signed-off-by: Bryan O'Donoghue > --- > drivers/crypto/fsl/jr.c | 7 +-- > 1 file changed, 1

Re: [U-Boot] [PATCH] firmware: ti_sci: Fix TISCI mailbox receive timeout handling

2019-04-24 Thread Lokesh Vutla
On 25/04/19 12:50 AM, Andreas Dannenberg wrote: > An earlier commit converted the TISCI receive timeouts to be specified > in ms rather than us however it failed to take this change into account > when passing the actual timeout to be used when invoking the mailbox > receive API. This leads to

Re: [U-Boot] [PATCH v3 7/9] pico-imx7d: Add device tree for pico-imx7d

2019-04-24 Thread Jun Nie
Fabio Estevam 于2019年4月24日周三 下午6:31写道: > > On Wed, Apr 24, 2019 at 1:00 AM Jun Nie wrote: > > > > Copy device tree files from Linux directly. > > > > Signed-off-by: Jun Nie > > There is a series from Joris that does the pico-mx7d DM conversion. When is that series expected to be merged?

Re: [U-Boot] [EXT] Re: the dm of SPL does not support very well on spiboot

2019-04-24 Thread Chuanhua Han
Hi,simon Thank you for your replay! > -Original Message- > From: Simon Glass > Sent: 2019年4月25日 7:59 > To: Chuanhua Han > Cc: eugen.hris...@microchip.com; Ruchika Gupta ; > Shengzhou Liu ; tr...@konsulko.com; Prabhakar > Kushwaha ; u-boot@lists.denx.de; >

Re: [U-Boot] [PATCH v1 1/3] drivers: pci_ep: Introduce UCLASS_PCI_EP uclass

2019-04-24 Thread Ramon Fried
On Thu, Apr 25, 2019 at 2:44 AM Simon Glass wrote: > HI Ramon, > > On Mon, 22 Apr 2019 at 10:33, Ramon Fried wrote: > > > > > > Hi Simon, > > Thanks for the review. > > please see inline, I have few questions/suggestions regarding > > your notes. > > > > Thanks, > > Ramon. > > On Mon, Apr 22,

Re: [U-Boot] [PATCH v3 1/9] Revert "pico-imx7d: Add LCD support"

2019-04-24 Thread Jun Nie
Fabio Estevam 于2019年4月24日周三 下午6:30写道: > > On Wed, Apr 24, 2019 at 1:00 AM Jun Nie wrote: > > > > This reverts commit 9e3c0174da842dd88f5feaffbf843ba332233897. > > Why are you reverting it? It blocks boot up with default defconfig. I see it is suggested to be reverted in mailist weeks ago. I

[U-Boot] [PATCH] imx: mx6sabresd: fix boot hang with video

2019-04-24 Thread Peng Fan
Meet the following boot hang. " U-Boot SPL 2019.04-00661-gdc80a012e4 (Apr 25 2019 - 10:31:57 +0800) Trying to boot from MMC1 U-Boot 2019.04-00661-gdc80a012e4 (Apr 25 2019 - 10:31:57 +0800) CPU: Freescale i.MX6Q rev1.5 996 MHz (running at 792 MHz) CPU: Automotive temperature grade (-40C to

Re: [U-Boot] RSA in U-Boot

2019-04-24 Thread AKASHI, Takahiro
Update and reminder. On Mon, Mar 18, 2019 at 11:17:14AM +0900, AKASHI, Takahiro wrote: > Hi, > > I'd like to discuss this topic in public. > I will appreciate your comments here. > # FYI, I now started to experimentally port linux's pkcs7/x509 > # parser. I've done porting linux's pkcs7/x509

Re: [U-Boot] [PATCH v2 00/11] efi_loader: non-volatile variables support

2019-04-24 Thread AKASHI Takahiro
On Thu, Apr 25, 2019 at 12:12:39AM +0200, Heinrich Schuchardt wrote: > On 4/24/19 8:30 AM, AKASHI Takahiro wrote: > >This patch set is an attempt to implement non-volatile attribute for > >UEFI variables. Under the current implementation, > >* SetVariable API doesn't recognize non-volatile

Re: [U-Boot] [PATCH 2/3] sound: tegra: Add the binding file for tegra-audio

2019-04-24 Thread Simon Glass
Hi Jon, On Wed, 24 Apr 2019 at 03:15, Jon Hunter wrote: > > > On 24/04/2019 04:56, Simon Glass wrote: > > This file was missed when adding the sound driver to U-Boot. Bring it in > > from Linux 5.0. > > > > Signed-off-by: Simon Glass > > --- > > > > .../sound/nvidia,tegra-audio-max98090.txt

Re: [U-Boot] [PATCH v2 4/4] riscv: configs: AE350 will use CONFIG_OF_PRIOR_STAGE when booting from ram

2019-04-24 Thread Rick Chen
HI Bin Bin Meng 於 2019年4月24日 週三 下午3:02寫道: > > On Wed, Apr 24, 2019 at 2:38 PM Andes wrote: > > > > From: Rick Chen > > > > When AE350 was booting from ram, use CONFIG_OF_PRIOR_STAGE instead > > was -> is OK > > > of CONFIG_OF_BOARD. > > > > Signed-off-by: Rick Chen > > Cc: Greentime Hu > >

Re: [U-Boot] [PATCH v2 3/4] riscv: prior_stage_fdt_address should only be used when OF_PRIOR_STAGE is enabled

2019-04-24 Thread Rick Chen
Bin Meng 於 2019年4月24日 週三 下午3:02寫道: > > On Wed, Apr 24, 2019 at 2:38 PM Andes wrote: > > > > From: Rick Chen > > > > This patch will fix prior_stage_fdt_address write failure problem, when > > AE350 was booting from flash. > > was -> is OK > > > > > When AE350 was booting from falsh,

Re: [U-Boot] [PATCH v2 1/4] riscv: hart_lottery and available harts features can be selectable

2019-04-24 Thread Rick Chen
Bin Meng 於 2019年4月24日 週三 下午3:02寫道: > > Hi Rick, > > On Wed, Apr 24, 2019 at 2:37 PM Andes wrote: > > > > From: Rick Chen > > > > I would write the commit title and message as: > > riscv: Introduce CONFIG_XIP to support booting from flash > > When U-Boot boots from flash, during the boot

Re: [U-Boot] [PATCH 0/4] AE350 support SMP boot from flash

2019-04-24 Thread Rick Chen
Hi Lukas Auer, Lukas 於 2019年4月25日 週四 上午5:18寫道: > > Hi Rick, > > On Wed, 2019-04-24 at 09:35 +0800, Rick Chen wrote: > > Hi Lukas > > > > Auer, Lukas 於 2019年4月24日 週三 上午3:58寫道: > > > Hi Rick, > > > > > > On Tue, 2019-04-23 at 13:42 +0800, Andes wrote: > > > > From: Rick Chen > > > > > > > > In

Re: [U-Boot] [PATCH v2 01/11] lib: charset: add u16_strcmp()

2019-04-24 Thread AKASHI Takahiro
On Wed, Apr 24, 2019 at 06:24:44PM +0200, Heinrich Schuchardt wrote: > On 4/24/19 8:30 AM, AKASHI Takahiro wrote: > >u16 version of strcmp() > > > >AUTHER: Patrick Wildt > > %s/AUTHER/Author/ Okay > >Signed-off-by: AKASHI Takahiro > >--- > > include/charset.h | 5 + > > lib/charset.c

Re: [U-Boot] [PATCH v2 1/1] efi_loader: set OsIndicationsSupported at init

2019-04-24 Thread AKASHI Takahiro
On Wed, Apr 24, 2019 at 10:32:22PM +0200, Heinrich Schuchardt wrote: > From: AKASHI Takahiro > > UEFI variables should be installed using well-defined API. > Currently we don't support much, but the value of OsIndicationsSupported > will be updated once some features are added in the future. >

Re: [U-Boot] [PATCH v2 03/11] cmd: efidebug: rework "boot dump" sub-command using GetNextVariableName()

2019-04-24 Thread AKASHI Takahiro
On Wed, Apr 24, 2019 at 10:13:37PM +0200, Heinrich Schuchardt wrote: > On 4/24/19 8:30 AM, AKASHI Takahiro wrote: > >Efidebug command should be implemented using well-defined EFI interfaces, > >rather than using internal functions/data. This change will be needed in > >a later patch where UEFI

Re: [U-Boot] [PATCH v2 02/11] lib: charset: add u16_strncmp()

2019-04-24 Thread AKASHI Takahiro
On Wed, Apr 24, 2019 at 08:36:09PM +0200, Heinrich Schuchardt wrote: > On 4/24/19 8:30 AM, AKASHI Takahiro wrote: > >u16_strncmp() works like u16_strcmp() but only at most n characters > >(in u16) are compared. > >This function will be used in a later patch. > > > >Signed-off-by: AKASHI Takahiro

Re: [U-Boot] [RESEND PATCH] core: ofnode: Add ofnode_get_addr_size_index

2019-04-24 Thread Simon Glass
On Wed, 24 Apr 2019 at 05:49, Keerthy wrote: > > Add ofnode_get_addr_size_index function to fetch the address > and size of the reg space based on index. > > Signed-off-by: Keerthy > --- > > Previous discussion can be found here: > > * https://patchwork.ozlabs.org/patch/999659/ > >

Re: [U-Boot] [PATCH v4 1/2] dlmalloc: fix malloc range at end of ram

2019-04-24 Thread Simon Glass
Hi, On Wed, 24 Apr 2019 at 05:53, Tom Rini wrote: > > On Wed, Apr 24, 2019 at 01:49:52PM +0200, Simon Goldschmidt wrote: > > On Wed, Apr 24, 2019 at 1:27 PM Tom Rini wrote: > > > > > > On Tue, Apr 23, 2019 at 09:54:10PM -0600, Simon Glass wrote: > > > > On Mon, 1 Apr 2019 at 14:01, Simon

Re: [U-Boot] the dm of SPL does not support very well on spiboot

2019-04-24 Thread Simon Glass
Hi Chuanhua, On Sun, 21 Apr 2019 at 09:00, Chuanhua Han wrote: > > Hi,all > > > > 1. When I tested and compiled some spiboot boards, I found that the board > compilation of these spiflash boot configurations failed. > > These boards all support the dm mode of spl, and the boot mode used is

Re: [U-Boot] [PATCH v2 2/2] regulator: bd718x7: support ROHM BD71837 and BD71847 PMICs

2019-04-24 Thread Simon Glass
HI Matti, On Wed, 24 Apr 2019 at 06:37, Matti Vaittinen wrote: > > BD71837 and BD71847 is PMIC intended for powering single-core, > dual-core, and quad-core SoC’s such as NXP-i.MX 8M. BD71847 > is used for example on NXP imx8mm EVK. > > Add regulator driver for ROHM BD71837 and BD71847 PMICs. >

Re: [U-Boot] [PATCH v2 1/2] regulator: bd71837: copy the bd71837 pmic driver from NXP imx u-boot

2019-04-24 Thread Simon Glass
On Wed, 24 Apr 2019 at 06:35, Matti Vaittinen wrote: > > https://source.codeaurora.org/external/imx/uboot-imx > > cherry picked, styled and merged commits: > - MLK-18387 pmic: Add pmic driver for BD71837: e9a3bec2e95a > - MLK-18590 pmic: bd71837: Change to use new fdt API: acdc5c297a96 > >

Re: [U-Boot] [PATCH] misc: uclass: Introduce misc_init_by_ofnode

2019-04-24 Thread Simon Glass
Hi Keerthy, On Wed, 24 Apr 2019 at 05:06, Keerthy wrote: > > Introduce misc_init_by_ofnode to probe a misc device > using its ofnode. Can you please add a motivation for this? Also please can you add a test for your function in test/dm/misc.c Regards, Simon > > Signed-off-by: Keerthy > ---

Re: [U-Boot] [PATCHv5 0/6] dm: cache: add dm cache driver

2019-04-24 Thread Tom Rini
On Wed, Apr 24, 2019 at 06:50:30PM -0500, Dinh Nguyen wrote: > > > On 4/24/19 7:58 AM, Tom Rini wrote: > > On Wed, Apr 24, 2019 at 07:32:14AM -0500, Dinh Nguyen wrote: > >> > >> > >> On 4/23/19 5:02 PM, Tom Rini wrote: > >>> On Tue, Apr 23, 2019 at 04:55:00PM -0500, Dinh Nguyen wrote: > Hi,

Re: [U-Boot] [PATCHv5 0/6] dm: cache: add dm cache driver

2019-04-24 Thread Dinh Nguyen
On 4/24/19 7:58 AM, Tom Rini wrote: > On Wed, Apr 24, 2019 at 07:32:14AM -0500, Dinh Nguyen wrote: >> >> >> On 4/23/19 5:02 PM, Tom Rini wrote: >>> On Tue, Apr 23, 2019 at 04:55:00PM -0500, Dinh Nguyen wrote: Hi, This is V4 of the series to add a UCLASS_CACHE dm driver to handling

Re: [U-Boot] [PATCH v1 1/3] drivers: pci_ep: Introduce UCLASS_PCI_EP uclass

2019-04-24 Thread Simon Glass
HI Ramon, On Mon, 22 Apr 2019 at 10:33, Ramon Fried wrote: > > > Hi Simon, > Thanks for the review. > please see inline, I have few questions/suggestions regarding > your notes. > > Thanks, > Ramon. > On Mon, Apr 22, 2019 at 5:56 AM Simon Glass wrote: >> >> Hi Ramon, >> >> On Fri, 5 Apr 2019 at

[U-Boot] [PATCH v2 3/4] pci_ep: add pci_ep sandbox driver

2019-04-24 Thread Ramon Fried
Signed-off-by: Ramon Fried --- arch/sandbox/dts/test.dts | 4 + configs/sandbox64_defconfig | 2 + configs/sandbox_defconfig | 2 + drivers/pci_endpoint/Kconfig | 7 + drivers/pci_endpoint/Makefile | 1 +

[U-Boot] [PATCH v2 4/4] test: pci_ep: add basic pci_ep tests

2019-04-24 Thread Ramon Fried
Add basic PCI endpoint sandbox testing. Signed-off-by: Ramon Fried --- test/dm/Makefile | 1 + test/dm/pci_ep.c | 45 + 2 files changed, 46 insertions(+) create mode 100644 test/dm/pci_ep.c diff --git a/test/dm/Makefile b/test/dm/Makefile index

[U-Boot] trouble booting spl/u-boot from emmc on i.mx6ul

2019-04-24 Thread Robert Cagle
I am trying to debug a failure to boot spl/u-boot on an NXP i.mx6ul using emmc. I'm using u-boot source from: https://github.com/Freescale/u-boot-fslc.git -b 2017.11+fslc and I'm building target mx6ul_14x14_evk_defconfig. I asked for help on the "NXP Community Forum" but was referred here since

[U-Boot] [PATCH v2 2/4] pci_ep: add Cadence PCIe endpoint driver

2019-04-24 Thread Ramon Fried
Add Cadence PCIe endpoint driver supporting configuration of header, bars and MSI for device. Signed-off-by: Ramon Fried --- .../pci_endpoint/cdns,cdns-pcie-ep.txt| 18 + drivers/pci_endpoint/Kconfig | 8 + drivers/pci_endpoint/Makefile | 1 +

[U-Boot] [PATCH v2 1/4] drivers: pci_ep: Introduce UCLASS_PCI_EP uclass

2019-04-24 Thread Ramon Fried
Introduce new UCLASS_PCI_EP class for handling PCI endpoint devices, allowing to set various attributes of the PCI endpoint device, such as: * configuration space header * BAR definitions * outband memory mapping * start/stop PCI link Signed-off-by: Ramon Fried --- Changes in V2: - Changed

[U-Boot] [PATCH v2 0/4] Add Cadence PCIe endpoint driver with new uclass

2019-04-24 Thread Ramon Fried
This patchset adds support for new uclass, UCLASS_PCI_EP allowing new set of PCI endpoint drivers. Included in the patch is also a driver for Cadence PCIe endpoint. Changes in V2: - Removed "pci.h: add missing maskbit" as it was already merged by Simon. - Added PCI endpoint sandbox driver -

Re: [U-Boot] [PATCH v2 2/4] pci_ep: add Cadence PCIe endpoint driver

2019-04-24 Thread Simon Glass
Hi Ramon, On Wed, 24 Apr 2019 at 12:54, Ramon Fried wrote: > > Add Cadence PCIe endpoint driver supporting configuration > of header, bars and MSI for device. > > Signed-off-by: Ramon Fried > --- > > .../pci_endpoint/cdns,cdns-pcie-ep.txt| 18 + > drivers/pci_endpoint/Kconfig

Re: [U-Boot] [PATCH v2 1/4] drivers: pci_ep: Introduce UCLASS_PCI_EP uclass

2019-04-24 Thread Simon Glass
Hi Ramon, On Wed, 24 Apr 2019 at 12:54, Ramon Fried wrote: > > Introduce new UCLASS_PCI_EP class for handling PCI endpoint > devices, allowing to set various attributes of the PCI endpoint > device, such as: > * configuration space header > * BAR definitions > * outband memory mapping > *

Re: [U-Boot] [PATCH v2 3/4] pci_ep: add pci_ep sandbox driver

2019-04-24 Thread Simon Glass
Hi Ramon, On Wed, 24 Apr 2019 at 12:54, Ramon Fried wrote: Please add a commit message. > > Signed-off-by: Ramon Fried > --- > > arch/sandbox/dts/test.dts | 4 + > configs/sandbox64_defconfig | 2 + > configs/sandbox_defconfig | 2 + >

Re: [U-Boot] [PATCH 1/3] rockchip: rk3399: add tpl support

2019-04-24 Thread Simon Glass
Hi, On Thu, 18 Apr 2019 at 10:47, Heiko Stübner wrote: > > Am Donnerstag, 18. April 2019, 08:35:49 CEST schrieb Philipp Tomsich: > > Simon, > > > > > On 18.04.2019, at 06:32, Simon Glass wrote: > > > > > > Hi Kever, > > > > > > On Mon, 1 Apr 2019 at 02:21, Kever Yang wrote: > > >> > > >>

Re: [U-Boot] Booting MX6 via Serial Download after DM conversion

2019-04-24 Thread Fabio Estevam
Hi Peng, On Tue, Apr 23, 2019 at 11:18 PM Peng Fan wrote: > Not try this. > uuu should support SPL file being loaded, then if SPL could runs into > fastboot mode > to interactive with uuu, then u-boot-dtb.img could be loaded I think. My colleague Breno tried to load SPL + u-boot-dtb.img using

Re: [U-Boot] [PATCH v2 00/11] efi_loader: non-volatile variables support

2019-04-24 Thread Heinrich Schuchardt
On 4/24/19 8:30 AM, AKASHI Takahiro wrote: This patch set is an attempt to implement non-volatile attribute for UEFI variables. Under the current implementation, * SetVariable API doesn't recognize non-volatile attribute * While some variables are defined non-volatile in UEFI specification,

Re: [U-Boot] [PATCH 1/2] eeprom: fix DM_I2C support with CONFIG_SYS_I2C_EEPROM_BUS

2019-04-24 Thread Marek Vasut
On 4/24/19 7:48 PM, Simon Goldschmidt wrote: > This fixes eeprom for DM_I2C in u-boot-socfpga/master > commit 3c43ab903d33 ("eeprom: fix DM_I2C support without > CONFIG_SYS_I2C_EEPROM_BUS") > which only fixed it without CONFIG_SYS_I2C_EEPROM_BUS defined. > > Signed-off-by: Simon Goldschmidt >

Re: [U-Boot] [PATCH 0/4] AE350 support SMP boot from flash

2019-04-24 Thread Auer, Lukas
Hi Rick, On Wed, 2019-04-24 at 09:35 +0800, Rick Chen wrote: > Hi Lukas > > Auer, Lukas 於 2019年4月24日 週三 上午3:58寫道: > > Hi Rick, > > > > On Tue, 2019-04-23 at 13:42 +0800, Andes wrote: > > > From: Rick Chen > > > > > > In current RISC-V SMP flow, AE350 will encounter the the write > > >

[U-Boot] [PATCH v2 1/1] efi_loader: set OsIndicationsSupported at init

2019-04-24 Thread Heinrich Schuchardt
From: AKASHI Takahiro UEFI variables should be installed using well-defined API. Currently we don't support much, but the value of OsIndicationsSupported will be updated once some features are added in the future. Signed-off-by: AKASHI Takahiro Add comments. Rename a variable. Reviewed-by:

Re: [U-Boot] [PATCH v2 03/11] cmd: efidebug: rework "boot dump" sub-command using GetNextVariableName()

2019-04-24 Thread Heinrich Schuchardt
On 4/24/19 8:30 AM, AKASHI Takahiro wrote: Efidebug command should be implemented using well-defined EFI interfaces, rather than using internal functions/data. This change will be needed in a later patch where UEFI variables are re-implemented. I had trouble to get the point. In the next

[U-Boot] evb-rk3328_defconfig: dtc: option requires an argument

2019-04-24 Thread Matwey V. Kornilov
Hello, I am building u-boot master as the following make evb-rk3328_defconfig make all make u-boot.itb What I see it the following error: LD u-boot OBJCOPY u-boot-nodtb.bin start=$(aarch64-suse-linux-nm u-boot | grep __rel_dyn_start | cut -f 1 -d ' '); end=$(aarch64-suse-linux-nm

Re: [U-Boot] [PATCH 1/2 v2] fit: Support compression for non-kernel components (e.g. FDT)

2019-04-24 Thread Simon Goldschmidt
Am 18.04.2019 um 23:08 schrieb Julius Werner: This patch adds support for compressing non-kernel image nodes in a FIT image (kernel nodes could already be compressed previously). This can reduce the size of FIT images and therefore improve boot times (especially when an image bundles many

[U-Boot] [PATCH] firmware: ti_sci: Fix TISCI mailbox receive timeout handling

2019-04-24 Thread Andreas Dannenberg
An earlier commit converted the TISCI receive timeouts to be specified in ms rather than us however it failed to take this change into account when passing the actual timeout to be used when invoking the mailbox receive API. This leads to the actual timeout to be 1,000 times shorter than expected

Re: [U-Boot] [PATCH 1/1] test/py: pytest.mark.notbuildconfigspec()

2019-04-24 Thread Stephen Warren
On 4/22/19 1:44 AM, Heinrich Schuchardt wrote: We already can let a Python test depend on a build option being set via @pytest.mark.buildconfigspec(). It may be necessary to let a test depend on a build option *not* being set. So let's introduce @pytest.mark.notbuildconfigspec for this

Re: [U-Boot] [PATCH v2 02/11] lib: charset: add u16_strncmp()

2019-04-24 Thread Heinrich Schuchardt
On 4/24/19 8:30 AM, AKASHI Takahiro wrote: u16_strncmp() works like u16_strcmp() but only at most n characters (in u16) are compared. This function will be used in a later patch. Signed-off-by: AKASHI Takahiro The only usage of u16_strncmp() is in patch 3. u16_strcmp() is not used at all.

Re: [U-Boot] [RFC] Migrating iMX LCDIF drivers to Driver Model

2019-04-24 Thread Fabio Estevam
Hi Igor, On Tue, Apr 16, 2019 at 8:28 PM Peng Fan wrote: > > 2) Will it be OK if I introduce a brand new mxsfb driver (ported from > > Linux), > > which will be used only when U-boot is built with CONFIG_DM_VIDEO > > enabled? Existing mxsfb will be left as it is, so I can be removed easily >

Re: [U-Boot] U-Boot Security

2019-04-24 Thread Simon Goldschmidt
Am 24.04.2019 um 15:55 schrieb Linder Pascal: Hello everyone, I want to add some supplementary security to my embedded system. The Flattened Image Tree (FIT) to secure the operating system and the device tree, I have already found. Now, I am wondering if I could also secure U-Boot itself

Re: [U-Boot] [PATCH v3 1/2] eeprom: fix DM_I2C support without CONFIG_SYS_I2C_EEPROM_BUS

2019-04-24 Thread Simon Goldschmidt
Am 23.04.2019 um 21:18 schrieb Simon Goldschmidt: The current device model enabled eeprom code only works if CONFIG_SYS_I2C_EEPROM_BUS is set. This patch makes it work without that define so that the bus number passed to 'eeprom_init' is used. Signed-off-by: Simon Goldschmidt Reviewed-by:

[U-Boot] [PATCH 2/2] arm: socfpga: fix compiling vining_fpga with DM_I2C

2019-04-24 Thread Simon Goldschmidt
commit 6ce1f2d2ce4d ("arm: socfpga: move vining_fpga to DM_I2C") in u-boot-socfpga/master fails to compile as vining has non-DM compatibility for I2C disabled. Signed-off-by: Simon Goldschmidt --- Please amend to commit 6ce1f2d2ce4d in u-boot-socfpga/master ---

[U-Boot] [PATCH 1/2] eeprom: fix DM_I2C support with CONFIG_SYS_I2C_EEPROM_BUS

2019-04-24 Thread Simon Goldschmidt
This fixes eeprom for DM_I2C in u-boot-socfpga/master commit 3c43ab903d33 ("eeprom: fix DM_I2C support without CONFIG_SYS_I2C_EEPROM_BUS") which only fixed it without CONFIG_SYS_I2C_EEPROM_BUS defined. Signed-off-by: Simon Goldschmidt --- Please amend to commit 3c43ab903d33 in

Re: [U-Boot] [PATCH v4 0/4] arm: socfpga: clean up socfpga_common.h

2019-04-24 Thread Marek Vasut
On 4/24/19 7:36 PM, Simon Goldschmidt wrote: > Am 23.04.2019 um 23:24 schrieb Marek Vasut: >> On 4/23/19 10:51 PM, Simon Goldschmidt wrote: >>> >>> >>> Marek Vasut mailto:ma...@denx.de>> schrieb am Di., 23. >>> Apr. 2019, 22:43: >>> >>> On 4/23/19 9:36 PM, Simon Goldschmidt wrote: >>> >

Re: [U-Boot] [PATCH v2 02/11] lib: charset: add u16_strncmp()

2019-04-24 Thread Heinrich Schuchardt
On 4/24/19 8:30 AM, AKASHI Takahiro wrote: u16_strncmp() works like u16_strcmp() but only at most n characters (in u16) are compared. This function will be used in a later patch. Signed-off-by: AKASHI Takahiro --- include/charset.h | 5 + lib/charset.c | 13 + 2 files

Re: [U-Boot] [PATCH v4 0/4] arm: socfpga: clean up socfpga_common.h

2019-04-24 Thread Simon Goldschmidt
Am 23.04.2019 um 23:24 schrieb Marek Vasut: On 4/23/19 10:51 PM, Simon Goldschmidt wrote: Marek Vasut mailto:ma...@denx.de>> schrieb am Di., 23. Apr. 2019, 22:43: On 4/23/19 9:36 PM, Simon Goldschmidt wrote: > This series cleans up the include/configs/socfpga_common.h file a bit.

Re: [U-Boot] [RFC PATCH v1 2/2] power: regulator: support ROHM BD71837 PMIC

2019-04-24 Thread Simon Glass
Hi Matti, On Tue, 23 Apr 2019 at 23:59, Vaittinen, Matti wrote: > > Hello Simon, > > Thanks a bunch for taking the time and reviewing this! I do appreciate! > > On Tue, 2019-04-23 at 21:54 -0600, Simon Glass wrote: > > Hi Matti, > > > > On Wed, 27 Mar 2019 at 06:40, Matti Vaittinen > > wrote: >

Re: [U-Boot] [PATCH 2/2] fsl_qspi: Improve QSPI driver to incorporate 4 byte commands

2019-04-24 Thread Vignesh Raghavendra
On 24-Apr-19 6:10 PM, Rajat Srivastava wrote: > Signed-off-by: Ashish Kumar > Signed-off-by: Rajat Srivastava Commit message is missing. But from $patch subject, I infer that $patch is adding new feature and not actually fixing something broken? If so, you should move the driver over to use

Re: [U-Boot] [PATCH 1/2] drivers/mtd/spi: Enable 4B opcodes for SPANSION s25fl512s

2019-04-24 Thread Vignesh Raghavendra
Hi. On 24-Apr-19 6:10 PM, Rajat Srivastava wrote: > From: Ashish Kumar > > Signed-off-by: Ashish Kumar > --- > drivers/mtd/spi/spi-nor-ids.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c > index

Re: [U-Boot] [PATCH v2 01/11] lib: charset: add u16_strcmp()

2019-04-24 Thread Heinrich Schuchardt
On 4/24/19 8:30 AM, AKASHI Takahiro wrote: u16 version of strcmp() AUTHER: Patrick Wildt %s/AUTHER/Author/ Signed-off-by: AKASHI Takahiro --- include/charset.h | 5 + lib/charset.c | 10 ++ 2 files changed, 15 insertions(+) diff --git a/include/charset.h

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

2019-04-24 Thread Simon Glass
Hi Tom, Build/test: https://travis-ci.org/sglass68/u-boot/builds/523770406 The following changes since commit 6c5f8dd540d7a8eff244d4c27a09451ca12c8d20: Merge branch 'master' of git://git.denx.de/u-boot-usb (2019-04-21 19:00:04 -0400) are available in the Git repository at:

[U-Boot] [PATCH] arch: mips: Update initrd_start and initrd_end

2019-04-24 Thread Horatiu Vultur
Microsemi SoC defines CONFIG_SYS_SDRAM_BASE to be 0x8000, which represents the start of kseg0 and represents a virtual address. Meaning that the initrd_start and initrd_end point somewhere kseg0. When these parameters are passed to linux kernel through DT they are pointing somewhere in kseg0

Re: [U-Boot] [PATCH] Refactor IMAGE_ENABLE_VERIFY to handle builds without SPL verification

2019-04-24 Thread Simon Glass
On Thu, 18 Apr 2019 at 14:35, Alex Kiernan wrote: > > If building with SPL_LOAD_FIT_FULL and FIT_SIGNATURE, but without > SPL_FIT_SIGNATURE then the build fails with: > > common/built-in.o: In function `fit_image_verify_with_data': > common/image-fit.c:1220: undefined reference to >

Re: [U-Boot] [PATCH v2 1/1] common: fdt_support: Check mtdparts cell size

2019-04-24 Thread Simon Glass
On Tue, 23 Apr 2019 at 23:32, Stefan Mavrodiev wrote: > > When using fdt_fixup_mtdparts() offset and length cell sizes > are limited to 4 bytes (1 cell). However if the mtd device is > bigger then 4GiB, then #address-cells and #size-cells are > 8 bytes (2 cells) [1]. > > This patch read

Re: [U-Boot] [PATCH V2 2/2] lib: fdt: Allow LZO and GZIP DT compression in U-Boot

2019-04-24 Thread Simon Glass
On Tue, 9 Apr 2019 at 10:09, Marek Vasut wrote: > > Add required Kconfig symbols, Makefile bits and macro fixes in a > few places to support LZO and DT compression in U-Boot. This can > save a lot of space with multi-DTB fitImages. > > Signed-off-by: Marek Vasut > Cc: Nobuhiro Iwamatsu > Cc:

Re: [U-Boot] [PATCH V2 1/2] lib: fdt: Allow enabling both LZO and GZIP DT compression

2019-04-24 Thread Simon Glass
On Tue, 9 Apr 2019 at 10:09, Marek Vasut wrote: > > Allow enabling both LZO and GZIP DT compression in SPL and fix a > bug where if the GZIP decompression failed, the LZO decompression > would not even be attempted. > > Signed-off-by: Marek Vasut > Cc: Nobuhiro Iwamatsu > Cc: Simon Glass > Cc:

Re: [U-Boot] [PATCH v1 2/3] pci: pci.h: add missing maskbit

2019-04-24 Thread Simon Glass
On Sun, 21 Apr 2019 at 20:57, Simon Glass wrote: > > On Fri, 5 Apr 2019 at 19:12, Ramon Fried wrote: > > > > PCI_MSI_FLAGS_MASKBIT was missing from include file, > > add it. > > > > Signed-off-by: Ramon Fried > > --- > > > > include/pci.h | 1 + > > 1 file changed, 1 insertion(+) > >

Re: [U-Boot] [PATCH v4] arm: socfpga: mailbox: Fix off-by-one error on command length checking

2019-04-24 Thread Marek Vasut
On 4/24/19 7:21 AM, Ley Foon Tan wrote: > A mailbox command contains 1-u32 header + arguments. The "len" variable > only contains the length of the arguments, but not the 1-u32 header. > Include the length of header when checking the ring buffer space to > prevent off-by-one error. > >

Re: [U-Boot] [PATCH v2] arm: socfpga: Move Stratix 10 SDRAM driver to DM

2019-04-24 Thread Marek Vasut
On 4/24/19 8:21 AM, Ley Foon Tan wrote: > Convert Stratix 10 SDRAM driver to device model. > > Get rid of call to socfpga_per_reset() and use reset > framework. > > SPL is changed from calling function in SDRAM driver > directly to just probing UCLASS_RAM. > > Move sdram_s10.h from arch to

Re: [U-Boot] tbs2910 not buildable

2019-04-24 Thread Soeren Moch
On 23.04.19 01:19, Tom Rini wrote: > On Sun, Apr 14, 2019 at 12:46:25PM +0200, Soeren Moch wrote: >> Hi Stefano, >> >> On 14.04.19 11:52, stefano babic wrote: >>> Hallo Soeren, >>> >>> after pulling from Tom and merging u-boot-imx, - next, your board is not >>> buildable anymore. Better: it is

Re: [U-Boot] [PATCH 3/3] arm: kirkwood: openrd: Increase U-Boot size in flash to make it fit

2019-04-24 Thread Stefan Roese
On 24.04.19 16:13, Tom Rini wrote: On Wed, Apr 24, 2019 at 03:49:35PM +0200, Stefan Roese wrote: On 24.04.19 15:21, Tom Rini wrote: On Sat, Apr 13, 2019 at 09:00:48AM -0400, Tom Rini wrote: On Fri, Apr 12, 2019 at 07:08:40PM +1200, Chris Packham wrote: On Thu, 11 Apr 2019, 10:33 PM Stefan

Re: [U-Boot] [PATCH 3/3] arm: kirkwood: openrd: Increase U-Boot size in flash to make it fit

2019-04-24 Thread Tom Rini
On Wed, Apr 24, 2019 at 03:49:35PM +0200, Stefan Roese wrote: > On 24.04.19 15:21, Tom Rini wrote: > >On Sat, Apr 13, 2019 at 09:00:48AM -0400, Tom Rini wrote: > >>On Fri, Apr 12, 2019 at 07:08:40PM +1200, Chris Packham wrote: > >>>On Thu, 11 Apr 2019, 10:33 PM Stefan Roese, wrote: > >>> > We

[U-Boot] U-Boot Security

2019-04-24 Thread Linder Pascal
Hello everyone, I want to add some supplementary security to my embedded system. The Flattened Image Tree (FIT) to secure the operating system and the device tree, I have already found. Now, I am wondering if I could also secure U-Boot itself before starting it by the Secondary Program Loader

Re: [U-Boot] [U-Boot, v4, 2/4] reset: add reset driver for HiSilicon platform

2019-04-24 Thread Tom Rini
On Wed, Mar 20, 2019 at 03:32:39PM +0800, Shawn Guo wrote: > It adds a Driver Model compatible reset driver for HiSlicon platform. > The driver implements a custom .of_xlate function, and uses .data field > as reset register offset and .id field as bit shift. > > Signed-off-by: Shawn Guo >

Re: [U-Boot] [U-Boot,V2,4/8] bcm968580xref: enable led support

2019-04-24 Thread Tom Rini
On Fri, Mar 22, 2019 at 05:02:04PM +0100, Philippe Reynes wrote: > Enable the led support in the configuration > of the board bcm968580xref. > > Signed-off-by: Philippe Reynes Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [PATCH 3/3] arm: kirkwood: openrd: Increase U-Boot size in flash to make it fit

2019-04-24 Thread Stefan Roese
On 24.04.19 15:21, Tom Rini wrote: On Sat, Apr 13, 2019 at 09:00:48AM -0400, Tom Rini wrote: On Fri, Apr 12, 2019 at 07:08:40PM +1200, Chris Packham wrote: On Thu, 11 Apr 2019, 10:33 PM Stefan Roese, wrote: We have run now multiple times into size issues with the openrd board port. To

Re: [U-Boot] [U-Boot,v3,6/7] pinctrl: add driver for MT8516

2019-04-24 Thread Tom Rini
On Sun, Mar 24, 2019 at 04:46:37PM +0100, Fabien Parent wrote: > Add Pinctrl driver for MediaTek MT8516 SoC. > > Signed-off-by: Fabien Parent > Acked-by: Ryder Lee Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot,v3,2/7] mmc: mtk-sd: add support for MT8516

2019-04-24 Thread Tom Rini
On Sun, Mar 24, 2019 at 04:46:33PM +0100, Fabien Parent wrote: > Add config for handling MT8516 SoC. > > Signed-off-by: Fabien Parent > Acked-by: Ryder Lee Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___

Re: [U-Boot] [U-Boot, 09/18] drivers: nand: brcmnand: add an option to read the write-protect from device tree

2019-04-24 Thread Tom Rini
On Fri, Mar 15, 2019 at 03:14:38PM +0100, Philippe Reynes wrote: > The option write-protect may only change on the kernel command line, > we add a property in the device tree to be more flexible. > > Signed-off-by: Philippe Reynes Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [U-Boot] [U-Boot, v3, 7/7] ARM: MediaTek: Add support for MT8516 SoC

2019-04-24 Thread Tom Rini
On Sun, Mar 24, 2019 at 04:46:38PM +0100, Fabien Parent wrote: > Add support for MediaTek MT8516 SoC. This include the file > that will initialize the SoC after boot and its device tree. > > Signed-off-by: Fabien Parent > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom

Re: [U-Boot] [U-Boot, v4, 2/2] dlmalloc: be compatible to tiny printf

2019-04-24 Thread Tom Rini
On Mon, Apr 01, 2019 at 10:01:50PM +0200, Simon Goldschmidt wrote: > Convert debug output from '%#lx' to '0x%lx' to be compatible with tiny > printf used in SPL. > > Signed-off-by: Simon Goldschmidt Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] bootm: Simplying cache flush code

2019-04-24 Thread Tom Rini
On Wed, Mar 27, 2019 at 11:50:09PM +, Trent Piepho wrote: > The cache flush of the kernel load area needs to be aligned outward to > the DMA cache alignment. The operations are simpler if we think of this > as aligning the start down, ALIGN_DOWN(load, ARCH_DMA_MINALIGN), and > aligning the

Re: [U-Boot] [U-Boot,15/18] bcm968580xref: add nand support

2019-04-24 Thread Tom Rini
On Fri, Mar 15, 2019 at 03:14:44PM +0100, Philippe Reynes wrote: > Enable the nand support (driver and command) > in the configuration of the board bcm968580xref. > > Signed-off-by: Philippe Reynes Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] ARM: da850evm: Remove legacy MMC code

2019-04-24 Thread Tom Rini
On Fri, Mar 15, 2019 at 02:29:20PM -0500, Adam Ford wrote: > With the migration to DM in SPL and the DT support, the > old legacy code is no longer neaded, so this patch removes it > > Signed-off-by: Adam Ford > > diff --git a/board/davinci/da8xxevm/da850evm.c >

Re: [U-Boot] [U-Boot,v2,2/2] image: android: fix 'iminfo' typo

2019-04-24 Thread Tom Rini
On Mon, Apr 08, 2019 at 05:35:28PM +0200, Eugeniu Rosca wrote: > Fix below CP warning triggered by the 'iminfo' output in another patch: > WARNING: 'addrress' may be misspelled - perhaps 'address'? > > Fixes: 4f1318b29c7a20 ("common: image: minimal android image iminfo support") > Signed-off-by:

Re: [U-Boot] [U-Boot, V2, 5/8] led: bcm6858: allow to use this driver on ARCH_963158

2019-04-24 Thread Tom Rini
On Fri, Mar 22, 2019 at 05:02:05PM +0100, Philippe Reynes wrote: > Allow the led bcm6858 driver to be used on bcm63158. > They have the same led controller. > > Signed-off-by: Philippe Reynes Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot,V2,6/8] dt: bcm63158: add led controller

2019-04-24 Thread Tom Rini
On Fri, Mar 22, 2019 at 05:02:06PM +0100, Philippe Reynes wrote: > Add the led controller in the bcm63158 device tree. > > Signed-off-by: Philippe Reynes Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot

Re: [U-Boot] [U-Boot, RESEND] ARMv8: PSCI: Fix PSCI_TABLE relocation issue

2019-04-24 Thread Tom Rini
On Thu, Apr 04, 2019 at 02:38:50PM +0200, Lars Povlsen wrote: > This fixes relaction isses with the PSCI_TABLE entries in > the psci_32_table and psci_64_table. > > When using 32-bit adress pointers relocation was not being applied to > the tables, causing PSCI handlers to point to the

Re: [U-Boot] [U-Boot,V2,8/8] bcm963158: enable led support

2019-04-24 Thread Tom Rini
On Fri, Mar 22, 2019 at 05:02:08PM +0100, Philippe Reynes wrote: > Enable the led support in the configuration > of the board bcm963158. > > Signed-off-by: Philippe Reynes Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot, V2, 3/8] dt: bcm968580xref: enable led controller

2019-04-24 Thread Tom Rini
On Fri, Mar 22, 2019 at 05:02:03PM +0100, Philippe Reynes wrote: > Enable the led controller in the device tree > of the board bcm968580xref. > > Signed-off-by: Philippe Reynes Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot, 06/18] compat linux: import completion from linux 4.18

2019-04-24 Thread Tom Rini
On Fri, Mar 15, 2019 at 03:14:35PM +0100, Philippe Reynes wrote: > This patch port the file include/linux/completion.h > from linux 4.18 to u-boot. It define the structure > but all the function are stubbed. > > Signed-off-by: Philippe Reynes Applied to u-boot/master, thanks! -- Tom

Re: [U-Boot] [U-Boot, 1/1] test: env: Enable env unit tests by default

2019-04-24 Thread Tom Rini
On Sun, Apr 07, 2019 at 05:57:40PM +0200, Heinrich Schuchardt wrote: > If CONFIG_UNIT_TEST is enabled we should enable the individual tests by > default to ensure good test coverage. > > Signed-off-by: Heinrich Schuchardt Applied to u-boot/master, thanks! -- Tom signature.asc Description:

Re: [U-Boot] [U-Boot,v3,5/7] clk: mediatek: add driver for MT8516

2019-04-24 Thread Tom Rini
On Sun, Mar 24, 2019 at 04:46:36PM +0100, Fabien Parent wrote: > Add clock driver for MediaTek MT8516 SoC. > > Signed-off-by: Fabien Parent > Acked-by: Ryder Lee Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot, v3, 1/7] mmc: mtk-sd: add source_cg clock support

2019-04-24 Thread Tom Rini
On Sun, Mar 24, 2019 at 04:46:32PM +0100, Fabien Parent wrote: > Some MediaTek SoC need an additional clock "source_cg". Enable > this new clock. We reuse the same clock name as in the kernel. > > Signed-off-by: Fabien Parent > Acked-by: Ryder Lee Applied to u-boot/master, thanks! -- Tom

Re: [U-Boot] [U-Boot,V2,7/8] dt: bcm963158: enable led controller

2019-04-24 Thread Tom Rini
On Fri, Mar 22, 2019 at 05:02:07PM +0100, Philippe Reynes wrote: > Enable the led controller in the device tree > of the board bcm963158. > > Signed-off-by: Philippe Reynes Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot, v2, 1/2] image: android: allow booting lz4-compressed kernels

2019-04-24 Thread Tom Rini
On Mon, Apr 08, 2019 at 05:35:27PM +0200, Eugeniu Rosca wrote: > According to Android image format [1], kernel image resides at 1 page > offset from the boot image address. Grab the magic number from there > and allow U-Boot to handle LZ4-compressed KNL binaries instead of > hardcoding

  1   2   3   >