Re: [U-Boot] [PATCH 1/3 v2] pci: pci_mvebu: Add DM_PCI support and move CONFIG_PCI_MVEBU to defconfig

2019-01-21 Thread Chris Packham
Hi Stefan, On Sat, Jan 19, 2019 at 12:51 AM Stefan Roese wrote: > > This patch adds DM_PCI support to the MVEBU PCIe driver. This is > necessary, since all PCI drivers have to be moved to DM (driver model) > until the v2019.07 release. > > To not break git bisect'ablility, this patch also moves

Re: [U-Boot] [PATCH 2/4] board: topic_miamilite: Support cost-reduced version

2019-01-21 Thread Michal Simek
On 18. 01. 19 9:34, Mike Looijmans wrote: > On 07-09-18 11:30, Michal Simek wrote: >> On 24.8.2018 14:00, Mike Looijmans wrote: >>> To reduce board cost, the topic-miamilite board hardware was adapted. It now >>> only has single QSPI NOR flash and a single DDR RAM chip. This reduces the >>> memory

Re: [U-Boot] [PATCH] net: remove duplicate definition of ETHADDR_WILDCARD

2019-01-21 Thread Simon Goldschmidt
Hi Joe, On Tue, Jan 15, 2019 at 10:00 AM Joe Hershberger wrote: > > On Thu, Nov 22, 2018 at 9:58 AM Simon Goldschmidt > wrote: > > > > ETHADDR_WILDCARD is defined as the same value in both env_flags.h > > and env_callback.h > > > > As env_callback.h includes env_flags.h, remove the duplicate

Re: [U-Boot] [PATCH v2 00/11] SF: Migrate to Linux SPI NOR framework

2019-01-21 Thread Stefan Roese
On 21.01.19 18:08, Tom Rini wrote: On Mon, Jan 21, 2019 at 08:17:31PM +0530, Vignesh R wrote: On 21-Jan-19 5:40 PM, Jagan Teki wrote: On Mon, Jan 21, 2019 at 5:28 PM Vignesh R wrote: On 14/01/19 8:32 PM, Vignesh R wrote: Hi Jagan, Could you please review v2? If we plan to merge this

Re: [U-Boot] Bad block present before NAND flash partition offset

2019-01-21 Thread Madhu koriginja
Hi All, Any suggestions on the above issue? Thanks On Fri, Jan 18, 2019 at 6:20 PM Madhu koriginja wrote: > Hi All, > In my NAND flash one bad block present before some 'X' binary offset, > after this binary partition kernel and rootfs partitions are present. > In U-Boot when I access this x

Re: [U-Boot] [PATCH v1 1/3] arm: dts: add am335x-shc.dts for shc board

2019-01-21 Thread Heiko Schocher
Hello Tom, Am 21.01.2019 um 17:41 schrieb Tom Rini: On Mon, Jan 21, 2019 at 06:16:26AM +0100, Heiko Schocher wrote: add DTS from linux tree commit "47bfa6d9dc8c060bf56554a465c9031e286d2f80" change for U-Boot: switch to SPDX-license identifier. Signed-off-by: Heiko Schocher You should

Re: [U-Boot] [PATCH 05/33] i2c: designware: Add error checking on init

2019-01-21 Thread Heiko Schocher
Hello Simon, Am 22.01.2019 um 02:12 schrieb Simon Glass: At present this driver does not check whether it is able to actually communicate with the I2C controller. It prints a timeout message but still considers the probe to be successful. To fix this, add some checking that the init succeeds.

Re: [U-Boot] [PATCH v3 9/9] arm: dts: sunxi: Enumerate MMC2 as MMC1

2019-01-21 Thread Vasily Khoruzhick
On Mon, Jan 21, 2019 at 8:24 PM Vasily Khoruzhick wrote: > > For me it shows: > > => mmc list > mmc@1c0f000: 0 (SD) > mmc@1c1: 1 > mmc@1c11000: 2 > > I'm testing this patches applied onto u-boot-sunxi/master on Pinebook. > I tried 'distclean', and it doesn't help. Looks like eMMC is here but

Re: [U-Boot] [PATCH v3 9/9] arm: dts: sunxi: Enumerate MMC2 as MMC1

2019-01-21 Thread Vasily Khoruzhick
On Mon, Jan 21, 2019 at 7:46 AM Jagan Teki wrote: > > On Mon, Jan 21, 2019 at 9:08 PM Vasily Khoruzhick wrote: >scanning usb for storage devices... 0 Storage Device(s) found > Hit any key to stop autoboot: 0 > => > => > => mmc list > mmc@1c0f000: 0 > mmc@1c1: 2 > mmc@1c11000: 1

Re: [U-Boot] [PATCH v3 5/5] doc: device-tree-bindings: switch from spi-flash to jedec, spi-nor

2019-01-21 Thread Rick Chen
Hi Neil > > From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Neil > > Armstrong > > Sent: Tuesday, January 15, 2019 8:59 PM > > To: ja...@openedev.com; u-boot@lists.denx.de; > > simon.k.r.goldschm...@gmail.com > > Cc: uboot-st...@st-md-mailman.stormreply.com; tr...@konsulko.com > >

Re: [U-Boot] [PATCH v3 2/5] dts: switch spi-flash to jedec, spi-nor compatible

2019-01-21 Thread Rick Chen
Hi Neil > > From: Neil Armstrong [mailto:narmstr...@baylibre.com] > > Sent: Tuesday, January 15, 2019 8:59 PM > > To: ja...@openedev.com; u-boot@lists.denx.de; > > simon.k.r.goldschm...@gmail.com > > Cc: Neil Armstrong; uboot-st...@st-md-mailman.stormreply.com; > > uboot-snps-...@synopsys.com;

Re: [U-Boot] [PATCH v5 7/7] cmd: env: add "-e" option for handling UEFI variables

2019-01-21 Thread AKASHI Takahiro
On Mon, Jan 21, 2019 at 02:41:07PM +0100, Alexander Graf wrote: > On 01/21/2019 08:49 AM, AKASHI Takahiro wrote: > >"env [print|set] -e" allows for handling uefi variables without > >knowing details about mapping to corresponding u-boot variables. > > > >Signed-off-by: AKASHI Takahiro > >--- > >

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

2019-01-21 Thread Tom Rini
On Mon, Jan 21, 2019 at 11:52:54AM +0100, Stefan Roese wrote: > Hi Tom, > > please pull the first Marvell patches in this merge window with the > following changes: > Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [PATCH v2 11/21] ARM: DTS: Provide vf610-bk4r1-u-boot.dtsi for U-Boot specific properties

2019-01-21 Thread Tom Rini
On Sun, Jan 20, 2019 at 02:34:15PM +0100, Lukasz Majewski wrote: > This commit brings a separate file in which the U-Boot specific > properties (like 'dm-pre-reloc') are provided. > > Such approach allows easy sync with upstream Linux kernel in the > future. > > Signed-off-by: Lukasz Majewski

Re: [U-Boot] [PATCH v3 0/9] mmc: sunxi: Enable DM_MMC

2019-01-21 Thread Chen-Yu Tsai
On Mon, Jan 21, 2019 at 6:31 PM Jagan Teki wrote: > > Compared to previous version changes[1] this version do manage > ahb clocks/resets via CLK framework. > > This version created changes along with Andre patches to support > clock/resets[2] > > Tested A64, SD, eMMC and respective changes

Re: [U-Boot] [PATCH] pci: Add PCI_SLOT macro to include/pci.h

2019-01-21 Thread Bin Meng
Hi Stefan, On Tue, Jan 22, 2019 at 8:32 AM Simon Glass wrote: > > Hi Stefan, > > On Sat, 19 Jan 2019 at 00:46, Stefan Roese wrote: > > > > This macro will be used the by the Marvell Armada XP/38x PCIe driver, > > which is moved to DM right now. > > > > Signed-off-by: Stefan Roese > > Cc: Bin

Re: [U-Boot] [PATCH v2 10/11] cpu: Bind timer driver for boot hart

2019-01-21 Thread Bin Meng
On Fri, Jan 18, 2019 at 7:19 PM Anup Patel wrote: > > From: Atish Patra > > Currently, timer driver is bound only for hart0. > > There is no mandatory requirement that hart0 should always > come up. In fact, HiFive Unleashed SoC hart0 doesn't boot > in S-mode because it only has M-mode. > > The

Re: [U-Boot] [PATCH v2 11/11] riscv: Add SiFive FU540 board support

2019-01-21 Thread Bin Meng
On Fri, Jan 18, 2019 at 7:19 PM Anup Patel wrote: > > This patch adds SiFive FU540 board support. For now, only > SiFive serial, SiFive PRCI, and Cadance MACB drivers are > only enabled. The SiFive FU540 defconfig by default builds > U-Boot for S-Mode because U-Boot on SiFive FU540 will run > in

Re: [U-Boot] [PATCH v2 03/11] riscv: generic: Ensure that U-Boot runs within 4GB for 64bit systems

2019-01-21 Thread Bin Meng
On Fri, Jan 18, 2019 at 7:19 PM Anup Patel wrote: > > On 64bit systems, the DRAM top can be easily beyond 4GB and U-Boot > DMA mapping APIs will generate DMA addresses beyond 4GB. This > breaks DMA programming in 32bit DMA capable devices (such as > Cadence MACB ethernet). For example, If DRAM is

Re: [U-Boot] [PATCH v2 01/11] riscv: Rename cpu/qemu to cpu/generic

2019-01-21 Thread Bin Meng
On Fri, Jan 18, 2019 at 7:18 PM Anup Patel wrote: > > The QEMU CPU support under arch/riscv is pretty much generic > and works fine for SiFive Unleashed as well. In fact, there > will be quite a few RISC-V SOCs for which QEMU CPU support > will work fine. > > This patch renames cpu/qemu to

Re: [U-Boot] [PATCH v5 6/7] cmd: efidebug: add memmap command

2019-01-21 Thread AKASHI Takahiro
On Mon, Jan 21, 2019 at 02:39:07PM +0100, Alexander Graf wrote: > On 01/21/2019 08:49 AM, AKASHI Takahiro wrote: > >"memmap" command prints uefi-specific memory map information. > >=> efi memmap > >Type StartEnd Attributes > >

Re: [U-Boot] [PATCH v5 2/7] cmd: efidebug: add devices command

2019-01-21 Thread AKASHI Takahiro
Alex, On Mon, Jan 21, 2019 at 02:34:43PM +0100, Alexander Graf wrote: > On 01/21/2019 08:49 AM, AKASHI Takahiro wrote: > >"devices" command prints all the uefi variables on the system. > > > >=> efi devices > >Scanning disk ahci_scsi.id0lun0... > >Scanning disk ahci_scsi.id1lun0... > >Found 4

Re: [U-Boot] dfu broken on rk3288 dwc2_otg【请注意,邮件由u-boot-boun...@lists.denx.de代发】

2019-01-21 Thread Kever Yang
Hi Jack, On 01/22/2019 01:55 AM, Jack Mitchell wrote: > Hi, > > Has anyone successfully used DFU on an rk3288 or dwc2_otg based board? > When trying to download a binary to the board over DFU it currently > seems to timeout and the transfer fails. I have tested the > firefly-rk3288 and also the

[U-Boot] [PATCH 31/33] sound: Add a driver for RealTek RT5677

2019-01-21 Thread Simon Glass
This audio codec is used on samus. Add a driver for it. Signed-off-by: Simon Glass --- drivers/sound/Kconfig |9 + drivers/sound/Makefile |1 + drivers/sound/rt5677.c | 334 ++ drivers/sound/rt5677.h | 1428 4 files changed, 1772

[U-Boot] [PATCH 20/33] sound: Add uclass operations for beeping

2019-01-21 Thread Simon Glass
Some audio codecs such as Intel HDA do not need to use digital data to play sounds, but instead have a way to emit beeps. Add this interface as an option. If the beep interface is not supported, then the sound uclass falls back to the I2S interface. Signed-off-by: Simon Glass ---

[U-Boot] [PATCH 24/33] sound: x86: Add beeping support in i8254

2019-01-21 Thread Simon Glass
Adjust the code to allow beeping at different frequencies, using a calculated value for timer 2. Signed-off-by: Simon Glass --- arch/x86/include/asm/i8254.h | 18 ++ arch/x86/lib/i8254.c | 36 2 files changed, 50 insertions(+), 4

[U-Boot] [PATCH 32/33] x86: sound: Add sound support for samus (broadwell)

2019-01-21 Thread Simon Glass
Add a sound driver for samus which ties together the audio codec and I2S controller. Signed-off-by: Simon Glass --- drivers/sound/Makefile | 2 +- drivers/sound/broadwell_sound.c | 65 + 2 files changed, 66 insertions(+), 1 deletion(-) create mode

[U-Boot] [PATCH 22/33] sandbox: sound: Silence sound for testing

2019-01-21 Thread Simon Glass
When testing the sound system we don't need the hear the beeps. The testing works by checking the data that would be emitted. Add a device-tree property to silence the sound, and enable it for testing. Signed-off-by: Simon Glass --- arch/sandbox/dts/test.dts | 1 + drivers/sound/sandbox.c |

[U-Boot] [PATCH 29/33] x86: broadwell: Add support for serial I/O devices

2019-01-21 Thread Simon Glass
Add support for initing the I2C device and ADSP on broadwell. These are needed for sound to work. Signed-off-by: Simon Glass --- arch/x86/cpu/broadwell/pch.c | 110 ++ .../x86/include/asm/arch-broadwell/serialio.h | 82 + 2 files changed, 192

[U-Boot] [PATCH 17/33] pch: Add ioctl support

2019-01-21 Thread Simon Glass
At present the PCH has 4 operations and these are reasonably widely used in the drivers. But sometimes we want to add rarely used operations, and each of these currently adds to the size of the PCH operations table. Add an ioctl() method which can be easily expanded without any more impact on the

[U-Boot] [PATCH 19/33] sound: Mark sound_setup() as optional

2019-01-21 Thread Simon Glass
This method in the sound API is optional since some drivers can do this when probing or as part of SoC init. Mark it as such. Signed-off-by: Simon Glass --- drivers/sound/sound-uclass.c | 2 +- include/sound.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH 15/33] x86: sandbox: pch: Add a CONFIG option for PCH

2019-01-21 Thread Simon Glass
At present this uclass is selected only on x86. In order to add a test for it, it must also support sandbox. Create a new CONFIG_PCH option and enable it on x86 and sandbox. Signed-off-by: Simon Glass --- arch/Kconfig| 2 ++ drivers/Kconfig | 2 ++ drivers/Makefile| 2 +-

[U-Boot] [PATCH 08/33] gpio: Show inactive GPIOs when explicitly requested

2019-01-21 Thread Simon Glass
At present the gpio command only shows GPIOs which are marked as in use. This makes sense with 'gpio status' since we already have the '-a' flag to indicate that all GPIOs should be shown. But when a particular GPIO is requested, it seems better to always display it. At present the request is

[U-Boot] [PATCH 21/33] sound: Add support for Intel HDA

2019-01-21 Thread Simon Glass
The Intel High-definition Audio is a newer-generation audio system which provides for transfer of a large number of audio stream, each containing up to 16 channels. Add support for HDA as a library which can be used by other drivers. U-Boot currently uses only two channels (stereo).

[U-Boot] [PATCH 33/33] x86: Add sound support for samus

2019-01-21 Thread Simon Glass
Enable sound on samus using the broadwell I2S and an RT5677 audio codec. Signed-off-by: Simon Glass --- arch/x86/dts/chromebook_samus.dts | 49 +++--- configs/chromebook_samus_defconfig | 9 ++ drivers/sound/Makefile | 2 +- 3 files changed, 55

[U-Boot] [PATCH 25/33] sound: Add a driver for the i8254 beep

2019-01-21 Thread Simon Glass
Add a sound driver which can output simple beeps using this legacy timer. Signed-off-by: Simon Glass --- drivers/sound/Kconfig | 12 drivers/sound/Makefile | 1 + drivers/sound/i8254_beep.c | 38 ++ 3 files changed, 51 insertions(+)

[U-Boot] [PATCH 13/33] x86: samus: Increase the pre-reloc memory

2019-01-21 Thread Simon Glass
This is too small now, likely due to the pre_reloc_only fixes. Increase it. Signed-off-by: Simon Glass --- configs/chromebook_samus_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/chromebook_samus_defconfig b/configs/chromebook_samus_defconfig index

[U-Boot] [PATCH 11/33] sandbox: Add a note about the growing state_info struct

2019-01-21 Thread Simon Glass
This struct is getting larger and in some cases is being used for things which would be better put into a driver. For example hwspinlock is not used outside of sandbox_hwspinlock.c. Add a note to encourage people to put things elsewhere. Signed-off-by: Simon Glass ---

[U-Boot] [PATCH 16/33] sandbox: pch: Add a test for the PCH uclass

2019-01-21 Thread Simon Glass
This uclass currently has no tests. Add a sandbox driver and some simple tests to provide basic coverage. Signed-off-by: Simon Glass --- arch/sandbox/dts/test.dts | 4 ++ arch/sandbox/include/asm/test.h | 8 drivers/pch/Makefile| 1 + drivers/pch/sandbox_pch.c |

[U-Boot] [PATCH 09/33] gpio: Use case-insentive matching on the GPIO name

2019-01-21 Thread Simon Glass
Allow the 'gpio' command to match GPIO bank names regardless of the case of each. While these are generally in upper case, it is useful to be able to provide lower case with the command. Signed-off-by: Simon Glass --- cmd/gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [PATCH 14/33] x86: link: Increase malloc size and decrease code size

2019-01-21 Thread Simon Glass
At present link does not boot since it has outgrown its pre-relocation malloc() size and its assigned code area. Increase the former and drop EFI loader support, which adds about 45KB! Signed-off-by: Simon Glass --- configs/chromebook_link_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1

[U-Boot] [PATCH 18/33] x86: ivybridge: Add a way to get the HDA config setting

2019-01-21 Thread Simon Glass
Add a way check to whether HD audio is enabled. Use ioctl() to avoid adding too many unusual operations to PCH. Signed-off-by: Simon Glass --- arch/x86/cpu/ivybridge/bd82x6x.c | 19 +++ include/pch.h| 3 +++ 2 files changed, 22 insertions(+) diff --git

[U-Boot] [PATCH 26/33] x86: coreboot: Enable the beeper sound driver

2019-01-21 Thread Simon Glass
Use the i8254 sound driver to support creating simple beeps. Signed-off-by: Simon Glass --- configs/coreboot_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/coreboot_defconfig b/configs/coreboot_defconfig index ad0b35f204..2795fe97ca 100644 ---

[U-Boot] [PATCH 27/33] x86: broadwell: Add support for the ADSP

2019-01-21 Thread Simon Glass
The Application Digital Signal Processor is used for sound processing with broadwell. Add a driver to support this. Signed-off-by: Simon Glass --- arch/x86/cpu/broadwell/Makefile| 1 + arch/x86/cpu/broadwell/adsp.c | 157 +

[U-Boot] [PATCH 30/33] x86: sound: Add support for broadwell I2S

2019-01-21 Thread Simon Glass
I2S is used to send digital audio data to an audio codec. Add support for this on broadwell. Signed-off-by: Simon Glass --- drivers/sound/Makefile| 1 + drivers/sound/broadwell_i2s.c | 306 ++ drivers/sound/broadwell_i2s.h | 301

[U-Boot] [PATCH 23/33] sound: x86: link: Add sound support

2019-01-21 Thread Simon Glass
Add sound support for link, using the HDA codec implementation. Signed-off-by: Simon Glass --- arch/x86/cpu/ivybridge/Kconfig| 1 + arch/x86/cpu/ivybridge/northbridge.c | 27 arch/x86/dts/chromebook_link.dts | 91

[U-Boot] [PATCH 12/33] x86: Adjust I/O macros to work on 64-bit machines

2019-01-21 Thread Simon Glass
At present these macros give warnings on 64-bit machines and do not correctly do 32-bit accesses. Update them to use linux types. Signed-off-by: Simon Glass --- arch/x86/include/asm/io.h | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git

[U-Boot] [PATCH 03/33] log: Allow #define LOG_DEBUG to enable logging in a file

2019-01-21 Thread Simon Glass
At present it is possible to '#define DEBUG' at the top of a file which causes all debug() statements in that file to become active. There is currently no equivalent with logging, but this is a useful function. Add a LOG_DEBUG define along with documentation. Signed-off-by: Simon Glass ---

[U-Boot] [PATCH 07/33] pci: Fix comment in struct pci_child_platdata

2019-01-21 Thread Simon Glass
This is platdata, not private data, so the comment is currently incorrect. Fix it to avoid confusion. Signed-off-by: Simon Glass --- include/pci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pci.h b/include/pci.h index ffd796becf..1762518848 100644 ---

[U-Boot] [PATCH 06/33] pci: Don't export pci_hose_config_device()

2019-01-21 Thread Simon Glass
This function is not used outside this file so make it static. Signed-off-by: Simon Glass --- drivers/pci/pci.c | 7 ++- include/pci.h | 6 -- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 221054593e..e2195726c8 100644

[U-Boot] [PATCH 28/33] x86: broadwell: Don't bother probing the PCH for pinctrl

2019-01-21 Thread Simon Glass
At present the pinctrl probes the PCH but since it only uses it to obtain a PCI address, this is no necessary. Avoiding this fixes one of the two co-dependent loops in broadwell. This driver really should be a proper pinctrl driver, but for now it remains a syscon device. Signed-off-by: Simon

[U-Boot] [PATCH 04/33] dm: syscon: Don't require a regmap for PCI devices

2019-01-21 Thread Simon Glass
At present it is not possible to use the syscon devices for PCI devices since a regmap is required. Since PCI uses a 3-cell address the conversion of the 'reg' property to an address always fails. In any case, the regmap is not useful with PCI since devices are accessed through the PCI bus which

[U-Boot] [PATCH 05/33] i2c: designware: Add error checking on init

2019-01-21 Thread Simon Glass
At present this driver does not check whether it is able to actually communicate with the I2C controller. It prints a timeout message but still considers the probe to be successful. To fix this, add some checking that the init succeeds. Signed-off-by: Simon Glass ---

[U-Boot] [PATCH 10/33] pci: Add IDs for Intel high-definition audio

2019-01-21 Thread Simon Glass
Add a few IDs for common HDA blocks and the ADSP used on samus. Signed-off-by: Simon Glass --- include/pci_ids.h | 4 1 file changed, 4 insertions(+) diff --git a/include/pci_ids.h b/include/pci_ids.h index fdda679cc0..b33b85db55 100644 --- a/include/pci_ids.h +++ b/include/pci_ids.h @@

[U-Boot] [PATCH 02/33] log: Add documentation for convenience functions

2019-01-21 Thread Simon Glass
The log_debug(), etc. function are documented only in the header file at present. Add a section to README.log also. Signed-off-by: Simon Glass --- doc/README.log | 26 ++ 1 file changed, 26 insertions(+) diff --git a/doc/README.log b/doc/README.log index

[U-Boot] [PATCH 01/33] log: Add a Kconfig option to set the default log level

2019-01-21 Thread Simon Glass
At present the default log level is set to LOGL_INFO on start-up. Allow this to be controlled from Kconfig. Signed-off-by: Simon Glass --- common/Kconfig | 9 + common/log.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/common/Kconfig b/common/Kconfig index

[U-Boot] [PATCH 00/33] x86: Add support for sound

2019-01-21 Thread Simon Glass
At present no x86 boards support sound. This series adds several options: - legacy beep - Intel HDA - I2S with codec These are enabled on coreboot, link and samus, respectively. A number of related patches are included to make the above work. Simon Glass (33): log: Add a Kconfig

Re: [U-Boot] [PATCH v5 1/7] cmd: add efidebug command

2019-01-21 Thread AKASHI Takahiro
Alex, On Mon, Jan 21, 2019 at 02:07:31PM +0100, Alexander Graf wrote: > On 01/21/2019 08:49 AM, AKASHI Takahiro wrote: > >Currently, there is no easy way to add or modify UEFI variables. > >In particular, bootmgr supports BootOrder/Boot variables, it is > >quite hard to define them as u-boot

Re: [U-Boot] [PATCH] pci: Add PCI_SLOT macro to include/pci.h

2019-01-21 Thread Simon Glass
Hi Stefan, On Sat, 19 Jan 2019 at 00:46, Stefan Roese wrote: > > This macro will be used the by the Marvell Armada XP/38x PCIe driver, > which is moved to DM right now. > > Signed-off-by: Stefan Roese > Cc: Bin Meng > Cc: Simon Glass > --- > include/pci.h | 1 + > 1 file changed, 1

Re: [U-Boot] [PATCH] Makefile: Only build dtc if needed

2019-01-21 Thread Simon Glass
Hi Tom, On Wed, 14 Nov 2018 at 12:51, Marek Vasut wrote: > > On 11/13/2018 11:43 PM, Simon Glass wrote: > > At present U-Boot always builds dtc if CONFIG_OF_CONTROL is defined. This > > is wasteful when the system already has a suitable version available. > > > > Update the Makefile logic to

[U-Boot] dumpimage: failure on null-padded image dumps

2019-01-21 Thread Chris Renshaw
Hi, I maintain the Android Image Kitchen project, which has U-Boot uImage support for the handfull of Android devices that use uImage for their boot.img/recovery.img format. This support is achieved using cross-compiles of U-Boot's dumpimage and mkimage tools, to all the Android NDK

Re: [U-Boot] [PATCH 00/11] sound: Add sound support for Nyan

2019-01-21 Thread Simon Glass
Hi Tom, On Mon, 21 Jan 2019 at 10:46, Tom Warren wrote: > > Let's have Jon Hunter take a look, I'll take it in to tegra/master if he acks > it. OK thank you. For now I've picked up the non-Tegra patches from that series so I can get this out. Regards, SImon > > -Original Message- >

Re: [U-Boot] [PATCH 01/11] misc: Allow child devices

2019-01-21 Thread sjg
Allow misc devices to have children, so that we can use this uclass for cases where a child device (e.g. I2S) needs to access a misc driver for transferring data. Signed-off-by: Simon Glass --- drivers/misc/misc-uclass.c | 1 + 1 file changed, 1 insertion(+) Applied to u-boot-dm, thanks!

Re: [U-Boot] [PATCH 03/11] sound: i2s: Tidy up a few comments

2019-01-21 Thread sjg
Fix a struct typo and drop a comment (and function prototype) which is not actually used. Signed-off-by: Simon Glass --- include/i2s.h | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) Applied to u-boot-dm, thanks! ___ U-Boot mailing

Re: [U-Boot] [PATCH 02/11] sound: samsung: Fix 'regiter' typo

2019-01-21 Thread sjg
Fix a typo that appears many times in this file. Signed-off-by: Simon Glass --- drivers/sound/samsung-i2s.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) Applied to u-boot-dm, thanks! ___ U-Boot mailing list

Re: [U-Boot] [PATCH 04/11] sound: Allow audio codecs to be used by other SoCs

2019-01-21 Thread sjg
At present there is still some samsung-specific code in the audio codecs. Remove it so that these can be used by other SoCs. Signed-off-by: Simon Glass --- drivers/sound/Kconfig | 8 drivers/sound/max98088.c | 7 --- drivers/sound/max98090.c | 7 ---

Re: [U-Boot] [PATCH 1/6] watchdog: bcm6345: switch to raw I/O functions

2019-01-21 Thread Marek Behun
Hi, You have to add some commit message, even if it is only one line, describing why are you doing these changes. Marek On Mon, 21 Jan 2019 18:07:28 +0100 Philippe Reynes wrote: > Signed-off-by: Philippe Reynes > --- > drivers/watchdog/bcm6345_wdt.c | 10 +- > 1 file changed, 5

Re: [U-Boot] [PATCH 1/2] nyan-big: change spi delay

2019-01-21 Thread Simon Glass
On Thu, 17 Jan 2019 at 10:33, Simon Glass wrote: > > On Wed, 16 Jan 2019 at 11:50, Tristan Bastian > wrote: > > > > Internal keyboard of nyan-big is only working when cold booting by pressing > > [reload/refresh]+[power] button. > > With this patch keyboard is working by only pressing [power]

[U-Boot] [PATCH v2 13/19] rockchip: clk: Add mention of four new clocks

2019-01-21 Thread Simon Glass
These clocks are needed to get MMC running. We don't actually support setting them yet. Signed-off-by: Simon Glass --- Changes in v2: - Use correct printf format for log message drivers/clk/rockchip/clk_rk3399.c | 12 1 file changed, 12 insertions(+) diff --git

[U-Boot] [PATCH v2 14/19] rockchip: Tidy up board include-file ordering

2019-01-21 Thread Simon Glass
These board files have inconsistent #include ordering. Fix them. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/mach-rockchip/rk3036-board.c | 2 +- arch/arm/mach-rockchip/rk3188-board-spl.c | 2 +- arch/arm/mach-rockchip/rk3188-board.c | 2 +-

[U-Boot] [PATCH v2 19/19] rockchip: Add support for chromebook_bob

2019-01-21 Thread Simon Glass
Bob is a 10-inch chromebook produced by Asus. It has two USB 3.0 type-C ports, 4GB of SDRAM, WiFi and a 1280x800 display. It uses its USB ports for both power and external display. It includes a Chrome OS EC (Cortex-M3) to provide access to the keyboard and battery functions. Support so far

[U-Boot] [PATCH v2 17/19] rockchip: Implement spl_gpio in the GPIO driver

2019-01-21 Thread Simon Glass
Allow rockchip boards to use GPIOs before driver model is ready. This is really only useful for setting GPIOs to enable the early debug console, if needed on some platforms. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/include/asm/arch-rockchip/gpio.h | 23

[U-Boot] [PATCH v2 18/19] rockchip: gru: Add extra device-tree settings

2019-01-21 Thread Simon Glass
Add some U-Boot-specific settings. These should really go in the *u-boot.dtsi file, but it seems that rk3399 does not use that yet. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/dts/rk3399-gru-bob.dts | 1 + arch/arm/dts/rk3399-gru-chromebook.dtsi | 1 +

[U-Boot] [PATCH v2 16/19] rockchip: Move pull-up/down enum into a common file

2019-01-21 Thread Simon Glass
At present this enum is only available to rk3288. Move it so that other rockchip SoCs can access it. It is needed for the SPL GPIO driver for rk3999 in a later patch. Also adjust the enum name to lower case. Signed-off-by: Simon Glass --- Changes in v2: None

[U-Boot] [PATCH v2 09/19] rockchip: evb_rk3399: Tidy up the README

2019-01-21 Thread Simon Glass
Add mention of a prerequisite needed to build the image. Also adjust the English wording in a few places. Ideally this should move to using binman to produce images, and avoid the manual steps. Signed-off-by: Simon Glass --- Changes in v2: None board/rockchip/evb_rk3399/README | 33

[U-Boot] [PATCH v2 15/19] rockchip: rk3399: Add ROCKCHIP_DEVICE_SETTINGS to set env

2019-01-21 Thread Simon Glass
Some boards use different stdio environment variables from the default. Provide a #define for this which can be set before including the header file. Signed-off-by: Simon Glass --- Changes in v2: None include/configs/rk3399_common.h | 5 + 1 file changed, 5 insertions(+) diff --git

[U-Boot] [PATCH v2 11/19] rockchip: Allow booting from SPI

2019-01-21 Thread Simon Glass
The u-boot,spl-boot-device property only allows MMC at present. Add SPI as well for boards that boot from SPI flash. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/mach-rockchip/spl-boot-order.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[U-Boot] [PATCH v2 10/19] rockchip: Clarify docs on SPI writing

2019-01-21 Thread Simon Glass
We use every second block when creating a SPI image, so update the text to say this explicitly. Signed-off-by: Simon Glass --- Changes in v2: None doc/README.rockchip | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/README.rockchip b/doc/README.rockchip index

[U-Boot] [PATCH v2 07/19] rockchip: Bring in device tree files for rk3399-gru

2019-01-21 Thread Simon Glass
Bring in these files from Linux v4.20. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/dts/rk3399-gru-bob.dts | 79 +++ arch/arm/dts/rk3399-gru-chromebook.dtsi | 397 +++ arch/arm/dts/rk3399-gru-kevin.dts | 309 + arch/arm/dts/rk3399-gru.dtsi

[U-Boot] [PATCH v2 08/19] rockchip: Adjust rk3399 device tree to be closer to linux

2019-01-21 Thread Simon Glass
This file has changed upstream, with some additions and changes. Move the U-Boot version towards this. Some USB changes seem to be incompatible with how the bindings work on rockchip in U-Boot. Testing is needed to make sure that USB still works correct, and adjust the code (not device tree) if

[U-Boot] [PATCH v2 12/19] rockchip: Add settings for Samsung LPDDR3 4GB SDRAM 1866MHz

2019-01-21 Thread Simon Glass
This memory is used on Bob. Add settings for this, taken from coreboot. Signed-off-by: Simon Glass --- Changes in v2: None .../rk3399-sdram-lpddr3-samsung-4GB-1866.dtsi | 1542 + 1 file changed, 1542 insertions(+) create mode 100644

[U-Boot] [PATCH v2 04/19] gpio: Add a simple GPIO API for SPL

2019-01-21 Thread Simon Glass
In space-constrained environments or before driver model is available, it is sometimes necessary to set GPIO values. Add an SPL API for this, to allow early board code to change GPIOs. The caller must provide the register address, so that the drivers can be fairly generic. This API can be

[U-Boot] [PATCH v2 05/19] rockchip: Add mention of other boards

2019-01-21 Thread Simon Glass
At present some Rockchip SoCs and boards are not mentioned in the README. So that people can see which SoCs are supported, expand the list to include everything. Signed-off-by: Simon Glass --- Changes in v2: - Mention EVB RV1108 - Fix the name of the firefly-rk3399 defconfig

[U-Boot] [PATCH v2 06/19] rockchip: Drop note about supporting other SoCs

2019-01-21 Thread Simon Glass
Quite a wide range of Rockchip SoCs are supported in mainline U-Boot now, so drop the comment about needing to add more. Signed-off-by: Simon Glass --- Changes in v2: None doc/README.rockchip | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/doc/README.rockchip

[U-Boot] [PATCH v2 01/19] lib: Allow using display_buffer() in SPL

2019-01-21 Thread Simon Glass
At present this function uses printf() format strings that are not supported in SPL, so the output just consists of %llx strings on 64-bit. machines. Fix this by adding a special case. Signed-off-by: Simon Glass --- Changes in v2: None lib/display_options.c | 4 +++- 1 file changed, 3

[U-Boot] [PATCH v2 02/19] clk: Improve debug message in clk_set_default_rates()

2019-01-21 Thread Simon Glass
It is helpful to print the clock number as well as the index, so that this can be looked up in the binding file. Update the debug() statement to do this. Signed-off-by: Simon Glass --- Changes in v2: None drivers/clk/clk-uclass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[U-Boot] [PATCH v2 03/19] gpio: Use more command-specific enums values

2019-01-21 Thread Simon Glass
At present this file uses GPIO_OUTPUT and GPIO_INPUT as its sub-command values. These are pretty generic names. Add a 'C' suffix to avoid possible conflicts. Signed-off-by: Simon Glass --- Changes in v2: None cmd/gpio.c | 37 +++-- 1 file changed, 23

[U-Boot] [PATCH v2 00/19] rockchip: Add support for Bob Chromebook

2019-01-21 Thread Simon Glass
This series adds basic support for Bob which is based on RK3399. Quite a bit of work remains to get this into fully working condition. This series is based on the rockchip pinctrl drivers series by David Wu. It is available at u-boot-dm/rk-working Changes in v2: - Mention EVB RV1108 - Fix the

Re: [U-Boot] no DTB with nand SPL on sama5d3

2019-01-21 Thread Daniel Evans
Currently the boot.bin is only 50670 bytes (208 bytes nand_header + 44820 bytes u-boot-spl-nodtb.bin + 5642 u-boot-spl.dtb). I tried playing with CONFIG_SPL_MAX_SIZE and CONFIG_SPL_PAD_TO and got no changing in the output binaries, and I couldn’t get any padding no matter the setting. So

[U-Boot] [PATCH 2/2] lib: lmb: cleanup var names and patman warnings

2019-01-21 Thread Simon Goldschmidt
Change multiple usages of 'j' into 'rgn'; fix whitespace/coding style reported by patman. Signed-off-by: Simon Goldschmidt --- lib/lmb.c | 86 +++ 1 file changed, 42 insertions(+), 44 deletions(-) diff --git a/lib/lmb.c b/lib/lmb.c index

[U-Boot] [PATCH 1/2] lib: lmb: rename lmb_get_unreserved_size to lmb_get_free_size

2019-01-21 Thread Simon Goldschmidt
As a follow-up, change the name of the newly introduced function 'lmb_get_unreserved_size' to 'lmb_get_free_size', which is more appropriate. Signed-off-by: Simon Goldschmidt --- include/lmb.h | 2 +- lib/lmb.c | 2 +- net/tftp.c| 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)

Re: [U-Boot] [PATCH v2 0/9] Add common pinctrl driver support for rockchip

2019-01-21 Thread Simon Glass
Hi, On Thu, 3 Jan 2019 at 01:51, David Wu wrote: > > The common pinctrl driver for rockchip Socs, it depends the PINCTRL_FULL > config. > If use it, the default pinctrl setup from DTS could be configured at device > probe. > > Changes in v2: > - Remove px30, rk2928, rk3066*. > - Split it to

Re: [U-Boot] [RFC PATCH] bitops: Fix GENMASK definition for Sandbox

2019-01-21 Thread Simon Glass
On Fri, 11 Jan 2019 at 01:56, Simon Glass wrote: > > On Mon, 17 Dec 2018 at 06:31, Vignesh R wrote: > > > > In arch/sandbox/include/asm/types.h we have > > Therefore for 32 bit Sandbox build BITS_PER_LONG turns out to be 32 as > > CONFIG_PHYS64 is not set > > > > This messes up the current logic

Re: [U-Boot] [PATCH v2 1/3] Revert "power: regulator: Return success on attempt to disable an always-on regulator"

2019-01-21 Thread Simon Glass
On Fri, 11 Jan 2019 at 22:46, Lokesh Vutla wrote: > > This reverts commit e17e0ceb83538c015a50b965547f2f4d38f81c5d. > > It is advised to return an error when trying to disable an always-on > regulator and let the consumer driver handle the error if needed. > > Reviewed-by: Simon Glass >

[U-Boot] [PATCH 1/1] efi_loader: do not use symbolic links

2019-01-21 Thread Heinrich Schuchardt
Symbolic links are not supported on all file systems, e.g. not on FAT. So it is not wise to use them in our source tree. Use a qualified path to refer to lib/efi_loader/efi_freestanding.c in scripts/Makefile.lib instead. Reported-by: Alexander Graf Signed-off-by: Heinrich Schuchardt --- Hello

Re: [U-Boot] [PATCH v2 3/3] mmc: omap_hsmmc: Use regulator_set_enable_if_allowed for enabling regulator

2019-01-21 Thread sjg
Use regulator_set_enable_if_allowed() api instead of regulator_set_enable() while enabling io regulators. This way the driver doesn't see an error when disabling an always-on regulator and when enabling is not supported. Reviewed-by: Simon Glass Signed-off-by: Lokesh Vutla ---

Re: [U-Boot] [PATCH v2 2/3] power: regulator: Introduce regulator_set_enable_if_allowed api

2019-01-21 Thread sjg
On Fri, 11 Jan 2019 at 02:46, Lokesh Vutla wrote: > > regulator_set_enable() api throws an error in the following three cases: > - when requested to disable an always-on regulator > - when set_enable() ops not provided by regulator driver > - when enabling is actually failed.(Error returned by

Re: [U-Boot] [PATCH v3 02/10] exynos: Drop duplicate 'model' line

2019-01-21 Thread sjg
On 12/01/19 10:37, Simon Glass wrote: > At present the model is shown twice, once in the generic code and once > in the exynos code. Drop the latter. > > Signed-off-by: Simon Glass > Reviewed-by: Lukasz Majewski > --- > > Changes in v3: None > Changes in v2: None > >

Re: [U-Boot] [PATCH] buildman: fix typo

2019-01-21 Thread Simon Glass
On Fri, 18 Jan 2019 at 20:40, Chris Packham wrote: > > Fix a typo in the error message from CheckOutputDir(). > > Signed-off-by: Chris Packham > --- > > tools/buildman/control.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glass

Re: [U-Boot] [PATCH v3 04/10] sound: Add a driver for max98088

2019-01-21 Thread sjg
This chip is used by spring. Add a driver for it and update the samsung_sound driver to pick it up. Signed-off-by: Simon Glass --- Changes in v3: - Fix remaining 'return -1' statements to use a real error Changes in v2: None drivers/sound/Kconfig | 8 + drivers/sound/Makefile

  1   2   3   >