[PATCH] mailmap: Update e-mail for Jernej Skrabec

2021-08-21 Thread Jernej Skrabec
Old address doesn't exist anymore. Map it to new one. Signed-off-by: Jernej Skrabec --- .mailmap | 1 + 1 file changed, 1 insertion(+) diff --git a/.mailmap b/.mailmap index b76f02283c57..3d15a09d1c2d 100644 --- a/.mailmap +++ b/.mailmap @@ -29,6 +29,7 @@ Jagan Teki Jagan Teki Jagan Teki

[u-boot-test-hooks PATCH] travis-ci: Add SiFive Unleashed QEMU targets

2021-08-21 Thread Bin Meng
Add support for testing sifive_unleashed_defconfig via QEMU. QEMU supports booting exact the same images as used on the real hardware out of the box, that U-Boot SPL loads U-Boot proper from either an SD card or the SPI NOR flash, hence we can easily set up CI to cover these 2 boot flows of SiFive

[PATCH v2 4/4] sunxi: Support building a SPL as a TOC0 image

2021-08-21 Thread Samuel Holland
Now that mkimage can generate TOC0 images, and the SPL can interpret them, hook up the build infrastructure so the user can choose which image type to build. Signed-off-by: Samuel Holland --- Changes in v2: - Rebase on top of Icenowy's RISC-V support series - Rename Kconfig symbols to include

[PATCH v2 3/4] sunxi: Support SPL in both eGON and TOC0 images

2021-08-21 Thread Samuel Holland
SPL uses the image header to detect the boot device and to find the offset of the next U-Boot stage. Since this information is stored differently in the eGON and TOC0 image headers, add code to find the correct value based on the image type currently in use. Signed-off-by: Samuel Holland --- Cha

[PATCH v2 0/4] sunxi: TOC0 image type support

2021-08-21 Thread Samuel Holland
This series adds support for the TOC0 image format used by the Allwinner secure boot ROM (SBROM). This series has been tested on the following SoCs/boards, with the eFuse burnt to enable secure mode: - A50: Ainol Q88 Tablet - A64: Pine A64 Plus - H5: Orange Pi Zero Plus - H6: Pine H64 Model B

[PATCH v2 2/4] tools: mkimage: Add Allwinner TOC0 support

2021-08-21 Thread Samuel Holland
Most Allwinner sunxi SoCs have separate boot ROMs in non-secure and secure mode. The "non-secure" or "normal" boot ROM (NBROM) uses the existing sunxi_egon image type. The secure boot ROM (SBROM) uses a completely different image type, known as TOC0. A TOC0 image is composed of a header and two or

[PATCH v2 1/4] tools: Separate image types which depend on OpenSSL

2021-08-21 Thread Samuel Holland
Some image types always depend on OpenSSL, so they can only be included in mkimage when TOOLS_LIBCRYPTO is selected. Instead of using arbitrary preprocessor definitions, conditionally link the files. When building for platforms which use those image types, automatically select TOOLS_LIBCRYPTO, it

Re: [PATCH 0/4] sunxi: TOC0 image type support

2021-08-21 Thread Samuel Holland
Hi Andre, On 6/21/21 6:56 PM, Andre Przywara wrote: > On Mon, 21 Jun 2021 16:35:37 -0400 > Tom Rini wrote: >> On Mon, Jun 21, 2021 at 04:43:00PM +0100, Andre Przywara wrote: >>> On Sun, 20 Jun 2021 21:55:51 -0500 >>> Samuel Holland wrote: >>> >>> (CC:ing Tom and Simon for the compatibility pro

Re: [PATCH v2 0/4] mkimage: sunxi_egon: add riscv support

2021-08-21 Thread Samuel Holland
On 6/19/21 4:18 AM, Icenowy Zheng wrote: > This patchset tries to make mkimage -T sunxi_egon to be able to generate > an eGON.BT0 image for Allwinner RISC-V SoCs (e.g. D1). > > In addition, to keep the compatibility, it will still consider the > architecture to be ARM when no architecture is speci

[PATCH v2] ARM: Prevent the compiler from using NEON registers

2021-08-21 Thread Samuel Holland
For ARMv8-A, NEON is standard, so the compiler can use it even when no special target flags are provided. For example, it can use stores from NEON registers to zero-initialize large structures. GCC 11 decides to do this inside the DRAM init code for the Allwinner H6. However, GCC 11 has a bug wher

[PATCH] i2c: i2c-gpio: Support the named GPIO binding

2021-08-21 Thread Samuel Holland
To avoid confusion about the order of the GPIOs, the i2c-gpio binding was updated to use a separate property for each GPIO instead of an array. However, the driver only supports the old binding. Add support for the new binding as well, so the driver continues to work as device trees are updated. S

[PATCH 11/11] sunxi: Enable DM_I2C for all sunxi boards

2021-08-21 Thread Samuel Holland
Now that the last users of legacy I2C (outside of SPL) have been resolved, we can enable DM_I2C at the sunxi architecture level. Signed-off-by: Samuel Holland --- arch/arm/Kconfig| 1 + arch/arm/mach-sunxi/Kconfig | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git

[PATCH 10/11] sunxi: video: Convert panel I2C to use DM_I2C

2021-08-21 Thread Samuel Holland
Two displays supported by the sunxi display driver (each one used by a single board) require initialization over I2C. Both previously used i2c_soft; replace this with the i2c-gpio instance that already exists in those boards' device trees (sun5i-a13-utoo-p66 and sun6i-a31-colombus). Since the i2c-

[PATCH 08/11] sunxi: pmic_bus: Clean up preprocessor conditions

2021-08-21 Thread Samuel Holland
Instead of using the SoC symbols to decide the bus type, use whichever bus driver is actually enabled. This allows collapsing all of the AXP2xx and AXP8xx variants into one "else" case. It also has the advantage of falling back to I2C when the other bus drivers are disabled; this works because all

[PATCH 09/11] sunxi: pmic_bus: Use the DM PMIC interface when possible

2021-08-21 Thread Samuel Holland
The pmic_bus functions are used in both SPL (for regulator setup) and U-Boot proper (for regulator setup, SID access, GPIO, and poweroff). Currently, pmic_bus conflicts with DM_I2C because it uses the legacy I2C interface. This commit makes pmic_bus dual-compatible with either the legacy I2C funct

[PATCH 06/11] sunxi: Select SUN8I_RSB more carefully

2021-08-21 Thread Samuel Holland
SUN8I_RSB should not be selected by MACH_SUN8I, because the hardware is not present in half of those SoCs (H3/H5, R40, and V3s). Move the selection to the SoCs where the hardware actually exists. Signed-off-by: Samuel Holland --- arch/arm/mach-sunxi/Kconfig | 4 +++- 1 file changed, 3 insertion

[PATCH 07/11] sunxi: pmic_bus: Fix Kconfig dependencies

2021-08-21 Thread Samuel Holland
AXP_PMIC_BUS enables communication with a specific AXP PMIC at a PMIC-dependent I2C/P2WI/RSB bus address. It is automatically selected as a dependency of the PMIC driver. It should not be selectable by the user when no PMIC is chosen. AXP_GPIO uses the pmic_bus functions, and also depends on a spe

[PATCH 05/11] power: pmic: Add a driver for X-Powers AXP PMICs

2021-08-21 Thread Samuel Holland
These PMICs provide some combination of battery charger, fuel gauge, GPIOs, regulators, and VBUS routing. These functions are represented as child nodes in the device tree. Add the minimal driver needed to probe these child devices and provide the DM_PMIC ops. Enable the driver by default for SoCs

[PATCH 04/11] power: pmic: Make the uclass optional in SPL

2021-08-21 Thread Samuel Holland
Some platforms still cannot use the driver model in SPL due to SRAM space limitations. However, they need to use DM_PMIC in U-Boot proper. Add a new symbol so that DM_PMIC can be disabled in SPL, while keeping it available elsewhere. Also update the SPL-specific symbols to depend on this new option

[PATCH 03/11] power: pmic: Consistently depend on DM_PMIC

2021-08-21 Thread Samuel Holland
Kconfig symbols for two PMIC drivers (PMIC_AS3722 and DM_PMIC_MC34708) were missing a dependency on DM_PMIC. To fix this inconsistency, and to keep it from happening again, wrap the driver section with "if DM_PMIC" instead of using a "depends on DM_PMIC" clause for each driver. Signed-off-by: Samu

[PATCH 02/11] i2c: Add a DM_I2C wrapper for the sun8i_rsb controller

2021-08-21 Thread Samuel Holland
This bus controller is used to communicate with an X-Powers AXP PMIC. Currently, various drivers access PMIC registers through a platform- specific non-DM "pmic_bus" interface, which depends on the legacy I2C framework. In order to convert those drivers to use DM_PMIC, this bus needs a DM_I2C drive

[PATCH 01/11] i2c: Add a DM_I2C wrapper for the sun6i_p2wi controller

2021-08-21 Thread Samuel Holland
This bus controller is used to communicate with an X-Powers AXP PMIC. Currently, various drivers access PMIC registers through a platform- specific non-DM "pmic_bus" interface, which depends on the legacy I2C framework. In order to convert those drivers to use DM_PMIC, this bus needs a DM_I2C drive

[PATCH 00/11] sunxi: Migrate to DM_I2C

2021-08-21 Thread Samuel Holland
This series does the initial work to migrate sunxi boards to DM_I2C. First it takes care of the PMIC: - Patches 1-2 add DM_I2C versions of two drivers. - Patches 3-4 allow us to use DM_PMIC without DM_SPL. - Patch 5 then adds a DM_PMIC driver. - Patches 6-9 migrate the "pmic_bus" functions to

[PATCH 7/9] nxp: Migrate CONFIG_DDR_CLK_FREQ to Kconfig

2021-08-21 Thread Tom Rini
As this symbol can either be a fixed value or the function get_board_ddr_clk, migration is tricky. Introduce a choice of DYNAMIC or STATIC_DDR_CLK_FREQ. If DYNAMIC, we continue to use the board defined get_board_ddr_clk function. If STATIC, set CONFIG_DDR_CLK_FREQ to that value and now include/c

[PATCH 8/9] nxp: Migrate a number of DDR related symbols to Kconfig

2021-08-21 Thread Tom Rini
- Guard most of the options in drivers/ddr/fsl/Kconfig with SYS_FSL_DDR || SYS_FSL_MMDC. - Migrate FSL_DMA, DDR_ECC, DDR_ECC_CMD, and ECC_INIT_VIA_DDRCONTROLLER to Kconfig. - Clean up the logic for including the DDR_ECC_CMD code. Signed-off-by: Tom Rini --- arch/powerpc/cpu/mpc83xx/Makefile

[PATCH 9/9] Convert CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT to Kconfig

2021-08-21 Thread Tom Rini
This converts the following to Kconfig: CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT Signed-off-by: Tom Rini --- configs/ls1021aiot_sdcard_defconfig | 1 + configs/ls1046aqds_nand_defconfig | 1 + include/configs/ls1021aiot.h| 1 - include/configs/ls1046a_common.h| 1 - 4 files changed,

[PATCH 5/9] mvebe: Migrate CONFIG_DDR_LOG_LEVEL to Kconfig

2021-08-21 Thread Tom Rini
Move this specific option to Kconfig. Signed-off-by: Tom Rini --- arch/arm/mach-mvebu/Kconfig | 14 ++ drivers/ddr/marvell/axp/ddr3_axp_config.h | 4 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-mvebu/Kconfig b/arch/arm/mach-mvebu/

[PATCH 6/9] ddr: Migrate DDR_SPD to Kconfig

2021-08-21 Thread Tom Rini
Move the symbol that controls building some JEDEC SPD support functions to Kconfig. This is required on the TI keystone 2 platforms and very frequently (but not always) used on large number of Freescale/NXP platforms, so use imply there. Signed-off-by: Tom Rini --- arch/arm/Kconfig| 1 +

[PATCH 3/9] mvebu: Migrate CONFIG_DDR_32BIT/64BIT to Kconfig

2021-08-21 Thread Tom Rini
Move CONFIG_DDR_32BIT/64BIT to Kconfig as a choice for Armada XP platforms. Make 64bit the default as this mirrors the current code. Cc: Marek BehĂșn Cc: Stefan Roese Signed-off-by: Tom Rini --- arch/arm/mach-mvebu/Kconfig | 13 + configs/ds414_defconfig | 1 + include/configs

[PATCH 4/9] mvebu: ddr: Rename CONFIG_DDR_FIXED_SIZE to CONFIG_SYS_SDRAM_SIZE

2021-08-21 Thread Tom Rini
We have a number of CONFIG symbols to express the fixed size of system memory. For now, rename CONFIG_DDR_FIXED_SIZE to CONFIG_SYS_SDRAM_SIZE and adjust usage to match that CONFIG_SYS_SDRAM_SIZE expects the entire size rather than MiB. Cc: Marek BehĂșn Cc: Stefan Roese Signed-off-by: Tom Rini -

[PATCH 2/9] global: Remove unused or unnecessary CONFIG symbols related to DDR

2021-08-21 Thread Tom Rini
These symbols are now either unused or were only used within the config file to determine other logic, which could be done in a way that doesn't further pollute the CONFIG namespace. Signed-off-by: Tom Rini --- arch/powerpc/cpu/mpc83xx/spd_sdram.c | 10 --- arch/powerpc/include/asm/conf

[PATCH 1/9] Kconfig: Use spaces not tabs in Kconfig entires

2021-08-21 Thread Tom Rini
While the Kconfig language seems to accept either form of whitespace, we use a space throughout the project, except in these spots. Signed-off-by: Tom Rini --- arch/arm/mach-exynos/Kconfig | 2 +- board/freescale/mx6memcal/Kconfig | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)

[u-boot-test-hooks PATCH] travis-ci: Correct the memory size for Xilinx Zynq QEMU

2021-08-21 Thread Bin Meng
Currently the memory is specified to be an insane size of about 38TB. This happens to be not an issue with QEMU 4.2.0 which is what U-Boot CI is currently using, but it does not make newer QEMU (e.g.: 6.0.0) happy. Change it to use a 1G memory size. Fixes: 4fcc1d95a39f ("Add support for Xilinx Zyn

[u-boot-test-hooks PATCH] Update Contributing.md with up-to-date information

2021-08-21 Thread Bin Meng
As Stephen is no longer actively maintaining the uboot-test-hooks, and the repo itself has been moved to source.denx.de, update the Contributing.md with up-to-date information on how patches should be sent against this repo. Signed-off-by: Bin Meng --- Contributing.md | 14 ++ 1 fi