Pull request: u-boot-riscv/master

2020-12-13 Thread uboot
Hi Tom, Please pull some riscv updates: - Fix wrong amoswap t1 usage in startup. - Reset the board after cratch. - Enable distro booting from an attached SCSI disk for QEMU. - Support the optional header fields in efi header. Thanks Rick

Re: [PATCH 3/3] video: seps525: Add seps525 SPI driver

2020-12-13 Thread Michal Simek
On 12. 12. 20 16:35, Simon Glass wrote: > Hi Michal, > > On Thu, 3 Dec 2020 at 02:13, Michal Simek wrote: >> >> Add support for the WiseChip Semiconductor Inc. (UG-6028GDEBF02) display >> using the SEPS525 (Syncoam) LCD Controller. Syncoam Seps525 PM-Oled is RGB >> 160x128 display. This

[PATCH v2] fsp: Move and rename fsp_types.h file

2020-12-13 Thread Sughosh Ganu
The fsp_types.h header file contains macros for building signatures of different widths. These signature macros are architecture agnostic, and can be used in all places which use signatures in a data structure. Move and rename the fsp_types.h under the common include header. Signed-off-by:

[PATCH 5/7] ARM: dts: aspeed: Add AST2600 SoC support

2020-12-13 Thread Chia-Wei, Wang
AST2600 is the 7th generation of Aspeed SoC designated for Interated Remote Management Processor. AST2600 has significant performance improvement by integrating 1.2GHz dual-core ARM Cortex A7 (r0p5) CPU with FPU. Most of the controllers are also improved with more features and better performance

[PATCH 6/7] aspeed: Add AST2600 platform support

2020-12-13 Thread Chia-Wei, Wang
Add low level platform initialization for the AST2600 SoC. The 2-stage booting with U-Boot SPL are leveraged to support different booting mode. However, currently the patch supports only the booting from memory-mapped SPI flash. Signed-off-by: Chia-Wei, Wang ---

[PATCH 4/7] reset: aspeed: Add AST2600 reset support

2020-12-13 Thread Chia-Wei, Wang
Add controller reset support through the System Control Unit (SCU) of AST2600 SoC. Signed-off-by: Chia-Wei, Wang --- drivers/reset/Kconfig | 9 ++ drivers/reset/Makefile| 1 + drivers/reset/reset-ast2600.c | 108 ++

[PATCH 2/7] ram: aspeed: Add AST2600 DRAM control support

2020-12-13 Thread Chia-Wei, Wang
From: Dylan Hung AST2600 supports DDR4 SDRAM with maximum speed DDR4-1600. The DDR4 DRAM types including 128MbX16 (2Gb), 256MbX16 (4Gb), 512MbX16 (8Gb), 1GbX16 (16Gb), and 1GbX8 TwinDie (16Gb) are supported. Signed-off-by: Dylan Hung Signed-off-by: Chia-Wei, Wang ---

[PATCH 3/7] wdt: aspeed: Add AST2600 watchdog support

2020-12-13 Thread Chia-Wei, Wang
AST2600 has 8 watchdog timers including 8 sets of 32-bit decrement counters, based on 1MHz clock. A 64-bit reset mask is also supported to specify which controllers should be reset by the WDT reset. Signed-off-by: Chia-Wei, Wang --- .../arm/include/asm/arch-aspeed/wdt_ast2600.h | 129

[PATCH 7/7] configs: aspeed: Add defconfig for AST2600 EVB

2020-12-13 Thread Chia-Wei, Wang
Add the default configuration for the AST2600 EVB. Signed-off-by: Chia-Wei, Wang --- configs/evb-ast2600_defconfig | 69 +++ 1 file changed, 69 insertions(+) create mode 100644 configs/evb-ast2600_defconfig diff --git a/configs/evb-ast2600_defconfig

[PATCH 1/7] clk: aspeed: Add AST2600 clock support

2020-12-13 Thread Chia-Wei, Wang
From: Ryan Chen This patch adds the clock control driver for the AST2600 SoC. Signed-off-by: Ryan Chen Signed-off-by: Chia-Wei, Wang --- .../arm/include/asm/arch-aspeed/scu_ast2600.h | 338 + drivers/clk/aspeed/Makefile |1 + drivers/clk/aspeed/clk_ast2600.c

[PATCH 0/7] Add Aspeed AST2600 support

2020-12-13 Thread Chia-Wei, Wang
The patch series add the U-boot support for AST2600, which is the 7th generation BMC chip introduced by ASPEED technogology. The change includes the newly added low level platform code, Kconfig, and device tree of AST2600. In addition, certain fundamental drivers such as DRAM, reset, and watchodg

RE: [PATCH v3] arm: fsl: common: Improve NXP VID driver PMBus support

2020-12-13 Thread Wasim Khan
> -Original Message- > From: U-Boot On Behalf Of Stephen Carlson > Sent: Thursday, December 10, 2020 9:55 AM > To: U-Boot Mailing List > Cc: Priyanka Jain > Subject: [PATCH v3] arm: fsl: common: Improve NXP VID driver PMBus support > > This patch adds support for more PMBus

Re: [PATCH] fsp: Move and rename fsp_types.h file

2020-12-13 Thread Sughosh Ganu
hi Simon, On Sat, 12 Dec 2020 at 21:10, Simon Glass wrote: > Hi Sughosh, > > On Fri, 11 Dec 2020 at 03:06, Sughosh Ganu > wrote: > > > > The fsp_types.h header file contains macros for building signatures of > > different widths. These signature macros are architecture agnostic, > > and can be

Re: [PATCH 4/6] ARM: dts: s700: add MMC/SD controller node

2020-12-13 Thread André Przywara
On 13/12/2020 09:44, Amit Singh Tomar wrote: > This patch adds node for ethernet controller found on Action Semi OWL > S700 SoC. > > Since, upstream Linux binding has not been merged for S700 MMC/SD > controller, Changes are put in u-boot specific dtsi file. So what's the mainline state of this?

Re: [PATCH 2/6] clk: actions: Add SD/MMC clocks

2020-12-13 Thread André Przywara
On 13/12/2020 09:44, Amit Singh Tomar wrote: Hi, > This commit adds SD/MMC clocks, and provides .set/get_rate callbacks > for SD/MMC device present on Actions OWL S700 SoCs. > > Signed-off-by: Amit Singh Tomar > --- > drivers/clk/owl/clk_owl.c | 66 >

Re: [PATCH 1/6] clk: actions: Introduce dummy get/set_rate callbacks

2020-12-13 Thread André Przywara
On 13/12/2020 09:43, Amit Singh Tomar wrote: > This commit introduces get/set_rate callbacks, these are dummy at > the moment, and can be used to get/set clock for various devices > based on the clk id. > > Signed-off-by: Amit Singh Tomar > --- > drivers/clk/owl/clk_owl.c | 28

Re: [PATCH 5/6] mmc: actions: add MMC driver for Actions OWL S700

2020-12-13 Thread Jaehoon Chung
On 12/13/20 7:08 PM, Amit Singh Tomar wrote: > From: Amit Singh Tomar > > This commit adds support for MMC controllers found on Actions OWL > S700 SoC platform. > > Signed-off-by: Amit Singh Tomar > --- > drivers/mmc/Kconfig | 7 + > drivers/mmc/Makefile | 1 + > drivers/mmc/owl_mmc.c

[PATCH 0/2] efi_loader: implement EFI_DT_FIXUP_PROTOCOL

2020-12-13 Thread Heinrich Schuchardt
Device-trees are often Linux version specific. So it seems reasonable to let GRUB load device-trees according to the selected kernel version. What currently is missing is a means to let the firmware apply necessary fix-ups. In the Device Tree Evolution Project (DTE) the idea was born to provide a

[PATCH 2/2] efi_selftest: dtbdump support EFI_DT_FIXUP_PROTOCOL

2020-12-13 Thread Heinrich Schuchardt
The dtbdump.efi binary can already be used to dump the configuration table with the device-tree to a file. With this patch a device-tree file can be loaded. The EFI_DT_FIXUP_PROTOCOL is called to * apply U-Boot's fix-ups * let U-Boot make memory reservations as required by the device-tree *

[PATCH 1/2] efi_loader: implement EFI_DT_FIXUP_PROTOCOL

2020-12-13 Thread Heinrich Schuchardt
A boot manager like GRUB can use the protocol to * apply U-Boot's fix-ups to the a device-tree * let U-Boot make memory reservations according to the device-tree * install the device-tree as a configuration table Signed-off-by: Heinrich Schuchardt --- cmd/bootefi.c | 80

[PATCH] doc: board: freescale: advise to use newer atf and firmware

2020-12-13 Thread Andrey Zhizhikin
Update branch and version information of ATF and DDR firmware files to point to latest releases provided by NXP. This is especially critical for imx8mp evk, as the ATF support for that SoC is only available in latest releases. Align all SoCs from imx8m family to use identical revisions of ATF

Re: [PATCH 5/9] dm: treewide: Rename dev_get_platdata() to dev_get_plat()

2020-12-13 Thread Simon Glass
Rename this to be consistent with the change from 'platdata'. Signed-off-by: Simon Glass --- arch/arm/mach-stm32mp/bsec.c | 16 arch/x86/cpu/apollolake/hostbridge.c | 6 +-- arch/x86/cpu/apollolake/pmc.c | 4 +-

Re: [PATCH 1/9] dtoc: Tidy up more Python style in dtb_platdata

2020-12-13 Thread Simon Glass
Update this file to reduce the number of pylint warnings. Also add a few missing comments while we are here. Signed-off-by: Simon Glass --- tools/dtoc/dtb_platdata.py | 91 +++--- 1 file changed, 46 insertions(+), 45 deletions(-) Applied to u-boot-dm/next,

Re: [PATCH 2/9] dm: treewide: Rename auto_alloc_size members to be shorter

2020-12-13 Thread Simon Glass
This construct is quite long-winded. In earlier days it made some sense since auto-allocation was a strange concept. But with driver model now used pretty universally, we can shorten this to 'auto'. This reduces verbosity and makes it easier to read. Coincidentally it also ensures that every

Re: [PATCH 6/9] dm: treewide: Rename ofdata_to_platdata() to of_to_plat()

2020-12-13 Thread Simon Glass
This name is far too long. Rename it to remove the 'data' bits. This makes it consistent with the platdata->plat rename. Signed-off-by: Simon Glass --- arch/arm/mach-stm32mp/bsec.c | 4 +-- arch/arm/mach-stm32mp/pwr_regulator.c | 4 +-- arch/x86/cpu/acpi_gpe.c

Re: [PATCH 4/9] dm: Rename 'platdata_size' to 'plat_size'

2020-12-13 Thread Simon Glass
Rename this to be consistent with the change from 'platdata'. Signed-off-by: Simon Glass --- doc/driver-model/of-plat.rst | 2 +- drivers/core/device.c| 15 include/dm/platdata.h| 4 +-- tools/dtoc/dtb_platdata.py | 2 +- tools/dtoc/test_dtoc.py | 66

Re: [PATCH 8/9] dm: treewide: Rename ..._platdata variables to just ..._plat

2020-12-13 Thread Simon Glass
Try to maintain some consistency between these variables by using _plat as a suffix for them. Signed-off-by: Simon Glass --- arch/arm/include/asm/arch-hi6220/gpio.h | 2 +- arch/arm/include/asm/arch-imx8/power-domain.h | 2 +- .../arm/include/asm/arch-imx8m/power-domain.h | 2 +-

Re: [PATCH 3/9] dm: treewide: Rename 'platdata' variables to just 'plat'

2020-12-13 Thread Simon Glass
We use 'priv' for private data but often use 'platdata' for platform data. We can't really use 'pdata' since that is ambiguous (it could mean private or platform data). Rename some of the latter variables to end with 'plat' for consistency. Signed-off-by: Simon Glass ---

Re: [PATCH 7/9] dm: treewide: Update 'auto' declarations to be on one line

2020-12-13 Thread Simon Glass
Fix up the code style for those declarations that should now fit onto one line, which is all of them that currently do not. This is needed for dtoc to detect the structs correctly, at present. Signed-off-by: Simon Glass --- arch/x86/cpu/intel_common/p2sb.c | 3 +--

Re: [PATCH 9/9] checkpatch: Add warnings for unexpected struct names

2020-12-13 Thread Simon Glass
As a way of keeping the driver declarations more consistent, add a warning if the struct used does not end with _priv or _plat. Signed-off-by: Simon Glass --- scripts/checkpatch.pl | 38 + tools/patman/test_checkpatch.py | 28

[PATCH 1/1] doc: global data pointer on x86, x86_64

2020-12-13 Thread Heinrich Schuchardt
On x86 the global data pointer is stored in register fs. On x86_64 no register is used for the global data pointer. Signed-off-by: Heinrich Schuchardt --- doc/develop/global_data.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/develop/global_data.rst

[PATCH 5/6] mmc: actions: add MMC driver for Actions OWL S700

2020-12-13 Thread Amit Singh Tomar
From: Amit Singh Tomar This commit adds support for MMC controllers found on Actions OWL S700 SoC platform. Signed-off-by: Amit Singh Tomar --- drivers/mmc/Kconfig | 7 + drivers/mmc/Makefile | 1 + drivers/mmc/owl_mmc.c | 404 ++ 3 files

[PATCH 6/6] configs: Enable mmc support

2020-12-13 Thread Amit Singh Tomar
From: Amit Singh Tomar This commits enables mmc on the Actions Cubieboard7 board. Signed-off-by: Amit Singh Tomar --- configs/cubieboard7_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/cubieboard7_defconfig b/configs/cubieboard7_defconfig index 64dc593..d1ee862

[PATCH 4/6] ARM: dts: s700: add MMC/SD controller node

2020-12-13 Thread Amit Singh Tomar
From: Amit Singh Tomar This patch adds node for ethernet controller found on Action Semi OWL S700 SoC. Since, upstream Linux binding has not been merged for S700 MMC/SD controller, Changes are put in u-boot specific dtsi file. Signed-off-by: Amit Singh Tomar --- arch/arm/dts/s700-u-boot.dtsi

[PATCH 2/6] clk: actions: Add SD/MMC clocks

2020-12-13 Thread Amit Singh Tomar
From: Amit Singh Tomar This commit adds SD/MMC clocks, and provides .set/get_rate callbacks for SD/MMC device present on Actions OWL S700 SoCs. Signed-off-by: Amit Singh Tomar --- drivers/clk/owl/clk_owl.c | 66 +++ drivers/clk/owl/clk_owl.h | 2 ++

[PATCH 3/6] ARM: dts: sync Actions Semi S700 DT from Linux 5.10-rc7

2020-12-13 Thread Amit Singh Tomar
From: Amit Singh Tomar This Synchronizes the Actions Semi S700 SoC DT changes from commit "0477e9288185" ("Linux 5.10-rc7"). Signed-off-by: Amit Singh Tomar --- arch/arm/dts/s700.dtsi | 17 - include/dt-bindings/power/owl-s700-powergate.h | 19

[PATCH 0/6] Add MMC/SD support for S700

2020-12-13 Thread Amit Singh Tomar
From: Amit Singh Tomar At the moment on S700 based platforms, only way to load/boot the Kernel is from Ethernet, and with these patches one can now load/boot the Kernel from uSD card. Patches(1/6 and 2/6) adds changes needed for MMC/SD clock. It introduces set/get callback routine and get/set

[PATCH 1/6] clk: actions: Introduce dummy get/set_rate callbacks

2020-12-13 Thread Amit Singh Tomar
From: Amit Singh Tomar This commit introduces get/set_rate callbacks, these are dummy at the moment, and can be used to get/set clock for various devices based on the clk id. Signed-off-by: Amit Singh Tomar --- drivers/clk/owl/clk_owl.c | 28 1 file changed, 28