[PATCH 10/15] ram: k3-j721e: lpddr4_ctl_regs: Fix checkpatch issue for types

2021-05-03 Thread Dave Gerlach
Use Linux style u32 instead of uint32_t. Signed-off-by: Dave Gerlach --- drivers/ram/k3-j721e/lpddr4_ctl_regs.h | 3028 1 file changed, 1514 insertions(+), 1514 deletions(-) diff --git a/drivers/ram/k3-j721e/lpddr4_ctl_regs.h b/drivers/ram/k3-j721e/lpddr4_ctl_regs.h

[PATCH 12/15] ram: k3-ddrss: Introduce top-level CONFIG_K3_DDRSS

2021-05-03 Thread Dave Gerlach
Create a new CONFIG_K3_DDRSS option to select the common parts of the k3-ddrss driver. Also introduce a choice that depends on the top level option to select CONFIG_K3_J721E_DDRSS for j721e support, and update corresponding Kconfig as required. Signed-off-by: Dave Gerlach ---

[PATCH 15/15] ram: k3-ddrss: Enable vtt regulator if present

2021-05-03 Thread Dave Gerlach
From: Lokesh Vutla Attempt to get and enable a vtt regulator if one is provided from the dts. If we do not find one, continue as not all platforms have this. Signed-off-by: Nishanth Menon Signed-off-by: Lokesh Vutla Signed-off-by: Dave Gerlach --- drivers/ram/k3-ddrss/k3-ddrss.c | 14

[PATCH 01/15] dt-bindings: memory-controller: Add K3 AM64 DDRSS compatible

2021-05-03 Thread Dave Gerlach
Update the k3-ddrss DT binding document to include compatible for k3,am64-ddrss. Signed-off-by: Dave Gerlach --- doc/device-tree-bindings/memory-controller/k3-j721e-ddrss.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH 00/15] ram: k3-ddrss: Convert k3-j721e to common driver with k3-am64 support

2021-05-03 Thread Dave Gerlach
This patch series updates the existing k3-j721e driver to a common driver to support both j721e and the new am642 SoC. It renames drivers/ram/k3-j721e to drivers/ram/k3-ddrss and then introduces a refactored common driver with the existing j721e support moved to files named with 32bit and am64

[PATCH 02/15] ram: k3-j721e: lpddr4_address_slice_0_macros: Fix indentation issues

2021-05-03 Thread Dave Gerlach
Fix the indentation for certain macros to be consistent with the other macros in the file, as the existing indentation does not make sense in many places. Signed-off-by: Dave Gerlach --- .../k3-j721e/lpddr4_address_slice_0_macros.h | 334 +- 1 file changed, 167 insertions(+),

[PATCH 11/15] ram: k3-j721e: Rename to k3-ddrss

2021-05-03 Thread Dave Gerlach
Rename the k3-j721e folder under drivers/ram to k3-ddrss in preparation of introducing additional support for other platforms to the same driver. Signed-off-by: Dave Gerlach --- drivers/ram/Makefile| 2 +- drivers/ram/{k3-j721e => k3-ddrss}/Makefile

Re: [PATCH v7 4/8] drivers: pci: add pcie support for fu740

2021-05-03 Thread Green Wan
On Mon, May 3, 2021 at 9:08 PM Neil Armstrong wrote: > > On 22/04/2021 11:11, Green Wan wrote: > > Add pcie driver for SiFive fu740, the driver depends on > > fu740 gpio, clk and reset driver to do init. Force running at Gen1 > > for better capatible enumeration. > > > > Several devices are

Re: [PATCH 04/49] btrfs: Use U-Boot API for decompression

2021-05-03 Thread Marek Behun
On Mon, 3 May 2021 17:10:51 -0600 Simon Glass wrote: > Use the common function to avoid code duplication. > > Signed-off-by: Simon Glass Is this tested? Why only zstd? marek

[PATCH 00/49] image: Reduce #ifdefs and ad-hoc defines in image code

2021-05-03 Thread Simon Glass
Much of the image-handling code predates the introduction of Kconfig and has quite a few #ifdefs in it. It also uses its own IMAGE_... defines to help reduce the #ifdefs, which is unnecessary now that we can use IS_ENABLED() et al. The image code is also where quite a bit of code is shared with

cramfs: unsupported filesystem features - ERROR

2021-05-03 Thread Marko Stanisic
I have created an emmc.img in Buildroot 2020.11 and flashed an emmc modul with that image. The emmc.img file has two partitions with cramfs filesystem.(but i only have to load one) I tried to load the cramfs partition from the emmc into the RAM with the *cramfsls* - command and Iam very sure

[PATCH 26/49] Kconfig: Rename SPL_CRC32_SUPPORT to SPL_CRC32

2021-05-03 Thread Simon Glass
Drop the _SUPPORT suffix so we can use CONFIG_IS_ENABLED() with this option. Signed-off-by: Simon Glass --- (no changes since v1) common/spl/Kconfig| 4 ++-- configs/axm_defconfig | 2 +- configs/chromebit_mickey_defconfig| 2 +-

[PATCH 27/49] image: Drop IMAGE_ENABLE_CRC32

2021-05-03 Thread Simon Glass
Add a host Kconfig for CRC32. With this we can use CONFIG_IS_ENABLED(CRC32) directly in the host build, so drop the unnecessary indirection. Add a few more conditions to SPL_CRC32 to avoid build failures as well as TPL_CRC32. Also update hash.c to make crc32 optional. Signed-off-by: Simon Glass

[PATCH 11/49] image: Split host code out into its own file

2021-05-03 Thread Simon Glass
To avoid having #ifdefs in a few functions which are completely different in the board and host code, create a new image-host.c file. Signed-off-by: Simon Glass --- (no changes since v1) common/image-board.c | 17 + common/image-host.c | 27 +++

[PATCH 17/49] image: Shorten FIT_ENABLE_SHAxxx_SUPPORT

2021-05-03 Thread Simon Glass
The ENABLE part of this name is redundant, since all boolean Kconfig options serve to enable something. The SUPPORT part is also redundant since Kconfigs can be assumed to enable support for something. Together they just serve to make these options overly long and inconsistent with other options.

[PATCH 09/49] image: Split board code out into its own file

2021-05-03 Thread Simon Glass
To avoid a large #ifdef in the image.c file, move the affected code into a separate file. Avoid any style fix-ups for easier review. Those are in the next patch. Signed-off-by: Simon Glass --- (no changes since v1) common/Makefile | 2 +- common/image-board.c | 925

[PATCH 39/49] image: Tidy up fit_unsupported_reset()

2021-05-03 Thread Simon Glass
This function is only used in one place and does not need to use the preprocessor. Move it to the C file and convert it to a normal function. Drop fit_unsupported() since it is not used. Signed-off-by: Simon Glass --- (no changes since v1) common/bootm_os.c | 8 include/image.h |

[PATCH 41/49] image: Drop #ifdefs for fit_print_contents()

2021-05-03 Thread Simon Glass
Use a simple return to drop the unwanted code. Signed-off-by: Simon Glass --- (no changes since v1) common/image-fit.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/common/image-fit.c b/common/image-fit.c index 3ee306143b3..f8aa61fc99d 100644 ---

Re: [PATCH 04/49] btrfs: Use U-Boot API for decompression

2021-05-03 Thread Qu Wenruo
On 2021/5/4 上午7:10, Simon Glass wrote: Use the common function to avoid code duplication. Signed-off-by: Simon Glass Acked-by: Qu Wenruo Thanks, Qu --- (no changes since v1) fs/btrfs/compression.c | 51 +- 1 file changed, 5 insertions(+), 46

[PATCH 32/49] image: Drop IMAGE_BOOT_GET_CMDLINE

2021-05-03 Thread Simon Glass
This is not needed with Kconfig, since we can use IS_ENABLED() easily enough. Update the only place where this is used and drop it. Signed-off-by: Simon Glass --- (no changes since v1) common/image-board.c | 2 +- include/image.h | 6 -- 2 files changed, 1 insertion(+), 7

[PATCH 49/49] image: Remove #ifdefs from select_fdt()

2021-05-03 Thread Simon Glass
Use boolean variables to deal with the strange #ifdef logic of this function, so we can remove the #ifdefs. Also drop one from its caller, boot_get_fdt() Signed-off-by: Simon Glass --- (no changes since v1) common/image-fdt.c | 201 ++--- 1 file

[PATCH 30/49] image: Drop IMAGE_ENABLE_SHA1

2021-05-03 Thread Simon Glass
We already have a host Kconfig for SHA1. Use CONFIG_IS_ENABLED(SHA1) directly in the code shared with the host build, so we can drop the unnecessary indirection. Signed-off-by: Simon Glass --- (no changes since v1) common/image-fit.c | 2 +- include/image.h| 11 --- 2 files

[PATCH 37/49] image: Drop IMAGE_ENABLE_BEST_MATCH

2021-05-03 Thread Simon Glass
This is not needed with Kconfig, since we can use IS_ENABLED() easily enough. Drop it. Signed-off-by: Simon Glass --- (no changes since v1) common/image-fit.c | 2 +- include/image.h| 5 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/common/image-fit.c

[PATCH 46/49] image: Remove some #ifdefs from image-fit and image-fit-sig

2021-05-03 Thread Simon Glass
Drop the #ifdefs which are easy to remove without refactoring. Signed-off-by: Simon Glass --- (no changes since v1) common/Kconfig.boot| 10 ++ common/image-fit-sig.c | 8 ++-- common/image-fit.c | 7 --- 3 files changed, 16 insertions(+), 9 deletions(-) diff --git

[PATCH 25/49] image: Use Kconfig to enable FIT_RSASSA_PSS on host

2021-05-03 Thread Simon Glass
Add a host Kconfig for FIT_RSASSA_PSS. With this we can use CONFIG_IS_ENABLED(FIT_RSASSA_PSS) directly in the host build, so drop the forcing of this in the image.h header. Signed-off-by: Simon Glass --- (no changes since v1) common/image-sig.c | 4 ++-- include/image.h | 3 ---

[PATCH 18/49] image: Rename SPL_SHAxxx_SUPPORT to SPL_FIT_SHAxxx

2021-05-03 Thread Simon Glass
These option are named inconsistently with other SPL options, thus making them incompatible with the CONFIG_IS_ENABLED() macro. Rename them. Signed-off-by: Simon Glass --- (no changes since v1) common/spl/Kconfig | 8 include/image.h| 8 2 files changed, 8 insertions(+),

[PATCH 20/49] hash: Drop some #ifdefs in hash.c

2021-05-03 Thread Simon Glass
We can use the __maybe_unused attribute to avoid some of the #ifdefs in this file. Update the functions accordingly. Note: The actual hashing interface is still a mess, with four separate combinations and lots of #ifdefs. This should really use a driver approach, e.g. as is done with partition

[PATCH 35/49] image: Drop IMAGE_ENABLE_IGNORE

2021-05-03 Thread Simon Glass
We can use the new host_build() function for this, so drop it. Signed-off-by: Simon Glass --- (no changes since v1) common/image-fit.c | 2 +- include/image.h| 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/common/image-fit.c b/common/image-fit.c index

[PATCH 19/49] hash: Use Kconfig to enable hashing in host tools

2021-05-03 Thread Simon Glass
At present when building host tools, we force CONFIG_SHA1 to be enabled regardless of the board Kconfig setting. This is done in the image.h header file. Clean this up by adding new Kconfig options to enable hashing on the host, relying on CONFIG_IS_ENABLED() to deal with the different builds.

[PATCH 29/49] image: Drop IMAGE_ENABLE_MD5

2021-05-03 Thread Simon Glass
Add a host Kconfig for MD5. With this we can use CONFIG_IS_ENABLED(MD5) directly in the host build, so drop the unnecessary indirection. Signed-off-by: Simon Glass --- (no changes since v1) common/image-fit.c | 2 +- include/image.h| 8 tools/Kconfig | 5 + 3 files

[PATCH 23/49] image: Use Kconfig to enable CONFIG_FIT_VERBOSE on host

2021-05-03 Thread Simon Glass
Add a host Kconfig for FIT_VERBOSE. With this we can use CONFIG_IS_ENABLED(FIT_VERBOSE) directly in the host build, so drop the forcing of this in the image.h header. Signed-off-by: Simon Glass --- (no changes since v1) include/image.h | 5 ++--- tools/Kconfig | 5 + 2 files changed, 7

[PATCH 14/49] image: Remove ifdefs around image_setup_linux() el at

2021-05-03 Thread Simon Glass
Drop some more ifdefs in image-board.c and also the FPGA part of bootm.c which calls into it. Signed-off-by: Simon Glass --- (no changes since v1) common/bootm.c | 16 common/image-board.c | 11 +++ 2 files changed, 11 insertions(+), 16 deletions(-) diff --git

[PATCH 44/49] image: Split up boot_get_ramdisk()

2021-05-03 Thread Simon Glass
This function is far too long. Before trying to remove #ifdefs, split out the code that deals with selecting the ramdisk into a separate function. Leave the code indented as it was for easier review. The next patch cleans this up along with checkpatch violations. Signed-off-by: Simon Glass ---

[PATCH 22/49] image: Drop IMAGE_ENABLE_OF_LIBFDT

2021-05-03 Thread Simon Glass
Add a host Kconfig for OF_LIBFDT. With this we can use CONFIG_IS_ENABLED(OF_LIBFDT) directly in the host build, so drop the unnecessary indirection. Signed-off-by: Simon Glass --- (no changes since v1) arch/arc/lib/bootm.c| 2 +- arch/arm/lib/bootm.c| 4 ++--

[PATCH 28/49] Kconfig: Rename SPL_MD5_SUPPORT to SPL_MD5

2021-05-03 Thread Simon Glass
Drop the _SUPPORT suffix so we can use CONFIG_IS_ENABLED() with this option. Signed-off-by: Simon Glass --- (no changes since v1) common/spl/Kconfig | 2 +- include/image.h| 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/spl/Kconfig b/common/spl/Kconfig index

[PATCH 33/49] image: Drop IMAGE_OF_BOARD_SETUP

2021-05-03 Thread Simon Glass
This is not needed with Kconfig, since we can use IS_ENABLED() easily enough. Drop it. Signed-off-by: Simon Glass --- (no changes since v1) common/image-fdt.c | 4 ++-- include/image.h| 6 -- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/common/image-fdt.c

[PATCH 13/49] image: Avoid #ifdefs for manual relocation

2021-05-03 Thread Simon Glass
Add a macro to handle manually relocating a pointer. Update the iamge code to use this to avoid needing #ifdefs. Signed-off-by: Simon Glass --- (no changes since v1) common/image-sig.c | 43 --- include/relocate.h | 6 ++ 2 files changed, 30

[PATCH 43/49] image: Reduce variable scope in boot_get_ramdisk()

2021-05-03 Thread Simon Glass
Move the variables declarations to where they are needed, to reduce the number of #ifdefs needed. Signed-off-by: Simon Glass --- (no changes since v1) common/image-board.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/common/image-board.c

[PATCH 21/49] image: Drop IMAGE_ENABLE_FIT

2021-05-03 Thread Simon Glass
Make use of the host Kconfig for FIT. With this we can use CONFIG_IS_ENABLED(FIT) directly in the host build, so drop the unnecessary indirection. Signed-off-by: Simon Glass --- (no changes since v1) arch/arm/mach-imx/hab.c | 2 +- common/bootm.c | 10 +-

[PATCH 34/49] image: Drop IMAGE_OF_SYSTEM_SETUP

2021-05-03 Thread Simon Glass
This is not needed with Kconfig, since we can use IS_ENABLED() easily enough. Drop it. Signed-off-by: Simon Glass --- (no changes since v1) common/image-fdt.c | 2 +- include/image.h| 6 -- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/common/image-fdt.c

[PATCH 12/49] image: Create a function to do manual relocation

2021-05-03 Thread Simon Glass
Rather than adding an #ifdef and open-coding this calculation, add a helper function to handle it. Use this in the image code. Signed-off-by: Simon Glass --- (no changes since v1) common/image.c | 33 +++-- include/relocate.h | 24 +++- 2

[PATCH 10/49] image: Fix up checkpatch warnings in image-board.c

2021-05-03 Thread Simon Glass
Tidy up the warnings. Signed-off-by: Simon Glass --- (no changes since v1) common/image-board.c | 142 ++- 1 file changed, 72 insertions(+), 70 deletions(-) diff --git a/common/image-board.c b/common/image-board.c index 0c4e32e14e4..5d3eafb5245 100644

[PATCH 24/49] image: Rename CONFIG_FIT_ENABLE_RSASSA_PSS_SUPPORT

2021-05-03 Thread Simon Glass
Drop the ENABLE and SUPPORT parts of this, which are redundant. Signed-off-by: Simon Glass --- (no changes since v1) common/Kconfig.boot | 2 +- common/image-sig.c | 4 ++-- configs/bcm963158_ram_defconfig | 2 +- configs/sandbox_defconfig | 2 +-

[PATCH 16/49] kconfig: Add host support to CONFIG_IS_ENABLED()

2021-05-03 Thread Simon Glass
At present we must separately test for the host build for many options, since we force them to be enabled. For example, CONFIG_FIT is always enabled in the host tools, even if CONFIG_FIT is not enabled by the board itself. It would be more convenient if we could use, for example,

[PATCH 45/49] image: Remove #ifdefs from select_ramdisk()

2021-05-03 Thread Simon Glass
Use boolean variables to deal with the strange #ifdef logic of this function, so we can remove the #ifdefs. Signed-off-by: Simon Glass --- (no changes since v1) common/image-board.c | 139 ++- 1 file changed, 72 insertions(+), 67 deletions(-) diff

[PATCH 48/49] image: Split up boot_get_fdt()

2021-05-03 Thread Simon Glass
This function is far too long. Before trying to remove #ifdefs, split out the code that deals with selecting the FDT into a separate function. Signed-off-by: Simon Glass --- (no changes since v1) common/image-fdt.c | 319 - 1 file changed, 173

[PATCH 36/49] image: Drop IMAGE_ENABLE_SIGN/VERIFY defines

2021-05-03 Thread Simon Glass
Add host Kconfigs for FIT_SIGN and RSA_VERIFY. With these we can use CONFIG_IS_ENABLED() directly in the host build, so drop the unnecessary indirections IMAGE_ENABLE_SIGN and HOST_RSA_VERIFY. Also drop FIT_IMAGE_ENABLE_VERIFY which is not actually used. Leave IMAGE_ENABLE_VERIFY_ECDSA along

[PATCH 31/49] image: Drop IMAGE_ENABLE_SHAxxx

2021-05-03 Thread Simon Glass
We already have a host Kconfig for these SHA options. Use CONFIG_IS_ENABLED(SHAxxx) directly in the code shared with the host build, so we can drop the unnecessary indirections. Signed-off-by: Simon Glass --- (no changes since v1) common/image-fit.c | 6 +++--- include/image.h| 21

[PATCH 47/49] image: Reduce variable scope in boot_get_fdt()

2021-05-03 Thread Simon Glass
Move the variables declarations to where they are needed, to reduce the number of #ifdefs needed. Signed-off-by: Simon Glass --- (no changes since v1) common/image-fdt.c | 23 +++ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/common/image-fdt.c

[PATCH 42/49] image: Drop most #ifdefs in image-board.c

2021-05-03 Thread Simon Glass
Remove ifdefs in this file, so far as possible without too much refactoring. Signed-off-by: Simon Glass --- (no changes since v1) common/image-board.c | 109 +++ include/image.h | 7 ++- 2 files changed, 53 insertions(+), 63 deletions(-) diff

[PATCH 15/49] image: Add Kconfig options for FIT in the host build

2021-05-03 Thread Simon Glass
In preparation for enabling CONFIG_IS_ENABLED() on the host build, add some options to enable the various FIT options expected in these tools. This will ensure that the code builds correctly when CONFIG_HOST_xxx is distinct from CONFIG_xxx. Signed-off-by: Simon Glass --- (no changes since v1)

[PATCH 40/49] image: Drop unnecessary #ifdefs from image.h

2021-05-03 Thread Simon Glass
This file has a lot of conditional code and much of it is unnecessary. Clean this up to reduce the number of build combinations. Signed-off-by: Simon Glass --- (no changes since v1) include/image.h| 40 -- include/u-boot/hash-checksum.h | 5

[PATCH 38/49] image: Drop IMAGE_ENABLE_EN/DECRYPT defines

2021-05-03 Thread Simon Glass
Add a host Kconfigs for IMAGE_ENABLE_ENCRYPT. With this we can use CONFIG_IS_ENABLED() directly in the host build, so drop the unnecessary indirections IMAGE_IMAGE_ENABLE_ENCRYPT and IMAGE_IMAGE_ENABLE_DECRYPT. Signed-off-by: Simon Glass --- (no changes since v1) common/image-cipher.c | 6

[PATCH 08/49] image: Update image_decomp() to avoid ifdefs

2021-05-03 Thread Simon Glass
Adjust this function so that preprocessor macros are not needed. With this, the host build uses more of the same header files as the target build. Rather than definining CONFIG_SYS_MALLOC_LEN, add a CONSERVE_MEMORY define, since that is the purpose of the value. This appears to have no impact on

[PATCH 07/49] gzip: Avoid use of u64

2021-05-03 Thread Simon Glass
The gzip API uses the u64 type in it, which is not available in the host build. This makes it impossible to include the header file. We could make this type available, but it seems unnecessary. Limiting the compression size to that of the 'unsigned long' type seems good enough. On 32-bit machines

[PATCH 06/49] image: Update zstd to avoid reporting error twice

2021-05-03 Thread Simon Glass
The zstd implementation prints the error in image_decomp() which is incorrect and does not match other algorithms. Drop this and let the caller report the error. Signed-off-by: Simon Glass --- (no changes since v1) common/image.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-)

[PATCH 05/49] image: Avoid switch default in image_decomp()

2021-05-03 Thread Simon Glass
At present this function is full of preprocessor macros. Adjust it to check for an unsupported algorithm after the switch(). This will allow us to drop the macros. Fix up the return-value path and an extra blank line while we are here. Signed-off-by: Simon Glass --- (no changes since v1)

[PATCH 03/49] zstd: Create a function for use from U-Boot

2021-05-03 Thread Simon Glass
The existing zstd API requires the same sequence of calls to perform its task. Create a helper for U-Boot, to avoid code duplication, as is done with other compression algorithms. Make use of of this from the image code. Note that the zstd code lacks a test in test/compression.c and this should

[PATCH 04/49] btrfs: Use U-Boot API for decompression

2021-05-03 Thread Simon Glass
Use the common function to avoid code duplication. Signed-off-by: Simon Glass --- (no changes since v1) fs/btrfs/compression.c | 51 +- 1 file changed, 5 insertions(+), 46 deletions(-) diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c index

[PATCH 01/49] Add support for an owned buffer

2021-05-03 Thread Simon Glass
When passing a data buffer back from a function, it is not always clear who owns the buffer, i.e. who is responsible for freeing the memory used. An example of this is where multiple files are decompressed from the firmware image, using a temporary buffer for reading (since the compressed data has

[PATCH 02/49] compiler: Add a comment to host_build()

2021-05-03 Thread Simon Glass
This function should have a comment explaining what it does. Add one. Signed-off-by: Simon Glass --- (no changes since v1) include/compiler.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/compiler.h b/include/compiler.h index 27b9843497a..ec0d600e71a 100644 ---

[PATCH v8 15/15] mtd: spi-nor-tiny: Add fixups for Cypress s25hl-t/s25hs-t

2021-05-03 Thread tkuw584924
From: Takahiro Kuwano Fixes mode clocks for SPINOR_OP_READ_FAST_4B in tiny. Signed-off-by: Takahiro Kuwano --- Changes in v8: - No change Changes in v7: - No change Changes in v6: - Remove spansion_quad_enable_volatile() per comment in

[PATCH v8 14/15] mtd: spi-nor-core: Add fixups for Cypress s25hl-t/s25hs-t

2021-05-03 Thread tkuw584924
From: Takahiro Kuwano The nor->ready() and spansion_sr_ready() introduced earlier in this series are used for multi-die package parts. The nor->quad_enable() sets the volatile QE bit on each die. The nor->erase() is hooked if the device is not configured to uniform sectors, assuming it has 32

[PATCH v8 13/15] mtd: spi-nor-core: Add Cypress manufacturer ID in set_4byte

2021-05-03 Thread tkuw584924
From: Takahiro Kuwano Cypress chips support SPINOR_OP_EN4B(B7h) to enable 4-byte addressing mode. Cypress chips support B8h to disable 4-byte addressing mode instead of SPINOR_OP_EX4B(E9h). This patch defines new opcode and updates set_4byte() to support enable/disable 4-byte addressing mode

[PATCH v8 12/15] mtd: spi-nor-core: Read status by Read Any Register

2021-05-03 Thread tkuw584924
From: Takahiro Kuwano The spansion_sr_ready() reads status register 1 by Read Any Register commnad. This function is called from Flash specific hook with die address and dummy cycles to support multi-die package parts from Spansion/Cypress. Signed-off-by: Takahiro Kuwano Reviewed-by: Pratyush

[PATCH v8 11/15] mtd: spi-nor-core: Add the ->ready() hook

2021-05-03 Thread tkuw584924
From: Takahiro Kuwano For dual/quad die package devices from Spansion/Cypress, the device's status needs to be checked by reading status registers in all dies, by using Read Any Register command. To support this, a Flash specific hook that can overwrite the legacy status check is needed.

[PATCH v8 09/15] mtd: spi-nor-core: Add support for Read/Write Any Register

2021-05-03 Thread tkuw584924
From: Takahiro Kuwano Some of Spansion/Cypress chips support Read/Write Any Register commands. These commands are mainly used to write volatile registers and access to the registers in second and subsequent die for multi-die package parts. The Read Any Register instruction (65h) is followed by

[PATCH v8 10/15] mtd: spi-nor-core: Add support for volatile QE bit

2021-05-03 Thread tkuw584924
From: Takahiro Kuwano Some of Spansion/Cypress chips support volatile version of configuration registers and it is recommended to update volatile registers in the field application due to a risk of the non-volatile registers corruption by power interrupt. This patch adds a function to set Quad

[PATCH v8 08/15] mtd: spi-nor-ids: Add Cypress s25hl-t/s25hs-t

2021-05-03 Thread tkuw584924
From: Takahiro Kuwano The S25HL-T/S25HS-T family is the Cypress Semper Flash with Quad SPI. https://www.cypress.com/file/424146/download (256Mb/512Mb/1Gb, single die) https://www.cypress.com/file/499246/download (2Gb/4Gb, dual/quad die) The full version can be found in the following links

[PATCH v8 07/15] mtd: spi-nor: Add Cypress manufacturer ID

2021-05-03 Thread tkuw584924
From: Takahiro Kuwano This patch adds Cypress manufacturer ID (34h) definition. Signed-off-by: Takahiro Kuwano Reviewed-by: Pratyush Yadav --- include/linux/mtd/spi-nor.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/mtd/spi-nor.h b/include/linux/mtd/spi-nor.h index

[PATCH v8 06/15] mtd: spi-nor-core: Add non-uniform erase for Spansion/Cypress

2021-05-03 Thread tkuw584924
From: Takahiro Kuwano Some of Spansion/Cypress chips have overlaid 4KB sectors at top and/or bottom, depending on the device configuration, while U-Boot supports uniform sector layout only. The spansion_erase_non_uniform() erases overlaid 4KB sectors, non-overlaid portion of normal sector, and

[PATCH v8 05/15] mtd: spi-nor-core: allow truncated erases

2021-05-03 Thread tkuw584924
From: Pratyush Yadav On devices with non-uniform sector sizes like Spansion S25 or S28 family of flashes the sector under erase does not necessarily have to be mtd->erasesize bytes long. For example, on S28 flashes the first 128 KiB region is composed of 32 4 KiB sectors, then a 128 KiB sector,

[PATCH v8 04/15] mtd: spi-nor-core: Introduce flash-specific fixup hooks

2021-05-03 Thread tkuw584924
From: Pratyush Yadav Sometimes the information in a flash's SFDP tables is wrong. Sometimes some information just can't be expressed in the SFDP table. So, introduce the fixup hooks to allow tailoring settings for a specific flash. Three hooks are added: default_init, post_sfdp, and post_bfpt.

[PATCH v8 03/15] mtd: spi-nor-core: Move SFDP related declarations to top

2021-05-03 Thread tkuw584924
From: Pratyush Yadav These structures will be used in a later commit inside another structure definition. Also take the declarations out of the ifdef since they won't affect the final binary anyway and will be used in a later commit. Signed-off-by: Pratyush Yadav --- Taken from Pratyush's

[PATCH v8 02/15] mtd: spi-nor-core: Add a ->setup() hook

2021-05-03 Thread tkuw584924
From: Pratyush Yadav nor->setup() can be used by flashes to configure settings in case they have any peculiarities that can't be easily expressed by the generic spi-nor framework. This includes things like different opcodes, dummy cycles, page size, uniform/non-uniform sector sizes, etc. Move

[PATCH v8 01/15] arm: mvebu: x530: Use tiny SPI NOR

2021-05-03 Thread tkuw584924
From: Pratyush Yadav The SPI NOR core will get new functions in following commits. This has presented a significant challenge of keeping the SPL size in check on the x530 platform. On a previous iteration of the series, adding a set of compile-time switches got the build working. But rebasing

[PATCH v8 00/15] mtd: spi-nor: Add support for Cypress s25hl-t/s25hs-t

2021-05-03 Thread tkuw584924
From: Takahiro Kuwano The S25HL-T/S25HS-T family is the Cypress Semper Flash with Quad SPI. The summary datasheets can be found in the following links. https://www.cypress.com/file/424146/download (256Mb/512Mb/1Gb, single die) https://www.cypress.com/file/499246/download (2Gb/4Gb, dual/quad

[RFC 7/7] TEST: Move to gcc-11.0 prerelease and LLVM-11

2021-05-03 Thread Tom Rini
- gcc-11.0 proper is coming soon to kernel.org, use this snapshot for now to see what fails. - grub-2.04 does not build with gcc-11.0 due to -Werror, grub-2.06-rc1 fails on riscv32-linux as seen here: https://www.mail-archive.com/grub-devel@gnu.org/msg30736.html Cc: Heinrich Schuchardt

[RFC 6/7] bootstage: Eliminate when not enabled

2021-05-03 Thread Tom Rini
When we do not have bootstage enabled, rather than include an empty dummy function, we just don't reference it. This saves us space in some tight builds. This also shows a few cases where show_boot_progress was incorrectly guarded before. Cc: Simon Glass Signed-off-by: Tom Rini --- Moving to

[RFC 5/7] Makefile: Disable gcc-10.0 warnings

2021-05-03 Thread Tom Rini
Based on 5c45de21a2223, 44720996e2d79 and 5a76021c2eff7 in Linux Signed-off-by: Tom Rini --- Makefile | 4 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 404977efa527..aaa9a0495e69 100644 --- a/Makefile +++ b/Makefile @@ -687,6 +687,10 @@ KBUILD_CFLAGS += $(call

[RFC 3/7] eb_cpu5282: Declare diplay_width / display_height as externs

2021-05-03 Thread Tom Rini
The board code here references the display_width / display_height variables set in the video driver, declare these as externs as gcc-11 will notice and lead to a multiple definition error. Signed-off-by: Tom Rini --- board/BuS/eb_cpu5282/eb_cpu5282.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[RFC 4/7] pinctrl: mscc: Fix multiple definition error

2021-05-03 Thread Tom Rini
With gcc-11 we get a multiple errors here as the declarations for mscc_pinctrl_ops and mscc_gpio_ops are missing an extern. CC: Gregory CLEMENT Cc: Lars Povlsen Cc: Horatiu Vultur Signed-off-by: Tom Rini --- drivers/pinctrl/mscc/mscc-common.h | 4 ++-- 1 file changed, 2 insertions(+), 2

[RFC 2/7] freescale: Drop unnecessary cpld_data_t non-typedef

2021-05-03 Thread Tom Rini
In some board cpld.h files the definition of the cpld_data struct not-quite makes a typedef for cpld_data_t. This problem is caught with gcc-11 as a multiple definition error. As there are no users of this non-typedef, fix this by not declaring it one to begin with. Cc: Priyanka Jain Cc:

[RFC 1/7] ARM: mvebu: a38x: Correct mismatched bound warnings

2021-05-03 Thread Tom Rini
With gcc-11 we see: drivers/ddr/marvell/a38x/ddr3_debug.c:672:47: error: argument 2 of type 'u32[5]' {aka 'unsigned int[5]'} with mismatched bound [-Werror=array-parameter=] 672 | int ddr3_tip_read_adll_value(u32 dev_num, u32 pup_values[MAX_INTERFACE_NUM * MAX_BUS_NUM], |

[RFC 0/7] Update CI to using GCC 11.0 / LLVM-11

2021-05-03 Thread Tom Rini
Hey all, This series does most of the work required to move to using GCC-11.0 to build in CI. The first thing is I realized I forgot to update buildman to know to where to fetch gcc-11 from, but I'll take care of that later. Next, this ends up using the last gcc-11 snapshot as the gcc-11.0

Re: [PATCH v1 08/10] net: mvpp2: fix missing switch case break

2021-05-03 Thread Ramon Fried
On Mon, May 3, 2021 at 9:13 AM Stefan Roese wrote: > > Hi Ramon, > > On 30.04.21 16:18, Ramon Fried wrote: > > On Fri, Apr 30, 2021 at 7:40 AM Stefan Roese wrote: > >> > >> On 29.04.21 22:24, Ramon Fried wrote: > >>> On Tue, Apr 27, 2021 at 4:28 PM Stefan Roese wrote: > > From: Ben

Re: [PATCH v2 10/10] net: mvpp2: add explicit sgmii-2500 support

2021-05-03 Thread Ramon Fried
On Mon, May 3, 2021 at 9:09 AM Stefan Roese wrote: > > From: Marcin Wojtas > > Until now the mvpp2 driver used an extra 'phy-speed' > DT property in order to differentiate between the > SGMII and SGMII @2.5GHz. As there is a dedicated > PHY_INTERFACE_MODE_SGMII_2500 flag to mark the latter >

Re: [PATCH v2 08/10] net: mvpp2: fix missing switch case break

2021-05-03 Thread Ramon Fried
On Mon, May 3, 2021 at 9:09 AM Stefan Roese wrote: > > From: Ben Peled > > Signed-off-by: Ben Peled > Reviewed-by: Stefan Chulski > Reviewed-by: Kostya Porotchkin > Signed-off-by: Stefan Roese > --- > > (no changes since v1) > > drivers/net/mvpp2.c | 2 ++ > 1 file changed, 2 insertions(+)

Re: [PATCH v2 07/10] net: mvpp2: remove unused define MVPP22_SMI_PHY_ADDR_REG

2021-05-03 Thread Ramon Fried
On Mon, May 3, 2021 at 9:09 AM Stefan Roese wrote: > > From: Ben Peled > > Signed-off-by: Ben Peled > Reviewed-by: Stefan Chulski > Reviewed-by: Kostya Porotchkin > Signed-off-by: Stefan Roese > --- > > (no changes since v1) > > drivers/net/mvpp2.c | 3 --- > 1 file changed, 3 deletions(-)

Re: [PATCH v2 04/10] net: mvpp2: remove redundant SMI address configuration

2021-05-03 Thread Ramon Fried
On Mon, May 3, 2021 at 9:08 AM Stefan Roese wrote: > > From: Marcin Wojtas > > Because the mvpp2 driver now relies on the PHYLIB and > the external MDIO driver, configuring low level > SMI bus settings is redundant. > > Signed-off-by: Marcin Wojtas > Reviewed-by: Kostya Porotchkin >

Re: [PATCH v2 03/10] net: mvpp2: add 1000BaseX and 2500BaseX ppv2 support

2021-05-03 Thread Ramon Fried
On Mon, May 3, 2021 at 9:08 AM Stefan Roese wrote: > > From: Stefan Chulski > > Signed-off-by: Stefan Chulski > Signed-off-by: Stefan Roese > --- > > (no changes since v1) > > drivers/net/mvpp2.c | 117 ++-- > 1 file changed, 112 insertions(+), 5

Re: [PATCH 03/16] ARM: dts: imxrt1020: add alias to osc

2021-05-03 Thread Giulio Benetti
> Il giorno 3 mag 2021, alle ore 20:21, Fabio Estevam ha > scritto: > > On Mon, May 3, 2021 at 2:52 PM Giulio Benetti > wrote: > >> Ok, is it ok if it even repeats the first line? Because I don’t know what >> write more than that. > > Yes, that would be fine. Ok thank you. This was a

Re: [PATCH 03/16] ARM: dts: imxrt1020: add alias to osc

2021-05-03 Thread Fabio Estevam
On Mon, May 3, 2021 at 2:52 PM Giulio Benetti wrote: > Ok, is it ok if it even repeats the first line? Because I don’t know what > write more than that. Yes, that would be fine.

[PATCH] imx: ventana: enable dm support for PCI and FEC ethernet

2021-05-03 Thread Tim Harvey
Enable driver model support for FEC ethernet which allows us to remove the iomux and board_eth_init function. Replace the toggling of the ethernet phy reset with dt configuration. Enable driver model support for PCI which allows us to remove the eth1000_initialize() call. Additionally enable

am335x: Unable to boot u-boot image from mmc1

2021-05-03 Thread 粘博閎
Hi all, I try to build u-boot by config of am335x_evm_test_defconfig on branch master and burn to sd card on beaglebone black. When I boot the device, the print the string "Trying to boot from MMC1". But I build u-boot by config of am335x_evm_test_defconfig on branch v2019.04 and boot normally.

Re: [PATCH 03/16] ARM: dts: imxrt1020: add alias to osc

2021-05-03 Thread Giulio Benetti
Hi Gabio, > Il giorno 3 mag 2021, alle ore 16:01, Fabio Estevam ha > scritto: > > Hi Giulio, > >> On Wed, Apr 7, 2021 at 4:03 PM Giulio Benetti >> wrote: >> >> Signed-off-by: Giulio Benetti >> --- >> arch/arm/dts/imxrt1020.dtsi | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >>

Re: [PATCH] ARM: stm32: Add additional ID register check for KSZ8851 presence

2021-05-03 Thread Patrice CHOTARD
Hi Marek On 5/3/21 1:31 PM, Marek Vasut wrote: > Currently the code sets eth1addr only if /ethernet1 alias exists in DT, > the node pointed to by the alias has "micrel,ks8851-mll" compatible > string, and the KSZ8851 CCR register read indicates programmed EEPROM > is not connected. > > This is

Re: [PATCH] ARM: stm32: Enable UNZIP on DHSOM by default

2021-05-03 Thread Patrice CHOTARD
Hi Marek On 5/3/21 1:31 PM, Marek Vasut wrote: > The CMD_UNZIP provides the 'gzwrite' command, which is convenient > for writing e.g. gz-compressed images to eMMC from U-Boot. > > Signed-off-by: Marek Vasut > Cc: Patrice Chotard > Cc: Patrick Delaunay > --- >

Re: [PATCH 03/16] ARM: dts: imxrt1020: add alias to osc

2021-05-03 Thread Fabio Estevam
Hi Giulio, On Wed, Apr 7, 2021 at 4:03 PM Giulio Benetti wrote: > > Signed-off-by: Giulio Benetti > --- > arch/arm/dts/imxrt1020.dtsi | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/dts/imxrt1020.dtsi b/arch/arm/dts/imxrt1020.dtsi > index

Re: [Uboot-stm32] [PATCH 1/2] cmd: pinmux: update result of do_status

2021-05-03 Thread Patrick DELAUNAY
Hi Simon, On 4/29/21 6:10 PM, Simon Glass wrote: Hi Patrick, On Tue, 20 Apr 2021 at 03:21, Patrice CHOTARD wrote: Hi Patrick -Original Message- From: Uboot-stm32 On Behalf Of Patrick DELAUNAY Sent: mercredi 28 octobre 2020 11:07 To: u-boot@lists.denx.de Cc: U-Boot STM32 ; Simon

  1   2   >