[PATCH 2/6] riscv: sifive/fu540: spl: Drop our own version of board_init_f()

2020-08-02 Thread Bin Meng
From: Bin Meng Use the generic board_init_f() provided by the RISC-V library codes. Signed-off-by: Bin Meng --- board/sifive/fu540/spl.c | 19 +-- 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/board/sifive/fu540/spl.c b/board/sifive/fu540/spl.c index 55325cf..3

[PATCH 5/6] riscv: sifive/fu540: Drop NET_RANDOM_ETHADDR

2020-08-02 Thread Bin Meng
From: Bin Meng This option was enabled during the earlier U-Boot porting time. Now we already have the OTP driver in place and the unique MAC address is read from the OTP, there is no need to turn on this option. Signed-off-by: Bin Meng --- board/sifive/fu540/Kconfig | 1 - 1 file changed, 1

[PATCH 3/6] riscv: sifive/fu540: spl: Rename soc_spl_init()

2020-08-02 Thread Bin Meng
From: Bin Meng spl_soc_init() seems to be a better name, as all SPL functions names start from the spl_ prefix. Signed-off-by: Bin Meng --- arch/riscv/cpu/fu540/spl.c | 2 +- arch/riscv/include/asm/arch-fu540/spl.h | 2 +- board/sifive/fu540/spl.c| 2 +- 3 files c

[PATCH 6/6] riscv: sifive/fu540: Move SPL related functions to spl.c

2020-08-02 Thread Bin Meng
From: Bin Meng It's better to keep all SPL related functions in the same spl.c. Signed-off-by: Bin Meng --- board/sifive/fu540/fu540.c | 33 - board/sifive/fu540/spl.c | 33 - 2 files changed, 32 insertions(+), 34 deletions(-)

[PATCH 4/6] riscv: sifive/fu540: kconfig: Move FU540 driver related options to the SoC level

2020-08-02 Thread Bin Meng
From: Bin Meng All FU540 driver related options should be in the SoC level Kconfig. Signed-off-by: Bin Meng --- arch/riscv/cpu/fu540/Kconfig | 22 ++ board/sifive/fu540/Kconfig | 22 -- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/

[PATCH 1/6] riscv: Call spl_board_init_f() in the generic SPL board_init_f()

2020-08-02 Thread Bin Meng
From: Bin Meng The generic SPL version of board_init_f() should give a call to board specific codes to initialize board in the SPL phase. Signed-off-by: Bin Meng --- arch/riscv/include/asm/spl.h | 7 +++ arch/riscv/lib/spl.c | 9 + 2 files changed, 16 insertions(+) diff -

Re: [PATCH 06/13] arm: mach-k3: am6_init: Do USB fixups to facilitate host and device boot modes

2020-08-02 Thread Faiz Abbas
Hi Vignesh, On 03/07/20 1:04 pm, Vignesh Raghavendra wrote: > Hi, > > On 02/07/20 1:32 pm, Faiz Abbas wrote: > > [...] >> int am6_spl_early_init(void) > > Can this be static or do you intend to use this outside of this func file? Fixed this in v2. > >> +{ >> +int ret; >> +#if CONFIG_VAL(S

[PATCH v2 11/13] configs: am65x_evm_a53: Enable USB Mass storage and DFU boot modes

2020-08-02 Thread Faiz Abbas
Enable configs to facilitate booting from USB Mass Storage devices as well as USB peripheral boot Signed-off-by: Faiz Abbas --- configs/am65x_evm_a53_defconfig | 10 ++ include/configs/am65x_evm.h | 2 ++ 2 files changed, 12 insertions(+) diff --git a/configs/am65x_evm_a53_defconfi

[PATCH v2 12/13] configs: Add defconfig for USB DFU bootmode

2020-08-02 Thread Faiz Abbas
Because of space constraints, create a new USB defconfig for R5 to faciliate booting in USB peripheral (DFU) bootmode Signed-off-by: Faiz Abbas --- configs/am65x_evm_r5_usbdfu_defconfig | 120 ++ 1 file changed, 120 insertions(+) create mode 100644 configs/am65x_evm_r5_u

[PATCH v2 10/13] configs: am65x_evm: Add support for DFU related configs

2020-08-02 Thread Faiz Abbas
Add offset and environment related configs used for booting from DFU. Signed-off-by: Faiz Abbas --- include/configs/am65x_evm.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/configs/am65x_evm.h b/include/configs/am65x_evm.h index 19d861d402..902b5ba398 100644 ---

[PATCH v2 09/13] arm: dts: k3-am654-base-board: Add support for USB0 in SPL

2020-08-02 Thread Faiz Abbas
Add nodes for USB0 in SPL to enable USB host boot mode Signed-off-by: Faiz Abbas --- arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 27 1 file changed, 27 insertions(+) diff --git a/arch/arm/dts/k3-am654-base-board-u-boot.dtsi b/arch/arm/dts/k3-am654-base-board-u-boot.dtsi

[PATCH v2 13/13] configs: Add new config for supporting USB mass storage boot

2020-08-02 Thread Faiz Abbas
Because of space constraints, create a new USB defconfig for R5 to faciliate booting from USB mass storage devices Signed-off-by: Faiz Abbas --- configs/am65x_evm_r5_usbmsc_defconfig | 119 ++ 1 file changed, 119 insertions(+) create mode 100644 configs/am65x_evm_r5_usbm

[PATCH v2 08/13] arm: dts: k3-am654-r5-base-board: Add USB0 nodes

2020-08-02 Thread Faiz Abbas
Add USB0 nodes and set them to host mode to support USB host and peripheral boot modes Signed-off-by: Faiz Abbas --- arch/arm/dts/k3-am654-r5-base-board.dts | 35 + 1 file changed, 35 insertions(+) diff --git a/arch/arm/dts/k3-am654-r5-base-board.dts b/arch/arm/dts/k3-a

[PATCH v2 07/13] arm: mach-k3: am6_init: Add support for USB boot mode

2020-08-02 Thread Faiz Abbas
Add support for identifying USB host and device boot modes Signed-off-by: Faiz Abbas --- arch/arm/mach-k3/am6_init.c | 5 + arch/arm/mach-k3/include/mach/am6_hardware.h | 2 ++ arch/arm/mach-k3/include/mach/am6_spl.h | 3 ++- 3 files changed, 9 insertions(+), 1 deletion

[PATCH v2 06/13] arm: mach-k3: am6_init: Do USB fixups to facilitate host and device boot modes

2020-08-02 Thread Faiz Abbas
U-boot only supports either USB host or device mode for a node at a time in dts. To support both host and dfu bootmodes, set "peripheral" as the default dr_mode but fixup property to "host" if host bootmode is detected. This needs to happen before the dwc3 generic layer binds the usb device to a h

[PATCH v2 04/13] arm: mach-k3: sysfw-loader: Add support to load SYSFW from USB

2020-08-02 Thread Faiz Abbas
Add support for loading system firmware from a USB mass storage device Signed-off-by: Faiz Abbas --- arch/arm/mach-k3/sysfw-loader.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/mach-k3/sysfw-loader.c b/arch/arm/mach-k3/sysfw-loader.c index 513be09c68..0ebd8c56a7 100

[PATCH v2 05/13] arm: mach-k3: am6_init: Gate mmc related configurations with the appropriate config

2020-08-02 Thread Faiz Abbas
Gate mmc related system related configurations with DM_MMC to avoid build errors when MMC is not enabled Signed-off-by: Faiz Abbas --- arch/arm/mach-k3/am6_init.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-k3/am6_init.c b/arch/arm/mach-k3/am6_init.c ind

[PATCH v2 03/13] armv7R: K3: am654: Use full malloc in SPL both pre and post reloc

2020-08-02 Thread Faiz Abbas
In order to be able to use things like file system drivers early on in SPL (before relocation) in a memory-constrained environment when DDR is not yet available we cannot use the simple malloc scheme which does not implement the freeing of previously allocated memory blocks. To address this issue g

[PATCH v2 02/13] spl: usb: Only init usb once

2020-08-02 Thread Faiz Abbas
usb_init() may be called multiple times for fetching multiple images from SPL. Skip reinitializing USB if its already been done Signed-off-by: Faiz Abbas --- common/spl/spl_usb.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/common/spl/spl_usb.c b/common/spl/spl

[PATCH v2 00/13] Add support for USB host and peripheral bootmodes on am65x-idk

2020-08-02 Thread Faiz Abbas
The following patches add support for USB mass storage and USB dfu bootmodes on am654x-idk. Because of space constrains and the size of the USB stack, there are two different usbmsc and usbdfu defconfigs for building R5 SPL. Fitting both of these into one defconfig requires some changes in the USB

[PATCH v2 01/13] spl: usb: Create an API spl_usb_load()

2020-08-02 Thread Faiz Abbas
Create a new API spl_usb_load() that takes the filename as a parameter instead of taking the default U-boot PAYLOAD_NAME Signed-off-by: Faiz Abbas --- common/spl/spl_usb.c | 20 +--- include/spl.h| 14 ++ 2 files changed, 27 insertions(+), 7 deletions(-) diff

[PATCH v5 15/17] tools: add mkeficapsule command for UEFI capsule update

2020-08-02 Thread AKASHI Takahiro
This is a utility mainly for test purpose. mkeficapsule -f: create a test capsule file for FIT image firmware Having said that, you will be able to customize the code to fit your specific requirements for your platform. Signed-off-by: AKASHI Takahiro --- tools/Makefile | 3 + tools/mk

[PATCH v5 13/17] efi_loader: add firmware management protocol for raw image

2020-08-02 Thread AKASHI Takahiro
In this commit, a very simple firmware management protocol driver is implemented. It will take a binary image in a capsule file and apply the data using dfu backend storage drivers via dfu_write_by_alt() interface. So "dfu_alt_info" variable should be properly set to specify a device and location

[PATCH v5 14/17] cmd: add "efidebug capsule" command

2020-08-02 Thread AKASHI Takahiro
"efidebug capsule" is more or less a debugging utility. efidebug capsule update: invoke UpdateCapsule against data on memory efidebug capsule show: show a capsule header efidebug capsule result: dump a capsule result variable Signed-off-by: AKASHI Takahiro --- cmd/efidebug.c | 235

[PATCH v5 16/17] test/py: add a test for uefi firmware update capsule of FIT image

2020-08-02 Thread AKASHI Takahiro
The test can run on sandbox build and it attempts to execute a firmware update via a capsule-on-disk, using a FIT image capsule, CONFIG_EFI_CAPSULE_FIT. To run this test successfully, you need configure U-Boot specifically; See test_capsule_firmware.py for requirements, and hence it won't run on T

[PATCH v5 17/17] test/py: add a test for uefi firmware update capsule of raw image

2020-08-02 Thread AKASHI Takahiro
The test can run on sandbox build and it attempts to execute a firmware update via a capsule-on-disk, using a raw image capsule, CONFIG_EFI_CAPSULE_RAW. To run this test successfully, you need configure U-Boot specifically; See test_capsule_firmware.py for requirements, and hence it won't run on T

[PATCH v5 08/17] efi_loader: capsule: add capsule_on_disk support

2020-08-02 Thread AKASHI Takahiro
Capsule data can be loaded into the system either via UpdateCapsule runtime service or files on a file system (of boot device). The latter case is called "capsules on disk", and actual updates will take place at the next boot time. In this commit, we will support capsule on disk mechanism. Please

[PATCH v5 09/17] efi_loader: capsule: add memory range capsule definitions

2020-08-02 Thread AKASHI Takahiro
Memory range capsule gives us a way to notify that some memory regions should be left untouched across the next reset. See UEFI specification, section 8.5.3. Since how we should handle this kind of capsule is totally up to the system, no implementation will be added in this commit. Signed-off-by:

[PATCH v5 12/17] dfu: add dfu_write_by_alt()

2020-08-02 Thread AKASHI Takahiro
This function is a variant of dfu_write_by_name() and takes a DFU alt setting number for dfu configuration. It will be utilised to implement UEFI capsule management protocol for raw image in a later commit. Signed-off-by: AKASHI Takahiro --- drivers/dfu/dfu_alt.c | 47 ++

[PATCH v5 10/17] efi_loader: capsule: support firmware update

2020-08-02 Thread AKASHI Takahiro
A capsule tagged with the guid, EFI_FIRMWARE_MANAGEMENT_CAPSULE_ID_GUID, is handled as a firmware update object. What efi_update_capsule() basically does is to load any firmware management protocol (or fmp) drivers contained in a capsule, find out an appropriate fmp driver and then invoke its set_i

[PATCH v5 11/17] efi_loader: add firmware management protocol for FIT image

2020-08-02 Thread AKASHI Takahiro
In this commit, a very simple firmware management protocol driver is implemented. It will take a common FIT image firmware in a capsule file and apply the data using dfu backend storage drivers via update_fit() interface. So "dfu_alt_info" variable should be properly set to specify a device and lo

[PATCH v5 07/17] efi_loader: define UpdateCapsule api

2020-08-02 Thread AKASHI Takahiro
In this commit, skeleton functions for capsule-related API's are added under CONFIG_EFI_UPDATE_CAPSULE configuration. Detailed implementation for a specific capsule type will be added in the succeeding patches. Signed-off-by: AKASHI Takahiro --- include/efi_api.h| 12 +++ include/ef

[PATCH v5 04/17] dfu: export dfu_list

2020-08-02 Thread AKASHI Takahiro
This variable will be utilized to enumerate all dfu entities for UEFI capsule firmware update in a later commit. Signed-off-by: AKASHI Takahiro --- drivers/dfu/dfu.c | 2 +- include/dfu.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/dfu/dfu.c b/drivers/dfu/d

[PATCH v5 06/17] efi_loader: add efi_create_indexed_name()

2020-08-02 Thread AKASHI Takahiro
This function will be used from several places in UEFI subsystem to generate some specific form of utf-16 variable name. For example, L"Capsule0001" Signed-off-by: AKASHI Takahiro --- include/efi_loader.h | 3 +++ lib/efi_loader/efi_setup.c | 30 ++ 2 files cha

[PATCH v5 05/17] efi_loader: add option to initialise EFI subsystem early

2020-08-02 Thread AKASHI Takahiro
If this option, CONFIG_EFI_SETUP_EARLY, is enabled, the initialisation of UEFI subsystem will be done as part of U-Boot initialisation. Please note that this option won't be enabled explicitly by users, instead, should be enabled implicitly by other configuration options. Specifically, this featu

[PATCH v5 03/17] common: update: add a generic interface for FIT image

2020-08-02 Thread AKASHI Takahiro
The main purpose of this patch is to separate a generic interface for updating firmware using DFU drivers from "auto-update" via tftp. This function will also be used in implementing UEFI capsule update in a later commit. Signed-off-by: AKASHI Takahiro --- common/Kconfig | 14 + co

[PATCH v5 00/17] efi_loader: add capsule update support

2020-08-02 Thread AKASHI Takahiro
Summary === 'UpdateCapsule' is one of runtime services defined in UEFI specification and its aim is to allow a caller (OS) to pass information to the firmware, i.e. U-Boot. This is mostly used to update firmware binary on devices by instructions from OS. While 'UpdateCapsule' is a runtime serv

[PATCH v5 02/17] dfu: modify an argument type for an address

2020-08-02 Thread AKASHI Takahiro
The range of an addressable pointer can go beyond 'integer'. So change the argument type to a void pointer. Signed-off-by: AKASHI Takahiro Reviewed-by: Heinrich Schuchardt --- common/update.c | 3 ++- drivers/dfu/dfu_alt.c | 6 +++--- include/dfu.h | 4 ++-- 3 files changed, 7 ins

[PATCH v5 01/17] dfu: rename dfu_tftp_write() to dfu_write_by_name()

2020-08-02 Thread AKASHI Takahiro
This function is essentially independent from tffp, and will also be utilised in implementing UEFI capsule update in a later commit. So just give it a more generic name. In addition, a new configuration option, CONFIG_DFU_ALT, was introduced so that the file will be compiled with different options,

Re: [PATCH v2 1/1] riscv: additional crash information

2020-08-02 Thread Rick Chen
> From: Heinrich Schuchardt [mailto:xypron.g...@gmx.de] > Sent: Saturday, August 01, 2020 11:16 PM > To: Rick Jian-Zhi Chen(陳建志) > Cc: Simon Glass; Bin Meng; Sean Anderson; u-boot@lists.denx.de; Heinrich > Schuchardt > Subject: [PATCH v2 1/1] riscv: additional crash information > > If an exception

Please pull u-boot-x86

2020-08-02 Thread Bin Meng
Hi Tom, This PR includes the following x86 changes for v2020.10: - ApolloLake: add u64 parameters support for FSP2 bindings - ApolloLake: add missing parameters to support full configuration of the latest FSP MR6 release - Append appropriate suffixes in various assembly codes Azure results: PASS

Re: master u-boot broken for HiFive Unleashed

2020-08-02 Thread Bin Meng
Hi Atish, On Thu, Jul 30, 2020 at 5:43 AM Atish Patra wrote: > > Hi, > The latest master (423e08cb7701 (origin/master, origin/HEAD) Merge > branch '2020-07-28-misc-soc-improvements') seems to be broken for > HiFive Unleashed. > > It already has Bin's fix for unleashed. > > a0018fc8209c riscv: Mak

Re: [PATCH v2 1/1] riscv: additional crash information

2020-08-02 Thread Bin Meng
On Sat, Aug 1, 2020 at 11:16 PM Heinrich Schuchardt wrote: > > If an exception occurs, the relocated program counter and return address > are required for an analysis. > > With this patch you get: > > => exception undefined > > Unhandled exception: Illegal instruction > EPC: 80

Re: [PATCH v5 0/5] add DM based reset driver for SiFive SoC's

2020-08-02 Thread Rick Chen
於 2020年8月3日 週一 上午11:05寫道: > > > > -Original Message- > From: Sagar Kadam [mailto:sagar.ka...@sifive.com] > Sent: Friday, July 31, 2020 9:15 PM > To: u-boot@lists.denx.de > Cc: Rick Jian-Zhi Chen(陳建志); Paul Walmsley ( Sifive); pal...@dabbelt.com; > anup.pa...@wdc.com; atish.pa...@wdc.com;

Re: [PATCH 1/1] timer: dw-apb: fix compiler warnings

2020-08-02 Thread Bin Meng
On Wed, Jul 29, 2020 at 1:02 AM Heinrich Schuchardt wrote: > > readl() and writel() expect void *. Do not pass an integer value. > > Remove unused include include asm/arch/timer.h. two include ? > > Signed-off-by: Heinrich Schuchardt > --- > The driver is needed for the timers of the Kendryte K

Re: [PATCH 1/1] clk: kendryte/pll.h: do not redefine nop()

2020-08-02 Thread Bin Meng
On Tue, Jul 28, 2020 at 11:52 PM Heinrich Schuchardt wrote: > > The kendryte PLL code uses nop as barrier. The macro is not defined for > the sandbox on x86 but is defined on RISC-V. Is this kendryte PLL driver built for Sandbox? > > Signed-off-by: Heinrich Schuchardt > --- > include/kendryte/

Re: rk3399-gru-kevin: issues on bringup

2020-08-02 Thread Simon Glass
Hi Marty, On Fri, 31 Jul 2020 at 12:30, Simon Glass wrote: > > Hi Marty, > > On Fri, 31 Jul 2020 at 05:19, Marty E. Plummer wrote: > > > > On Tue, Jul 28, 2020 at 12:58:30PM -0600, Simon Glass wrote: > > > Hi Marty, > > > > > > On Tue, 21 Jul 2020 at 21:07, Marty E. Plummer > > > wrote: > > >

Re: U-Boot as ARM Coreboot Payload (for Chromebook Duet)

2020-08-02 Thread Simon Glass
Hi Matthew, On Sun, 2 Aug 2020 at 20:17, Matthew Grochowalski wrote: > > Hello, > > Reading > https://chromium.googlesource.com/chromiumos/docs/+/master/developer_mode.md, > it appears U-Boot should work as an alternate firmware on new ARM > Chromebooks. > > Trying on my Duet (Kukui/Krane), this

Re: [PATCH v1 2/2] x86: call32: Append appropriate suffixes

2020-08-02 Thread Bin Meng
On Sat, Aug 1, 2020 at 8:27 AM Bin Meng wrote: > > On Tue, Jul 28, 2020 at 5:56 PM Andy Shevchenko > wrote: > > > > Assembler is not happy: > > > > arch/x86/cpu/call32.S: Assembler messages: > > arch/x86/cpu/call32.S:36: Warning: no instruction mnemonic suffix given and > > no register operands;

Re: [PATCH v1 1/2] x86: sipi_vector: Append appropriate suffixes

2020-08-02 Thread Bin Meng
On Sat, Aug 1, 2020 at 8:26 AM Bin Meng wrote: > > On Tue, Jul 28, 2020 at 5:56 PM Andy Shevchenko > wrote: > > > > Assembler is not happy: > > > > arch/x86/cpu/sipi_vector.S: Assembler messages: > > arch/x86/cpu/sipi_vector.S:134: Warning: no instruction mnemonic suffix > > given and no registe

Re: [PATCH 1/2] x86: apl: fsp_bindings: Add support for u64 parameters

2020-08-02 Thread Bin Meng
On Sun, Jul 26, 2020 at 10:54 PM Simon Glass wrote: > > On Wed, 22 Jul 2020 at 01:29, Bernhard Messerklinger > wrote: > > > > Add FSP_UINT64 read support as preparation for FSP-M and FSP-S parameter > > update. > > > > Signed-off-by: Bernhard Messerklinger > > > > --- > > > > arch/x86/cpu/apol

Re: [PATCH 2/2] arch: x86: apl: Update FSP parameters

2020-08-02 Thread Bin Meng
On Sun, Jul 26, 2020 at 10:54 PM Simon Glass wrote: > > On Wed, 22 Jul 2020 at 01:29, Bernhard Messerklinger > wrote: > > > > Add missing parameters to support full configuration of the latest FSP > > MR6 release. > > > > Signed-off-by: Bernhard Messerklinger > > > > --- > > > > arch/x86/cpu/a

Re: [PATCH] x86: irq: Fix some typos

2020-08-02 Thread Bin Meng
On Tue, Jul 21, 2020 at 8:37 PM Bin Meng wrote: > > On Tue, Jul 21, 2020 at 7:01 PM Wolfgang Wallner > wrote: > > > > Fix some typos in arch/x86/include/asm/irq.h. > > > > Signed-off-by: Wolfgang Wallner > > > > --- > > > > arch/x86/include/asm/irq.h | 6 +++--- > > 1 file changed, 3 insertions

[PATCH 03/16] common: Drop linux/printk.h from common header

2020-08-02 Thread Simon Glass
Move this out of the common header and include it only where needed. Signed-off-by: Simon Glass --- arch/arm/lib/gic-v3-its.c | 1 + arch/arm/mach-imx/imx8/fdt.c | 1 + arch/arm/mach-k3/common.c | 1 + arch/arm/

[PATCH 16/16] Makefile: Drop linux/kconfig.h from config.h

2020-08-02 Thread Simon Glass
This header always included by the build system (see UBOOTINCLUDE) except when building tools, so is unnecessary. Drop it and update the documentation in the common.h header. Tools generally should not make use of the board config, but a few do. Update the Atmel pmecc tool to cope with this. Sign

[PATCH 15/16] common: Add a comment about the current state of common.h

2020-08-02 Thread Simon Glass
This file still includes the auto-generated config.h header. Add a comment as to why, to help guide further work. Signed-off-by: Simon Glass --- include/common.h | 8 scripts/Makefile.autoconf | 19 +++ 2 files changed, 23 insertions(+), 4 deletions(-) diff -

[PATCH 14/16] common: Move the build-system includes to a separate file

2020-08-02 Thread Simon Glass
At present common.h is used by the build system when calculating dependencies. Move it out into a separate file so we can drop the env_internal.h inclusion from common. Signed-off-by: Simon Glass --- arch/nds32/lib/asm-offsets.c | 1 + include/common.h | 5 - include/deps_inte

[PATCH 09/16] common: Drop stdarg.h from common header

2020-08-02 Thread Simon Glass
Move this out of the common header and include it only where needed. Signed-off-by: Simon Glass --- api/api.c | 1 + board/CZ.NIC/turris_mox/turris_mox.c| 1 + common/lcd_console.c| 1 + common/log.c

[PATCH 05/16] common: Drop time.h from common header

2020-08-02 Thread Simon Glass
Move this out of the common header and include it only where needed. Signed-off-by: Simon Glass --- api/api.c| 1 + arch/arm/mach-at91/arm920t/clock.c | 1 + arch/arm/mach-at91/arm926ejs/clock.c | 1 + arch/arm/mach-at91/clock.c

[PATCH 04/16] Fix code style for time functions

2020-08-02 Thread Simon Glass
Fix the code style used for some time functions. Signed-off-by: Simon Glass --- arch/arm/cpu/arm920t/imx/timer.c | 2 +- arch/arm/cpu/sa1100/timer.c | 2 +- arch/microblaze/cpu/timer.c | 2 +- arch/powerpc/lib/interrupts.c| 2 +- arch/powerpc/lib/time.c | 5 +++-- bo

[PATCH 02/16] common: Drop display_options.h from common header

2020-08-02 Thread Simon Glass
Move this out of the common header and include it only where needed. Signed-off-by: Simon Glass --- arch/arm/cpu/armv7/s5p-common/cpu_info.c | 1 + arch/arm/mach-at91/arm926ejs/eflash.c | 1 + arch/arm/mach-imx/hab.c | 1 + arch/powerpc/cpu/mpc85xx/cpu.c

[PATCH] sh: r2dplus: Enable additional PCI ethernet devices

2020-08-02 Thread Marek Vasut
Enable these extra PCI ethernet devices, so they can be tested in CI. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- configs/r2dplus_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/configs/r2dplus_defconfig b/configs/r2dplus_defconfig index fb873a8863..a2d666ebd6 100644

[PATCH 3/3] sh: r2dplus: Enable DM_SERIAL and DM_CLK

2020-08-02 Thread Marek Vasut
Switch r2dplus to DM and DT probing for serial and clock. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- configs/r2dplus_defconfig | 5 - include/configs/r2dplus.h | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/configs/r2dplus_defconfig b/configs/r2dplus_defconf

[PATCH 2/3] sh: r2dplus: Add SCIF1 to the basic DT

2020-08-02 Thread Marek Vasut
Add simple DT and clock bindings to r2dplus DT to permit U-Boot to bind the SCIF driver via DT probing instead of hard-coded config options. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- arch/sh/dts/sh7751-r2dplus.dts | 23 +++ 1 file changed, 23 insertions(+) diff -

[PATCH V2] dm: core: Add late driver remove option

2020-08-02 Thread Marek Vasut
Add another flag to the DM core which could be assigned to drivers and which makes those drivers call their remove callbacks last, just before booting OS and after all the other drivers finished with their remove callbacks. This is necessary for things like clock drivers, where the other drivers mi

[PATCH 1/3] sh: Set gd->malloc_base if MALLOC_F_LEN is set

2020-08-02 Thread Marek Vasut
The gd->malloc_base must be set before the C runtime if the MALLOC_F_LEN is non-zero, otherwise we hit assertion in dlmalloc.c initf_malloc(). So set it. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- arch/sh/lib/start.S | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --g

[PATCH] sh: r2dplus: Add pci enum to preboot

2020-08-02 Thread Marek Vasut
The ethernet on r2dplus is on PCI bus, enumerate the PCI early to get the ethernet operational. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- configs/r2dplus_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/r2dplus_defconfig b/configs/r2dplus_defconfig index 9e6331

[PATCH] sh: r2dplus: Switch to DM ETH

2020-08-02 Thread Marek Vasut
Enable DM ethernet support for the board, now that rtl8139 is converted. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- configs/r2dplus_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/r2dplus_defconfig b/configs/r2dplus_defconfig index 5263123694..9e6

RISC-V Microconference Accepted into 2020 Linux Plumbers Conference

2020-08-02 Thread atish patra
The Cfp for topic proposals for RISC-V micro conference is open now. The deadline is 15th August. Here is the announcement. https://www.linuxplumbersconf.org/blog/2020/risc-v-microconference-accepted-into-2020-linux-plumbers-conference/ FYI: The Linux plumbers event will be virtual this year. Mor

Re: PowerPC progress

2020-08-02 Thread Dan Malek
> On Aug 1, 2020, at 10:55 AM, Wolfgang Denk wrote: > > > Dear Tom, > > In message <20200731185425.GK6965@bill-the-cat> you wrote: >> >> Which particular area are you worried about currently? I believe we've >> had another good sized removal of PowerPC platforms and everything >> that's le