]> git.ipfire.org Git - thirdparty/u-boot.git/log
thirdparty/u-boot.git
2 years agoclk: rockchip: rk3399: Improve support for SCLK_PCIEPHY_REF clock
Jonas Karlman [Wed, 1 May 2024 16:22:20 +0000 (16:22 +0000)] 
clk: rockchip: rk3399: Improve support for SCLK_PCIEPHY_REF clock

rk3399-nanopi-4.dtsi try to set parent of and set rate to 100 MHz of the
SCLK_PCIEPHY_REF clock.

The existing enable/disable ops for SCLK_PCIEPHY_REF currently force
use of 24 MHz parent and rate.

Add improved support for setting parent and rate of the pciephy refclk
to driver to better support assign-clock props for pciephy refclk in DT.

This limited implementation only support setting 24 or 100 MHz rate,
and expect npll and clk_pciephy_ref100m divider to use default values.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agoclk: rockchip: rk3399: Add dummy support for ACLK_VDU clock
Jonas Karlman [Wed, 1 May 2024 16:22:19 +0000 (16:22 +0000)] 
clk: rockchip: rk3399: Add dummy support for ACLK_VDU clock

rk3399.dtsi from linux v5.19 and newer try to set VDU clock rate to
400 MHz using an assigned-clock-rates prop of the CRU node.

U-Boot does not use or need this clock so add dummy support for getting
and setting ACLK_VDU clock rate to allow CRU driver to be loaded with an
updated rk3399.dtsi.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agoclk: rockchip: rk3399: Rename SCLK_DDRCLK to SCLK_DDRC
Jonas Karlman [Wed, 1 May 2024 16:22:18 +0000 (16:22 +0000)] 
clk: rockchip: rk3399: Rename SCLK_DDRCLK to SCLK_DDRC

Sync rk3399-cru.h with one from Linux kernel v6.2+ and fix use of the
SCLK_DDRCLK name that was only used by U-Boot.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3399: Configure sdmmc regulator pinctrl in SPL
Jonas Karlman [Tue, 30 Apr 2024 15:30:25 +0000 (15:30 +0000)] 
rockchip: rk3399: Configure sdmmc regulator pinctrl in SPL

A few boards have shown to be required to properly configure pinctrl
for the fixed regulator gpio pin used by sdmmc before being able to read
from SD-cards.

Include the related gpio, regulator and pinctrl nodes and enable related
Kconfig options so that pinctrl can be configured in SPL for boards that
may be affected by such issue.

Also change to imply SPL_DM_SEQ_ALIAS for all boards because it must be
enabled for working gpio usage in SPL after a future DT sync.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3399: Fix loading FIT from SD-card when booting from eMMC
Jonas Karlman [Tue, 30 Apr 2024 15:30:24 +0000 (15:30 +0000)] 
rockchip: rk3399: Fix loading FIT from SD-card when booting from eMMC

When RK3399 boards run SPL from eMMC and fail to load FIT from eMMC due
to it being missing or checksum validation fails there can be a fallback
to read FIT from SD-card. However, without proper pinctrl configuration
reading FIT from SD-card may fail:

  U-Boot SPL 2024.04-rc4 (Mar 17 2024 - 22:54:45 +0000)
  Trying to boot from MMC2
  mmc_load_image_raw_sector: mmc block read error
  Trying to boot from MMC2
  mmc_load_image_raw_sector: mmc block read error
  Trying to boot from MMC1
  Card did not respond to voltage select! : -110
  mmc_init: -95, time 12
  spl: mmc init failed with error: -95
  SPL: failed to boot from all boot devices (err=-6)
  ### ERROR ### Please RESET the board ###

Fix this by tagging related sdhci, sdmmc and spi flash pinctrl nodes
with bootph props. Also move bootph for common nodes shared by all
boards to the SoC u-boot.dtsi.

eMMC, SD-Card and SPI flash nodes are also changed to only be tagged
with bootph props for SPL and U-Boot pre-reloc phases.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3399: Include uart related pinctrl nodes in TPL/SPL
Jonas Karlman [Tue, 30 Apr 2024 15:30:23 +0000 (15:30 +0000)] 
rockchip: rk3399: Include uart related pinctrl nodes in TPL/SPL

The initial serial console UART iomux is typically configured in
board_debug_uart_init() at TPL stage on Rockchip platform.

Later stages typically use pinctrl driver to configure iomux UART once
again based on the control FDT.

Include uart related pinctrl nodes in TPL/SPL control FDT to make it
possible for pinctrl driver to configure UART iomux at TPL/SPL stage.

Following debug log message may also be seen at U-Boot pre-reloc stage:

  ns16550_serial serial@ff1a0000: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19

This can be resolved by including bootph prop for U-Bood pre-reloc
phase (bootph-some-ram or bootph-all). However, this has intentionally
been excluded due to including it unnecessarily slows down boot around
200-400 ms.

Also add the clock-frequency prop similar to what has been done for
other Rockchip SoCs.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3399-puma: Move uart0 bootph to board u-boot.dtsi
Jonas Karlman [Tue, 30 Apr 2024 15:30:22 +0000 (15:30 +0000)] 
rockchip: rk3399-puma: Move uart0 bootph to board u-boot.dtsi

rk3399-puma is the only supported board that use uart0 for serial
console, other RK3399 boards typically use uart2 for serial console
and may use uart0 for bluetooth.

Move setting bootph prop to board u-boot.dtsi to only include the uart0
node in TPL/SPL control FDT for the rk3399-puma target.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3399: Fix bootph prop for vop nodes
Jonas Karlman [Tue, 30 Apr 2024 15:30:21 +0000 (15:30 +0000)] 
rockchip: rk3399: Fix bootph prop for vop nodes

The vop nodes should not be included in TPL/SPL control FDT, it should
only be included at U-Boot proper pre-reloc phase.

Change to use bootph-some-ram prop to fix this.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3399: Sort nodes in u-boot.dtsi files
Jonas Karlman [Tue, 30 Apr 2024 15:30:20 +0000 (15:30 +0000)] 
rockchip: rk3399: Sort nodes in u-boot.dtsi files

Sort nodes alphabetically by name, symbol or reg addr in RK3399 related
u-boot.dtsi files. Also remove one of the duplicated &pmu nodes.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3399: Remove inherited bootph-all props
Jonas Karlman [Tue, 30 Apr 2024 15:30:19 +0000 (15:30 +0000)] 
rockchip: rk3399: Remove inherited bootph-all props

Remove superfluous bootph-all props already inherited from main soc
u-boot.dtsi file.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3399: Add a default spl-boot-order prop
Jonas Karlman [Tue, 30 Apr 2024 15:30:18 +0000 (15:30 +0000)] 
rockchip: rk3399: Add a default spl-boot-order prop

A lot of RK3399 boards use a u-boot,spl-boot-order of "same-as-spl",
&sdhci and &sdmmc.

Move this to rk3399-u-boot.dtsi and make this default for boards
currently missing a u-boot,spl-boot-order prop.

Before commit a7e69952eb6d ("rockchip: spl: Cache boot source id for
later use") it was required to include the SPI flash node in the
u-boot,spl-boot-order prop to successfully load FIT from SPI flash.

The SPI flash node reference has been dropped from spl-boot-order from
pinebook-pro, roc-pc and rockpro64 now that "same-as-spl" also gets
resolved to the SPI flash node and loading FIT from SPI flash works
without having the node explicitly referenced in spl-boot-order prop.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Dragan Simic <dsimic@manjaro.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3399: Remove use of xPL_MISC_DRIVERS options
Jonas Karlman [Tue, 30 Apr 2024 15:30:17 +0000 (15:30 +0000)] 
rockchip: rk3399: Remove use of xPL_MISC_DRIVERS options

The TPL and/or SPL control FDT on RK3399 boards does not contain any
node with a compatible that is supported by driver/misc/ drivers.

Remove use of xPL_MISC_DRIVERS options to stop including e.g an unused
efuse driver in TPL and/or SPL.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3399: Enable DT overlay support on all boards
Jonas Karlman [Tue, 30 Apr 2024 15:30:16 +0000 (15:30 +0000)] 
rockchip: rk3399: Enable DT overlay support on all boards

Imply OF_LIBFDT_OVERLAY Kconfig options to add device tree overlay
support on all RK3399 boards.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Reviewed-by: Dragan Simic <dsimic@manjaro.org>
2 years agorockchip: rk3399: Imply support for GbE PHY
Jonas Karlman [Tue, 30 Apr 2024 15:30:15 +0000 (15:30 +0000)] 
rockchip: rk3399: Imply support for GbE PHY

Imply support for GbE PHY status parsing and configuration when support
for onboard ethernet is enabled.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Reviewed-by: Dragan Simic <dsimic@manjaro.org>
2 years agorockchip: rk3399: Enable random generator on all boards
Jonas Karlman [Tue, 30 Apr 2024 15:30:14 +0000 (15:30 +0000)] 
rockchip: rk3399: Enable random generator on all boards

The RK3399 SoC contain a crypto engine block that can generate random
numbers.

Imply DM_RNG and RNG_ROCKCHIP Kconfig options to take advantage of the
random generator on all RK3399 boards. Also remove the unnecessary use
of a status = "okay" prop.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Reviewed-by: Peter Robinson <pbrobinson@gmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Reviewed-by: Dragan Simic <dsimic@manjaro.org>
2 years agorockchip: rk3399: Enable ARMv8 crypto and FIT checksum validation
Jonas Karlman [Tue, 30 Apr 2024 15:30:13 +0000 (15:30 +0000)] 
rockchip: rk3399: Enable ARMv8 crypto and FIT checksum validation

The RK3399 SoC support the ARMv8 Cryptography Extensions, use of ARMv8
crypto can speed up FIT checksum validation in SPL.

Imply ARMV8_SET_SMPEN and ARMV8_CRYPTO to take advantage of the crypto
extensions for SHA256 when validating checksum of FIT images.

Imply SPL_FIT_SIGNATURE and LEGACY_IMAGE_FORMAT to enable FIT checksum
validation to almost all RK3399 boards.

The following boards have been excluded:
- chromebook_bob: SPL max size limitation of 120 KiB
- chromebook_kevin: SPL max size limitation of 120 KiB

Also imply OF_LIVE to help speed up init of U-Boot proper and disable
CONFIG_SPL_RAW_IMAGE_SUPPORT on leez-rk3399 to ensure SPL does not try
to jump to code that failed checksum validation.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3399: Sort imply statements alphabetically
Jonas Karlman [Tue, 30 Apr 2024 15:30:12 +0000 (15:30 +0000)] 
rockchip: rk3399: Sort imply statements alphabetically

Sort imply statements under ROCKCHIP_RK3399 alphabetically.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Reviewed-by: Dragan Simic <dsimic@manjaro.org>
2 years agorockchip: rk3399-ficus: Enable TPL and use common bss and stack addr
Jonas Karlman [Tue, 30 Apr 2024 15:30:11 +0000 (15:30 +0000)] 
rockchip: rk3399-ficus: Enable TPL and use common bss and stack addr

The rk3399-ficus board is only using SPL and not TPL+SPL like all other
RK3399 boards, chromebook bob/kevin excluded. It does not seem to be any
technical reason why this board was left using only SPL.

Switch to use TPL+SPL and to use the common bss and stack addresses
introduced in commit 008ba0d56d00 ("rockchip: Add common default bss and
stack addresses"). Also add the missing DEFAULT_FDT_FILE option.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Peter Robinson <pbrobinson@gmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3399-puma: Use common bss and stack addresses
Jonas Karlman [Tue, 30 Apr 2024 15:30:10 +0000 (15:30 +0000)] 
rockchip: rk3399-puma: Use common bss and stack addresses

The rk3399-puma board is currently using SPL stack and bss addr in SRAM,
the same addr typically used by TPL, this differs from most other RK3399
boards.

Switch to use the common bss and stack addresses introduced in commit
008ba0d56d00 ("rockchip: Add common default bss and stack addresses").

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3399-puma: Update SPL_PAD_TO Kconfig option
Jonas Karlman [Tue, 30 Apr 2024 15:30:09 +0000 (15:30 +0000)] 
rockchip: rk3399-puma: Update SPL_PAD_TO Kconfig option

On rk3399-puma the FIT payload is located at sector 0x200 compared
to the more Rockchip common sector 0x4000 offset:

  SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x200

Because FIT payload is located at sector 0x200 and IDBlock is located at
sector 64, the combined size of TPL+SPL (idbloader.img) cannot take up
more than 224 KiB:

  (0x200 - 64) x 512 = 0x38000 (224 KiB)

Adjust SPL_PAD_TO to match the used 0x200 sector offset.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3399-gru: Fix max SPL size on bob and kevin
Jonas Karlman [Tue, 30 Apr 2024 15:30:08 +0000 (15:30 +0000)] 
rockchip: rk3399-gru: Fix max SPL size on bob and kevin

Chromebook bob and kevin typically run coreboot as the initial boot
loader, however, U-Boot proper can be used as a secondary boot loader.
It is also possible to run U-Boot SPL and proper bare metal, with SPL
and the U-Boot payload loaded from SPI flash.

Because of this chromebook bob and kevin only use SPL and not TPL+SPL
like other RK3399 boards, this mean that SPL is loaded to and run from
SRAM instead of DRAM.

The U-Boot payload is located at 0x40000 (256 KiB) offset in SPI flash
and because the BROM only read first 2 KiB for each 4 KiB page, the size
of SPL (idbloader.img) is limited to max 128 KiB.

The chosen bss start address further limits the size of SPL to 120 KiB.

  0xff8e0000 (SPL_BSS_START_ADDR) - 0xff8c2000 (SPL_TEXT_BASE) = 0x1e000

Update SPL_MAX_SIZE to reflect the 120 KiB max size limitation.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agoboard: esd: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:46 +0000 (20:41 -0600)] 
board: esd: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: engicam: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:45 +0000 (20:41 -0600)] 
board: engicam: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: emulation: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:44 +0000 (20:41 -0600)] 
board: emulation: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: embest: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:43 +0000 (20:41 -0600)] 
board: embest: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: elgin: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:42 +0000 (20:41 -0600)] 
board: elgin: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: egnite: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:41 +0000 (20:41 -0600)] 
board: egnite: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: efi: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:40 +0000 (20:41 -0600)] 
board: efi: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: eets: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:39 +0000 (20:41 -0600)] 
board: eets: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: ea: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:38 +0000 (20:41 -0600)] 
board: ea: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: dhelectronics: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:37 +0000 (20:41 -0600)] 
board: dhelectronics: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: dfi: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:36 +0000 (20:41 -0600)] 
board: dfi: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: davinci: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:35 +0000 (20:41 -0600)] 
board: davinci: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Acked-by: Adam Ford <aford173@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: data_modul: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:34 +0000 (20:41 -0600)] 
board: data_modul: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: d-link: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:33 +0000 (20:41 -0600)] 
board: d-link: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: cortina: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:32 +0000 (20:41 -0600)] 
board: cortina: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: coreboot: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:31 +0000 (20:41 -0600)] 
board: coreboot: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: congatec: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:30 +0000 (20:41 -0600)] 
board: congatec: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Acked-by: Oliver Graute <oliver.graute@kococonnector.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: conclusive: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:29 +0000 (20:41 -0600)] 
board: conclusive: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: compulab: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:28 +0000 (20:41 -0600)] 
board: compulab: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: cobra5272: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:27 +0000 (20:41 -0600)] 
board: cobra5272: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: cloudengines: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:26 +0000 (20:41 -0600)] 
board: cloudengines: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Reviewed-by: Tony Dinh <mibodhi@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: cloos: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:25 +0000 (20:41 -0600)] 
board: cloos: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: chipspark: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:24 +0000 (20:41 -0600)] 
board: chipspark: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: cei: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:23 +0000 (20:41 -0600)] 
board: cei: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: cavium: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:22 +0000 (20:41 -0600)] 
board: cavium: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: calao: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:21 +0000 (20:41 -0600)] 
board: calao: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: cadence: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:20 +0000 (20:41 -0600)] 
board: cadence: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: buffalo: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:19 +0000 (20:41 -0600)] 
board: buffalo: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Acked-by: Michael Walle <michael@walle.cc>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: bticino: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:18 +0000 (20:41 -0600)] 
board: bticino: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: bsh: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:17 +0000 (20:41 -0600)] 
board: bsh: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: broadcom: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:16 +0000 (20:41 -0600)] 
board: broadcom: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Reviewed-by: William Zhang <william.zhang@broadcom.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: boundary: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:15 +0000 (20:41 -0600)] 
board: boundary: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: bosch: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:14 +0000 (20:41 -0600)] 
board: bosch: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Reviewed-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: bluewater: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:13 +0000 (20:41 -0600)] 
board: bluewater: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: beckhoff: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:12 +0000 (20:41 -0600)] 
board: beckhoff: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Tested-by: Patrick Bruenn <p.bruenn@beckhoff.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: beagle: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:11 +0000 (20:41 -0600)] 
board: beagle: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: beacon: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:10 +0000 (20:41 -0600)] 
board: beacon: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Acked-by: Adam Ford <aford173@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: avionic-design: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:09 +0000 (20:41 -0600)] 
board: avionic-design: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: atmel: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:08 +0000 (20:41 -0600)] 
board: atmel: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: astro: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:07 +0000 (20:41 -0600)] 
board: astro: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: armltd: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:06 +0000 (20:41 -0600)] 
board: armltd: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: armadeus: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:05 +0000 (20:41 -0600)] 
board: armadeus: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: aristainetos: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:04 +0000 (20:41 -0600)] 
board: aristainetos: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Reviewed-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: amlogic: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:03 +0000 (20:41 -0600)] 
board: amlogic: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: amarula: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:02 +0000 (20:41 -0600)] 
board: amarula: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: alliedtelesis: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:01 +0000 (20:41 -0600)] 
board: alliedtelesis: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: advantech: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:00 +0000 (20:41 -0600)] 
board: advantech: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Acked-by: Oliver Graute <oliver.graute@kococonnector.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: Synology: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:40:59 +0000 (20:40 -0600)] 
board: Synology: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: Seagate: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:40:58 +0000 (20:40 -0600)] 
board: Seagate: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Reviewed-by: Tony Dinh <mibodhi@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: Marvell: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:40:57 +0000 (20:40 -0600)] 
board: Marvell: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Reviewed-by: Tony Dinh <mibodhi@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: LaCie: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:40:56 +0000 (20:40 -0600)] 
board: LaCie: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: CZ.NIC: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:40:55 +0000 (20:40 -0600)] 
board: CZ.NIC: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: BuS: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:40:54 +0000 (20:40 -0600)] 
board: BuS: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: BuR: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:40:53 +0000 (20:40 -0600)] 
board: BuR: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoextension_board.h: Add missing <linux/list.h>
Tom Rini [Wed, 1 May 2024 02:40:52 +0000 (20:40 -0600)] 
extension_board.h: Add missing <linux/list.h>

This file has "struct list" in one of the structures, so add
<linux/list.h>.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agosplash.h: Add missing <linux/types.h>
Tom Rini [Wed, 1 May 2024 02:40:51 +0000 (20:40 -0600)] 
splash.h: Add missing <linux/types.h>

This file has many "Linux" style types in it, add <linux/types.h>

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoeeprom.h: Add missing <linux/types.h>
Tom Rini [Wed, 1 May 2024 02:40:50 +0000 (20:40 -0600)] 
eeprom.h: Add missing <linux/types.h>

This file has many "Linux" style types in it, add <linux/types.h>

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoglobal: Audit usage of <eeprom.h>
Tom Rini [Wed, 1 May 2024 02:40:49 +0000 (20:40 -0600)] 
global: Audit usage of <eeprom.h>

The file include/eeprom.h is used only in some legacy non-DM I2C EEPROM
access cases. Remove most inclusions of this file as they are not
needed.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoglobal: Make <asm/global_data.h> include <asm/u-boot.h>
Tom Rini [Wed, 1 May 2024 02:40:48 +0000 (20:40 -0600)] 
global: Make <asm/global_data.h> include <asm/u-boot.h>

This follows the example of RISC-V where <asm/global_data.h> includes
<asm/u-boot.h> directly as "gd" includes a reference to bd_info already
and so the first must include the second anyhow. We then remove
<asm/u-boot.h> from all of the places which include references to "gd"
an so have <asm/global_data.h> already.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoarm: Remove <common.h> and add needed includes
Tom Rini [Tue, 30 Apr 2024 13:35:59 +0000 (07:35 -0600)] 
arm: Remove <common.h> and add needed includes

Remove <common.h> from the remainder of the files under arch/arm and
when needed add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoarm: fsl-layerscape: Remove <common.h> and add needed includes
Tom Rini [Tue, 30 Apr 2024 13:35:58 +0000 (07:35 -0600)] 
arm: fsl-layerscape: Remove <common.h> and add needed includes

Remove <common.h> from all fsl-layerscape related files and when needed
add missing include files directly.

Acked-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoarm: apple: Remove <common.h> and add needed includes
Tom Rini [Tue, 30 Apr 2024 13:35:57 +0000 (07:35 -0600)] 
arm: apple: Remove <common.h> and add needed includes

Remove <common.h> from all mach-apple files and when needed add missing
include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoarm: aspeed: Remove <common.h> and add needed includes
Tom Rini [Tue, 30 Apr 2024 13:35:56 +0000 (07:35 -0600)] 
arm: aspeed: Remove <common.h> and add needed includes

Remove <common.h> from all mach-aspeed files and when needed add missing
include files directly.

Reviewed-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoarm: at91: Remove <common.h> and add needed includes
Tom Rini [Tue, 30 Apr 2024 13:35:55 +0000 (07:35 -0600)] 
arm: at91: Remove <common.h> and add needed includes

Remove <common.h> from all mach-at91 files and when needed add missing
include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoarm: bcm: Remove <common.h> and add needed includes
Tom Rini [Tue, 30 Apr 2024 13:35:54 +0000 (07:35 -0600)] 
arm: bcm: Remove <common.h> and add needed includes

Remove <common.h> from all mach-bcmbca, mach-bcm283x and bcm* CPU
directory files and when needed add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoarm: davinci: Remove <common.h> and add needed includes
Tom Rini [Tue, 30 Apr 2024 13:35:53 +0000 (07:35 -0600)] 
arm: davinci: Remove <common.h> and add needed includes

Remove <common.h> from all mach-davinci files and when needed add
missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoarm: exynos: Remove <common.h> and add needed includes
Tom Rini [Tue, 30 Apr 2024 13:35:52 +0000 (07:35 -0600)] 
arm: exynos: Remove <common.h> and add needed includes

Remove <common.h> from all mach-exynos files and when needed add missing
include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoarm: highbank: Remove <common.h> and add needed includes
Tom Rini [Tue, 30 Apr 2024 13:35:51 +0000 (07:35 -0600)] 
arm: highbank: Remove <common.h> and add needed includes

Remove <common.h> from all mach-highbank files and when needed add
missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoarm: histb: Remove <common.h> and add needed includes
Tom Rini [Tue, 30 Apr 2024 13:35:50 +0000 (07:35 -0600)] 
arm: histb: Remove <common.h> and add needed includes

Remove <common.h> from all mach-histb files and when needed add missing
include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoarm: imx: Remove <common.h> and add needed includes
Tom Rini [Tue, 30 Apr 2024 13:35:49 +0000 (07:35 -0600)] 
arm: imx: Remove <common.h> and add needed includes

Remove <common.h> from all mach-imx, CPU specific sub-directories and
include/asm/arch-mx* files and when needed add missing include files
directly.

Acked-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoarm: kirkwood: Remove <common.h> and add needed includes
Tom Rini [Tue, 30 Apr 2024 13:35:48 +0000 (07:35 -0600)] 
arm: kirkwood: Remove <common.h> and add needed includes

Remove <common.h> from all mach-kirkwood files and when needed add
missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoarm: lpc32xx: Remove <common.h> and add needed includes
Tom Rini [Tue, 30 Apr 2024 13:35:47 +0000 (07:35 -0600)] 
arm: lpc32xx: Remove <common.h> and add needed includes

Remove <common.h> from all mach-lpc32xx files and when needed add
missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoarm: mediatek: Remove <common.h> and add needed includes
Tom Rini [Tue, 30 Apr 2024 13:35:46 +0000 (07:35 -0600)] 
arm: mediatek: Remove <common.h> and add needed includes

Remove <common.h> from all mach-mediatek files and when needed add
missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoarm: meson: Remove <common.h> and add needed includes
Tom Rini [Tue, 30 Apr 2024 13:35:45 +0000 (07:35 -0600)] 
arm: meson: Remove <common.h> and add needed includes

Remove <common.h> from all mach-meson files and when needed add missing
include files directly.

Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoarm: mvebu: Remove <common.h> and add needed includes
Tom Rini [Tue, 30 Apr 2024 13:35:44 +0000 (07:35 -0600)] 
arm: mvebu: Remove <common.h> and add needed includes

Remove <common.h> from all mach-mvebu files and when needed add missing
include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoarm: nexell: Remove <common.h> and add needed includes
Tom Rini [Tue, 30 Apr 2024 13:35:43 +0000 (07:35 -0600)] 
arm: nexell: Remove <common.h> and add needed includes

Remove <common.h> from all mach-nexell files and when needed add missing
include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoarm: npcm: Remove <common.h> and add needed includes
Tom Rini [Tue, 30 Apr 2024 13:35:42 +0000 (07:35 -0600)] 
arm: npcm: Remove <common.h> and add needed includes

Remove <common.h> from all mach-npcm files and when needed add missing
include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoarm: octeontx: Remove <common.h> and add needed includes
Tom Rini [Tue, 30 Apr 2024 13:35:41 +0000 (07:35 -0600)] 
arm: octeontx: Remove <common.h> and add needed includes

Remove <common.h> from all mach-octeontx files and when needed add
missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoarm: octeontx2: Remove <common.h> and add needed includes
Tom Rini [Tue, 30 Apr 2024 13:35:40 +0000 (07:35 -0600)] 
arm: octeontx2: Remove <common.h> and add needed includes

Remove <common.h> from all mach-octeontx2 files and when needed add
missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>