[U-Boot] [PATCH v5 4/7] cmd: efidebug: add dh command

2019-01-20 Thread AKASHI Takahiro
"dh" command prints all the uefi handles used in the system. => efi dh 7ef3bfa0: Device Path, Device Path To Text, Device Path Utilities, Unicode Collation 2 7ef31d30: Driver Binding 7ef31da0: Simple Text Output 7ef31e10: Simple Text Input, Simple

[U-Boot] [PATCH v5 5/7] cmd: efidebug: add images command

2019-01-20 Thread AKASHI Takahiro
"images" command prints loaded images-related information. Signed-off-by: AKASHI Takahiro --- cmd/efidebug.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/cmd/efidebug.c b/cmd/efidebug.c index 34794398c0c2..906e6b2d0295 100644 --- a/cmd/efidebug.c +++ b/cmd/e

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

2019-01-20 Thread AKASHI Takahiro
"env [print|set] -e" allows for handling uefi variables without knowing details about mapping to corresponding u-boot variables. Signed-off-by: AKASHI Takahiro --- cmd/nvedit.c | 59 +++- 1 file changed, 58 insertions(+), 1 deletion(-) diff --git

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

2019-01-20 Thread AKASHI Takahiro
"memmap" command prints uefi-specific memory map information. => efi memmap Type StartEnd Attributes == CONVENTIONAL 4000-7de27000 WB RUNTIME DATA 7de27000-7de

[U-Boot] [PATCH v5 3/7] cmd: efidebug: add drivers command

2019-01-20 Thread AKASHI Takahiro
"drivers" command prints all the uefi drivers on the system. => efi drivers D r vDriver Name Image Path == 7ef31d30 Signed-off-by: AKASHI Takahiro --- cmd/efidebug.c | 82 +

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

2019-01-20 Thread AKASHI Takahiro
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 variables because they are represented in a complicated and encoded format. The new command, efidebug, helps address these issues

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

2019-01-20 Thread AKASHI Takahiro
"devices" command prints all the uefi variables on the system. => efi devices Scanning disk ahci_scsi.id0lun0... Scanning disk ahci_scsi.id1lun0... Found 4 disks D e vDevice Path 7ef3bfa0 /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)

[U-Boot] [PATCH v5 0/7] cmd: add efidebug for efi environment

2019-01-20 Thread AKASHI Takahiro
This patch set is a collection of patches to enhance efi user interfaces /commands. It will help improve user experience on efi boot and make it more usable *without* edk2's shell utility. Let's see how it works: => efidebug boot add 1 SHELL mmc 0:1 /Shell.efi "" => efidebug boot add 2 HELLO mmc 0

Re: [U-Boot] [PATCH v4 3/9] efi_driver: add name to driver binding protocol

2019-01-20 Thread AKASHI Takahiro
On Thu, Jan 17, 2019 at 07:58:17AM +0100, Heinrich Schuchardt wrote: > On 1/17/19 6:33 AM, AKASHI Takahiro wrote: > > You raised a couple of questions to me. > > > > On Tue, Jan 15, 2019 at 04:41:08AM +0100, Heinrich Schuchardt wrote: > >> On 1/15/19 3:55 AM, AKASHI Takahiro wrote: > >>> This new

Re: [U-Boot] [PATCH v2 1/2] efi_loader: implement GetNextVariableName()

2019-01-20 Thread Heinrich Schuchardt
On 1/21/19 4:10 AM, AKASHI Takahiro wrote: > The current GetNextVariableName() is a placeholder. > With this patch, it works well as expected. > > Signed-off-by: AKASHI Takahiro > --- > lib/efi_loader/efi_variable.c | 154 +- > 1 file changed, 152 insertions(+), 2

Re: [U-Boot] [PATCH v2 00/11] SiFive FU540 Support

2019-01-20 Thread Bin Meng
Hi Anup, On Mon, Jan 21, 2019 at 2:41 PM Anup Patel wrote: > > > > > -Original Message- > > From: Bin Meng [mailto:bmeng...@gmail.com] > > Sent: Monday, January 21, 2019 11:44 AM > > To: Anup Patel > > Cc: Atish Patra ; Auer, Lukas > > ; s...@chromium.org; > > r...@andestech.com; joe.her

Re: [U-Boot] [PATCH v2 00/11] SiFive FU540 Support

2019-01-20 Thread Anup Patel
> -Original Message- > From: Bin Meng [mailto:bmeng...@gmail.com] > Sent: Monday, January 21, 2019 11:44 AM > To: Anup Patel > Cc: Atish Patra ; Auer, Lukas > ; s...@chromium.org; > r...@andestech.com; joe.hershber...@ni.com; > yamada.masah...@socionext.com; paul.walms...@sifive.com; > p

Re: [U-Boot] [PATCH v2 00/11] SiFive FU540 Support

2019-01-20 Thread Bin Meng
Hi Anup, On Mon, Jan 21, 2019 at 12:04 PM Anup Patel wrote: > > > > > -Original Message- > > From: Atish Patra [mailto:atish.pa...@wdc.com] > > Sent: Monday, January 21, 2019 7:07 AM > > To: Auer, Lukas ; s...@chromium.org; > > bmeng...@gmail.com; r...@andestech.com; Anup Patel > > ; joe.

Re: [U-Boot] [PATCH v2 06/11] clk: Add SiFive FU540 PRCI clock driver

2019-01-20 Thread Anup Patel
> -Original Message- > From: Auer, Lukas [mailto:lukas.a...@aisec.fraunhofer.de] > Sent: Monday, January 21, 2019 1:43 AM > To: s...@chromium.org; bmeng...@gmail.com; r...@andestech.com; Anup > Patel ; joe.hershber...@ni.com; > yamada.masah...@socionext.com > Cc: paul.walms...@sifive.com;

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

2019-01-20 Thread Anup Patel
> -Original Message- > From: Auer, Lukas [mailto:lukas.a...@aisec.fraunhofer.de] > Sent: Monday, January 21, 2019 1:35 AM > To: s...@chromium.org; bmeng...@gmail.com; r...@andestech.com; Anup > Patel ; joe.hershber...@ni.com; > yamada.masah...@socionext.com > Cc: paul.walms...@sifive.com;

[U-Boot] [PATCH v1 3/3] am335x, shc: adapt shc board to DM

2019-01-20 Thread Heiko Schocher
port the am335x based shc board to DM, to get rid of DW warnings when compiling U-Boot. - remove uneccessary board code - adapt defconfigs - remove unneeded defconfigs configs/am335x_shc_prompt_defconfig configs/am335x_shc_sdboot_prompt_defconfig Signed-off-by: Heiko Schocher --- board/bos

[U-Boot] [PATCH v1 2/3] ARM: dts: am335x-shc: add u-boot specific dtsi

2019-01-20 Thread Heiko Schocher
add u-boot specific am335x-shc-u-boot.dtsi file, in which we add u-boot specific adaptions. Signed-off-by: Heiko Schocher --- arch/arm/dts/am335x-shc-u-boot.dtsi | 51 + board/bosch/shc/MAINTAINERS | 1 + 2 files changed, 52 insertions(+) create mode 100644

[U-Boot] [PATCH v1 0/3] am335x, shc: convert am335x based shc board to DM usage

2019-01-20 Thread Heiko Schocher
This patchseries converts the shc board to DM usage and get rid of DM based compiler warnings. Patch 1 copies the DTS from linux Patch 2 introduces u-boot specific dtsi Patch 3 reworks board code and shc specific defconfigs Travis build is fine: https://travis-ci.org/hsdenx/u-boot-test/builds/480

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

2019-01-20 Thread Heiko Schocher
add DTS from linux tree commit "47bfa6d9dc8c060bf56554a465c9031e286d2f80" change for U-Boot: switch to SPDX-license identifier. Signed-off-by: Heiko Schocher --- arch/arm/dts/Makefile | 1 + arch/arm/dts/am335x-shc.dts | 575 board/bosch/shc/MAINTAI

Re: [U-Boot] [PATCH v2 00/11] SiFive FU540 Support

2019-01-20 Thread Anup Patel
> -Original Message- > From: Atish Patra [mailto:atish.pa...@wdc.com] > Sent: Monday, January 21, 2019 7:07 AM > To: Auer, Lukas ; s...@chromium.org; > bmeng...@gmail.com; r...@andestech.com; Anup Patel > ; joe.hershber...@ni.com; > yamada.masah...@socionext.com > Cc: paul.walms...@sifive

[U-Boot] [PATCH v3 4/5] efi: hii: add HII config routing/access protocols

2019-01-20 Thread AKASHI Takahiro
This patch is a place holder for HII configuration routing protocol and HII configuration access protocol. Signed-off-by: AKASHI Takahiro --- include/efi_api.h | 161 include/efi_loader.h| 4 + lib/efi_loader/Makefile | 2 +-

[U-Boot] [PATCH v3 2/5] efi: hii: add guid package support

2019-01-20 Thread AKASHI Takahiro
Allow for handling GUID package in HII database protocol. Signed-off-by: AKASHI Takahiro --- include/efi_api.h| 9 lib/efi_loader/efi_hii.c | 48 +++- 2 files changed, 51 insertions(+), 6 deletions(-) diff --git a/include/efi_api.h b/include

[U-Boot] [PATCH v3 5/5] efi_selftest: add HII database protocols test

2019-01-20 Thread AKASHI Takahiro
This efi_selftest tests HII database protocol and HII string protocol. Signed-off-by: AKASHI Takahiro --- lib/efi_selftest/Makefile|1 + lib/efi_selftest/efi_selftest_hii.c | 1046 ++ lib/efi_selftest/efi_selftest_hii_data.c | 453 ++ 3 files

[U-Boot] [PATCH v3 3/5] efi: hii: add keyboard layout package support

2019-01-20 Thread AKASHI Takahiro
Allow for handling keyboard layout package in HII database protocol. A package can be added or deleted in HII database protocol, but we don't set 'current' keyboard layout as there is no driver that requests a keyboard layout. Signed-off-by: AKASHI Takahiro --- include/efi_api.h| 6 ++

[U-Boot] [PATCH v3 1/5] efi_loader: Initial HII database protocols

2019-01-20 Thread AKASHI Takahiro
From: Leif Lindholm This patch provides enough implementation of the following protocols to run EDKII's Shell.efi and UEFI SCT: * EfiHiiDatabaseProtocol * EfiHiiStringProtocol Not implemented are: * ExportPackageLists() * RegisterPackageNotify()/UnregisterPackageNotify() * SetKeyboard

[U-Boot] [PATCH v3 0/5] subject: efi_loader: add HII database protocol

2019-01-20 Thread AKASHI Takahiro
HII database protocol is the last missing (major?) piece of code so that we can run unmodified EDKII's shell and UEFI SCT on EFI-enabled u-boot. The original code was initially written by Leif and Rob a year ago[1], and now I'm reworking it. The implementation has not been much enhanced from the o

[U-Boot] [PATCH v2 1/2] efi_loader: implement GetNextVariableName()

2019-01-20 Thread AKASHI Takahiro
The current GetNextVariableName() is a placeholder. With this patch, it works well as expected. Signed-off-by: AKASHI Takahiro --- lib/efi_loader/efi_variable.c | 154 +- 1 file changed, 152 insertions(+), 2 deletions(-) diff --git a/lib/efi_loader/efi_variable.c

[U-Boot] [PATCH v2 2/2] efi_selftest: fix variables test for GetNextVariableName()

2019-01-20 Thread AKASHI Takahiro
There is a bug in efi variables test. Fix it with some cosmetic improvements. Please note that efi variables test still fails at QueryVariableInfo() and GetVariable(), but this is not due to a change in this patch. ==8<== Testing EFI API implementation Selected test: 'variables' Setting

[U-Boot] [PATCH v2 0/2] efi_loader: add GetNextVariableName

2019-01-20 Thread AKASHI Takahiro
In this patch, GetNextVariableName runtime service will be implemented. Changes in v2 (Jan 21, 2019) * update variable_name_size in GetNextVariableName * add more comments * change some internal variable names AKASHI Takahiro (2): efi_loader: implement GetNextVariableName() efi_selftest: fix

Re: [U-Boot] [PATCH v2 00/11] SiFive FU540 Support

2019-01-20 Thread Atish Patra
On 1/20/19 12:34 PM, Auer, Lukas wrote: Hi Anup, On Fri, 2019-01-18 at 11:18 +, Anup Patel wrote: This patchset adds SiFive Freedom Unleashed (FU540) support to RISC-V U-Boot. The patches are based upon latest RISC-V U-Boot tree (git://git.denx.de/u-boot-riscv.git) at commit id 91882c472d8

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

2019-01-20 Thread Atish Patra
On 1/20/19 12:26 PM, Auer, Lukas wrote: Hi Anup, On Fri, 2019-01-18 at 11:19 +, 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 b

Re: [U-Boot] [PATCH v2 09/11] drivers: serial_sifive: Skip baudrate config if no input clock

2019-01-20 Thread Atish Patra
On 1/20/19 12:22 PM, Auer, Lukas wrote: Hi Anup, On Fri, 2019-01-18 at 11:19 +, Anup Patel wrote: From: Atish Patra It is possible that input clock is not available because clk device was not available and 'clock-frequency' DT property is also not available. Why would the clock device n

Re: [U-Boot] [PATCH 05/18] rockchip: Add mention of other boards

2019-01-20 Thread Andy Yan
Hi Simon: Simon Glass 于2019年1月10日周四 下午12:30写道: > 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 > --- > > doc/README.rockchip | 43 +

Re: [U-Boot] [linux-sunxi] [PATCH 0/9] sunxi: enable DM_MMC

2019-01-20 Thread André Przywara
On 20/01/2019 19:51, Priit Laes wrote: Hi, > On Sat, Jan 19, 2019 at 01:30:46AM +, Andre Przywara wrote: >> This series enables the Allwinner MMC driver to drive all SoCs with its >> DM_MMC variant. We use the gates clock and reset support from the new >> clock driver, but keep the actual mod

[U-Boot] [RFC] arch/arm/lib/reloc_aarch64_efi.c

2019-01-20 Thread Heinrich Schuchardt
Hello Simon, unfortunately I could not find any documentation for arch/arm/lib/reloc_aarch64_efi.c. EFI binaries never rely on dynamically loaded libraries. So there will never be any dynamic symbols in an EFI binary. There will not be any GOT either. Relocation is handled by the firmware (e.g.

[U-Boot] [RFC 0/9] Convert Pico-Pi i.MX7D to DM

2019-01-20 Thread Joris Offouga
Hi all, Pinctrl, GPIO, I2C, MMC, ETH are converted. Convert PMIC is the same of warp7 but i have a some erros, si this log : U-Boot SPL 2019.01-00197-ga524e5d-dirty (Jan 20 2019 - 21:09:49 +0100) Trying to boot from USB SDP SDP: initialize... SDP: handle requests... Downloading file of size 5563

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

2019-01-20 Thread Tom Warren
Let's have Jon Hunter take a look, I'll take it in to tegra/master if he acks it. -Original Message- From: Simon Glass Sent: Sunday, January 20, 2019 1:32 PM To: U-Boot Mailing List Cc: Mario Six ; Tom Warren ; Stephen Warren ; Albert Aribaud ; Allen Martin ; Minkyu Kang ; Stephen W

[U-Boot] [RFC 7/9] pico-imx7d: Convert to DM PMIC

2019-01-20 Thread Joris Offouga
This patch converts the pico-pi-imx7d to use the DM PMIC model. Signed-off-by: Joris Offouga --- board/technexion/pico-imx7d/pico-imx7d.c | 44 configs/pico-pi-imx7d_defconfig | 6 + include/configs/pico-imx7d.h | 6 - 3 files chang

[U-Boot] [RFC 8/9] arm: pico-pi-imx7d: Convert to DM USB

2019-01-20 Thread Joris Offouga
Furthermore this patch create a aliase for usb0 to usbotg1. This usb is used for mass storage and dfu. Signed-off-by: Joris Offouga --- arch/arm/dts/imx7d-pico-pi.dts | 1 + configs/pico-pi-imx7d_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/dts/imx7d-pico-pi.dts b/ar

[U-Boot] [RFC 9/9] pico-imx7d: Convert to DM Ethernet

2019-01-20 Thread Joris Offouga
Furthermore this patch fix request gpio_direction_ouput with gpio_request require because DM GPIO is enable Signed-off-by: Joris Offouga --- board/technexion/pico-imx7d/pico-imx7d.c | 1 + configs/pico-pi-imx7d_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/board/techne

[U-Boot] [RFC 6/9] pico-imx7d-pico: defconfig: Switch to DM for UART

2019-01-20 Thread Joris Offouga
This commit switches to DM UART for pico-imx7d-pico. Signed-off-by: Joris Offouga --- arch/arm/dts/imx7d-pico-pi.dts | 4 configs/pico-pi-imx7d_defconfig | 1 + 2 files changed, 5 insertions(+) diff --git a/arch/arm/dts/imx7d-pico-pi.dts b/arch/arm/dts/imx7d-pico-pi.dts index d4aca96..806

[U-Boot] [RFC 4/9] arm: imx7d-pico-pi: Convert to DM MMC initialization

2019-01-20 Thread Joris Offouga
Furthermore this patch create un alias for mmc0 to usdch3 because before the convertion he was the only one described in the pico-imx7d.c. Signed-off-by: Joris Offouga --- arch/arm/dts/imx7d-pico-pi.dts | 4 board/technexion/pico-imx7d/pico-imx7d.c | 36 --

[U-Boot] [RFC 2/9] Arm: imx7d-pico: Add DT file hooks

2019-01-20 Thread Joris Offouga
This patch adds DT file hooks for imx7d-pico-pi.dtb Signed-off-by: Joris Offouga --- arch/arm/dts/Makefile | 3 ++- configs/pico-pi-imx7d_defconfig | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index b2ca87d..5c878

[U-Boot] [RFC 3/9] pico-pi-imx7d: defconfig Enable DM gpio pinctrl and pinctrl_imx7

2019-01-20 Thread Joris Offouga
This patch is necessary for convert pico-pi-imx7 to dm driver model Signed-off-by: Joris Offouga --- configs/pico-pi-imx7d_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/pico-pi-imx7d_defconfig b/configs/pico-pi-imx7d_defconfig index ce43393..80f5739 100644 --- a/config

[U-Boot] [RFC 5/9] pico-pi-imx7d: defconfig: Switch to DM for I2C

2019-01-20 Thread Joris Offouga
This commit switches to DM I2C for pico-pi-imx7d. Signed-off-by: Joris Offouga --- board/technexion/pico-imx7d/pico-imx7d.c | 24 configs/pico-pi-imx7d_defconfig | 1 + include/configs/pico-imx7d.h | 5 - 3 files changed, 1 insertion(+), 29 del

[U-Boot] [RFC 1/9] Arm: dts: imx7d-pico: Import Linux pico-pi dts

2019-01-20 Thread Joris Offouga
This patch imports the Linux kernel base board imx7d-pico.dtsi and specific dts for imx7d-pico-pi Signed-off-by: Joris Offouga --- arch/arm/dts/imx7d-pico-pi.dts | 93 +++ arch/arm/dts/imx7d-pico.dtsi | 588 + 2 files changed, 681 insertions(+) cre

[U-Boot] [RFC 0/9] Convert Pico-Pi i.MX7D to DM

2019-01-20 Thread Joris Offouga
Hi all, Pinctrl, GPIO, I2C, MMC, ETH are converted. Convert PMIC is the same of warp7 but i have a some erros, si this log : U-Boot SPL 2019.01-00197-ga524e5d-dirty (Jan 20 2019 - 21:09:49 +0100) Trying to boot from USB SDP SDP: initialize... SDP: handle requests... Downloading file of size 5563

Re: [U-Boot] [PATCH v2 00/11] SiFive FU540 Support

2019-01-20 Thread Auer, Lukas
Hi Anup, On Fri, 2019-01-18 at 11:18 +, Anup Patel wrote: > This patchset adds SiFive Freedom Unleashed (FU540) support > to RISC-V U-Boot. > > The patches are based upon latest RISC-V U-Boot tree > (git://git.denx.de/u-boot-riscv.git) at commit id > 91882c472d8c0aef4db699d3f2de55bf43d4ae4b >

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

2019-01-20 Thread Simon Glass
Hi Tom Warren, On Fri, 28 Dec 2018 at 09:24, Simon Glass wrote: > > This series adds sound support for Nyan. It allows simple beeps to be > generated in U-Boot. This requires the addition of an I2S driver, an > audio hub driver and a sound driver to pull things together. An existing > audio codec

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

2019-01-20 Thread Auer, Lukas
Hi Anup, On Fri, 2019-01-18 at 11:19 +, 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

Re: [U-Boot] [PATCH] dtoc: make generated platdata structs const

2019-01-20 Thread Simon Glass
Hi Simon, On Tue, 8 Jan 2019 at 08:29, Simon Goldschmidt wrote: > > The platdata initialization structs are currently generated into .rwdata. > Make sure the are put into .rodata by generating them as const. > > Signed-off-by: Simon Goldschmidt Unfortunately this breaks the dtoc and binman test

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

2019-01-20 Thread Auer, Lukas
On Fri, 2019-01-18 at 11:19 +, 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. > > Th

Re: [U-Boot] [PATCH v2 09/11] drivers: serial_sifive: Skip baudrate config if no input clock

2019-01-20 Thread Auer, Lukas
Hi Anup, On Fri, 2019-01-18 at 11:19 +, Anup Patel wrote: > From: Atish Patra > > It is possible that input clock is not available because clk > device was not available and 'clock-frequency' DT property is > also not available. Why would the clock device not be available? I suspect the pro

Re: [U-Boot] [PATCH v2 08/11] drivers: serial_sifive: Fix baud rate calculation

2019-01-20 Thread Auer, Lukas
On Fri, 2019-01-18 at 11:19 +, Anup Patel wrote: > From: Atish Patra > > Compute the baud rate multipler with more precision. > > Signed-off-by: Atish Patra > Reviewed-by: Alexander Graf > --- > drivers/serial/serial_sifive.c | 28 ++-- > 1 file changed, 26 inserti

Re: [U-Boot] [PATCH v2 06/11] clk: Add SiFive FU540 PRCI clock driver

2019-01-20 Thread Auer, Lukas
Hi Anup, On Fri, 2019-01-18 at 11:19 +, Anup Patel wrote: > Add driver code for the SiFive FU540 PRCI IP block. This IP block > handles reset and clock control for the SiFive FU540 device and > implements SoC-level clock tree controls and dividers. > > Based on code written by Wesley Terpstr

Re: [U-Boot] [PATCH v2 05/11] net: macb: Fix GEM hardware detection

2019-01-20 Thread Auer, Lukas
On Fri, 2019-01-18 at 11:19 +, Anup Patel wrote: > From: Atish Patra > > Fix MID bit field check to correctly identify all GEM hardwares. > > The check is updated as per macb driver in Linux location: > /drivers/net/ethernet/cadence/macb_main.c:259 > > Signed-off-by: Atish Patra > Reviewed

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

2019-01-20 Thread Auer, Lukas
On Fri, 2019-01-18 at 11:18 +, 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 02/11] riscv: Add asm/dma-mapping.h for DMA mappings

2019-01-20 Thread Auer, Lukas
On Fri, 2019-01-18 at 11:18 +, Anup Patel wrote: > This patch adds asm/dma-mapping.h for Linux-like DMA mappings > APIs required by some of the drivers (such as, Cadance MACB > Ethernet driver). > > Signed-off-by: Anup Patel > Reviewed-by: Bin Meng > Reviewed-by: Alexander Graf > --- > arc

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

2019-01-20 Thread Auer, Lukas
On Fri, 2019-01-18 at 11:18 +, 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 cpu/ge

Re: [U-Boot] [linux-sunxi] [PATCH 0/9] sunxi: enable DM_MMC

2019-01-20 Thread Priit Laes
On Sat, Jan 19, 2019 at 01:30:46AM +, Andre Przywara wrote: > This series enables the Allwinner MMC driver to drive all SoCs with its > DM_MMC variant. We use the gates clock and reset support from the new > clock driver, but keep the actual mod clock in its somewhat hackish > state. Properly s

Re: [U-Boot] Convert Pico-Pi i.MX7D to DM

2019-01-20 Thread Fabio Estevam
Hi Joris, [Please keep the list on Cc] On Sun, Jan 20, 2019 at 3:27 PM Joris Offouga wrote: > I convert I2C first , it work but pmic function return wrong error : > > read error from device: 9df65458 register: 0x3! > PMIC: PFUZE3000 DEV_ID=0x18764000 REV_ID=0xfffb > read error from device:

Re: [U-Boot] [PATCH v3 1/1] ARM: at91: Convert SPL_GENERATE_ATMEL_PMECC_HEADER to Kconfig

2019-01-20 Thread Derald Woods
On Sun, Jan 20, 2019 at 6:57 AM Tom Rini wrote: > On Sat, Jan 19, 2019 at 09:37:14PM -0600, Derald D. Woods wrote: > > > This commit converts the following items to Kconfig: > > > > CONFIG_ATMEL_NAND_HWECC > > CONFIG_ATMEL_NAND_HW_PMECC > > CONFIG_PMECC_CAP > > CONFIG_PMECC_SECTOR_SIZE > > CONFIG

[U-Boot] [PATCH v2 21/21] pcm052: bk4: Add board_phy_config() for BK4 to setup ksz8081 phy

2019-01-20 Thread Lukasz Majewski
BK4 requires setup of 50MHz reference clock for its KSZ8081 PHY devices. Signed-off-by: Lukasz Majewski --- Changes in v2: None board/phytec/pcm052/pcm052.c | 16 1 file changed, 16 insertions(+) diff --git a/board/phytec/pcm052/pcm052.c b/board/phytec/pcm052/pcm052.c index

[U-Boot] [PATCH v2 06/21] pcm052: board: Remove "m4go" command as it is superseded by "bootaux"

2019-01-20 Thread Lukasz Majewski
The "m4go" provides exactly the same functionality as the IMX generic "bootaux" command. Remove it to not duplicate the code. Signed-off-by: Lukasz Majewski --- Changes in v2: None board/phytec/pcm052/pcm052.c | 38 -- 1 file changed, 38 deletions(-) diff -

[U-Boot] [PATCH v2 20/21] pcm052: mac: Provide board specific imx_get_mac_from_fuse() function

2019-01-20 Thread Lukasz Majewski
This commit introduces the board specific function to read fused mac address. Signed-off-by: Lukasz Majewski --- Changes in v2: None board/phytec/pcm052/pcm052.c | 41 + 1 file changed, 41 insertions(+) diff --git a/board/phytec/pcm052/pcm052.c b/board/

[U-Boot] [PATCH v2 19/21] pcm052: board: Add code to setup LED default states

2019-01-20 Thread Lukasz Majewski
As one has moved to DM based LEDs, this code is required to setup the default state. Signed-off-by: Lukasz Majewski --- Changes in v2: None board/phytec/pcm052/pcm052.c | 4 1 file changed, 4 insertions(+) diff --git a/board/phytec/pcm052/pcm052.c b/board/phytec/pcm052/pcm052.c index d4f

[U-Boot] [PATCH v2 15/21] pcm052: board: Remove in-board setup code (it is now replaced by DM setup)

2019-01-20 Thread Lukasz Majewski
This commit cleans up the pcm052.c file to remove dead code after moving to DTS and DM. Signed-off-by: Lukasz Majewski --- Changes in v2: None board/phytec/pcm052/pcm052.c | 267 --- 1 file changed, 267 deletions(-) diff --git a/board/phytec/pcm052/pcm0

[U-Boot] [PATCH v2 07/21] pcm052: board: vybrid: Update the board name for BK4 device

2019-01-20 Thread Lukasz Majewski
This commit provides distinction between PCM052 and BK4. Signed-off-by: Lukasz Majewski --- Changes in v2: None board/phytec/pcm052/pcm052.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/board/phytec/pcm052/pcm052.c b/board/phytec/pcm052/pcm052.c index 4e4b870304..5f2

[U-Boot] [PATCH v2 14/21] config: bk4: Update include/configs/bk4r1.h file

2019-01-20 Thread Lukasz Majewski
The BK4's config file has changed since its initial posting to main line. This commit reflects those changes. Signed-off-by: Lukasz Majewski --- Changes in v2: None include/configs/bk4r1.h | 214 ++-- 1 file changed, 206 insertions(+), 8 deletions(-)

[U-Boot] [PATCH v2 12/21] defconfig: bk4/pcm052: Update bk4r1|pcm052_defconfig to support DM/DT

2019-01-20 Thread Lukasz Majewski
This commit updates BK4's and PCM052's config files to support as much as possible device tree and model in u-boot. Moreover, remove CONFIG_* from pcm052.h (as those are now in bk4|pcm052_defconfig) Signed-off-by: Lukasz Majewski --- Changes in v2: - Disable EFI related support and com

[U-Boot] [PATCH v2 09/21] pcm052: board: cosmetic: Add copyright notice to pcm052.c

2019-01-20 Thread Lukasz Majewski
Signed-off-by: Lukasz Majewski --- Changes in v2: None board/phytec/pcm052/pcm052.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/board/phytec/pcm052/pcm052.c b/board/phytec/pcm052/pcm052.c index 5f2c9a9c12..95df0be6c1 100644 --- a/board/phytec/pcm052/pcm052.c +++ b/board/phytec/pcm052

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

2019-01-20 Thread Lukasz Majewski
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 --- Changes in v2: - New patch arch/arm/dts/vf610-bk4r1-u-boot.dtsi |

[U-Boot] [PATCH v2 13/21] config: pcm052: Use SZ_X{MK} from linux/sizes.h for include/configs/pcm052.h

2019-01-20 Thread Lukasz Majewski
Signed-off-by: Lukasz Majewski --- Changes in v2: None include/configs/pcm052.h | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/include/configs/pcm052.h b/include/configs/pcm052.h index c2ecb7ec18..fb8f3c8609 100644 --- a/include/configs/pcm052.h +++ b/incl

[U-Boot] [PATCH v2 17/21] config: bk4: Update u-boot envs to support NOR memories initial setup

2019-01-20 Thread Lukasz Majewski
Signed-off-by: Lukasz Majewski --- Changes in v2: None include/configs/bk4r1.h | 18 ++ 1 file changed, 18 insertions(+) diff --git a/include/configs/bk4r1.h b/include/configs/bk4r1.h index 7bd3411ff2..05ebb7d9c5 100644 --- a/include/configs/bk4r1.h +++ b/include/configs/bk4r1.

[U-Boot] [PATCH v2 03/21] vybrid: ddr: Extend vf610-pinfunc.h with DDR pads definitions

2019-01-20 Thread Lukasz Majewski
This patch provides definitions necessary for VF610 DDR pad configurations. Signed-off-by: Lukasz Majewski --- Changes in v2: None arch/arm/dts/vf610-pinfunc.h | 50 1 file changed, 50 insertions(+) diff --git a/arch/arm/dts/vf610-pinfunc.h b/arch/

[U-Boot] [PATCH v2 10/21] ARM: DTS: Update pcm052 based dts files (bk4r1/pcm052)

2019-01-20 Thread Lukasz Majewski
This commit provides update and renames the bk4r1.dts to vf610-bk4r1.dts file with more on SoC HW description. The pcm052.dts has been renamed to vf610-pcm052.dts as well. Moreover, a new vf610-pcm052.drsi file has been introduced to reuse the common code between devices based on Phytec's pcm052 m

[U-Boot] [PATCH v2 16/21] config: bk4: Update u-boot script to support recovery via SD card

2019-01-20 Thread Lukasz Majewski
Signed-off-by: Lukasz Majewski --- Changes in v2: None include/configs/bk4r1.h | 31 +++ 1 file changed, 31 insertions(+) diff --git a/include/configs/bk4r1.h b/include/configs/bk4r1.h index bbd3e4e636..7bd3411ff2 100644 --- a/include/configs/bk4r1.h +++ b/include/c

[U-Boot] [PATCH v2 08/21] ARM: DTS: vybrid: Update vf.dtsi file to descibe more vf610 hardware

2019-01-20 Thread Lukasz Majewski
This patch allows moving vf610 based boards to a device tree and model. Ported from Linux kernel - v4.20 (tag) Signed-off-by: Lukasz Majewski --- Changes in v2: None arch/arm/dts/vf.dtsi | 62 1 file changed, 62 insertions(+) diff --git a/a

[U-Boot] [PATCH v2 04/21] vybrid: clock: Provide enable_i2c_clk() function for Vybrid

2019-01-20 Thread Lukasz Majewski
Provide function to enable I2C2 clock for vf610 (BK4) - in the generic code. Signed-off-by: Lukasz Majewski --- Changes in v2: None arch/arm/cpu/armv7/vf610/generic.c | 19 +++ arch/arm/include/asm/arch-vf610/clock.h | 3 +++ board/phytec/pcm052/pcm052.c| 2 +

[U-Boot] [PATCH v2 18/21] pcm052: bk4: sdcard: Add support for SD card booting/recovery

2019-01-20 Thread Lukasz Majewski
This code allows reusing the default u-boot as in the late board init, the default envs are restored and proper recovery scripts executed. Signed-off-by: Lukasz Majewski --- Changes in v2: None arch/arm/cpu/armv7/vf610/Kconfig | 1 + arch/arm/include/asm/arch-vf610/imx-regs.h | 2 +

[U-Boot] [PATCH v2 05/21] vybrid: Define the imx_get_mac_from_fuse() as a __weak function

2019-01-20 Thread Lukasz Majewski
The proposed way of reading fused MAC in the imx_get_mac_from_fuse() may be different for other boards. This commit defines the imx_get_mac_from_fuse() as a weak function to allow board file overriding it with customized function. Signed-off-by: Lukasz Majewski --- Changes in v2: None arch/ar

[U-Boot] [PATCH v2 00/21] imx: vybrid: Update BK4 and PCM052 boards to only use DM/DTS

2019-01-20 Thread Lukasz Majewski
This patch series converts PCM052 and BK4 to use Driver Model and Device Tree. Some notable changes: - The way how MAC address is read from fuses can now be adjusted - DTS improvement/sync with kernel (also extract u-boot specific properties) - Using generic code instead of one from board The out

[U-Boot] [PATCH v2 02/21] net: Kconfig: FEC: Add dependency on VF610

2019-01-20 Thread Lukasz Majewski
Signed-off-by: Lukasz Majewski --- Changes in v2: None drivers/net/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index ff55e03d3f..f5e0fb8611 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -187,7 +187,7 @@ co

[U-Boot] [PATCH v2 01/21] net: FEC: Add compatible for vybrid (vf610) to reuse fec_mxc.c driver

2019-01-20 Thread Lukasz Majewski
The NXP's FEC driver can be reused on vf610 device (with DM). Signed-off-by: Lukasz Majewski --- Changes in v2: None drivers/net/fec_mxc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index 32fb34b793..be388ead30 100644 --- a/drivers/net/fec

Re: [U-Boot] [PATCH v3 1/1] ARM: at91: Convert SPL_GENERATE_ATMEL_PMECC_HEADER to Kconfig

2019-01-20 Thread Tom Rini
On Sat, Jan 19, 2019 at 09:37:14PM -0600, Derald D. Woods wrote: > This commit converts the following items to Kconfig: > > CONFIG_ATMEL_NAND_HWECC > CONFIG_ATMEL_NAND_HW_PMECC > CONFIG_PMECC_CAP > CONFIG_PMECC_SECTOR_SIZE > CONFIG_SPL_GENERATE_ATMEL_PMECC_HEADER > > Config files not explicitly

Re: [U-Boot] [PATCH 1/1] zynq: Kconfig: extend the bootstrap malloc() pool

2019-01-20 Thread Anton Gerasimov
Hi Michal, I understand all of this but will be good to know what consumes that 0x5xx space and if we mark nodes properly that maybe something is not used and we should remove that marking. It means expected data is that uarts consumes 0xXXX, axi 0xXXX, sd 0xXXX, etc. measuring only the memor

Re: [U-Boot] [PATCH v3 1/1] arm64: dts: marvell: armada-ap806: reserve PSCI area

2019-01-20 Thread Heinrich Schuchardt
On 12/21/18 5:30 PM, Heinrich Schuchardt wrote: > The memory area [0x400-0x420[ is occupied by the PSCI firmware. Any > attempt to access it from U-Boot leads to an immediate crash. > > So let's make the same memory reservation as the vendor device tree. > > Signed-off-by: Heinrich Schuch

[U-Boot] [PATCH v2 1/1] powerpc: enabled building with CONFIG_DM=y

2019-01-20 Thread Heinrich Schuchardt
Moving to the driver model requires CONFIG_DM to be enabled. Currently several boards like kmeter1_defconfig produce a build error when CONFIG_DM is enabled: In file included from include/common.h:35, from ./arch/powerpc/include/asm/fsl_lbc.h:10, from include/mpc8