RE: [v4 00/12] Add ASPEED SPI controller driver

2022-06-25 Thread Chin-Ting Kuo
Hi All, Are there any comments about this patch series? Thanks. Best Wishes, Chin-Ting > -Original Message- > From: Chin-Ting Kuo > Sent: Tuesday, May 24, 2022 1:57 PM > To: ChiaWei Wang ; lu...@denx.de; > sean...@gmail.com; Ryan Chen ; BMC-SW > ; ja...@amarulasolutions.com;

Re: spi-nand: how to store environment with badblock handling in qspi nand

2022-06-25 Thread Daniel Golle
On Sat, Jun 25, 2022 at 10:10:08AM +0200, Kegl Rohit wrote: > Hello! > > Is it possible to store the environment inside a mtd partition when > using a single qspi nand chip as storage? > CONFIG_MTD_SPI_NAND=y > > The idea is to separate the NAND into two system A/B. > [...] > >

Re: [PATCH 20/20] Convert CONFIG_SYS_BOOTM_LEN to Kconfig

2022-06-25 Thread Tom Rini
On Sun, Jun 26, 2022 at 12:01:23AM +0200, Soeren Moch wrote: > > > > > diff --git a/configs/tbs2910_defconfig b/configs/tbs2910_defconfig > > > > index 892d7c60d283..f0ecfd049d65 100644 > > > > --- a/configs/tbs2910_defconfig > > > > +++ b/configs/tbs2910_defconfig > > > > @@ -35,6 +35,7 @@

Re: [PATCH 20/20] Convert CONFIG_SYS_BOOTM_LEN to Kconfig

2022-06-25 Thread Soeren Moch
diff --git a/configs/tbs2910_defconfig b/configs/tbs2910_defconfig index 892d7c60d283..f0ecfd049d65 100644 --- a/configs/tbs2910_defconfig +++ b/configs/tbs2910_defconfig @@ -35,6 +35,7 @@ CONFIG_CMD_BOOTZ=y # CONFIG_BOOTM_PLAN9 is not set # CONFIG_BOOTM_RTEMS is not set #

Re: [PATCH 20/20] Convert CONFIG_SYS_BOOTM_LEN to Kconfig

2022-06-25 Thread Tom Rini
On Sat, Jun 25, 2022 at 07:59:36PM +0200, Soeren Moch wrote: > Hi Tom, > > On 25.06.22 17:02, Tom Rini wrote: > > This converts the following to Kconfig: > > CONFIG_SYS_BOOTM_LEN > > > > As part of this, rework error handling in boot/bootm.c so that we pass > > the buffer size to

Re: [PATCH 20/20] Convert CONFIG_SYS_BOOTM_LEN to Kconfig

2022-06-25 Thread Soeren Moch
Hi Tom, On 25.06.22 17:02, Tom Rini wrote: This converts the following to Kconfig: CONFIG_SYS_BOOTM_LEN As part of this, rework error handling in boot/bootm.c so that we pass the buffer size to handle_decomp_error as CONFIG_SYS_BOOTM_LEN will not be available to host tools but we do know

[PATCH] board_init: Do not reserve MALLOC_F area on stack if non-zero MALLOC_F_ADDR

2022-06-25 Thread Marek Vasut
In case the MALLOC_F_ADDR is set to non-zero value, the early malloc area is not going to be placed just below stack top, but elsewhere. Do not reserve MALLOC_F bytes in this case, as that wastes stack space and may even cause insufficient stack space in SPL. This functionality is particularly

[PATCH v3 14/14] doc: Add man page for dumpimage

2022-06-25 Thread Sean Anderson
This tool seems a bit underloved. Unfortunately, it seems to be missing support for FIT images. Alas... Add a man page documenting it. The example is taken from commit a804b5ce2d ("Add dumpimage, a tool to extract data from U-Boot images"). Signed-off-by: Sean Anderson --- (no changes since

[PATCH v3 13/14] doc: mkimage: Further document -o and -R

2022-06-25 Thread Sean Anderson
Despite the original description of these options, they are not always image names, or even files. Some image types use these options to convey configuration directly. Re-document these options as configuration options. Additionally, add a new section documenting the format of the configuration

[PATCH v3 12/14] mkimage: Add long options

2022-06-25 Thread Sean Anderson
The mkimage command has had many options added over the years. Unfortunately, we are starting to run out of short options. Recent options don't have any obvious relation to their meaning (e.g. -o/-g). Fortunately, long options exist. Add long options for each current short option. For the

[PATCH v3 08/14] doc: mkimage: Edit options for style and consistency

2022-06-25 Thread Sean Anderson
This makes a variety of changes for the options to make them typographically consistent, clarify their meaning, and fix grammatical (or other) errors. Many of the changes here are stylistic, though there are a few fixes. The main changes I made across the board were: - All options are bolded and

[PATCH v3 11/14] doc: mkimage: Remove AUTHORS section

2022-06-25 Thread Sean Anderson
Per man-pages(7), "use of an AUTHORS section is strongly discouraged." Remove it, and instead add some copyright notices and an SPDX. The default license for U-Boot is GPL2, so that's what I put. The copyright dates are based on the commit dates. Signed-off-by: Sean Anderson --- (no changes

[PATCH v3 10/14] doc: mkimage: Add SEE ALSO section

2022-06-25 Thread Sean Anderson
This adds a SEE ALSO section to link to similar man pages, as well as to the U-Boot documentation. Signed-off-by: Sean Anderson --- (no changes since v1) doc/mkimage.1 | 8 1 file changed, 8 insertions(+) diff --git a/doc/mkimage.1 b/doc/mkimage.1 index 60978762d3..bc28a5d748 100644

[PATCH v3 09/14] doc: mkimage: Add BUGS section

2022-06-25 Thread Sean Anderson
In leiu of a non-standard HOMEPAGE section, add a BUGS section with a link to the issue tracker. Signed-off-by: Sean Anderson --- (no changes since v1) doc/mkimage.1 | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/mkimage.1 b/doc/mkimage.1 index

[PATCH v3 07/14] doc: mkimage: Use correct capitalization for NAME

2022-06-25 Thread Sean Anderson
The description in NAME should not be capitalized. Fix a grammatical error as well. Signed-off-by: Sean Anderson --- (no changes since v1) doc/mkimage.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/mkimage.1 b/doc/mkimage.1 index 34c0c2050f..ee5d0dd0ef 100644 ---

[PATCH v3 06/14] doc: mkimage: Rearrange/remove some options

2022-06-25 Thread Sean Anderson
This moves some options which work in any mode to the general options section. -p is moved to after -E/-B since those options are related. This also adds documentation for -h and -V. The -F, -l, and -G options are documented twice. Remove the second documentation in each case. The synopsis for -l

[PATCH v3 04/14] doc: mkimage: Regularize option documentation

2022-06-25 Thread Sean Anderson
Square brackets are commonly used to denote optional parts of a command. However, all option arguments are mandatory. Remove these brackets. This also removes some unnecessary quotation marks, and uses hyphens to connect words in option arguments. This is intended to just clean up the formatting,

[PATCH v3 05/14] doc: mkimage: Use subsection macro

2022-06-25 Thread Sean Anderson
The options are divided up into several subsections. Use the appropriate macro. While we're at it, rename the headings to better reflect the contents of their sections. Signed-off-by: Sean Anderson --- Changes in v3: - Remove usage of "legacy" in section headings Changes in v2: - Rename first

[PATCH v3 03/14] doc: mkimage: Reformat examples

2022-06-25 Thread Sean Anderson
This puts each example in a new paragraph and uses a hanging indent for continued lines to increase clarity. We use tabs instead of .in or .RS for the indent because it renders properly in both man and mandoc (which is what many common HTML man pages use). The only nit is that the tab stops in man

[PATCH v3 02/14] doc: mkimage: Use empty request instead of blank lines

2022-06-25 Thread Sean Anderson
Blank lines do not have well-defined semantics in fill mode (the default). Instead, use empty requests (.) where vertical space is necessary for readability. There are a few places where we use a paragraph instead. Signed-off-by: Sean Anderson --- (no changes since v1) doc/mkimage.1 | 108

[PATCH v3 01/14] doc: mkimage: Use standard style for synopsis

2022-06-25 Thread Sean Anderson
The synopsis section is a bit messy. As an example, "uimage file name" is printed in italics, bold, and roman (depending on the line). This cleans things up and converts the synopsis section to use standard style. The .SY/.YS macros set up appropriate formatting for command synopsis sections (such

[PATCH v3 00/14] doc: mkimage: Rework and refactor the man page; add long options

2022-06-25 Thread Sean Anderson
This gives a facelift for the mkimage man page, bringing it in line with the style perscribed by man-pages(7) and groff_man_style(7). I have tried to remove typographical and grammatical errors and inconsistencies wherever possible. The man page now both looks and feels closer to other Linux man

Re: Please pull u-boot-video

2022-06-25 Thread Tom Rini
following changes since commit 625756083e3358744fbe0a60e0eedc009041782d: > > Merge branch '2022-06-23-important-fixes' (2022-06-23 11:27:04 -0400) > > are available in the Git repository at: > > https://source.denx.de/u-boot/custodians/u-boot-video.git > t

spi-nand: how to store environment with badblock handling in qspi nand

2022-06-25 Thread Kegl Rohit
Hello! Is it possible to store the environment inside a mtd partition when using a single qspi nand chip as storage? CONFIG_MTD_SPI_NAND=y The idea is to separate the NAND into two system A/B. 1.Solution: mtdparts_nand0=2m(uboot),16m(system) system will be an ubifs containing env+env_redundant

[PATCH 19/20] Convert CONFIG_SYS_BOOTCOUNT_LE et al to Kconfig

2022-06-25 Thread Tom Rini
This converts the following to Kconfig: CONFIG_SYS_BOOTCOUNT_LE CONFIG_SYS_BOOTCOUNT_BE Signed-off-by: Tom Rini --- configs/am335x_boneblack_vboot_defconfig | 1 + configs/am335x_evm_defconfig | 1 + configs/am335x_evm_spiboot_defconfig | 1 +

[PATCH 18/20] kmcoge5ne: Move BFTIC3 CONFIG references to their usage

2022-06-25 Thread Tom Rini
We only reference CONFIG_SYS_BFTIC3_BASE in one location. Move the comment to where we reference it, and use the value directly. Cc: Holger Brunck Cc: Heiko Schocher Signed-off-by: Tom Rini --- board/keymile/km83xx/km83xx.c | 6 -- include/configs/kmcoge5ne.h | 6 -- 2 files

[PATCH 15/20] Convert CONFIG_SYS_FSL_CPC et al to Kconfig

2022-06-25 Thread Tom Rini
This converts the following to Kconfig: CONFIG_SYS_FSL_CPC CONFIG_SYS_CPC_REINIT_F Signed-off-by: Tom Rini --- README | 4 arch/Kconfig.nxp | 1 + arch/powerpc/cpu/mpc85xx/Kconfig | 9 +

[PATCH 17/20] mx*sabresd: Reference CONFIG_SYS_AUXCORE_BOOTDATA value directly

2022-06-25 Thread Tom Rini
As this is used in the environment, reference it directly rather than as a CONFIG value. Cc: Fabio Estevam Cc: Adrian Alonso Signed-off-by: Tom Rini --- An alternative would be to move to text file environments (which would be good to do regardless) and control this via an environmental

[PATCH 13/20] Convert CONFIG_SYS_BOOK3E_HV to Kconfig

2022-06-25 Thread Tom Rini
This converts the following to Kconfig: CONFIG_SYS_BOOK3E_HV Signed-off-by: Tom Rini --- arch/powerpc/cpu/mpc85xx/Kconfig | 4 configs/P2041RDB_NAND_defconfig | 1 + configs/P2041RDB_SDCARD_defconfig | 1 + configs/P2041RDB_SPIFLASH_defconfig | 1 +

[PATCH 16/20] Convert CONFIG_SYS_BOOT_RAMDISK_HIGH to Kconfig

2022-06-25 Thread Tom Rini
This converts the following to Kconfig: CONFIG_SYS_BOOT_RAMDISK_HIGH Signed-off-by: Tom Rini --- README | 5 - arch/arc/include/asm/config.h| 2 -- arch/arm/include/asm/config.h| 2 -- arch/m68k/include/asm/config.h | 2 --

[PATCH 14/20] Convert CONFIG_SYS_RAMBOOT to Kconfig

2022-06-25 Thread Tom Rini
This converts the following to Kconfig: CONFIG_SYS_RAMBOOT Signed-off-by: Tom Rini --- arch/powerpc/cpu/mpc85xx/Kconfig | 1 + boot/Kconfig | 4 include/configs/MPC837XERDB.h| 6 -- include/configs/P1010RDB.h | 6 -- include/configs/P2041RDB.h

[PATCH 11/20] Convert CONFIG_SYS_83XX_DDR_USES_CS0 to Kconfig

2022-06-25 Thread Tom Rini
This converts the following to Kconfig: CONFIG_SYS_83XX_DDR_USES_CS0 Signed-off-by: Tom Rini --- README | 4 arch/powerpc/cpu/mpc83xx/Kconfig | 6 ++ include/configs/MPC837XERDB.h| 1 - 3 files changed, 6 insertions(+), 5 deletions(-) diff --git

[PATCH 09/20] configs: Resync with savedefconfig

2022-06-25 Thread Tom Rini
Rsync all defconfig files using moveconfig.py Signed-off-by: Tom Rini --- configs/devkit8000_defconfig | 4 +- configs/evb-ast2600_defconfig | 2 +- configs/imx8mn_evk_defconfig | 3 -- scripts/config_whitelist.txt | 81 --- 4 files changed, 2

[PATCH 10/20] thunerx_88xx: Clean up config slightly.

2022-06-25 Thread Tom Rini
We don't use CONFIG_SYS_64BIT anywhere and can use CONFIG_TARGET_THUNDERX_88XX to build the device trees. Signed-off-by: Tom Rini --- arch/arm/dts/Makefile | 2 +- include/configs/thunderx_88xx.h | 4 2 files changed, 1 insertion(+), 5 deletions(-) diff --git

[PATCH 08/20] Convert CONFIG_PALMAS_POWER to Kconfig

2022-06-25 Thread Tom Rini
This converts the following to Kconfig: CONFIG_PALMAS_POWER Signed-off-by: Tom Rini --- configs/am57xx_evm_defconfig| 1 + configs/am57xx_hs_evm_defconfig | 1 + configs/am57xx_hs_evm_usb_defconfig | 1 + configs/dra7xx_evm_defconfig| 1 + configs/dra7xx_hs_evm_defconfig

[PATCH 06/20] Convert CONFIG_SYS_DISCOVER_PHY to Kconfig

2022-06-25 Thread Tom Rini
This converts the following to Kconfig: CONFIG_SYS_DISCOVER_PHY Signed-off-by: Tom Rini --- drivers/net/Kconfig | 5 + drivers/net/fsl_mcdmafec.c | 8 drivers/net/mcffec.c | 8 include/configs/M5208EVBE.h | 9 - include/configs/M5235EVB.h

[PATCH 07/20] Convert CONFIG_SYS_EMIF_PRECALCULATED_TIMING_REGS et al to Kconfig

2022-06-25 Thread Tom Rini
This converts the following to Kconfig: CONFIG_SYS_EMIF_PRECALCULATED_TIMING_REGS CONFIG_SYS_AUTOMATIC_SDRAM_DETECTION CONFIG_SYS_DEFAULT_LPDDR2_TIMINGS Signed-off-by: Tom Rini --- arch/arm/mach-omap2/Kconfig | 21 + include/configs/ti_omap4_common.h | 11

[PATCH 01/20] Convert CONFIG_USB_OHCI_NEW et al to Kconfig

2022-06-25 Thread Tom Rini
This converts the following to Kconfig: CONFIG_SYS_OHCI_SWAP_REG_ACCESS CONFIG_SYS_USB_OHCI_CPU_INIT CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS CONFIG_SYS_USB_OHCI_SLOT_NAME CONFIG_USB_ATMEL CONFIG_USB_ATMEL_CLK_SEL_PLLB CONFIG_USB_ATMEL_CLK_SEL_UPLL CONFIG_USB_OHCI_LPC32XX

[PATCH 05/20] Convert CONFIG_SYS_UNIFY_CACHE to Kconfig

2022-06-25 Thread Tom Rini
This converts the following to Kconfig: CONFIG_SYS_UNIFY_CACHE Signed-off-by: Tom Rini --- configs/M53017EVB_defconfig | 1 + configs/M5329AFEE_defconfig | 1 + configs/M5329BFEE_defconfig | 1 + configs/M5373EVB_defconfig | 1 + drivers/net/Kconfig | 4

[PATCH 04/20] layerscape: Remove some unused CONFIG symbols

2022-06-25 Thread Tom Rini
All of these symbols are not referenced anywhere else in the code, so remove them. Cc: Peng Fan Signed-off-by: Tom Rini --- arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h | 4 arch/arm/include/asm/arch-fsl-layerscape/immap_lsch3.h | 1 - arch/arm/include/asm/arch-ls102xa/config.h

[PATCH 03/20] usb: Remove some unused CONFIG settings

2022-06-25 Thread Tom Rini
On platforms that use CONFIG_USB_OHCI_NEW we do not need to set CONFIG_SYS_USB_OHCI_REGS_BASE nor CONFIG_SYS_USB_OHCI_SLOT_NAME. Drop these from platforms that we can. Signed-off-by: Tom Rini --- include/configs/at91sam9n12ek.h| 5 - include/configs/at91sam9x5ek.h | 7 ---

[PATCH 02/20] usb: ohci-hcd: Remove some unused legacy code

2022-06-25 Thread Tom Rini
At this point, the only user of ohci-hcd that also uses PCI is using DM, so we can drop CONFIG_PCI_OHCI* usage. No platforms set either of CONFIG_SYS_USB_OHCI_BOARD_INIT or CONFIG_SYS_USB_OHCI_CPU_INIT so those hooks can be removed as well. Signed-off-by: Tom Rini ---

Please pull u-boot-video

2022-06-25 Thread Anatolij Gustschin
) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-video.git tags/video-20220625 for you to fetch changes up to 5bc6f8c2a97e5dd3b94e8c3cff3a77c2f5bffd8d: video: stm32: remove test on CONFIG_DM_REGULATOR (2022-06-25 08:18:42 +0200

Re: [PATCH] video: stm32: remove test on CONFIG_DM_REGULATOR

2022-06-25 Thread Anatolij Gustschin
On Mon, 20 Jun 2022 11:55:07 +0200 Patrick Delaunay patrick.delau...@foss.st.com wrote: > The tests on CONFIG_DM_REGULATOR, added to avoid compilation issues, can > now be removed, they are no more needed since the commit 16cc5ad0b439 > ("power: regulator: add dummy helper"). > > Signed-off-by:

Re: [PATCH] driver: video: Check allocated pointers

2022-06-25 Thread Anatolij Gustschin
On Wed, 18 May 2022 13:36:18 +0800 Bin Meng bmeng...@gmail.com wrote: > The codes that call STBTT_malloc() / stbtt__new_active() do not check > the return value at present which may cause segfault. > > Signed-off-by: Bin Meng > --- > > drivers/video/stb_truetype.h | 18 ++ > 1

Re: [PATCH v2] sandbox: sdl: Add stub sandbox_sdl_remove_display()

2022-06-25 Thread Anatolij Gustschin
On Wed, 23 Mar 2022 20:20:37 + Andrew Scull asc...@google.com wrote: > Building the sandbox with NO_SDL=1 resulted in an undefined reference to > 'sandbox_sdl_remove_display'. Resolve this by adding a stub > implementation to match the stubs of the other similar functions. > > Signed-off-by: