S: Supported
F: arch/arm/dts/am335x-sancloud*
-ARM SC5XX
-M: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
-M: Greg Malysa <greg.malysa@timesys.com>
-M: Ian Roberts <ian.roberts@timesys.com>
-M: Vasileios Bimpikas <vasileios.bimpikas@analog.com>
-M: Utsav Agarwal <utsav.agarwal@analog.com>
-M: Arturs Artamonovs <arturs.artamonovs@analog.com>
-S: Supported
-T: git https://github.com/analogdevicesinc/lnxdsp-u-boot
-F: arch/arm/include/asm/arch-adi/
-F: arch/arm/mach-sc5xx/
-F: drivers/clk/adi/
-F: drivers/serial/serial_adi_uart4.c
-F: drivers/timer/adi_sc5xx_timer.c
-F: include/env/adi/
-
ARM SNAPDRAGON
M: Caleb Connolly <caleb.connolly@linaro.org>
M: Neil Armstrong <neil.armstrong@linaro.org>
#include <config.h>
#include <command.h>
+#include <common.h>
#include <env.h>
#include <malloc.h>
-#include <time.h>
#include <env_internal.h>
-#include <vsprintf.h>
#include <linux/delay.h>
-#include <linux/errno.h>
#include <linux/types.h>
#include <api_public.h>
#include <u-boot/crc.h>
* Copyright (c) 2011 The Chromium OS Authors.
*/
+#include <common.h>
#include <api_public.h>
#include <log.h>
-#include <linux/types.h>
/* TODO(clchiou): add support of video device */
*/
#include <config.h>
+#include <common.h>
#include <net.h>
#include <linux/types.h>
#include <api_public.h>
#include <linux/types.h>
#include <api_public.h>
+#include <asm/u-boot.h>
#include <asm/global_data.h>
#include "api_private.h"
#include <linux/types.h>
#include <api_public.h>
+#include <asm/u-boot.h>
#include <asm/global_data.h>
#include "api_private.h"
#include <linux/types.h>
#include <api_public.h>
+#include <asm/u-boot.h>
#include <asm/global_data.h>
#include "api_private.h"
*/
#include <config.h>
+#include <common.h>
#include <api_public.h>
#include <part.h>
#include <scsi.h>
-#include <linux/types.h>
#if defined(CONFIG_CMD_USB) && defined(CONFIG_USB_STORAGE)
#include <usb.h>
#ifndef __ASM_ARC_GLOBAL_DATA_H
#define __ASM_ARC_GLOBAL_DATA_H
-#include <asm/u-boot.h>
-
#ifndef __ASSEMBLY__
/* Architecture-specific global data */
struct arch_global_data {
development platform that supports the QorIQ LS1046A
Layerscape Architecture processor.
-config ARCH_SC5XX
- bool "Analog Devices SC5XX-processor family"
-
config TARGET_SL28
bool "Support sl28"
select ARCH_LS1028A
source "arch/arm/mach-s5pc1xx/Kconfig"
-source "arch/arm/mach-sc5xx/Kconfig"
-
source "arch/arm/mach-snapdragon/Kconfig"
source "arch/arm/mach-socfpga/Kconfig"
machine-$(CONFIG_ARCH_RENESAS) += renesas
machine-$(CONFIG_ARCH_ROCKCHIP) += rockchip
machine-$(CONFIG_ARCH_S5PC1XX) += s5pc1xx
-machine-$(CONFIG_ARCH_SC5XX) += sc5xx
machine-$(CONFIG_ARCH_SNAPDRAGON) += snapdragon
machine-$(CONFIG_ARCH_SOCFPGA) += socfpga
machine-$(CONFIG_ARCH_STM32) += stm32
* CPU specific code
*/
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <irq_func.h>
* (c) 2007 Pengutronix, Sascha Hauer <s.hauer@pengutronix.de>
*/
+#include <common.h>
#include <asm/arch/imx-regs.h>
#include <asm/arch/clock.h>
* Sascha Hauer, Pengutronix
*/
+#include <common.h>
#include <div64.h>
#include <init.h>
#include <asm/arch/imx-regs.h>
* Sascha Hauer, Pengutronix
*/
+#include <common.h>
#include <init.h>
#include <asm/arch/imx-regs.h>
#include <asm/io.h>
* Alex Zuepke <azu@sysgo.de>
*/
-#include <linux/types.h>
+#include <common.h>
#if defined(CONFIG_ARCH_TEGRA)
static ulong timestamp;
* CPU specific code
*/
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <irq_func.h>
*/
#include <asm-offsets.h>
+#include <common.h>
#include <config.h>
/*
#include <cpu_func.h>
#include <asm/cache.h>
#include <linux/types.h>
+#include <common.h>
#if !CONFIG_IS_ENABLED(SYS_DCACHE_OFF)
void invalidate_dcache_all(void)
* CPU specific code
*/
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <irq_func.h>
* Copyright (C) 2010 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <log.h>
#include <linux/errno.h>
#include <asm/io.h>
* <armlinux@phytec.de>
*/
+#include <common.h>
#include <linux/errno.h>
#include <asm/io.h>
#include <asm/arch/clock.h>
* Copyright (C) 2010 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <hang.h>
* on behalf of DENX Software Engineering GmbH
*/
+#include <common.h>
#include <config.h>
#include <init.h>
#include <log.h>
* on behalf of DENX Software Engineering GmbH
*/
+#include <common.h>
#include <config.h>
#include <log.h>
#include <asm/io.h>
* on behalf of DENX Software Engineering GmbH
*/
+#include <common.h>
#include <config.h>
#include <init.h>
#include <log.h>
* on behalf of DENX Software Engineering GmbH
*/
+#include <common.h>
#include <config.h>
#include <hang.h>
#include <log.h>
#include <asm-offsets.h>
#include <config.h>
+#include <common.h>
#include <system-constants.h>
/*
* (C) Copyright 2009-2010 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <init.h>
#include <time.h>
#include <asm/global_data.h>
#include <asm-offsets.h>
#include <config.h>
+#include <common.h>
#include <linux/linkage.h>
/*
* CPU specific code
*/
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <irq_func.h>
* Texas Instruments Incorporated, <www.ti.com>
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <time.h>
#include <asm/global_data.h>
*
*/
+#include <common.h>
#include <asm/io.h>
#include <linux/errno.h>
#include <asm/arch/sysmap.h>
* Copyright 2013 Broadcom Corporation.
*/
+#include <common.h>
#include <asm/io.h>
#include <linux/errno.h>
#include <asm/arch/sysmap.h>
*
*/
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <linux/delay.h>
* Copyright 2014 Broadcom Corporation.
*/
+#include <common.h>
#include <asm/io.h>
#include <linux/delay.h>
#include <linux/errno.h>
* Copyright 2013 Broadcom Corporation.
*/
+#include <common.h>
#include <asm/io.h>
#include <linux/errno.h>
#include <asm/arch/sysmap.h>
* Copyright 2014 Broadcom Corporation.
*/
+#include <common.h>
#include <linux/errno.h>
#include <asm/arch/sysmap.h>
#include "clk-core.h"
*
*/
+#include <common.h>
#include <asm/io.h>
#include <linux/errno.h>
#include <asm/arch/sysmap.h>
* Copyright 2013 Broadcom Corporation.
*/
+#include <common.h>
#include <asm/io.h>
#include <linux/errno.h>
#include <asm/arch/sysmap.h>
*
*/
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <linux/delay.h>
* Copyright 2014 Broadcom Corporation.
*/
+#include <common.h>
#include <asm/io.h>
#include <linux/delay.h>
#include <linux/errno.h>
* Copyright 2013 Broadcom Corporation.
*/
+#include <common.h>
#include <asm/io.h>
#include <linux/errno.h>
#include <asm/arch/sysmap.h>
* Copyright 2014 Broadcom Corporation.
*/
+#include <common.h>
#include <linux/errno.h>
#include <asm/arch/sysmap.h>
#include "clk-core.h"
* Copyright 2013 Broadcom Corporation.
*/
+#include <common.h>
#include <cpu_func.h>
#include <asm/io.h>
#include <asm/arch/sysmap.h>
* Copyright 2014 Broadcom Corporation.
*/
+#include <common.h>
#include <cpu_func.h>
#include <asm/io.h>
* Copyright 2014 Broadcom Corporation.
*/
+#include <common.h>
#include <cpu_func.h>
#include <asm/io.h>
#include <cpu_func.h>
#include <asm/cache.h>
#include <linux/types.h>
+#include <common.h>
#include <asm/armv7.h>
#include <asm/utils.h>
* CP15 specific code
*/
+#include <common.h>
#include <command.h>
#include <asm/system.h>
#include <asm/cache.h>
* CPU specific code
*/
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <irq_func.h>
* secure mode before booting an operating system.
*/
+#include <common.h>
#include <bootm.h>
#include <cpu_func.h>
#include <log.h>
* Copyright 2014 Broadcom Corporation.
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/iproc-common/armpll.h>
#include <asm/iproc-common/sysmap.h>
* Copyright 2014 Broadcom Corporation.
*/
+#include <common.h>
#include <cpu_func.h>
#include <asm/cache.h>
* Copyright 2014 Broadcom Corporation.
*/
+#include <common.h>
#include <div64.h>
#include <init.h>
#include <time.h>
* Copyright 2014 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <asm/global_data.h>
#include <asm/io.h>
* Copyright 2021 NXP
*/
+#include <common.h>
#include <cpu_func.h>
#include <init.h>
#include <net.h>
* Copyright 2014 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <net.h>
#include <asm/global_data.h>
* Copyright 2014 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <asm/io.h>
#include "fsl_epu.h"
* Copyright 2014 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <asm/arch/fsl_serdes.h>
#include <asm/arch/immap_ls102xa.h>
#include <linux/errno.h>
* Copyright 2014 Freescale Semiconductor, Inc.
*/
-#include <linux/kernel.h>
+#include <common.h>
#include <asm/arch/fsl_serdes.h>
#include <asm/arch/immap_ls102xa.h>
* Copyright 2015 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <log.h>
#include <asm/arch/clock.h>
#include <asm/io.h>
* Copyright 2014 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <spl.h>
u32 spl_boot_device(void)
* Copyright 2014 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <init.h>
#include <time.h>
#include <asm/global_data.h>
* Lokesh Vutla <lokeshvutla@ti.com>
*/
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <asm/armv7.h>
* Copyright (C) 2009 Samsung Electronics
* Minkyu Kang <mk7.kang@samsung.com>
*/
+#include <common.h>
#include <display_options.h>
#include <fdtdec.h>
#include <init.h>
* Donghwa Lee <dh09.lee@samsung.com>
*/
-#include <config.h>
+#include <common.h>
#include <errno.h>
#include <asm/io.h>
#include <asm/arch/pwm.h>
* Naveen Krishna Ch <ch.naveen@samsung.com>
*/
-#include <config.h>
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/sromc.h>
* Minkyu Kang <mk7.kang@samsung.com>
*/
+#include <common.h>
#include <div64.h>
#include <init.h>
#include <time.h>
* Hyunseok, Jung <hsjung@nexell.co.kr>
*/
+#include <common.h>
#include <command.h>
#include <asm/system.h>
#include <asm/cache.h>
* which was based on code by Carl van Schaik <carl@ok-labs.com>.
*/
#include <config.h>
+#include <common.h>
#include <asm/cache.h>
#include <asm/arch/cpu.h>
* SRAM init for older sunxi SoCs.
*/
+#include <common.h>
#include <init.h>
#include <asm/io.h>
#include <asm/arch/cpu.h>
* Syed Mohammed Khasim <khasim@ti.com>
*/
+#include <common.h>
#include <asm/io.h>
/************************************************************
* Copyright 2013 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <clock_legacy.h>
#include <command.h>
#include <cpu_func.h>
* Copyright 2013 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <init.h>
#include <time.h>
#include <asm/global_data.h>
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <common.h>
#include <errno.h>
#include <log.h>
#include <stdio_dev.h>
* needed to enable ARMv7 virtualization for current hypervisors
*/
+#include <common.h>
#include <cpu_func.h>
#include <asm/armv7.h>
#include <asm/cache.h>
* Author(s): Vikas Manocha, <vikas.manocha@st.com> for STMicroelectronics.
*/
+#include <common.h>
#include <cpu_func.h>
#include <errno.h>
#include <log.h>
* Kamil Lulko, <kamil.lulko@gmail.com>
*/
+#include <common.h>
#include <cpu_func.h>
#include <irq_func.h>
#include <asm/io.h>
* using CFG_SYS_HZ_CLOCK.
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <time.h>
#include <asm/global_data.h>
* Alexander Graf <agraf@suse.de>
*/
+#include <common.h>
#include <cpu_func.h>
#include <hang.h>
#include <log.h>
* Copyright 2016 NXP Semiconductor, Inc.
*/
+#include <common.h>
#include <asm/cache.h>
#include <asm/psci.h>
#include <asm/system.h>
* Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
*/
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <irq_func.h>
* level before booting an operating system.
*/
+#include <common.h>
#include <bootm.h>
#include <cpu_func.h>
#include <log.h>
* Copyright 2014-2015 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <cpu_func.h>
#include <env.h>
* Copyright 2020-2021 NXP
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <efi_loader.h>
#include <log.h>
* Copyright 2015 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <linux/delay.h>
#include <linux/errno.h>
-#include <linux/string.h>
#include <asm/arch/fsl_serdes.h>
#include <asm/arch/soc.h>
* Copyright 2019 NXP.
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <cpu_func.h>
#include <asm/global_data.h>
* Copyright 2014-2015 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <env.h>
#include <log.h>
#include <asm/io.h>
* Derived from arch/power/cpu/mpc85xx/speed.c
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <cpu_func.h>
#include <asm/global_data.h>
* Copyright 2018 NXP
*/
-#include <config.h>
+#include <common.h>
#include <linux/libfdt.h>
#include <fdt_support.h>
* Copyright 2016 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <asm/arch/fsl_serdes.h>
#include <asm/arch/immap_lsch2.h>
* Copyright 2019 NXP
*/
+#include <common.h>
#include <fdt_support.h>
#include <log.h>
-#include <asm/arch/stream_id_lsch3.h>
#include <asm/arch-fsl-layerscape/immap_lsch3.h>
#include <asm/arch-fsl-layerscape/fsl_icid.h>
#include <asm/arch-fsl-layerscape/fsl_portals.h>
* Copyright 2019 NXP
*/
-#include <config.h>
-#include <linux/kernel.h>
+#include <common.h>
#include <asm/arch/fsl_serdes.h>
struct serdes_config {
* Copyright 2018 NXP
*/
-#include <config.h>
+#include <common.h>
#include <asm/arch-fsl-layerscape/immap_lsch2.h>
#include <asm/arch-fsl-layerscape/fsl_icid.h>
#include <asm/arch-fsl-layerscape/fsl_portals.h>
#include <fsl_sec.h>
-#include <asm/arch/stream_id_lsch3.h>
#ifdef CONFIG_SYS_DPAA_QBMAN
struct qportal_info qp_info[CFG_SYS_QMAN_NUM_PORTALS] = {
* Copyright 2015 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <asm/arch/fsl_serdes.h>
#include <asm/arch/immap_lsch2.h>
* Copyright 2018 NXP
*/
-#include <config.h>
+#include <common.h>
#include <asm/arch-fsl-layerscape/immap_lsch2.h>
#include <asm/arch-fsl-layerscape/fsl_icid.h>
#include <asm/arch-fsl-layerscape/fsl_portals.h>
-#include <asm/arch/stream_id_lsch3.h>
#ifdef CONFIG_SYS_DPAA_QBMAN
struct qportal_info qp_info[CFG_SYS_QMAN_NUM_PORTALS] = {
* Copyright 2019 NXP
*/
-#include <config.h>
+#include <common.h>
#include <asm/arch/fsl_serdes.h>
#include <asm/arch/immap_lsch2.h>
* Copyright 2019 NXP
*/
-#include <config.h>
+#include <common.h>
#include <asm/arch-fsl-layerscape/immap_lsch3.h>
#include <asm/arch-fsl-layerscape/fsl_icid.h>
#include <asm/arch-fsl-layerscape/fsl_portals.h>
-#include <asm/arch/stream_id_lsch3.h>
struct icid_id_table icid_tbl[] = {
SET_SDHC_ICID(1, FSL_SDMMC_STREAM_ID),
* Copyright 2017-2019 NXP
*/
-#include <config.h>
+#include <common.h>
#include <asm/arch/fsl_serdes.h>
#include <asm/arch/soc.h>
#include <asm/io.h>
* Copyright 2014-2015 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <asm/arch/fsl_serdes.h>
struct serdes_config {
* Copyright 2019 NXP
*/
-#include <config.h>
+#include <common.h>
#include <asm/arch-fsl-layerscape/immap_lsch3.h>
#include <asm/arch-fsl-layerscape/fsl_icid.h>
#include <asm/arch-fsl-layerscape/fsl_portals.h>
-#include <asm/arch/stream_id_lsch3.h>
struct icid_id_table icid_tbl[] = {
SET_SDHC_ICID(1, FSL_SDMMC_STREAM_ID),
* Copyright 2019 NXP
*/
-#include <config.h>
+#include <common.h>
#include <asm/arch-fsl-layerscape/immap_lsch3.h>
#include <asm/arch-fsl-layerscape/fsl_icid.h>
#include <asm/arch-fsl-layerscape/fsl_portals.h>
-#include <asm/arch/stream_id_lsch3.h>
struct icid_id_table icid_tbl[] = {
SET_SDHC_ICID(1, FSL_SDMMC_STREAM_ID),
* Copyright 2018, 2020 NXP
*/
-#include <config.h>
+#include <common.h>
#include <asm/arch/fsl_serdes.h>
struct serdes_config {
* Copyright 2014-2015 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <cpu_func.h>
#include <image.h>
* Copyright 2019-2021 NXP
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <cpu_func.h>
#include <env.h>
* Copyright 2014-2015 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <cpu_func.h>
#include <debug_uart.h>
* David Feng <fenghua@phytium.com.cn>
*/
+#include <common.h>
#include <bootstage.h>
#include <command.h>
#include <time.h>
* Peter Griffin <peter.griffin@linaro.org>
*/
+#include <common.h>
#include <fdtdec.h>
#include <log.h>
#include <asm/gpio.h>
* Copyright 2016 NXP Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <errno.h>
#include <fdt_support.h>
* Copyright (C) 2022 Linaro Ltd <loic.poulain@linaro.org>
*/
+#include <common.h>
#include <u-boot/sha1.h>
extern void sha1_armv8_ce_process(uint32_t state[5], uint8_t const *src,
* Copyright (C) 2022 Linaro Ltd <loic.poulain@linaro.org>
*/
+#include <common.h>
#include <u-boot/sha256.h>
extern void sha256_armv8_ce_process(uint32_t state[8], uint8_t const *src,
* Author: Masahiro Yamada <yamada.masahiro@socionext.com>
*/
+#include <common.h>
#include <linux/libfdt.h>
#include <asm/spin_table.h>
* Copyright 2020 NXP
*/
+#include <common.h>
#include <spl.h>
char __data_save_start[0] __section(".__data_save_start");
-// SPDX-License-Identifier: GPL-2.0-only OR MIT
+// SPDX-License-Identifier: GPL-2.0
/*
* Device Tree Source for AM625 SoC Family Main Domain peripherals
*
- * Copyright (C) 2020-2024 Texas Instruments Incorporated - https://www.ti.com/
+ * Copyright (C) 2020-2022 Texas Instruments Incorporated - https://www.ti.com/
*/
&cbass_main {
};
};
- main_conf: bus@100000 {
- compatible = "simple-bus";
+ main_conf: syscon@100000 {
+ compatible = "syscon", "simple-mfd";
+ reg = <0x00 0x00100000 0x00 0x20000>;
#address-cells = <1>;
#size-cells = <1>;
ranges = <0x0 0x00 0x00100000 0x20000>;
<0x00 0x4c000000 0x00 0x20000>,
<0x00 0x4a820000 0x00 0x20000>,
<0x00 0x4aa40000 0x00 0x20000>,
- <0x00 0x4bc00000 0x00 0x100000>,
- <0x00 0x48600000 0x00 0x8000>,
- <0x00 0x484a4000 0x00 0x2000>,
- <0x00 0x484c2000 0x00 0x2000>,
- <0x00 0x48420000 0x00 0x2000>;
- reg-names = "gcfg", "bchanrt", "rchanrt", "tchanrt", "ringrt",
- "ring", "tchan", "rchan", "bchan";
+ <0x00 0x4bc00000 0x00 0x100000>;
+ reg-names = "gcfg", "bchanrt", "rchanrt", "tchanrt", "ringrt";
msi-parent = <&inta_main_dmss>;
#dma-cells = <3>;
reg = <0x00 0x485c0000 0x00 0x100>,
<0x00 0x4a800000 0x00 0x20000>,
<0x00 0x4aa00000 0x00 0x40000>,
- <0x00 0x4b800000 0x00 0x400000>,
- <0x00 0x485e0000 0x00 0x10000>,
- <0x00 0x484a0000 0x00 0x2000>,
- <0x00 0x484c0000 0x00 0x2000>,
- <0x00 0x48430000 0x00 0x1000>;
- reg-names = "gcfg", "rchanrt", "tchanrt", "ringrt",
- "ring", "tchan", "rchan", "rflow";
+ <0x00 0x4b800000 0x00 0x400000>;
+ reg-names = "gcfg", "rchanrt", "tchanrt", "ringrt";
msi-parent = <&inta_main_dmss>;
#dma-cells = <2>;
main_gpio0: gpio@600000 {
compatible = "ti,am64-gpio", "ti,keystone-gpio";
reg = <0x0 0x00600000 0x0 0x100>;
- gpio-ranges = <&main_pmx0 0 0 32>,
- <&main_pmx0 32 33 38>,
- <&main_pmx0 70 72 22>;
gpio-controller;
#gpio-cells = <2>;
interrupt-parent = <&main_gpio_intr>;
compatible = "ti,am64-gpio", "ti,keystone-gpio";
reg = <0x0 0x00601000 0x0 0x100>;
gpio-controller;
- gpio-ranges = <&main_pmx0 0 94 41>,
- <&main_pmx0 41 136 6>,
- <&main_pmx0 47 143 3>,
- <&main_pmx0 50 149 2>;
#gpio-cells = <2>;
interrupt-parent = <&main_gpio_intr>;
interrupts = <180>, <181>, <182>,
clock-names = "clk_ahb", "clk_xin";
assigned-clocks = <&k3_clks 57 6>;
assigned-clock-parents = <&k3_clks 57 8>;
- bus-width = <8>;
mmc-ddr-1_8v;
mmc-hs200-1_8v;
+ ti,trm-icp = <0x2>;
+ bus-width = <8>;
ti,clkbuf-sel = <0x7>;
ti,otap-del-sel-legacy = <0x0>;
ti,otap-del-sel-mmc-hs = <0x0>;
power-domains = <&k3_pds 58 TI_SCI_PD_EXCLUSIVE>;
clocks = <&k3_clks 58 5>, <&k3_clks 58 6>;
clock-names = "clk_ahb", "clk_xin";
- bus-width = <4>;
- ti,clkbuf-sel = <0x7>;
+ ti,trm-icp = <0x2>;
ti,otap-del-sel-legacy = <0x8>;
ti,otap-del-sel-sd-hs = <0x0>;
ti,otap-del-sel-sdr12 = <0x0>;
ti,itap-del-sel-sd-hs = <0x1>;
ti,itap-del-sel-sdr12 = <0xa>;
ti,itap-del-sel-sdr25 = <0x1>;
+ ti,clkbuf-sel = <0x7>;
+ bus-width = <4>;
status = "disabled";
};
power-domains = <&k3_pds 184 TI_SCI_PD_EXCLUSIVE>;
clocks = <&k3_clks 184 5>, <&k3_clks 184 6>;
clock-names = "clk_ahb", "clk_xin";
- bus-width = <4>;
- ti,clkbuf-sel = <0x7>;
+ ti,trm-icp = <0x2>;
ti,otap-del-sel-legacy = <0x8>;
ti,otap-del-sel-sd-hs = <0x0>;
ti,otap-del-sel-sdr12 = <0x0>;
ti,itap-del-sel-sd-hs = <0xa>;
ti,itap-del-sel-sdr12 = <0xa>;
ti,itap-del-sel-sdr25 = <0x1>;
+ ti,clkbuf-sel = <0x7>;
status = "disabled";
};
interrupt-names = "host", "peripheral";
maximum-speed = "high-speed";
dr_mode = "otg";
- snps,usb2-gadget-lpm-disable;
- snps,usb2-lpm-disable;
};
};
interrupt-names = "host", "peripheral";
maximum-speed = "high-speed";
dr_mode = "otg";
- snps,usb2-gadget-lpm-disable;
- snps,usb2-lpm-disable;
};
};
};
};
- gpu: gpu@fd00000 {
- compatible = "ti,am62-gpu", "img,img-axe";
- reg = <0x00 0x0fd00000 0x00 0x20000>;
- clocks = <&k3_clks 187 0>;
- clock-names = "core";
- interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
- power-domains = <&k3_pds 187 TI_SCI_PD_EXCLUSIVE>;
- };
-
cpsw3g: ethernet@8000000 {
compatible = "ti,am642-cpsw-nuss";
#address-cells = <2>;
<0x00 0x30207000 0x00 0x1000>, /* ovr1 */
<0x00 0x30208000 0x00 0x1000>, /* ovr2 */
<0x00 0x3020a000 0x00 0x1000>, /* vp1: Used for OLDI */
- <0x00 0x3020b000 0x00 0x1000>, /* vp2: Used as DPI Out */
- <0x00 0x30201000 0x00 0x1000>; /* common1 */
+ <0x00 0x3020b000 0x00 0x1000>; /* vp2: Used as DPI Out */
reg-names = "common", "vidl1", "vid",
- "ovr1", "ovr2", "vp1", "vp2", "common1";
+ "ovr1", "ovr2", "vp1", "vp2";
power-domains = <&k3_pds 186 TI_SCI_PD_EXCLUSIVE>;
clocks = <&k3_clks 186 6>,
<&dss_vp1_clk>,
power-domains = <&k3_pds 192 TI_SCI_PD_EXCLUSIVE>;
status = "disabled";
};
-
- ti_csi2rx0: ticsi2rx@30102000 {
- compatible = "ti,j721e-csi2rx-shim";
- dmas = <&main_bcdma 0 0x4700 0>;
- dma-names = "rx0";
- reg = <0x00 0x30102000 0x00 0x1000>;
- power-domains = <&k3_pds 182 TI_SCI_PD_EXCLUSIVE>;
- #address-cells = <2>;
- #size-cells = <2>;
- ranges;
- status = "disabled";
-
- cdns_csi2rx0: csi-bridge@30101000 {
- compatible = "ti,j721e-csi2rx", "cdns,csi2rx";
- reg = <0x00 0x30101000 0x00 0x1000>;
- clocks = <&k3_clks 182 0>, <&k3_clks 182 3>, <&k3_clks 182 0>,
- <&k3_clks 182 0>, <&k3_clks 182 4>, <&k3_clks 182 4>;
- clock-names = "sys_clk", "p_clk", "pixel_if0_clk",
- "pixel_if1_clk", "pixel_if2_clk", "pixel_if3_clk";
- phys = <&dphy0>;
- phy-names = "dphy";
-
- ports {
- #address-cells = <1>;
- #size-cells = <0>;
-
- csi0_port0: port@0 {
- reg = <0>;
- status = "disabled";
- };
-
- csi0_port1: port@1 {
- reg = <1>;
- status = "disabled";
- };
-
- csi0_port2: port@2 {
- reg = <2>;
- status = "disabled";
- };
-
- csi0_port3: port@3 {
- reg = <3>;
- status = "disabled";
- };
-
- csi0_port4: port@4 {
- reg = <4>;
- status = "disabled";
- };
- };
- };
- };
-
- dphy0: phy@30110000 {
- compatible = "cdns,dphy-rx";
- reg = <0x00 0x30110000 0x00 0x1100>;
- #phy-cells = <0>;
- power-domains = <&k3_pds 185 TI_SCI_PD_EXCLUSIVE>;
- status = "disabled";
- };
-
};
-// SPDX-License-Identifier: GPL-2.0-only OR MIT
+// SPDX-License-Identifier: GPL-2.0
/*
* Device Tree Source for AM625 SoC Family MCU Domain peripherals
*
- * Copyright (C) 2020-2024 Texas Instruments Incorporated - https://www.ti.com/
+ * Copyright (C) 2020-2022 Texas Instruments Incorporated - https://www.ti.com/
*/
&cbass_mcu {
-// SPDX-License-Identifier: GPL-2.0-only OR MIT
-/*
- * Copyright (C) 2023-2024 Texas Instruments Incorporated - https://www.ti.com/
- */
+// SPDX-License-Identifier: GPL-2.0
#include <dt-bindings/thermal/thermal.h>
-// SPDX-License-Identifier: GPL-2.0-only OR MIT
+// SPDX-License-Identifier: GPL-2.0
/*
* Device Tree Source for AM625 SoC Family Wakeup Domain peripherals
*
- * Copyright (C) 2020-2024 Texas Instruments Incorporated - https://www.ti.com/
+ * Copyright (C) 2020-2022 Texas Instruments Incorporated - https://www.ti.com/
*/
-#include <dt-bindings/bus/ti-sysc.h>
-
&cbass_wakeup {
wkup_conf: syscon@43000000 {
bootph-all;
};
};
- target-module@2b300050 {
- compatible = "ti,sysc-omap2", "ti,sysc";
- reg = <0x00 0x2b300050 0x00 0x4>,
- <0x00 0x2b300054 0x00 0x4>,
- <0x00 0x2b300058 0x00 0x4>;
- reg-names = "rev", "sysc", "syss";
- ti,sysc-mask = <(SYSC_OMAP2_ENAWAKEUP |
- SYSC_OMAP2_SOFTRESET |
- SYSC_OMAP2_AUTOIDLE)>;
- ti,sysc-sidle = <SYSC_IDLE_FORCE>,
- <SYSC_IDLE_NO>,
- <SYSC_IDLE_SMART>,
- <SYSC_IDLE_SMART_WKUP>;
- ti,syss-mask = <1>;
- ti,no-reset-on-init;
+ wkup_uart0: serial@2b300000 {
+ compatible = "ti,am64-uart", "ti,am654-uart";
+ reg = <0x00 0x2b300000 0x00 0x100>;
+ interrupts = <GIC_SPI 186 IRQ_TYPE_LEVEL_HIGH>;
power-domains = <&k3_pds 114 TI_SCI_PD_EXCLUSIVE>;
clocks = <&k3_clks 114 0>;
- clock-names = "fck";
- #address-cells = <1>;
- #size-cells = <1>;
- ranges = <0x0 0x00 0x2b300000 0x100000>;
-
- wkup_uart0: serial@0 {
- compatible = "ti,am64-uart", "ti,am654-uart";
- reg = <0x0 0x100>;
- interrupts = <GIC_SPI 186 IRQ_TYPE_LEVEL_HIGH>;
- status = "disabled";
- };
+ clock-names = "fclk";
+ status = "disabled";
};
wkup_i2c0: i2c@2b200000 {
-// SPDX-License-Identifier: GPL-2.0-only OR MIT
+// SPDX-License-Identifier: GPL-2.0
/*
* Device Tree Source for AM62 SoC Family
*
- * Copyright (C) 2020-2024 Texas Instruments Incorporated - https://www.ti.com/
+ * Copyright (C) 2020-2022 Texas Instruments Incorporated - https://www.ti.com/
*/
#include <dt-bindings/gpio/gpio.h>
};
};
#endif
-
-&main_bcdma {
- reg = <0x00 0x485c0100 0x00 0x100>,
- <0x00 0x4c000000 0x00 0x20000>,
- <0x00 0x4a820000 0x00 0x20000>,
- <0x00 0x4aa40000 0x00 0x20000>,
- <0x00 0x4bc00000 0x00 0x100000>,
- <0x00 0x48600000 0x00 0x8000>,
- <0x00 0x484a4000 0x00 0x2000>,
- <0x00 0x484c2000 0x00 0x2000>;
- reg-names = "gcfg", "bchanrt", "rchanrt", "tchanrt", "ringrt",
- "cfg", "tchan", "rchan";
-};
-
-&main_pktdma {
- reg = <0x00 0x485c0000 0x00 0x100>,
- <0x00 0x4a800000 0x00 0x20000>,
- <0x00 0x4aa00000 0x00 0x40000>,
- <0x00 0x4b800000 0x00 0x400000>,
- <0x00 0x485e0000 0x00 0x20000>,
- <0x00 0x484a0000 0x00 0x4000>,
- <0x00 0x484c0000 0x00 0x2000>,
- <0x00 0x48430000 0x00 0x4000>;
- reg-names = "gcfg", "rchanrt", "tchanrt", "ringrt", "cfg",
- "tchan", "rchan", "rflow";
- bootph-all;
-};
-
-&mdio0_pins_default {
- bootph-all;
-};
-
-&cpsw3g_mdio {
- bootph-all;
-};
-
-&cpsw3g_phy0 {
- bootph-all;
-};
-
-&rgmii1_pins_default {
- bootph-all;
-};
-
-&cpsw3g {
- bootph-all;
-
- ethernet-ports {
- bootph-all;
- };
-};
-
-&phy_gmii_sel {
- bootph-all;
-};
-
-&cpsw_port1 {
- bootph-all;
-};
-
-&cpsw_port2 {
- status = "disabled";
-};
-// SPDX-License-Identifier: GPL-2.0-only OR MIT
+// SPDX-License-Identifier: GPL-2.0
/*
* https://beagleplay.org/
*
- * Copyright (C) 2022-2024 Texas Instruments Incorporated - https://www.ti.com/
- * Copyright (C) 2022-2024 Robert Nelson, BeagleBoard.org Foundation
+ * Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/
+ * Copyright (C) 2022-2023 Robert Nelson, BeagleBoard.org Foundation
*/
/dts-v1/;
i2c3 = &main_i2c3;
i2c4 = &wkup_i2c0;
i2c5 = &mcu_i2c0;
+ mdio-gpio0 = &mdio0;
mmc0 = &sdhci0;
mmc1 = &sdhci1;
mmc2 = &sdhci2;
};
};
+ /* Workaround for errata i2329 - just use mdio bitbang */
+ mdio0: mdio {
+ compatible = "virtual,mdio-gpio";
+ pinctrl-names = "default";
+ pinctrl-0 = <&mdio0_pins_default>;
+ gpios = <&main_gpio0 86 GPIO_ACTIVE_HIGH>, /* MDC */
+ <&main_gpio0 85 GPIO_ACTIVE_HIGH>; /* MDIO */
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ cpsw3g_phy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+
+ cpsw3g_phy1: ethernet-phy@1 {
+ reg = <1>;
+ reset-gpios = <&main_gpio1 5 GPIO_ACTIVE_LOW>;
+ reset-assert-us = <25>;
+ reset-deassert-us = <60000>; /* T2 */
+ };
+ };
};
&main_pmx0 {
mdio0_pins_default: mdio0-default-pins {
pinctrl-single,pins = <
- AM62X_IOPAD(0x0160, PIN_OUTPUT, 0) /* (AD24) MDIO0_MDC */
- AM62X_IOPAD(0x015c, PIN_INPUT, 0) /* (AB22) MDIO0_MDIO */
- AM62X_IOPAD(0x003c, PIN_INPUT, 7) /* (M25) GPMC0_AD0.GPIO0_15 */
- AM62X_IOPAD(0x018c, PIN_INPUT, 7) /* (AC21) RGMII2_RD2.GPIO1_5 */
+ AM62X_IOPAD(0x0160, PIN_OUTPUT, 7) /* (AD24) MDIO0_MDC.GPIO0_86 */
+ AM62X_IOPAD(0x015c, PIN_INPUT, 7) /* (AB22) MDIO0_MDIO.GPIO0_85 */
>;
};
AM62X_IOPAD(0x016c, PIN_INPUT, 1) /* (Y18) RGMII2_TD0.RMII2_TXD0 */
AM62X_IOPAD(0x0170, PIN_INPUT, 1) /* (AA18) RGMII2_TD1.RMII2_TXD1 */
AM62X_IOPAD(0x0164, PIN_INPUT, 1) /* (AA19) RGMII2_TX_CTL.RMII2_TX_EN */
+ AM62X_IOPAD(0x018c, PIN_OUTPUT, 7) /* (AC21) RGMII2_RD2.GPIO1_5 */
AM62X_IOPAD(0x0190, PIN_INPUT, 7) /* (AE22) RGMII2_RD3.GPIO1_6 */
AM62X_IOPAD(0x01f0, PIN_OUTPUT, 5) /* (A18) EXT_REFCLK1.CLKOUT0 */
>;
>;
};
- main_uart0_pins_default: main-uart0-default-pins {
+ console_pins_default: console-default-pins {
bootph-all;
pinctrl-single,pins = <
AM62X_IOPAD(0x01c8, PIN_INPUT, 0) /* (D14) UART0_RXD */
};
&usbss0 {
- bootph-all;
ti,vbus-divider;
status = "okay";
};
&usb0 {
- bootph-all;
dr_mode = "peripheral";
};
};
&cpsw3g_mdio {
- status = "okay";
- pinctrl-names = "default";
- pinctrl-0 = <&mdio0_pins_default>;
-
- cpsw3g_phy0: ethernet-phy@0 {
- reg = <0>;
- reset-gpios = <&main_gpio0 15 GPIO_ACTIVE_LOW>;
- reset-assert-us = <10000>;
- reset-deassert-us = <50000>;
- };
-
- cpsw3g_phy1: ethernet-phy@1 {
- reg = <1>;
- reset-gpios = <&main_gpio1 5 GPIO_ACTIVE_LOW>;
- reset-assert-us = <25>;
- reset-deassert-us = <60000>; /* T2 */
- };
+ /* Workaround for errata i2329 - Use mdio bitbang */
+ status = "disabled";
};
&main_gpio0 {
"USR0", "USR1", "USR2", "USR3", "", "", "USR4", /* 3-9 */
"EEPROM_WP", /* 10 */
"CSI2_CAMERA_GPIO1", "CSI2_CAMERA_GPIO2", /* 11-12 */
- "CC1352P7_BOOT", "CC1352P7_RSTN", "GBE_RSTN", "", "", /* 13-17 */
+ "CC1352P7_BOOT", "CC1352P7_RSTN", "", "", "", /* 13-17 */
"USR_BUTTON", "", "", "", "", "", "", "", "", /* 18-26 */
"", "", "", "", "", "", "", "", "", "HDMI_INT", /* 27-36 */
"", "VDD_WLAN_EN", "", "", "WL_IRQ", "GBE_INTN",/* 37-42 */
bootph-all;
pinctrl-names = "default";
pinctrl-0 = <&emmc_pins_default>;
+ ti,driver-strength-ohm = <50>;
disable-wp;
status = "okay";
};
vmmc-supply = <&vdd_3v3_sd>;
vqmmc-supply = <&vdd_sd_dv>;
+ ti,driver-strength-ohm = <50>;
disable-wp;
cd-gpios = <&main_gpio1 48 GPIO_ACTIVE_LOW>;
cd-debounce-delay-ms = <100>;
vmmc-supply = <&wlan_en>;
pinctrl-names = "default";
pinctrl-0 = <&wifi_pins_default>, <&wifi_32k_clk>;
+ bus-width = <4>;
non-removable;
ti,fails-without-test-cd;
cap-power-off-card;
keep-power-in-suspend;
+ ti,driver-strength-ohm = <50>;
assigned-clocks = <&k3_clks 157 158>;
assigned-clock-parents = <&k3_clks 157 160>;
#address-cells = <1>;
&main_uart0 {
bootph-all;
pinctrl-names = "default";
- pinctrl-0 = <&main_uart0_pins_default>;
+ pinctrl-0 = <&console_pins_default>;
status = "okay";
};
-// SPDX-License-Identifier: GPL-2.0-only OR MIT
+// SPDX-License-Identifier: GPL-2.0
/*
* AM625 SK: https://www.ti.com/lit/zip/sprr448
*
- * Copyright (C) 2021-2024 Texas Instruments Incorporated - https://www.ti.com/
+ * Copyright (C) 2021-2022 Texas Instruments Incorporated - https://www.ti.com/
*/
/dts-v1/;
-// SPDX-License-Identifier: GPL-2.0-only OR MIT
+// SPDX-License-Identifier: GPL-2.0
/*
* Device Tree Source for AM625 SoC family in Quad core configuration
*
* TRM: https://www.ti.com/lit/pdf/spruiv7
*
- * Copyright (C) 2020-2024 Texas Instruments Incorporated - https://www.ti.com/
+ * Copyright (C) 2020-2022 Texas Instruments Incorporated - https://www.ti.com/
*/
/dts-v1/;
-// SPDX-License-Identifier: GPL-2.0-only OR MIT
+// SPDX-License-Identifier: GPL-2.0
/*
* Device Tree Source for AM62A SoC Family Main Domain peripherals
*
- * Copyright (C) 2022-2024 Texas Instruments Incorporated - https://www.ti.com/
+ * Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/
*/
&cbass_main {
};
};
- main_conf: bus@100000 {
- compatible = "simple-bus";
+ main_conf: syscon@100000 {
+ compatible = "ti,j721e-system-controller", "syscon", "simple-mfd";
+ reg = <0x00 0x00100000 0x00 0x20000>;
#address-cells = <1>;
#size-cells = <1>;
ranges = <0x00 0x00 0x00100000 0x20000>;
<0x00 0x4c000000 0x00 0x20000>,
<0x00 0x4a820000 0x00 0x20000>,
<0x00 0x4aa40000 0x00 0x20000>,
- <0x00 0x4bc00000 0x00 0x100000>,
- <0x00 0x48600000 0x00 0x8000>,
- <0x00 0x484a4000 0x00 0x2000>,
- <0x00 0x484c2000 0x00 0x2000>,
- <0x00 0x48420000 0x00 0x2000>;
- reg-names = "gcfg", "bchanrt", "rchanrt", "tchanrt", "ringrt",
- "ring", "tchan", "rchan", "bchan";
+ <0x00 0x4bc00000 0x00 0x100000>;
+ reg-names = "gcfg", "bchanrt", "rchanrt", "tchanrt", "ringrt";
msi-parent = <&inta_main_dmss>;
#dma-cells = <3>;
ti,sci = <&dmsc>;
reg = <0x00 0x485c0000 0x00 0x100>,
<0x00 0x4a800000 0x00 0x20000>,
<0x00 0x4aa00000 0x00 0x40000>,
- <0x00 0x4b800000 0x00 0x400000>,
- <0x00 0x485e0000 0x00 0x10000>,
- <0x00 0x484a0000 0x00 0x2000>,
- <0x00 0x484c0000 0x00 0x2000>,
- <0x00 0x48430000 0x00 0x1000>;
- reg-names = "gcfg", "rchanrt", "tchanrt", "ringrt",
- "ring", "tchan", "rchan", "rflow";
+ <0x00 0x4b800000 0x00 0x400000>;
+ reg-names = "gcfg", "rchanrt", "tchanrt", "ringrt";
msi-parent = <&inta_main_dmss>;
#dma-cells = <2>;
ti,sci = <&dmsc>;
};
};
- dmss_csi: bus@4e000000 {
- compatible = "simple-bus";
- #address-cells = <2>;
- #size-cells = <2>;
- dma-ranges;
- ranges = <0x00 0x4e000000 0x00 0x4e000000 0x00 0x300000>;
-
- ti,sci-dev-id = <198>;
-
- inta_main_dmss_csi: interrupt-controller@4e0a0000 {
- compatible = "ti,sci-inta";
- reg = <0x00 0x4e0a0000 0x00 0x8000>;
- #interrupt-cells = <0>;
- interrupt-controller;
- interrupt-parent = <&gic500>;
- msi-controller;
- ti,sci = <&dmsc>;
- ti,sci-dev-id = <200>;
- ti,interrupt-ranges = <0 237 8>;
- ti,unmapped-event-sources = <&main_bcdma_csi>;
- power-domains = <&k3_pds 182 TI_SCI_PD_EXCLUSIVE>;
- };
-
- main_bcdma_csi: dma-controller@4e230000 {
- compatible = "ti,am62a-dmss-bcdma-csirx";
- reg = <0x00 0x4e230000 0x00 0x100>,
- <0x00 0x4e180000 0x00 0x8000>,
- <0x00 0x4e100000 0x00 0x10000>;
- reg-names = "gcfg", "rchanrt", "ringrt";
- msi-parent = <&inta_main_dmss_csi>;
- #dma-cells = <3>;
- ti,sci = <&dmsc>;
- ti,sci-dev-id = <199>;
- ti,sci-rm-range-rchan = <0x21>;
- power-domains = <&k3_pds 182 TI_SCI_PD_EXCLUSIVE>;
- };
- };
-
dmsc: system-controller@44043000 {
compatible = "ti,k2g-sci";
reg = <0x00 0x44043000 0x00 0xfe0>;
<193>, <194>, <195>;
interrupt-controller;
#interrupt-cells = <2>;
- ti,ngpio = <92>;
+ ti,ngpio = <87>;
ti,davinci-gpio-unbanked = <0>;
power-domains = <&k3_pds 77 TI_SCI_PD_EXCLUSIVE>;
clocks = <&k3_clks 77 0>;
<183>, <184>, <185>;
interrupt-controller;
#interrupt-cells = <2>;
- ti,ngpio = <52>;
+ ti,ngpio = <88>;
ti,davinci-gpio-unbanked = <0>;
power-domains = <&k3_pds 78 TI_SCI_PD_EXCLUSIVE>;
clocks = <&k3_clks 78 0>;
status = "disabled";
};
- sdhci0: mmc@fa10000 {
- compatible = "ti,am62-sdhci";
- reg = <0x00 0xfa10000 0x00 0x260>, <0x00 0xfa18000 0x00 0x134>;
- interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>;
- power-domains = <&k3_pds 57 TI_SCI_PD_EXCLUSIVE>;
- clocks = <&k3_clks 57 5>, <&k3_clks 57 6>;
- clock-names = "clk_ahb", "clk_xin";
- assigned-clocks = <&k3_clks 57 6>;
- assigned-clock-parents = <&k3_clks 57 8>;
- bus-width = <8>;
- mmc-hs200-1_8v;
- ti,clkbuf-sel = <0x7>;
- ti,otap-del-sel-legacy = <0x0>;
- ti,otap-del-sel-mmc-hs = <0x0>;
- ti,otap-del-sel-hs200 = <0x6>;
- status = "disabled";
- };
-
sdhci1: mmc@fa00000 {
compatible = "ti,am62-sdhci";
reg = <0x00 0xfa00000 0x00 0x260>, <0x00 0xfa08000 0x00 0x134>;
power-domains = <&k3_pds 58 TI_SCI_PD_EXCLUSIVE>;
clocks = <&k3_clks 58 5>, <&k3_clks 58 6>;
clock-names = "clk_ahb", "clk_xin";
- bus-width = <4>;
- ti,clkbuf-sel = <0x7>;
+ ti,trm-icp = <0x2>;
ti,otap-del-sel-legacy = <0x0>;
ti,otap-del-sel-sd-hs = <0x0>;
ti,otap-del-sel-sdr12 = <0xf>;
ti,itap-del-sel-sd-hs = <0x0>;
ti,itap-del-sel-sdr12 = <0x0>;
ti,itap-del-sel-sdr25 = <0x0>;
- no-1-8-v;
- status = "disabled";
- };
-
- sdhci2: mmc@fa20000 {
- compatible = "ti,am62-sdhci";
- reg = <0x00 0xfa20000 0x00 0x260>, <0x00 0xfa28000 0x00 0x134>;
- interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
- power-domains = <&k3_pds 184 TI_SCI_PD_EXCLUSIVE>;
- clocks = <&k3_clks 184 5>, <&k3_clks 184 6>;
- clock-names = "clk_ahb", "clk_xin";
- bus-width = <4>;
ti,clkbuf-sel = <0x7>;
- ti,otap-del-sel-legacy = <0x0>;
- ti,otap-del-sel-sd-hs = <0x0>;
- ti,otap-del-sel-sdr12 = <0xf>;
- ti,otap-del-sel-sdr25 = <0xf>;
- ti,otap-del-sel-sdr50 = <0xc>;
- ti,otap-del-sel-sdr104 = <0x6>;
- ti,otap-del-sel-ddr50 = <0x9>;
- ti,itap-del-sel-legacy = <0x0>;
- ti,itap-del-sel-sd-hs = <0x0>;
- ti,itap-del-sel-sdr12 = <0x0>;
- ti,itap-del-sel-sdr25 = <0x0>;
+ bus-width = <4>;
no-1-8-v;
status = "disabled";
};
power-domains = <&k3_pds 192 TI_SCI_PD_EXCLUSIVE>;
status = "disabled";
};
-
- ti_csi2rx0: ticsi2rx@30102000 {
- compatible = "ti,j721e-csi2rx-shim";
- dmas = <&main_bcdma_csi 0 0x5000 0>;
- dma-names = "rx0";
- reg = <0x00 0x30102000 0x00 0x1000>;
- power-domains = <&k3_pds 182 TI_SCI_PD_EXCLUSIVE>;
- #address-cells = <2>;
- #size-cells = <2>;
- ranges;
- status = "disabled";
-
- cdns_csi2rx0: csi-bridge@30101000 {
- compatible = "ti,j721e-csi2rx", "cdns,csi2rx";
- reg = <0x00 0x30101000 0x00 0x1000>;
- clocks = <&k3_clks 182 0>, <&k3_clks 182 3>, <&k3_clks 182 0>,
- <&k3_clks 182 0>, <&k3_clks 182 4>, <&k3_clks 182 4>;
- clock-names = "sys_clk", "p_clk", "pixel_if0_clk",
- "pixel_if1_clk", "pixel_if2_clk", "pixel_if3_clk";
- phys = <&dphy0>;
- phy-names = "dphy";
-
- ports {
- #address-cells = <1>;
- #size-cells = <0>;
-
- csi0_port0: port@0 {
- reg = <0>;
- status = "disabled";
- };
-
- csi0_port1: port@1 {
- reg = <1>;
- status = "disabled";
- };
-
- csi0_port2: port@2 {
- reg = <2>;
- status = "disabled";
- };
-
- csi0_port3: port@3 {
- reg = <3>;
- status = "disabled";
- };
-
- csi0_port4: port@4 {
- reg = <4>;
- status = "disabled";
- };
- };
- };
- };
-
- dphy0: phy@30110000 {
- compatible = "cdns,dphy-rx";
- reg = <0x00 0x30110000 0x00 0x1100>;
- #phy-cells = <0>;
- power-domains = <&k3_pds 185 TI_SCI_PD_EXCLUSIVE>;
- status = "disabled";
- };
-
- dss: dss@30200000 {
- compatible = "ti,am62a7-dss";
- reg = <0x00 0x30200000 0x00 0x1000>, /* common */
- <0x00 0x30202000 0x00 0x1000>, /* vidl1 */
- <0x00 0x30206000 0x00 0x1000>, /* vid */
- <0x00 0x30207000 0x00 0x1000>, /* ovr1 */
- <0x00 0x30208000 0x00 0x1000>, /* ovr2 */
- <0x00 0x3020a000 0x00 0x1000>, /* vp1: Tied OFF in the SoC */
- <0x00 0x3020b000 0x00 0x1000>, /* vp2: Used as DPI Out */
- <0x00 0x30201000 0x00 0x1000>; /* common1 */
- reg-names = "common", "vidl1", "vid",
- "ovr1", "ovr2", "vp1", "vp2", "common1";
- power-domains = <&k3_pds 186 TI_SCI_PD_EXCLUSIVE>;
- clocks = <&k3_clks 186 6>,
- <&k3_clks 186 0>,
- <&k3_clks 186 2>;
- clock-names = "fck", "vp1", "vp2";
- interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
- status = "disabled";
-
- dss_ports: ports {
- #address-cells = <1>;
- #size-cells = <0>;
- };
- };
};
-// SPDX-License-Identifier: GPL-2.0-only OR MIT
+// SPDX-License-Identifier: GPL-2.0
/*
* Device Tree Source for AM625 SoC Family MCU Domain peripherals
*
- * Copyright (C) 2020-2024 Texas Instruments Incorporated - https://www.ti.com/
+ * Copyright (C) 2020-2022 Texas Instruments Incorporated - https://www.ti.com/
*/
&cbass_mcu {
-// SPDX-License-Identifier: GPL-2.0-only OR MIT
-/*
- * Copyright (C) 2023-2024 Texas Instruments Incorporated - https://www.ti.com/
- */
+// SPDX-License-Identifier: GPL-2.0
#include <dt-bindings/thermal/thermal.h>
-// SPDX-License-Identifier: GPL-2.0-only OR MIT
+// SPDX-License-Identifier: GPL-2.0
/*
* Device Tree Source for AM62A SoC Family Wakeup Domain peripherals
*
- * Copyright (C) 2022-2024 Texas Instruments Incorporated - https://www.ti.com/
+ * Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/
*/
&cbass_wakeup {
-// SPDX-License-Identifier: GPL-2.0-only OR MIT
+// SPDX-License-Identifier: GPL-2.0
/*
* Device Tree Source for AM62A SoC Family
*
- * Copyright (C) 2022-2024 Texas Instruments Incorporated - https://www.ti.com/
+ * Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/
*/
#include <dt-bindings/gpio/gpio.h>
-// SPDX-License-Identifier: GPL-2.0-only OR MIT
+// SPDX-License-Identifier: GPL-2.0
/*
* AM62A SK: https://www.ti.com/lit/zip/sprr459
*
- * Copyright (C) 2022-2024 Texas Instruments Incorporated - https://www.ti.com/
+ * Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/
*/
/dts-v1/;
serial0 = &wkup_uart0;
serial2 = &main_uart0;
serial3 = &main_uart1;
- mmc0 = &sdhci0;
mmc1 = &sdhci1;
};
clock-frequency = <12288000>;
};
- hdmi0: connector-hdmi {
- compatible = "hdmi-connector";
- label = "hdmi";
- type = "a";
-
- port {
- hdmi_connector_in: endpoint {
- remote-endpoint = <&sii9022_out>;
- };
- };
- };
-
codec_audio: sound {
compatible = "simple-audio-card";
simple-audio-card,name = "AM62Ax-SKEVM";
};
&main_pmx0 {
- main_dss0_pins_default: main-dss0-default-pins {
- pinctrl-single,pins = <
- AM62AX_IOPAD(0x100, PIN_OUTPUT, 0) /* (V17) VOUT0_VSYNC */
- AM62AX_IOPAD(0x0f8, PIN_OUTPUT, 0) /* (T18) VOUT0_HSYNC */
- AM62AX_IOPAD(0x104, PIN_OUTPUT, 0) /* (AA22) VOUT0_PCLK */
- AM62AX_IOPAD(0x0fc, PIN_OUTPUT, 0) /* (U17) VOUT0_DE */
- AM62AX_IOPAD(0x0b8, PIN_OUTPUT, 0) /* (U22) VOUT0_DATA0 */
- AM62AX_IOPAD(0x0bc, PIN_OUTPUT, 0) /* (U21) VOUT0_DATA1 */
- AM62AX_IOPAD(0x0c0, PIN_OUTPUT, 0) /* (U20) VOUT0_DATA2 */
- AM62AX_IOPAD(0x0c4, PIN_OUTPUT, 0) /* (U19) VOUT0_DATA3 */
- AM62AX_IOPAD(0x0c8, PIN_OUTPUT, 0) /* (T19) VOUT0_DATA4 */
- AM62AX_IOPAD(0x0cc, PIN_OUTPUT, 0) /* (U18) VOUT0_DATA5 */
- AM62AX_IOPAD(0x0d0, PIN_OUTPUT, 0) /* (V22) VOUT0_DATA6 */
- AM62AX_IOPAD(0x0d4, PIN_OUTPUT, 0) /* (V21) VOUT0_DATA7 */
- AM62AX_IOPAD(0x0d8, PIN_OUTPUT, 0) /* (V19) VOUT0_DATA8 */
- AM62AX_IOPAD(0x0dc, PIN_OUTPUT, 0) /* (V18) VOUT0_DATA9 */
- AM62AX_IOPAD(0x0e0, PIN_OUTPUT, 0) /* (W22) VOUT0_DATA10 */
- AM62AX_IOPAD(0x0e4, PIN_OUTPUT, 0) /* (W21) VOUT0_DATA11 */
- AM62AX_IOPAD(0x0e8, PIN_OUTPUT, 0) /* (W20) VOUT0_DATA12 */
- AM62AX_IOPAD(0x0ec, PIN_OUTPUT, 0) /* (W19) VOUT0_DATA13 */
- AM62AX_IOPAD(0x0f0, PIN_OUTPUT, 0) /* (Y21) VOUT0_DATA14 */
- AM62AX_IOPAD(0x0f4, PIN_OUTPUT, 0) /* (Y22) VOUT0_DATA15 */
- AM62AX_IOPAD(0x05c, PIN_OUTPUT, 1) /* (P22) GPMC0_AD8.VOUT0_DATA16 */
- AM62AX_IOPAD(0x060, PIN_OUTPUT, 1) /* (R19) GPMC0_AD9.VOUT0_DATA17 */
- AM62AX_IOPAD(0x064, PIN_OUTPUT, 1) /* (R20) GPMC0_AD10.VOUT0_DATA18 */
- AM62AX_IOPAD(0x068, PIN_OUTPUT, 1) /* (R22) GPMC0_AD11.VOUT0_DATA19 */
- AM62AX_IOPAD(0x06c, PIN_OUTPUT, 1) /* (T22) GPMC0_AD12.VOUT0_DATA20 */
- AM62AX_IOPAD(0x070, PIN_OUTPUT, 1) /* (R21) GPMC0_AD13.VOUT0_DATA21 */
- AM62AX_IOPAD(0x074, PIN_OUTPUT, 1) /* (T20) GPMC0_AD14.VOUT0_DATA22 */
- AM62AX_IOPAD(0x078, PIN_OUTPUT, 1) /* (T21) GPMC0_AD15.VOUT0_DATA23 */
- >;
- };
-
main_uart0_pins_default: main-uart0-default-pins {
pinctrl-single,pins = <
AM62AX_IOPAD(0x1c8, PIN_INPUT, 0) /* (E14) UART0_RXD */
>;
};
- main_mmc0_pins_default: main-mmc0-default-pins {
- pinctrl-single,pins = <
- AM62AX_IOPAD(0x220, PIN_INPUT, 0) /* (Y3) MMC0_CMD */
- AM62AX_IOPAD(0x218, PIN_INPUT, 0) /* (AB1) MMC0_CLKLB */
- AM62AX_IOPAD(0x21c, PIN_INPUT, 0) /* (AB1) MMC0_CLK */
- AM62AX_IOPAD(0x214, PIN_INPUT, 0) /* (AA2) MMC0_DAT0 */
- AM62AX_IOPAD(0x210, PIN_INPUT_PULLUP, 0) /* (AA1) MMC0_DAT1 */
- AM62AX_IOPAD(0x20c, PIN_INPUT_PULLUP, 0) /* (AA3) MMC0_DAT2 */
- AM62AX_IOPAD(0x208, PIN_INPUT_PULLUP, 0) /* (Y4) MMC0_DAT3 */
- AM62AX_IOPAD(0x204, PIN_INPUT_PULLUP, 0) /* (AB2) MMC0_DAT4 */
- AM62AX_IOPAD(0x200, PIN_INPUT_PULLUP, 0) /* (AC1) MMC0_DAT5 */
- AM62AX_IOPAD(0x1fc, PIN_INPUT_PULLUP, 0) /* (AD2) MMC0_DAT6 */
- AM62AX_IOPAD(0x1f8, PIN_INPUT_PULLUP, 0) /* (AC2) MMC0_DAT7 */
- >;
- };
-
main_mmc1_pins_default: main-mmc1-default-pins {
pinctrl-single,pins = <
AM62AX_IOPAD(0x23c, PIN_INPUT, 0) /* (A21) MMC1_CMD */
AM62AX_IOPAD(0x084, PIN_INPUT, 2) /* (L18) GPMC0_ADVn_ALE.MCASP1_AXR2 */
>;
};
-
- main_gpio1_ioexp_intr_pins_default: main-gpio1-ioexp-intr-default-pins {
- pinctrl-single,pins = <
- AM62AX_IOPAD(0x01d4, PIN_INPUT, 7) /* (C15) UART0_RTSn.GPIO1_23 */
- >;
- };
};
&mcu_pmx0 {
reg = <0x22>;
gpio-controller;
#gpio-cells = <2>;
- interrupt-parent = <&main_gpio1>;
- interrupts = <23 IRQ_TYPE_EDGE_FALLING>;
- interrupt-controller;
- #interrupt-cells = <2>;
- pinctrl-names = "default";
- pinctrl-0 = <&main_gpio1_ioexp_intr_pins_default>;
gpio-line-names = "GPIO_CPSW2_RST", "GPIO_CPSW1_RST",
"BT_EN_SOC", "MMC1_SD_EN",
DRVDD-supply = <&vcc_3v3_sys>;
DVDD-supply = <&buck5>;
};
-
- exp2: gpio@23 {
- compatible = "ti,tca6424";
- reg = <0x23>;
- gpio-controller;
- #gpio-cells = <2>;
-
- gpio-line-names = "", "",
- "", "",
- "", "",
- "", "",
- "WL_LT_EN", "CSI_RSTz",
- "", "",
- "", "",
- "", "",
- "SPI0_FET_SEL", "SPI0_FET_OE",
- "RGMII2_BRD_CONN_DET", "CSI_SEL2",
- "CSI_EN", "AUTO_100M_1000M_CONFIG",
- "CSI_VLDO_SEL", "SoC_WLAN_SDIO_RST";
- };
-
- sii9022: bridge-hdmi@3b {
- compatible = "sil,sii9022";
- reg = <0x3b>;
- interrupt-parent = <&exp1>;
- interrupts = <16 IRQ_TYPE_EDGE_FALLING>;
- #sound-dai-cells = <0>;
- sil,i2s-data-lanes = < 0 >;
-
- ports {
- #address-cells = <1>;
- #size-cells = <0>;
-
- port@0 {
- reg = <0>;
-
- sii9022_in: endpoint {
- remote-endpoint = <&dpi1_out>;
- };
- };
-
- port@1 {
- reg = <1>;
-
- sii9022_out: endpoint {
- remote-endpoint = <&hdmi_connector_in>;
- };
- };
- };
- };
-};
-
-&main_i2c2 {
- status = "okay";
- pinctrl-names = "default";
- pinctrl-0 = <&main_i2c2_pins_default>;
- clock-frequency = <400000>;
-};
-
-&sdhci0 {
- /* eMMC */
- status = "okay";
- non-removable;
- pinctrl-names = "default";
- pinctrl-0 = <&main_mmc0_pins_default>;
- disable-wp;
};
&sdhci1 {
vmmc-supply = <&vdd_mmc1>;
pinctrl-names = "default";
pinctrl-0 = <&main_mmc1_pins_default>;
+ ti,driver-strength-ohm = <50>;
disable-wp;
};
tx-num-evt = <32>;
rx-num-evt = <32>;
};
-
-&dss {
- status = "okay";
- pinctrl-names = "default";
- pinctrl-0 = <&main_dss0_pins_default>;
-};
-
-&dss_ports {
- /* VP2: DPI Output */
- port@1 {
- reg = <1>;
-
- dpi1_out: endpoint {
- remote-endpoint = <&sii9022_in>;
- };
- };
-};
-// SPDX-License-Identifier: GPL-2.0-only OR MIT
+// SPDX-License-Identifier: GPL-2.0
/*
* Device Tree Source for AM62A7 SoC family in Quad core configuration
*
* TRM: https://www.ti.com/lit/zip/spruj16
*
- * Copyright (C) 2020-2024 Texas Instruments Incorporated - https://www.ti.com/
+ * Copyright (C) 2020-2022 Texas Instruments Incorporated - https://www.ti.com/
*/
/dts-v1/;
-// SPDX-License-Identifier: GPL-2.0-only OR MIT
+// SPDX-License-Identifier: GPL-2.0
/*
* Common dtsi for AM62x SK and derivatives
*
- * Copyright (C) 2021-2024 Texas Instruments Incorporated - https://www.ti.com/
+ * Copyright (C) 2021-2023 Texas Instruments Incorporated - https://www.ti.com/
*/
#include <dt-bindings/leds/common.h>
};
};
-&main_i2c2 {
- status = "okay";
- pinctrl-names = "default";
- pinctrl-0 = <&main_i2c2_pins_default>;
- clock-frequency = <400000>;
-};
-
&sdhci0 {
bootph-all;
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&main_mmc0_pins_default>;
+ ti,driver-strength-ohm = <50>;
disable-wp;
};
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&main_mmc1_pins_default>;
+ ti,driver-strength-ohm = <50>;
disable-wp;
};
};
&usbss0 {
- bootph-all;
status = "okay";
ti,vbus-divider;
};
};
&usb0 {
- bootph-all;
#address-cells = <1>;
#size-cells = <0>;
usb-role-switch;
};
};
};
-
-/* mcu_gpio0 and mcu_gpio_intr are reserved for mcu firmware usage */
-&mcu_gpio0 {
- status = "reserved";
-};
-
-&mcu_gpio_intr {
- status = "reserved";
-};
// SPDX-License-Identifier: GPL-2.0
/*
- * Copyright (C) 2022-2024 Texas Instruments Incorporated - https://www.ti.com/
+ * Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/
*/
#include "k3-binman.dtsi"
config = "pm-cfg_j7200.yaml";
};
-&binman {
- tiboot3-j7200-hs-evm.bin {
- filename = "tiboot3-j7200-hs-evm.bin";
- ti-secure-rom {
- content = <&u_boot_spl_sr1>, <&ti_fs_enc_sr1>, <&combined_tifs_cfg_sr1>,
- <&combined_dm_cfg_sr1>, <&sysfw_inner_cert_sr1>;
- combined;
- dm-data;
- core-opts = <2>;
- sysfw-inner-cert;
- keyfile = "custMpk.pem";
- sw-rev = <1>;
- content-sbl = <&u_boot_spl_sr1>;
- content-sysfw = <&ti_fs_enc_sr1>;
- content-sysfw-data = <&combined_tifs_cfg_sr1>;
- content-sysfw-inner-cert = <&sysfw_inner_cert_sr1>;
- content-dm-data = <&combined_dm_cfg_sr1>;
- load = <0x41c00000>;
- load-sysfw = <0x40000>;
- load-sysfw-data = <0x7f000>;
- load-dm-data = <0x41c80000>;
- };
- u_boot_spl_sr1: u-boot-spl {
- no-expanded;
- };
- ti_fs_enc_sr1: ti-fs-enc.bin {
- filename = "ti-sysfw/ti-fs-firmware-j7200-hs-enc.bin";
- type = "blob-ext";
- optional;
- };
- combined_tifs_cfg_sr1: combined-tifs-cfg.bin {
- filename = "combined-tifs-cfg.bin";
- type = "blob-ext";
- };
- sysfw_inner_cert_sr1: sysfw-inner-cert {
- filename = "ti-sysfw/ti-fs-firmware-j7200-hs-cert.bin";
- type = "blob-ext";
- optional;
- };
- combined_dm_cfg_sr1: combined-dm-cfg.bin {
- filename = "combined-dm-cfg.bin";
- type = "blob-ext";
- };
- };
-};
-
&binman {
tiboot3-j7200_sr2-hs-evm.bin {
filename = "tiboot3-j7200_sr2-hs-evm.bin";
};
};
-&binman {
- tiboot3-j7200-hs-fs-evm.bin {
- filename = "tiboot3-j7200-hs-fs-evm.bin";
- ti-secure-rom {
- content = <&u_boot_spl_fs_sr1>, <&ti_fs_enc_fs_sr1>,
- <&combined_tifs_cfg_fs_sr1>, <&combined_dm_cfg_fs_sr1>,
- <&sysfw_inner_cert_fs_sr1>;
- combined;
- dm-data;
- core-opts = <2>;
- sysfw-inner-cert;
- keyfile = "custMpk.pem";
- sw-rev = <1>;
- content-sbl = <&u_boot_spl_fs_sr1>;
- content-sysfw = <&ti_fs_enc_fs_sr1>;
- content-sysfw-data = <&combined_tifs_cfg_fs_sr1>;
- content-sysfw-inner-cert = <&sysfw_inner_cert_fs_sr1>;
- content-dm-data = <&combined_dm_cfg_fs_sr1>;
- load = <0x41c00000>;
- load-sysfw = <0x40000>;
- load-sysfw-data = <0x7f000>;
- load-dm-data = <0x41c80000>;
- };
- u_boot_spl_fs_sr1: u-boot-spl {
- no-expanded;
- };
- ti_fs_enc_fs_sr1: ti-fs-enc.bin {
- filename = "ti-sysfw/ti-fs-firmware-j7200-hs-fs-enc.bin";
- type = "blob-ext";
- optional;
- };
- combined_tifs_cfg_fs_sr1: combined-tifs-cfg.bin {
- filename = "combined-tifs-cfg.bin";
- type = "blob-ext";
- };
- sysfw_inner_cert_fs_sr1: sysfw-inner-cert {
- filename = "ti-sysfw/ti-fs-firmware-j7200-hs-fs-cert.bin";
- type = "blob-ext";
- optional;
- };
- combined_dm_cfg_fs_sr1: combined-dm-cfg.bin {
- filename = "combined-dm-cfg.bin";
- type = "blob-ext";
- };
- };
-};
-
&binman {
tiboot3-j7200_sr2-hs-fs-evm.bin {
filename = "tiboot3-j7200_sr2-hs-fs-evm.bin";
// SPDX-License-Identifier: GPL-2.0
/*
- * Copyright (C) 2022-2024 Texas Instruments Incorporated - https://www.ti.com/
+ * Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/
*/
#include "k3-binman.dtsi"
};
};
-&binman {
- tiboot3-j721e_sr1_1-hs-fs-evm.bin {
- filename = "tiboot3-j721e_sr1_1-hs-fs-evm.bin";
- ti-secure-rom {
- content = <&u_boot_spl_fs_sr1_1>;
- core = "public";
- core-opts = <2>;
- load = <CONFIG_SPL_TEXT_BASE>;
- keyfile = "custMpk.pem";
- };
- u_boot_spl_fs_sr1_1: u-boot-spl {
- no-expanded;
- };
- };
- sysfw_fs_sr1_1 {
- filename = "sysfw.bin_fs_sr1_1";
- ti-fs-cert-fs.bin {
- filename = "ti-sysfw/ti-fs-firmware-j721e_sr1_1-hs-fs-cert.bin";
- type = "blob-ext";
- optional;
- };
- ti-fs-firmware-j721e-hs-fs-enc.bin {
- filename = "ti-sysfw/ti-fs-firmware-j721e_sr1_1-hs-fs-enc.bin";
- type = "blob-ext";
- optional;
- };
- };
- itb_fs_sr1_1 {
- filename = "sysfw-j721e_sr1_1-hs-fs-evm.itb";
- fit {
- description = "SYSFW and Config fragments";
- #address-cells = <1>;
- images {
- sysfw.bin {
- description = "sysfw";
- type = "firmware";
- arch = "arm";
- compression = "none";
- blob-ext {
- filename = "sysfw.bin_fs_sr1_1";
- };
- };
- board-cfg.bin {
- description = "board-cfg";
- type = "firmware";
- arch = "arm";
- compression = "none";
- board-cfg {
- filename = "board-cfg.bin";
- type = "blob-ext";
- };
-
- };
- pm-cfg.bin {
- description = "pm-cfg";
- type = "firmware";
- arch = "arm";
- compression = "none";
- pm-cfg {
- filename = "pm-cfg.bin";
- type = "blob-ext";
- };
- };
- rm-cfg.bin {
- description = "rm-cfg";
- type = "firmware";
- arch = "arm";
- compression = "none";
- rm-cfg {
- filename = "rm-cfg.bin";
- type = "blob-ext";
- };
- };
- sec-cfg.bin {
- description = "sec-cfg";
- type = "firmware";
- arch = "arm";
- compression = "none";
- sec-cfg {
- filename = "sec-cfg.bin";
- type = "blob-ext";
- };
- };
- };
- };
- };
-};
-
&binman {
tiboot3-j721e_sr2-hs-fs-evm.bin {
filename = "tiboot3-j721e_sr2-hs-fs-evm.bin";
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0-or-later */
-/*
- * (C) Copyright 2022 - Analog Devices, Inc.
- *
- * Written and/or maintained by Timesys Corporation
- *
- * Contact: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
- * Contact: Greg Malysa <greg.malysa@timesys.com>
- */
-#ifndef ARCH_ADI_SC5XX_SC5XX_H
-#define ARCH_ADI_SC5XX_SC5XX_H
-
-#include <linux/types.h>
-
-#define TWI0_CLKDIV 0x31001400 // TWI0 SCL Clock Divider Register
-#define TWI1_CLKDIV 0x31001500 // TWI1 SCL Clock Divider Register
-#define TWI2_CLKDIV 0x31001600 // TWI2 SCL Clock Divider Register
-
-const char *sc5xx_get_boot_mode(u32 *bmode);
-void sc5xx_enable_rgmii(void);
-
-void sc5xx_enable_ns_sharc_access(uintptr_t securec0_base);
-void sc5xx_disable_spu0(uintptr_t spu0_start, uintptr_t spu0_end);
-void sc5xx_enable_pmu(void);
-
-/**
- * Per-SoC init function to be used to initialize hw-specific things. Examples:
- * enable PMU on armv7, enable coresight timer on armv8, etc.
- */
-void sc5xx_soc_init(void);
-
-/*
- * Reconfigure SPI memory map region for OSPI use. The adi-spi3 driver
- * does not use the memory map, while the OSPI driver requires it. Only
- * available on sc59x and sc59x-64
- */
-void sc59x_remap_ospi(void);
-
-#endif
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0-or-later */
-/*
- * (C) Copyright 2022 - Analog Devices, Inc.
- *
- * Written and/or maintained by Timesys Corporation
- *
- * Contact: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
- * Contact: Greg Malysa <greg.malysa@timesys.com>
- */
-
-#ifndef BOARD_ADI_COMMON_SOC_H
-#define BOARD_ADI_COMMON_SOC_H
-
-#include <phy.h>
-
-void fixup_dp83867_phy(struct phy_device *phydev);
-
-#endif
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0-or-later */
-/*
- * (C) Copyright 2022 - Analog Devices, Inc.
- *
- * Written and/or maintained by Timesys Corporation
- *
- * Contact: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
- * Contact: Greg Malysa <greg.malysa@timesys.com>
- */
-#ifndef ARCH_ADI_SC5XX_SPL_H
-#define ARCH_ADI_SC5XX_SPL_H
-
-#include <linux/types.h>
-
-struct adi_boot_args {
- phys_addr_t addr;
- u32 flags;
- u32 cmd;
-};
-
-extern u32 bmode;
-
-/**
- * This table stores the arguments to the rom boot function per bootmode,
- * and it is populated per SoC in the corresponding SoC support file (sc7x, sc58x,
- * and so on).
- */
-extern const struct adi_boot_args adi_rom_boot_args[8];
-
-/**
- * Struct layout for the boot config is also specific to an SoC, so you should
- * only access it inside an SoC-specific boot hook function, which will be called
- * from the boot rom while going from SPL to proper u-boot
- */
-struct ADI_ROM_BOOT_CONFIG;
-int32_t adi_rom_boot_hook(struct ADI_ROM_BOOT_CONFIG *cfg, int32_t cause);
-
-typedef void (*adi_rom_boot_fn)(void *address, uint32_t flags, int32_t count,
- void *hook, uint32_t command);
-
-extern adi_rom_boot_fn adi_rom_boot;
-
-#endif
#ifndef __CLK_SYNTHESIZER_H
#define __CLK_SYNTHESIZER_H
-#include <linux/types.h>
-
#define CLK_SYNTHESIZER_ID_REG 0x0
#define CLK_SYNTHESIZER_XCSEL 0x05
#define CLK_SYNTHESIZER_MUX_REG 0x14
#define SCU_CLKDUTY_RGMII2TXCK_MASK (0x7f << SCU_CLKDUTY_RGMII2TXCK_SHIFT)
#ifndef __ASSEMBLY__
-#include <linux/types.h>
struct ast2500_clk_priv {
struct ast2500_scu *scu;
#define SCU_MISC_CTRL1_UART5_DIV BIT(12)
#ifndef __ASSEMBLY__
-#include <linux/types.h>
-
struct ast2600_scu {
uint32_t prot_key1; /* 0x000 */
uint32_t chip_id1; /* 0x004 */
#ifndef __FSL_SERDES_H__
#define __FSL_SERDES_H__
-#include <linux/types.h>
-
#ifdef CONFIG_FSL_LSCH3
enum srds_prtcl {
/*
#ifndef __ARCH_FSL_LSCH2_IMMAP_H__
#define __ARCH_FSL_LSCH2_IMMAP_H__
-#include <config.h>
#include <fsl_immap.h>
#ifndef __ASSEMBLY__
#include <linux/bitops.h>
#include <asm/io.h>
#include <asm/types.h>
-#include <asm/arch/imx-regs.h>
+#include <asm/arch/ddr.h>
#define DDRC_DDR_SS_GPR0 0x3d000000
#define DDRC_IPS_BASE_ADDR_0 0x3f400000
#ifndef __FSL_SERDES_H
#define __FSL_SERDES_H
-#include <linux/types.h>
-
enum srds_prtcl {
/*
* Nobody will check whether the device 'NONE' has been configured,
#ifndef __ASM_ARCH_CLOCK_H
#define __ASM_ARCH_CLOCK_H
-#include <stdbool.h>
-
#ifdef CONFIG_SYS_MX5_HCLK
#define MXC_HCLK CONFIG_SYS_MX5_HCLK
#else
#include <asm/mach-imx/sys_proto.h>
-struct wdog_regs;
-
void set_wdog_reset(struct wdog_regs *wdog);
#endif /* __SYS_PROTO_IMX7_ */
#ifndef _ASM_ARCH_BOOTROM_H
#define _ASM_ARCH_BOOTROM_H
-#include <linux/types.h>
-
/*
* Saved Stack pointer address.
* Access might be needed in some special cases.
#ifndef _ASM_ARCH_CLOCK_H
#define _ASM_ARCH_CLOCK_H
-#include <linux/types.h>
-
struct udevice;
/* define pll mode */
#ifndef _ASM_ARCH_GRF_rk3308_H
#define _ASM_ARCH_GRF_rk3308_H
-#include <linux/kernel.h>
-
struct rk3308_grf {
unsigned int gpio0a_iomux;
unsigned int reserved0;
#ifndef _SUNXI_PMIC_BUS_H
#define _SUNXI_PMIC_BUS_H
-#include <linux/types.h>
-
int pmic_bus_init(void);
int pmic_bus_read(u8 reg, u8 *data);
int pmic_bus_write(u8 reg, u8 data);
#ifndef _TVE_H
#define _TVE_H
-#include <linux/types.h>
-
enum tve_mode {
tve_mode_vga,
tve_mode_composite_pal,
* NVIDIA Corporation <www.nvidia.com>
*/
#include <asm/types.h>
-#include <asm/arch-tegra/tegra.h>
/* Stabilization delays, in usec */
#define PLL_STABILIZATION_DELAY (300)
#ifndef _TEGRA_CBOOT_H_
#define _TEGRA_CBOOT_H_
-#include <linux/errno.h>
-#include <linux/types.h>
#include <net.h>
#ifdef CONFIG_ARM64
#ifndef _TEGRA_GPIO_H_
#define _TEGRA_GPIO_H_
-#include <linux/types.h>
#include <dt-bindings/gpio/tegra-gpio.h>
#define TEGRA_GPIOS_PER_PORT 8
#include <asm/io.h>
#include <asm/types.h>
-#include <asm/arch/tegra.h>
struct udevice;
#ifndef __ASM_ESR_H
#define __ASM_ESR_H
-#include <stdbool.h>
#include <asm/memory.h>
#include <linux/const.h>
#include <config.h>
#include <linux/types.h>
-#include <asm/u-boot.h>
/* Architecture-specific global data */
struct arch_global_data {
#define __ASM_ARCH_IMX_GPIO_H
#if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__))
-#include <linux/types.h>
-
/* GPIO registers */
struct gpio_regs {
u32 gpio_dr; /* data */
#ifndef _DAVINCI_NAND_H_
#define _DAVINCI_NAND_H_
-#include <config.h>
#include <asm/arch/hardware.h>
#define NAND_READ_START 0x00
* Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
*/
+#include <common.h>
#include <linux/kbuild.h>
#include <linux/arm-smccc.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/mach-types.h>
* Copyright (C) 2001 Erik Mouw (J.A.K.Mouw@its.tudelft.nl)
*/
+#include <common.h>
#include <fdt_support.h>
#ifdef CONFIG_ARMV7_NONSEC
#include <asm/armv7.h>
* Copyright (C) 2001 Erik Mouw (J.A.K.Mouw@its.tudelft.nl)
*/
+#include <common.h>
#include <bootm.h>
#include <bootstage.h>
#include <command.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <cpu_func.h>
#include <log.h>
#include <asm/global_data.h>
#include <asm/armv7.h>
#include <asm/pl310.h>
#include <config.h>
+#include <common.h>
struct pl310_regs *const pl310 = (struct pl310_regs *)CFG_SYS_PL310_BASE;
/* for now: just dummy functions to satisfy the linker */
-#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <log.h>
#include <malloc.h>
* Copyright 2015 Konsulko Group, Matt Porter <mporter@konsulko.com>
*/
+#include <common.h>
#include <command.h>
/*
* (C) Copyright 2009 Wolfgang Denk <wd@denx.de>
*/
-#include <stdio.h>
-#include <linux/stddef.h>
-#include <linux/string.h>
+#include <common.h>
int raise (int signum)
{
/*
* Copyright 2019 Broadcom.
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <asm/gic.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <image.h>
#include <mapmem.h>
#include <asm/global_data.h>
* Philippe Robin, ARM Ltd. <philippe.robin@arm.com>
*/
+#include <common.h>
#include <cpu_func.h>
#include <efi_loader.h>
#include <irq_func.h>
* David Feng <fenghua@phytium.com.cn>
*/
+#include <common.h>
#include <asm/esr.h>
#include <asm/global_data.h>
#include <asm/ptrace.h>
* Kamil Lulko, <kamil.lulko@gmail.com>
*/
-#include <stdio.h>
+#include <common.h>
#include <cpu_func.h>
#include <irq_func.h>
-#include <vsprintf.h>
/*
* Upon exception entry ARMv7-M processors automatically save stack
* Copyright 2016 NXP Semiconductor, Inc.
*/
+#include <common.h>
#include <asm/cache.h>
#include <linux/libfdt.h>
#include <fdt_support.h>
* (C) Copyright 2004 Texas Insturments
*/
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <irq_func.h>
#include <fdtdec.h>
#include <fdt_support.h>
#include <fdt.h>
+#include <common.h>
#include <linux/errno.h>
#include <asm/system.h>
#include <asm/armv8/mmu.h>
* Tom Rini <trini@ti.com>
*/
+#include <common.h>
#include <config.h>
#include <init.h>
#include <log.h>
* Sysgo Real-Time Solutions, GmbH <www.elinos.com>
* Marius Groeger <mgroeger@sysgo.de>
*/
+#include <common.h>
#include <init.h>
#include <lmb.h>
#include <asm/global_data.h>
* bootz code:
* Copyright (C) 2012 Marek Vasut <marek.vasut@gmail.com>
*/
+#include <common.h>
#include <image.h>
#define LINUX_ARM_ZIMAGE_MAGIC 0x016f2818
* (C) Copyright 2021 Mark Kettenis <kettenis@openbsd.org>
*/
+#include <common.h>
#include <dm.h>
#include <dm/uclass-internal.h>
#include <efi_loader.h>
* (C) Copyright 2021 Copyright The Asahi Linux Contributors
*/
+#include <common.h>
#include <mailbox.h>
#include <malloc.h>
#include <asm/arch/rtkit.h>
#include <linux/apple-mailbox.h>
#include <linux/bitfield.h>
-#include <linux/errno.h>
-#include <linux/types.h>
#define APPLE_RTKIT_EP_MGMT 0
#define APPLE_RTKIT_EP_CRASHLOG 1
/*
* Copyright (c) 2016 Google, Inc
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <init.h>
#include <log.h>
* Copyright (C) 2016 Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <asm/io.h>
#include <asm/arch/scu_ast2500.h>
/*
* Copyright (c) Aspeed Technology Inc.
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <ram.h>
#include <timer.h>
/*
* Copyright (c) Aspeed Technology Inc.
*/
+#include <common.h>
#include <debug_uart.h>
#include <dm.h>
#include <spl.h>
* (C) Copyright 2016 Google, Inc
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/wdt.h>
#include <linux/err.h>
* Lead Tech Design <www.leadtechdesign.com>
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/at91_common.h>
#include <asm/arch/clk.h>
* Copyright (C) 2005 Ivan Kokshaysky
* Copyright (C) 2009 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
*/
-#include <config.h>
+#include <common.h>
#include <asm/global_data.h>
#include <asm/io.h>
#include <asm/arch/hardware.h>
* Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/io.h>
#include <asm/arch/hardware.h>
* Alex Zuepke <azu@sysgo.de>
*/
+#include <common.h>
#include <cpu_func.h>
#include <asm/io.h>
#include <asm/arch/hardware.h>
* Alex Zuepke <azu@sysgo.de>
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <time.h>
#include <asm/global_data.h>
* Lead Tech Design <www.leadtechdesign.com>
*/
+#include <common.h>
#include <dm.h>
#include <asm/io.h>
#include <asm/arch/at91sam9260_matrix.h>
* Lead Tech Design <www.leadtechdesign.com>
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/at91_common.h>
#include <asm/arch/clk.h>
* esd electronic system design gmbh <www.esd.eu>
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/at91_common.h>
#include <asm/arch/clk.h>
* Lead Tech Design <www.leadtechdesign.com>
*/
+#include <common.h>
#include <dm.h>
#include <asm/arch/at91_common.h>
#include <asm/arch/clk.h>
* Josh Wu <josh.wu@atmel.com>
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/at91_common.h>
#include <asm/arch/at91_pio.h>
* Lead Tech Design <www.leadtechdesign.com>
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/at91_common.h>
#include <asm/arch/clk.h>
* Copyright (C) 2012 Atmel Corporation
*/
+#include <common.h>
#include <asm/arch/at91_common.h>
#include <asm/arch/clk.h>
#include <asm/arch/gpio.h>
* Copyright (C) 2009 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
*/
-#include <config.h>
-#include <time.h>
+#include <common.h>
#include <asm/global_data.h>
#include <asm/io.h>
#include <asm/arch/hardware.h>
* Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <vsprintf.h>
#include <asm/io.h>
* someone puts a jffs2 into them)
* do a read-modify-write for partially programmed pages
*/
+#include <common.h>
#include <display_options.h>
#include <flash.h>
#include <log.h>
* Lead Tech Design <www.leadtechdesign.com>
*/
+#include <common.h>
#include <cpu_func.h>
#include <asm/io.h>
#include <asm/arch/hardware.h>
* Copyright (C) 2018 Microchip Technology Inc. and its subsidiaries
*/
+#include <common.h>
#include <asm/arch/at91_common.h>
#include <asm/arch/clk.h>
#include <asm/arch/gpio.h>
* Lead Tech Design <www.leadtechdesign.com>
*/
+#include <common.h>
#include <init.h>
#include <time.h>
#include <asm/global_data.h>
* Copyright (C) 2015 Wenyou Yang <wenyou.yang@atmel.com>
*/
-#include <config.h>
+#include <common.h>
#include <asm/global_data.h>
#include <linux/delay.h>
#include <linux/errno.h>
* Bo Shen <voice.shen@atmel.com>
*/
-#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <init.h>
#include <vsprintf.h>
* Wenyou Yang <wenyou.yang@atmel.com>
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/clk.h>
#include <asm/arch/sama5d2.h>
* Bo Shen <voice.shen@atmel.com>
*/
+#include <common.h>
#include <asm/arch/sama5d3.h>
#include <asm/arch/at91_common.h>
#include <asm/arch/clk.h>
* Bo Shen <voice.shen@atmel.com>
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/at91_common.h>
#include <asm/arch/clk.h>
* Bo Shen <voice.shen@atmel.com>
*/
+#include <common.h>
#include <init.h>
#include <time.h>
#include <asm/global_data.h>
* Wenyou Yang <wenyou.yang@atmel.com>
*/
-#include <config.h>
+#include <common.h>
#include <asm/hardware.h>
#include <asm/io.h>
#include <asm/arch/at91_sfr.h>
* Wenyou Yang <wenyou.yang@atmel.com>
*/
+#include <common.h>
#include <dm.h>
-#include <time.h>
#include <wdt.h>
#include <asm/io.h>
#include <asm/arch/hardware.h>
#ifndef AT91_COMMON_H
#define AT91_COMMON_H
-#include <linux/types.h>
-
void at91_can_hw_init(void);
void at91_gmac_hw_init(void);
void at91_macb_hw_init(void);
* Wenyou Yang <wenyou.yang@atmel.com>
*/
+#include <common.h>
#include <asm/hardware.h>
#include <asm/io.h>
#include <asm/arch/sama5_matrix.h>
* Wenyou Yang <wenyou.yang@atmel.com>
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/atmel_mpddrc.h>
#include <asm/arch/at91_common.h>
* Copyright (C) 2013 DENX Software Engineering, hs@denx.de
*/
-#include <time.h>
+#include <common.h>
#include <asm/hardware.h>
#include <asm/io.h>
#include <linux/delay.h>
* Lead Tech Design <www.leadtechdesign.com>
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/at91_common.h>
#include <asm/arch/at91sam9_sdramc.h>
* Bo Shen <voice.shen@atmel.com>
*/
+#include <common.h>
#include <hang.h>
#include <asm/io.h>
#include <asm/arch/at91_common.h>
* Bo Shen <voice.shen@atmel.com>
*/
-#include <config.h>
+#include <common.h>
#include <hang.h>
#include <init.h>
#include <log.h>
* Bo Shen <voice.shen@atmel.com>
*/
-#include <config.h>
+#include <common.h>
#include <hang.h>
#include <init.h>
#include <log.h>
* project.
*/
+#include <common.h>
#include <cpu_func.h>
#include <init.h>
#include <dm/device.h>
* (C) Copyright 2012 Stephen Warren
*/
+#include <common.h>
#include <cpu_func.h>
#include <log.h>
-#include <time.h>
#include <asm/cache.h>
#include <asm/io.h>
#include <asm/arch/base.h>
* (C) Copyright 2012 Stephen Warren
*/
+#include <common.h>
#include <memalign.h>
#include <phys2bus.h>
#include <asm/arch/mbox.h>
* project.
*/
-#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <asm/io.h>
#include <asm/arch/base.h>
/*
* Copyright 2022 Broadcom Ltd.
*/
+#include <common.h>
#include <asm/armv8/mmu.h>
#include <linux/sizes.h>
/*
* Copyright 2022 Broadcom Ltd.
*/
+#include <common.h>
#include <asm/armv8/mmu.h>
#include <linux/sizes.h>
/*
* Copyright 2022 Broadcom Ltd.
*/
+#include <common.h>
#include <asm/armv8/mmu.h>
#include <linux/sizes.h>
/*
* Copyright 2022 Broadcom Ltd.
*/
+#include <common.h>
#include <asm/armv8/mmu.h>
#include <linux/sizes.h>
/*
* Copyright 2022 Broadcom Ltd.
*/
+#include <common.h>
#include <asm/armv8/mmu.h>
#include <linux/sizes.h>
/*
* Copyright 2022 Broadcom Ltd.
*/
+#include <common.h>
#include <asm/armv8/mmu.h>
#include <linux/sizes.h>
/*
* Copyright 2022 Broadcom Ltd.
*/
+#include <common.h>
#include <asm/armv8/mmu.h>
#include <linux/sizes.h>
* Copyright (C) 2009 David Brownell
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <init.h>
#include <asm/arch/hardware.h>
* Copyright (C) 2011
* Heiko Schocher, DENX Software Engineering, hs@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <nand.h>
#include <ns16550.h>
* Copyright (C) 2011 OMICRON electronics GmbH
*/
+#include <common.h>
#include <asm/arch/davinci_misc.h>
#include <asm/arch/hardware.h>
#include <asm/arch/pinmux_defs.h>
#ifndef __MISC_H
#define __MISC_H
-#include <linux/types.h>
#include <asm/arch/hardware.h>
/* pin muxer definitions */
* Copyright (C) 2004 Texas Instruments.
*/
-#include <config.h>
+#include <common.h>
#include <env.h>
#include <i2c.h>
#include <init.h>
* Copyright (C) 2004 Texas Instruments.
*/
+#include <common.h>
#include <asm/arch/hardware.h>
#include <asm/io.h>
#include <asm/arch/davinci_misc.h>
* Copyright (C) 2004 Texas Instruments.
*/
+#include <common.h>
#include <asm/arch/hardware.h>
#include <asm/io.h>
* Copyright (C) 2007 Sergey Kubushyn <ksi@koi8.net>
*/
+#include <common.h>
#include <cpu_func.h>
#include <asm/io.h>
#include <asm/arch/timer_defs.h>
* Copyright (C) 2011
* Heiko Schocher, DENX Software Engineering, hs@denx.de.
*/
+#include <common.h>
#include <config.h>
#include <hang.h>
#include <init.h>
#include <spl.h>
+#include <asm/u-boot.h>
#include <asm/utils.h>
#include <nand.h>
#include <asm/arch/dm365_lowlevel.h>
* Copyright (C) 2007 Sergey Kubushyn <ksi@koi8.net>
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <time.h>
#include <asm/global_data.h>
* Minkyu Kang <mk7.kang@samsung.com>
*/
+#include <common.h>
#include <clock_legacy.h>
#include <log.h>
-#include <time.h>
-#include <mach/cpu.h>
#include <asm/io.h>
#include <asm/arch/clock.h>
#include <asm/arch/clk.h>
* MA 02111-1307 USA
*/
+#include <common.h>
#include <config.h>
#include <asm/io.h>
#include <asm/arch/cpu.h>
* Copyright (C) 2012 Samsung Electronics
*/
+#include <common.h>
#include <config.h>
#include <asm/io.h>
#include <asm/arch/clk.h>
* MA 02111-1307 USA
*/
-#include <linux/types.h>
-#include <mach/cpu.h>
#include <asm/arch/system.h>
#define DMC_OFFSET 0x10000
* Copyright (C) 2012 Samsung Electronics
*/
-#include <linux/types.h>
+#include <common.h>
#include <asm/arch/spl.h>
#include "clock_init.h"
* Copyright (C) 2012 Samsung Electronics
*/
+#include <common.h>
#include <config.h>
#include <asm/io.h>
#include <asm/arch/clock.h>
#ifndef _SMDK5250_SETUP_H
#define _SMDK5250_SETUP_H
-#include <linux/types.h>
#include <asm/arch/dmc.h>
#define NOT_AVAILABLE 0
#define __ASM_ARM_ARCH_POWER_H_
#ifndef __ASSEMBLY__
-#include <linux/types.h>
-
struct exynos4_power {
unsigned int om_stat;
unsigned char res1[0x8];
* MA 02111-1307 USA
*/
+#include <common.h>
#include <config.h>
#include <debug_uart.h>
#include <asm/system.h>
* Thomas Abraham <thomas.ab@samsung.com>
*/
+#include <common.h>
#include <asm/armv8/mmu.h>
#include <linux/sizes.h>
* Abhilash Kesavan <a.kesavan@samsung.com>
*/
+#include <common.h>
#include <fdtdec.h>
#include <log.h>
#include <asm/gpio.h>
* Donghwa Lee <dh09.lee@samsung.com>
*/
-#include <mach/cpu.h>
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/power.h>
* Minkyu Kang <mk7.kang@samsung.com>
*/
+#include <common.h>
#include <cpu_func.h>
#include <asm/cache.h>
#include <asm/io.h>
* Copyright (C) 2012 Samsung Electronics
*/
+#include <common.h>
#include <config.h>
#include <init.h>
#include <log.h>
* Donghwa Lee <dh09.lee@samsung.com>
*/
-#include <config.h>
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/system.h>
* Copyright (C) 2012 Samsung Electronics
*/
-#include <mach/cpu.h>
+#include <common.h>
#include <asm/arch/tzpc.h>
#include <asm/io.h>
* Based on arm926ejs/mx27/timer.c
*/
+#include <common.h>
#include <init.h>
#include <asm/io.h>
#include <asm/arch-armv7/systimer.h>
* (C) Copyright 2023 Yang Xiwen <forbidden405@outlook.com>
*/
+#include <common.h>
#include <fdtdec.h>
#include <init.h>
#include <asm/system.h>
* (C) Copyright 2023 Yang Xiwen <forbidden405@outlook.com>
*/
+#include <common.h>
#include <asm/armv8/mmu.h>
static struct mm_region histb_mem_map[] = {
* Copyright 2015 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <asm/armv7.h>
#include <asm/cache.h>
/*
* Copyright (C) 2012 Boundary Devices Inc.
*/
+#include <common.h>
#include <linux/errno.h>
#include <asm/io.h>
#include <asm/mach-imx/boot_mode.h>
* Command for encapsulating DEK blob
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <log.h>
#include <malloc.h>
#include <asm/arch/clock.h>
#include <mapmem.h>
#include <tee.h>
-#include <vsprintf.h>
#ifdef CONFIG_IMX_SECO_DEK_ENCAP
#include <imx_container.h>
#include <firmware/imx/sci/sci.h>
/*
* Copyright (C) 2012 Boundary Devices Inc.
*/
+#include <common.h>
#include <command.h>
#include <asm/arch/imx-regs.h>
#include <asm/arch/mxc_hdmi.h>
#include <asm/arch/clock.h>
#include <linux/compiler.h>
#include <command.h>
-#include <config.h>
+#include <common.h>
#include <env.h>
#include <fsl_sec.h>
#include <mapmem.h>
* SPDX-License-Identifier: GPL-2.0+
*/
+#include <common.h>
#include <command.h>
#include <log.h>
#include <malloc.h>
*/
#include <bootm.h>
+#include <common.h>
#include <dm.h>
#include <init.h>
#include <log.h>
*
*/
/* #define DEBUG */
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <asm/arch/imx-regs.h>
* Copyright 2013 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/imx-regs.h>
#include <asm/arch/iomux-vf610.h>
* Copyright 2022 NXP
*/
+#include <common.h>
#include <command.h>
#include <errno.h>
#include <imx_container.h>
* Copyright (C) 2010-2015 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <command.h>
#include <config.h>
#include <display_options.h>
/*
* Copyright (C) 2012 Boundary Devices Inc.
*/
+#include <common.h>
#include <malloc.h>
-#include <time.h>
#include <asm/arch/clock.h>
#include <asm/arch/imx-regs.h>
#include <linux/delay.h>
* Copyright 2019 NXP
*/
-#include <config.h>
+#include <common.h>
#include <errno.h>
#include <imx_container.h>
#include <log.h>
* Copyright 2018-2019, 2022 NXP
*/
+#include <common.h>
#include <command.h>
#include <errno.h>
#include <imx_container.h>
* Copyright 2018 NXP
*/
+#include <common.h>
#include <asm/global_data.h>
#include <linux/errno.h>
#include <asm/arch/clock.h>
* Copyright 2018, 2021 NXP
*/
+#include <common.h>
#include <clk.h>
#include <cpu.h>
#include <cpu_func.h>
* Copyright 2019 NXP
*/
+#include <common.h>
#include <log.h>
#include <firmware/imx/sci/sci.h>
#include <asm/arch/sys_proto.h>
* Copyright 2018 NXP
*/
+#include <common.h>
#include <log.h>
#include <asm/global_data.h>
#include <asm/io.h>
// SPDX-License-Identifier: GPL-2.0+
+#include <common.h>
#include <log.h>
#include <firmware/imx/sci/sci.h>
#include <asm/mach-imx/sys_proto.h>
#include <command.h>
#include <log.h>
#include <stddef.h>
+#include <common.h>
#include <firmware/imx/sci/sci.h>
#include <asm/arch-imx8/imx8-pins.h>
#include <asm/arch-imx8/snvs_security_sc.h>
* Peng Fan <peng.fan@nxp.com>
*/
+#include <common.h>
#include <asm/arch/clock.h>
#include <asm/arch/imx-regs.h>
#include <asm/arch/sys_proto.h>
* Peng Fan <peng.fan@nxp.com>
*/
+#include <common.h>
#include <command.h>
#include <asm/arch/clock.h>
#include <asm/arch/imx-regs.h>
* Peng Fan <peng.fan@nxp.com>
*/
+#include <common.h>
#include <asm/arch/clock.h>
#include <asm/arch/imx-regs.h>
#include <asm/io.h>
#include <asm/io.h>
#include <asm/psci.h>
#include <asm/secure.h>
+#include <common.h>
#include <cpu_func.h>
#include <debug_uart.h>
#include <fsl_wdog.h>
* Peng Fan <peng.fan@nxp.com>
*/
-#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <event.h>
#include <init.h>
* Copyright 2021 NXP
*/
+#include <common.h>
#include <div64.h>
#include <asm/io.h>
#include <errno.h>
* Copyright 2020 NXP
*/
+#include <common.h>
#include <command.h>
#include <div64.h>
#include <asm/arch/imx-regs.h>
* Copyright 2020-2021 NXP
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/imx-regs.h>
#include <asm/arch/iomux.h>
* Copyright 2021 NXP
*/
+#include <common.h>
#include <div64.h>
#include <asm/io.h>
#include <errno.h>
* Copyright 2021 NXP
*/
-#include <config.h>
-#include <linux/errno.h>
+#include <common.h>
#include <asm/io.h>
#include <asm/types.h>
#include <asm/arch/imx-regs.h>
* Peng Fan <peng.fan@nxp.com>
*/
+#include <common.h>
#include <command.h>
#include <asm/arch/clock.h>
#include <asm/arch/imx-regs.h>
* Peng Fan <peng.fan@nxp.com>
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <asm/arch/clock.h>
#include <asm/arch/sys_proto.h>
* Copyright 2022 NXP
*/
+#include <common.h>
#include <command.h>
#include <log.h>
#include <imx_sip.h>
-#include <vsprintf.h>
#include <linux/arm-smccc.h>
-#include <linux/errno.h>
int arch_auxiliary_core_check_up(u32 core_id)
{
* Peng Fan <peng.fan@nxp.com>
*/
-#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <init.h>
#include <log.h>
* Copyright 2022 NXP
*/
+#include <common.h>
#include <log.h>
-#include <linux/errno.h>
#include <asm/io.h>
#include <asm/types.h>
#include <asm/arch/imx-regs.h>
* Copyright (C) 2016 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <log.h>
-#include <asm/arch/imx-regs.h>
#include <asm/io.h>
#include <asm/mach-imx/sys_proto.h>
#include <command.h>
#include <elf.h>
#include <imx_sip.h>
-#include <vsprintf.h>
#include <linux/arm-smccc.h>
#include <linux/compiler.h>
-#include <linux/errno.h>
-#include <linux/string.h>
#include <cpu_func.h>
#ifndef CONFIG_IMX8
* Author(s): Giulio Benetti <giulio.benetti@benettiengineering.com>
*/
+#include <common.h>
#include <init.h>
#include <asm/io.h>
#include <asm/armv7_mpu.h>
*
* Copyright (C) 2004-2011 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/imx-regs.h>
#include <asm/mach-imx/iomux-v3.h>
* Peng Fan <peng.fan@nxp.com>
*/
+#include <common.h>
#include <asm/arch/imx-regs.h>
#include <asm/io.h>
#include <asm/arch/sys_proto.h>
* Copyright 2013 Stefan Roese <sr@denx.de>
*/
+#include <common.h>
#include <lmb.h>
#include <log.h>
#include <asm/arch/sys_proto.h>
* Copyright (C) 2017 NXP
*/
+#include <common.h>
#include <asm/arch/imx-regs.h>
#include <asm/arch/sys_proto.h>
#include <asm/io.h>
// SPDX-License-Identifier: GPL-2.0+
-#include <config.h>
+#include <common.h>
#include <asm/io.h>
#if defined(CONFIG_MX53)
* (C) Copyright 2009 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <command.h>
#include <log.h>
#include <asm/io.h>
* Patrick Bruenn <p.bruenn@beckhoff.com>
*/
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
* (C) Copyright 2009 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <cpu_func.h>
#include <asm/arch/imx-regs.h>
#include <asm/arch/clock.h>
* Copyright (C) 2010-2011 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <command.h>
#include <div64.h>
#include <log.h>
-#include <time.h>
#include <asm/io.h>
#include <linux/errno.h>
#include <asm/arch/imx-regs.h>
* Author: Tim Harvey <tharvey@gateworks.com>
*/
+#include <common.h>
#include <hang.h>
#include <log.h>
#include <linux/delay.h>
#include <asm/mach-imx/iomux-v3.h>
#include <asm/mach-imx/boot_mode.h>
#include <asm/io.h>
-#include <config.h>
+#include <common.h>
#include <fsl_esdhc_imx.h>
#include <linux/delay.h>
#include <linux/sizes.h>
* Copyright 2019 NXP
*/
+#include <common.h>
#include <fdt_support.h>
#include <asm/io.h>
#include <asm/arch/sys_proto.h>
* (C) Copyright 2009 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <cpu_func.h>
#include <asm/io.h>
#include <linux/errno.h>
#include <asm/arch/sys_proto.h>
#include <asm/global_data.h>
#include <asm/io.h>
-#include <config.h>
+#include <common.h>
#include <env.h>
DECLARE_GLOBAL_DATA_PTR;
* Copyright 2021 NXP
*/
+#include <common.h>
#include <env.h>
#include <init.h>
#include <linux/delay.h>
* Peng Fan <Peng.Fan@freescale.com>
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <command.h>
#include <div64.h>
#include <log.h>
-#include <time.h>
#include <asm/global_data.h>
#include <asm/io.h>
#include <linux/errno.h>
* Peng Fan <Peng.Fan@freescale.com>
*/
+#include <common.h>
#include <div64.h>
#include <asm/io.h>
#include <linux/errno.h>
#include <asm/arch/imx-regs.h>
#include <asm/arch/crm_regs.h>
#include <asm/arch/mx7-ddr.h>
+#include <common.h>
#include <linux/delay.h>
/*
#include <asm/armv7.h>
#include <asm/gic.h>
#include <linux/bitops.h>
+#include <common.h>
#include <fsl_wdog.h>
#define GPC_LPCR_A7_BSC 0x0
* Copyright 2021 NXP
*/
+#include <common.h>
#include <init.h>
#include <asm/io.h>
#include <asm/arch/imx-regs.h>
* Copyright (C) 2016 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <command.h>
#include <div64.h>
/*
* Copyright (C) 2016 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <asm/arch/imx-regs.h>
* Copyright (C) 2016 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <div64.h>
#include <log.h>
#include <asm/io.h>
* Copyright (C) 2016 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <div64.h>
#include <log.h>
#include <asm/io.h>
* Copyright 2021 NXP
*/
-#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <init.h>
#include <log.h>
*/
#include <asm/io.h>
+#include <common.h>
#include <command.h>
#include <fsl_sec.h>
/*
* Copyright (C) 2016 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/imx-regs.h>
#include <asm/mach-imx/rdc-sema.h>
* TsiChung Liew (Tsi-Chung.Liew@freescale.com)
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <asm/arch/imx-regs.h>
#include <asm/arch/clock.h>
* Author: Tim Harvey <tharvey@gateworks.com>
*/
-#include <config.h>
+#include <common.h>
#include <hang.h>
#include <init.h>
#include <log.h>
* Copyright 2019 NXP
*/
+#include <common.h>
#include <errno.h>
#include <image.h>
#include <imx_container.h>
* The file use ls102xa/timer.c as a reference.
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <time.h>
#include <asm/global_data.h>
* (C) Copyright 2009 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <init.h>
#include <time.h>
#include <asm/io.h>
// SPDX-License-Identifier: GPL-2.0+
-#include <stdio.h>
+#include <common.h>
#include <env.h>
#include <linux/errno.h>
-#include <asm/arch/imx-regs.h>
#include <asm/mach-imx/video.h>
#ifdef CONFIG_IMX_HDMI
endif
obj-y += common.o security.o
obj-$(CONFIG_SOC_K3_AM625) += am62x/
-obj-$(CONFIG_SOC_K3_AM642) += am64x/
}
}
+static u32 __get_backup_bootmedia(u32 main_devstat)
+{
+ u32 bkup_bootmode =
+ (main_devstat & MAIN_DEVSTAT_BACKUP_BOOTMODE_MASK) >>
+ MAIN_DEVSTAT_BACKUP_BOOTMODE_SHIFT;
+ u32 bkup_bootmode_cfg =
+ (main_devstat & MAIN_DEVSTAT_BACKUP_BOOTMODE_CFG_MASK) >>
+ MAIN_DEVSTAT_BACKUP_BOOTMODE_CFG_SHIFT;
+
+ switch (bkup_bootmode) {
+ case BACKUP_BOOT_DEVICE_UART:
+ return BOOT_DEVICE_UART;
+
+ case BACKUP_BOOT_DEVICE_DFU:
+ if (bkup_bootmode_cfg & MAIN_DEVSTAT_BACKUP_USB_MODE_MASK)
+ return BOOT_DEVICE_USB;
+ return BOOT_DEVICE_DFU;
+
+
+ case BACKUP_BOOT_DEVICE_ETHERNET:
+ return BOOT_DEVICE_ETHERNET;
+
+ case BACKUP_BOOT_DEVICE_MMC:
+ if (bkup_bootmode_cfg)
+ return BOOT_DEVICE_MMC2;
+ return BOOT_DEVICE_MMC1;
+
+ case BACKUP_BOOT_DEVICE_SPI:
+ return BOOT_DEVICE_SPI;
+
+ case BACKUP_BOOT_DEVICE_I2C:
+ return BOOT_DEVICE_I2C;
+ };
+
+ return BOOT_DEVICE_RAM;
+}
+
+static u32 __get_primary_bootmedia(u32 main_devstat)
+{
+ u32 bootmode = (main_devstat & MAIN_DEVSTAT_PRIMARY_BOOTMODE_MASK) >>
+ MAIN_DEVSTAT_PRIMARY_BOOTMODE_SHIFT;
+ u32 bootmode_cfg =
+ (main_devstat & MAIN_DEVSTAT_PRIMARY_BOOTMODE_CFG_MASK) >>
+ MAIN_DEVSTAT_PRIMARY_BOOTMODE_CFG_SHIFT;
+
+ switch (bootmode) {
+ case BOOT_DEVICE_OSPI:
+ fallthrough;
+ case BOOT_DEVICE_QSPI:
+ fallthrough;
+ case BOOT_DEVICE_XSPI:
+ fallthrough;
+ case BOOT_DEVICE_SPI:
+ return BOOT_DEVICE_SPI;
+
+ case BOOT_DEVICE_ETHERNET_RGMII:
+ fallthrough;
+ case BOOT_DEVICE_ETHERNET_RMII:
+ return BOOT_DEVICE_ETHERNET;
+
+ case BOOT_DEVICE_EMMC:
+ return BOOT_DEVICE_MMC1;
+
+ case BOOT_DEVICE_NAND:
+ return BOOT_DEVICE_NAND;
+
+ case BOOT_DEVICE_MMC:
+ if ((bootmode_cfg & MAIN_DEVSTAT_PRIMARY_MMC_PORT_MASK) >>
+ MAIN_DEVSTAT_PRIMARY_MMC_PORT_SHIFT)
+ return BOOT_DEVICE_MMC2;
+ return BOOT_DEVICE_MMC1;
+
+ case BOOT_DEVICE_DFU:
+ if ((bootmode_cfg & MAIN_DEVSTAT_PRIMARY_USB_MODE_MASK) >>
+ MAIN_DEVSTAT_PRIMARY_USB_MODE_SHIFT)
+ return BOOT_DEVICE_USB;
+ return BOOT_DEVICE_DFU;
+
+ case BOOT_DEVICE_NOBOOT:
+ return BOOT_DEVICE_RAM;
+ }
+
+ return bootmode;
+}
+
u32 spl_boot_device(void)
{
- return get_boot_device();
+ u32 devstat = readl(CTRLMMR_MAIN_DEVSTAT);
+
+ if (bootindex == K3_PRIMARY_BOOTMODE)
+ return __get_primary_bootmedia(devstat);
+ else
+ return __get_backup_bootmedia(devstat);
}
+++ /dev/null
-# SPDX-License-Identifier: GPL-2.0+
-obj-y += boot.o
+++ /dev/null
-// SPDX-License-Identifier: GPL-2.0+
-#include <asm/io.h>
-#include <asm/arch/hardware.h>
-#include <asm/arch/spl.h>
-
-static u32 __get_backup_bootmedia(u32 main_devstat)
-{
- u32 bkup_bootmode =
- (main_devstat & MAIN_DEVSTAT_BACKUP_BOOTMODE_MASK) >>
- MAIN_DEVSTAT_BACKUP_BOOTMODE_SHIFT;
- u32 bkup_bootmode_cfg =
- (main_devstat & MAIN_DEVSTAT_BACKUP_BOOTMODE_CFG_MASK) >>
- MAIN_DEVSTAT_BACKUP_BOOTMODE_CFG_SHIFT;
-
- switch (bkup_bootmode) {
- case BACKUP_BOOT_DEVICE_UART:
- return BOOT_DEVICE_UART;
-
- case BACKUP_BOOT_DEVICE_DFU:
- if (bkup_bootmode_cfg & MAIN_DEVSTAT_BACKUP_USB_MODE_MASK)
- return BOOT_DEVICE_USB;
- return BOOT_DEVICE_DFU;
-
- case BACKUP_BOOT_DEVICE_ETHERNET:
- return BOOT_DEVICE_ETHERNET;
-
- case BACKUP_BOOT_DEVICE_MMC:
- if (bkup_bootmode_cfg)
- return BOOT_DEVICE_MMC2;
- return BOOT_DEVICE_MMC1;
-
- case BACKUP_BOOT_DEVICE_SPI:
- return BOOT_DEVICE_SPI;
-
- case BACKUP_BOOT_DEVICE_I2C:
- return BOOT_DEVICE_I2C;
- };
-
- return BOOT_DEVICE_RAM;
-}
-
-static u32 __get_primary_bootmedia(u32 main_devstat)
-{
- u32 bootmode = (main_devstat & MAIN_DEVSTAT_PRIMARY_BOOTMODE_MASK) >>
- MAIN_DEVSTAT_PRIMARY_BOOTMODE_SHIFT;
- u32 bootmode_cfg =
- (main_devstat & MAIN_DEVSTAT_PRIMARY_BOOTMODE_CFG_MASK) >>
- MAIN_DEVSTAT_PRIMARY_BOOTMODE_CFG_SHIFT;
-
- switch (bootmode) {
- case BOOT_DEVICE_OSPI:
- fallthrough;
- case BOOT_DEVICE_QSPI:
- fallthrough;
- case BOOT_DEVICE_XSPI:
- fallthrough;
- case BOOT_DEVICE_SPI:
- return BOOT_DEVICE_SPI;
-
- case BOOT_DEVICE_ETHERNET_RGMII:
- fallthrough;
- case BOOT_DEVICE_ETHERNET_RMII:
- return BOOT_DEVICE_ETHERNET;
-
- case BOOT_DEVICE_EMMC:
- return BOOT_DEVICE_MMC1;
-
- case BOOT_DEVICE_NAND:
- return BOOT_DEVICE_NAND;
-
- case BOOT_DEVICE_MMC:
- if ((bootmode_cfg & MAIN_DEVSTAT_PRIMARY_MMC_PORT_MASK) >>
- MAIN_DEVSTAT_PRIMARY_MMC_PORT_SHIFT)
- return BOOT_DEVICE_MMC2;
- return BOOT_DEVICE_MMC1;
-
- case BOOT_DEVICE_DFU:
- if ((bootmode_cfg & MAIN_DEVSTAT_PRIMARY_USB_MODE_MASK) >>
- MAIN_DEVSTAT_PRIMARY_USB_MODE_SHIFT)
- return BOOT_DEVICE_USB;
- return BOOT_DEVICE_DFU;
-
- case BOOT_DEVICE_NOBOOT:
- return BOOT_DEVICE_RAM;
- }
-
- return bootmode;
-}
-
-u32 get_boot_device(void)
-{
- u32 devstat = readl(CTRLMMR_MAIN_DEVSTAT);
- u32 bootmode = *(u32 *)(CONFIG_SYS_K3_BOOT_PARAM_TABLE_INDEX);
- u32 bootmedia;
-
- if (bootmode == K3_PRIMARY_BOOTMODE)
- bootmedia = __get_primary_bootmedia(devstat);
- else
- bootmedia = __get_backup_bootmedia(devstat);
-
- debug("%s: devstat = 0x%x bootmedia = 0x%x bootmode = %d\n",
- __func__, devstat, bootmedia, bootmode);
-
- return bootmedia;
-}
* Copyright (c) 2012 Michael Walle
* Michael Walle <michael@walle.cc>
*/
+#include <common.h>
#include <asm/arch/cpu.h>
#include <asm/cache.h>
* Written-by: Prafulla Wadaskar <prafulla@marvell.com>
*/
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <env.h>
#ifndef __KIRKWOOD_MPP_H
#define __KIRKWOOD_MPP_H
-#include <linux/types.h>
-
#define MPP(_num, _sel, _in, _out, _F6180, _F6190, _F6192, _F6281) ( \
/* MPP number */ ((_num) & 0xff) | \
/* MPP select value */ (((_sel) & 0xf) << 8) | \
* warranty of any kind, whether express or implied.
*/
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <asm/arch/cpu.h>
* Copyright (C) 2011 by Vladimir Zapolskiy <vz@mleia.com>
*/
+#include <common.h>
#include <clock_legacy.h>
#include <div64.h>
#include <asm/arch/cpu.h>
* Copyright (C) 2011-2015 by Vladimir Zapolskiy <vz@mleia.com>
*/
+#include <common.h>
#include <cpu_func.h>
#include <init.h>
#include <net.h>
* Copyright (C) 2011 by Vladimir Zapolskiy <vz@mleia.com>
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <ns16550.h>
* This code runs from SRAM.
*/
+#include <common.h>
#include <netdev.h>
#include <asm/arch/cpu.h>
#include <asm/arch/clk.h>
* Copyright (C) 2011 Vladimir Zapolskiy <vz@mleia.com>
*/
+#include <common.h>
#include <init.h>
#include <time.h>
#include <asm/arch/cpu.h>
config TARGET_MT7623
bool "MediaTek MT7623 SoC"
select CPU_V7A
- select MMC_SUPPORTS_TUNING
help
The MediaTek MT7623 is a ARM-based SoC with a quad-core Cortex-A7
including NEON and GPU, Mali-450 graphics, several DDR3 options,
* Copyright (C) 2018 MediaTek Inc.
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <init.h>
#include <asm/armv8/mmu.h>
#include <asm/system.h>
#include <asm/global_data.h>
+#include <asm/u-boot.h>
#include <linux/sizes.h>
DECLARE_GLOBAL_DATA_PTR;
* Copyright (C) 2018 MediaTek Inc.
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <linux/io.h>
*/
#include <clk.h>
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <init.h>
#include <asm/armv8/mmu.h>
#include <asm/system.h>
#include <asm/global_data.h>
+#include <asm/u-boot.h>
#include <linux/sizes.h>
DECLARE_GLOBAL_DATA_PTR;
#include <asm/armv8/mmu.h>
#include <asm/system.h>
#include <asm/global_data.h>
+#include <asm/u-boot.h>
#include <linux/sizes.h>
DECLARE_GLOBAL_DATA_PTR;
#include <init.h>
#include <asm/armv8/mmu.h>
#include <asm/global_data.h>
+#include <asm/u-boot.h>
#include <asm/system.h>
DECLARE_GLOBAL_DATA_PTR;
*/
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <ram.h>
*/
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <init.h>
*/
#include <clk.h>
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <fdtdec.h>
*/
#include <clk.h>
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <fdtdec.h>
*/
#include <clk.h>
+#include <common.h>
#include <hang.h>
#include <init.h>
#include <spl.h>
* (C) Copyright 2023 SberDevices, Inc.
*/
+#include <common.h>
#include <asm/arch/a1.h>
#include <asm/arch/boot.h>
#include <asm/armv8/mmu.h>
#include <asm/io.h>
#include <linux/compiler.h>
-#include <linux/errno.h>
#include <linux/sizes.h>
phys_size_t get_effective_memsize(void)
* (C) Copyright 2018 Neil Armstrong <narmstrong@baylibre.com>
*/
+#include <common.h>
#include <init.h>
#include <net.h>
#include <asm/arch/boot.h>
* (C) Copyright 2016 Beniamino Galvani <b.galvani@gmail.com>
*/
+#include <common.h>
#include <cpu_func.h>
#include <fastboot.h>
#include <init.h>
* (C) Copyright 2018 Neil Armstrong <narmstrong@baylibre.com>
*/
+#include <common.h>
#include <init.h>
#include <log.h>
#include <net.h>
* (C) Copyright 2018 Neil Armstrong <narmstrong@baylibre.com>
*/
+#include <common.h>
#include <init.h>
#include <net.h>
#include <asm/arch/boot.h>
* (C) Copyright 2019 Neil Armstrong <narmstrong@baylibre.com>
*/
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/io.h>
* Secure monitor calls.
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <regmap.h>
* Copyright (C) 2018 Marvell International Ltd.
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <linux/libfdt.h>
* Copyright (C) 2018 Marvell International Ltd.
*/
+#include <common.h>
#include <asm/arch-armada8k/cache_llc.h>
#include <asm/io.h>
#include <asm/arch/cpu.h>
* Copyright (C) 2016 Stefan Roese <sr@denx.de>
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <init.h>
* Copyright (C) 2020 Marek Behún <kabel@kernel.org>
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <fdtdec.h>
*/
#include <config.h>
+#include <common.h>
#include <asm/io.h>
#include <linux/delay.h>
-#include <linux/errno.h>
-#include <linux/types.h>
#include <mach/mbox.h>
#include <mach/soc.h>
* Copyright (C) 2021 Pali Rohár <pali@kernel.org>
*/
+#include <common.h>
#include <asm/arch/soc.h>
#include <asm/io.h>
#include <linux/bitops.h>
#include <linux/delay.h>
-#include <linux/errno.h>
#include <mach/mbox.h>
#define RWTM_BASE (MVEBU_REGISTER(0xb0000))
* Copyright (C) 2016 Stefan Roese <sr@denx.de>
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <fdtdec.h>
* Copyright (C) 2016 Stefan Roese <sr@denx.de>
*/
-#include <config.h>
+#include <common.h>
#include <asm/arch/cpu.h>
#include <asm/arch/soc.h>
#include <asm/global_data.h>
* Copyright (C) 2014-2016 Stefan Roese <sr@denx.de>
*/
-#include <config.h>
+#include <common.h>
#include <ahci.h>
#include <cpu_func.h>
#include <init.h>
*/
#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/io.h>
*/
#include <config.h>
+#include <common.h>
#include <errno.h>
#include <asm/io.h>
#include <asm/arch/cpu.h>
* Written-by: Prafulla Wadaskar <prafulla@marvell.com>
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/cpu.h>
#include <asm/arch/soc.h>
* mvebu_mbus_del_window().
*/
-#include <config.h>
+#include <common.h>
#include <malloc.h>
#include <linux/bitops.h>
#include <linux/errno.h>
* Copyright (C) Marvell International Ltd. and its affiliates
*/
+#include <common.h>
#include <spl.h>
#include <asm/io.h>
#include <asm/arch/cpu.h>
* Copyright (C) Marvell International Ltd. and its affiliates
*/
-#include <config.h>
+#include <common.h>
#include <spl.h>
#include <asm/io.h>
#include <asm/arch/cpu.h>
* Copyright (C) Marvell International Ltd. and its affiliates
*/
+#include <common.h>
#include <spl.h>
#include <asm/io.h>
#include <asm/arch/cpu.h>
* Copyright (C) Marvell International Ltd. and its affiliates
*/
+#include <common.h>
#include <spl.h>
#include <asm/io.h>
#include <asm/arch/cpu.h>
* Copyright (C) Marvell International Ltd. and its affiliates
*/
-#include <config.h>
+#include <common.h>
#include <i2c.h>
#include <spl.h>
#include <asm/io.h>
* Copyright (C) Marvell International Ltd. and its affiliates
*/
+#include <common.h>
#include <spl.h>
#include <asm/io.h>
#include <asm/arch/cpu.h>
* Copyright (C) 2014-2016 Stefan Roese <sr@denx.de>
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <fdtdec.h>
* Copyright (C) 2024 Marek Behún <kabel@kernel.org>
*/
+#include <common.h>
#include <dm.h>
#include <dm/lists.h>
#include <regmap.h>
* Hyunseok, Jung <hsjung@nexell.co.kr>
*/
+#include <common.h>
#include <command.h>
-#include <vsprintf.h>
#include <linux/err.h>
#include <asm/io.h>
#include <asm/arch/nexell.h>
#ifndef MIPI_DISPLAY_H
#define MIPI_DISPLAY_H
-#include <linux/types.h>
-
/* MIPI DSI Processor-to-Peripheral transaction types */
enum {
MIPI_DSI_V_SYNC_START = 0x01,
#ifndef __NEXELL_RESET__
#define __NEXELL_RESET__
-#include <linux/types.h>
-
#define NUMBER_OF_RESET_MODULE_PIN 69
enum rstcon {
*FIXME : Not support device tree & reset control driver.
* will remove after support device tree & reset control driver.
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/nexell.h>
#include <asm/arch/reset.h>
* Youngbok, Park <park@nexell.co.kr>
*/
+#include <common.h>
#include <asm/arch/nexell.h>
#include <asm/arch/clk.h>
#include <asm/arch/reset.h>
* Hyunseok, Jung <hsjung@nexell.co.kr>
*/
+#include <common.h>
#include <log.h>
#include <asm/io.h>
* Copyright (c) 2021 Nuvoton Technology Corp.
*/
+#include <common.h>
#include <cpu_func.h>
#include <asm/armv7.h>
#include <asm/io.h>
* Copyright (c) 2021 Nuvoton Technology Corp.
*/
-#include <config.h>
+#include <common.h>
#include <asm/io.h>
#include <asm/pl310.h>
* Copyright (c) 2022 Nuvoton Technology Corp.
*/
+#include <common.h>
#include <dm.h>
#include <asm/global_data.h>
#include <asm/io.h>
* Copyright (c) 2022 Nuvoton Technology Corp.
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/gcr.h>
#include <asm/arch/rst.h>
* https://spdx.org/licenses
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/board.h>
#include <asm/arch/clock.h>
* https://spdx.org/licenses
*/
+#include <common.h>
#include <asm/armv8/mmu.h>
#include <asm/global_data.h>
#include <asm/io.h>
* https://spdx.org/licenses
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/board.h>
#include <asm/arch/clock.h>
* https://spdx.org/licenses
*/
+#include <common.h>
#include <asm/armv8/mmu.h>
#include <asm/global_data.h>
#include <asm/io.h>
* Andrii Tseglytskyi <andrii.tseglytskyi@ti.com>
*/
+#include <common.h>
#include <asm/omap_common.h>
#include <asm/arch/clock.h>
#include <asm/io.h>
* Copyright (C) 2011, Texas Instruments, Incorporated - https://www.ti.com/
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <debug_uart.h>
#include <errno.h>
* Copyright (C) 2017, Grinn - http://grinn-global.com/
*/
+#include <common.h>
#include <init.h>
#include <asm/arch/clock.h>
#include <asm/arch/clk_synthesizer.h>
* Copyright (C) 2016, Texas Instruments, Incorporated - https://www.ti.com/
*/
-#include <stdio.h>
+
+#include <common.h>
#include <asm/arch/clk_synthesizer.h>
#include <i2c.h>
*
* Copyright (C) 2013, Texas Instruments, Incorporated - https://www.ti.com/
*/
+#include <common.h>
#include <hang.h>
#include <init.h>
#include <log.h>
* Copyright (C) 2013, Texas Instruments, Incorporated - https://www.ti.com/
*/
+#include <common.h>
#include <asm/arch/cpu.h>
#include <asm/arch/sys_proto.h>
#include <asm/arch/clock.h>
* Copyright (C) 2013, Texas Instruments, Incorporated - https://www.ti.com/
*/
+#include <common.h>
#include <asm/arch/cpu.h>
#include <asm/arch/clock.h>
#include <asm/arch/hardware.h>
* Copyright (C) 2011 Texas Instruments Incorporated - https://www.ti.com/
*/
-#include <config.h>
+#include <common.h>
#include <log.h>
#include <asm/arch/cpu.h>
#include <asm/arch/ddr_defs.h>
* Copyright (C) 2011, Texas Instruments, Incorporated - https://www.ti.com/
*/
+#include <common.h>
#include <asm/arch/cpu.h>
#include <asm/arch/ddr_defs.h>
#include <asm/arch/hardware.h>
* Copyright 2017 Texas Instruments, Inc.
*/
+#include <common.h>
#include <hang.h>
#include <linux/libfdt.h>
#include <fdt_support.h>
* GNU General Public License for more details.
*/
+#include <common.h>
#include <asm/arch/mux.h>
#include <asm/arch/hardware.h>
#include <asm/io.h>
* Syed Mohammed Khasim <khasim@ti.com>
*/
+#include <common.h>
#include <init.h>
#include <asm/io.h>
#include <asm/arch/sys_proto.h>
* Copyright (C) 2011, Texas Instruments, Incorporated - https://www.ti.com/
*/
+#include <common.h>
#include <ahci.h>
#include <log.h>
#include <dm/uclass.h>
* Santosh Shilimkar <santosh.shilimkar@ti.com>
* Rajendra Nayak <rnayak@ti.com>
*/
+#include <common.h>
#include <hang.h>
#include <i2c.h>
#include <init.h>
* Aneesh V <aneesh@ti.com>
*/
-#include <config.h>
+#include <common.h>
#include <hang.h>
#include <init.h>
#include <log.h>
* Copyright 2016-2017 Texas Instruments, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <log.h>
#include <linux/libfdt.h>
#include <fdt_support.h>
* Aneesh V <aneesh@ti.com>
* Steve Sakoman <steve@sakoman.com>
*/
+#include <common.h>
#include <debug_uart.h>
#include <event.h>
#include <fdtdec.h>
* Syed Mohammed Khasim <khasim@ti.com>
*/
-#include <config.h>
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/cpu.h>
#if IS_ENABLED(CONFIG_TARGET_AM335X_GUARDIAN)
* Steve Sakoman <steve@sakoman.com>
*/
+#include <common.h>
#include <cpu_func.h>
#include <log.h>
-#include <linux/string.h>
#include <asm/cache.h>
#include <asm/global_data.h>
* Hema HK <hemahk@ti.com>
*/
+#include <common.h>
#include <log.h>
-#include <time.h>
#include <dm/device.h>
#include <asm/io.h>
#include <asm/arch/am35x_def.h>
* Syed Mohammed Khasim <khasim@ti.com>
*
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <init.h>
* Copyright (C) 2015 Paul Kocialkowski <contact@paulk.fr>
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/sys_proto.h>
#include <spl.h>
* Syed Mohammed Khasim <khasim@ti.com>
*/
-#include <config.h>
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/clock.h>
#include <asm/arch/clocks_omap3.h>
#include <asm/arch/mem.h>
-#include <asm/arch/omap.h>
#include <asm/arch/sys_proto.h>
#include <command.h>
* (C) Copyright 2011, Ilya Yanok, Emcraft Systems
*/
+#include <common.h>
#include <net.h>
#include <asm/io.h>
#include <asm/arch/am35x_def.h>
* Texas Instruments Incorporated - https://www.ti.com/
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/io.h>
* Manikandan Pillai <mani.pillai@ti.com>
*/
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/io.h>
* Jian Zhang <jzhang@ti.com>
*/
+#include <common.h>
#include <jffs2/load_kernel.h>
#include <linux/mtd/rawnand.h>
#include <linux/mtd/omap_gpmc.h>
* Syed Mohammed Khasim <khasim@ti.com>
*/
-#include <config.h>
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/mem.h> /* get mem tables */
-#include <asm/arch/omap.h>
#include <asm/arch/sys_proto.h>
#include <asm/bootm.h>
#include <asm/omap_common.h>
* Copyright (C) 2015 Paul Kocialkowski <contact@paulk.fr>
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/omap_common.h>
#include <asm/arch/sys_proto.h>
* Aneesh V <aneesh@ti.com>
*/
+#include <common.h>
#include <asm/emif.h>
#include <asm/arch/sys_proto.h>
#include <asm/utils.h>
*
* Sricharan R <r.sricharan@ti.com>
*/
+#include <common.h>
#include <asm/arch/omap.h>
#include <asm/arch/sys_proto.h>
#include <asm/omap_common.h>
* Aneesh V <aneesh@ti.com>
* Steve Sakoman <steve@sakoman.com>
*/
+#include <common.h>
#include <palmas.h>
#include <asm/armv7.h>
#include <asm/arch/cpu.h>
* Aneesh V <aneesh@ti.com>
*/
+#include <common.h>
#include <asm/emif.h>
#include <asm/arch/sys_proto.h>
* Andrii Tseglytskyi <andrii.tseglytskyi@ti.com>
*/
-#include <asm/arch/omap.h>
+#include <common.h>
#include <asm/omap_common.h>
#include <asm/io.h>
#include <linux/bitops.h>
* Copyright (C) 2015 Paul Kocialkowski <contact@paulk.fr>
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/omap_common.h>
#include <spl.h>
* Lokesh Vutla <lokeshvutla@ti.com>
*/
-#include <config.h>
+#include <common.h>
#include <hang.h>
#include <log.h>
#include <asm/utils.h>
* Aneesh V <aneesh@ti.com> for OMAP4
*/
+#include <common.h>
#include <log.h>
#include <asm/emif.h>
#include <asm/arch/sys_proto.h>
* Copyright 2016 Texas Instruments, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <hang.h>
#include <log.h>
#include <linux/libfdt.h>
*
* Sricharan R <r.sricharan@ti.com>
*/
+#include <common.h>
#include <palmas.h>
#include <asm/arch/omap.h>
#include <asm/arch/sys_proto.h>
* Steve Sakoman <steve@sakoman.com>
* Sricharan <r.sricharan@ti.com>
*/
+#include <common.h>
#include <cpu_func.h>
#include <palmas.h>
#include <asm/armv7.h>
* Sricharan R <r.sricharan@ti.com>
*/
+#include <common.h>
#include <asm/emif.h>
#include <asm/arch/sys_proto.h>
* Andrew F. Davis <afd@ti.com>
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <hang.h>
* Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <time.h>
#include <asm/global_data.h>
* Copyright 2011 Linaro Limited
* Aneesh V <aneesh@ti.com>
*/
+#include <common.h>
#include <env.h>
#include <part.h>
-#include <vsprintf.h>
#include <asm/setup.h>
#include <asm/arch/sys_proto.h>
#include <asm/omap_common.h>
* GNU General Public License for more details.
*/
-#include <config.h>
+#include <common.h>
#include <asm/omap_common.h>
#include <asm/arch/sys_proto.h>
#include <asm/arch/clock.h>
* Written-by: Prafulla Wadaskar <prafulla@marvell.com>
*/
+#include <common.h>
#include <cpu_func.h>
#include <init.h>
#include <net.h>
* Written-by: Prafulla Wadaskar <prafulla@marvell.com>
*/
+#include <common.h>
#include <config.h>
#include <init.h>
#include <asm/arch/cpu.h>
* Written-by: Prafulla Wadaskar <prafulla@marvell.com>
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <time.h>
#include <asm/global_data.h>
* Copyright (C) 2018 Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
*/
-#include <config.h>
#include <cpu_func.h>
#include <init.h>
#include <asm/cache.h>
#include <asm/global_data.h>
#include <linux/arm-smccc.h>
#include <linux/psci.h>
+#include <common.h>
#include <asm/io.h>
#include <asm/mach-types.h>
#include <asm/psci.h>
* Copyright (C) 2018 Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
*/
+#include <common.h>
#include <asm/armv8/mmu.h>
static struct mm_region owl_mem_map[] = {
#include <asm/armv8/mmu.h>
#include <asm/global_data.h>
+#include <asm/u-boot.h>
#include <cpu_func.h>
#define GEN3_NR_REGIONS 16
#include <asm/armv8/mmu.h>
#include <asm/global_data.h>
+#include <asm/u-boot.h>
#include <cpu_func.h>
#define RZG2L_NR_REGIONS 16
* Based on puma-rk3399.c:
* (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH
*/
-#include <config.h>
+#include <common.h>
#include <clk.h>
#include <cpu_func.h>
#include <env.h>
* (C) Copyright 2016 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <adc.h>
#include <command.h>
#include <env.h>
* Copyright (c) 2017 Google, Inc
*/
+#include <common.h>
#include <hang.h>
#include <asm/arch-rockchip/bootrom.h>
#include <asm/arch-rockchip/boot_mode.h>
* Author: Jagan Teki <jagan@amarulasolutions.com>
*/
+#include <common.h>
#include <env.h>
#include <init.h>
#include <asm/arch-rockchip/clock.h>
* (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <debug_uart.h>
#include <dm.h>
#include <init.h>
* (C) Copyright 2017 Rockchip Electronics Co., Ltd.
*/
+#include <common.h>
#include <dm.h>
#include <syscon.h>
#include <asm/arch-rockchip/clock.h>
/*
* Copyright (c) 2017 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <fdt_support.h>
* (C) Copyright 2017 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <syscon.h>
* (C) Copyright 2015-2019 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <debug_uart.h>
#include <init.h>
#include <asm/io.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <syscon.h>
#include <asm/arch-rockchip/clock.h>
* (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/arch-rockchip/grf_rk3036.h>
/*
* (C) Copyright 2015 Rockchip Electronics Co., Ltd
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/types.h>
#include <asm/arch-rockchip/cru_rk3036.h>
* (C) Copyright 2015 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
#include <syscon.h>
#include <asm/arch-rockchip/clock.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <syscon.h>
#include <asm/arch-rockchip/clock.h>
* (C) Copyright 2016 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <asm/arch-rockchip/bootrom.h>
#include <asm/arch-rockchip/grf_rk3066.h>
#include <asm/arch-rockchip/hardware.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <syscon.h>
* Copyright (c) 2017 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
#include <syscon.h>
#include <asm/arch-rockchip/clock.h>
* (C) Copyright 2017 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
#include <syscon.h>
#include <asm/arch-rockchip/clock.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <syscon.h>
#include <asm/arch-rockchip/clock.h>
/*
* (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
#include <hang.h>
#include <init.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <syscon.h>
* (C) Copyright 2017 Rockchip Electronics Co., Ltd.
*/
+#include <common.h>
#include <dm.h>
#include <syscon.h>
#include <asm/arch-rockchip/clock.h>
* (C) Copyright 2017 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
#include <syscon.h>
#include <asm/arch-rockchip/clock.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <syscon.h>
#include <asm/arch-rockchip/clock.h>
/*
* Copyright (c) 2016 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <env.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <dt-structs.h>
#include <log.h>
* Copyright (c) 2018 Fuzhou Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
#include <syscon.h>
#include <asm/arch-rockchip/clock.h>
/*
*Copyright (c) 2018 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <init.h>
#include <malloc.h>
#include <asm/arch-rockchip/bootrom.h>
* (C) Copyright 2018 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
#include <syscon.h>
#include <asm/arch-rockchip/clock.h>
* (C) Copyright 2017 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
#include <asm/arch-rockchip/clock.h>
#include <asm/arch-rockchip/cru_rk3328.h>
* Copyright (c) 2016 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <init.h>
#include <asm/arch-rockchip/bootrom.h>
#include <asm/arch-rockchip/hardware.h>
* (C) Copyright 2016 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <asm/arch-rockchip/clock.h>
#include <dm.h>
#include <syscon.h>
* Author: Andy Yan <andy.yan@rock-chips.org>
*/
+#include <common.h>
#include <dm.h>
#include <syscon.h>
#include <asm/arch-rockchip/clock.h>
* Copyright (c) 2016 Andreas Färber
*/
+#include <common.h>
#include <init.h>
#include <syscon.h>
#include <asm/armv8/mmu.h>
* (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <syscon.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <syscon.h>
#include <asm/arch-rockchip/clock.h>
* Copyright (c) 2016 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <fdt_support.h>
#include <init.h>
#include <log.h>
* (C) Copyright 2016 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <syscon.h>
* (C) Copyright 2021 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
#include <syscon.h>
#include <asm/arch-rockchip/clock.h>
* (C) Copyright 2021 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
#include <asm/armv8/mmu.h>
#include <asm/arch-rockchip/bootrom.h>
* (C) Copyright 2021 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
#include <syscon.h>
#include <asm/arch-rockchip/clock.h>
* (C) Copyright 2020 Rockchip Electronics Co., Ltd.
*/
+#include <common.h>
#include <dm.h>
#include <syscon.h>
#include <asm/arch-rockchip/clock.h>
* Copyright (c) 2022 Edgeble AI Technologies Pvt. Ltd.
*/
+#include <common.h>
#include <spl.h>
#include <asm/armv8/mmu.h>
#include <asm/arch-rockchip/bootrom.h>
* (C) Copyright 2021 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
#include <syscon.h>
#include <asm/arch-rockchip/clock.h>
* Author: Andy Yan <andy.yan@rock-chips.com>
*/
+#include <common.h>
#include <dm.h>
#include <syscon.h>
#include <asm/arch-rockchip/clock.h>
* (C) Copyright 2016 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
#include <syscon.h>
#include <asm/arch-rockchip/clock.h>
* Copyright (c) 2022 Edgeble AI Technologies Pvt. Ltd.
*/
+#include <common.h>
#include <dm.h>
#include <syscon.h>
#include <asm/arch-rockchip/clock.h>
* Copyright (c) 2022 Edgeble AI Technologies Pvt. Ltd.
*/
+#include <common.h>
#include <asm/arch-rockchip/bootrom.h>
#include <asm/arch-rockchip/hardware.h>
#include <asm/arch-rockchip/grf_rv1126.h>
* Copyright (c) 2022 Edgeble AI Technologies Pvt. Ltd.
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <syscon.h>
* Copyright (C) 2017 Rockchip Electronics Co., Ltd.
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <init.h>
#include <log.h>
* (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH
*/
+#include <common.h>
#include <dm.h>
#include <fdt_support.h>
#include <log.h>
* (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <bootstage.h>
#include <debug_uart.h>
#include <dm.h>
* based on arch/arm/cpu/armv7/omap3/cache.S
*/
+#include <common.h>
#include <cpu_func.h>
#include <asm/cache.h>
* Heungjun Kim <riverful.kim@samsung.com>
*/
-#include <config.h>
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/clock.h>
#include <asm/arch/clk.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <asm/arch/pinmux.h>
int exynos_pinmux_config(int peripheral, int flags)
+++ /dev/null
-# SPDX-License-Identifier: GPL-2.0-or-later
-#
-# (C) Copyright 2022 - Analog Devices, Inc.
-#
-# Written and/or maintained by Timesys Corporation
-#
-# Contact: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
-# Contact: Greg Malysa <greg.malysa@timesys.com>
-#
-
-# All 32-bit platforms require SYS_ARM_CACHE_WRITETHROUGH
-# But it is ignored if selected here, so it must be in the defconfig
-
-if ARCH_SC5XX
-
-config SC57X
- bool
- select SUPPORT_SPL
- select CPU_V7A
- select PANIC_HANG
- select COMMON_CLK_ADI_SC57X
- select TIMER
- select ADI_SC5XX_TIMER
-
-config SC58X
- bool
- select SUPPORT_SPL
- select CPU_V7A
- select PANIC_HANG
- select COMMON_CLK_ADI_SC58X
- select TIMER
- select ADI_SC5XX_TIMER
-
-config SC59X
- bool
- select SUPPORT_SPL
- select CPU_V7A
- select PANIC_HANG
- select COMMON_CLK_ADI_SC594
- select TIMER
- select ADI_SC5XX_TIMER
- select NOP_PHY
-
-config SC59X_64
- bool
- select SUPPORT_SPL
- select PANIC_HANG
- select MMC_SDHCI_ADMA_FORCE_32BIT
- select ARM64
- select DM
- select DM_SERIAL
- select COMMON_CLK_ADI_SC598
- select GICV3
- select GIC_600_CLEAR_RDPD
- select NOP_PHY
-
-config SC_BOOT_MODE
- int "SC5XX boot mode select"
- default 1
- range 0 7
- help
- Mode 0: do nothing, just idle
- Mode 1: boot ldr out of serial flash
- Mode 7: boot ldr over uart
-
-config SC_BOOT_SPI_BUS
- int "sc5xx spi boot bus"
- default 2
- range 0 4
- help
- This is the SPI peripheral number to use for booting, X in the
- expression `sf probe X:Y`
-
-config SC_BOOT_SPI_SSEL
- int "sc5xx spi boot chipselect"
- default 1
- range 0 6
- help
- This is the SPI chip select number to use for booting, Y in the
- expression `sf probe X:Y`
-
-config SC_BOOT_OSPI_BUS
- int "sc5xx ospi boot bus"
- default 0
- help
- This is the OSPI peripheral number to use for booting, X in the
- expression `sf probe X:Y`
-
-config SC_BOOT_OSPI_SSEL
- int "sc5xx ospi boot chipselect"
- default 0
- help
- This is the OSPI chip select number to use for booting, Y in the
- expression `sf probe X:Y`
-
-config SYS_FLASH_BASE
- hex
- default 0x60000000
-
-config UART_CONSOLE
- int
- default 0
-
-config UART4_SERIAL
- bool
- depends on DM_SERIAL
- default y
-
-config WDT_ADI
- bool
- default y
-
-config WATCHDOG_TIMEOUT_MSECS
- int
- default 30000
-
-config DW_PORTS
- int
- default 1
-
-config ADI_BUG_EZKHW21
- bool "SC584 EZKIT phy bug workaround"
- depends on SC58X
- help
- This workaround affects the SC584 EZKIT and addresses bug EZKHW21.
- It disables gigabit ethernet mode and limits the board to 100 Mbps
-
-config ADI_CARRIER_SOMCRR_EZKIT
- bool "Support the EV-SOMCRR-EZKIT"
- depends on (SC59X || SC59X_64)
- help
- Say y to include support for the EV-SOMCRR-EZKIT carrier board,
- which is compatible with the SC594 and SC598 SOMs. The EZKIT is
- mutually incompatible with the EZLITE.
-
-config ADI_CARRIER_SOMCRR_EZLITE
- bool "Support the EV-SOMCRR-EZLITE"
- depends on (SC59X || SC59X_64)
- help
- Say y to include support for the EV-SOMCRR-EZLITE carrier board,
- which is compatible with the SC594 and SC598 SOMs. The EZLITE is
- mutually incompatible with the EZKIT.
-
-config ADI_SPL_FORCE_BMODE
- int "Force the SPL to use this BMODE device during next boot stage"
- default 0
- range 0 9
- depends on SPL
- help
- Force the SPL to use this BMODE device during next boot stage.
- For example, if booting via QSPI, we can force the second stage
- Of the boot process to use other peripherals via:
- 1 = QSPI -> QSPI
- 5 = QSPI -> OSPI
- 6 = QSPI -> eMMC
-
-config ADI_USE_DMC0
- bool "Configure DMC0"
- default y
- help
- During hardware initialization, channel 0 of the DMC will be
- initialized. Select this if you have DMC0 connected to external
- DDR memory. This is expected to be true for every board using
- an SC5xx SoC.
-
-config ADI_USE_DMC1
- bool "Configure DMC1"
- help
- During hardware initialization, channel 1 of the DMC will be
- initialized. Not all processors have a DMC1. Select this if your
- SoC has DMC1 and you have it connected to external DDR memory.
-
-config ADI_USE_DDR2
- bool "Configure DMC for DDR2 mode"
- help
- Configure the DMC in DDR2 mode. The default is DDR3 and not all
- parts may actually support DDR2. Please consult the manual for
- the SoC that you are using to determine if DDR2 mode is supported.
- This also requires that DDR2 memory is present on the board or it
- will probably cause strange failure.
-
-menu "Clock configuration"
-
-config CGU0_DF_DIV
- int "CGU0_DF_DIV"
- range 0 1
- help
- Select 0 to pass CLKIN to PLL
- Select 1 to pass CLKIN/2 to PLL
-
-config CGU0_VCO_MULT
- int "CGU0_VCO_MULT"
- range 0 127
- help
- VCO_MULT controls the MSEL (multiplier) bits in PLL_CTL
- A value of 0 means 128
-
-config CGU0_CCLK_DIV
- int "CGU0_CCLK_DIV"
- range 0 31
- help
- CCLK_DIV controls the core clock divider
- A value of 0 means 32
- CCLK = ((CLKIN / (1 + DF)) * VCO_MULT) / CCLK_DIV
-
-config CGU0_SCLK_DIV
- int "CGU0_SCLK_DIV"
- range 0 31
- help
- SCLK_DIV controls the system clock divider
- A value of 0 means 32
- SCLK = ((CLKIN / (1 + DF)) * VCO_MULT) / SYSCLK_DIV
-
-config CGU0_SCLK0_DIV
- int "CGU0_SCLK0_DIV"
- range 0 7
- help
- A value of 0 means 8
- SCLK0 = SCLK / SCLK0_DIV
-
-config CGU0_SCLK1_DIV
- int "CGU0_SCLK1_DIV"
- depends on (SC57X || SC58X)
- range 0 7
- help
- A value of 0 means 8
- SCLK1 = SCLK / SCLK1_DIV
-
-config CGU0_DCLK_DIV
- int "CGU0_DCLK_DIV"
- range 0 31
- help
- DCLK_DIV controls the DDR clock divider
- A value of 0 means 32
- DCLK = ((CLKIN / (1 + DF)) * VCO_MULT) / DCLK_DIV
-
-config CGU0_OCLK_DIV
- int "CGU0_OCLK_DIV"
- range 0 127
- help
- OCLK_DIV controls the output clock divider
- A value of 0 means 128
- OCLK = ((CLKIN / (1 + DF)) * VCO_MULT) / OCLK_DIV
-
-config CGU0_DIV_S1SELEX
- int "CGU0_DIV_S1SELEX"
- depends on !SC57X && !SC58X
- range 0 255
- help
- CGU0 SCLK1 Extended divisor register.
- A value of 0 means 256.
- SCLK1 = ((CLKIN / (1 + DF)) * VCO_MULT) / DIV_S1SELEX
-
-config CGU0_CLKOUTSEL
- int "CGU0_CLKOUTSEL"
- default 0
- range 0 31
- help
- Select signal driven through CLKOUT pin multiplexer.
- This value varies on each SOC. Refer to
- CGU_CLKOUTSEL.CLKOUTSEL in the Hardware Reference Manual
- for values applicable to each SOC.
- Commonly, values 0 and 1 select CLKIN0 or CLKIN1 respectively.
-
-config CGU1_PLL3_DDRCLK
- bool "DDRCLK From 3rd PLL"
- depends on SC59X_64
- help
- 3rd PLL output is connected to DMC block when set.
- When cleared, DDR clock is CLKO3 output of CDU.
-
-config CGU1_PLL3_VCO_MSEL
- int "CGU0_PLL3_VCO_MSEL"
- depends on CGU1_PLL3_DDRCLK
- range 1 128
- help
- PLL multiplier value for the 3rd PLL.
- DCLK = (CLKIN * PLL3_VCO_MSEL) / PLL3_DCLK_DIV
-
-config CGU1_PLL3_DCLK_DIV
- int "CGU0_PLL3_DCLK_DIV"
- depends on CGU1_PLL3_DDRCLK
- range 1 32
- help
- PLL divider value for the 3rd PLL.
- DCLK = (CLKIN * PLL3_VCO_MSEL) / PLL3_DCLK_DIV
-
-config CGU1_DF_DIV
- int "CGU1_DF_DIV"
- range 0 1
- help
- Select 0 to pass CLKIN to PLL
- Select 1 to pass CLKIN/2 to PLL
-
-config CGU1_VCO_MULT
- int "CGU1_VCO_MULT"
- range 0 127
- help
- VCO_MULT controls the MSEL (multiplier) bits in PLL_CTL
- A value of 0 means 128
-
-config CGU1_CCLK_DIV
- int "CGU1_CCLK_DIV"
- range 0 31
- help
- CCLK_DIV controls the core clock divider
- A value of 0 means 32
- CCLK = ((CLKIN / (1 + DF)) * VCO_MULT) / CCLK_DIV
-
-config CGU1_SCLK_DIV
- int "CGU1_SCLK_DIV"
- range 0 31
- help
- SCLK_DIV controls the system clock divider
- A value of 0 means 32
- SCLK = ((CLKIN / (1 + DF)) * VCO_MULT) / SYSCLK_DIV
-
-config CGU1_SCLK0_DIV
- int "CGU1_SCLK0_DIV"
- depends on (SC57X || SC58X || SC59X)
- range 0 7
- help
- A value of 0 means 8
- SCLK0 = SCLK / SCLK0_DIV
-
-config CGU1_SCLK1_DIV
- int "CGU1_SCLK1_DIV"
- depends on (SC57X || SC58X)
- range 0 7
- help
- A value of 0 means 8
- SCLK1 = SCLK / SCLK1_DIV
-
-config CGU1_DCLK_DIV
- int "CGU1_DCLK_DIV"
- range 0 31
- help
- DCLK_DIV controls the DDR clock divider
- A value of 0 means 32
- DCLK = ((CLKIN / (1 + DF)) * VCO_MULT) / DCLK_DIV
-
-config CGU1_OCLK_DIV
- int "CGU1_OCLK_DIV"
- range 0 127
- help
- OCLK_DIV controls the output clock divider
- A value of 0 means 128
- OCLK = ((CLKIN / (1 + DF)) * VCO_MULT) / OCLK_DIV
-
-config CGU1_DIV_S0SELEX
- int "CGU1_DIV_S0SELEX"
- depends on !SC57X && !SC58X && !SC59X
- range 0 255
- help
- CGU1 SCLK0 Extended divisor register.
- A value of 0 means 256.
- SCLK0 = ((CLKIN / (1 + DF)) * VCO_MULT) / DIV_S0SELEX
-
-config CGU1_DIV_S1SELEX
- int "CGU1_DIV_S1SELEX"
- depends on !SC57X && !SC58X
- range 0 255
- help
- CGU1 SCLK1 Extended divisor register.
- A value of 0 means 256.
- SCLK1 = ((CLKIN / (1 + DF)) * VCO_MULT) / DIV_S1SELEX
-
-config CDU0_CGU1_CLKIN
- int "CDU0 CGU1 CLKINn Select"
- default 0
- range 0 1
- help
- Selects source clock for CGU1.
- 0 for CLKIN0
- 1 for CLKIN1
-
-config CDU0_CLKO0
- int "CDU0_CLKO0"
- range 1 7
- help
- Clock source select. Refer to SOC Hardware Reference Manual
-
-config CDU0_CLKO1
- int "CDU0_CLKO1"
- range 1 7
- help
- Clock source select. Refer to SOC Hardware Reference Manual
-
-config CDU0_CLKO2
- int "CDU0_CLKO2"
- range 1 7
- help
- Clock source select. Refer to SOC Hardware Reference Manual
-
-config CDU0_CLKO3
- int "CDU0_CLKO3"
- range 1 7
- help
- Clock source select. Refer to SOC Hardware Reference Manual
-
-config CDU0_CLKO4
- int "CDU0_CLKO4"
- range 1 7
- help
- Clock source select. Refer to SOC Hardware Reference Manual
-
-config CDU0_CLKO5
- int "CDU0_CLKO5"
- range 1 7
- help
- Clock source select. Refer to SOC Hardware Reference Manual
-
-config CDU0_CLKO6
- int "CDU0_CLKO6"
- range 1 7
- help
- Clock source select. Refer to SOC Hardware Reference Manual
-
-config CDU0_CLKO7
- int "CDU0_CLKO7"
- range 1 7
- help
- Clock source select. Refer to SOC Hardware Reference Manual
-
-config CDU0_CLKO8
- int "CDU0_CLKO8"
- range 1 7
- help
- Clock source select. Refer to SOC Hardware Reference Manual
-
-config CDU0_CLKO9
- int "CDU0_CLKO9"
- range 1 7
- help
- Clock source select. Refer to SOC Hardware Reference Manual
-
-config CDU0_CLKO10
- int "CDU0_CLKO10"
- range 1 7
- depends on (SC59X || SC59X_64)
- help
- Clock source select. Refer to SOC Hardware Reference Manual
-
-config CDU0_CLKO12
- int "CDU0_CLKO12"
- range 1 7
- depends on (SC59X || SC59X_64)
- help
- Clock source select. Refer to SOC Hardware Reference Manual
-
-config CDU0_CLKO13
- int "CDU0_CLKO13"
- range 1 7
- depends on SC59X_64
- help
- Clock source select. Refer to SOC Hardware Reference Manual
-
-config CDU0_CLKO14
- int "CDU0_CLKO14"
- range 1 7
- depends on SC59X_64
- help
- Clock source select. Refer to SOC Hardware Reference Manual
-
-endmenu
-
-config ADI_GPIO
- bool
- default y
-
-config PINCTRL_ADI
- bool
- default y
-
-endif
+++ /dev/null
-# SPDX-License-Identifier: GPL-2.0-or-later
-#
-# (C) Copyright 2022 - Analog Devices, Inc.
-#
-# Written and/or maintained by Timesys Corporation
-#
-# Contact: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
-# Contact: Greg Malysa <greg.malysa@timesys.com>
-#
-
-obj-y += soc.o init/
-
-obj-$(CONFIG_SC57X) += sc57x.o
-obj-$(CONFIG_SC58X) += sc58x.o
-obj-$(CONFIG_SC59X) += sc59x.o
-obj-$(CONFIG_SC59X_64) += sc59x_64.o
-
-obj-$(CONFIG_SPL_BUILD) += spl.o
-obj-$(CONFIG_SYSCON) += rcu.o
+++ /dev/null
-# SPDX-License-Identifier: GPL-2.0-or-later
-#
-# (C) Copyright 2022 - Analog Devices, Inc.
-#
-# Written and/or maintained by Timesys Corporation
-#
-# Contact: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
-# Contact: Greg Malysa <greg.malysa@timesys.com>
-#
-
-ifdef CONFIG_SPL_BUILD
-INPUTS-y += $(obj)/u-boot-spl.ldr
-endif
-
-LDR_FLAGS += --bcode=$(CONFIG_SC_BOOT_MODE)
-LDR_FLAGS += --use-vmas
+++ /dev/null
-# SPDX-License-Identifier: GPL-2.0-or-later
-#
-# (C) Copyright 2022 - Analog Devices, Inc.
-#
-# Written and/or maintained by Timesys Corporation
-#
-# Contact: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
-# Contact: Greg Malysa <greg.malysa@timesys.com>
-#
-
-obj-y += dmcinit.o clkinit.o
+++ /dev/null
-// SPDX-License-Identifier: GPL-2.0-or-later
-/*
- * (C) Copyright 2022 - Analog Devices, Inc.
- *
- * Written and/or maintained by Timesys Corporation
- *
- * Contact: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
- * Contact: Greg Malysa <greg.malysa@timesys.com>
- */
-
-#include <asm/arch-adi/sc5xx/sc5xx.h>
-#include <asm/io.h>
-#include <linux/types.h>
-#include "clkinit.h"
-#include "dmcinit.h"
-
-#ifdef CONFIG_CGU0_SCLK0_DIV
- #define VAL_CGU0_SCLK0_DIV CONFIG_CGU0_SCLK0_DIV
-#else
- #define VAL_CGU0_SCLK0_DIV 1
-#endif
-#ifdef CONFIG_CGU0_SCLK1_DIV
- #define VAL_CGU0_SCLK1_DIV CONFIG_CGU0_SCLK1_DIV
-#else
- #define VAL_CGU0_SCLK1_DIV 1
-#endif
-#ifdef CONFIG_CGU0_DIV_S0SELEX
- #define VAL_CGU0_DIV_S0SELEX CONFIG_CGU0_DIV_S0SELEX
-#else
- #define VAL_CGU0_DIV_S0SELEX -1
-#endif
-#ifdef CONFIG_CGU0_DIV_S1SELEX
- #define VAL_CGU0_DIV_S1SELEX CONFIG_CGU0_DIV_S1SELEX
-#else
- #define VAL_CGU0_DIV_S1SELEX -1
-#endif
-#ifdef CONFIG_CGU0_CLKOUTSEL
- #define VAL_CGU0_CLKOUTSEL CONFIG_CGU0_CLKOUTSEL
-#else
- #define VAL_CGU0_CLKOUTSEL -1
-#endif
-#ifdef CONFIG_CGU1_SCLK0_DIV
- #define VAL_CGU1_SCLK0_DIV CONFIG_CGU1_SCLK0_DIV
-#else
- #define VAL_CGU1_SCLK0_DIV 1
-#endif
-#ifdef CONFIG_CGU1_SCLK1_DIV
- #define VAL_CGU1_SCLK1_DIV CONFIG_CGU1_SCLK1_DIV
-#else
- #define VAL_CGU1_SCLK1_DIV 1
-#endif
-#ifdef CONFIG_CGU1_DIV_S0SELEX
- #define VAL_CGU1_DIV_S0SELEX CONFIG_CGU1_DIV_S0SELEX
-#else
- #define VAL_CGU1_DIV_S0SELEX -1
-#endif
-#ifdef CONFIG_CGU1_DIV_S1SELEX
- #define VAL_CGU1_DIV_S1SELEX CONFIG_CGU1_DIV_S1SELEX
-#else
- #define VAL_CGU1_DIV_S1SELEX -1
-#endif
-#ifdef CONFIG_CGU1_CLKOUTSEL
- #define VAL_CGU1_CLKOUTSEL CONFIG_CGU1_CLKOUTSEL
-#else
- #define VAL_CGU1_CLKOUTSEL -1
-#endif
-
-#define REG_MISC_REG10_tst_addr 0x310A902C
-
-#define CGU0_REGBASE 0x3108D000
-#define CGU1_REGBASE 0x3108E000
-
-#define CGU_CTL 0x00 // CGU0 Control Register
-#define CGU_PLLCTL 0x04 // CGU0 PLL Control Register
-#define CGU_STAT 0x08 // CGU0 Status Register
-#define CGU_DIV 0x0C // CGU0 Clocks Divisor Register
-#define CGU_CLKOUTSEL 0x10 // CGU0 CLKOUT Select Register
-#define CGU_DIVEX 0x40 // CGU0 DIV Register Extension
-
-#define BITP_CGU_DIV_OSEL 22 // OUTCLK Divisor
-#define BITP_CGU_DIV_DSEL 16 // DCLK Divisor
-#define BITP_CGU_DIV_S1SEL 13 // SCLK 1 Divisor
-#define BITP_CGU_DIV_SYSSEL 8 // SYSCLK Divisor
-#define BITP_CGU_DIV_S0SEL 5 // SCLK 0 Divisor
-#define BITP_CGU_DIV_CSEL 0 // CCLK Divisor
-
-#define BITP_CGU_CTL_MSEL 8 // Multiplier Select
-#define BITP_CGU_CTL_DF 0 // Divide Frequency
-
-#define BITM_CGU_STAT_CLKSALGN 0x00000008
-#define BITM_CGU_STAT_PLOCK 0x00000004
-#define BITM_CGU_STAT_PLLBP 0x00000002
-#define BITM_CGU_STAT_PLLEN 0x00000001
-
-/* PLL Multiplier and Divisor Selections (Required Value, Bit Position) */
-/* PLL Multiplier Select */
-#define MSEL(X) (((X) << BITP_CGU_CTL_MSEL) & \
- BITM_CGU_CTL_MSEL)
-/* Divide frequency[true or false] */
-#define DF(X) (((X) << BITP_CGU_CTL_DF) & \
- BITM_CGU_CTL_DF)
-/* Core Clock Divisor Select */
-#define CSEL(X) (((X) << BITP_CGU_DIV_CSEL) & \
- BITM_CGU_DIV_CSEL)
-/* System Clock Divisor Select */
-#define SYSSEL(X) (((X) << BITP_CGU_DIV_SYSSEL) & \
- BITM_CGU_DIV_SYSSEL)
-/* SCLK0 Divisor Select */
-#define S0SEL(X) (((X) << BITP_CGU_DIV_S0SEL) & \
- BITM_CGU_DIV_S0SEL)
-/* SCLK1 Divisor Select */
-#define S1SEL(X) (((X) << BITP_CGU_DIV_S1SEL) & \
- BITM_CGU_DIV_S1SEL)
-/* DDR Clock Divisor Select */
-#define DSEL(X) (((X) << BITP_CGU_DIV_DSEL) & \
- BITM_CGU_DIV_DSEL)
-/* OUTCLK Divisor Select */
-#define OSEL(X) (((X) << BITP_CGU_DIV_OSEL) & \
- BITM_CGU_DIV_OSEL)
-/* CLKOUT select */
-#define CLKOUTSEL(X) (((X) << BITP_CGU_CLKOUTSEL_CLKOUTSEL) & \
- BITM_CGU_CLKOUTSEL_CLKOUTSEL)
-#define S0SELEX(X) (((X) << BITP_CGU_DIVEX_S0SELEX) & \
- BITM_CGU_DIVEX_S0SELEX)
-#define S1SELEX(X) (((X) << BITP_CGU_DIVEX_S1SELEX) & \
- BITM_CGU_DIVEX_S1SELEX)
-
-struct CGU_Settings {
- phys_addr_t rbase;
- u32 ctl_MSEL:7;
- u32 ctl_DF:1;
- u32 div_CSEL:5;
- u32 div_SYSSEL:5;
- u32 div_S0SEL:3;
- u32 div_S1SEL:3;
- u32 div_DSEL:5;
- u32 div_OSEL:7;
- s16 divex_S0SELEX;
- s16 divex_S1SELEX;
- s8 clkoutsel;
-};
-
-/* CGU Registers */
-#define BITM_CGU_CTL_LOCK 0x80000000 /* Lock */
-
-#define BITM_CGU_CTL_MSEL 0x00007F00 /* Multiplier Select */
-#define BITM_CGU_CTL_DF 0x00000001 /* Divide Frequency */
-#define BITM_CGU_CTL_S1SELEXEN 0x00020000 /* SCLK1 Extension Divider Enable */
-#define BITM_CGU_CTL_S0SELEXEN 0x00010000 /* SCLK0 Extension Divider Enable */
-
-#define BITM_CGU_DIV_LOCK 0x80000000 /* Lock */
-#define BITM_CGU_DIV_UPDT 0x40000000 /* Update Clock Divisors */
-#define BITM_CGU_DIV_ALGN 0x20000000 /* Align */
-#define BITM_CGU_DIV_OSEL 0x1FC00000 /* OUTCLK Divisor */
-#define BITM_CGU_DIV_DSEL 0x001F0000 /* DCLK Divisor */
-#define BITM_CGU_DIV_S1SEL 0x0000E000 /* SCLK 1 Divisor */
-#define BITM_CGU_DIV_SYSSEL 0x00001F00 /* SYSCLK Divisor */
-#define BITM_CGU_DIV_S0SEL 0x000000E0 /* SCLK 0 Divisor */
-#define BITM_CGU_DIV_CSEL 0x0000001F /* CCLK Divisor */
-
-#define BITP_CGU_DIVEX_S0SELEX 0
-#define BITM_CGU_DIVEX_S0SELEX 0x000000FF /* SCLK 0 Extension Divisor */
-
-#define BITP_CGU_DIVEX_S1SELEX 16
-#define BITM_CGU_DIVEX_S1SELEX 0x00FF0000 /* SCLK 1 Extension Divisor */
-
-#define BITM_CGU_PLLCTL_PLLEN 0x00000008 /* PLL Enable */
-#define BITM_CGU_PLLCTL_PLLBPCL 0x00000002 /* PLL Bypass Clear */
-#define BITM_CGU_PLLCTL_PLLBPST 0x00000001 /* PLL Bypass Set */
-
-#define BITP_CGU_CLKOUTSEL_CLKOUTSEL 0 /* CLKOUT Select */
-#define BITM_CGU_CLKOUTSEL_CLKOUTSEL 0x0000001F /* CLKOUT Select */
-
-#define CGU_STAT_MASK (BITM_CGU_STAT_PLLEN | BITM_CGU_STAT_PLOCK | \
- BITM_CGU_STAT_CLKSALGN)
-#define CGU_STAT_ALGN_LOCK (BITM_CGU_STAT_PLLEN | BITM_CGU_STAT_PLOCK)
-
-/* Clock Distribution Unit Registers */
-#define REG_CDU0_CFG0 0x3108F000
-#define REG_CDU0_CFG1 0x3108F004
-#define REG_CDU0_CFG2 0x3108F008
-#define REG_CDU0_CFG3 0x3108F00C
-#define REG_CDU0_CFG4 0x3108F010
-#define REG_CDU0_CFG5 0x3108F014
-#define REG_CDU0_CFG6 0x3108F018
-#define REG_CDU0_CFG7 0x3108F01C
-#define REG_CDU0_CFG8 0x3108F020
-#define REG_CDU0_CFG9 0x3108F024
-#define REG_CDU0_CFG10 0x3108F028
-#define REG_CDU0_CFG11 0x3108F02C
-#define REG_CDU0_CFG12 0x3108F030
-#define REG_CDU0_CFG13 0x3108F034
-#define REG_CDU0_CFG14 0x3108F038
-#define REG_CDU0_STAT 0x3108F040
-#define REG_CDU0_CLKINSEL 0x3108F044
-#define REG_CDU0_REVID 0x3108F048
-
-#define BITM_REG10_MSEL3 0x000007F0
-#define BITP_REG10_MSEL3 4
-
-#define BITM_REG10_DSEL3 0x0001F000
-#define BITP_REG10_DSEL3 12
-
-/* Selected clock macros */
-#define CGUn_MULT(cgu) ((CONFIG_CGU##cgu##_VCO_MULT == 0) ? \
- 128 : CONFIG_CGU##cgu##_VCO_MULT)
-#define CGUn_DIV(clkname, cgu) ((CONFIG_CGU##cgu##_##clkname##_DIV == 0) ? \
- 32 : CONFIG_CGU##cgu##_##clkname##_DIV)
-#define CCLK1_n_RATIO(cgu) (((CGUn_MULT(cgu)) / \
- (1 + CONFIG_CGU##cgu##_DF_DIV)) / \
- CGUn_DIV(CCLK, cgu))
-#define CCLK2_n_RATIO(cgu) (((CGUn_MULT(cgu) * 2) / 3) / \
- (1 + CONFIG_CGU##cgu##_DF_DIV))
-#define DCLK_n_RATIO(cgu) (((CGUn_MULT(cgu)) / \
- (1 + CONFIG_CGU##cgu##_DF_DIV)) / \
- CGUn_DIV(DCLK, cgu))
-#define SYSCLK_n_RATIO(cgu) (((CGUn_MULT(cgu)) / \
- (1 + CONFIG_CGU##cgu##_DF_DIV)) / \
- CGUn_DIV(SCLK, cgu))
-#define PLL3_RATIO ((CONFIG_CGU1_PLL3_VCO_MSEL) / \
- (CONFIG_CGU1_PLL3_DCLK_DIV))
-
-#if (1 == CONFIG_CDU0_CLKO2)
- #define ARMCLK_IN 0
- #define ARMCLK_RATIO CCLK1_n_RATIO(0)
-#elif (3 == CONFIG_CDU0_CLKO2) && \
- (defined(CONFIG_SC57X) || defined(CONFIG_SC58X))
- #define ARMCLK_IN 0
- #define ARMCLK_RATIO SYSCLK_n_RATIO(0)
-#elif (5 == CONFIG_CDU0_CLKO2) && defined(CONFIG_SC59X_64)
- #define ARMCLK_IN 0
- #define ARMCLK_RATIO CCLK2_n_RATIO(0)
-#elif (7 == CONFIG_CDU0_CLKO2) && defined(CONFIG_SC59X_64)
- #define ARMCLK_IN CDU0_CGU1_CLKIN
- #define ARMCLK_RATIO CCLK2_n_RATIO(1)
-#endif
-
-#ifdef CONFIG_CGU1_PLL3_DDRCLK
- #define DDRCLK_IN CDU0_CGU1_CLKIN
- #define DDRCLK_RATIO PLL3_RATIO
-#elif (1 == CONFIG_CDU0_CLKO3)
- #define DDRCLK_IN 0
- #define DDRCLK_RATIO DCLK_n_RATIO(0)
-#elif (3 == CONFIG_CDU0_CLKO3)
- #define DDRCLK_IN CDU0_CGU1_CLKIN
- #define DDRCLK_RATIO DCLK_n_RATIO(1)
-#endif
-
-#ifndef ARMCLK_RATIO
- #error Invalid/unknown ARMCLK selection!
-#endif
-#ifndef DDRCLK_RATIO
- #error Invalid/unknown DDRCLK selection!
-#endif
-
-#define ARMDDR_CLK_RATIO_FPERCISION 1000
-
-#if ARMCLK_IN != DDRCLK_IN
- #ifndef CUSTOM_ARMDDR_CLK_RATIO
- /**
- * SYS_CLKINx are defined within the device tree, not configs.
- * Thus, we can only determine cross-CGU clock ratios if they
- * use the same SYS_CLKINx.
- */
- #error Define CUSTOM_ARMDDR_CLK_RATIO for different SYS_CLKINs
- #else
- #define ARMDDR_CLK_RATIO CUSTOM_ARMDDR_CLK_RATIO
- #endif
-#else
- #define ARMDDR_CLK_RATIO (ARMDDR_CLK_RATIO_FPERCISION *\
- ARMCLK_RATIO / DDRCLK_RATIO)
-#endif
-
-void dmcdelay(uint32_t delay)
-{
- /* There is no zero-overhead loop on ARM, so assume each iteration
- * takes 4 processor cycles (based on examination of -O3 and -Ofast
- * output).
- */
- u32 i, remainder;
-
- /* Convert DDR cycles to core clock cycles */
- u32 f = delay * ARMDDR_CLK_RATIO;
-
- delay = f + 500;
- delay /= ARMDDR_CLK_RATIO_FPERCISION;
-
- /* Round up to multiple of 4 */
- remainder = delay % 4;
- if (remainder != 0u)
- delay += (4u - remainder);
-
- for (i = 0; i < delay; i += 4)
- asm("nop");
-}
-
-static void program_cgu(const struct CGU_Settings *cgu)
-{
- const uintptr_t b = cgu->rbase;
- const bool use_extension0 = cgu->divex_S0SELEX >= 0;
- const bool use_extension1 = cgu->divex_S1SELEX >= 0;
- u32 temp;
-
- temp = OSEL(cgu->div_OSEL);
- temp |= SYSSEL(cgu->div_SYSSEL);
- temp |= CSEL(cgu->div_CSEL);
- temp |= DSEL(cgu->div_DSEL);
- temp |= (S0SEL(cgu->div_S0SEL));
- temp |= (S1SEL(cgu->div_S1SEL));
- temp &= ~BITM_CGU_DIV_LOCK;
-
- //Put PLL in to Bypass Mode
- writel(BITM_CGU_PLLCTL_PLLEN | BITM_CGU_PLLCTL_PLLBPST,
- b + CGU_PLLCTL);
- while (!(readl(b + CGU_STAT) & BITM_CGU_STAT_PLLBP))
- ;
-
- while (!((readl(b + CGU_STAT) & CGU_STAT_MASK) == CGU_STAT_ALGN_LOCK))
- ;
-
- dmcdelay(1000);
-
- writel(temp & (~BITM_CGU_DIV_ALGN) & (~BITM_CGU_DIV_UPDT),
- b + CGU_DIV);
-
- dmcdelay(1000);
-
- temp = MSEL(cgu->ctl_MSEL) | DF(cgu->ctl_DF);
- if (use_extension0)
- temp |= BITM_CGU_CTL_S0SELEXEN;
- if (use_extension1)
- temp |= BITM_CGU_CTL_S1SELEXEN;
-
- writel(temp & (~BITM_CGU_CTL_LOCK), b + CGU_CTL);
-
- if (use_extension0 || use_extension1) {
- u32 mask = BITM_CGU_CTL_S1SELEXEN | BITM_CGU_CTL_S0SELEXEN;
-
- while (!(readl(b + CGU_CTL) & mask))
- ;
-
- temp = readl(b + CGU_DIVEX);
-
- if (use_extension0) {
- temp &= ~BITM_CGU_DIVEX_S0SELEX;
- temp |= S0SELEX(cgu->divex_S0SELEX);
- }
-
- if (use_extension1) {
- temp &= ~BITM_CGU_DIVEX_S1SELEX;
- temp |= S1SELEX(cgu->divex_S1SELEX);
- }
-
- writel(temp, b + CGU_DIVEX);
- }
-
- dmcdelay(1000);
-
- //Take PLL out of Bypass Mode
- writel(BITM_CGU_PLLCTL_PLLEN | BITM_CGU_PLLCTL_PLLBPCL,
- b + CGU_PLLCTL);
- while ((readl(b + CGU_STAT) &
- (BITM_CGU_STAT_PLLBP | BITM_CGU_STAT_CLKSALGN)))
- ;
-
- dmcdelay(1000);
-
- if (cgu->clkoutsel >= 0) {
- temp = readl(b + CGU_CLKOUTSEL);
- temp &= ~BITM_CGU_CLKOUTSEL_CLKOUTSEL;
- temp |= CLKOUTSEL(cgu->clkoutsel);
- writel(temp, b + CGU_CLKOUTSEL);
- }
-}
-
-void adi_config_third_pll(void)
-{
-#if defined(CONFIG_CGU1_PLL3_VCO_MSEL) && defined(CONFIG_CGU1_PLL3_DCLK_DIV)
- u32 temp;
-
- u32 msel = CONFIG_CGU1_PLL3_VCO_MSEL - 1;
- u32 dsel = CONFIG_CGU1_PLL3_DCLK_DIV - 1;
-
- temp = readl(REG_MISC_REG10_tst_addr);
- temp &= 0xFFFE0000;
- writel(temp, REG_MISC_REG10_tst_addr);
-
- dmcdelay(4000u);
-
- //update MSEL [10:4]
- temp = readl(REG_MISC_REG10_tst_addr);
- temp |= ((msel << BITP_REG10_MSEL3) & BITM_REG10_MSEL3);
- writel(temp, REG_MISC_REG10_tst_addr);
-
- temp = readl(REG_MISC_REG10_tst_addr);
- temp |= 0x2;
- writel(temp, REG_MISC_REG10_tst_addr);
-
- dmcdelay(100000u);
-
- temp = readl(REG_MISC_REG10_tst_addr);
- temp |= 0x1;
- writel(temp, REG_MISC_REG10_tst_addr);
-
- temp = readl(REG_MISC_REG10_tst_addr);
- temp |= 0x800;
- writel(temp, REG_MISC_REG10_tst_addr);
-
- temp = readl(REG_MISC_REG10_tst_addr);
- temp &= 0xFFFFF7F8;
- writel(temp, REG_MISC_REG10_tst_addr);
-
- dmcdelay(4000u);
-
- temp = readl(REG_MISC_REG10_tst_addr);
- temp |= ((dsel << BITP_REG10_DSEL3) & BITM_REG10_DSEL3);
- writel(temp, REG_MISC_REG10_tst_addr);
-
- temp = readl(REG_MISC_REG10_tst_addr);
- temp |= 0x4;
- writel(temp, REG_MISC_REG10_tst_addr);
-
- dmcdelay(100000u);
-
- temp = readl(REG_MISC_REG10_tst_addr);
- temp |= 0x1;
- writel(temp, REG_MISC_REG10_tst_addr);
-
- temp = readl(REG_MISC_REG10_tst_addr);
- temp |= 0x800;
- writel(temp, REG_MISC_REG10_tst_addr);
-#endif
-}
-
-static void Active_To_Fullon(const struct CGU_Settings *pCGU)
-{
- u32 tmp;
-
- while (1) {
- tmp = readl(pCGU->rbase + CGU_STAT);
- if ((tmp & BITM_CGU_STAT_PLLEN) &&
- (tmp & BITM_CGU_STAT_PLLBP))
- break;
- }
-
- writel(BITM_CGU_PLLCTL_PLLBPCL, pCGU->rbase + CGU_PLLCTL);
-
- while (1) {
- tmp = readl(pCGU->rbase + CGU_STAT);
- if ((tmp & BITM_CGU_STAT_PLLEN) &&
- ~(tmp & BITM_CGU_STAT_PLLBP) &&
- ~(tmp & BITM_CGU_STAT_CLKSALGN))
- break;
- }
-}
-
-static void CGU_Init(const struct CGU_Settings *pCGU)
-{
- const uintptr_t b = pCGU->rbase;
-
-#if defined(CONFIG_SC59X) || defined(CONFIG_SC59X_64)
- if (readl(b + CGU_STAT) & BITM_CGU_STAT_PLLEN)
- writel(BITM_CGU_PLLCTL_PLLEN, b + CGU_PLLCTL);
-
- dmcdelay(1000);
-#endif
-
- /* Check if processor is in Active mode */
- if (readl(b + CGU_STAT) & BITM_CGU_STAT_PLLBP)
- Active_To_Fullon(pCGU);
-
-#if defined(CONFIG_SC59X) || defined(CONFIG_SC59X_64)
- dmcdelay(1000);
-#endif
-
- program_cgu(pCGU);
-}
-
-void cgu_init(void)
-{
- const struct CGU_Settings dividers0 = {
- .rbase = CGU0_REGBASE,
- .ctl_MSEL = CONFIG_CGU0_VCO_MULT,
- .ctl_DF = CONFIG_CGU0_DF_DIV,
- .div_CSEL = CONFIG_CGU0_CCLK_DIV,
- .div_SYSSEL = CONFIG_CGU0_SCLK_DIV,
- .div_S0SEL = VAL_CGU0_SCLK0_DIV,
- .div_S1SEL = VAL_CGU0_SCLK1_DIV,
- .div_DSEL = CONFIG_CGU0_DCLK_DIV,
- .div_OSEL = CONFIG_CGU0_OCLK_DIV,
- .divex_S0SELEX = VAL_CGU0_DIV_S0SELEX,
- .divex_S1SELEX = VAL_CGU0_DIV_S1SELEX,
- .clkoutsel = VAL_CGU0_CLKOUTSEL,
- };
- const struct CGU_Settings dividers1 = {
- .rbase = CGU1_REGBASE,
- .ctl_MSEL = CONFIG_CGU1_VCO_MULT,
- .ctl_DF = CONFIG_CGU1_DF_DIV,
- .div_CSEL = CONFIG_CGU1_CCLK_DIV,
- .div_SYSSEL = CONFIG_CGU1_SCLK_DIV,
- .div_S0SEL = VAL_CGU1_SCLK0_DIV,
- .div_S1SEL = VAL_CGU1_SCLK1_DIV,
- .div_DSEL = CONFIG_CGU1_DCLK_DIV,
- .div_OSEL = CONFIG_CGU1_OCLK_DIV,
- .divex_S0SELEX = VAL_CGU1_DIV_S0SELEX,
- .divex_S1SELEX = VAL_CGU1_DIV_S1SELEX,
- .clkoutsel = VAL_CGU1_CLKOUTSEL,
- };
-
- CGU_Init(÷rs0);
- CGU_Init(÷rs1);
-}
-
-#define CONFIGURE_CDU0(a, b, c) \
- writel(a, b); \
- while (readl(REG_CDU0_STAT) & (1 << (c)))
-
-void cdu_init(void)
-{
- while (readl(REG_CDU0_STAT) & 0xffff)
- ;
- writel((CONFIG_CDU0_CGU1_CLKIN & 0x1), REG_CDU0_CLKINSEL);
-
- CONFIGURE_CDU0(CONFIG_CDU0_CLKO0, REG_CDU0_CFG0, 0);
- CONFIGURE_CDU0(CONFIG_CDU0_CLKO1, REG_CDU0_CFG1, 1);
- CONFIGURE_CDU0(CONFIG_CDU0_CLKO2, REG_CDU0_CFG2, 2);
- CONFIGURE_CDU0(CONFIG_CDU0_CLKO3, REG_CDU0_CFG3, 3);
- CONFIGURE_CDU0(CONFIG_CDU0_CLKO4, REG_CDU0_CFG4, 4);
- CONFIGURE_CDU0(CONFIG_CDU0_CLKO5, REG_CDU0_CFG5, 5);
- CONFIGURE_CDU0(CONFIG_CDU0_CLKO6, REG_CDU0_CFG6, 6);
- CONFIGURE_CDU0(CONFIG_CDU0_CLKO7, REG_CDU0_CFG7, 7);
- CONFIGURE_CDU0(CONFIG_CDU0_CLKO8, REG_CDU0_CFG8, 8);
- CONFIGURE_CDU0(CONFIG_CDU0_CLKO9, REG_CDU0_CFG9, 9);
-#ifdef CONFIG_CDU0_CLKO10
- CONFIGURE_CDU0(CONFIG_CDU0_CLKO10, REG_CDU0_CFG10, 10);
-#endif
-#ifdef CONFIG_CDU0_CLKO12
- CONFIGURE_CDU0(CONFIG_CDU0_CLKO12, REG_CDU0_CFG12, 12);
-#endif
-#ifdef CONFIG_CDU0_CLKO13
- CONFIGURE_CDU0(CONFIG_CDU0_CLKO13, REG_CDU0_CFG13, 13);
-#endif
-#ifdef CONFIG_CDU0_CLKO14
- CONFIGURE_CDU0(CONFIG_CDU0_CLKO14, REG_CDU0_CFG14, 14);
-#endif
-}
-
-void clks_init(void)
-{
- adi_dmc_reset_lanes(true);
-
- cdu_init();
- cgu_init();
-
- adi_config_third_pll();
-
- adi_dmc_reset_lanes(false);
-}
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0-or-later */
-/*
- * (C) Copyright 2022 - Analog Devices, Inc.
- *
- * Written and/or maintained by Timesys Corporation
- *
- * Contact: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
- * Contact: Greg Malysa <greg.malysa@timesys.com>
- */
-
-#ifndef CLKINIT_H_
-#define CLKINIT_H_
-
-void clks_init(void);
-
-void dmcdelay(uint32_t delay);
-
-#endif
+++ /dev/null
-// SPDX-License-Identifier: GPL-2.0-or-later
-/*
- * (C) Copyright 2022 - Analog Devices, Inc.
- *
- * Written and/or maintained by Timesys Corporation
- *
- * Contact: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
- * Contact: Greg Malysa <greg.malysa@timesys.com>
- */
-
-#include <asm/io.h>
-#include <asm/arch-adi/sc5xx/sc5xx.h>
-#include <linux/types.h>
-#include "clkinit.h"
-#include "dmcinit.h"
-
-#define REG_DMC0_BASE 0x31070000
-#define REG_DMC1_BASE 0x31073000
-
-#define REG_DMC_CTL 0x0004 // Control Register
-#define REG_DMC_STAT 0x0008 // Status Register
-#define REG_DMC_CFG 0x0040 // Configuration Register
-#define REG_DMC_TR0 0x0044 // Timing 0 Register
-#define REG_DMC_TR1 0x0048 // Timing 1 Register
-#define REG_DMC_TR2 0x004C // Timing 2 Register
-#define REG_DMC_MR 0x0060 // Shadow MR Register (DDR3)
-#define REG_DMC_EMR1 0x0064 // Shadow EMR1 Register
-#define REG_DMC_EMR2 0x0068 // Shadow EMR2 Register
-#define REG_DMC_EMR3 0x006C
-#define REG_DMC_DLLCTL 0x0080 // DLL Control Register
-#define REG_DMC_DT_CALIB_ADDR 0x0090 // Data Calibration Address Register
-#define REG_DMC_CPHY_CTL 0x01C0 // Controller to PHY Interface Register
-
-/* SC57x && SC58x DMC REGs */
-#define REG_DMC_PHY_CTL0 0x1000 // PHY Control 0 Register
-#define REG_DMC_PHY_CTL1 0x1004 // PHY Control 1 Register
-#define REG_DMC_PHY_CTL2 0x1008 // PHY Control 2 Register
-#define REG_DMC_PHY_CTL3 0x100c // PHY Control 3 Register
-#define REG_DMC_PHY_CTL4 0x1010 // PHY Control 4 Register
-#define REG_DMC_CAL_PADCTL0 0x1034 // CALIBRATION PAD CTL 0 Register
-#define REG_DMC_CAL_PADCTL2 0x103C // CALIBRATION PAD CTL2 Register
-/* END */
-
-/* SC59x DMC REGs */
-#define REG_DMC_DDR_LANE0_CTL0 0x1000 // Data Lane 0 Control Register 0
-#define REG_DMC_DDR_LANE0_CTL1 0x1004 // Data Lane 0 Control Register 1
-#define REG_DMC_DDR_LANE1_CTL0 0x100C // Data Lane 1 Control Register 0
-#define REG_DMC_DDR_LANE1_CTL1 0x1010 // Data Lane 1 Control Register 1
-#define REG_DMC_DDR_ROOT_CTL 0x1018 // DDR ROOT Module Control Register
-#define REG_DMC_DDR_ZQ_CTL0 0x1034 // DDR Calibration Control Register 0
-#define REG_DMC_DDR_ZQ_CTL1 0x1038 // DDR Calibration Control Register 1
-#define REG_DMC_DDR_ZQ_CTL2 0x103C // DDR Calibration Control Register 2
-#define REG_DMC_DDR_CA_CTL 0x1068 // DDR CA Lane Control Register
-/* END */
-
-#define REG_DMC_DDR_SCRATCH_2 0x1074
-#define REG_DMC_DDR_SCRATCH_3 0x1078
-#define REG_DMC_DDR_SCRATCH_6 0x1084
-#define REG_DMC_DDR_SCRATCH_7 0x1088
-
-#define REG_DMC_DDR_SCRATCH_STAT0 0x107C
-#define REG_DMC_DDR_SCRATCH_STAT1 0x1080
-
-#define DMC0_DATA_CALIB_ADD 0x80000000
-#define DMC1_DATA_CALIB_ADD 0xC0000000
-
-#define BITM_DMC_CFG_EXTBANK 0x0000F000 /* External Banks */
-#define ENUM_DMC_CFG_EXTBANK1 0x00000000 /* EXTBANK: 1 External Bank */
-#define BITM_DMC_CFG_SDRSIZE 0x00000F00 /* SDRAM Size */
-#define ENUM_DMC_CFG_SDRSIZE64 0x00000000 /* SDRSIZE: 64M Bit SDRAM (LPDDR Only) */
-#define ENUM_DMC_CFG_SDRSIZE128 0x00000100 /* SDRSIZE: 128M Bit SDRAM (LPDDR Only) */
-#define ENUM_DMC_CFG_SDRSIZE256 0x00000200 /* SDRSIZE: 256M Bit SDRAM */
-#define ENUM_DMC_CFG_SDRSIZE512 0x00000300 /* SDRSIZE: 512M Bit SDRAM */
-#define ENUM_DMC_CFG_SDRSIZE1G 0x00000400 /* SDRSIZE: 1G Bit SDRAM */
-#define ENUM_DMC_CFG_SDRSIZE2G 0x00000500 /* SDRSIZE: 2G Bit SDRAM */
-#define ENUM_DMC_CFG_SDRSIZE4G 0x00000600 /* SDRSIZE: 4G Bit SDRAM */
-#define ENUM_DMC_CFG_SDRSIZE8G 0x00000700 /* SDRSIZE: 8G Bit SDRAM */
-#define BITM_DMC_CFG_SDRWID 0x000000F0 /* SDRAM Width */
-#define ENUM_DMC_CFG_SDRWID16 0x00000020 /* SDRWID: 16-Bit Wide SDRAM */
-#define BITM_DMC_CFG_IFWID 0x0000000F /* Interface Width */
-#define ENUM_DMC_CFG_IFWID16 0x00000002 /* IFWID: 16-Bit Wide Interface */
-
-#define BITM_DMC_CTL_DDR3EN 0x00000001
-#define BITM_DMC_CTL_INIT 0x00000004
-#define BITP_DMC_STAT_INITDONE 2 /* Initialization Done */
-#define BITM_DMC_STAT_INITDONE 0x00000004
-
-#define BITP_DMC_CTL_AL_EN 27
-#define BITP_DMC_CTL_ZQCL 25 /* ZQ Calibration Long */
-#define BITP_DMC_CTL_ZQCS 24 /* ZQ Calibration Short */
-#define BITP_DMC_CTL_DLLCAL 13 /* DLL Calibration Start */
-#define BITP_DMC_CTL_PPREF 12 /* Postpone Refresh */
-#define BITP_DMC_CTL_RDTOWR 9 /* Read-to-Write Cycle */
-#define BITP_DMC_CTL_ADDRMODE 8 /* Addressing (Page/Bank) Mode */
-#define BITP_DMC_CTL_RESET 7 /* Reset SDRAM */
-#define BITP_DMC_CTL_PREC 6 /* Precharge */
-#define BITP_DMC_CTL_DPDREQ 5 /* Deep Power Down Request */
-#define BITP_DMC_CTL_PDREQ 4 /* Power Down Request */
-#define BITP_DMC_CTL_SRREQ 3 /* Self Refresh Request */
-#define BITP_DMC_CTL_INIT 2 /* Initialize DRAM Start */
-#define BITP_DMC_CTL_LPDDR 1 /* Low Power DDR Mode */
-#define BITP_DMC_CTL_DDR3EN 0 /* DDR3 Mode */
-
-#ifdef CONFIG_TARGET_SC584_EZKIT
- #define DMC_PADCTL2_VALUE 0x0078283C
-#elif CONFIG_TARGET_SC573_EZKIT
- #define DMC_PADCTL2_VALUE 0x00782828
-#elif CONFIG_TARGET_SC589_MINI || CONFIG_TARGET_SC589_EZKIT
- #define DMC_PADCTL2_VALUE 0x00783C3C
-#elif defined(CONFIG_SC57X) || defined(CONFIG_SC58X)
- #error "PADCTL2 not specified for custom board!"
-#else
- //Newer DMC. Legacy calibration obsolete
- #define DMC_PADCTL2_VALUE 0x0
-#endif
-
-#define DMC_CPHYCTL_VALUE 0x0000001A
-
-#define BITP_DMC_MR1_QOFF 12 /* Output Buffer Enable */
-#define BITP_DMC_MR1_TDQS 11 /* Termination Data Strobe */
-#define BITP_DMC_MR1_RTT2 9 /* Rtt_nom */
-#define BITP_DMC_MR1_WL 7 /* Write Leveling Enable. */
-#define BITP_DMC_MR1_RTT1 6 /* Rtt_nom */
-#define BITP_DMC_MR1_DIC1 5 /* Output Driver Impedance Control */
-#define BITP_DMC_MR1_AL 3 /* Additive Latency */
-#define BITP_DMC_MR1_RTT0 2 /* Rtt_nom */
-#define BITP_DMC_MR1_DIC0 1 /* Output Driver Impedance control */
-#define BITP_DMC_MR1_DLLEN 0 /* DLL Enable */
-
-#define BITP_DMC_MR2_CWL 3 /* CAS write Latency */
-
-#define BITP_DMC_TR0_TMRD 28 /* Timing Mode Register Delay */
-#define BITP_DMC_TR0_TRC 20 /* Timing Row Cycle */
-#define BITP_DMC_TR0_TRAS 12 /* Timing Row Active Time */
-#define BITP_DMC_TR0_TRP 8 /* Timing RAS Precharge. */
-#define BITP_DMC_TR0_TWTR 4 /* Timing Write to Read */
-#define BITP_DMC_TR0_TRCD 0 /* Timing RAS to CAS Delay */
-
-#define BITP_DMC_TR1_TRRD 28 /* Timing Read-Read Delay */
-#define BITP_DMC_TR1_TRFC 16 /* Timing Refresh-to-Command */
-#define BITP_DMC_TR1_TREF 0 /* Timing Refresh Interval */
-
-#define BITP_DMC_TR2_TCKE 20 /* Timing Clock Enable */
-#define BITP_DMC_TR2_TXP 16 /* Timing Exit Powerdown */
-#define BITP_DMC_TR2_TWR 12 /* Timing Write Recovery */
-#define BITP_DMC_TR2_TRTP 8 /* Timing Read-to-Precharge */
-#define BITP_DMC_TR2_TFAW 0 /* Timing Four-Activated-Window */
-
-#define BITP_DMC_MR_PD 12 /* Active Powerdown Mode */
-#define BITP_DMC_MR_WRRECOV 9 /* Write Recovery */
-#define BITP_DMC_MR_DLLRST 8 /* DLL Reset */
-#define BITP_DMC_MR_CL 4 /* CAS Latency */
-#define BITP_DMC_MR_CL0 2 /* CAS Latency */
-#define BITP_DMC_MR_BLEN 0 /* Burst Length */
-
-#define BITP_DMC_DLLCTL_DATACYC 8 /* Data Cycles */
-#define BITP_DMC_DLLCTL_DLLCALRDCNT 0 /* DLL Calibration RD Count */
-
-#define BITM_DMC_DLLCTL_DATACYC 0x00000F00 /* Data Cycles */
-#define BITM_DMC_DLLCTL_DLLCALRDCNT 0x000000FF /* DLL Calib RD Count */
-
-#define BITP_DMC_STAT_PHYRDPHASE 20 /* PHY Read Phase */
-
-#define BITM_DMC_DDR_LANE0_CTL0_CB_RSTDAT 0x08000000 /* Rst Data Pads */
-#define BITM_DMC_DDR_LANE1_CTL0_CB_RSTDAT 0x08000000 /* Rst Data Pads */
-#define BITM_DMC_DDR_LANE0_CTL1_COMP_DCYCLE 0x00000002 /* Compute Dcycle */
-#define BITM_DMC_DDR_LANE1_CTL1_COMP_DCYCLE 0x00000002 /* Compute Dcycle */
-#define BITM_DMC_DDR_LANE1_CTL0_CB_RSTDLL 0x00000100 /* Rst Lane DLL */
-#define BITM_DMC_DDR_LANE0_CTL0_CB_RSTDLL 0x00000100 /* Rst Lane DLL */
-#define BITP_DMC_DDR_ROOT_CTL_PIPE_OFSTDCYCLE 10 /* Pipeline offset for PHYC_DATACYCLE */
-#define BITM_DMC_DDR_ROOT_CTL_SW_REFRESH 0x00002000 /* Refresh Lane DLL Code */
-#define BITM_DMC_DDR_CA_CTL_SW_REFRESH 0x00004000 /* Refresh Lane DLL Code */
-
-#define BITP_DMC_CTL_RL_DQS 26 /* RL_DQS */
-#define BITM_DMC_CTL_RL_DQS 0x04000000 /* RL_DQS */
-#define BITP_DMC_EMR3_MPR 2 /* Multi Purpose Read Enable (Read Leveling)*/
-#define BITM_DMC_EMR3_MPR 0x00000004 /* Multi Purpose Read Enable (Read Leveling)*/
-#define BITM_DMC_MR1_WL 0x00000080 /* Write Leveling Enable.*/
-#define BITM_DMC_STAT_PHYRDPHASE 0x00F00000 /* PHY Read Phase */
-
-#define BITP_DMC_DDR_LANE0_CTL1_BYPCODE 10
-#define BITM_DMC_DDR_LANE0_CTL1_BYPCODE 0x00007C00
-#define BITP_DMC_DDR_LANE0_CTL1_BYPDELCHAINEN 15
-#define BITM_DMC_DDR_LANE0_CTL1_BYPDELCHAINEN 0x00008000
-
-#define DMC_ZQCTL0_VALUE 0x00785A64
-#define DMC_ZQCTL1_VALUE 0
-#define DMC_ZQCTL2_VALUE 0x70000000
-
-#define DMC_TRIG_CALIB 0
-#define DMC_OFSTDCYCLE 2
-
-#define BITP_DMC_CAL_PADCTL0_RTTCALEN 31 /* RTT Calibration Enable */
-#define BITP_DMC_CAL_PADCTL0_PDCALEN 30 /* PULLDOWN Calib Enable */
-#define BITP_DMC_CAL_PADCTL0_PUCALEN 29 /* PULLUP Calib Enable */
-#define BITP_DMC_CAL_PADCTL0_CALSTRT 28 /* Start New Calib ( Hardware Cleared) */
-#define BITM_DMC_CAL_PADCTL0_RTTCALEN 0x80000000 /* RTT Calibration Enable */
-#define BITM_DMC_CAL_PADCTL0_PDCALEN 0x40000000 /* PULLDOWN Calib Enable */
-#define BITM_DMC_CAL_PADCTL0_PUCALEN 0x20000000 /* PULLUP Calib Enable */
-#define BITM_DMC_CAL_PADCTL0_CALSTRT 0x10000000 /* Start New Calib ( Hardware Cleared) */
-#define ENUM_DMC_PHY_CTL4_DDR3 0x00000000 /* DDRMODE: DDR3 Mode */
-#define ENUM_DMC_PHY_CTL4_DDR2 0x00000001 /* DDRMODE: DDR2 Mode */
-#define ENUM_DMC_PHY_CTL4_LPDDR 0x00000003 /* DDRMODE: LPDDR Mode */
-
-#define BITP_DMC_DDR_ZQ_CTL0_IMPRTT 16 /* Data/DQS ODT */
-#define BITP_DMC_DDR_ZQ_CTL0_IMPWRDQ 8 /* Data/DQS/DM/CLK Drive Strength */
-#define BITP_DMC_DDR_ZQ_CTL0_IMPWRADD 0 /* Address/Command Drive Strength */
-#define BITM_DMC_DDR_ZQ_CTL0_IMPRTT 0x00FF0000 /* Data/DQS ODT */
-#define BITM_DMC_DDR_ZQ_CTL0_IMPWRDQ 0x0000FF00 /* Data/DQS/DM/CLK Drive Strength */
-#define BITM_DMC_DDR_ZQ_CTL0_IMPWRADD 0x000000FF /* Address/Command Drive Strength */
-
-#define BITM_DMC_DDR_ROOT_CTL_TRIG_RD_XFER_ALL 0x00200000 /* All Lane Read Status */
-
-#if defined(CONFIG_ADI_USE_DDR2)
- #define DMC_MR0_VALUE \
- ((DMC_BL / 4 + 1) << BITP_DMC_MR_BLEN) | \
- (DMC_CL << BITP_DMC_MR_CL) | \
- (DMC_WRRECOV << BITP_DMC_MR_WRRECOV)
-
- #define DMC_MR1_VALUE \
- (DMC_MR1_AL << BITP_DMC_MR1_AL | 0x04) \
-
- #define DMC_MR2_VALUE 0
- #define DMC_MR3_VALUE 0
-
- #define DMC_CTL_VALUE \
- (DMC_RDTOWR << BITP_DMC_CTL_RDTOWR) | \
- (1 << BITP_DMC_CTL_DLLCAL) | \
- (BITM_DMC_CTL_INIT)
-#else
- #define DMC_MR0_VALUE \
- (0 << BITP_DMC_MR_BLEN) | \
- (DMC_CL0 << BITP_DMC_MR_CL0) | \
- (DMC_CL123 << BITP_DMC_MR_CL) | \
- (DMC_WRRECOV << BITP_DMC_MR_WRRECOV) | \
- (1 << BITP_DMC_MR_DLLRST)
-
- #define DMC_MR1_VALUE \
- (DMC_MR1_DLLEN << BITP_DMC_MR1_DLLEN) | \
- (DMC_MR1_DIC0 << BITP_DMC_MR1_DIC0) | \
- (DMC_MR1_RTT0 << BITP_DMC_MR1_RTT0) | \
- (DMC_MR1_AL << BITP_DMC_MR1_AL) | \
- (DMC_MR1_DIC1 << BITP_DMC_MR1_DIC1) | \
- (DMC_MR1_RTT1 << BITP_DMC_MR1_RTT1) | \
- (DMC_MR1_RTT2 << BITP_DMC_MR1_RTT2) | \
- (DMC_MR1_WL << BITP_DMC_MR1_WL) | \
- (DMC_MR1_TDQS << BITP_DMC_MR1_TDQS) | \
- (DMC_MR1_QOFF << BITP_DMC_MR1_QOFF)
-
- #define DMC_MR2_VALUE \
- ((DMC_WL) << BITP_DMC_MR2_CWL)
-
- #define DMC_MR3_VALUE \
- ((DMC_WL) << BITP_DMC_MR2_CWL)
-
- #define DMC_CTL_VALUE \
- (DMC_RDTOWR << BITP_DMC_CTL_RDTOWR) | \
- (BITM_DMC_CTL_INIT) | \
- (BITM_DMC_CTL_DDR3EN) | \
- (DMC_CTL_AL_EN << BITP_DMC_CTL_AL_EN)
-#endif
-
-#define DMC_DLLCTL_VALUE \
- (DMC_DATACYC << BITP_DMC_DLLCTL_DATACYC) | \
- (DMC_DLLCALRDCNT << BITP_DMC_DLLCTL_DLLCALRDCNT)
-
-#define DMC_CFG_VALUE \
- ENUM_DMC_CFG_IFWID16 | \
- ENUM_DMC_CFG_SDRWID16 | \
- SDR_CHIP_SIZE | \
- ENUM_DMC_CFG_EXTBANK1
-
-#define DMC_TR0_VALUE \
- (DMC_TRCD << BITP_DMC_TR0_TRCD) | \
- (DMC_TWTR << BITP_DMC_TR0_TWTR) | \
- (DMC_TRP << BITP_DMC_TR0_TRP) | \
- (DMC_TRAS << BITP_DMC_TR0_TRAS) | \
- (DMC_TRC << BITP_DMC_TR0_TRC) | \
- (DMC_TMRD << BITP_DMC_TR0_TMRD)
-
-#define DMC_TR1_VALUE \
- (DMC_TREF << BITP_DMC_TR1_TREF) | \
- (DMC_TRFC << BITP_DMC_TR1_TRFC) | \
- (DMC_TRRD << BITP_DMC_TR1_TRRD)
-
-#define DMC_TR2_VALUE \
- (DMC_TFAW << BITP_DMC_TR2_TFAW) | \
- (DMC_TRTP << BITP_DMC_TR2_TRTP) | \
- (DMC_TWR << BITP_DMC_TR2_TWR) | \
- (DMC_TXP << BITP_DMC_TR2_TXP) | \
- (DMC_TCKE << BITP_DMC_TR2_TCKE)
-
-enum DDR_MODE {
- DDR3_MODE,
- DDR2_MODE,
- LPDDR_MODE,
-};
-
-enum CALIBRATION_MODE {
- CALIBRATION_LEGACY,
- CALIBRATION_METHOD1,
- CALIBRATION_METHOD2,
-};
-
-static struct dmc_param {
- phys_addr_t reg;
- u32 ddr_mode;
- u32 padctl2_value;
- u32 dmc_cphyctl_value;
- u32 dmc_cfg_value;
- u32 dmc_dllctl_value;
- u32 dmc_ctl_value;
- u32 dmc_tr0_value;
- u32 dmc_tr1_value;
- u32 dmc_tr2_value;
- u32 dmc_mr0_value;
- u32 dmc_mr1_value;
- u32 dmc_mr2_value;
- u32 dmc_mr3_value;
- u32 dmc_zqctl0_value;
- u32 dmc_zqctl1_value;
- u32 dmc_zqctl2_value;
- u32 dmc_data_calib_add_value;
- bool phy_init_required;
- bool anomaly_20000037_applicable;
- enum CALIBRATION_MODE calib_mode;
-} dmc;
-
-#ifdef CONFIG_SC59X_64
-#define DQS_DEFAULT_DELAY 3ul
-
-#define DELAYTRIM 1
-#define LANE0_DQS_DELAY 1
-#define LANE1_DQS_DELAY 1
-
-#define CLKDIR 0ul
-
-#define DQSTRIM 0
-#define DQSCODE 0ul
-
-#define CLKTRIM 0
-#define CLKCODE 0ul
-#endif
-
-static inline void calibration_legacy(void)
-{
- u32 temp;
-
- /* 1. Set DDR mode to DDR3/DDR2/LPDDR in DMCx_PHY_CTL4 register */
- if (dmc.ddr_mode == DDR3_MODE)
- writel(ENUM_DMC_PHY_CTL4_DDR3, dmc.reg + REG_DMC_PHY_CTL4);
- else if (dmc.ddr_mode == DDR2_MODE)
- writel(ENUM_DMC_PHY_CTL4_DDR2, dmc.reg + REG_DMC_PHY_CTL4);
- else if (dmc.ddr_mode == LPDDR_MODE)
- writel(ENUM_DMC_PHY_CTL4_LPDDR, dmc.reg + REG_DMC_PHY_CTL4);
-
- /*
- * 2. Make sure that the bits 6, 7, 25, and 27 of the DMC_PHY_
- * CTL3 register are set
- */
- writel(0x0A0000C0, dmc.reg + REG_DMC_PHY_CTL3);
-
- /*
- * 3. For DDR2/DDR3 mode, make sure that the bits 0, 1, 2, 3 of
- * the DMC_PHY_CTL0 register and the bits 26, 27, 28, 29, 30, 31
- * of the DMC_PHY_CTL2 are set.
- */
- if (dmc.ddr_mode == DDR3_MODE ||
- dmc.ddr_mode == DDR2_MODE) {
- writel(0XFC000000, dmc.reg + REG_DMC_PHY_CTL2);
- writel(0x0000000f, dmc.reg + REG_DMC_PHY_CTL0);
- }
-
- writel(0x00000000, dmc.reg + REG_DMC_PHY_CTL1);
-
- /* 4. For DDR3 mode, set bit 1 and configure bits [5:2] of the
- * DMC_CPHY_CTL register with WL=CWL+AL in DCLK cycles.
- */
- if (dmc.ddr_mode == DDR3_MODE)
- writel(dmc.dmc_cphyctl_value, dmc.reg + REG_DMC_CPHY_CTL);
- /* 5. Perform On Die Termination(ODT) & Driver Impedance Calibration */
- if (dmc.ddr_mode == LPDDR_MODE) {
- /* Bypass processor ODT */
- writel(0x80000, dmc.reg + REG_DMC_PHY_CTL1);
- } else {
- /* Set bits RTTCALEN, PDCALEN, PUCALEN of register */
- temp = BITM_DMC_CAL_PADCTL0_RTTCALEN |
- BITM_DMC_CAL_PADCTL0_PDCALEN |
- BITM_DMC_CAL_PADCTL0_PUCALEN;
- writel(temp, dmc.reg + REG_DMC_CAL_PADCTL0);
- /* Configure ODT and drive impedance values in the
- * DMCx_CAL_PADCTL2 register
- */
- writel(dmc.padctl2_value, dmc.reg + REG_DMC_CAL_PADCTL2);
- /* start calibration */
- temp |= BITM_DMC_CAL_PADCTL0_CALSTRT;
- writel(temp, dmc.reg + REG_DMC_CAL_PADCTL0);
- /* Wait for PAD calibration to complete - 300 DCLK cycle.
- * Worst case: CCLK=450 MHz, DCLK=125 MHz
- */
- dmcdelay(300);
- }
-}
-
-static inline void calibration_method1(void)
-{
-#if defined(CONFIG_SC59X) || defined(CONFIG_SC59X_64)
- writel(dmc.dmc_zqctl0_value, dmc.reg + REG_DMC_DDR_ZQ_CTL0);
- writel(dmc.dmc_zqctl1_value, dmc.reg + REG_DMC_DDR_ZQ_CTL1);
- writel(dmc.dmc_zqctl2_value, dmc.reg + REG_DMC_DDR_ZQ_CTL2);
-
- /* Generate the trigger */
- writel(0x0ul, dmc.reg + REG_DMC_DDR_CA_CTL);
- writel(0x0ul, dmc.reg + REG_DMC_DDR_ROOT_CTL);
- writel(0x00010000ul, dmc.reg + REG_DMC_DDR_ROOT_CTL);
- dmcdelay(8000u);
-
- /* The [31:26] bits may change if pad ring changes */
- writel(0x0C000001ul | DMC_TRIG_CALIB, dmc.reg + REG_DMC_DDR_CA_CTL);
- dmcdelay(8000u);
- writel(0x0ul, dmc.reg + REG_DMC_DDR_CA_CTL);
- writel(0x0ul, dmc.reg + REG_DMC_DDR_ROOT_CTL);
-#endif
-}
-
-static inline void calibration_method2(void)
-{
-#if defined(CONFIG_SC59X) || defined(CONFIG_SC59X_64)
- u32 stat_value = 0x0u;
- u32 drv_pu, drv_pd, odt_pu, odt_pd;
- u32 ro_dt, clk_dqs_drv_impedance;
- u32 temp;
-
- /* Reset trigger */
- writel(0x0ul, dmc.reg + REG_DMC_DDR_CA_CTL);
- writel(0x0ul, dmc.reg + REG_DMC_DDR_ROOT_CTL);
- writel(0x0ul, dmc.reg + REG_DMC_DDR_SCRATCH_3);
- writel(0x0ul, dmc.reg + REG_DMC_DDR_SCRATCH_2);
-
- /* Writing internal registers in calib pad to zero. Calib mode set
- * to 1 [26], trig M1 S1 write [16], this enables usage of scratch
- * registers instead of ZQCTL registers
- */
- writel(0x04010000ul, dmc.reg + REG_DMC_DDR_ROOT_CTL);
- dmcdelay(2500u);
-
- /* TRIGGER FOR M2-S2 WRITE -> slave id 31:26 trig m2,s2 write
- * bit 1->1 slave1 address is 4
- */
- writel(0x10000002ul, dmc.reg + REG_DMC_DDR_CA_CTL);
- dmcdelay(2500u);
-
- /* reset Trigger */
- writel(0x0u, dmc.reg + REG_DMC_DDR_CA_CTL);
- writel(0x0u, dmc.reg + REG_DMC_DDR_ROOT_CTL);
-
- /* write to slave 1, make the power down bit high */
- writel(0x1ul << 12, dmc.reg + REG_DMC_DDR_SCRATCH_3);
- writel(0x0ul, dmc.reg + REG_DMC_DDR_SCRATCH_2);
- dmcdelay(2500u);
-
- /* Calib mode set to 1 [26], trig M1 S1 write [16] */
- writel(0x04010000ul, dmc.reg + REG_DMC_DDR_ROOT_CTL);
- dmcdelay(2500u);
-
- writel(0x10000002ul, dmc.reg + REG_DMC_DDR_CA_CTL);
- dmcdelay(2500u);
-
- writel(0x0ul, dmc.reg + REG_DMC_DDR_CA_CTL);
- writel(0x0ul, dmc.reg + REG_DMC_DDR_ROOT_CTL);
- writel(0x0, dmc.reg + REG_DMC_DDR_SCRATCH_3);
-
- /* for slave 0 */
- writel(dmc.dmc_zqctl0_value, dmc.reg + REG_DMC_DDR_SCRATCH_2);
-
- /* Calib mode set to 1 [26], trig M1 S1 write [16] */
- writel(0x04010000ul, dmc.reg + REG_DMC_DDR_ROOT_CTL);
- dmcdelay(2500u);
-
- writel(0x0C000002ul, dmc.reg + REG_DMC_DDR_CA_CTL);
- dmcdelay(2500u);
-
- writel(0x0ul, dmc.reg + REG_DMC_DDR_CA_CTL);
- writel(0x0ul, dmc.reg + REG_DMC_DDR_ROOT_CTL);
-
- /* writing to slave 1
- * calstrt is 0, but other programming is done
- *
- * make power down LOW again, to kickstart BIAS circuit
- */
- writel(0x0ul, dmc.reg + REG_DMC_DDR_SCRATCH_3);
- writel(0x30000000ul, dmc.reg + REG_DMC_DDR_SCRATCH_2);
-
- /* write to ca_ctl lane, calib mode set to 1 [26],
- * trig M1 S1 write [16]
- */
- writel(0x04010000ul, dmc.reg + REG_DMC_DDR_ROOT_CTL);
- dmcdelay(2500u);
-
- /* copies data to lane controller slave
- * TRIGGER FOR M2-S2 WRITE -> slave id 31:26
- * trig m2,s2 write bit 1->1
- * slave1 address is 4
- */
- writel(0x10000002ul, dmc.reg + REG_DMC_DDR_CA_CTL);
- dmcdelay(2500u);
-
- /* reset Trigger */
- writel(0x0ul, dmc.reg + REG_DMC_DDR_CA_CTL);
- writel(0x0ul, dmc.reg + REG_DMC_DDR_ROOT_CTL);
- writel(0x0ul, dmc.reg + REG_DMC_DDR_SCRATCH_3);
- writel(0x0ul, dmc.reg + REG_DMC_DDR_SCRATCH_2);
- writel(0x0ul, dmc.reg + REG_DMC_DDR_SCRATCH_3);
- writel(0x0ul, dmc.reg + REG_DMC_DDR_SCRATCH_2);
- writel(0x04010000ul, dmc.reg + REG_DMC_DDR_ROOT_CTL);
- dmcdelay(2500u);
- writel(0x10000002ul, dmc.reg + REG_DMC_DDR_CA_CTL);
- dmcdelay(2500u);
- writel(0x0ul, dmc.reg + REG_DMC_DDR_CA_CTL);
- writel(0x0ul, dmc.reg + REG_DMC_DDR_ROOT_CTL);
- writel(0x0ul, dmc.reg + REG_DMC_DDR_SCRATCH_3);
- writel(0x0ul, dmc.reg + REG_DMC_DDR_SCRATCH_2);
- writel(0x0ul, dmc.reg + REG_DMC_DDR_SCRATCH_3);
- writel(0x50000000ul, dmc.reg + REG_DMC_DDR_SCRATCH_2);
- writel(0x04010000ul, dmc.reg + REG_DMC_DDR_ROOT_CTL);
- dmcdelay(2500u);
- writel(0x10000002ul, dmc.reg + REG_DMC_DDR_CA_CTL);
- dmcdelay(2500u);
- writel(0u, dmc.reg + REG_DMC_DDR_CA_CTL);
- writel(0u, dmc.reg + REG_DMC_DDR_ROOT_CTL);
- writel(0x0C000004u, dmc.reg + REG_DMC_DDR_CA_CTL);
- dmcdelay(2500u);
- writel(BITM_DMC_DDR_ROOT_CTL_TRIG_RD_XFER_ALL,
- dmc.reg + REG_DMC_DDR_ROOT_CTL);
- dmcdelay(2500u);
- writel(0u, dmc.reg + REG_DMC_DDR_CA_CTL);
- writel(0u, dmc.reg + REG_DMC_DDR_ROOT_CTL);
- // calculate ODT PU and PD values
- stat_value = ((readl(dmc.reg + REG_DMC_DDR_SCRATCH_7) & 0x0000FFFFu) <<
- 16);
- stat_value |= ((readl(dmc.reg + REG_DMC_DDR_SCRATCH_6) & 0xFFFF0000u) >>
- 16);
- clk_dqs_drv_impedance = ((dmc.dmc_zqctl0_value) &
- BITM_DMC_DDR_ZQ_CTL0_IMPWRDQ) >> BITP_DMC_DDR_ZQ_CTL0_IMPWRDQ;
- ro_dt = ((dmc.dmc_zqctl0_value) & BITM_DMC_DDR_ZQ_CTL0_IMPRTT) >>
- BITP_DMC_DDR_ZQ_CTL0_IMPRTT;
- drv_pu = stat_value & 0x0000003Fu;
- drv_pd = (stat_value >> 12) & 0x0000003Fu;
- odt_pu = (drv_pu * clk_dqs_drv_impedance) / ro_dt;
- odt_pd = (drv_pd * clk_dqs_drv_impedance) / ro_dt;
- temp = ((1uL << 24) |
- ((drv_pd & 0x0000003Fu)) |
- ((odt_pd & 0x0000003Fu) << 6) |
- ((drv_pu & 0x0000003Fu) << 12) |
- ((odt_pu & 0x0000003Fu) << 18));
- temp |= readl(dmc.reg + REG_DMC_DDR_SCRATCH_2);
- writel(temp, dmc.reg + REG_DMC_DDR_SCRATCH_2);
- writel(0x0C010000u, dmc.reg + REG_DMC_DDR_ROOT_CTL);
- dmcdelay(2500u);
- writel(0x08000002u, dmc.reg + REG_DMC_DDR_CA_CTL);
- dmcdelay(2500u);
- writel(0u, dmc.reg + REG_DMC_DDR_CA_CTL);
- writel(0u, dmc.reg + REG_DMC_DDR_ROOT_CTL);
- writel(0x04010000u, dmc.reg + REG_DMC_DDR_ROOT_CTL);
- dmcdelay(2500u);
- writel(0x80000002u, dmc.reg + REG_DMC_DDR_CA_CTL);
- dmcdelay(2500u);
- writel(0u, dmc.reg + REG_DMC_DDR_CA_CTL);
- writel(0u, dmc.reg + REG_DMC_DDR_ROOT_CTL);
-#endif
-}
-
-static inline void adi_dmc_lane_reset(bool reset, uint32_t dmc_no)
-{
-#if defined(CONFIG_SC59X) || defined(CONFIG_SC59X_64)
- u32 temp;
- phys_addr_t base = (dmc_no == 0) ? REG_DMC0_BASE : REG_DMC1_BASE;
- phys_addr_t ln0 = base + REG_DMC_DDR_LANE0_CTL0;
- phys_addr_t ln1 = base + REG_DMC_DDR_LANE1_CTL0;
-
- if (reset) {
- temp = readl(ln0);
- temp |= BITM_DMC_DDR_LANE0_CTL0_CB_RSTDLL;
- writel(temp, ln0);
-
- temp = readl(ln1);
- temp |= BITM_DMC_DDR_LANE1_CTL0_CB_RSTDLL;
- writel(temp, ln1);
- } else {
- temp = readl(ln0);
- temp &= ~BITM_DMC_DDR_LANE0_CTL0_CB_RSTDLL;
- writel(temp, ln0);
-
- temp = readl(ln1);
- temp &= ~BITM_DMC_DDR_LANE1_CTL0_CB_RSTDLL;
- writel(temp, ln1);
- }
- dmcdelay(9000u);
-#endif
-}
-
-void adi_dmc_reset_lanes(bool reset)
-{
- if (!IS_ENABLED(CONFIG_ADI_USE_DDR2)) {
- if (IS_ENABLED(CONFIG_SC59X) || IS_ENABLED(CONFIG_SC59X_64)) {
- if (IS_ENABLED(CONFIG_ADI_USE_DMC0))
- adi_dmc_lane_reset(reset, 0);
- if (IS_ENABLED(CONFIG_ADI_USE_DMC1))
- adi_dmc_lane_reset(reset, 1);
- }
- else {
- u32 temp = reset ? 0x800 : 0x0;
-
- if (IS_ENABLED(CONFIG_ADI_USE_DMC0))
- writel(temp, REG_DMC0_BASE + REG_DMC_PHY_CTL0);
- if (IS_ENABLED(CONFIG_ADI_USE_DMC1))
- writel(temp, REG_DMC1_BASE + REG_DMC_PHY_CTL0);
- }
- }
-}
-
-static inline void dmc_controller_init(void)
-{
-#if defined(CONFIG_SC59X) || defined(CONFIG_SC59X_64)
- u32 phyphase, rd_cnt, t_EMR1, t_EMR3, t_CTL, data_cyc, temp;
-#endif
-
- /* 1. Program the DMC controller registers: DMCx_CFG, DMCx_TR0,
- * DMCx_TR1, DMCx_TR2, DMCx_MR(DDR2/LPDDR)/DMCx_MR0(DDR3),
- * DMCx_EMR1(DDR2)/DMCx_MR1(DDR3),
- * DMCx_EMR2(DDR2)/DMCx_EMR(LPDDR)/DMCx_MR2(DDR3)
- */
- writel(dmc.dmc_cfg_value, dmc.reg + REG_DMC_CFG);
- writel(dmc.dmc_tr0_value, dmc.reg + REG_DMC_TR0);
- writel(dmc.dmc_tr1_value, dmc.reg + REG_DMC_TR1);
- writel(dmc.dmc_tr2_value, dmc.reg + REG_DMC_TR2);
- writel(dmc.dmc_mr0_value, dmc.reg + REG_DMC_MR);
- writel(dmc.dmc_mr1_value, dmc.reg + REG_DMC_EMR1);
- writel(dmc.dmc_mr2_value, dmc.reg + REG_DMC_EMR2);
-
-#if defined(CONFIG_SC59X) || defined(CONFIG_SC59X_64)
- writel(dmc.dmc_mr3_value, dmc.reg + REG_DMC_EMR3);
- writel(dmc.dmc_dllctl_value, dmc.reg + REG_DMC_DLLCTL);
- dmcdelay(2000u);
-
- temp = readl(dmc.reg + REG_DMC_DDR_CA_CTL);
- temp |= BITM_DMC_DDR_CA_CTL_SW_REFRESH;
- writel(temp, dmc.reg + REG_DMC_DDR_CA_CTL);
- dmcdelay(5u);
-
- temp = readl(dmc.reg + REG_DMC_DDR_ROOT_CTL);
- temp |= BITM_DMC_DDR_ROOT_CTL_SW_REFRESH |
- (DMC_OFSTDCYCLE << BITP_DMC_DDR_ROOT_CTL_PIPE_OFSTDCYCLE);
- writel(temp, dmc.reg + REG_DMC_DDR_ROOT_CTL);
-#endif
-
- /* 2. Make sure that the REG_DMC_DT_CALIB_ADDR register is programmed
- * to an unused DMC location corresponding to a burst of 16 bytes
- * (by default it is the starting address of the DMC address range).
- */
-#ifndef CONFIG_SC59X
- writel(dmc.dmc_data_calib_add_value, dmc.reg + REG_DMC_DT_CALIB_ADDR);
-#endif
- /* 3. Program the DMCx_CTL register with INIT bit set to start
- * the DMC initialization sequence
- */
- writel(dmc.dmc_ctl_value, dmc.reg + REG_DMC_CTL);
- /* 4. Wait for the DMC initialization to complete by polling
- * DMCx_STAT.INITDONE bit.
- */
-
-#if defined(CONFIG_SC59X) || defined(CONFIG_SC59X_64)
- dmcdelay(722000u);
-
- /* Add necessary delay depending on the configuration */
- t_EMR1 = (dmc.dmc_mr1_value & BITM_DMC_MR1_WL) >> BITP_DMC_MR1_WL;
-
- dmcdelay(600u);
- if (t_EMR1 != 0u)
- while ((readl(dmc.reg + REG_DMC_EMR1) & BITM_DMC_MR1_WL) != 0)
- ;
-
- t_EMR3 = (dmc.dmc_mr3_value & BITM_DMC_EMR3_MPR) >>
- BITP_DMC_EMR3_MPR;
- dmcdelay(2000u);
- if (t_EMR3 != 0u)
- while ((readl(dmc.reg + REG_DMC_EMR3) & BITM_DMC_EMR3_MPR) != 0)
- ;
-
- t_CTL = (dmc.dmc_ctl_value & BITM_DMC_CTL_RL_DQS) >> BITP_DMC_CTL_RL_DQS;
- dmcdelay(600u);
- if (t_CTL != 0u)
- while ((readl(dmc.reg + REG_DMC_CTL) & BITM_DMC_CTL_RL_DQS) != 0)
- ;
-#endif
-
- /* check if DMC initialization finished*/
- while ((readl(dmc.reg + REG_DMC_STAT) & BITM_DMC_STAT_INITDONE) == 0)
- ;
-
-#if defined(CONFIG_SC59X) || defined(CONFIG_SC59X_64)
- /* toggle DCYCLE */
- temp = readl(dmc.reg + REG_DMC_DDR_LANE0_CTL1);
- temp |= BITM_DMC_DDR_LANE0_CTL1_COMP_DCYCLE;
- writel(temp, dmc.reg + REG_DMC_DDR_LANE0_CTL1);
-
- temp = readl(dmc.reg + REG_DMC_DDR_LANE1_CTL1);
- temp |= BITM_DMC_DDR_LANE1_CTL1_COMP_DCYCLE;
- writel(temp, dmc.reg + REG_DMC_DDR_LANE1_CTL1);
-
- dmcdelay(10u);
-
- temp = readl(dmc.reg + REG_DMC_DDR_LANE0_CTL1);
- temp &= (~BITM_DMC_DDR_LANE0_CTL1_COMP_DCYCLE);
- writel(temp, dmc.reg + REG_DMC_DDR_LANE0_CTL1);
-
- temp = readl(dmc.reg + REG_DMC_DDR_LANE1_CTL1);
- temp &= (~BITM_DMC_DDR_LANE1_CTL1_COMP_DCYCLE);
- writel(temp, dmc.reg + REG_DMC_DDR_LANE1_CTL1);
-
- /* toggle RSTDAT */
- temp = readl(dmc.reg + REG_DMC_DDR_LANE0_CTL0);
- temp |= BITM_DMC_DDR_LANE0_CTL0_CB_RSTDAT;
- writel(temp, dmc.reg + REG_DMC_DDR_LANE0_CTL0);
-
- temp = readl(dmc.reg + REG_DMC_DDR_LANE0_CTL0);
- temp &= (~BITM_DMC_DDR_LANE0_CTL0_CB_RSTDAT);
- writel(temp, dmc.reg + REG_DMC_DDR_LANE0_CTL0);
-
- temp = readl(dmc.reg + REG_DMC_DDR_LANE1_CTL0);
- temp |= BITM_DMC_DDR_LANE1_CTL0_CB_RSTDAT;
- writel(temp, dmc.reg + REG_DMC_DDR_LANE1_CTL0);
-
- temp = readl(dmc.reg + REG_DMC_DDR_LANE1_CTL0);
- temp &= (~BITM_DMC_DDR_LANE1_CTL0_CB_RSTDAT);
- writel(temp, dmc.reg + REG_DMC_DDR_LANE1_CTL0);
-
- dmcdelay(2500u);
-
- /* Program phyphase*/
- phyphase = (readl(dmc.reg + REG_DMC_STAT) &
- BITM_DMC_STAT_PHYRDPHASE) >> BITP_DMC_STAT_PHYRDPHASE;
- data_cyc = (phyphase << BITP_DMC_DLLCTL_DATACYC) &
- BITM_DMC_DLLCTL_DATACYC;
- rd_cnt = dmc.dmc_dllctl_value;
- rd_cnt <<= BITP_DMC_DLLCTL_DLLCALRDCNT;
- rd_cnt &= BITM_DMC_DLLCTL_DLLCALRDCNT;
- writel(rd_cnt | data_cyc, dmc.reg + REG_DMC_DLLCTL);
- writel((dmc.dmc_ctl_value & (~BITM_DMC_CTL_INIT) &
- (~BITM_DMC_CTL_RL_DQS)), dmc.reg + REG_DMC_CTL);
-
-#if DELAYTRIM
- /* DQS delay trim*/
- u32 stat_value, WL_code_LDQS, WL_code_UDQS;
-
- /* For LDQS */
- temp = readl(dmc.reg + REG_DMC_DDR_LANE0_CTL1) | (0x000000D0);
- writel(temp, dmc.reg + REG_DMC_DDR_LANE0_CTL1);
- dmcdelay(2500u);
- writel(0x00400000, dmc.reg + REG_DMC_DDR_ROOT_CTL);
- dmcdelay(2500u);
- writel(0x0, dmc.reg + REG_DMC_DDR_ROOT_CTL);
- stat_value = (readl(dmc.reg + REG_DMC_DDR_SCRATCH_STAT0) &
- (0xFFFF0000)) >> 16;
- WL_code_LDQS = (stat_value) & (0x0000001F);
-
- temp = readl(dmc.reg + REG_DMC_DDR_LANE0_CTL1);
- temp &= ~(BITM_DMC_DDR_LANE0_CTL1_BYPCODE |
- BITM_DMC_DDR_LANE0_CTL1_BYPDELCHAINEN);
- writel(temp, dmc.reg + REG_DMC_DDR_LANE0_CTL1);
-
- /* If write leveling is enabled */
- if ((dmc.dmc_mr1_value & BITM_DMC_MR1_WL) >> BITP_DMC_MR1_WL) {
- temp = readl(dmc.reg + REG_DMC_DDR_LANE0_CTL1);
- temp |= (((WL_code_LDQS + LANE0_DQS_DELAY) <<
- BITP_DMC_DDR_LANE0_CTL1_BYPCODE) &
- BITM_DMC_DDR_LANE0_CTL1_BYPCODE) |
- BITM_DMC_DDR_LANE0_CTL1_BYPDELCHAINEN;
- writel(temp, dmc.reg + REG_DMC_DDR_LANE0_CTL1);
- } else {
- temp = readl(dmc.reg + REG_DMC_DDR_LANE0_CTL1);
- temp |= (((DQS_DEFAULT_DELAY + LANE0_DQS_DELAY) <<
- BITP_DMC_DDR_LANE0_CTL1_BYPCODE) &
- BITM_DMC_DDR_LANE0_CTL1_BYPCODE) |
- BITM_DMC_DDR_LANE0_CTL1_BYPDELCHAINEN;
- writel(temp, dmc.reg + REG_DMC_DDR_LANE0_CTL1);
- }
- dmcdelay(2500u);
-
- /* For UDQS */
- temp = readl(dmc.reg + REG_DMC_DDR_LANE1_CTL1) | (0x000000D0);
- writel(temp, dmc.reg + REG_DMC_DDR_LANE1_CTL1);
- dmcdelay(2500u);
- writel(0x00800000, dmc.reg + REG_DMC_DDR_ROOT_CTL);
- dmcdelay(2500u);
- writel(0x0, dmc.reg + REG_DMC_DDR_ROOT_CTL);
- stat_value = (readl(dmc.reg + REG_DMC_DDR_SCRATCH_STAT1) &
- (0xFFFF0000)) >> 16;
- WL_code_UDQS = (stat_value) & (0x0000001F);
-
- temp = readl(dmc.reg + REG_DMC_DDR_LANE1_CTL1);
- temp &= ~(BITM_DMC_DDR_LANE0_CTL1_BYPCODE |
- BITM_DMC_DDR_LANE0_CTL1_BYPDELCHAINEN);
- writel(temp, dmc.reg + REG_DMC_DDR_LANE1_CTL1);
-
- /* If write leveling is enabled */
- if ((dmc.dmc_mr1_value & BITM_DMC_MR1_WL) >> BITP_DMC_MR1_WL) {
- temp = readl(dmc.reg + REG_DMC_DDR_LANE1_CTL1);
- temp |= (((WL_code_UDQS + LANE1_DQS_DELAY) <<
- BITP_DMC_DDR_LANE0_CTL1_BYPCODE) &
- BITM_DMC_DDR_LANE0_CTL1_BYPCODE) |
- BITM_DMC_DDR_LANE0_CTL1_BYPDELCHAINEN;
- writel(temp, dmc.reg + REG_DMC_DDR_LANE1_CTL1);
- } else {
- temp = readl(dmc.reg + REG_DMC_DDR_LANE1_CTL1);
- temp |= (((DQS_DEFAULT_DELAY + LANE1_DQS_DELAY) <<
- BITP_DMC_DDR_LANE0_CTL1_BYPCODE) &
- BITM_DMC_DDR_LANE0_CTL1_BYPCODE) |
- BITM_DMC_DDR_LANE0_CTL1_BYPDELCHAINEN;
- writel(temp, dmc.reg + REG_DMC_DDR_LANE1_CTL1);
- }
- dmcdelay(2500u);
-#endif
-
-#else
- /* 5. Program the DMCx_CTL.DLLCTL register with 0x948 value
- * (DATACYC=9, DLLCALRDCNT=72).
- */
- writel(0x00000948, dmc.reg + REG_DMC_DLLCTL);
-#endif
-
- /* 6. Workaround for anomaly#20000037 */
- if (dmc.anomaly_20000037_applicable) {
- /* Perform dummy read to any DMC location */
- readl(0x80000000);
-
- writel(readl(dmc.reg + REG_DMC_PHY_CTL0) | 0x1000,
- dmc.reg + REG_DMC_PHY_CTL0);
- /* Clear DMCx_PHY_CTL0.RESETDAT bit */
- writel(readl(dmc.reg + REG_DMC_PHY_CTL0) & (~0x1000),
- dmc.reg + REG_DMC_PHY_CTL0);
- }
-}
-
-static inline void dmc_init(void)
-{
- /* PHY Calibration+Initialization */
- if (!dmc.phy_init_required)
- goto out;
-
- switch (dmc.calib_mode) {
- case CALIBRATION_LEGACY:
- calibration_legacy();
- break;
- case CALIBRATION_METHOD1:
- calibration_method1();
- break;
- case CALIBRATION_METHOD2:
- calibration_method2();
- break;
- }
-
-#if DQSTRIM
- /* DQS duty trim */
- temp = readl(dmc.reg + REG_DMC_DDR_LANE0_CTL0);
- temp |= ((DQSCODE) << BITP_DMC_DDR_LANE0_CTL0_BYPENB) &
- (BITM_DMC_DDR_LANE1_CTL0_BYPENB |
- BITM_DMC_DDR_LANE0_CTL0_BYPSELP |
- BITM_DMC_DDR_LANE0_CTL0_BYPCODE);
- writel(temp, dmc.reg + REG_DMC_DDR_LANE0_CTL0);
-
- temp = readl(dmc.reg + REG_DMC_DDR_LANE1_CTL0);
- temp |= ((DQSCODE) << BITP_DMC_DDR_LANE1_CTL0_BYPENB) &
- (BITM_DMC_DDR_LANE1_CTL1_BYPCODE |
- BITM_DMC_DDR_LANE1_CTL0_BYPSELP |
- BITM_DMC_DDR_LANE1_CTL0_BYPCODE);
- writel(temp, dmc.reg + REG_DMC_DDR_LANE1_CTL0);
-#endif
-
-#if CLKTRIM
- /* Clock duty trim */
- temp = readl(dmc.reg + REG_DMC_DDR_CA_CTL);
- temp |= (((CLKCODE << BITP_DMC_DDR_CA_CTL_BYPCODE1) &
- BITM_DMC_DDR_CA_CTL_BYPCODE1) |
- BITM_DMC_DDR_CA_CTL_BYPENB |
- ((CLKDIR << BITP_DMC_DDR_CA_CTL_BYPSELP) &
- BITM_DMC_DDR_CA_CTL_BYPSELP));
- writel(temp, dmc.reg + REG_DMC_DDR_CA_CTL);
-#endif
-
-out:
- /* Controller Initialization */
- dmc_controller_init();
-}
-
-static inline void __dmc_config(uint32_t dmc_no)
-{
- if (dmc_no == 0) {
- dmc.reg = REG_DMC0_BASE;
- dmc.dmc_data_calib_add_value = DMC0_DATA_CALIB_ADD;
- } else if (dmc_no == 1) {
- dmc.reg = REG_DMC1_BASE;
- dmc.dmc_data_calib_add_value = DMC1_DATA_CALIB_ADD;
- } else {
- return;
- }
-
- if (IS_ENABLED(CONFIG_ADI_USE_DDR2))
- dmc.ddr_mode = DDR2_MODE;
- else
- dmc.ddr_mode = DDR3_MODE;
-
- dmc.phy_init_required = true;
-
-#if defined(CONFIG_SC59X) || defined(CONFIG_SC59X_64)
- dmc.anomaly_20000037_applicable = false;
- dmc.dmc_dllctl_value = DMC_DLLCTL_VALUE;
- dmc.calib_mode = CALIBRATION_METHOD2;
-#else
- dmc.anomaly_20000037_applicable = true;
- dmc.calib_mode = CALIBRATION_LEGACY;
-#endif
-
- dmc.dmc_ctl_value = DMC_CTL_VALUE;
- dmc.dmc_cfg_value = DMC_CFG_VALUE;
- dmc.dmc_tr0_value = DMC_TR0_VALUE;
- dmc.dmc_tr1_value = DMC_TR1_VALUE;
- dmc.dmc_tr2_value = DMC_TR2_VALUE;
- dmc.dmc_mr0_value = DMC_MR0_VALUE;
- dmc.dmc_mr1_value = DMC_MR1_VALUE;
- dmc.dmc_mr2_value = DMC_MR2_VALUE;
-
-#if defined(CONFIG_SC59X) || defined(CONFIG_SC59X_64)
- dmc.dmc_mr3_value = DMC_MR3_VALUE;
- dmc.dmc_zqctl0_value = DMC_ZQCTL0_VALUE;
- dmc.dmc_zqctl1_value = DMC_ZQCTL1_VALUE;
- dmc.dmc_zqctl2_value = DMC_ZQCTL2_VALUE;
-#endif
-
- dmc.padctl2_value = DMC_PADCTL2_VALUE;
- dmc.dmc_cphyctl_value = DMC_CPHYCTL_VALUE;
-
- /* Initialize DMC now */
- dmc_init();
-}
-
-void DMC_Config(void)
-{
- if (IS_ENABLED(CONFIG_ADI_USE_DMC0))
- __dmc_config(0);
-
- if (IS_ENABLED(CONFIG_ADI_USE_DMC1))
- __dmc_config(1);
-}
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0-or-later */
-/*
- * (C) Copyright 2022 - Analog Devices, Inc.
- *
- * Written and/or maintained by Timesys Corporation
- *
- * Contact: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
- * Contact: Greg Malysa <greg.malysa@timesys.com>
- */
-
-#ifndef DMCINIT_H_
-#define DMCINIT_H_
-
-#include <config.h>
-
-#ifdef MEM_MT41K512M16HA
- #include "mem/mt41k512m16ha.h"
-#elif defined(MEM_MT41K128M16JT)
- #include "mem/mt41k128m16jt.h"
-#elif defined(MEM_MT47H128M16RT)
- #include "mem/mt47h128m16rt.h"
-#elif defined(MEM_IS43TR16512BL)
- #include "mem/is43tr16512bl.h"
-#else
- #error "No DDR part name is defined for this board."
-#endif
-
-void DMC_Config(void);
-void adi_dmc_reset_lanes(bool reset);
-
-#endif
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0-or-later */
-/*
- * (C) Copyright 2022 - Analog Devices, Inc.
- *
- * Written and/or maintained by Timesys Corporation
- *
- * Contact: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
- * Contact: Greg Malysa <greg.malysa@timesys.com>
- */
-
-#ifndef IS43TR16512BL_H
-#define IS43TR16512BL_H
-
-/* DMC0 setup for the EV-21593-SOM and EV-SC594-SOM :
- * - uses a single 8GB IS43TR16512BL-125KBL DDR3 chip configured for
- * 800 MHz DCLK.
- * DMC0 setup for the EV-SC594-SOMS :
- * - uses a single 4GB IS43TR16256BL-093NBL DDR3 chip configured for
- * 800 MHz DCLK.
- */
-#define DMC_DLLCALRDCNT 240
-#define DMC_DATACYC 12
-#define DMC_TRCD 11
-#define DMC_TWTR 6
-#define DMC_TRP 11
-#define DMC_TRAS 28
-#define DMC_TRC 39
-#define DMC_TMRD 4
-#define DMC_TREF 6240
-#define DMC_TRRD 6
-#define DMC_TFAW 32
-#define DMC_TRTP 6
-#define DMC_TWR 12
-#define DMC_TXP 5
-#define DMC_TCKE 4
-#define DMC_CL0 0
-#define DMC_CL123 7
-#define DMC_WRRECOV 6
-#define DMC_MR1_DLLEN 0
-#define DMC_MR1_DIC0 0
-#define DMC_MR1_RTT0 0
-#define DMC_MR1_AL 0
-#define DMC_MR1_DIC1 0
-#define DMC_MR1_RTT1 1
-#define DMC_MR1_WL 0
-#define DMC_MR1_RTT2 0
-#define DMC_MR1_TDQS 0
-#define DMC_MR1_QOFF 0
-#define DMC_WL 3
-#define DMC_RDTOWR 5
-#define DMC_CTL_AL_EN 1
-#if defined(MEM_ISSI_4Gb_DDR3_800MHZ)
- #define SDR_CHIP_SIZE (ENUM_DMC_CFG_SDRSIZE4G)
- #define DMC_TRFC 208ul
-#elif defined(MEM_ISSI_8Gb_DDR3_800MHZ)
- #define SDR_CHIP_SIZE (ENUM_DMC_CFG_SDRSIZE8G)
- #define DMC_TRFC 280ul
-#else
- #error "Need to select MEM_ISSI_4Gb_DDR3_800MHZ or MEM_ISSI_8Gb_DDR3_800MHZ"
-#endif
-
-#endif
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0-or-later */
-/*
- * (C) Copyright 2022 - Analog Devices, Inc.
- *
- * Written and/or maintained by Timesys Corporation
- *
- * Contact: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
- * Contact: Greg Malysa <greg.malysa@timesys.com>
- */
-
-#ifndef MT41K128M16JT_H
-#define MT41K128M16JT_H
-
-/* Default DDR3 part assumed: MT41K128M16JT-125, 2Gb part */
-/* For DCLK= 450 MHz */
-#define DMC_DLLCALRDCNT 72
-#define DMC_DATACYC 9
-#define DMC_TRCD 6
-#define DMC_TWTR 4
-#define DMC_TRP 6
-#define DMC_TRAS 17
-#define DMC_TRC 23
-#define DMC_TMRD 4
-#define DMC_TREF 3510
-#define DMC_TRFC 72
-#define DMC_TRRD 4
-#define DMC_TFAW 17
-#define DMC_TRTP 4
-#define DMC_TWR 7
-#define DMC_TXP 4
-#define DMC_TCKE 3
-#define DMC_CL0 0
-#define DMC_CL123 3
-#define DMC_WRRECOV (DMC_TWR - 1)
-#define DMC_MR1_DLLEN 0
-#define DMC_MR1_DIC0 1
-#define DMC_MR1_RTT0 1
-#define DMC_MR1_AL 0
-#define DMC_MR1_DIC1 0
-#define DMC_MR1_RTT1 0
-#define DMC_MR1_WL 0
-#define DMC_MR1_RTT2 0
-#define DMC_MR1_TDQS 0
-#define DMC_MR1_QOFF 0
-#define DMC_WL 1
-#define DMC_RDTOWR 2
-#define DMC_CTL_AL_EN 0
-#define SDR_CHIP_SIZE ENUM_DMC_CFG_SDRSIZE2G
-
-#endif
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0-or-later */
-/*
- * (C) Copyright 2022 - Analog Devices, Inc.
- *
- * Written and/or maintained by Timesys Corporation
- *
- * Contact: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
- * Contact: Greg Malysa <greg.malysa@timesys.com>
- */
-
-#ifndef MT41K512M16HA_H
-#define MT41K512M16HA_H
-
-/* Default DDR3 part assumed: MT41K512M16HA-107, 8Gb part */
-/* For DCLK= 450 MHz */
-#define DMC_DLLCALRDCNT 72
-#define DMC_DATACYC 9
-#define DMC_TRCD 7
-#define DMC_TWTR 4
-#define DMC_TRP 7
-#define DMC_TRAS 10
-#define DMC_TRC 16
-#define DMC_TMRD 4
-#define DMC_TREF 3510
-#define DMC_TRFC 158
-#define DMC_TRRD 6
-#define DMC_TFAW 16
-#define DMC_TRTP 4
-#define DMC_TWR 7
-#define DMC_TXP 3
-#define DMC_TCKE 3
-#define DMC_CL0 0
-#define DMC_CL123 3
-#define DMC_WRRECOV (DMC_TWR - 1)
-#define DMC_MR1_DLLEN 0
-#define DMC_MR1_DIC0 1
-#define DMC_MR1_RTT0 1
-#define DMC_MR1_AL 0
-#define DMC_MR1_DIC1 0
-#define DMC_MR1_RTT1 0
-#define DMC_MR1_WL 0
-#define DMC_MR1_RTT2 0
-#define DMC_MR1_TDQS 0
-#define DMC_MR1_QOFF 0
-#define DMC_WL 1
-#define DMC_RDTOWR 2
-#define DMC_CTL_AL_EN 0
-#define SDR_CHIP_SIZE ENUM_DMC_CFG_SDRSIZE8G
-
-#endif
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0-or-later */
-/*
- * (C) Copyright 2022 - Analog Devices, Inc.
- *
- * Written and/or maintained by Timesys Corporation
- *
- * Contact: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
- * Contact: Greg Malysa <greg.malysa@timesys.com>
- */
-
-#ifndef MT47H128M16RT_H
-#define MT47H128M16RT_H
-
-/* Default DDR2 part: MT47H128M16RT-25E XIT:C, 2 Gb part */
-/* For DCLK= 400 MHz */
-#define DMC_DLLCALRDCNT 72
-#define DMC_DATACYC 9
-#define DMC_TRCD 5
-#define DMC_TWTR 3
-#define DMC_TRP 5
-#define DMC_TRAS 16
-#define DMC_TRC 22
-#define DMC_TMRD 2
-#define DMC_TREF 3120
-#define DMC_TRFC 78
-#define DMC_TRRD 4
-#define DMC_TFAW 18
-#define DMC_TRTP 3
-#define DMC_TWR 6
-#define DMC_TXP 2
-#define DMC_TCKE 3
-#define DMC_CL 5
-#define DMC_WRRECOV (DMC_TWR - 1)
-#define DMC_MR1_DLLEN 0
-#define DMC_MR1_DIC0 1
-#define DMC_MR1_RTT0 1
-#define DMC_MR1_AL 4
-#define DMC_MR1_DIC1 0
-#define DMC_MR1_RTT1 0
-#define DMC_MR1_WL 0
-#define DMC_MR1_RTT2 0
-#define DMC_MR1_TDQS 0
-#define DMC_MR1_QOFF 0
-#define DMC_BL 4
-#define DMC_RDTOWR 2
-#define DMC_CTL_AL_EN 0
-#define SDR_CHIP_SIZE ENUM_DMC_CFG_SDRSIZE2G
-
-#endif
+++ /dev/null
-// SPDX-License-Identifier: GPL-2.0-or-later
-/*
- * (C) Copyright 2024 - Analog Devices, Inc.
- *
- * Written and/or maintained by Timesys Corporation
- *
- * Contact: Ian Roberts <ian.roberts@timesys.com>
- */
-
-#include <dm.h>
-#include <syscon.h>
-
-static const struct udevice_id adi_syscon_ids[] = {
- { .compatible = "adi,reset-controller" },
- { }
-};
-
-U_BOOT_DRIVER(syscon_sc5xx_rcu) = {
- .name = "sc5xx_rcu",
- .id = UCLASS_SYSCON,
- .of_match = adi_syscon_ids,
-};
+++ /dev/null
-// SPDX-License-Identifier: GPL-2.0-or-later
-/*
- * (C) Copyright 2024 - Analog Devices, Inc.
- *
- * Written and/or maintained by Timesys Corporation
- *
- * Contact: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
- * Contact: Greg Malysa <greg.malysa@timesys.com>
- */
-
-#include <asm/io.h>
-#include <asm/arch-adi/sc5xx/sc5xx.h>
-#include <asm/arch-adi/sc5xx/spl.h>
-
-#define REG_SPU0_SECUREC0 0x3108B980
-#define REG_PADS0_PCFG0 0x31004404
-#define REG_SPU0_SECUREP_START 0x3108BA00
-#define REG_SPU0_SECUREP_END 0x3108BD24
-
-adi_rom_boot_fn adi_rom_boot = (adi_rom_boot_fn)0x000000e1;
-
-void sc5xx_enable_rgmii(void)
-{
- writel((readl(REG_PADS0_PCFG0) | 0xc), REG_PADS0_PCFG0);
-}
-
-void sc5xx_soc_init(void)
-{
- sc5xx_enable_ns_sharc_access(REG_SPU0_SECUREC0);
- sc5xx_disable_spu0(REG_SPU0_SECUREP_START, REG_SPU0_SECUREP_END);
- sc5xx_enable_pmu();
-}
+++ /dev/null
-// SPDX-License-Identifier: GPL-2.0-or-later
-/*
- * (C) Copyright 2024 - Analog Devices, Inc.
- *
- * Written and/or maintained by Timesys Corporation
- *
- * Contact: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
- * Contact: Greg Malysa <greg.malysa@timesys.com>
- */
-
-#include <asm/io.h>
-#include <asm/arch-adi/sc5xx/sc5xx.h>
-#include <asm/arch-adi/sc5xx/spl.h>
-
-#define REG_SPU0_SECUREC0 0x3108C980
-#define REG_PADS0_PCFG0 0x31004404
-#define REG_SPU0_SECUREP_START 0x3108CA00
-#define REG_SPU0_SECUREP_END 0x3108CCF0
-
-adi_rom_boot_fn adi_rom_boot = (adi_rom_boot_fn)0x000000e1;
-
-void sc5xx_enable_rgmii(void)
-{
- writel((readl(REG_PADS0_PCFG0) | 0xc), REG_PADS0_PCFG0);
-}
-
-void sc5xx_soc_init(void)
-{
- sc5xx_enable_ns_sharc_access(REG_SPU0_SECUREC0);
- sc5xx_disable_spu0(REG_SPU0_SECUREP_START, REG_SPU0_SECUREP_END);
- sc5xx_enable_pmu();
-}
+++ /dev/null
-// SPDX-License-Identifier: GPL-2.0-or-later
-/*
- * (C) Copyright 2024 - Analog Devices, Inc.
- *
- * Written and/or maintained by Timesys Corporation
- *
- * Contact: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
- * Contact: Greg Malysa <greg.malysa@timesys.com>
- */
-
-#include <asm/io.h>
-#include <asm/arch-adi/sc5xx/sc5xx.h>
-#include <asm/arch-adi/sc5xx/spl.h>
-
-#define REG_SPU0_SECUREC0 0x3108B980
-#define REG_PADS0_PCFG0 0x31004604
-#define REG_SPU0_SECUREP_START 0x3108BA00
-#define REG_SPU0_SECUREP_END 0x3108BD24
-
-#define REG_SCB5_SPI2_OSPI_REMAP 0x30400000
-#define BITM_SCB5_SPI2_OSPI_REMAP_REMAP 0x00000003
-#define ENUM_SCB5_SPI2_OSPI_REMAP_OSPI0 0x00000001
-
-adi_rom_boot_fn adi_rom_boot = (adi_rom_boot_fn)0x000000e9;
-
-void sc5xx_enable_rgmii(void)
-{
- writel((readl(REG_PADS0_PCFG0) | 0xc), REG_PADS0_PCFG0);
-}
-
-void sc59x_remap_ospi(void)
-{
- clrsetbits_le32(REG_SCB5_SPI2_OSPI_REMAP,
- BITM_SCB5_SPI2_OSPI_REMAP_REMAP,
- ENUM_SCB5_SPI2_OSPI_REMAP_OSPI0);
-}
-
-void sc5xx_soc_init(void)
-{
- sc5xx_enable_ns_sharc_access(REG_SPU0_SECUREC0);
- sc5xx_disable_spu0(REG_SPU0_SECUREP_START, REG_SPU0_SECUREP_END);
- sc5xx_enable_pmu();
-}
+++ /dev/null
-// SPDX-License-Identifier: GPL-2.0-or-later
-/*
- * (C) Copyright 2024 - Analog Devices, Inc.
- *
- * Written and/or maintained by Timesys Corporation
- *
- * Contact: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
- * Contact: Greg Malysa <greg.malysa@timesys.com>
- */
-
-#include <asm/io.h>
-#include <asm/arch-adi/sc5xx/sc5xx.h>
-#include <asm/arch-adi/sc5xx/spl.h>
-
-#define REG_TSGENWR0_CNTCR 0x310AE000
-#define REG_PADS0_PCFG0 0x31004604
-#define REG_RCU0_BCODE 0x3108C028
-
-#define REG_SPU0_SECUREP_START 0x3108BA00
-#define REG_SPU0_WP_START 0x3108B400
-#define REG_SPU0_SECUREC0 0x3108B980
-
-#define REG_SCB5_SPI2_OSPI_REMAP 0x30400000
-#define BITM_SCB5_SPI2_OSPI_REMAP_REMAP 0x00000003
-#define ENUM_SCB5_SPI2_OSPI_REMAP_OSPI0 0x00000001
-
-adi_rom_boot_fn adi_rom_boot = (adi_rom_boot_fn)0x000000e4;
-
-void sc5xx_enable_rgmii(void)
-{
- writel((readl(REG_PADS0_PCFG0) | 0xc), REG_PADS0_PCFG0);
-
- // Set dw for little endian operation as well
- writel(readl(REG_PADS0_PCFG0) & ~(1 << 19), REG_PADS0_PCFG0);
- writel(readl(REG_PADS0_PCFG0) & ~(1 << 20), REG_PADS0_PCFG0);
-}
-
-void sc59x_remap_ospi(void)
-{
- clrsetbits_le32(REG_SCB5_SPI2_OSPI_REMAP,
- BITM_SCB5_SPI2_OSPI_REMAP_REMAP,
- ENUM_SCB5_SPI2_OSPI_REMAP_OSPI0);
-}
-
-/**
- * SPU/SMPU configuration is the default for permissive access from non-secure
- * EL1. If TFA and OPTEE are configured, they run *after* this code, as the
- * current boot flow is SPL -> TFA -> OPTEE -> Proper -> Linux, and will
- * be expected to configure peripheral security correctly. If they are not
- * configured, then this permissive setting will allow Linux (which always
- * runs in NS EL1) to control all access to these peripherals. Without it,
- * the peripherals would simply be unavailable in a non-security build,
- * which is not OK.
- */
-void sc5xx_soc_init(void)
-{
- phys_addr_t smpus[] = {
- 0x31007800, //SMPU0
- 0x31083800, //SMPU2
- 0x31084800, //SMPU3
- 0x31085800, //SMPU4
- 0x31086800, //SMPU5
- 0x31087800, //SMPU6
- 0x310A0800, //SMPU9
- 0x310A1800, //SMPU11
- 0x31012800, //SMPU12
- };
- size_t i;
-
- // Enable coresight timer
- writel(1, REG_TSGENWR0_CNTCR);
-
- //Do not rerun preboot routine --
- // Without this, hardware resets triggered by RCU0_CTL:SYSRST
- // lead to a deadlock somewhere in the boot ROM
- writel(0x200, REG_RCU0_BCODE);
-
- /* Alter outstanding transactions property of A55*/
- writel(0x1, 0x30643108); /* SCB6 A55 M0 Ib.fn Mod */
- isb();
-
- /* configure DDR prefetch behavior, per ADI */
- writel(0x1, 0x31076000);
-
- /* configure smart mode, per ADI */
- writel(0x1307, 0x31076004);
-
- // Disable SPU and SPU WP registers
- sc5xx_disable_spu0(REG_SPU0_SECUREP_START, REG_SPU0_SECUREP_START + 4*213);
- sc5xx_disable_spu0(REG_SPU0_WP_START, REG_SPU0_WP_START + 4*213);
-
- /* configure smpus permissively */
- for (i = 0; i < ARRAY_SIZE(smpus); ++i)
- writel(0x500, smpus[i]);
-
- sc5xx_enable_ns_sharc_access(REG_SPU0_SECUREC0);
-}
+++ /dev/null
-// SPDX-License-Identifier: GPL-2.0-or-later
-/*
- * (C) Copyright 2022 - Analog Devices, Inc.
- *
- * Written and/or maintained by Timesys Corporation
- *
- * Contact: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
- * Contact: Greg Malysa <greg.malysa@timesys.com>
- */
-
-#include <asm/arch-adi/sc5xx/sc5xx.h>
-#include <asm/arch-adi/sc5xx/soc.h>
-#include <asm/global_data.h>
-#include <asm/io.h>
-#include <cpu_func.h>
-
-#ifdef CONFIG_SC58X
- #define RCU0_CTL 0x3108B000
- #define RCU0_STAT 0x3108B004
- #define RCU0_CRCTL 0x3108B008
- #define RCU0_CRSTAT 0x3108B00C
- #define RCU0_SIDIS 0x3108B010
- #define RCU0_MSG_SET 0x3108B064
-#elif defined(CONFIG_SC57X) || defined(CONFIG_SC59X) || defined(CONFIG_SC59X_64)
- #define RCU0_CTL 0x3108C000
- #define RCU0_STAT 0x3108C004
- #define RCU0_CRCTL 0x3108C008
- #define RCU0_CRSTAT 0x3108C00C
- #define RCU0_SIDIS 0x3108C01C
- #define RCU0_MSG_SET 0x3108C070
-#else
- #error "No SC5xx SoC CONFIG_ enabled"
-#endif
-
-#define BITP_RCU_STAT_BMODE 8
-#define BITM_RCU_STAT_BMODE 0x00000F00
-
-#define REG_ARMPMU0_PMCR 0x31121E04
-#define REG_ARMPMU0_PMUSERENR 0x31121E08
-#define REG_ARMPMU0_PMLAR 0x31121FB0
-
-DECLARE_GLOBAL_DATA_PTR;
-
-void reset_cpu(void)
-{
- u32 val = readl(RCU0_CTL);
- writel(val | 1, RCU0_CTL);
-}
-
-void enable_caches(void)
-{
- if (!IS_ENABLED(CONFIG_SYS_DCACHE_OFF))
- dcache_enable();
-}
-
-void sc5xx_enable_ns_sharc_access(uintptr_t securec0_base)
-{
- writel(0, securec0_base);
- writel(0, securec0_base + 0x4);
- writel(0, securec0_base + 0x8);
-}
-
-void sc5xx_disable_spu0(uintptr_t spu0_start, uintptr_t spu0_end)
-{
- for (uintptr_t i = spu0_start; i <= spu0_end; i += 4)
- writel(0, i);
-}
-
-/**
- * PMU is only available on armv7 platforms and all share the same location
- */
-void sc5xx_enable_pmu(void)
-{
- if (!IS_ENABLED(CONFIG_SC59X_64)) {
- writel(readl(REG_ARMPMU0_PMUSERENR) | 0x01, REG_ARMPMU0_PMUSERENR);
- writel(0xc5acce55, REG_ARMPMU0_PMLAR);
- writel(readl(REG_ARMPMU0_PMCR) | (1 << 1), REG_ARMPMU0_PMCR);
- }
-}
-
-const char *sc5xx_get_boot_mode(u32 *bmode)
-{
- static const char * const bmodes[] = {
- "JTAG/BOOTROM",
- "QSPI Master",
- "QSPI Slave",
- "UART",
- "LP0 Slave",
- "OSPI",
-#ifdef CONFIG_SC59X_64
- "eMMC"
-#endif
- };
- u32 local_mode;
-
- local_mode = (readl(RCU0_STAT) & BITM_RCU_STAT_BMODE) >> BITP_RCU_STAT_BMODE;
-
-#if CONFIG_ADI_SPL_FORCE_BMODE != 0
- /*
- * In case we want to force boot sequences such as:
- * QSPI -> OSPI
- * QSPI -> eMMC
- * If this is not set, then we will always try to use the BMODE setting
- * for both stages... i.e.
- * QSPI -> QSPI
- */
-
- // (Don't allow skipping JTAG/UART BMODE settings)
- if (local_mode != 0 && local_mode != 3)
- local_mode = CONFIG_ADI_SPL_FORCE_BMODE;
-#endif
-
- *bmode = local_mode;
-
- if (local_mode >= 0 && local_mode <= ARRAY_SIZE(bmodes))
- return bmodes[local_mode];
- return "unknown";
-}
-
-void print_cpu_id(void)
-{
- if (!IS_ENABLED(CONFIG_ARM64)) {
- u32 cpuid = 0;
-
- __asm__ __volatile__("mrc p15, 0, %0, c0, c0, 0" : "=r"(cpuid));
-
- printf("Detected Revision: %d.%d\n", cpuid & 0xf00000 >> 20, cpuid & 0xf);
- }
-}
-
-int print_cpuinfo(void)
-{
- u32 bmode;
-
- printf("CPU: ADSP %s (%s boot)\n", CONFIG_LDR_CPU, sc5xx_get_boot_mode(&bmode));
- print_cpu_id();
-
- return 0;
-}
-
-void fixup_dp83867_phy(struct phy_device *phydev)
-{
- int phy_data = 0;
-
- phy_data = phy_read(phydev, MDIO_DEVAD_NONE, 0x32);
- phy_write(phydev, MDIO_DEVAD_NONE, 0x32, (1 << 7) | phy_data);
- int cfg3 = 0;
- #define MII_DP83867_CFG3 (0x1e)
- /*
- * Pin INT/PWDN on DP83867 should be configured as an Interrupt Output
- * instead of a Power-Down Input on ADI SC5XX boards in order to
- * prevent the signal interference from other peripherals during they
- * are running at the same time.
- */
- cfg3 = phy_read(phydev, MDIO_DEVAD_NONE, MII_DP83867_CFG3);
- cfg3 |= (1 << 7);
- phy_write(phydev, MDIO_DEVAD_NONE, MII_DP83867_CFG3, cfg3);
-
- // Mystery second port fixup on ezkits with two PHYs
- if (CONFIG_DW_PORTS & 2)
- phy_write(phydev, MDIO_DEVAD_NONE, 0x11, 3);
-
- if (IS_ENABLED(CONFIG_ADI_BUG_EZKHW21)) {
- phydev->advertising &= PHY_BASIC_FEATURES;
- phydev->speed = SPEED_100;
- }
-
- if (phydev->drv->config)
- phydev->drv->config(phydev);
-
- if (IS_ENABLED(CONFIG_ADI_BUG_EZKHW21))
- phy_write(phydev, MDIO_DEVAD_NONE, 0, 0x3100);
-}
-
-int dram_init(void)
-{
- gd->ram_size = CFG_SYS_SDRAM_SIZE;
- return 0;
-}
+++ /dev/null
-// SPDX-License-Identifier: GPL-2.0-or-later
-/*
- * (C) Copyright 2022 - Analog Devices, Inc.
- *
- * Written and/or maintained by Timesys Corporation
- *
- * Contact: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
- * Contact: Greg Malysa <greg.malysa@timesys.com>
- */
-
-#include <spl.h>
-#include <asm/arch-adi/sc5xx/sc5xx.h>
-#include <asm/arch-adi/sc5xx/spl.h>
-#include "init/clkinit.h"
-#include "init/dmcinit.h"
-
-static bool adi_start_uboot_proper;
-
-static int adi_sf_default_bus = CONFIG_SF_DEFAULT_BUS;
-static int adi_sf_default_cs = CONFIG_SF_DEFAULT_CS;
-static int adi_sf_default_speed = CONFIG_SF_DEFAULT_SPEED;
-
-u32 bmode;
-
-int spl_start_uboot(void)
-{
- return adi_start_uboot_proper;
-}
-
-unsigned int spl_spi_get_default_speed(void)
-{
- return adi_sf_default_speed;
-}
-
-unsigned int spl_spi_get_default_bus(void)
-{
- return adi_sf_default_bus;
-}
-
-unsigned int spl_spi_get_default_cs(void)
-{
- return adi_sf_default_cs;
-}
-
-void board_boot_order(u32 *spl_boot_list)
-{
- const char *bmodestring = sc5xx_get_boot_mode(&bmode);
-
- printf("ADI Boot Mode: 0x%x (%s)\n", bmode, bmodestring);
-
- /*
- * By default everything goes back to the bootrom, where we'll read table
- * parameters and ask for another image to be loaded
- */
- spl_boot_list[0] = BOOT_DEVICE_BOOTROM;
-
- if (bmode == 0) {
- printf("SPL execution has completed. Please load U-Boot Proper via JTAG");
- while (1)
- ;
- }
-}
-
-int32_t __weak adi_rom_boot_hook(struct ADI_ROM_BOOT_CONFIG *config, int32_t cause)
-{
- return 0;
-}
-
-int board_return_to_bootrom(struct spl_image_info *spl_image,
- struct spl_boot_device *bootdev)
-{
-#if CONFIG_ADI_SPL_FORCE_BMODE != 0
- // see above
- if (bmode != 0 && bmode != 3)
- bmode = CONFIG_ADI_SPL_FORCE_BMODE;
-#endif
-
- if (bmode >= (ARRAY_SIZE(adi_rom_boot_args)))
- bmode = 0;
-
- adi_rom_boot((void *)adi_rom_boot_args[bmode].addr,
- adi_rom_boot_args[bmode].flags,
- 0, &adi_rom_boot_hook,
- adi_rom_boot_args[bmode].cmd);
- return 0;
-};
-
-void board_init_f(ulong dummy)
-{
- int ret;
-
- clks_init();
- DMC_Config();
- sc5xx_soc_init();
-
- ret = spl_early_init();
- if (ret)
- panic("spl_early_init() failed\n");
-
- preloader_console_init();
-}
-
* Copyright (C) 2015 Marek Vasut <marex@denx.de>
*/
-#include <config.h>
+#include <common.h>
#include <asm/arch/clock_manager.h>
#include <asm/arch/mailbox_s10.h>
#include <asm/arch/misc.h>
* Copyright (C) 2013-2017 Altera Corporation <www.altera.com>
*/
+#include <common.h>
#include <asm/arch/clock_manager.h>
#include <asm/arch/system_manager.h>
#include <asm/global_data.h>
*/
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
#include <vsprintf.h>
#include <asm/global_data.h>
#include <asm/io.h>
+#include <asm/u-boot.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/types.h>
* Copyright (C) 2016-2017 Intel Corporation
*/
+#include <common.h>
#include <fdtdec.h>
#include <malloc.h>
#include <asm/io.h>
* Copyright (C) 2013-2017 Altera Corporation <www.altera.com>
*/
+#include <common.h>
#include <time.h>
#include <asm/io.h>
#include <dm.h>
*
*/
+#include <common.h>
#include <asm/arch/clock_manager.h>
#include <asm/arch/system_manager.h>
#include <asm/global_data.h>
*
*/
-#include <linux/errno.h>
+#include <common.h>
#include <asm/global_data.h>
#include <asm/io.h>
#include <asm/arch/clock_manager.h>
*
*/
-#include <mach/base_addr_soc64.h>
#include <asm/io.h>
+#include <common.h>
#include <asm/arch/firewall.h>
#include <asm/arch/system_manager.h>
* platform code, the real meat is located in drivers/fpga/socfpga.c .
*/
-#include <config.h>
+#include <common.h>
#include <asm/io.h>
#include <linux/errno.h>
#include <asm/arch/fpga_manager.h>
*/
-#include <config.h>
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/clock_manager.h>
#include <asm/arch/freeze_controller.h>
#ifndef _CLOCK_MANAGER_H_
#define _CLOCK_MANAGER_H_
-#include <linux/types.h>
-
phys_addr_t socfpga_get_clkmgr_addr(void);
#ifndef __ASSEMBLY__
#ifndef _SECURE_REG_HELPER_H_
#define _SECURE_REG_HELPER_H_
-#include <linux/types.h>
-
#define SOCFPGA_SECURE_REG_SYSMGR_SOC64_SDMMC 1
#define SOCFPGA_SECURE_REG_SYSMGR_SOC64_EMAC0 2
#define SOCFPGA_SECURE_REG_SYSMGR_SOC64_EMAC1 3
*
*/
+#include <common.h>
#include <asm/arch/clock_manager.h>
#include <asm/arch/mailbox_s10.h>
#include <asm/arch/system_manager.h>
* Copyright (C) 2012-2017 Altera Corporation <www.altera.com>
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <hang.h>
*/
#include <altera.h>
-#include <config.h>
+#include <common.h>
#include <errno.h>
#include <fdtdec.h>
#include <init.h>
* Copyright (C) 2012-2017 Altera Corporation <www.altera.com>
*/
-#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <init.h>
#include <asm/global_data.h>
*/
#include <altera.h>
+#include <common.h>
#include <asm/arch/mailbox_s10.h>
#include <asm/arch/misc.h>
#include <asm/arch/reset_manager.h>
*
*/
+#include <common.h>
#include <asm/armv8/mmu.h>
#include <asm/global_data.h>
*/
#include <log.h>
-#include <linux/errno.h>
#include <asm/arch/pinmux.h>
#include <asm/io.h>
+#include <common.h>
#include <fdtdec.h>
static int do_pinctr_pin(const void *blob, int child, const char *node_name)
#include <asm/arch/misc.h>
#include <asm/arch/reset_manager.h>
#include <asm/arch/system_manager.h>
+#include <common.h>
#include <errno.h>
#include <fdtdec.h>
#include <wait_bit.h>
*/
-#include <mach/base_addr_ac5.h>
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/fpga_manager.h>
#include <asm/arch/reset_manager.h>
*
*/
+#include <common.h>
#include <hang.h>
#include <asm/global_data.h>
#include <asm/io.h>
* Copyright (C) 2013 Altera Corporation <www.altera.com>
*/
-#include <config.h>
+#include <common.h>
#include <errno.h>
#include <asm/io.h>
#include <asm/arch/freeze_controller.h>
*
*/
+#include <common.h>
#include <hang.h>
#include <asm/io.h>
#include <asm/system.h>
#include <asm/arch/secure_vab.h>
#include <asm/arch/smc_api.h>
#include <asm/unaligned.h>
+#include <common.h>
#include <exports.h>
#include <linux/errno.h>
#include <linux/intel-smc.h>
*
*/
+#include <common.h>
#include <asm/ptrace.h>
#include <asm/system.h>
-#include <linux/errno.h>
#include <linux/intel-smc.h>
-#include <linux/string.h>
int invoke_smc(u32 func_id, u64 *args, int arg_len, u64 *ret_arg, int ret_len)
{
* Copyright (C) 2012-2021 Altera Corporation <www.altera.com>
*/
-#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <hang.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/io.h>
#include <asm/pl310.h>
+#include <asm/u-boot.h>
#include <asm/utils.h>
#include <image.h>
#include <asm/arch/reset_manager.h>
#include <log.h>
#include <asm/global_data.h>
#include <asm/io.h>
+#include <asm/u-boot.h>
#include <asm/utils.h>
+#include <common.h>
#include <hang.h>
#include <image.h>
#include <spl.h>
* Copyright (C) 2012 Altera Corporation <www.altera.com>
*/
+#include <common.h>
#include <hang.h>
#include <init.h>
#include <log.h>
#include <asm/global_data.h>
#include <asm/io.h>
+#include <asm/u-boot.h>
#include <asm/utils.h>
#include <image.h>
#include <asm/arch/reset_manager.h>
*
*/
+#include <common.h>
#include <asm/arch/clock_manager.h>
#include <asm/arch/firewall.h>
#include <asm/arch/mailbox_s10.h>
#include <asm/arch/system_manager.h>
#include <asm/global_data.h>
#include <asm/io.h>
+#include <asm/u-boot.h>
#include <asm/utils.h>
#include <dm/uclass.h>
#include <hang.h>
#include <log.h>
#include <asm/global_data.h>
#include <asm/io.h>
+#include <asm/u-boot.h>
#include <asm/utils.h>
+#include <common.h>
#include <debug_uart.h>
#include <image.h>
#include <spl.h>
*
*/
+#include <common.h>
#include <spl.h>
DECLARE_GLOBAL_DATA_PTR;
* Copyright (C) 2013-2017 Altera Corporation <www.altera.com>
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/system_manager.h>
#include <asm/arch/fpga_manager.h>
#include <asm/arch/system_manager.h>
#include <asm/global_data.h>
#include <asm/io.h>
+#include <common.h>
DECLARE_GLOBAL_DATA_PTR;
* Copyright (C) 2012 Altera Corporation <www.altera.com>
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/io.h>
#include <asm/arch/timer.h>
*
*/
+#include <common.h>
#include <init.h>
#include <div64.h>
#include <asm/io.h>
*
*/
-#include <vsprintf.h>
#include <asm/arch/secure_vab.h>
#include <command.h>
+#include <common.h>
#include <linux/ctype.h>
static int do_vab(struct cmd_tbl *cmdtp, int flag, int argc,
#include <asm/arch/handoff_soc64.h>
#include <asm/io.h>
+#include <common.h>
#include <errno.h>
#include "log.h"
* Copyright (C) 2015 Marek Vasut <marex@denx.de>
*/
-#include <config.h>
+#include <common.h>
#include <errno.h>
#include <asm/arch/clock_manager.h>
* Copyright (C) 2015 Marek Vasut <marex@denx.de>
*/
+#include <common.h>
#include <errno.h>
-#include <linux/kernel.h>
-#include <linux/types.h>
/* Board-specific header. */
#include <qts/pinmux_config.h>
* Copyright (C) 2015 Marek Vasut <marex@denx.de>
*/
-#include <config.h>
+#include <common.h>
#include <asm/arch/clock_manager.h>
#include <qts/pll_config.h>
*
*/
+#include <common.h>
#include <asm/arch/clock_manager.h>
#include <asm/io.h>
#include <asm/arch/handoff_soc64.h>
* Copyright (C) 2015 Marek Vasut <marex@denx.de>
*/
-#include <config.h>
+#include <common.h>
#include <errno.h>
-#include <linux/types.h>
-#include <linux/kernel.h>
#include <asm/arch/sdram.h>
/* Board-specific header. */
* Author(s): Patrice Chotard, <patrice.chotard@foss.st.com> for STMicroelectronics.
*/
+#include <common.h>
#include <init.h>
#include <asm/io.h>
#include <asm/armv7_mpu.h>
#define LOG_CATEGORY LOGC_ARCH
-#include <config.h>
+#include <common.h>
#include <log.h>
#include <linux/libfdt.h>
#include <asm/arch/sys_proto.h>
#define LOG_CATEGORY UCLASS_MISC
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <log.h>
* Copyright (C) 2019, STMicroelectronics - All Rights Reserved
*/
+#include <common.h>
#include <command.h>
#include <console.h>
#include <log.h>
* Copyright (C) 2020, STMicroelectronics - All Rights Reserved
*/
+#include <common.h>
#include <bootm.h>
#include <command.h>
#include <dfu.h>
* Copyright (C) 2020, STMicroelectronics - All Rights Reserved
*/
+#include <common.h>
#include <console.h>
#include <dm.h>
#include <dfu.h>
#include <malloc.h>
#include <serial.h>
-#include <time.h>
#include <watchdog.h>
#include <asm/arch/sys_proto.h>
#include <dm/lists.h>
* Copyright (C) 2020, STMicroelectronics - All Rights Reserved
*/
+#include <common.h>
#include <dfu.h>
#include <g_dnl.h>
#include <usb.h>
#define LOG_CATEGORY LOGC_ARCH
+#include <common.h>
#include <dm.h>
#include <image.h>
#include <init.h>
#define LOG_CATEGORY LOGC_ARCH
+#include <common.h>
#include <clk.h>
#include <cpu_func.h>
#include <debug_uart.h>
#define LOG_CATEGORY LOGC_ARCH
+#include <common.h>
#include <fdtdec.h>
#include <fdt_support.h>
#include <log.h>
#include <tee.h>
-#include <mach/stm32.h>
#include <asm/arch/sys_proto.h>
#include <dt-bindings/pinctrl/stm32-pinfunc.h>
#include <linux/io.h>
*/
#include <config.h>
+#include <common.h>
#include <asm/armv7.h>
#include <asm/cache.h>
#include <asm/gic.h>
#include <asm/secure.h>
#include <hang.h>
#include <linux/bitops.h>
-#include <linux/errno.h>
/* PWR */
#define PWR_CR3 0x0c
#define LOG_CATEGORY UCLASS_REGULATOR
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <syscon.h>
-#include <time.h>
#include <asm/io.h>
#include <dm/device_compat.h>
#include <dm/device-internal.h>
#define LOG_CATEGORY LOGC_ARCH
-#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <hang.h>
#define LOG_CATEGORY LOGC_ARCH
-#include <config.h>
+#include <common.h>
#include <log.h>
#include <syscon.h>
#include <asm/io.h>
#define LOG_CATEGORY LOGC_ARCH
+#include <common.h>
#include <env.h>
#include <log.h>
#include <asm/io.h>
* Copyright (C) 2018, STMicroelectronics - All Rights Reserved
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <syscon.h>
+#include <common.h>
#include <asm/arch/dram.h>
#include <asm/arch/cpu.h>
+#include <common.h>
#include <asm/arch/dram.h>
#include <asm/arch/cpu.h>
* SPDX-License-Identifier: GPL-2.0+
*/
+#include <common.h>
#include <asm/arch/dram.h>
#include <asm/arch/cpu.h>
* SPDX-License-Identifier: GPL-2.0+
*/
+#include <common.h>
#include <asm/arch/dram.h>
#include <asm/arch/cpu.h>
* SPDX-License-Identifier: GPL-2.0+
*/
+#include <common.h>
#include <asm/arch/dram.h>
#include <asm/arch/cpu.h>
* SPDX-License-Identifier: GPL-2.0+
*/
+#include <common.h>
#include <asm/arch/dram.h>
#include <asm/arch/cpu.h>
* SPDX-License-Identifier: GPL-2.0+
*/
+#include <common.h>
#include <asm/arch/dram.h>
#include <asm/arch/cpu.h>
+#include <common.h>
#include <asm/arch/dram.h>
#include <asm/arch/cpu.h>
/* Tegra AP (Application Processor) code */
-#include <config.h>
+#include <common.h>
#include <log.h>
#include <linux/bug.h>
#include <asm/io.h>
* Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved.
*/
+#include <common.h>
#include <asm/system.h>
#include <asm/armv8/mmu.h>
* NVIDIA Corporation <www.nvidia.com>
*/
-#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <init.h>
* NVIDIA Corporation <www.nvidia.com>
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <env.h>
#include <errno.h>
/* Tegra cache routines */
+#include <common.h>
#include <asm/io.h>
#include <asm/arch-tegra/ap.h>
#if IS_ENABLED(CONFIG_TEGRA_GP_PADCTRL)
* Copyright (c) 2016-2018, NVIDIA CORPORATION.
*/
+#include <common.h>
#include <env.h>
#include <fdt_support.h>
#include <fdtdec.h>
/* Tegra SoC common clock control functions */
+#include <common.h>
#include <div64.h>
#include <dm.h>
#include <errno.h>
* (C) Copyright 2004 Texas Insturments
*/
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <irq_func.h>
* Copyright (c) 2010-2019, NVIDIA CORPORATION. All rights reserved.
*/
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <asm/arch/clock.h>
* (C) Copyright 2010 - 2011 NVIDIA Corporation <www.nvidia.com>
*/
+#include <common.h>
#include <log.h>
#include <linux/errno.h>
#include <asm/arch-tegra/crypto.h>
* Copyright (c) 2010-2016, NVIDIA CORPORATION.
*/
+#include <common.h>
#include <fdtdec.h>
#include <stdlib.h>
#include <asm/arch-tegra/cboot.h>
* Copyright (c) 2011 The Chromium OS Authors.
*/
+#include <common.h>
#include <asm/global_data.h>
#include "emc.h"
#include <asm/io.h>
* Svyatoslav Ryhel <clamor95@gmail.com>
*/
+#include <common.h>
#include <linux/delay.h>
#include <asm/io.h>
/* Tegra vpr routines */
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <asm/arch/tegra.h>
* Copyright (c) 2016, NVIDIA CORPORATION.
*/
+#include <common.h>
#include <cpu_func.h>
#include <asm/io.h>
#include <asm/arch-tegra/ivc.h>
#include <linux/bug.h>
-#include <linux/errno.h>
#include <linux/printk.h>
#define TEGRA_IVC_ALIGN 64
* Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
*/
+#include <common.h>
#include <cpu_func.h>
#include <log.h>
#include <asm/global_data.h>
* Copyright (c) 2014-2019, NVIDIA CORPORATION. All rights reserved.
*/
+#include <common.h>
#include <errno.h>
-#include <time.h>
#include <linux/delay.h>
#include <asm/io.h>
*
* Allen Martin <amartin@nvidia.com>
*/
+#include <common.h>
#include <debug_uart.h>
#include <log.h>
#include <spl.h>
* NVIDIA Corporation <www.nvidia.com>
*/
+#include <common.h>
#include <init.h>
#include <linux/ctype.h>
#if defined(CONFIG_TEGRA124) || defined(CONFIG_TEGRA30)
/* Tegra114 Clock control functions */
+#include <common.h>
#include <init.h>
#include <log.h>
#include <asm/io.h>
* NVIDIA Corporation <www.nvidia.com>
*/
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <asm/arch/clock.h>
/* Tegra124 Clock control functions */
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <log.h>
#include <asm/io.h>
* NVIDIA Corporation <www.nvidia.com>
*/
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <asm/arch/ahb.h>
* Copyright (C) 2017 Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <syscon.h>
* Author: Jan Kiszka <jan.kiszka@siemens.com>
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/psci.h>
#include <asm/arch/flow.h>
#define pr_fmt(fmt) "tegra-xusb-padctl: " fmt
+#include <common.h>
#include <errno.h>
#include <log.h>
-#include <time.h>
#include <dm/of_access.h>
#include <dm/ofnode.h>
#include <linux/delay.h>
* Copyright (c) 2022, Svyatoslav Ryhel <clamor95@gmail.com>
*/
+#include <common.h>
#include <command.h>
#include <log.h>
#include <asm/arch-tegra/crypto.h>
/* Tegra20 Clock control functions */
+#include <common.h>
#include <errno.h>
#include <init.h>
#include <log.h>
* Copyright (c) 2010-2012, NVIDIA CORPORATION. All rights reserved.
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/tegra.h>
#include <asm/arch-tegra/pmc.h>
* NVIDIA Corporation <www.nvidia.com>
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/clock.h>
#include <asm/arch/tegra.h>
* Copyright (c) 2011 The Chromium OS Authors.
*/
-#include <config.h>
+#include <common.h>
#include <fdtdec.h>
#include <log.h>
#include <asm/io.h>
* (C) Copyright 2010,2011 NVIDIA Corporation <www.nvidia.com>
*/
+#include <common.h>
#include <i2c.h>
#include <log.h>
#include <tps6586x.h>
* NVIDIA Corporation <www.nvidia.com>
*/
+#include <common.h>
#include <asm/global_data.h>
#include <asm/io.h>
#include <linux/errno.h>
* NVIDIA Corporation <www.nvidia.com>
*/
-#include <config.h>
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/clock.h>
#include <asm/arch/flow.h>
/* Tegra210 Clock control functions */
+#include <common.h>
#include <errno.h>
#include <init.h>
#include <log.h>
-#include <time.h>
#include <asm/cache.h>
#include <asm/io.h>
#include <asm/arch/clock.h>
#define pr_fmt(fmt) "tegra-xusb-padctl: " fmt
+#include <common.h>
#include <errno.h>
#include <log.h>
-#include <time.h>
#include <asm/global_data.h>
#include <dm/of_access.h>
#include <dm/ofnode.h>
* Copyright (c) 2022, Svyatoslav Ryhel <clamor95@gmail.com>
*/
+#include <common.h>
#include <command.h>
#include <log.h>
-#include <vsprintf.h>
#include <asm/arch-tegra/crypto.h>
#include "bct.h"
#include "uboot_aes.h"
/* Tegra30 Clock control functions */
+#include <common.h>
#include <errno.h>
#include <init.h>
#include <log.h>
* Copyright (c) 2010-2014, NVIDIA CORPORATION. All rights reserved.
*/
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <asm/arch/clock.h>
#define pr_fmt(fmt) "tegra-xusb-padctl: " fmt
+#include <common.h>
#include <errno.h>
#include <log.h>
#include <linux/printk.h>
* Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved.
*/
+#include <common.h>
#include <errno.h>
-#include <linux/compiler.h>
#include <asm/arch-tegra/xusb-padctl.h>
struct tegra_xusb_phy * __weak tegra_xusb_phy_get(unsigned int type)
* Copyright (C) 2019 Stephan Gerhold <stephan@gerhold.net>
*/
-#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <asm/armv7.h>
#include <asm/cache.h>
* Copyright (C) 2019 Stephan Gerhold <stephan@gerhold.net>
*/
+#include <common.h>
#include <init.h>
#include <asm/io.h>
#include <linux/printk.h>
#include <linux/sizes.h>
#include <asm/global_data.h>
+#include <asm/u-boot.h>
#include "init.h"
#include "sg-regs.h"
* Michal Simek <michal.simek@amd.com>
*/
+#include <common.h>
#include <init.h>
#include <time.h>
#include <asm/global_data.h>
* Michal Simek <michal.simek@amd.com>
*/
+#include <common.h>
#include <init.h>
#include <asm/armv8/mmu.h>
#include <asm/cache.h>
* Michal Simek <michal.simek@amd.com>
*/
+#include <common.h>
#include <init.h>
#include <time.h>
#include <asm/global_data.h>
* Michal Simek <michal.simek@amd.com>
*/
+#include <common.h>
#include <init.h>
#include <asm/armv8/mmu.h>
#include <asm/cache.h>
* Siva Durga Prasad Paladugu <siva.durga.prasad.paladugu@amd.com>
*/
-#include <config.h>
-#include <linux/string.h>
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/hardware.h>
#include <asm/arch/sys_proto.h>
--- /dev/null
+# SPDX-License-Identifier: GPL-2.0+
+#
+# (C) Copyright 2000-2006
+# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
+
+obj-y = timer.o
+obj-y += reset.o
--- /dev/null
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * armboot - Startup Code for ARM926EJS CPU-core
+ *
+ * Copyright (c) 2003 Texas Instruments
+ *
+ * ----- Adapted for OMAP1610 OMAP730 from ARM925t code ------
+ *
+ * Copyright (c) 2001 Marius Gröger <mag@sysgo.de>
+ * Copyright (c) 2002 Alex Züpke <azu@sysgo.de>
+ * Copyright (c) 2002 Gary Jennejohn <garyj@denx.de>
+ * Copyright (c) 2003 Richard Woodruff <r-woodruff2@ti.com>
+ * Copyright (c) 2003 Kshitij <kshitij@ti.com>
+ */
+
+ .align 5
+.globl reset_cpu
+reset_cpu:
+ ldr r1, rstctl1 /* get clkm1 reset ctl */
+ mov r3, #0x0
+ strh r3, [r1] /* clear it */
+ mov r3, #0x8
+ strh r3, [r1] /* force dsp+arm reset */
+_loop_forever:
+ b _loop_forever
+
+rstctl1:
+ .word 0xfffece10
--- /dev/null
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * (C) Copyright 2003
+ * Texas Instruments <www.ti.com>
+ *
+ * (C) Copyright 2002
+ * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
+ * Marius Groeger <mgroeger@sysgo.de>
+ *
+ * (C) Copyright 2002
+ * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
+ * Alex Zuepke <azu@sysgo.de>
+ *
+ * (C) Copyright 2002-2004
+ * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
+ *
+ * (C) Copyright 2004
+ * Philippe Robin, ARM Ltd. <philippe.robin@arm.com>
+ */
+
+#include <common.h>
+
+#define TIMER_ENABLE (1 << 7)
+#define TIMER_MODE_MSK (1 << 6)
+#define TIMER_MODE_FR (0 << 6)
+#define TIMER_MODE_PD (1 << 6)
+
+#define TIMER_INT_EN (1 << 5)
+#define TIMER_PRS_MSK (3 << 2)
+#define TIMER_PRS_8S (1 << 3)
+#define TIMER_SIZE_MSK (1 << 2)
+#define TIMER_ONE_SHT (1 << 0)
+
+int timer_init (void)
+{
+ ulong tmr_ctrl_val;
+
+ /* 1st disable the Timer */
+ tmr_ctrl_val = *(volatile ulong *)(CFG_SYS_TIMERBASE + 8);
+ tmr_ctrl_val &= ~TIMER_ENABLE;
+ *(volatile ulong *)(CFG_SYS_TIMERBASE + 8) = tmr_ctrl_val;
+
+ /*
+ * The Timer Control Register has one Undefined/Shouldn't Use Bit
+ * So we should do read/modify/write Operation
+ */
+
+ /*
+ * Timer Mode : Free Running
+ * Interrupt : Disabled
+ * Prescale : 8 Stage, Clk/256
+ * Tmr Siz : 16 Bit Counter
+ * Tmr in Wrapping Mode
+ */
+ tmr_ctrl_val = *(volatile ulong *)(CFG_SYS_TIMERBASE + 8);
+ tmr_ctrl_val &= ~(TIMER_MODE_MSK | TIMER_INT_EN | TIMER_PRS_MSK | TIMER_SIZE_MSK | TIMER_ONE_SHT );
+ tmr_ctrl_val |= (TIMER_ENABLE | TIMER_PRS_8S);
+
+ *(volatile ulong *)(CFG_SYS_TIMERBASE + 8) = tmr_ctrl_val;
+
+ return 0;
+}
* Copyright (C) 2013 Xilinx, Inc. All rights reserved.
*/
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <init.h>
#include <malloc.h>
* Copyright (C) 2012 Michal Simek <monstr@monstr.eu>
* Copyright (C) 2012 Xilinx, Inc. All rights reserved.
*/
-#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <init.h>
#include <zynqpl.h>
-#include <linux/errno.h>
#include <asm/cache.h>
#include <asm/io.h>
#include <asm/arch/clk.h>
* Copyright (C) 2012 - 2017 Xilinx, Inc. All rights reserved.
*/
-#include <linux/string.h>
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/sys_proto.h>
#include <asm/arch/hardware.h>
* Copyright (c) 2013 - 2017 Xilinx Inc.
*/
+#include <common.h>
#include <asm/io.h>
#include <malloc.h>
#include <asm/arch/hardware.h>
/*
* (C) Copyright 2014 - 2017 Xilinx, Inc. Michal Simek
*/
+#include <common.h>
#include <debug_uart.h>
#include <hang.h>
#include <image.h>
* Copyright (C) 2018 Xilinx, Inc. (Michal Simek)
*/
+#include <common.h>
#include <cpu_func.h>
#include <init.h>
#include <asm/armv7_mpu.h>
* Christian Taedcke <christian.taedcke@weidmueller.com>
*/
+#include <common.h>
#include <mach/zynqmp_aes.h>
-#include <linux/errno.h>
+
#include <asm/arch/sys_proto.h>
#include <cpu_func.h>
#include <memalign.h>
* Michal Simek <michal.simek@amd.com>
*/
+#include <common.h>
#include <init.h>
#include <time.h>
#include <asm/arch/clk.h>
* Michal Simek <michal.simek@amd.com>
*/
+#include <common.h>
#include <init.h>
#include <time.h>
-#include <linux/errno.h>
-#include <linux/types.h>
#include <asm/arch/hardware.h>
#include <asm/arch/sys_proto.h>
#include <asm/armv8/mmu.h>
* Jorge Ramirez-Ortiz <jorge@foundries.io>
*/
+#include <common.h>
#include <cpu_func.h>
#include <asm/arch/hardware.h>
#include <asm/arch/ecc_spl_init.h>
* Michal Simek <michal.simek@amd.com>
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/hardware.h>
#include <asm/arch/sys_proto.h>
#ifndef ZYNQMP_AES_H
#define ZYNQMP_AES_H
-#include <linux/types.h>
-
struct zynqmp_aes {
u64 srcaddr;
u64 ivaddr;
* Michal Simek <michal.simek@amd.com>
*/
-#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <log.h>
-#include <vsprintf.h>
#include <zynqmp_firmware.h>
#include <asm/arch/hardware.h>
#include <asm/arch/sys_proto.h>
#include <asm/io.h>
#include <linux/delay.h>
-#include <linux/string.h>
#define LOCK 0
#define SPLIT 1
*
* Michal Simek <michal.simek@amd.com>
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/psu_init_gpl.h>
#include <linux/delay.h>
* Michal Simek <michal.simek@amd.com>
*/
+#include <common.h>
#include <image.h>
#include <init.h>
#include <log.h>
#ifndef __ASM_GBL_DATA_H
#define __ASM_GBL_DATA_H
-#include <asm/u-boot.h>
-
/* Architecture-specific global data */
struct arch_global_data {
#ifdef CONFIG_SYS_I2C_FSL
#include <config.h>
#include <init.h>
+#include <asm/u-boot.h>
#include <asm/global_data.h>
DECLARE_GLOBAL_DATA_PTR;
#include <log.h>
#include <spl.h>
#include <asm/io.h>
+#include <asm/u-boot.h>
#include <linux/stringify.h>
void board_boot_order(u32 *spl_boot_list)
#define __ASM_GBL_DATA_H
#include <asm/cpuinfo.h>
-#include <asm/u-boot.h>
/* Architecture-specific global data */
struct arch_global_data {
#include <linux/types.h>
#include <asm/regdef.h>
-#include <asm/u-boot.h>
struct octeon_eeprom_mac_addr {
u8 mac_addr_base[6];
#include <asm/mipsregs.h>
#include <asm/addrspace.h>
#include <asm/system.h>
+#include <asm/u-boot.h>
DECLARE_GLOBAL_DATA_PTR;
bool "MT7621"
select MIPS_CM
select MIPS_L2_CACHE
- select MMC_SUPPORTS_TUNING
select SYS_CACHE_SHIFT_5
select SYS_MIPS_CACHE_INIT_RAM_LOAD
select PINCTRL_MT7621
* Scott McNutt <smcnutt@psyent.com>
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <cpu.h>
#include <cpu_func.h>
* Scott McNutt <smcnutt@psyent.com>
*/
+#include <common.h>
#include <command.h>
#include <irq_func.h>
#include <asm/nios2.h>
* Scott McNutt <smcnutt@psyent.com>
*/
+#include <common.h>
#include <hang.h>
-#include <stdio.h>
#include <asm/ptrace.h>
void trap_handler (struct pt_regs *regs)
#define __ASM_NIOS2_GLOBALDATA_H_
#include <linux/types.h>
-#include <asm/u-boot.h>
/* Architecture-specific global data */
struct arch_global_data {
* Scott McNutt <smcnutt@psyent.com>
*/
+#include <common.h>
#include <bootm.h>
#include <cpu_func.h>
#include <env.h>
* Implemented by fredrik.markstrom@gmail.com and ivarholmqvist@gmail.com
*/
+#include <common.h>
#include <cpu_func.h>
#include <asm/cache.h>
#include <asm/global_data.h>
* Derived from the MPC8260 and MPC85xx.
*/
+#include <common.h>
#include <cpu_func.h>
#include <irq_func.h>
#include <net.h>
* based on the contribution of Marian Balakowicz <m8@semihalf.com>
*/
+#include <common.h>
#include <irq_func.h>
#include <mpc83xx.h>
#include <command.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <clock_legacy.h>
#include <asm/global_data.h>
#include <linux/libfdt.h>
* Copyright 2004 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <command.h>
#include <irq_func.h>
#include <mpc83xx.h>
* Copyright 2011 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <log.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
* with some bits from older board-specific PCI initialization.
*/
+#include <common.h>
#include <init.h>
#include <pci.h>
#include <asm/bitops.h>
* Anton Vorontsov <avorontsov@ru.mvista.com>
*/
+#include <common.h>
#include <clock_legacy.h>
#include <pci.h>
#include <mpc83xx.h>
* based on source code of Shlomi Gridish
*/
+#include <common.h>
#include <linux/errno.h>
#include <asm/io.h>
#include <asm/immap_83xx.h>
*/
#include <config.h>
+#include <common.h>
#include <asm/io.h>
#include <asm/fsl_mpc83xx_serdes.h>
#include <linux/delay.h>
#ifndef CONFIG_MPC83XX_SDRAM
+#include <common.h>
#include <cpu_func.h>
#include <log.h>
#include <time.h>
#ifndef CONFIG_CLK_MPC83XX
+#include <common.h>
#include <clock_legacy.h>
#include <mpc83xx.h>
#include <command.h>
* Copyright (C) 2004-2008 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <asm-offsets.h>
#include <clock_legacy.h>
#include <mpc83xx.h>
* exceptions
*/
+#include <common.h>
#include <asm/global_data.h>
#include <asm/ptrace.h>
#include <command.h>
* Copyright 2012 Freescale Semiconductor, Inc.
*/
-#include <config.h>
-#include <linux/kernel.h>
+#include <common.h>
#include <asm/fsl_portals.h>
#include <asm/fsl_liodn.h>
* Copyright 2012 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <asm/fsl_serdes.h>
#include <asm/processor.h>
#include <asm/io.h>
*/
#include <config.h>
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <asm/immap_85xx.h>
*/
#include <config.h>
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <asm/immap_85xx.h>
* Copyright 2010-2011 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <command.h>
#include <init.h>
#include <linux/compiler.h>
*/
#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <clock_legacy.h>
#include <display_options.h>
* Copyright 2009-2012 Freescale Semiconductor, Inc
*/
-#include <asm/ppc.h>
+#include <common.h>
#include <system-constants.h>
-#include <linux/types.h>
#include <asm-offsets.h>
#include <asm/global_data.h>
#include <asm/processor.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <env.h>
#include <log.h>
* Copyright 2012 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <log.h>
#include <asm/fsl_serdes.h>
#include <asm/immap_85xx.h>
* Copyright 2009-2011 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <env.h>
#include <log.h>
#include <time.h>
* Xianghua Xiao (X.Xiao@motorola.com)
*/
-#include <asm/ppc.h>
+#include <common.h>
#include <irq_func.h>
#include <log.h>
#include <time.h>
* Copyright 2008-2011 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <log.h>
#include <linux/libfdt.h>
#include <fdt_support.h>
* Copyright 2008-2011 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <env.h>
#include <log.h>
*/
#include <config.h>
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <asm/immap_85xx.h>
*/
#include <config.h>
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <asm/immap_85xx.h>
*/
#include <config.h>
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <asm/immap_85xx.h>
*/
#include <config.h>
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <asm/immap_85xx.h>
*/
#include <config.h>
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <asm/immap_85xx.h>
*/
#include <config.h>
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <asm/immap_85xx.h>
*/
#include <config.h>
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <asm/immap_85xx.h>
* Copyright 2011 Freescale Semiconductor, Inc.
*/
-#include <config.h>
-#include <linux/kernel.h>
+#include <common.h>
#include <asm/fsl_portals.h>
#include <asm/fsl_liodn.h>
* Copyright 2010-2011 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <asm/fsl_serdes.h>
#include <asm/processor.h>
#include <asm/io.h>
* Copyright 2010-2011 Freescale Semiconductor, Inc.
*/
-#include <config.h>
-#include <linux/kernel.h>
+#include <common.h>
#include <asm/fsl_portals.h>
#include <asm/fsl_liodn.h>
* Copyright 2009-2011 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <asm/fsl_serdes.h>
#include <asm/processor.h>
#include <asm/io.h>
* Copyright 2010-2011 Freescale Semiconductor, Inc.
*/
-#include <config.h>
-#include <linux/kernel.h>
+#include <common.h>
#include <asm/fsl_portals.h>
#include <asm/fsl_liodn.h>
* Copyright 2009-2010 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/fsl_serdes.h>
#include <asm/processor.h>
* Copyright 2010-2011 Freescale Semiconductor, Inc.
*/
-#include <config.h>
-#include <linux/kernel.h>
+#include <common.h>
#include <asm/fsl_portals.h>
#include <asm/fsl_liodn.h>
* Copyright 2009-2011 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <asm/fsl_serdes.h>
#include <asm/processor.h>
#include <asm/io.h>
* Copyright 2008-2011 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <linux/libfdt.h>
#include <fdt_support.h>
* based on source code of Shlomi Gridish
*/
-#include <config.h>
+#include <common.h>
#include <linux/errno.h>
#include <asm/io.h>
#include <asm/immap_85xx.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <cpu_func.h>
#include <clock_legacy.h>
#include <ppc_asm.tmpl>
* Copyright 2009 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <asm/processor.h>
#include <asm/global_data.h>
#include <fsl_ifc.h>
* Copyright 2014 Freescale Semiconductor, Inc.
*/
-#include <config.h>
-#include <linux/kernel.h>
+#include <common.h>
#include <asm/fsl_portals.h>
#include <asm/fsl_liodn.h>
* Copyright 2014 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <asm/fsl_serdes.h>
#include <asm/processor.h>
#include <asm/io.h>
* Copyright 2012 Freescale Semiconductor, Inc.
*/
-#include <config.h>
-#include <linux/kernel.h>
+#include <common.h>
#include <asm/fsl_portals.h>
#include <asm/fsl_liodn.h>
* Copyright 2012 Freescale Semiconductor, Inc.
*/
-#include <linux/kernel.h>
+#include <common.h>
#include <asm/fsl_serdes.h>
#include <asm/processor.h>
#include <asm/io.h>
-#include <asm/ppc.h>
static u8 serdes_cfg_tbl[][SRDS_MAX_LANES] = {
* Copyright 2013 Freescale Semiconductor, Inc.
*/
-#include <config.h>
-#include <linux/kernel.h>
+#include <common.h>
#include <asm/fsl_portals.h>
#include <asm/fsl_liodn.h>
* Shengzhou Liu <Shengzhou.Liu@freescale.com>
*/
-#include <linux/kernel.h>
+#include <common.h>
#include <asm/fsl_serdes.h>
#include <asm/processor.h>
-#include <asm/ppc.h>
#include "fsl_corenet2_serdes.h"
struct serdes_config {
* Copyright 2012 Freescale Semiconductor, Inc.
*/
-#include <config.h>
-#include <linux/kernel.h>
+#include <common.h>
#include <asm/fsl_portals.h>
#include <asm/fsl_liodn.h>
* Copyright 2012 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <asm/fsl_serdes.h>
#include <asm/processor.h>
#include <asm/io.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <display_options.h>
#include <init.h>
#include <asm/bitops.h>
* This file handles the architecture-dependent parts of hardware exceptions
*/
-#include <asm/ppc.h>
+#include <common.h>
#include <asm/global_data.h>
#include <asm/ptrace.h>
#include <command.h>
*/
#include <config.h>
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <init.h>
* cpu specific common code for 85xx/86xx processors.
*/
+#include <common.h>
#include <cpu_func.h>
#include <linux/libfdt.h>
#include <fdt_support.h>
* Copyright 2010-2011 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <hang.h>
#include <init.h>
#include <asm/fsl_lbc.h>
* Copyright 2012-2016 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <log.h>
#include <linux/bitops.h>
#include <linux/log2.h>
#include <malloc.h>
#include <asm/fsl_pamu.h>
-#include <asm/io.h>
-#include <asm/ppc.h>
struct paace *ppaact;
struct paace *sec;
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <display_options.h>
#include <asm/bitops.h>
#include <asm/global_data.h>
* Copyright 2012-2016 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <log.h>
#include <asm/fsl_pamu.h>
#include <asm/global_data.h>
* Copyright 2011 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <config.h>
#include <log.h>
#include <time.h>
#include <asm/fsl_law.h>
#include <asm/fsl_serdes.h>
#include <asm/fsl_srio.h>
-#include <asm/ppc.h>
#include <linux/delay.h>
#include <linux/errno.h>
#endif
#if defined(__KERNEL__) && !defined(__ASSEMBLY__)
-#include <linux/types.h>
-
extern void flush_dcache_range(unsigned long start, unsigned long stop);
extern void clean_dcache_range(unsigned long start, unsigned long stop);
extern void invalidate_dcache_range(unsigned long start, unsigned long stop);
#ifndef _ASM_FSL_DMA_H_
#define _ASM_FSL_DMA_H_
-#include <linux/types.h>
+#include <asm/types.h>
#ifdef CONFIG_MPC83xx
typedef struct fsl_dma {
#ifndef _FSL_LIODN_H_
#define _FSL_LIODN_H_
-#include <config.h>
-#include <linux/types.h>
-#include <asm/ppc.h>
+#include <asm/types.h>
#include <fsl_qbman.h>
struct srio_liodn_id_table {
#ifndef _FSL_PORTALS_H_
#define _FSL_PORTALS_H_
-#include <linux/types.h>
-
/* entries must be in order and contiguous */
enum fsl_dpaa_dev {
FSL_HW_PORTAL_SEC,
#define __FSL_SERDES_H
#include <config.h>
-#include <linux/types.h>
enum srds_prtcl {
/*
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r2")
-#include <asm/u-boot.h>
-
#endif /* __ASM_GBL_DATA_H */
#ifndef __IMMAP_8XX__
#define __IMMAP_8XX__
-#include <linux/types.h>
-
/* System configuration registers.
*/
typedef struct sys_conf {
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
*/
-#include <config.h>
+#include <common.h>
#include <bootm.h>
#include <bootstage.h>
#include <cpu_func.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <cpu_func.h>
#include <asm/cache.h>
#include <watchdog.h>
* (C) Copyright 2000
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <log.h>
/*
* Gleb Natapov <gnatapov@mrv.com>
*/
-#include <asm/ppc.h>
+#include <common.h>
#include <irq_func.h>
#include <asm/processor.h>
#include <watchdog.h>
+#include <common.h>
#include <command.h>
#include <kgdb.h>
#include <asm/ptrace.h>
/*
* Copyright 2012 Stefan Roese <sr@denx.de>
*/
+#include <common.h>
#include <config.h>
#include <log.h>
#include <spl.h>
* Sysgo Real-Time Solutions, GmbH <www.elinos.com>
* Marius Groeger <mgroeger@sysgo.de>
*/
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/mp.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <init.h>
#include <time.h>
#include <asm/io.h>
* Rick Chen, Andes Technology Corporation <rick@andestech.com>
*/
-#include <linux/types.h>
-#include <asm/u-boot-riscv.h>
+#include <asm/u-boot.h>
unsigned long do_go_exec(ulong (*entry)(int, char * const []),
int argc, char *const argv[])
#define __ASM_GBL_DATA_H
#include <linux/types.h>
-#include <asm/u-boot.h>
/* Architecture-specific global data */
struct arch_global_data {
* (C) Copyright 2007 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
*/
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <asm/cache.h>
* Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
*/
+#include <common.h>
#include <command.h>
#include <irq_func.h>
#include <cpu_func.h>
* Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
*/
+#include <common.h>
#include <irq_func.h>
int interrupt_init(void)
// SPDX-License-Identifier: GPL-2.0+
+#include <common.h>
#include <cpu_func.h>
#include <asm/processor.h>
#include <asm/system.h>
#ifndef __ASM_SH_GLOBALDATA_H_
#define __ASM_SH_GLOBALDATA_H_
-#include <asm/u-boot.h>
-
/* Architecture-specific global data */
struct arch_global_data {
};
* Copyright (C) 2016 Vladimir Zapolskiy <vz@mleia.com>
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
* (c) Copyright 2008 Renesas Solutions Corp.
*/
-#include <config.h>
+#include <common.h>
#include <bootm.h>
#include <command.h>
#include <env.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <init.h>
#include <asm/processor.h>
#include <asm/io.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <init.h>
#include <time.h>
#include <asm/io.h>
* Linux SuperH zImage loading and boot
*/
+#include <common.h>
#include <command.h>
#include <env.h>
#include <irq_func.h>
-#include <vsprintf.h>
#include <asm/io.h>
#include <asm/zimage.h>
#define LOG_CATEGORY UCLASS_IRQ
+#include <common.h>
#include <dm.h>
#include <irq.h>
#include <log.h>
-#include <time.h>
#include <acpi/acpi_device.h>
#include <asm/io.h>
#include <dt-bindings/interrupt-controller/irq.h>
#define LOG_CATEGORY LOGC_ACPI
+#include <common.h>
#include <cpu.h>
#include <dm.h>
#include <log.h>
* Copyright 2019 Google LLC
*/
+#include <common.h>
#include <cpu.h>
#include <dm.h>
#include <log.h>
* Copyright 2019 Google LLC
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <asm/cpu_common.h>
* Portions taken from coreboot
*/
+#include <common.h>
#include <dm.h>
#include <ec_commands.h>
#include <init.h>
* Copyright 2020 B&R Industrial Automation GmbH - http://www.br-automation.com
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <asm/arch/fsp_bindings.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <asm/arch/iomap.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <binman.h>
#include <bootstage.h>
#include <dm.h>
#define LOG_CATEGORY UCLASS_NORTHBRIDGE
+#include <common.h>
#include <dm.h>
#include <dt-structs.h>
#include <log.h>
* From coreboot Apollo Lake support lpc.c
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <spl.h>
* Copyright 2019 Google LLC
*/
+#include <common.h>
#include <dm.h>
#include <pch.h>
#include <spl.h>
#define LOG_CATEGORY UCLASS_ACPI_PMC
+#include <common.h>
#include <dm.h>
#include <dt-structs.h>
#include <log.h>
* Copyright 2019 Google LLC
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <spl.h>
-#include <time.h>
#include <asm/cpu.h>
#include <asm/cpu_common.h>
#include <asm/intel_regs.h>
#define LOG_CATEGORY LOGC_BOOT
+#include <common.h>
#include <binman_sym.h>
#include <bootstage.h>
#include <dm.h>
* Take from coreboot project file of the same name
*/
+#include <common.h>
#include <asm/intel_regs.h>
#include <asm/io.h>
#include <asm/arch/systemagent.h>
* Some code from coreboot lpss.c
*/
+#include <common.h>
#include <dm.h>
#include <dt-structs.h>
#include <malloc.h>
* Copyright (C) 2016, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <cpu.h>
#include <dm.h>
#include <log.h>
* Based on code from coreboot
*/
+#include <common.h>
#include <cpu.h>
#include <dm.h>
#include <event.h>
* Copyright (C) 2015 Google, Inc
*/
+#include <common.h>
#include <errno.h>
#include <asm/io.h>
* Copyright (C) 2015, Kodak Alaris, Inc
*/
+#include <common.h>
#include <fdtdec.h>
#include <log.h>
#include <asm/fsp1/fsp_support.h>
* Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <init.h>
#include <mmc.h>
#include <pci_ids.h>
#include <asm/mrccache.h>
#include <asm/post.h>
#include <asm/arch/iomap.h>
-#include <asm/u-boot-x86.h>
#include <linux/bitops.h>
/* GPIO SUS */
* Copyright (C) 2017, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <init.h>
#include <asm/mrccache.h>
#include <asm/post.h>
-#include <asm/u-boot-x86.h>
int arch_cpu_init(void)
{
* Copyright (C) 2017, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <asm/io.h>
#define PCI_DEV_CONFIG(segbus, dev, fn) ( \
* Copyright (C) 2017, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <fdtdec.h>
#include <log.h>
#include <asm/fsp1/fsp_support.h>
#define LOG_CATEGORY UCLASS_SYSCON
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <pci.h>
* Based on code from coreboot src/soc/intel/broadwell/cpu.c
*/
+#include <common.h>
#include <dm.h>
#include <cpu.h>
#include <event.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <bloblist.h>
#include <cpu_func.h>
#include <debug_uart.h>
#include <log.h>
#include <asm/global_data.h>
#include <asm/mtrr.h>
-#include <linux/errno.h>
int misc_init_r(void)
{
* Based on code from coreboot src/soc/intel/broadwell/cpu.c
*/
+#include <common.h>
#include <dm.h>
#include <cpu.h>
#include <init.h>
* Modified from coreboot
*/
+#include <common.h>
#include <errno.h>
#include <asm/intel_regs.h>
#include <asm/io.h>
* From coreboot broadwell support
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <pch.h>
* Based on code from coreboot src/soc/intel/broadwell/me_status.c
*/
+#include <common.h>
#include <errno.h>
#include <log.h>
#include <asm/arch/me.h>
* Copyright (C) 2011 The Chromium Authors
*/
+#include <common.h>
#include <dm.h>
#include <asm/global_data.h>
#include <asm/io.h>
* Copyright (c) 2016 Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <pch.h>
* Copyright (C) 2016 Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
* Copyright (C) 2016 Google, Inc.
*/
+#include <common.h>
#include <log.h>
#include <pci.h>
#include <asm/io.h>
* Copyright (c) 2016 Google, Inc
*/
-#include <config.h>
+#include <common.h>
#include <display_options.h>
#include <errno.h>
#include <init.h>
* From coreboot src/soc/intel/broadwell/sata.c
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <asm/global_data.h>
#define LOG_CATEGORY UCLASS_RAM
+#include <common.h>
#include <dm.h>
#include <init.h>
#include <log.h>
* Graeme Russ, graeme.russ@gmail.com.
*/
+#include <common.h>
#include <cpu_func.h>
#include <event.h>
#include <fdtdec.h>
* Copyright 2020 Google LLC
*/
+#include <common.h>
#include <init.h>
int dram_init(void)
* Graeme Russ, <graeme.russ@gmail.com>
*/
+#include <common.h>
#include <init.h>
#include <asm/e820.h>
#include <asm/cb_sysinfo.h>
* Modified from the coreboot version
*/
+#include <common.h>
#include <bootstage.h>
#include <asm/arch/timestamp.h>
#include <asm/cb_sysinfo.h>
-#include <asm/u-boot-x86.h>
#include <linux/compiler.h>
static struct timestamp_table *ts_table __section(".data");
#define LOG_CATEGORY UCLASS_CPU
+#include <common.h>
#include <bootstage.h>
#include <command.h>
#include <cpu_func.h>
* Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <cpu.h>
#include <dm.h>
#include <errno.h>
* Copyright (c) 2015 Google, Inc
*/
+#include <common.h>
#include <cpu_func.h>
#include <fdtdec.h>
#include <init.h>
#include <netdev.h>
-#include <asm/u-boot-x86.h>
int arch_cpu_init(void)
{
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <cpu_func.h>
#include <efi.h>
#include <efi_api.h>
#include <asm/e820.h>
#include <asm/global_data.h>
#include <asm/post.h>
-#include <asm/u-boot-x86.h>
DECLARE_GLOBAL_DATA_PTR;
* Copyright (c) 2015 Google, Inc
*/
+#include <common.h>
#include <efi.h>
#include <init.h>
#include <asm/global_data.h>
* src/arch/x86/lib/cpu.c
*/
+#include <common.h>
#include <cpu_func.h>
#include <init.h>
#include <log.h>
#include <asm/msr.h>
#include <asm/mtrr.h>
#include <asm/processor-flags.h>
-#include <asm/u-boot-x86.h>
DECLARE_GLOBAL_DATA_PTR;
* Copyright (C) 1991, 1992 Linus Torvalds
*/
+#include <common.h>
#include <dm.h>
#include <efi_loader.h>
#include <hang.h>
* Modified from coreboot src/soc/intel/common/block/acpi.c
*/
+#include <common.h>
#include <bloblist.h>
#include <cpu.h>
#include <dm.h>
* Copyright (C) 2012 Kyösti Mälkki <kyosti.malkki@gmail.com>
*/
+#include <common.h>
#include <asm/microcode.h>
#include <asm/msr-index.h>
#include <asm/mtrr.h>
* Some code taken from coreboot cpulib.c
*/
+#include <common.h>
#include <cpu.h>
#include <dm.h>
#include <errno.h>
* Copyright (c) 2016 Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <handoff.h>
* Copyright 2019 Google LLC
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/cpu_common.h>
#include <asm/fast_spi.h>
* Modified from coreboot src/drivers/wifi/generic.c
*/
+#include <common.h>
#include <log.h>
#include <acpi/acpigen.h>
#include <acpi/acpi_device.h>
* Modified from coreboot src/soc/intel/gma/opregion.c
*/
+#include <common.h>
#include <binman.h>
#include <bloblist.h>
#include <dm.h>
* Taken from coreboot itss.c
*/
+#include <common.h>
#include <dm.h>
#include <dt-structs.h>
#include <irq.h>
* Copyright (c) 2016 Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
* Some code from coreboot lpss.c
*/
+#include <common.h>
#include <dm.h>
#include <pci.h>
#include <asm/io.h>
* Copyright (C) 2011 The Chromium OS Authors. All rights reserved.
*/
+#include <common.h>
#include <log.h>
#include <asm/arch/me.h>
* Microcode update for Intel PIII and later CPUs
*/
+#include <common.h>
#include <errno.h>
#include <fdtdec.h>
#include <log.h>
#define LOG_CATEGORY UCLASS_RAM
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <init.h>
#include <log.h>
#include <spl.h>
#include <syscon.h>
-#include <time.h>
#include <asm/cpu.h>
#include <asm/global_data.h>
#include <asm/gpio.h>
#include <asm/intel_regs.h>
+#include <asm/mrc_common.h>
#include <asm/pch_common.h>
#include <asm/post.h>
#include <asm/arch/me.h>
#define LOG_CATEGORY UCLASS_P2SB
+#include <common.h>
#include <dm.h>
#include <dt-structs.h>
#include <log.h>
* Copyright (c) 2016 Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <asm/pch_common.h>
* Copyright (C) 2012 Google Inc.
*/
+#include <common.h>
#include <log.h>
#include <asm/cpu.h>
#include <asm/pci.h>
#include <asm/report_platform.h>
#include <asm/arch/pch.h>
-#include <linux/string.h>
static void report_cpu_info(void)
{
* Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <asm/ioapic.h>
* Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
/*
* Copyright (C) 2014 Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
* Copyright (C) 2011 Google Inc.
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <errno.h>
* Copyright (C) 2011 The Chromium OS Authors. All rights reserved.
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
* Copyright (C) 2016, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <fdtdec.h>
#include <log.h>
#include <asm/fsp1/fsp_support.h>
* Copyright (C) 2016, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <init.h>
#include <asm/post.h>
#include <asm/processor.h>
-#include <asm/u-boot-x86.h>
int arch_cpu_init(void)
{
* Copyright (C) 2008-2009 coresystems GmbH
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
* Copyright (C) 2011 The Chromium Authors
*/
+#include <common.h>
#include <cpu.h>
#include <dm.h>
#include <fdtdec.h>
* Copyright (C) 2011 The Chromium Authors
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <asm/global_data.h>
* Copyright (C) 2008-2009 coresystems GmbH
*/
+#include <common.h>
#include <ahci.h>
#include <dm.h>
#include <fdtdec.h>
#define LOG_CATEGORY UCLASS_RAM
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
* Copyright (c) 2016 Google, Inc
*/
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
* Copyright (C) 2014 Google, Inc
*/
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <asm/lapic.h>
* Based on code from the coreboot file of the same name
*/
+#include <common.h>
#include <cpu.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
#include <malloc.h>
#include <qfw.h>
-#include <time.h>
#include <asm/atomic.h>
#include <asm/cpu.h>
#include <asm/global_data.h>
* since the MTRR registers are sometimes in flux.
*/
+#include <common.h>
#include <cpu_func.h>
#include <log.h>
#include <sort.h>
* Daniel Engström, Omicron Ceti AB, <daniel@omicron.se>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
* Copyright (C) 2015, Miao Yan <yanmiaobest@gmail.com>
*/
+#include <common.h>
#include <cpu.h>
#include <dm.h>
#include <errno.h>
* Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/post.h>
* (C) Copyright 2019 Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <env_internal.h>
#include <malloc.h>
#include <asm/e820.h>
* Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <cpu_func.h>
#include <init.h>
#include <pci.h>
#include <asm/processor.h>
#include <asm/arch/device.h>
#include <asm/arch/qemu.h>
-#include <asm/u-boot-x86.h>
static bool i440fx;
* Copyright (C) 2015 Google, Inc
*/
+#include <common.h>
#include <cpu.h>
#include <dm.h>
#include <malloc.h>
* Copyright (C) 2016, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <mapmem.h>
#include <acpi/acpi_table.h>
#include <asm/processor.h>
#include <asm/tables.h>
#include <asm/arch/global_nvs.h>
#include <asm/arch/iomap.h>
-#include <linux/string.h>
static int quark_write_fadt(struct acpi_ctx *ctx,
const struct acpi_writer *entry)
* Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <cpu_func.h>
#include <errno.h>
#include <fdtdec.h>
* QuarkSocPkg/QuarkNorthCluster/MemoryInit/Pei
*/
+#include <common.h>
#include <asm/arch/mrc.h>
#include <asm/arch/msg_port.h>
#include "mrc_util.h"
* DRAM unit configuration based on Valleyview MRC.
*/
+#include <common.h>
#include <asm/arch/mrc.h>
#include <asm/arch/msg_port.h>
-#include <asm/u-boot-x86.h>
#include "mrc_util.h"
#include "smc.h"
* QuarkSocPkg/QuarkNorthCluster/MemoryInit/Pei
*/
+#include <common.h>
#include <hang.h>
#include <asm/arch/device.h>
#include <asm/arch/mrc.h>
#include <asm/arch/msg_port.h>
#include <asm/arch/quark.h>
-#include <asm/u-boot-x86.h>
#include "mrc_util.h"
#include "hte.h"
#include "smc.h"
* Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <asm/arch/device.h>
#include <asm/arch/msg_port.h>
#include <asm/arch/quark.h>
* Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <cpu_func.h>
#include <event.h>
#include <init.h>
#include <asm/arch/device.h>
#include <asm/arch/msg_port.h>
#include <asm/arch/quark.h>
-#include <asm/u-boot-x86.h>
#include <linux/delay.h>
static void quark_setup_mtrr(void)
* QuarkSocPkg/QuarkNorthCluster/MemoryInit/Pei
*/
+#include <common.h>
#include <pci.h>
#include <asm/arch/device.h>
#include <asm/arch/mrc.h>
#include <asm/arch/msg_port.h>
-#include <asm/u-boot-x86.h>
-#include <linux/string.h>
#include "mrc_util.h"
#include "hte.h"
#include "smc.h"
* Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <asm/fsp1/fsp_support.h>
void fsp_update_configs(struct fsp_config_data *config,
* Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <init.h>
#include <dm/device-internal.h>
* Copyright (C) 2019 Intel Corporation <www.intel.com>
*/
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <linux/sizes.h>
* Copyright (C) 2019 Intel Corporation <www.intel.com>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <ns16550.h>
* Copyright (C) 2019 Intel Corporation <www.intel.com>
*/
+#include <common.h>
#include <cpu_func.h>
#include <init.h>
#include <log.h>
* Partially based on acpi.c for other x86 platforms
*/
+#include <common.h>
#include <cpu.h>
#include <dm.h>
#include <mapmem.h>
* Copyright (c) 2018 Emlid Limited
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <dm/pinctrl.h>
* Copyright (c) 2017 Intel Corporation
*/
+#include <common.h>
#include <init.h>
#include <log.h>
#include <asm/e820.h>
* Reset driver for tangier processor
*/
+#include <common.h>
#include <dm.h>
#include <sysreset.h>
#include <asm/scu.h>
* Copyright (c) 2017 Intel Corporation
*/
+#include <common.h>
#include <cpu_func.h>
#include <init.h>
#include <asm/u-boot-x86.h>
* Copyright (C) 2011 The Chromium Authors.
*/
+#include <common.h>
#include <log.h>
#include <asm/cpu.h>
#include <asm/global_data.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <cpu_func.h>
#include <debug_uart.h>
#include <init.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <irq_func.h>
#include <asm/processor-flags.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <init.h>
DECLARE_GLOBAL_DATA_PTR;
#ifndef _MRC_H_
#define _MRC_H_
-#include <linux/types.h>
-
#define MRC_VERSION 0x0111
/* architectural definitions */
#ifndef __ASSEMBLY__
-#include <linux/types.h>
-
/**
* msg_port_setup - set up the message port control register
*
#ifndef __ASSEMBLY__
-#include <linux/types.h>
-
/* variable range MTRR usage */
enum {
MTRR_VAR_ROM,
#define _COREBOOT_SYSINFO_H
#include <asm/coreboot_tables.h>
-#include <linux/types.h>
/* Maximum number of memory range definitions */
#define SYSINFO_MAX_MEM_RANGES 32
#ifndef _COREBOOT_TABLES_H
#define _COREBOOT_TABLES_H
-#include <linux/kernel.h>
-#include <linux/types.h>
-
struct timestamp_entry {
u32 entry_id;
u64 entry_stamp;
#ifndef __EARLY_CMOS_H
#define __EARLY_CMOS_H
-#include <linux/types.h>
-
/* CMOS actually resides in the RTC SRAM */
#define CMOS_IO_PORT 0x70
#include <linux/types.h>
#include <asm/processor.h>
#include <asm/mrccache.h>
-#include <asm/u-boot.h>
enum pei_boot_mode_t {
PEI_BOOT_NONE = 0,
#ifndef __x86_asm_handoff_h
#define __x86_asm_handoff_h
-#include <linux/types.h>
-
/**
* struct arch_spl_handoff - architecture-specific handoff info
*
#define __ASM_ME_COMMON_H
#include <linux/compiler.h>
-#include <linux/string.h>
#include <linux/types.h>
#include <pci.h>
#include <asm/atomic.h>
#include <asm/cache.h>
#include <linux/bitops.h>
-#include <linux/errno.h>
struct udevice;
* Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <log.h>
#include <acpi/acpi_table.h>
#include <asm/io.h>
#define LOG_CATEGORY LOGC_ACPI
+#include <common.h>
#include <binman.h>
#include <dm.h>
#include <log.h>
* Copyright (C) 2017, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <acpi/acpi_s3.h>
#include <acpi/acpi_table.h>
#include <asm/acpi.h>
#define LOG_CATEGORY LOGC_ACPI
+#include <common.h>
#include <bloblist.h>
#include <cpu.h>
#include <dm.h>
* Copyright (C) 2020 Google LLC
*/
+#include <common.h>
#include <acpi/acpigen.h>
#include <acpi/acpi_table.h>
#include <asm/acpigen.h>
* #defines from the assembly-language output.
*/
+#include <common.h>
#include <asm/global_data.h>
#include <linux/kbuild.h>
* Copyright 2021 Google LLC
*/
+#include <common.h>
#include <efi.h>
#include <init.h>
#include <asm/cpu.h>
* Copyright (C) 2007 Advanced Micro Devices, Inc.
* Copyright (C) 2009-2010 coresystems GmbH
*/
+#include <common.h>
#include <compiler.h>
#include <bios_emul.h>
#include <irq_func.h>
* Copyright (C) 2007-2009 coresystems GmbH
*/
+#include <common.h>
#include <log.h>
#include <asm/pci.h>
#include "bios_emul.h"
* Copyright (C) 2001 Erik Mouw (J.A.K.Mouw@its.tudelft.nl)
*/
+#include <common.h>
#include <bootm.h>
#include <bootstage.h>
#include <command.h>
* Marius Groeger <mgroeger@sysgo.de>
*/
+#include <common.h>
#include <command.h>
#include <malloc.h>
#include <asm/global_data.h>
* Copyright 2021 Google LLC
*/
+#include <common.h>
#include <asm/cb_sysinfo.h>
#include <asm/e820.h>
-#include <linux/kernel.h>
unsigned int cb_install_e820_map(unsigned int max_entries,
struct e820_entry *entries)
* Copyright (C) 2009 coresystems GmbH
*/
+#include <common.h>
#include <asm/cb_sysinfo.h>
#include <init.h>
#include <mapmem.h>
#include <net.h>
#include <asm/global_data.h>
-#include <linux/errno.h>
DECLARE_GLOBAL_DATA_PTR;
* Copyright (C) 2016, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <malloc.h>
#include <net.h>
#include <vesa.h>
* Copyright 2014 Google Inc.
*/
-#include <linux/types.h>
+#include <common.h>
union overlay64 {
u64 longw;
* Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <efi_loader.h>
#include <asm/e820.h>
#include <asm/global_data.h>
* uclass write ops, that data is stored in little-endian mode.
*/
+#include <common.h>
#include <asm/early_cmos.h>
#include <asm/io.h>
* Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <errno.h>
* Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <handoff.h>
#include <init.h>
#include <log.h>
#define LOG_CATEGORY UCLASS_VIDEO
+#include <common.h>
#include <dm.h>
#include <init.h>
#include <log.h>
* Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <log.h>
#include <asm/fsp/fsp_support.h>
#include <asm/post.h>
* Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <init.h>
* Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <init.h>
#include <asm/fsp/fsp_support.h>
#include <asm/global_data.h>
* Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <log.h>
#include <asm/fsp1/fsp_support.h>
#include <asm/post.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <init.h>
#include <asm/fsp/fsp_support.h>
#define LOG_CATEGORY LOGC_ARCH
+#include <common.h>
#include <handoff.h>
#include <init.h>
#include <log.h>
* Copyright 2019 Google LLC
*/
+#include <common.h>
#include <binman.h>
#include <binman_sym.h>
#include <bootstage.h>
* Mostly taken from coreboot fsp2_0/memory_init.c
*/
+#include <common.h>
#include <binman.h>
#include <bootstage.h>
#include <dm.h>
#define LOG_CATEGORY UCLASS_NORTHBRIDGE
+#include <common.h>
#include <binman.h>
#include <bootstage.h>
#include <dm.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <init.h>
#include <log.h>
* Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <asm/hob.h>
/**
* Daniel Engström, Omicron Ceti AB, <daniel@omicron.se>
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/i8254.h>
#include <asm/ibmpc.h>
-#include <linux/errno.h>
#define TIMER1_VALUE 18 /* 15.6us */
#define BEEP_FREQUENCY_HZ 440
* Programmable Interrupt Controllers.
*/
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <asm/i8259.h>
* Graeme Russ, <graeme.russ@gmail.com>
*/
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <linux/errno.h>
#include <asm/mtrr.h>
-#include <asm/u-boot-x86.h>
DECLARE_GLOBAL_DATA_PTR;
* Daniel Engström
*/
+#include <common.h>
#include <command.h>
#include <irq_func.h>
#include <asm/interrupt.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
UCLASS_DRIVER(lpc) = {
* Adapted from coreboot src/arch/x86/boot/mpspec.c
*/
+#include <common.h>
#include <cpu.h>
#include <dm.h>
#include <errno.h>
#define LOG_CATEGORY UCLASS_RAM
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <dm/root.h>
* Software Foundation.
*/
+#include <common.h>
#include <log.h>
#include <physmem.h>
#include <asm/cpu.h>
* Copyright (C) 2016 Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
* Part of this file is ported from coreboot src/arch/x86/boot/pirq_routing.c
*/
+#include <common.h>
#include <log.h>
#include <pci.h>
#include <asm/global_data.h>
/*
* Copyright (c) 2017 Intel Corporation
*/
+#include <common.h>
#include <dm.h>
#include <regmap.h>
#include <syscon.h>
* From Coreboot src/lib/ramtest.c
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/post.h>
-#include <vsprintf.h>
static void write_phys(unsigned long addr, u32 value)
{
* All rights reserved.
*/
+#include <common.h>
#include <efi.h>
#include <elf.h>
* All rights reserved.
*/
+#include <common.h>
#include <efi.h>
#include <elf.h>
* Marius Groeger <mgroeger@sysgo.de>
*/
+#include <common.h>
#include <log.h>
#include <relocate.h>
#include <asm/global_data.h>
*
* This driver enables IPC channel to SCU.
*/
+#include <common.h>
#include <dm.h>
#include <regmap.h>
#include <syscon.h>
* See https://simplefirmware.org/ for details
*/
+#include <common.h>
#include <cpu.h>
#include <dm.h>
#include <asm/cpu.h>
#define LOG_CATEGORY LOGC_BOOT
+#include <common.h>
#include <cpu_func.h>
#include <debug_uart.h>
#include <dm.h>
#include <asm/processor.h>
#include <asm/qemu.h>
#include <asm/spl.h>
-#include <asm/u-boot-x86.h>
#include <asm-generic/sections.h>
DECLARE_GLOBAL_DATA_PTR;
#define LOG_CATEGORY LOGC_ACPI
+#include <common.h>
#include <bloblist.h>
#include <log.h>
#include <malloc.h>
#define LOG_CATEGORY LOGC_BOOT
+#include <common.h>
#include <debug_uart.h>
#include <dm.h>
#include <hang.h>
#define LOG_CATEGORY LOGC_BOOT
+#include <common.h>
#include <bootm.h>
#include <command.h>
#include <env.h>
* CPU specific code
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <init.h>
#include <vsprintf.h>
* (Note that alloca is a special case and handled in start.S)
*/
+#include <common.h>
#include <command.h>
#include <irq_func.h>
#include <asm/ptrace.h>
#include <asm/string.h>
#include <asm/regs.h>
-#include <vsprintf.h>
typedef void (*handler_t)(struct pt_regs *);
#ifndef _XTENSA_GBL_DATA_H
#define _XTENSA_GBL_DATA_H
-#include <asm/u-boot.h>
-
/* Architecture-specific global data */
struct arch_global_data {
* (C) Copyright 2014 Cadence Design Systems Inc.
*/
+#include <common.h>
#include <bootm.h>
#include <bootstage.h>
#include <command.h>
* (C) Copyright 2014 - 2016 Cadence Design Systems Inc.
*/
+#include <common.h>
#include <cpu_func.h>
#include <asm/cache.h>
* (C) Copyright 2008 - 2013 Tensilica Inc.
*/
+#include <common.h>
#include <clock_legacy.h>
#include <time.h>
#include <asm/global_data.h>
*
*/
-#include <config.h>
+#include <common.h>
#include <bootcount.h>
#include <env.h>
#include <errno.h>
* Bernecker & Rainer Industrieelektronik GmbH - http://www.br-automation.com
*/
+#include <common.h>
#include <asm/arch/sys_proto.h>
#include <asm/arch/hardware.h>
#include <asm/arch/mux.h>
* B&R Industrial Automation GmbH - http://www.br-automation.com/
*
*/
+#include <common.h>
#include <cpu_func.h>
#include <hang.h>
#include <init.h>
* B&R Industrial Automation GmbH - http://www.br-automation.com
*
*/
+#include <common.h>
#include <errno.h>
#include <init.h>
#include <spl.h>
*
*/
+#include <common.h>
#include <asm/arch/sys_proto.h>
#include <asm/arch/hardware.h>
#include <asm/arch/mux.h>
* Bernecker & Rainer Industrieelektronik GmbH - http://www.br-automation.com
*
*/
+#include <common.h>
#include <env.h>
#include <errno.h>
#include <init.h>
* Bernecker & Rainer Industrieelektronik GmbH - http://www.br-automation.com
*/
+#include <common.h>
#include <asm/arch/sys_proto.h>
#include <asm/arch/hardware.h>
#include <asm/arch/mux.h>
* Copyright (C) 2019 Hannes Schmelzer <oe5hpm@oevsv.at>
* B&R Industrial Automation GmbH - http://www.br-automation.com/ *
*/
+#include <common.h>
#include <env.h>
#include <errno.h>
#include <i2c.h>
*/
#include <log.h>
#include <version.h>
+#include <common.h>
#include <env.h>
#include <fdtdec.h>
#include <i2c.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <asm/global_data.h>
#include "asm/m5282.h"
* Copyright (C) 2018 Marek Behún <kabel@kernel.org>
*/
-#include <vsprintf.h>
+#include <common.h>
#include <asm/arch/soc.h>
#include <asm/io.h>
#include <linux/bitops.h>
* Copyright (C) 2018 Marek Behún <kabel@kernel.org>
*/
-#include <config.h>
+#include <common.h>
#include <asm/arch/cpu.h>
#include <asm/arch/soc.h>
#include <net.h>
* Marvell/db-88f6820-gp by Stefan Roese <sr@denx.de>
*/
-#include <config.h>
+#include <common.h>
#include <env.h>
#include <i2c.h>
#include <init.h>
* Copyright (C) 2011 Simon Guinot <sguinot@lacie.com>
*/
+#include <common.h>
#include <i2c.h>
#include <miiphy.h>
* Written-by: Prafulla Wadaskar <prafulla@marvell.com>
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <env.h>
#include <i2c.h>
* Written-by: Prafulla Wadaskar <prafulla@marvell.com>
*/
+#include <common.h>
#include <command.h>
#include <env.h>
#include <init.h>
* Copyright (C) 2016 Stefan Roese <sr@denx.de>
*/
+#include <common.h>
#include <init.h>
#include <miiphy.h>
#include <net.h>
* Copyright (C) 2015 Stefan Roese <sr@denx.de>
*/
-#include <config.h>
+#include <common.h>
#include <i2c.h>
#include <init.h>
#include <miiphy.h>
* Copyright (C) 2015 Stefan Roese <sr@denx.de>
*/
-#include <config.h>
+#include <common.h>
#include <i2c.h>
#include <init.h>
#include <miiphy.h>
* Copyright (C) 2014 Stefan Roese <sr@denx.de>
*/
+#include <common.h>
#include <init.h>
#include <miiphy.h>
#include <net.h>
* Copyright (C) 2015 Stefan Roese <sr@denx.de>
*/
+#include <common.h>
#include <i2c.h>
#include <init.h>
#include <asm/global_data.h>
* Written-by: Siddarth Gore <gores@marvell.com>
*/
+#include <common.h>
#include <init.h>
#include <netdev.h>
#include <asm/arch/cpu.h>
* Written-by: Siddarth Gore <gores@marvell.com>
*/
+#include <common.h>
#include <init.h>
#include <miiphy.h>
#include <net.h>
// SPDX-License-Identifier: GPL-2.0+
-#include <config.h>
+#include <common.h>
#include <asm/global_data.h>
DECLARE_GLOBAL_DATA_PTR;
* Copyright (C) 2016 Stefan Roese <sr@denx.de>
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <dm/device-internal.h>
#include <env.h>
* Copyright (C) 2016 Stefan Roese <sr@denx.de>
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <i2c.h>
#include <init.h>
* https://spdx.org/licenses
*/
+#include <common.h>
#include <dm.h>
#include <malloc.h>
#include <errno.h>
* Written-by: Prafulla Wadaskar <prafulla@marvell.com>
*/
+#include <common.h>
#include <init.h>
#include <miiphy.h>
#include <net.h>
* Written-by: Prafulla Wadaskar <prafulla@marvell.com>
*/
+#include <common.h>
#include <init.h>
#include <netdev.h>
#include <asm/global_data.h>
* Marvell Semiconductor <www.marvell.com>
*/
+#include <common.h>
#include <bootstage.h>
#include <init.h>
#include <netdev.h>
* Marvell Semiconductor <www.marvell.com>
*/
+#include <common.h>
#include <bootstage.h>
#include <init.h>
#include <netdev.h>
* Marvell Semiconductor <www.marvell.com>
*/
+#include <common.h>
#include <init.h>
#include <miiphy.h>
#include <net.h>
* Luka Perkov <luka@openwrt.org>
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <miiphy.h>
#include <net.h>
* Copyright (C) 2015 Phil Sutter <phil@nwl.cc>
*/
+#include <common.h>
#include <command.h>
#include <div64.h>
#include <env.h>
* Copyright (C) 2015 Phil Sutter <phil@nwl.cc>
*/
+#include <common.h>
#include <init.h>
#include <miiphy.h>
#include <asm/global_data.h>
* Copyright 2022 Linaro
*/
+#include <common.h>
#include <dwc3-uboot.h>
#include <efi.h>
#include <efi_loader.h>
* Copyright 2022 Linaro
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <errno.h>
* Copyright 2019-2023 Kococonnector GmbH
*/
+#include <common.h>
#include <errno.h>
#include <linux/libfdt.h>
#include <asm/io.h>
* Copyright 2017-2018 NXP
* Copyright 2019-2023 Kococonnector GmbH
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <spl.h>
#include <init.h>
* Copyright (C) 2019 Oliver Graute <oliver.graute@kococonnector.com>
*/
+#include <common.h>
#include <cpu_func.h>
#include <env.h>
#include <errno.h>
/*
* Copyright 2017-2018 NXP
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <image.h>
#include <init.h>
* Copyright (C) 2016 George McCollister <george.mccollister@gmail.com>
*/
+#include <common.h>
#include <init.h>
#include <asm/fsp1/fsp_support.h>
* Allied Telesis <www.alliedtelesis.com>
*/
+#include <common.h>
#include <init.h>
#include <net.h>
#include <asm/global_data.h>
* Allied Telesis <www.alliedtelesis.com>
*/
+#include <common.h>
#include <init.h>
#include <miiphy.h>
#include <net.h>
* Copyright (C) 2018 Allied Telesis Labs
*/
+#include <common.h>
#include <dm.h>
#include <asm/global_data.h>
#include <asm/gpio.h>
// SPDX-License-Identifier: GPL-2.0+
-#include <config.h>
+#include <common.h>
#include <asm/global_data.h>
DECLARE_GLOBAL_DATA_PTR;
* Copyright (C) 2017 Allied Telesis Labs
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <env.h>
* Copyright (C) 2017 Amarula Solutions
*/
+#include <common.h>
#include <serial.h>
#ifndef CONFIG_TPL_BUILD
* Author: Neil Armstrong <narmstrong@baylibre.com>
*/
+#include <common.h>
#include <dm.h>
#include <env.h>
#include <init.h>
* Author: Vyacheslav Bocharov <adeep@lexina.in>
*/
+#include <common.h>
#include <dm.h>
#include <init.h>
#include <net.h>
*
*/
+#include <common.h>
#include <dm.h>
#include <adc.h>
#include <env.h>
* Copyright (C) 2023 Neil Armstrong <neil.armstrong@linaro.org>
*/
-#include <log.h>
+#include <common.h>
#include <asm/arch/boot.h>
#include <power/regulator.h>
* Author: Neil Armstrong <narmstrong@baylibre.com>
*/
+#include <common.h>
#include <dm.h>
#include <adc.h>
#include <env.h>
* (C) Copyright 2016 Beniamino Galvani <b.galvani@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <env.h>
#include <init.h>
* (C) Copyright 2016 Beniamino Galvani <b.galvani@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <env.h>
#include <init.h>
* Author: Neil Armstrong <narmstrong@baylibre.com>
*/
+#include <common.h>
#include <dm.h>
#include <env.h>
#include <init.h>
* Author: Neil Armstrong <narmstrong@baylibre.com>
*/
+#include <common.h>
#include <dm.h>
#include <env.h>
#include <init.h>
* Author: Neil Armstrong <narmstrong@baylibre.com>
*/
+#include <common.h>
#include <dm.h>
#include <init.h>
#include <net.h>
* Author: Neil Armstrong <narmstrong@baylibre.com>
*/
+#include <common.h>
#include <dm.h>
#include <env.h>
#include <env_internal.h>
* Author: Neil Armstrong <narmstrong@baylibre.com>
*/
+#include <common.h>
#include <dm.h>
#include <env.h>
#include <env_internal.h>
* Author: Neil Armstrong <narmstrong@baylibre.com>
*/
+#include <common.h>
#include <dm.h>
#include <init.h>
#include <net.h>
* Author: Neil Armstrong <narmstrong@baylibre.com>
*/
+#include <common.h>
#include <dm.h>
#include <env_internal.h>
#include <init.h>
* Author: Neil Armstrong <narmstrong@baylibre.com>
*/
+#include <common.h>
#include <dm.h>
#include <env_internal.h>
#include <init.h>
* Author: Fabio Estevam <fabio.estevam@freescale.com>
*/
+#include <common.h>
#include <bmp_layout.h>
#include <command.h>
#include <image.h>
* Copyright (C) 2018 Armadeus Systems
*/
+#include <common.h>
#include <init.h>
#include <asm/arch/sys_proto.h>
#include <asm/gpio.h>
*/
#include <blk.h>
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <env.h>
* Philippe Robin, <philippe.robin@arm.com>
*/
-#include <config.h>
+#include <common.h>
#include <bootstage.h>
#include <cpu_func.h>
#include <dm.h>
* Philippe Robin, <philippe.robin@arm.com>
*/
-#include <config.h>
+#include <common.h>
#include <div64.h>
#include <time.h>
#include <linux/delay.h>
* Usama Arif <usama.arif@arm.com>
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <dm/platform_data/serial_pl01x.h>
#include <asm/armv8/mmu.h>
* ARM Ltd.
* Philippe Robin, <philippe.robin@arm.com>
*/
-#include <config.h>
+#include <common.h>
#include <bootstage.h>
#include <cpu_func.h>
#include <init.h>
* Author: Liviu Dudau <Liviu.Dudau@arm.com>
*/
+#include <common.h>
#include <init.h>
#include <log.h>
#include <asm/io.h>
* David Feng <fenghua@phytium.com.cn>
* Sharma Bhupesh <bhupesh.sharma@freescale.com>
*/
-#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <init.h>
/* Altera/Xilinx FPGA configuration support for the ASTRO "URMEL" board */
+#include <common.h>
#include <console.h>
#include <watchdog.h>
#include <altera.h>
* modified by Wolfgang Wegner <w.wegner@astro-kom.de> for ASTRO 5373l
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <serial.h>
-#include <time.h>
#include <watchdog.h>
#include <command.h>
#include <asm/global_data.h>
* Lead Tech Design <www.leadtechdesign.com>
*/
-#include <config.h>
+#include <common.h>
#include <debug_uart.h>
#include <init.h>
#include <net.h>
* Lead Tech Design <www.leadtechdesign.com>
*/
-#include <config.h>
+#include <common.h>
#include <debug_uart.h>
#include <init.h>
#include <vsprintf.h>
* Lead Tech Design <www.leadtechdesign.com>
*/
-#include <config.h>
+#include <common.h>
#include <debug_uart.h>
#include <init.h>
#include <net.h>
* Lead Tech Design <www.leadtechdesign.com>
*/
-#include <config.h>
+#include <common.h>
#include <debug_uart.h>
#include <init.h>
#include <net.h>
* Josh Wu <josh.wu@atmel.com>
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <net.h>
#include <vsprintf.h>
* Lead Tech Design <www.leadtechdesign.com>
*/
-#include <config.h>
+#include <common.h>
#include <debug_uart.h>
#include <init.h>
#include <vsprintf.h>
* Copyright (C) 2012 Atmel Corporation
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/io.h>
* Wenyou Yang <wenyou.yang@microchip.com>
*/
+#include <common.h>
#include <dm.h>
#include <env.h>
#include <w1.h>
* Author: Tudor Ambarus <tudor.ambarus@microchip.com>
*/
+#include <common.h>
#include <dm.h>
#include <env.h>
#include <net.h>
* Wenyou Yang <wenyou.yang@microchip.com>
*/
+#include <common.h>
#include <dm.h>
+#include <eeprom.h>
#include <env.h>
#include <i2c_eeprom.h>
#include <net.h>
* Wenyou Yang <wenyou.yang@microchip.com>
*/
+#include <common.h>
#include <atmel_lcd.h>
#include <dm.h>
#include <init.h>
* Author: Durai Manickam KR <durai.manickamkr@microchip.com>
*/
+#include <common.h>
#include <debug_uart.h>
#include <fdtdec.h>
#include <init.h>
* Author: Sandeep Sheriker M <sandeep.sheriker@microchip.com>
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/io.h>
* Wenyou.Yang <wenyou.yang@microchip.com>
*/
+#include <common.h>
#include <debug_uart.h>
#include <fdtdec.h>
#include <init.h>
* Author: Nicolas Ferre <nicolas.ferre@microcihp.com>
*/
-#include <config.h>
+#include <common.h>
#include <debug_uart.h>
#include <init.h>
#include <asm/global_data.h>
*
*/
+#include <common.h>
#include <debug_uart.h>
#include <init.h>
#include <asm/global_data.h>
* Eugen Hristev <eugen.hristev@microchip.com>
*/
-#include <config.h>
+#include <common.h>
#include <debug_uart.h>
#include <init.h>
#include <asm/global_data.h>
* Wenyou Yang <wenyou.yang@microchip.com>
*/
-#include <config.h>
+#include <common.h>
#include <debug_uart.h>
#include <dm.h>
#include <i2c.h>
* Wenyou.Yang <wenyou.yang@atmel.com>
*/
+#include <common.h>
#include <debug_uart.h>
#include <init.h>
#include <asm/global_data.h>
* Bo Shen <voice.shen@atmel.com>
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/io.h>
* Bo Shen <voice.shen@atmel.com>
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/io.h>
* Bo Shen <voice.shen@atmel.com>
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/io.h>
* Bo Shen <voice.shen@atmel.com>
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/io.h>
*
*/
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/io.h>
* Eugen Hristev <eugen.hristev@microchip.com>
*/
-#include <config.h>
+#include <common.h>
#include <debug_uart.h>
#include <init.h>
#include <asm/global_data.h>
* Avionic Design GmbH <www.avionic-design.de>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <asm/arch/pinmux.h>
* Avionic Design GmbH <www.avionic-design.de>
*/
+#include <common.h>
#include <ns16550.h>
#include <asm/io.h>
#include <asm/gpio.h>
* Svyatoslav Ryhel <clamor95@gmail.com>
*/
+#include <common.h>
#include <asm/arch-tegra/tegra_i2c.h>
#include <linux/delay.h>
* Copyright 2020 Compass Electronics Group, LLC
*/
+#include <common.h>
#include <asm/global_data.h>
#include <asm/io.h>
*/
#include <linux/kernel.h>
+#include <common.h>
#include <asm/arch/ddr.h>
#include <asm/arch/lpddr4_define.h>
// SPDX-License-Identifier: GPL-2.0+
+#include <common.h>
#include <cpu_func.h>
#include <hang.h>
#include <init.h>
* Copyright 2020 Compass Electronics Group, LLC
*/
+#include <common.h>
#include <hang.h>
#include <image.h>
#include <init.h>
// SPDX-License-Identifier: GPL-2.0+
/* Copyright 2023 Logic PD, Inc dba Beacon EmbeddedWorks */
+#include <common.h>
#include <init.h>
#include <miiphy.h>
#include <asm/arch/sys_proto.h>
*
*/
+#include <common.h>
#include <hang.h>
#include <init.h>
#include <log.h>
* Syed Mohammed Khasim <khasim@ti.com>
*
*/
-#include <config.h>
+#include <common.h>
#include <bootstage.h>
#include <dm.h>
#include <env.h>
* Copyright (c) 2010 Texas Instruments, Inc.
* Jason Kridner <jkridner@beagleboard.org>
*/
+#include <common.h>
#include <status_led.h>
#include <asm/arch/cpu.h>
#include <asm/io.h>
* Copyright (C) 2011 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <cpu_func.h>
#include <init.h>
#include <asm/arch/sys_proto.h>
* Copyright (C) 2012 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <asm/arch/iomux-mx53.h>
#include <asm/gpio.h>
#include <asm/mach-imx/video.h>
* Author: Ryan Mallon <ryan@bluewatersys.com>
*/
-#include <config.h>
+#include <common.h>
#include <atmel_lcd.h>
#include <atmel_lcdc.h>
#include <atmel_mci.h>
* Copyright (c) 2022 DENX Software Engineering GmbH, Philip Oberfichtner <pro@denx.de>
*/
-#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <bootstage.h>
#include <dm.h>
* Copyright (C) 2018 Robert Bosch Power Tools GmbH
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <env_internal.h>
#include <errno.h>
* Copyright (C) 2018 Robert Bosch Power Tools GmbH
*/
+#include <common.h>
#include <i2c.h>
#include <asm/arch/hardware.h>
#include <asm/arch/mux.h>
* Copyright (C) 2011, Texas Instruments, Incorporated - https://www.ti.com/
*/
-#include <config.h>
+#include <common.h>
#include <bootstage.h>
#include <cpu_func.h>
#include <env.h>
* Copyright (C) 2011 Texas Instruments Incorporated - https://www.ti.com/
*/
+#include <common.h>
#include <hang.h>
#include <asm/arch/sys_proto.h>
#include <asm/arch/hardware.h>
* Copyright (C) 2013, Boundary Devices <info@boundarydevices.com>
*/
+#include <common.h>
#include <command.h>
#include <env.h>
#include <init.h>
* (C) Copyright 2022 Broadcom Ltd.
*/
+#include <common.h>
#include <fdtdec.h>
int board_init(void)
* Copyright (C) 2023 Linus Walleij <linus.walleij@linaro.org>
*/
+#include <common.h>
#include <dm.h>
#include <init.h>
#include <log.h>
*
*/
+#include <common.h>
#include <fdt_support.h>
-#include <linux/errno.h>
#include <asm/io.h>
#include <asm/gic-v3.h>
#include <asm/global_data.h>
#include <time.h>
#include <asm/global_data.h>
#include <linux/types.h>
+#include <common.h>
#include <env.h>
#include <asm/io.h>
#include <asm/bootm.h>
#include <asm/mach-imx/boot_mode.h>
#include <asm/global_data.h>
#include <asm/gpio.h>
+#include <common.h>
#include <env.h>
#include <linux/sizes.h>
// SPDX-License-Identifier: GPL-2.0+
+#include <common.h>
#include <cpu_func.h>
#include <hang.h>
#include <init.h>
* Copyright 2021 Collabora Ltd.
*/
+#include <common.h>
#include <asm/arch/sys_proto.h>
#include <env.h>
* Copyright (C) 2018 Jagan Teki <jagan@amarulasolutions.com>
*/
+#include <common.h>
#include <init.h>
#include <asm/arch/sys_proto.h>
#include <asm/global_data.h>
* Copyright (C) 2018 Jagan Teki <jagan@amarulasolutions.com>
*/
+#include <common.h>
#include <init.h>
#include <serial.h>
#include <spl.h>
* Marvell Semiconductor <www.marvell.com>
*/
+#include <common.h>
#include <bootstage.h>
#include <button.h>
#include <command.h>
* (C) Copyright 2014 - 2016 Cadence Design Systems Inc.
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <command.h>
#include <dm.h>
* Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/arch/at91sam9_smc.h>
#include <asm/arch/at91_common.h>
* (C) Copyright 2014, Cavium Inc.
**/
-#include <config.h>
+#include <common.h>
#include <command.h>
-#include <vsprintf.h>
#include <asm/cache.h>
#include <asm/io.h>
#include <asm/ptrace.h>
* (C) Copyright 2014, Cavium Inc.
**/
-#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <init.h>
* NVIDIA Corporation <www.nvidia.com>
*/
-#include <linux/kernel.h>
+#include <common.h>
#include <power/as3722.h>
#include <asm/arch/gpio.h>
* (C) Copyright 2016 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <init.h>
#include <asm/gpio.h>
* Copyright 2018 NXP
*/
+#include <common.h>
#include <env.h>
#include <init.h>
#include <miiphy.h>
* Copyright 2019 NXP
*/
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <hang.h>
* Written-by: Prafulla Wadaskar <prafulla@marvell.com>
*/
+#include <common.h>
#include <init.h>
#include <log.h>
#include <netdev.h>
* Written-by: Prafulla Wadaskar <prafulla@marvell.com>
*/
+#include <common.h>
#include <netdev.h>
#include <asm/arch/cpu.h>
#include <asm/arch/soc.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/immap.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <console.h>
#include <cpu_func.h>
#include <flash.h>
#include <irq_func.h>
-#include <stdio.h>
-#include <time.h>
#include <uuid.h>
-#include <vsprintf.h>
#include <linux/delay.h>
-#include <linux/string.h>
#define PHYS_FLASH_1 CFG_SYS_FLASH_BASE
#define FLASH_BANK_SIZE 0x200000
* Author: Uri Mashiach <uri.mashiach@compulab.co.il>
*/
-#include <config.h>
+#include <common.h>
#include <env.h>
#include <init.h>
#include <mmc.h>
* Author: Uri Mashiach <uri.mashiach@compulab.co.il>
*/
+#include <common.h>
#include <fsl_esdhc_imx.h>
#include <asm-generic/gpio.h>
#include "common.h"
* Author: Uri Mashiach <uri.mashiach@compulab.co.il>
*/
-#include <linux/kernel.h>
+#include <common.h>
#include <asm/mach-imx/iomux-v3.h>
#include <asm/arch-mx7/mx7-pins.h>
* Author: Uri Mashiach <uri.mashiach@compulab.co.il>
*/
+#include <common.h>
#include <hang.h>
#include <init.h>
#include <spl.h>
* Author: Nikita Kiryanov <nikita@compulab.co.il>
*/
-#include <config.h>
+#include <common.h>
#include <ahci.h>
#include <dm.h>
#include <dwc_ahsata.h>
* Author: Nikita Kiryanov <nikita@compulab.co.il>
*/
+#include <common.h>
#include <asm/arch/sys_proto.h>
#include <asm/gpio.h>
#include <asm/mach-imx/spi.h>
* Author: Nikita Kiryanov <nikita@compulab.co.il>
*/
+#include <common.h>
#include <clock_legacy.h>
#include <hang.h>
#include <init.h>
* Copyright (C) 2015 Compulab, Ltd.
*/
-#include <config.h>
+#include <common.h>
#include <i2c.h>
#include <miiphy.h>
#include <cpsw.h>
* Copyright (C) 2015 Compulab, Ltd.
*/
+#include <common.h>
#include <asm/arch/sys_proto.h>
#include <asm/arch/mux.h>
#include "board.h"
* Copyright (C) 2016 Compulab, Ltd.
*/
-#include <config.h>
+#include <common.h>
#include <hang.h>
#include <init.h>
#include <spl.h>
* Authors: Igor Grinberg <grinberg@compulab.co.il>
*/
+#include <common.h>
#include <malloc.h>
#include <asm/bootm.h>
#include <asm/gpio.h>
* Igor Grinberg <grinberg@compulab.co.il>
*/
+#include <common.h>
+#include <eeprom.h>
#include <i2c.h>
-#include <vsprintf.h>
#include <eeprom_layout.h>
#include <eeprom_field.h>
#include <asm/setup.h>
#include <linux/kernel.h>
-#include <linux/string.h>
#include "eeprom.h"
#define EEPROM_LAYOUT_VER_OFFSET 44
* Authors: Igor Grinberg <grinberg@compulab.co.il>
*/
+#include <common.h>
#include <netdev.h>
#include <linux/delay.h>
*
*/
+#include <common.h>
#include <spl.h>
#include <asm/io.h>
#include <errno.h>
*/
#include <linux/kernel.h>
+#include <common.h>
#include <asm/arch/ddr.h>
#include <asm/arch/lpddr4_define.h>
*/
#include <linux/kernel.h>
+#include <common.h>
#include <asm/arch/ddr.h>
#include <asm/arch/lpddr4_define.h>
*/
#include <linux/kernel.h>
+#include <common.h>
#include <asm/arch/ddr.h>
#include <asm/arch/lpddr4_define.h>
*/
#include <linux/kernel.h>
+#include <common.h>
#include <asm/arch/ddr.h>
#include <asm/arch/lpddr4_define.h>
// SPDX-License-Identifier: GPL-2.0+
/* (C) Copyright 2019 CompuLab, Ltd. <www.compulab.co.il> */
-#include <config.h>
+#include <common.h>
#include <i2c.h>
#include <linux/kernel.h>
#include <asm/arch/imx8mq_pins.h>
* Copyright 2020 Linaro
*/
+#include <common.h>
#include <efi.h>
#include <efi_loader.h>
#include <env.h>
* Copyright 2020 Linaro
*/
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <hang.h>
* NVIDIA Corporation <www.nvidia.com>
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/tegra.h>
#include <asm/arch/clock.h>
* Copyright (C) 2021-2023 Conclusive Engineering Sp. z o. o.
*/
-#include <config.h>
+#include <common.h>
#include <debug_uart.h>
#include <init.h>
#include <env.h>
* Copyright 2018 congatec AG
* Copyright (C) 2019 Oliver Graute <oliver.graute@kococonnector.com>
*/
-#include <config.h>
+#include <common.h>
#include <errno.h>
#include <linux/libfdt.h>
#include <fsl_esdhc.h>
*
*/
+#include <common.h>
#include <dm.h>
#include <fdt_support.h>
#include <init.h>
* Copyright 2018 NXP
*
*/
-
-#include <vsprintf.h>
+#include <common.h>
#include <linux/errno.h>
#include <asm/io.h>
#include <env.h>
* Copyright (C) 2016 Stefan Roese <sr@denx.de>
*/
+#include <common.h>
#include <i2c.h>
#include <init.h>
#include <winbond_w83627.h>
* Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <splash.h>
#include <init.h>
#include <smbios.h>
* (C) Copyright 2020 - Cortina Access Inc.
*
*/
-#include <config.h>
+#include <common.h>
#include <event.h>
#include <init.h>
#include <malloc.h>
#include <dm.h>
#include <env.h>
#include <env_internal.h>
+#include <eeprom.h>
#include <fdt_support.h>
#include <hang.h>
#include <ioports.h>
* Written-by: Prafulla Wadaskar <prafulla@marvell.com>
*/
+#include <common.h>
#include <init.h>
#include <log.h>
#include <miiphy.h>
* Copyright 2022 Marek Vasut <marex@denx.de>
*/
+#include <common.h>
#include <asm-generic/gpio.h>
#include <asm-generic/sections.h>
#include <asm/arch/clock.h>
* Copyright 2022 Marek Vasut <marex@denx.de>
*/
+#include <common.h>
#include <asm/arch/clock.h>
#include <asm/arch/imx8mm_pins.h>
#include <asm/io.h>
* Copyright 2022 Marek Vasut <marex@denx.de>
*/
+#include <common.h>
#include <hang.h>
#include <image.h>
#include <init.h>
* Copyright 2022 Marek Vasut <marex@denx.de>
*/
+#include <common.h>
#include <asm/arch/clock.h>
#include <asm/arch/imx8mp_pins.h>
#include <asm/io.h>
* Copyright 2022 Marek Vasut <marex@denx.de>
*/
+#include <common.h>
#include <hang.h>
#include <image.h>
#include <init.h>
* Copyright (C) 2007 Sergey Kubushyn <ksi@koi8.net>
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <env.h>
#include <i2c.h>
* Copyright (C) 2007 Sergey Kubushyn <ksi@koi8.net>
*/
-#include <config.h>
+#include <common.h>
#include <env.h>
#include <i2c.h>
#include <init.h>
* Copyright (C) 2016 Stefan Roese <sr@denx.de>
*/
+#include <common.h>
#include <init.h>
#include <log.h>
#include <nuvoton_nct6102d.h>
* Copyright 2022 DENX Software Engineering GmbH, Philip Oberfichtner <pro@denx.de>
*/
+#include <common.h>
#include <dm.h>
#include <i2c_eeprom.h>
#include <net.h>
* Copyright 2022 DENX Software Engineering GmbH, Philip Oberfichtner <pro@denx.de>
*/
-#include <linux/errno.h>
#include <asm/arch/imx-regs.h>
#include <asm/arch/sys_proto.h>
+#include <common.h>
#include <net.h>
#include "dh_imx.h"
* Copyright (C) 2017 Marek Vasut <marex@denx.de>
*/
+#include <common.h>
#include <dm.h>
+#include <eeprom.h>
#include <image.h>
#include <init.h>
#include <net.h>
* Copyright (C) 2017 Marek Vasut <marex@denx.de>
*/
+#include <common.h>
#include <cpu_func.h>
#include <init.h>
#include <asm/arch/clock.h>
* Copyright 2022 Marek Vasut <marex@denx.de>
*/
+#include <common.h>
#include <asm/io.h>
#include <asm-generic/gpio.h>
* Copyright 2022 Marek Vasut <marex@denx.de>
*/
+#include <common.h>
#include <asm/arch/clock.h>
#include <asm/arch/ddr.h>
#include <asm/arch/sys_proto.h>
* Copyright 2022 Marek Vasut <marex@denx.de>
*/
+#include <common.h>
#include <hang.h>
#include <image.h>
#include <init.h>
* Copyright (C) 2018, STMicroelectronics - All Rights Reserved
*/
+#include <common.h>
#include <adc.h>
#include <log.h>
#include <net.h>
*/
#include <init.h>
-#include <config.h>
+#include <common.h>
#include <asm/io.h>
#include <asm/global_data.h>
* Copyright (C) 2016 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/io.h>
* Copyright (C) 2011, Texas Instruments, Incorporated - https://www.ti.com/
*/
-#include <config.h>
+#include <common.h>
#include <env.h>
#include <errno.h>
#include <init.h>
* Copyright (C) 2011 Texas Instruments Incorporated - https://www.ti.com/
*/
-#include <config.h>
+#include <common.h>
#include <i2c.h>
#include <asm/arch/sys_proto.h>
#include <asm/arch/hardware.h>
* Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <init.h>
#include <usb.h>
* http://www.ethernut.de/
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <net.h>
#include <netdev.h>
* For additional information visit the project home page at
* http://www.ethernut.de/
*/
+#include <common.h>
#include <command.h>
-#include <vsprintf.h>
#include <asm/arch/at91sam9260.h>
#include <asm/arch/at91_common.h>
#include <asm/arch/gpio.h>
* Authors: Andy Yan <andy.yan@rock-chips.com>
*/
+#include <common.h>
#include <init.h>
#include <syscon.h>
#include <asm/global_data.h>
* Copyright (C) 2013 Jon Nettleton <jon.nettleton@gmail.com>.
*/
+#include <common.h>
#include <init.h>
#include <net.h>
#include <asm/arch/clock.h>
* Copyright (c) 2020 Linaro Limited
*/
+#include <common.h>
#include <dfu.h>
#include <env.h>
#include <memalign.h>
* Copyright (c) 2020 Linaro Limited
*/
+#include <common.h>
#include <dm.h>
#include <mtd.h>
* Copyright (c) 2017 Tuomas Tynkkynen
*/
-#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <efi.h>
* Copyright (C) 2021, Bin Meng <bmeng.cn@gmail.com>
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <dm.h>
* Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm/ofnode.h>
#include <env.h>
* Author: Jagan Teki <jagan@amarulasolutions.com>
*/
+#include <common.h>
#include <command.h>
#include <env.h>
#include <hang.h>
* Author: Jagan Teki <jagan@amarulasolutions.com>
*/
+#include <common.h>
#include <image.h>
#include <init.h>
#include <serial.h>
* Author: Jagan Teki <jagan@amarulasolutions.com>
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/gpio.h>
* Author: Jagan Teki <jagan@amarulasolutions.com>
*/
+#include <common.h>
#include <mmc.h>
#include <asm/io.h>
* Author: Jagan Teki <jagan@amarulasolutions.com>
*/
+#include <common.h>
#include <miiphy.h>
#include <netdev.h>
* Align with uboot-imx_v2018.03_4.14.78_1.0.0_ga
*/
+#include <common.h>
#include <asm/arch/ddr.h>
#include <asm/arch/lpddr4_define.h>
* Author: Jagan Teki <jagan@amarulasolutions.com>
*/
+#include <common.h>
#include <hang.h>
#include <init.h>
#include <log.h>
* Jagan Teki <jagan@amarulasolutions.com>
*/
+#include <common.h>
#include <env.h>
#include <errno.h>
#include <init.h>
* Jagan Teki <jagan@amarulasolutions.com>
*/
+#include <common.h>
#include <hang.h>
#include <init.h>
#include <log.h>
* Copyright (C) 2020 Amarula Solutions(India)
*/
-#include <linux/types.h>
+#include <common.h>
/* board early initialisation in board_f: need to use global variable */
static u32 opp_voltage_mv __section(".data");
* Author: Jagan Teki <jagan@amarulasolutions.com>
*/
+#include <common.h>
#include <env.h>
#include <env_internal.h>
#include <syscon.h>
* esd electronic system design gmbh <www.esd.eu>
*/
-#include <config.h>
+#include <common.h>
#include <env.h>
#include <init.h>
#include <net.h>
* (C) Copyright 2015 Google, Inc
*/
+#include <common.h>
#include <hang.h>
#include <led.h>
#include <log.h>
* (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <adc.h>
#include <asm/arch-rockchip/grf_rk3308.h>
#include <asm/arch-rockchip/hardware.h>
* (C) Copyright 2016 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
#include <env.h>
#include <log.h>
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
-#include <linux/types.h>
/*
* CADMUS Board System Registers
* Copyright 2004 Freescale Semiconductor.
*/
+#include <common.h>
#include <linux/libfdt.h>
#include <fdt_support.h>
#include "cadmus.h"
* Copyright 2006 Freescale Semiconductor.
*/
+#include <common.h>
#include <pci.h>
/* Config the VIA chip */
* Copyright 2015 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <command.h>
#include <env.h>
#include <fsl_validate.h>
-#include <vsprintf.h>
int do_esbc_halt(struct cmd_tbl *cmdtp, int flag, int argc,
char *const argv[])
*
*/
+#include <common.h>
#include <command.h>
#include <i2c.h>
#include <asm/global_data.h>
* Copyright 2011-2015 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <linux/libfdt.h>
#include <linux/libfdt_env.h>
#include <fdt_support.h>
* Copyright 2022 NXP
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <env.h>
#include <init.h>
* Copyright 2021-2022 NXP
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <fsl_validate.h>
#include <fsl_secboot_err.h>
* Copyright 2021 Microsoft Corporation
*/
-#include <stdio.h>
+#include <common.h>
#include <i2c.h>
#include "i2c_common.h"
* Copyright 2021 Microsoft Corporation
*/
-#include <config.h>
+#include <common.h>
#include <i2c.h>
-#include <stdio.h>
#include "i2c_common.h"
#include "i2c_mux.h"
* Copyright 2010-2011 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <log.h>
#include <asm/io.h>
* Copyright 2014 Freescale Semiconductor
*/
-#include <config.h>
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/ls102xa_stream_id.h>
* Hou Zhiqiang <Zhiqiang.Hou@freescale.com>
*/
+#include <common.h>
#include <errno.h>
#include <i2c.h>
#include <log.h>
* Copyright 2018-2022 NXP
*/
+#include <common.h>
#include <command.h>
-#include <vsprintf.h>
#include <asm/arch/sys_proto.h>
#include <linux/errno.h>
#include <asm/io.h>
* boot from the alternate bank.
*/
+#include <common.h>
#include <command.h>
#include <asm/io.h>
* Copyright 2014 Freescale Semiconductor
*/
-#include <config.h>
+#include <common.h>
#include <log.h>
#include <asm/cache.h>
#include <asm/io.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <asm/mmu.h>
-#include <asm/ppc.h>
struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 0 - for temp stack in cache */
* Copyright 2014 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <errno.h>
#include <power/pmic.h>
#include <power/pfuze100_pmic.h>
* This file provides support for the QIXIS of some Freescale reference boards.
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <asm/io.h>
#include <linux/compiler.h>
* Copyright 2011 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <mmc.h>
#include <malloc.h>
* Timur Tabi (timur@freescale.com)
*/
+#include <common.h>
#include <command.h>
#include <env.h>
#include <i2c.h>
* Copyright 2020 Stephen Carlson <stcarlso@linux.microsoft.com>
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <env.h>
#include <i2c.h>
#include <irq_func.h>
#include <log.h>
-#include <vsprintf.h>
#include <asm/io.h>
#ifdef CONFIG_FSL_LSCH2
#include <asm/arch/immap_lsch2.h>
* Copyright 2018 NXP
*/
+#include <common.h>
#include <env.h>
#include <init.h>
#include <miiphy.h>
* Copyright 2019, 2021 NXP
*/
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <hang.h>
* Copyright 2019 NXP
*/
+#include <common.h>
#include <env.h>
#include <init.h>
#include <asm/global_data.h>
*
*/
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <hang.h>
*
*/
+#include <common.h>
#include <hang.h>
#include <init.h>
#include <log.h>
* Copyright 2018 NXP
*/
+#include <common.h>
#include <env.h>
#include <init.h>
#include <malloc.h>
*/
#include <linux/kernel.h>
+#include <common.h>
#include <asm/arch/ddr.h>
#include <asm/arch/lpddr4_define.h>
*/
#include <linux/kernel.h>
+#include <common.h>
#include <asm/arch/ddr.h>
#include <asm/arch/lpddr4_define.h>
*
*/
-#include <config.h>
+#include <common.h>
#include <hang.h>
#include <image.h>
#include <init.h>
* Copyright 2018 NXP
*/
+#include <common.h>
#include <cpu_func.h>
#include <env.h>
#include <errno.h>
*
*/
+#include <common.h>
#include <dm.h>
#include <image.h>
#include <init.h>
* Copyright 2018 NXP
*/
+#include <common.h>
#include <cpu_func.h>
#include <env.h>
#include <errno.h>
*
*/
+#include <common.h>
#include <dm.h>
#include <image.h>
#include <init.h>
* Copyright 2020 NXP
*/
+#include <common.h>
#include <miiphy.h>
#include <netdev.h>
#include <asm/arch/imx8ulp-pins.h>
* Copyright 2021 NXP
*/
+#include <common.h>
#include <init.h>
#include <spl.h>
#include <asm/io.h>
* Copyright 2022 NXP
*/
+#include <common.h>
#include <env.h>
#include <init.h>
#include <miiphy.h>
* Copyright 2022 NXP
*/
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <hang.h>
* Author(s): Giulio Benetti <giulio.benetti@benettiengineering.com>
*/
+#include <common.h>
#include <dm.h>
#include <init.h>
#include <log.h>
* Author(s): Giulio Benetti <giulio.benetti@benettiengineering.com>
*/
+#include <common.h>
#include <dm.h>
#include <init.h>
#include <log.h>
* Author(s): Giulio Benetti <giulio.benetti@benettiengineering.com>
*/
+#include <common.h>
#include <dm.h>
#include <init.h>
#include <log.h>
* Copyright 2017 NXP
*/
+#include <common.h>
#include <dm.h>
#include <net.h>
#include <asm/io.h>
* Copyright 2017-2018, 2021 NXP
*/
-#include <config.h>
+#include <common.h>
#include <fdt_support.h>
#include <i2c.h>
#include <asm/cache.h>
* Copyright 2017 NXP
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <asm/io.h>
#include <netdev.h>
* Copyright 2021 NXP
*/
-#include <config.h>
+#include <common.h>
#include <i2c.h>
#include <fdt_support.h>
#include <asm/cache.h>
* Copyright 2017 NXP
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <net.h>
#include <asm/io.h>
* Copyright 2021 NXP
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <fdt_support.h>
#include <hang.h>
* Copyright 2021 NXP
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <fdt_support.h>
#include <init.h>
* Copyright 2014 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <fsl_ddr_sdram.h>
#include <fsl_ddr_dimm_params.h>
#include <init.h>
* Copyright 2019 NXP
*/
+#include <common.h>
#include <fsl_ddr_sdram.h>
#include <fsl_ddr_dimm_params.h>
#include <asm/global_data.h>
* Copyright 2019-2022 NXP
*/
-#include <config.h>
+#include <common.h>
#include <display_options.h>
#include <init.h>
#include <malloc.h>
* Copyright 2015 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <fsl_ddr_sdram.h>
#include <fsl_ddr_dimm_params.h>
#ifdef CONFIG_FSL_DEEP_SLEEP
* Copyright 2019 NXP
*/
-#include <config.h>
+#include <common.h>
#include <log.h>
#include <net.h>
#include <asm/io.h>
* Copyright 2019-2020 NXP
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <i2c.h>
#include <fdt_support.h>
* Freescale LS1043ARDB board-specific CPLD controlling supports.
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <asm/io.h>
#include "cpld.h"
* Copyright 2015 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <fsl_ddr_sdram.h>
#include <fsl_ddr_dimm_params.h>
#include <asm/global_data.h>
/*
* Copyright 2015 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <net.h>
#include <asm/io.h>
#include <netdev.h>
* Copyright 2019 NXP
*/
+#include <common.h>
#include <fsl_ddr_sdram.h>
#include <asm/global_data.h>
/*
* Copyright 2019 NXP
*/
-#include <config.h>
+#include <common.h>
#include <fdt_support.h>
#include <net.h>
#include <asm/io.h>
* Copyright 2019, 2021 NXP
*/
-#include <config.h>
+#include <common.h>
#include <i2c.h>
#include <fdt_support.h>
#include <init.h>
* Copyright 2016 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <fsl_ddr_sdram.h>
#include <fsl_ddr_dimm_params.h>
#ifdef CONFIG_FSL_DEEP_SLEEP
* Copyright 2018-2020 NXP
*/
-#include <config.h>
+#include <common.h>
#include <log.h>
#include <net.h>
#include <asm/io.h>
* Copyright 2019-2021 NXP
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <i2c.h>
#include <fdt_support.h>
* Freescale LS1046ARDB board-specific CPLD controlling supports.
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <asm/io.h>
#include "cpld.h"
* Copyright 2016 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <fsl_ddr_sdram.h>
#include <fsl_ddr_dimm_params.h>
#include <asm/global_data.h>
/*
* Copyright 2016 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <fdt_support.h>
#include <net.h>
#include <asm/io.h>
* Copyright 2021 NXP
*/
-#include <config.h>
+#include <common.h>
#include <i2c.h>
#include <fdt_support.h>
#include <init.h>
* Copyright 2017 NXP
*/
+#include <common.h>
#include <fsl_ddr_sdram.h>
#include <fsl_ddr_dimm_params.h>
#include <log.h>
/*
* Copyright 2017-2022 NXP
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <display_options.h>
#include <env.h>
* Copyright 2015 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <fsl_ddr_sdram.h>
#include <fsl_ddr_dimm_params.h>
#include <log.h>
* Copyright 2015 Freescale Semiconductor
* Copyright 2021 NXP
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <display_options.h>
#include <env.h>
* Copyright 2015 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <fsl_ddr_sdram.h>
#include <fsl_ddr_dimm_params.h>
#include <log.h>
* Copyright 2015 Freescale Semiconductor
* Copyright 2017, 2021 NXP
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <display_options.h>
#include <env.h>
* Copyright 2018 NXP
*/
+#include <common.h>
#include <fsl_ddr_sdram.h>
#include <fsl_ddr_dimm_params.h>
#include <asm/global_data.h>
*
*/
+#include <common.h>
#include <netdev.h>
#include <exports.h>
#include <fsl-mc/fsl_mc.h>
* Copyright 2018-2021 NXP
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <display_options.h>
#include <dm.h>
*/
#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/immap.h>
*/
#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/immap.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <init.h>
#include <malloc.h>
* TsiChung Liew (Tsi-Chung.Liew@freescale.com)
*/
-#include <config.h>
+#include <common.h>
#include <flash.h>
#include <init.h>
#include <irq_func.h>
-#include <time.h>
#include <asm/immap.h>
* Hayden Fraser (Hayden.Fraser@freescale.com)
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <net.h>
#include <asm/global_data.h>
* Copyright (C) 2012 Freescale Semiconductor, Inc. All Rights Reserved.
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/immap.h>
* Copyright (C) 2012 Freescale Semiconductor, Inc. All Rights Reserved.
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/immap.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/immap.h>
*/
#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/immap.h>
*/
#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/immap.h>
*/
#include <config.h>
+#include <common.h>
#include <asm/io.h>
#include <asm/immap.h>
*/
#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/immap.h>
*/
#include <config.h>
+#include <common.h>
#include <asm/io.h>
#include <asm/immap.h>
* Joe D'Abbraccio <joe.d'abbraccio@freescale.com>
*/
-#include <config.h>
+#include <common.h>
#include <env.h>
#include <hwconfig.h>
#include <i2c.h>
* Copyright 2008 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <fsl_ddr_sdram.h>
#include <fsl_ddr_dimm_params.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
* (C) Copyright 2002 Scott McNutt <smcnutt@artesyncp.com>
*/
-#include <config.h>
+#include <common.h>
#include <display_options.h>
#include <init.h>
#include <net.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <asm/mmu.h>
-#include <asm/ppc.h>
struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 0 - for temp stack in cache */
* on behalf of DENX Software Engineering GmbH
*/
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/gpio.h>
* on behalf of DENX Software Engineering GmbH
*/
+#include <common.h>
#include <config.h>
#include <asm/io.h>
#include <asm/arch/iomux-mx23.h>
* on behalf of DENX Software Engineering GmbH
*/
+#include <common.h>
#include <config.h>
#include <asm/io.h>
#include <asm/arch/iomux-mx28.h>
* on behalf of DENX Software Engineering GmbH
*/
+#include <common.h>
#include <init.h>
#include <net.h>
#include <asm/global_data.h>
* (C) Copyright 2009 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/io.h>
* Jason Liu <r64343@freescale.com>
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <log.h>
#include <asm/global_data.h>
* Author: Eric Nelson <eric@nelint.com>
*/
+#include <common.h>
#include <init.h>
#include <asm/arch/sys_proto.h>
#include <asm/global_data.h>
* Author: Eric Nelson <eric@nelint.com>
*/
+#include <common.h>
#include <cpu_func.h>
#include <init.h>
#include <asm/global_data.h>
* Author: Fabio Estevam <fabio.estevam@freescale.com>
*/
+#include <common.h>
#include <image.h>
#include <init.h>
#include <net.h>
#include <asm/io.h>
#include <asm/sections.h>
#include <linux/sizes.h>
+#include <common.h>
#include <fsl_esdhc_imx.h>
#include <i2c.h>
#include <mmc.h>
#include <asm/mach-imx/iomux-v3.h>
#include <asm/mach-imx/boot_mode.h>
#include <asm/io.h>
+#include <common.h>
#include <linux/sizes.h>
#include <mmc.h>
#include <power/pmic.h>
#include <asm/io.h>
#include <linux/delay.h>
#include <linux/sizes.h>
-#include <config.h>
+#include <common.h>
#include <fsl_esdhc_imx.h>
#include <miiphy.h>
#include <netdev.h>
#include <env.h>
#include <linux/delay.h>
#include <linux/sizes.h>
+#include <common.h>
#include <fsl_esdhc_imx.h>
#include <mmc.h>
#include <i2c.h>
#include <asm/mach-imx/mxc_i2c.h>
#include <asm/io.h>
#include <asm/sections.h>
-#include <config.h>
+#include <common.h>
#include <env.h>
#include <fsl_esdhc_imx.h>
#include <i2c.h>
#include <asm/mach-imx/iomux-v3.h>
#include <asm/mach-imx/boot_mode.h>
#include <asm/io.h>
-#include <config.h>
+#include <common.h>
#include <env.h>
#include <fsl_esdhc_imx.h>
#include <linux/sizes.h>
#include <asm/io.h>
#include <linux/delay.h>
#include <linux/sizes.h>
+#include <common.h>
#include <fsl_esdhc_imx.h>
#include <mmc.h>
#include <miiphy.h>
* Copyright (C) 2016 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <fdt_support.h>
#include <init.h>
#include <asm/global_data.h>
* Copyright 2010-2011 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <vsprintf.h>
#include <asm/global_data.h>
#include <asm/mmu.h>
* Copyright 2010-2011 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
* Copyright 2020 NXP
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <image.h>
#include <init.h>
/* Copyright 2013 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <console.h>
#include <env.h>
/*
* Copyright 2011 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <init.h>
#include <mpc85xx.h>
* Copyright 2010-2011 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <asm/mmu.h>
-#include <asm/ppc.h>
struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 0 - for temp stack in cache */
* Copyright 2010-2011 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <vsprintf.h>
-#include <linux/string.h>
#include <asm/mmu.h>
#include <asm/immap_85xx.h>
-#include <asm/ppc.h>
+#include <asm/processor.h>
#include <fsl_ddr_sdram.h>
#include <fsl_ddr_dimm_params.h>
#include <asm/io.h>
* Copyright 2010-2011 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
* Copyright 2020 NXP
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <env.h>
#include <hang.h>
* Copyright 2013 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <console.h>
#include <env.h>
* Copyright 2011 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <init.h>
#include <ns16550.h>
* Copyright 2010-2011 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <asm/mmu.h>
-#include <asm/ppc.h>
struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 0 - for temp stack in cache */
* CPLD_BASE - The virtual address of the base of the CPLD register map
*/
+#include <common.h>
#include <command.h>
#include <asm/io.h>
* Copyright 2011 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <i2c.h>
#include <hwconfig.h>
#include <init.h>
* and serdes protocol selection.
*/
-#include <config.h>
+#include <common.h>
#include <net.h>
#include <netdev.h>
#include <asm/fsl_serdes.h>
* Copyright 2011,2012 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <command.h>
#include <env.h>
* The following macros need to be defined:
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <asm/io.h>
#include "cpld.h"
* Copyright 2014 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <i2c.h>
#include <hwconfig.h>
#include <init.h>
* Shengzhou Liu <Shengzhou.Liu@freescale.com>
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <fdt_support.h>
#include <net.h>
* Copyright 2014 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
/* Copyright 2014 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <console.h>
#include <env_internal.h>
* Copyright 2020-2023 NXP
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <env.h>
#include <fdt_support.h>
* Copyright 2014 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <asm/mmu.h>
-#include <asm/ppc.h>
struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 0 - for temp stack in cache */
* CFG_SYS_CPLD_BASE-The virtual address of the base of the CPLD register map
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <asm/io.h>
* Copyright 2021 NXP
*/
-#include <config.h>
+#include <common.h>
#include <i2c.h>
#include <hwconfig.h>
#include <init.h>
* Copyright 2014 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <net.h>
#include <netdev.h>
#include <asm/fsl_serdes.h>
* Copyright 2013 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
/* Copyright 2013 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <console.h>
#include <env_internal.h>
* Copyright 2023 NXP
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <env.h>
#include <fdt_support.h>
* Copyright 2013 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <asm/mmu.h>
-#include <asm/ppc.h>
struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 0 - for temp stack in cache */
* Copyright 2013 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <i2c.h>
#include <hwconfig.h>
#include <init.h>
* Shengzhou Liu <Shengzhou.Liu@freescale.com>
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <fdt_support.h>
#include <log.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
/* Copyright 2013 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <console.h>
#include <env_internal.h>
* Copyright 2020 NXP
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <command.h>
#include <env.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <asm/mmu.h>
-#include <asm/ppc.h>
struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 0 - for temp stack in cache */
* Freescale T2080RDB board-specific CPLD controlling supports.
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
-#include <asm/io.h>
#include "cpld.h"
u8 cpld_read(unsigned int reg)
* Copyright 2014 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <i2c.h>
#include <hwconfig.h>
#include <init.h>
* Shengzhou Liu <Shengzhou.Liu@freescale.com>
*/
+#include <common.h>
#include <command.h>
#include <fdt_support.h>
#include <net.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
/* Copyright 2013 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <console.h>
#include <env_internal.h>
* Copyright 2021-2023 NXP
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <env.h>
#include <fdt_support.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <asm/mmu.h>
-#include <asm/ppc.h>
struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 0 - for temp stack in cache */
*
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <asm/io.h>
* Copyright 2014 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <i2c.h>
#include <hwconfig.h>
#include <init.h>
* Chunhe Lan <Chunhe.Lan@freescale.com>
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <fdt_support.h>
#include <net.h>
* Copyright 2014 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
* Author: Chunhe Lan <Chunhe.Lan@freescale.com>
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <console.h>
#include <env_internal.h>
* Copyright 2023 NXP
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <env.h>
#include <fdt_support.h>
* Copyright 2014 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <asm/mmu.h>
-#include <asm/ppc.h>
struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 0 - for temp stack in cache */
* Copyright 2013 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/io.h>
*/
#include <config.h>
+#include <common.h>
#include <command.h>
#include <fdt_support.h>
#include <log.h>
*/
#include <config.h>
+#include <common.h>
#include <i2c.h>
#include <asm/io.h>
*/
#include <config.h>
+#include <common.h>
#include <errno.h>
#include <fdtdec.h>
#include <fdt_support.h>
*/
#include <config.h>
+#include <common.h>
#include <errno.h>
#include <asm/io.h>
#include <asm/arch/clk.h>
* Copyright (C) 2019 Stefan Roese <sr@denx.de>
*/
-#include <config.h>
+#include <common.h>
#include <debug_uart.h>
#include <env.h>
#include <init.h>
* Copyright (C) 2019 Stefan Roese <sr@denx.de>
*/
-#include <config.h>
+#include <common.h>
#include <nand.h>
#include <spl.h>
#include <asm/arch/at91sam9x5_matrix.h>
* Copyright (C) 2018 Stefan Roese <sr@denx.de>
*/
+#include <common.h>
#include <command.h>
#include <env.h>
#include <env_internal.h>
* Author: Tim Harvey <tharvey@gateworks.com>
*/
+#include <common.h>
#include <env.h>
#include <fsl_esdhc_imx.h>
#include <hwconfig.h>
*/
#include <command.h>
+#include <common.h>
#include <gsc.h>
#include <hexdump.h>
#include <i2c.h>
*/
#include <command.h>
+#include <common.h>
#include <fdt_support.h>
#include <gsc.h>
#include <hwconfig.h>
* Author: Tim Harvey <tharvey@gateworks.com>
*/
-#include <config.h>
+#include <common.h>
#include <env.h>
#include <gsc.h>
#include <hang.h>
* Copyright 2021 Gateworks Corporation
*/
+#include <common.h>
#include <gsc.h>
#include <hexdump.h>
#include <i2c.h>
*/
#include <linux/kernel.h>
+#include <common.h>
#include <asm/arch/ddr.h>
#include <asm/arch/lpddr4_define.h>
* Copyright 2021 Gateworks Corporation
*/
+#include <common.h>
#include <cpu_func.h>
#include <hang.h>
#include <i2c.h>
* Copyright (C) 2016 Mario Six <mario.six@gdsys.cc>
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <event.h>
* Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/
+#include <common.h>
#include <i2c.h>
#include <fdt_support.h>
#include <asm-generic/gpio.h>
* Reinhard Pfau, Guntermann & Drunck GmbH, reinhard.pfau@gdsys.cc
*/
+#include <common.h>
#include <log.h>
#include <malloc.h>
#include <fs.h>
+#include <common.h>
#include <command.h>
#include <console.h> /* ctrlc */
#include <pci.h>
#include <asm/io.h>
-#include <mach/soc.h>
#include "hydra.h"
+#include <common.h>
#include <dm.h>
#include <miiphy.h>
#include <asm-generic/gpio.h>
* Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/
+#include <common.h>
#include <command.h>
#include <env.h>
#include <tpm-v1.h>
* Dirk Eibach, Guntermann & Drunck GmbH, dirk.eibach@gdsys.cc
*/
+#include <common.h>
#include <command.h>
#include <console.h>
#include <linux/bitops.h>
#ifdef CONFIG_GDSYS_LEGACY_DRIVERS
+#include <common.h>
#include <asm/io.h>
#include <errno.h>
#include <i2c.h>
* Dirk Eibach, Guntermann & Drunck GmbH, dirk.eibach@gdsys.cc
*/
+#include <common.h>
#include <linux/delay.h>
#include <miiphy.h>
#ifdef CONFIG_GDSYS_LEGACY_DRIVERS
+#include <common.h>
#include <gdsys_fpga.h>
#include <linux/bitops.h>
#ifdef CONFIG_GDSYS_LEGACY_DRIVERS
+#include <common.h>
#include <command.h>
#include <i2c.h>
#include <malloc.h>
* Dirk Eibach, Guntermann & Drunck GmbH, eibach@gdsys.de
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <hexdump.h>
* SPDX-License-Identifier: GPL-2.0+
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <env.h>
* Dirk Eibach, Guntermann & Drunck GmbH, dirk.eibach@gdsys.cc
*/
+#include <common.h>
#include <command.h>
#include <init.h>
#include <asm/processor.h>
#ifndef CONFIG_MPC83XX_SDRAM
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <mpc83xx.h>
#include <spd_sdram.h>
#include <asm/io.h>
#include <asm/mach-imx/video.h>
#include <command.h>
+#include <common.h>
#include <i2c.h>
#include <input.h>
#include <ipu_pixfmt.h>
* Copyright 2017 General Electric Company
*/
+#include <common.h>
#include <env.h>
#include <dm/uclass.h>
#include <rtc.h>
* Copyright 2016 General Electric Company
*/
-#include <linux/types.h>
+#include "common.h"
struct vpd_cache;
* Jason Liu <r64343@freescale.com>
*/
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/io.h>
* Fabio Estevam <fabio.estevam@freescale.com>
*/
+#include <common.h>
#include <dm.h>
#include <linux/list.h>
#include <asm/arch/iomux-mx53.h>
#define LOG_CATEGORY UCLASS_SYSINFO
+#include <common.h>
#include <bloblist.h>
#include <command.h>
#include <cros_ec.h>
* Copyright 2020 NXP
*/
+#include <common.h>
#include <env.h>
#include <init.h>
#include <malloc.h>
*
*/
-#include <config.h>
+#include <common.h>
#include <hang.h>
#include <asm/global_data.h>
#include <asm/io.h>
*/
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <init.h>
#include <log.h>
* Copyright (C) 2017, Grinn - http://grinn-global.com/
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <net.h>
#include <asm/arch/chilisom.h>
* Copyright (C) 2016 Grinn
*/
+#include <common.h>
#include <command.h>
#include <init.h>
#include <asm/arch/clock.h>
* Copyright 2012 Calxeda, Inc.
*/
+#include <common.h>
#include <ahci.h>
#include <asm/io.h>
#include <linux/delay.h>
* Copyright (C) 2019 Arm Ltd.
*/
+#include <common.h>
#include <dm.h>
#include <dm/lists.h>
* Copyright 2010-2011 Calxeda, Inc.
*/
+#include <common.h>
#include <ahci.h>
#include <cpu_func.h>
#include <env.h>
* (C) Copyright 2015 Linaro
* Peter Griffin <peter.griffin@linaro.org>
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <fdt_support.h>
* Author: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <errno.h>
* Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <init.h>
* Copyright (C) 2021 Renesas Electronics Corporation
*/
+#include <common.h>
#include <asm/global_data.h>
#include <asm/io.h>
#include <asm/processor.h>
* Copyright (C) 2016 Imagination Technologies
*/
+#include <common.h>
#include <init.h>
#include <asm/io.h>
* Copyright (C) 2016 Imagination Technologies
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
* Copyright (C) 2016 Imagination Technologies
*/
+#include <common.h>
#include <fdt_support.h>
#include <asm/global_data.h>
* Author: Paul Burton <paul.burton@imgtec.com>
*/
+#include <common.h>
#include <env.h>
#include <init.h>
#include <net.h>
* Setup code for the FDC37M817 super I/O controller
*/
+#include <common.h>
#include <asm/io.h>
#define SIO_CONF_PORT 0x3f0
*
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
* Copyright (C) 2017, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <asm/arch/gpio.h>
#include <asm/fsp1/fsp_support.h>
* Copyright (C) 2016, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <init.h>
* Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <init.h>
#include <asm/ibmpc.h>
#include <asm/pnp_def.h>
/*
* Copyright (c) 2017 Intel Corporation
*/
+#include <common.h>
#include <env.h>
#include <init.h>
#include <mmc.h>
* Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/device.h>
#include <asm/arch/quark.h>
* Copyright (C) 2015, Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <init.h>
#include <log.h>
* Copyright (C) 2019 Intel Corporation <www.intel.com>
*/
+#include <common.h>
#include <init.h>
int board_early_init_r(void)
* Andrej Rosano <andrej@inversepath.com>
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <fs.h>
#include <init.h>
* Luka Perkov <luka@openwrt.org>
*/
+#include <common.h>
#include <init.h>
#include <netdev.h>
#include <asm/arch/cpu.h>
* Copyright (C) 2013-2017, ISEE 2007 SL - http://www.isee.biz/
*/
-#include <config.h>
+#include <common.h>
#include <env.h>
#include <errno.h>
#include <init.h>
* GNU General Public License for more details.
*/
+#include <common.h>
#include <asm/arch/sys_proto.h>
#include <asm/arch/hardware.h>
#include <asm/arch/mux.h>
// SPDX-License-Identifier: GPL-2.0+
+#include <common.h>
#include <twl4030.h>
#include <asm/global_data.h>
#include <asm/io.h>
* (C) Copyright 2010
* ISEE 2007 SL, <www.iseebcn.com>
*/
-#include <config.h>
+#include <common.h>
#include <env.h>
#include <init.h>
#include <malloc.h>
* Daniel Gericke <daniel.gericke@tqs.de>
*/
+#include <common.h>
#include <env.h>
#include <i2c.h>
#include "kp_id_rev.h"
#include <net.h>
-#include <vsprintf.h>
static int eeprom_has_been_read;
static struct id_eeprom eeprom;
* Lukasz Majewski, DENX Software Engineering, lukma@denx.de
*/
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/io.h>
* Copyright (C) 2018 Lukasz Majewski <lukma@denx.de>
*/
+#include <common.h>
#include <init.h>
#include <asm/arch/clock.h>
#include <asm/arch/crm_regs.h>
* Copyright (C) 2018 Lukasz Majewski <lukma@denx.de>
*/
+#include <common.h>
#include <init.h>
#include <log.h>
#include <asm/arch/clock.h>
* Holger Brunck, Keymile GmbH Hannover, holger.brunck@keymile.com
*/
-#include <config.h>
+#include <common.h>
#include <env.h>
#include <ioports.h>
#include <command.h>
* Holger Brunck, Keymile GmbH Hannover, holger.brunck@keymile.com
*/
+#include <common.h>
#include <cli_hush.h>
#include <env.h>
#include <i2c.h>
-#include <stdio.h>
-#include <vsprintf.h>
#include "common.h"
#define MAC_STR_SZ 20
* Valentin Longchamp <valentin.longchamp@keymile.com>
*/
-#include <config.h>
+#include <common.h>
#include <asm/io.h>
#include <linux/bitops.h>
* Heiko Schocher, DENX Software Engineering, hs@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <env.h>
#include <event.h>
#include <fdt_support.h>
*/
#include <asm/mmu.h>
-#include <asm/ppc.h>
+#include <asm/u-boot.h>
struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 0 - for temp stack in cache */
* Copyright 2020 Hitachi Power Grids. All rights reserved.
*/
-#include <config.h>
+#include <common.h>
#include <fsl_ddr_sdram.h>
#include <fsl_ddr_dimm_params.h>
#include <asm/io.h>
/*
* Copyright (C) 2017-2020 Hitachi Power Grids
*/
+#include <common.h>
#include <i2c.h>
#include <asm/gpio.h>
* based on board/solidrun/clearfog/clearfog.c
*/
-#include <config.h>
+#include <common.h>
#include <i2c.h>
#include <init.h>
#include <miiphy.h>
// SPDX-License-Identifier: GPL-2.0+
#include "pitx_misc.h"
+#include <common.h>
#include <efi.h>
#include <efi_loader.h>
#include <init.h>
// SPDX-License-Identifier: GPL-2.0+
-#include <config.h>
+#include <common.h>
#include <errno.h>
#include <fsl_esdhc_imx.h>
#include <hang.h>
*/
#include <linux/kernel.h>
+#include <common.h>
#include <asm/arch/ddr.h>
#include <asm/arch/lpddr4_define.h>
* Copyright (c) 2020 Kontron Europe GmbH
*/
+#include <common.h>
#include <command.h>
#include <i2c.h>
-#include <vsprintf.h>
#include <linux/delay.h>
-#include <linux/errno.h>
#define CPLD_I2C_ADDR 0x4a
#define REG_UFM_CTRL 0x02
// SPDX-License-Identifier: GPL-2.0+
-#include <config.h>
+#include <common.h>
#include <asm/global_data.h>
#include <asm/io.h>
// SPDX-License-Identifier: GPL-2.0+
-#include <config.h>
+#include <common.h>
#include <asm/global_data.h>
#include <asm/io.h>
#include <fsl_ddr_sdram.h>
// SPDX-License-Identifier: GPL-2.0+
+#include <common.h>
#include <dm.h>
#include <malloc.h>
#include <efi.h>
// SPDX-License-Identifier: GPL-2.0+
-#include <config.h>
+#include <common.h>
#include <asm/io.h>
#include <asm/spl.h>
#include <asm/arch-fsl-layerscape/fsl_serdes.h>
* Copyright (c) 2020 Michael Walle <michael@walle.cc>
*/
-#include <config.h>
+#include <common.h>
#include <asm/global_data.h>
#include <asm/io.h>
#include <atf_common.h>
* Copyright (C) 2014 Marek Vasut <marex@denx.de>
*/
+#include <common.h>
#include <display_options.h>
#include <dm.h>
#include <eeprom.h>
* Copyright (C) 2014 Marek Vasut <marex@denx.de>
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <init.h>
#include <asm/io.h>
* Copyright (C) 2014 Marek Vasut <marex@denx.de>
*/
+#include <common.h>
#include <log.h>
#include <linux/delay.h>
#include <linux/errno.h>
* Gregory CLEMENT <gregory.clement@free-electrons.com>
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/io.h>
* Copyright (C) 2007 Sergey Kubushyn <ksi@koi8.net>
*/
-#include <config.h>
+#include <common.h>
#include <env.h>
#include <i2c.h>
#include <init.h>
*/
#include <config.h>
+#include <common.h>
#include <dm.h>
#include <env.h>
#include <fastboot.h>
* Lukasz Majewski, DENX Software Engineering, lukma@denx.de
*/
+#include <common.h>
#include <dm.h>
#include <fdt_support.h>
#include <init.h>
* Lukasz Majewski, DENX Software Engineering, lukma@denx.de
*/
+#include <common.h>
#include <cpu_func.h>
#include <env.h>
#include <image.h>
* Lukasz Majewski, DENX Software Engineering, lukma@denx.de
*/
+#include <common.h>
#include <env.h>
#include <init.h>
#include <serial.h>
* on behalf of DENX Software Engineering GmbH
*/
+#include <common.h>
#include <config.h>
#include <asm/io.h>
#include <asm/arch/iomux-mx28.h>
*
*/
+#include <common.h>
#include <fdt_support.h>
#include <init.h>
#include <log.h>
* Texas Instruments Incorporated - https://www.ti.com/
*/
+#include <common.h>
#include <dm.h>
#include <init.h>
#include <net.h>
* and updates by Jagan Teki <jagan@amarulasolutions.com>
*/
+#include <common.h>
#include <env.h>
#include <init.h>
#include <miiphy.h>
* Richard Woodruff <r-woodruff2@ti.com>
* Syed Mohammed Khasim <khasim@ti.com>
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <init.h>
#include <net.h>
* Copyright (C) 2014 Stefan Roese <sr@denx.de>
*/
+#include <common.h>
#include <init.h>
#include <miiphy.h>
#include <asm/global_data.h>
* Author: Sam Shih <sam.shih@mediatek.com>
*/
+#include <common.h>
#include <config.h>
#include <env.h>
#include <init.h>
* Copyright (C) 2018 MediaTek Inc.
*/
-#include <config.h>
+#include <common.h>
#include <mmc.h>
#include <asm/global_data.h>
* Copyright (C) 2018 MediaTek Inc.
*/
-#include <config.h>
+#include <common.h>
#include <asm/global_data.h>
DECLARE_GLOBAL_DATA_PTR;
* Author: Fabien Parent <fparent@baylibre.com>
*/
+#include <common.h>
#include <dm.h>
#include <net.h>
* Copyright (C) 2019 MediaTek Inc.
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <wdt.h>
* Copyright (C) 2019 BayLibre SAS
*/
+#include <common.h>
#include <dm.h>
#include <net.h>
* Copyright (C) 2019 MediaTek Inc.
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <init.h>
#include <log.h>
* Copyright (C) 2014-2017 Olaf Mandel <o.mandel@menlosystems.com>
*/
+#include <common.h>
#include <dm.h>
#include <init.h>
#include <malloc.h>
* Copyright 2021-2022 Marek Vasut <marex@denx.de>
*/
+#include <common.h>
#include <asm/arch/clock.h>
#include <asm/arch/imx8mm_pins.h>
#include <asm/arch/sys_proto.h>
* Padmarao Begari <padmarao.begari@microchip.com>
*/
+#include <common.h>
#include <dm.h>
#include <env.h>
#include <init.h>
*
*/
+#include <common.h>
#include <dm.h>
#include <clk.h>
#include <init.h>
* Copyright (C) 2015 Stefan Roese <sr@denx.de>
*/
+#include <common.h>
#include <i2c.h>
#include <init.h>
#include <asm/global_data.h>
* Copyright (C) 2018, Boundary Devices <info@boundarydevices.com>
*/
+#include <common.h>
#include <env.h>
#include <init.h>
#include <malloc.h>
* SPDX-License-Identifier: GPL-2.0+
*/
-#include <config.h>
+#include <common.h>
#include <hang.h>
#include <image.h>
#include <init.h>
* Copyright 2021 Collabora Ltd.
*/
+#include <common.h>
#include <errno.h>
#include <miiphy.h>
#include <netdev.h>
* Copyright 2021 Collabora Ltd.
*/
-#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <fsl_esdhc_imx.h>
#include <hang.h>
* Copyright (c) 2018 Microsemi Coprporation
*/
+#include <common.h>
#include <asm/io.h>
#include <spi.h>
#include <linux/bitops.h>
* Copyright (c) 2018 Microsemi Corporation
*/
-#include <config.h>
+#include <common.h>
#include <image.h>
#include <init.h>
#include <asm/io.h>
* Copyright (c) 2018 Microsemi Corporation
*/
-#include <config.h>
+#include <common.h>
#include <image.h>
#include <init.h>
#include <asm/global_data.h>
* Copyright (c) 2018 Microsemi Corporation
*/
-#include <config.h>
+#include <common.h>
#include <image.h>
#include <init.h>
#include <log.h>
* Copyright (c) 2018 Microsemi Corporation
*/
-#include <config.h>
+#include <common.h>
#include <image.h>
#include <init.h>
#include <asm/global_data.h>
* Copyright (c) 2018 Microsemi Corporation
*/
-#include <config.h>
+#include <common.h>
#include <image.h>
#include <init.h>
#include <asm/global_data.h>
* Author: Parthiban Nallathambi <parthiban@linumiz.com>
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <spl.h>
#include <asm/arch/clock.h>
* Copyright (C) 2018 Álvaro Fernández Rojas <noltari@gmail.com>
*/
+#include <common.h>
#include <init.h>
#include <asm/io.h>
#include <linux/bitops.h>
#include <asm/global_data.h>
#include <asm/mach-imx/iomux-v3.h>
#include <asm/io.h>
+#include <common.h>
#include <linux/sizes.h>
DECLARE_GLOBAL_DATA_PTR;
* Copyright (c) 2022 Nuvoton Technology Corp.
*/
+#include <common.h>
#include <dm.h>
#include <asm/io.h>
#include <asm/arch/gcr.h>
* Copyright (c) 2021 Nuvoton Technology Corp.
*/
+#include <common.h>
#include <dm.h>
#include <env.h>
#include <asm/io.h>
* Svyatoslav Ryhel <clamor95@gmail.com>
*/
+#include <common.h>
#include <asm/arch-tegra/tegra_i2c.h>
#include <linux/delay.h>
* Svyatoslav Ryhel <clamor95@gmail.com>
*/
+#include <common.h>
#include <asm/arch-tegra/tegra_i2c.h>
#include <linux/delay.h>
* NVIDIA Corporation <www.nvidia.com>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <asm/arch/pinmux.h>
* Copyright (c) 2010-2013, NVIDIA CORPORATION. All rights reserved.
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <asm/arch/pinmux.h>
* NVIDIA Corporation <www.nvidia.com>
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/clock.h>
#include <asm/arch/funcmux.h>
* NVIDIA Corporation <www.nvidia.com>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <linux/printk.h>
* NVIDIA Corporation <www.nvidia.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
* NVIDIA Corporation <www.nvidia.com>
*/
+#include <common.h>
#include <i2c.h>
#include <log.h>
#include <asm/arch/gpio.h>
* NVIDIA Corporation <www.nvidia.com>
*/
+#include <common.h>
#include <env.h>
#include <fdtdec.h>
#include <i2c.h>
* NVIDIA Corporation <www.nvidia.com>
*/
+#include <common.h>
#include <i2c.h>
#include <log.h>
#include <asm/arch/gpio.h>
* Copyright (c) 2016, NVIDIA CORPORATION
*/
+#include <common.h>
#include <env.h>
#include <fdtdec.h>
#include <i2c.h>
*
*/
+#include <common.h>
#include <fdtdec.h>
#include <i2c.h>
#include <linux/bitops.h>
* NVIDIA Corporation <www.nvidia.com>
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/mach-types.h>
#include <asm/arch/tegra.h>
* NVIDIA Corporation <www.nvidia.com>
*/
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <asm/arch-tegra/tegra_i2c.h>
* NVIDIA Corporation <www.nvidia.com>
*/
-#include <linux/kernel.h>
+#include <common.h>
#include <asm/arch/gpio.h>
#include <asm/arch/pinmux.h>
#include "pinmux-config-venice2.h"
* Copyright (C) 2013 Marek Vasut <marex@denx.de>
*/
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/gpio.h>
* Copyright (C) 2013 Marek Vasut <marex@denx.de>
*/
+#include <common.h>
#include <config.h>
#include <asm/io.h>
#include <asm/arch/iomux-mx23.h>
* Pragnesh Patel <pragnesh.patel@sifive.com>
* Tianrui Wei <tianrui-wei@outlook.com>
*/
+#include <common.h>
#include <init.h>
#include <configs/openpiton-riscv64.h>
#include <dm.h>
#include <asm/arch/sys_proto.h>
#include <asm/global_data.h>
#include <asm/mach-imx/boot_mode.h>
+#include <common.h>
#include <env.h>
DECLARE_GLOBAL_DATA_PTR;
ifdef CONFIG_SPL_BUILD
# necessary to create built-in.o
obj- := __dummy__.o
-else
-obj-$(CONFIG_ARCH_K3) += k3/
endif
obj-y += phytec_som_detection.o
* Author: Teresa Remmet <t.remmet@phytec.de>
*/
+#include <common.h>
#include <asm/arch/sys_proto.h>
#include <dm/device.h>
#include <dm/uclass.h>
+++ /dev/null
-# SPDX-License-Identifier: GPL-2.0+
-obj-y += board.o
+++ /dev/null
-// SPDX-License-Identifier: GPL-2.0-or-later
-/*
- * Copyright (C) 2024 PHYTEC Messtechnik GmbH
- * Author: Wadim Egorov <w.egorov@phytec.de>
- */
-
-#include <env_internal.h>
-#include <spl.h>
-#include <asm/arch/hardware.h>
-
-#if IS_ENABLED(CONFIG_ENV_IS_IN_FAT) || IS_ENABLED(CONFIG_ENV_IS_IN_MMC)
-int mmc_get_env_dev(void)
-{
- u32 boot_device = get_boot_device();
-
- switch (boot_device) {
- case BOOT_DEVICE_MMC1:
- return 0;
- case BOOT_DEVICE_MMC2:
- return 1;
- };
-
- return CONFIG_SYS_MMC_ENV_DEV;
-}
-#endif
-
-enum env_location env_get_location(enum env_operation op, int prio)
-{
- u32 boot_device = get_boot_device();
-
- if (prio)
- return ENVL_UNKNOWN;
-
- switch (boot_device) {
- case BOOT_DEVICE_MMC1:
- case BOOT_DEVICE_MMC2:
- if (CONFIG_IS_ENABLED(ENV_IS_IN_FAT))
- return ENVL_FAT;
- if (CONFIG_IS_ENABLED(ENV_IS_IN_MMC))
- return ENVL_MMC;
- case BOOT_DEVICE_SPI:
- if (CONFIG_IS_ENABLED(ENV_IS_IN_SPI_FLASH))
- return ENVL_SPI_FLASH;
- default:
- return ENVL_NOWHERE;
- };
-}
-
-#if IS_ENABLED(CONFIG_BOARD_LATE_INIT)
-int board_late_init(void)
-{
- u32 boot_device = get_boot_device();
-
- switch (boot_device) {
- case BOOT_DEVICE_MMC1:
- env_set_ulong("mmcdev", 0);
- env_set("boot", "mmc");
- break;
- case BOOT_DEVICE_MMC2:
- env_set_ulong("mmcdev", 1);
- env_set("boot", "mmc");
- break;
- case BOOT_DEVICE_SPI:
- env_set("boot", "spi");
- break;
- case BOOT_DEVICE_ETHERNET:
- env_set("boot", "net");
- break;
- };
-
- return 0;
-}
-#endif
* Author: Teresa Remmet <t.remmet@phytec.de>
*/
+#include <common.h>
#include <dm/device.h>
#include <dm/uclass.h>
#include <i2c.h>
* Copyright (C) 2015-2016 Stefan Roese <sr@denx.de>
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <spl.h>
#include <asm/arch/clock.h>
* Copyright 2013 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/io.h>
* Both NAND and eMMC cannot be set because they share the
* same pins (SD4)
*/
+#include <common.h>
#include <init.h>
#include <net.h>
#include <asm/arch/crm_regs.h>
* Copyright (C) 2019 DENX Software Engineering GmbH
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <spl.h>
#include <asm/arch/cpu.h>
* Copyright (C) 2019 DENX Software Engineering GmbH
*/
+#include <common.h>
#include <asm/arch/sys_proto.h>
#include <asm/arch/hardware.h>
#include <asm/arch/mux.h>
*/
#include <asm/io.h>
+#include <env.h>
+#include <env_internal.h>
#include <spl.h>
#include <fdt_support.h>
+#include <asm/arch/hardware.h>
DECLARE_GLOBAL_DATA_PTR;
MCU_CTRL_DEVICE_CLKOUT_32K_CTRL);
}
#endif
+
+#if IS_ENABLED(CONFIG_ENV_IS_IN_FAT) || IS_ENABLED(CONFIG_ENV_IS_IN_MMC)
+int mmc_get_env_dev(void)
+{
+ u32 boot_device = get_boot_device();
+
+ switch (boot_device) {
+ case BOOT_DEVICE_MMC1:
+ return 0;
+ case BOOT_DEVICE_MMC2:
+ return 1;
+ };
+
+ return CONFIG_SYS_MMC_ENV_DEV;
+}
+#endif
+
+enum env_location env_get_location(enum env_operation op, int prio)
+{
+ u32 boot_device = get_boot_device();
+
+ if (prio)
+ return ENVL_UNKNOWN;
+
+ switch (boot_device) {
+ case BOOT_DEVICE_MMC1:
+ case BOOT_DEVICE_MMC2:
+ if (CONFIG_IS_ENABLED(ENV_IS_IN_FAT))
+ return ENVL_FAT;
+ if (CONFIG_IS_ENABLED(ENV_IS_IN_MMC))
+ return ENVL_MMC;
+ case BOOT_DEVICE_SPI:
+ if (CONFIG_IS_ENABLED(ENV_IS_IN_SPI_FLASH))
+ return ENVL_SPI_FLASH;
+ default:
+ return ENVL_NOWHERE;
+ };
+}
+
+#if IS_ENABLED(CONFIG_BOARD_LATE_INIT)
+int board_late_init(void)
+{
+ u32 boot_device = get_boot_device();
+
+ switch (boot_device) {
+ case BOOT_DEVICE_MMC1:
+ env_set_ulong("mmcdev", 0);
+ env_set("boot", "mmc");
+ break;
+ case BOOT_DEVICE_MMC2:
+ env_set_ulong("mmcdev", 1);
+ env_set("boot", "mmc");
+ break;
+ case BOOT_DEVICE_SPI:
+ env_set("boot", "spi");
+ break;
+ case BOOT_DEVICE_ETHERNET:
+ env_set("boot", "net");
+ break;
+ };
+
+ return 0;
+}
+#endif
* Author: Teresa Remmet <t.remmet@phytec.de>
*/
+#include <common.h>
#include <asm/arch/sys_proto.h>
#include <asm/global_data.h>
#include <asm/io.h>
* Author: Teresa Remmet <t.remmet@phytec.de>
*/
+#include <common.h>
#include <asm/arch/clock.h>
#include <asm/arch/ddr.h>
#include <asm/arch/imx8mm_pins.h>
* Author: Teresa Remmet <t.remmet@phytec.de>
*/
+#include <common.h>
#include <asm/arch/sys_proto.h>
#include <asm/global_data.h>
#include <asm/io.h>
* Author: Teresa Remmet <t.remmet@phytec.de>
*/
+#include <common.h>
#include <asm/arch/clock.h>
#include <asm/arch/ddr.h>
#include <asm/arch/imx8mp_pins.h>
* Author: Wadim Egorov <w.egorov@phytec.de>
*/
+#include <eeprom.h>
#include <init.h>
#include <log.h>
#include <net.h>
#include <asm/global_data.h>
#include <asm/io.h>
+#include <common.h>
#include <dm.h>
#include <env.h>
#include <env_internal.h>
* liuhao <liuhao@phytium.com.cn>
*/
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <event.h>
#include <asm/io.h>
#include <linux/arm-smccc.h>
#include <scsi.h>
+#include <asm/u-boot.h>
#include "cpu.h"
DECLARE_GLOBAL_DATA_PTR;
#include <linux/arm-smccc.h>
#include <scsi.h>
#include <init.h>
+#include <asm/u-boot.h>
#include "cpu.h"
DECLARE_GLOBAL_DATA_PTR;
#include <asm/global_data.h>
#include <asm/mach-imx/gpio.h>
#include <asm/mach-imx/iomux-v3.h>
+#include <common.h>
#include <env.h>
#include <errno.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/mach-imx/boot_mode.h>
#include <asm/sections.h>
+#include <common.h>
#include <dm/device.h>
#include <dm/uclass.h>
#include <hang.h>
* Copyright 2021 Purism
*/
+#include <common.h>
#include <malloc.h>
#include <errno.h>
#include <asm/io.h>
*/
#include <linux/kernel.h>
+#include <common.h>
#include <asm/arch/ddr.h>
#include <asm/arch/lpddr4_define.h>
*/
#include <linux/kernel.h>
+#include <common.h>
#include <asm/arch/ddr.h>
#include <asm/arch/lpddr4_define.h>
* Copyright 2021 Purism
*/
-#include <config.h>
+#include <common.h>
#include <asm/io.h>
#include <errno.h>
#include <asm/io.h>
* Copyright (C) 2015-2016 Wills Wang <wills.wang@live.com>
*/
+#include <common.h>
#include <init.h>
#include <asm/io.h>
#include <asm/addrspace.h>
* Copyright (C) 2015-2016 Wills Wang <wills.wang@live.com>
*/
+#include <common.h>
#include <init.h>
#include <asm/io.h>
#include <asm/addrspace.h>
* Copyright (C) 2018 Rosy Song <rosysong@rosinson.com>
*/
+#include <common.h>
#include <init.h>
#include <asm/io.h>
#include <asm/addrspace.h>
*/
#include <button.h>
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <dm/pinctrl.h>
#include <asm/global_data.h>
#include <linux/arm-smccc.h>
#include <linux/psci.h>
+#include <common.h>
#include <dm.h>
#include <asm/io.h>
#include <linux/bitops.h>
* Simon Baatz <gmbnomis@gmail.com>
*/
+#include <common.h>
#include <init.h>
#include <miiphy.h>
#include <asm/global_data.h>
* (C) Copyright 2012-2016 Stephen Warren
*/
+#include <common.h>
#include <config.h>
#include <dm.h>
#include <env.h>
#include <asm/processor.h>
#include <linux/errno.h>
#include <asm/system.h>
+#include <asm/u-boot.h>
DECLARE_GLOBAL_DATA_PTR;
#include <asm/global_data.h>
#include <asm/io.h>
#include <asm/arch/sys_proto.h>
+#include <asm/u-boot.h>
#define RZA1_WDT_BASE 0xfcfe0000
#define WTCSR 0x00
* (C) Copyright 2015 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
#include <asm/io.h>
#include <asm/arch-rockchip/uart.h>
* (C) Copyright 2018 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <adc.h>
#include <asm/global_data.h>
* Authors: Andy Yan <andy.yan@rock-chips.com>
*/
+#include <common.h>
#include <init.h>
#include <syscon.h>
#include <asm/global_data.h>
* (C) Copyright 2015 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
#include <env.h>
#include <init.h>
* (C) Copyright 2016 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
+#include <eeprom.h>
#include <env.h>
#include <i2c_eeprom.h>
#include <init.h>
#include <asm/mach-imx/iomux-v3.h>
#include <asm/mach-imx/mxc_i2c.h>
#include <asm/io.h>
+#include <common.h>
#include <i2c.h>
#include <miiphy.h>
#include <power/pmic.h>
* Author: Ilko Iliev <iliev@ronetix.at>
*/
+#include <common.h>
#include <cpu_func.h>
#include <init.h>
#include <asm/arch/clock.h>
* Copyright 2018 NXP
*/
+#include <common.h>
#include <miiphy.h>
#include <asm-generic/gpio.h>
#include <asm/arch/imx8mq_pins.h>
*/
#include <linux/kernel.h>
+#include <common.h>
#include <asm/arch/ddr.h>
#include <asm/arch/lpddr4_define.h>
*
*/
-#include <config.h>
+#include <common.h>
#include <hang.h>
#include <init.h>
#include <asm/arch/ddr.h>
* Copyright (C) 2009 Jean-Christopher PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <vsprintf.h>
#include <asm/global_data.h>
* Copyright (C) 2009 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <linux/sizes.h>
* Lead Tech Design <www.leadtechdesign.com>
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <linux/sizes.h>
* Copyright (C) 2013 Samsung Electronics
*/
-#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <init.h>
#include <log.h>
* Copyright (c) 2012 The Chromium OS Authors.
*/
+#include <common.h>
#include <asm/arch/spl.h>
#define SIGNATURE 0xdeadbeef
* Rajeshwari Shinde <rajeshwari.s@samsung.com>
*/
-#include <config.h>
+#include <common.h>
#include <cros_ec.h>
#include <env.h>
#include <errno.h>
* Przemyslaw Marczak <p.marczak@samsung.com>
*/
-#include <config.h>
+#include <common.h>
#include <adc.h>
#include <dm.h>
#include <errno.h>
* Copyright (C) 2012 Samsung Electronics
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <dwc3-uboot.h>
#include <env.h>
* Lukasz Majewski <l.majewski@samsung.com>
*/
-#include <linux/string.h>
+#include <common.h>
#include <linux/usb/ch9.h>
#define EXYNOS_G_DNL_THOR_VENDOR_NUM 0x04E8
* Przemyslaw Marczak <p.marczak@samsung.com>
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <env.h>
#include <libtizen.h>
#define LOG_CATEGORY UCLASS_ETH
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <asm/arch/pinmux.h>
* Kyungmin Park <kyungmin.park@samsung.com>
*/
+#include <common.h>
#include <init.h>
#include <log.h>
#include <asm/global_data.h>
* Kyungmin Park <kyungmin.park@samsung.com>
*/
-#include <config.h>
+#include <common.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/onenand.h>
#include <linux/mtd/samsung_onenand.h>
* Przemyslaw Marczak <p.marczak@samsung.com>
*/
-#include <config.h>
+#include <common.h>
#include <log.h>
#include <asm/arch/pinmux.h>
#include <asm/arch/power.h>
* Copyright (C) 2011 Samsung Electronics
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/gpio.h>
#include <asm/arch/cpu.h>
* Copyright (c) 2012 The Chromium OS Authors.
*/
+#include <common.h>
#include <asm/arch/cpu.h>
#include <asm/arch/spl.h>
#include <asm/arch/clk.h>
* Copyright (C) 2013 The Chromium OS Authors.
*/
+#include <common.h>
#include <asm/arch/cpu.h>
#include <asm/arch/spl.h>
#include <asm/arch/clk.h>
* Kyungmin Park <kyungmin.park@samsung.com>
*/
+#include <common.h>
#include <linux/compat.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/onenand.h>
* Kyungmin Park <kyungmin.park@samsung.com>
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <net.h>
#include <asm/global_data.h>
* Copyright (C) 2011 Samsung Electronics
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <log.h>
#include <net.h>
* Donghwa Lee <dh09.lee@samsung.com>
*/
+#include <common.h>
#include <env.h>
#include <log.h>
#include <asm/io.h>
* Piotr Wilczek <p.wilczek@samsung.com>
*/
+#include <common.h>
#include <log.h>
#include <asm/gpio.h>
#include <asm/arch/pinmux.h>
* Kyungmin Park <kyungmin.park@samsung.com>
*/
-#include <config.h>
+#include <common.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/onenand.h>
#include <linux/mtd/samsung_onenand.h>
* Kyungmin Park <kyungmin.park@samsung.com>
*/
+#include <common.h>
#include <env.h>
#include <log.h>
#include <spi.h>
// SPDX-License-Identifier: GPL-2.0+
+#include <common.h>
#include <dm.h>
#include <ram.h>
#include <asm/global_data.h>
* Copyright (C) 2018 Stefan Roese <sr@denx.de>
*/
+#include <common.h>
#include <init.h>
#include <asm/io.h>
#include <linux/bitops.h>
* Author: Navin Sankar Velliangiri <navin@linumiz.com>
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <spl.h>
#include <asm/arch/clock.h>
* Copyright 2019 Siemens AG
*
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <env.h>
* Copyright 2019 Siemens AG
*
*/
+#include <common.h>
#include <init.h>
#include <spl.h>
#include <dm.h>
* Lead Tech Design <www.leadtechdesign.com>
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <init.h>
#include <log.h>
* Jan Kiszka <jan.kiszka@siemens.com>
*/
-#include <config.h>
+#include <common.h>
#include <bootstage.h>
#include <dm.h>
#include <fdt_support.h>
* DENX Software Engineering GmbH
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <init.h>
#include <net.h>
*/
#include <command.h>
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <env.h>
#include <init.h>
* Copyright (C) 2021 Renesas Electronics Corporation
*/
+#include <common.h>
#include <asm/global_data.h>
-#include <asm/u-boot.h>
#include <asm/io.h>
#define RST_BASE 0xE6160000
* Copyright (C) 2019-20 Sean Anderson <seanga2@gmail.com>
*/
-#include <config.h>
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <fdt_support.h>
* Board init file for Skyworth HC2910 2AGHD05
*/
+#include <common.h>
#include <fdtdec.h>
#include <init.h>
#include <asm/system.h>
#include <asm/armv8/mmu.h>
#include <asm/global_data.h>
#include <asm/io.h>
-#include <config.h>
+#include <common.h>
#include <efi.h>
#include <efi_loader.h>
#include <env_internal.h>
* Copyright 2008 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <fsl_ddr_sdram.h>
#include <fsl_ddr_dimm_params.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
* Sergei Poselenov, Emcraft Systems, sposelenov@emcraft.com.
*/
-#include <config.h>
+#include <common.h>
#if defined(CFG_SYS_NAND_BASE)
#include <nand.h>
* Sergei Poselenov, Emcraft Systems, sposelenov@emcraft.com.
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/processor.h>
#include <asm/immap_85xx.h>
* (C) Copyright 2002 Scott McNutt <smcnutt@artesyncp.com>
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <env.h>
#include <init.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <asm/mmu.h>
-#include <asm/ppc.h>
struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 0 - for temp stack in cache */
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/sizes.h>
-#include <config.h>
+#include <common.h>
#include <fsl_esdhc_imx.h>
#include <mmc.h>
#include <i2c.h>
* Copyright (C) 2012 Altera Corporation <www.altera.com>
*/
-#include <config.h>
+#include <common.h>
#include <eeprom.h>
#include <env.h>
#include <init.h>
* Copyright (C) 2015 Stefan Roese <sr@denx.de>
*/
-#include <config.h>
+#include <common.h>
#include <env.h>
#include <i2c.h>
#include <init.h>
* Copyright 2020 SolidRun
*/
+#include <common.h>
#include <compiler.h>
#include <tlv_eeprom.h>
-#include <linux/kernel.h>
#include "tlv_data.h"
#define SR_TLV_CODE_RAM_SIZE 0x81
* Ported to SolidRun microSOM by Rabeeh Khoury <rabeeh@solid-run.com>
*/
-#include <config.h>
+#include <common.h>
#include <image.h>
#include <init.h>
#include <log.h>
#include <asm/mach-imx/iomux-v3.h>
#include <asm/mach-imx/mxc_i2c.h>
#include <asm/io.h>
+#include <common.h>
#include <env.h>
#include <fsl_esdhc_imx.h>
#include <i2c.h>
* Copyright (C) 2015 Stefan Roese <sr@denx.de>
*/
+#include <common.h>
#include <init.h>
#include <asm/arch/reset_manager.h>
#include <asm/gpio.h>
*/
#ifndef CONFIG_SPL_BUILD
+#include <common.h>
#include <command.h>
#include <console.h>
#include <misc.h>
* Copyright (C) 2020, STMicroelectronics - All Rights Reserved
*/
+#include <common.h>
#include <blk.h>
#include <dm.h>
#include <dfu.h>
* Copyright (C) 2023, STMicroelectronics - All Rights Reserved
*/
+#include <common.h>
#include <dfu.h>
#include <dm.h>
#include <misc.h>
#define LOG_CATEGORY LOGC_BOARD
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <asm/io.h>
#define LOG_CATEGORY UCLASS_I2C_GENERIC
+#include <common.h>
#include <dm.h>
#include <i2c.h>
* Author(s): Patrice Chotard, <patrice.chotard@foss.st.com> for STMicroelectronics.
*/
+#include <common.h>
#include <cpu_func.h>
#include <init.h>
#include <asm/cache.h>
* Kamil Lulko, <kamil.lulko@gmail.com>
*/
+#include <common.h>
#include <status_led.h>
#include <asm-generic/gpio.h>
* Kamil Lulko, <kamil.lulko@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <env.h>
#include <init.h>
* Author(s): Patrice Chotard, <patrice.chotard@foss.st.com> for STMicroelectronics.
*/
+#include <common.h>
#include <dm.h>
#include <env.h>
#include <init.h>
* Author(s): Patrice CHOTARD, <patrice.chotard@foss.st.com> for STMicroelectronics.
*/
+#include <common.h>
#include <dm.h>
#include <env.h>
#include <init.h>
* Author(s): Vikas Manocha, <vikas.manocha@st.com> for STMicroelectronics.
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <init.h>
#include <log.h>
* Author(s): Patrice Chotard, <patrice.chotard@foss.st.com> for STMicroelectronics.
*/
+#include <common.h>
#include <dm.h>
#include <init.h>
#include <log.h>
* Author(s): Patrice Chotard, <patrice.chotard@foss.st.com> for STMicroelectronics.
*/
+#include <common.h>
#include <dm.h>
#include <init.h>
#include <log.h>
* Author(s): Dillon Min <dillon.minfei@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <init.h>
#include <log.h>
*/
#include <config.h>
+#include <common.h>
#include <power/pmic.h>
#include <power/stpmic1.h>
#include <asm/arch/sys_proto.h>
#define LOG_CATEGORY LOGC_BOARD
+#include <common.h>
#include <adc.h>
#include <bootm.h>
#include <button.h>
/*
* Copyright (C) 2019 Stephan Gerhold <stephan@gerhold.net>
*/
+#include <common.h>
#include <env.h>
#include <fdt_support.h>
#include <init.h>
#include <log.h>
#include <stdlib.h>
-#include <linux/errno.h>
#include <asm/global_data.h>
#include <asm/setup.h>
#include <asm/system.h>
#include <asm/mach-imx/hab.h>
#include <asm/mach-imx/iomux-v3.h>
#include <asm/io.h>
+#include <common.h>
#include <env.h>
#include <env_internal.h>
#include <asm/arch/crm_regs.h>
* Some board init for the Allwinner A10-evb board.
*/
+#include <common.h>
#include <clock_legacy.h>
#include <dm.h>
#include <env.h>
* Based on initial code from Maxime Ripard
*/
+#include <common.h>
#include <malloc.h>
#include <dm.h>
#include <w1.h>
+#include <common.h>
#include <init.h>
#include <asm/arch/dram.h>
/* DRAM parameters for auto dram configuration on sun5i and sun7i */
+#include <common.h>
#include <init.h>
#include <asm/arch/dram.h>
+#include <common.h>
#include <netdev.h>
#include <miiphy.h>
#include <asm/io.h>
* This file copies memory testdram() from sandburst/common/sb_common.c
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/immap.h>
* (C) Copyright 2017 Angelo Dureghello <angelo@sysam.it>
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <spi.h>
#include <asm/global_data.h>
* Copyright (C) 2011, Texas Instruments, Incorporated - https://www.ti.com/
*/
-#include <config.h>
+#include <common.h>
#include <env.h>
#include <errno.h>
#include <init.h>
* Copyright (C) 2011, Texas Instruments, Incorporated - https://www.ti.com/
*/
+#include <common.h>
#include <asm/arch/sys_proto.h>
#include <asm/arch/hardware.h>
#include <asm/arch/mux.h>
* Author: Fabio Estevam <festevam@gmail.com>
*/
+#include <common.h>
#include <env.h>
#include <init.h>
#include <net.h>
* Fabio Estevam <festevam@gmail.com>
*/
+#include <common.h>
#include <image.h>
#include <init.h>
#include <asm/arch/clock.h>
#include <asm/gpio.h>
#include <asm/mach-imx/iomux-v3.h>
#include <asm/io.h>
+#include <common.h>
#include <miiphy.h>
#include <linux/delay.h>
#include <linux/sizes.h>
// SPDX-License-Identifier: GPL-2.0+
+#include <common.h>
#include <cpu_func.h>
#include <hang.h>
#include <init.h>
#include <asm/mach-imx/iomux-v3.h>
#include <asm/mach-imx/boot_mode.h>
#include <asm/io.h>
+#include <common.h>
#include <miiphy.h>
#include <power/pmic.h>
#include <power/pfuze3000_pmic.h>
* Author: Richard Hu <richard.hu@technexion.com>
*/
-#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <init.h>
#include <asm/arch/clock.h>
*/
#include <linux/kernel.h>
+#include <common.h>
#include <asm/arch/ddr.h>
#include <asm/arch/lpddr4_define.h>
*/
#include <linux/kernel.h>
+#include <common.h>
#include <asm/arch/ddr.h>
#include <asm/arch/lpddr4_define.h>
*/
#include <linux/kernel.h>
+#include <common.h>
#include <asm/arch/ddr.h>
#include <asm/arch/lpddr4_define.h>
*/
#include <linux/kernel.h>
+#include <common.h>
#include <asm/arch/ddr.h>
#include <asm/arch/lpddr4_define.h>
* Copyright 2018 NXP
*/
+#include <common.h>
#include <env.h>
#include <init.h>
#include <malloc.h>
* Copyright 2018 NXP
*/
+#include <common.h>
#include <hang.h>
#include <init.h>
#include <log.h>
/*
* Copyright (C) 2012 Altera Corporation <www.altera.com>
*/
+#include <common.h>
#include <spl.h>
void board_boot_order(u32 *spl_boot_list)
*
*/
+#include <common.h>
#include <cpu_func.h>
int board_init(void)
* Copyright (C) 2016 Stefan Roese <sr@denx.de>
*/
+#include <common.h>
#include <altera.h>
#include <errno.h>
#include <log.h>
-#include <time.h>
#include <asm/gpio.h>
#include <asm/io.h>
#include <asm/arch/cpu.h>
* Copyright (C) 2015-2019 Stefan Roese <sr@denx.de>
*/
+#include <common.h>
#include <command.h>
#include <console.h>
#include <dm.h>
* Copyright (C) 2011, Texas Instruments, Incorporated - https://www.ti.com/
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <env.h>
#include <errno.h>
#ifndef _BOARD_H_
#define _BOARD_H_
-#include <linux/string.h>
-
/**
* AM335X (EMIF_4D) EMIF REG_COS_COUNT_1, REG_COS_COUNT_2, and
* REG_PR_OLD_COUNT values to avoid LCDC DMA FIFO underflows and Frame
* GNU General Public License for more details.
*/
-#include <config.h>
+#include <common.h>
#include <asm/arch/sys_proto.h>
#include <asm/arch/hardware.h>
#include <asm/arch/mux.h>
* Copyright (C) 2013, Texas Instruments, Incorporated - https://www.ti.com/
*/
-#include <config.h>
+#include <common.h>
+#include <eeprom.h>
#include <asm/global_data.h>
#include <dm/uclass.h>
#include <env.h>
#ifndef _BOARD_H_
#define _BOARD_H_
-#include <linux/string.h>
#include <asm/arch/omap.h>
#define DEV_ATTR_MAX_OFFSET 5
* Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/
*/
+#include <common.h>
#include <asm/arch/sys_proto.h>
#include <asm/arch/mux.h>
#include "../common/board_detect.h"
* Based on board/ti/dra7xx/evm.c
*/
-#include <config.h>
+#include <common.h>
#include <env.h>
#include <fastboot.h>
#include <fdt_support.h>
* Steve Kipisz
*/
+#include <common.h>
+#include <eeprom.h>
#include <log.h>
#include <net.h>
-#include <linux/types.h>
#include <asm/arch/hardware.h>
#include <asm/omap_common.h>
#include <dm/uclass.h>
* Köry Maincent, Bootlin, <kory.maincent@bootlin.com>
*/
-#include <stdio.h>
+#include <common.h>
#include <malloc.h>
#include <i2c.h>
#include <extension_board.h>
-#include <vsprintf.h>
#include "cape_detect.h"
* Aneesh V <aneesh@ti.com>
* Steve Sakoman <steve@sakoman.com>
*/
-#include <config.h>
+#include <common.h>
#include <env.h>
#include <fdt_support.h>
#include <fastboot.h>
* Texas Instruments Incorporated, <www.ti.com>
*/
-#include <config.h>
+#include <common.h>
#include <asm/global_data.h>
#include "board.h"
#include <env.h>
* Texas Instruments Incorporated, <www.ti.com>
*/
+#include <common.h>
#include <image.h>
#include <init.h>
#include <asm/arch/ddr3.h>
* (C) Copyright 2015
* Texas Instruments Incorporated, <www.ti.com>
*/
-#include <config.h>
+#include <common.h>
+#include <eeprom.h>
#include <env.h>
#include <hang.h>
#include <image.h>
* Texas Instruments Incorporated, <www.ti.com>
*/
+#include <common.h>
#include <image.h>
#include <init.h>
#include <asm/arch/clock.h>
* Texas Instruments Incorporated, <www.ti.com>
*/
+#include <common.h>
#include <image.h>
#include <init.h>
#include <asm/arch/ddr3.h>
* Texas Instruments Incorporated, <www.ti.com>
*/
+#include <common.h>
#include <asm/arch/ddr3.h>
#include "ddr3_cfg.h"
* Texas Instruments Incorporated, <www.ti.com>
*/
+#include <common.h>
#include "ddr3_cfg.h"
#include <asm/arch/ddr3.h>
* Texas Instruments Incorporated, <www.ti.com>
*/
+#include <common.h>
#include "ddr3_cfg.h"
#include <asm/arch/ddr3.h>
#include <asm/arch/hardware.h>
* Texas Instruments Incorporated, <www.ti.com>
*/
+#include <common.h>
#include "ddr3_cfg.h"
#include <asm/arch/ddr3.h>
#include <asm/arch/hardware.h>
* Texas Instruments Incorporated, <www.ti.com>
*/
+#include <common.h>
#include "ddr3_cfg.h"
#include <asm/arch/ddr3.h>
* Richard Woodruff <r-woodruff2@ti.com>
* Syed Mohammed Khasim <khasim@ti.com>
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <env.h>
#include <init.h>
* Texas Instruments Incorporated, <www.ti.com>
* Steve Sakoman <steve@sakoman.com>
*/
+#include <common.h>
#include <init.h>
#include <log.h>
#include <net.h>
* Copyright (C) 2010 Texas Instruments
*/
+#include <common.h>
#include <command.h>
#ifdef CONFIG_CMD_BAT
* Aneesh V <aneesh@ti.com>
* Steve Sakoman <steve@sakoman.com>
*/
+#include <common.h>
#include <init.h>
#include <net.h>
#include <twl6030.h>
* Copyright (C) 2011-2015 Vladimir Zapolskiy <vz@mleia.com>
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/arch/sys_proto.h>
#include <asm/arch/clk.h>
* (C) Copyright 2015 Vladimir Zapolskiy <vz@mleia.com>
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/sys_proto.h>
#include <asm/arch/cpu.h>
* Syed Mohammed Khasim <khasim@ti.com>
*
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <env.h>
#include <init.h>
* Copyright 2019 Toradex
*/
+#include <common.h>
#include <cpu_func.h>
#include <init.h>
#include <asm/global_data.h>
* Copyright (c) 2016-2018 Toradex, Inc.
*/
+#include <common.h>
#include <dm.h>
#include <env.h>
#include <init.h>
* Copyright (c) 2012-2016 Toradex, Inc.
*/
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <asm/arch-tegra/tegra_i2c.h>
* copied from nitrogen6x
*/
-#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <image.h>
* Helpers for i.MX OTP fusing during module production
*/
+#include <common.h>
#ifndef CONFIG_SPL_BUILD
#include <command.h>
#include <console.h>
* Helpers for Freescale PMIC PF0100
*/
+#include <common.h>
#include <command.h>
#include <i2c.h>
#include <asm/arch/imx-regs.h>
* Svyatoslav Ryhel <clamor95@gmail.com>
*/
+#include <common.h>
#include <asm/arch-tegra/tegra_i2c.h>
#include <linux/delay.h>
* Marcel Ziswiler <marcel@ziswiler.com>
*/
+#include <common.h>
#include <env.h>
#include <init.h>
#include <log.h>
/*
* Copyright (C) 2018-2019 Toradex AG
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <linux/delay.h>
* Copyright 2019 Toradex
*/
+#include <common.h>
#include <cpu_func.h>
#include <init.h>
#include <asm/global_data.h>
* copied from nitrogen6x
*/
-#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <env.h>
* Helpers for i.MX OTP fusing during module production
*/
+#include <common.h>
#ifndef CONFIG_SPL_BUILD
#include <command.h>
#include <console.h>
* Helpers for Freescale PMIC PF0100
*/
+#include <common.h>
#include <command.h>
#include <i2c.h>
#include <asm/arch/imx-regs.h>
* Copyright (C) 2016-2018 Toradex AG
*/
+#include <common.h>
#include <cpu_func.h>
#include <init.h>
#include <net.h>
* Copyright (C) 2012 Lucas Stach
*/
+#include <common.h>
#include <env.h>
#include <fdt_support.h>
#include <init.h>
* Svyatoslav Ryhel <clamor95@gmail.com>
*/
+#include <common.h>
#include <asm/arch-tegra/tegra_i2c.h>
#include <linux/delay.h>
* Stefan Agner <stefan@agner.ch>
*/
+#include <common.h>
#include <env.h>
#include <init.h>
#include <asm/arch/gp_padctrl.h>
* Copyright 2013 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
* Copyright (c) 2016-2020 Toradex
*/
-#include <config.h>
+#include <common.h>
#include <asm/global_data.h>
#include "tdx-cfg-block.h"
#include "tdx-eeprom.h"
*/
#include <dm.h>
-#include <config.h>
+#include <common.h>
#include <env.h>
#include <g_dnl.h>
#include <init.h>
* Copyright 2020 Toradex
*/
+#include <common.h>
#include <command.h>
#include <image.h>
#include <init.h>
* Copyright 2020-2021 Toradex
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/arch/clock.h>
#include <asm/arch/sys_proto.h>
* Copyright 2022 Toradex
*/
+#include <common.h>
#include <hang.h>
#include <init.h>
#include <log.h>
* Copyright 2022 Toradex
*/
-#include <config.h>
+#include <common.h>
#include <asm/arch/clock.h>
#include <asm/arch/imx8mp_pins.h>
#include <asm/arch/sys_proto.h>
* Copyright (C) 2016 Marek Vasut <marex@denx.de>
*/
+#include <common.h>
#include <init.h>
#include <asm/io.h>
#include <asm/addrspace.h>
#include <asm/io.h>
#include <asm/mach-imx/mxc_i2c.h>
#include <asm/mach-imx/spi.h>
+#include <common.h>
#include <fsl_esdhc_imx.h>
#include <linux/libfdt.h>
#include <i2c.h>
#include <asm/gpio.h>
#include <asm/mach-imx/mxc_i2c.h>
+#include <common.h>
#include <fsl_esdhc_imx.h>
#include <linux/libfdt.h>
#include <malloc.h>
#include <asm/mach-imx/boot_mode.h>
#include <asm/mach-imx/mxc_i2c.h>
+#include <common.h>
#include <fsl_esdhc_imx.h>
#include <linux/libfdt.h>
#include <malloc.h>
*
*/
+#include <common.h>
#include <dm.h>
#include <misc.h>
#include <i2c.h>
* Copyright 2017 NXP
* Copyright 2019-2021 Traverse Technologies Australia
*/
+#include <common.h>
#include <command.h>
#include <netdev.h>
#include <malloc.h>
* Copyright 2017-2018 NXP
* Copyright 2019-2021 Traverse Technologies
*/
-#include <config.h>
+#include <common.h>
#include <display_options.h>
#include <dm/uclass.h>
#include <env.h>
#include <spl.h>
#include <linux/delay.h>
#include <linux/sizes.h>
+#include <common.h>
#include <i2c.h>
#include <power/pmic.h>
#include <power/pfuze3000_pmic.h>
* Based on board/wandboard/spl.c
*/
+#include <common.h>
#include <init.h>
#include <asm/arch/clock.h>
#include <asm/arch/imx-regs.h>
* Copyright (C) 2019 Parthiban Nallathambi <parthitce@gmail.com>
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <spl.h>
#include <asm/arch/clock.h>
* Copyright 2023 DimOnOff Inc.
*/
+#include <common.h>
#include <dm.h>
#include <env.h>
#include <fdtdec.h>
* Copyright (C) 2011, Texas Instruments, Incorporated - https://www.ti.com/
*/
-#include <config.h>
+#include <common.h>
#include <env.h>
#include <errno.h>
#include <init.h>
* GNU General Public License for more details.
*/
+#include <common.h>
#include <asm/arch/sys_proto.h>
#include <asm/arch/hardware.h>
#include <asm/arch/mux.h>
* Richard Hu <hakahu@gmail.com>
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/arch/clock.h>
#include <asm/arch/imx-regs.h>
* Author: Fabio Estevam <fabio.estevam@freescale.com>
*/
+#include <common.h>
#include <image.h>
#include <init.h>
#include <log.h>
#include <asm/mach-imx/hab.h>
#include <asm/mach-imx/iomux-v3.h>
#include <asm/io.h>
+#include <common.h>
#include <env.h>
#include <asm/arch/crm_regs.h>
#include <netdev.h>
* Written-by: Albert ARIBAUD <albert.aribaud@3adev.fr>
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/io.h>
* MAX518 I2C DACs and native LPC32xx GPO 15.
*/
+#include <common.h>
#include <command.h>
#include <log.h>
#include <asm/arch/sys_proto.h>
* Written-by: Albert ARIBAUD <albert.aribaud@3adev.fr>
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/sys_proto.h>
#include <asm/arch/cpu.h>
* (C) 2020 EPAM Systems Inc
*/
+#include <common.h>
#include <log.h>
#include <cpu_func.h>
#include <dm.h>
* Michal Simek <michal.simek@amd.com>
*/
+#include <common.h>
#include <efi.h>
#include <efi_loader.h>
#include <env.h>
* Michal Simek <michal.simek@amd.com>
*/
+#include <common.h>
#include <init.h>
#include <soc.h>
* (C) Copyright 2019 - 2020 Xilinx, Inc.
*/
+#include <common.h>
#include <command.h>
#include <fdtdec.h>
#include <malloc.h>
* (C) Copyright 2022 - 2023, Advanced Micro Devices, Inc.
*/
+#include <common.h>
#include <cpu_func.h>
#include <env.h>
#include <fdtdec.h>
#include <log.h>
#include <malloc.h>
#include <net.h>
-#include <linux/errno.h>
#include <asm/io.h>
#include <asm/arch/hardware.h>
* Michal Simek <michal.simek@amd.com>
*/
+#include <common.h>
#include <cpu_func.h>
#include <fdtdec.h>
#include <init.h>
#include <cpu_func.h>
#include <command.h>
+#include <common.h>
#include <log.h>
#include <memalign.h>
#include <versalpl.h>
-#include <vsprintf.h>
#include <zynqmp_firmware.h>
/**
*/
#include <command.h>
+#include <common.h>
#include <cpu_func.h>
#include <env.h>
#include <fdtdec.h>
#include <cpu_func.h>
#include <command.h>
+#include <common.h>
#include <log.h>
#include <memalign.h>
#include <versalpl.h>
-#include <vsprintf.h>
#include <zynqmp_firmware.h>
static int do_versal_load_pdi(struct cmd_tbl *cmdtp, int flag, int argc,
* (C) Copyright 2013 - 2018 Xilinx, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <debug_uart.h>
#include <dfu.h>
#include <init.h>
* Copyright (C) 2018 Xilinx, Inc.
*/
+#include <common.h>
#include <log.h>
#include <part.h>
#include <asm/global_data.h>
* Copyright (C) 2018 Xilinx, Inc.
*/
+#include <common.h>
#include <command.h>
#include <log.h>
#include <asm/global_data.h>
* Siva Durga Prasad Paladugu <siva.durga.prasad.paladugu@amd.com>>
*/
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <env.h>
#include <malloc.h>
#include <memalign.h>
-#include <vsprintf.h>
#include <zynqmp_firmware.h>
-#include <linux/errno.h>
#include <asm/arch/hardware.h>
#include <asm/arch/sys_proto.h>
#include <asm/io.h>
* Michal Simek <michal.simek@amd.com>
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <debug_uart.h>
* (C) Copyright 2018 Xilinx, Inc. (Michal Simek)
*/
+#include <common.h>
#include <fdtdec.h>
#include <init.h>
-#include <linux/errno.h>
int board_init(void)
{
* Copyright (C) 2015 Gerald Kerma <dreagle@doukki.net>
*/
+#include <common.h>
#include <init.h>
#include <netdev.h>
#include <asm/arch/cpu.h>
* Marvell Semiconductor <www.marvell.com>
*/
+#include <common.h>
#include <asm/arch/soc.h>
#include <asm/arch/mpp.h>
#include <netdev.h>
/*
* Copyright (C) 2017 The Android Open Source Project
*/
+#include <common.h>
#include <android_ab.h>
#include <android_bootloader_message.h>
#include <blk.h>
*/
#include <boot_fit.h>
+#include <common.h>
#include <errno.h>
#include <image.h>
#include <log.h>
#define LOG_CATEGORY UCLASS_BOOTSTD
+#include <common.h>
#include <dm.h>
#include <bootdev.h>
#include <bootflow.h>
#define LOG_CATEGORY UCLASS_BOOTSTD
+#include <common.h>
#include <bootdev.h>
#include <bootflow.h>
#include <bootmeth.h>
#define LOG_CATEGORY UCLASS_BOOTSTD
+#include <common.h>
#include <bootflow.h>
#include <bootstd.h>
#include <cli.h>
*/
#ifndef USE_HOSTCC
+#include <common.h>
#include <bootm.h>
#include <bootstage.h>
#include <cli.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <bootm.h>
#include <bootstage.h>
#include <cpu_func.h>
#define LOG_CATEGORY UCLASS_BOOTSTD
+#include <common.h>
#include <blk.h>
#include <bootflow.h>
#include <bootmeth.h>
#define LOG_CATEGORY UCLASS_BOOTSTD
+#include <common.h>
#include <blk.h>
#include <bootdev.h>
#include <bootflow.h>
#define LOG_CATEGORY UCLASS_BOOTSTD
+#include <common.h>
#include <bootdev.h>
#include <bootflow.h>
#include <bootmeth.h>
#define LOG_CATEGORY UCLASS_BOOTSTD
+#include <common.h>
#include <bootdev.h>
#include <bootflow.h>
#include <bootmeth.h>
#define LOG_CATEGORY UCLASS_BOOTSTD
+#include <common.h>
#include <bootdev.h>
#include <bootflow.h>
#include <bootmeth.h>
#define LOG_CATEGORY UCLASS_BOOTSTD
+#include <common.h>
#include <bootdev.h>
#include <bootflow.h>
#include <bootmeth.h>
#define LOG_CATEGORY UCLASS_BOOTSTD
+#include <common.h>
#include <command.h>
#include <bootdev.h>
#include <bootflow.h>
#define LOG_CATEGORY UCLASS_BOOTSTD
+#include <common.h>
#include <bootdev.h>
#include <bootflow.h>
#include <bootmeth.h>
#define LOG_CATEGORY UCLASS_BOOTSTD
+#include <common.h>
#include <blk.h>
#include <bootflow.h>
#include <bootmeth.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <stdio.h>
+#include <common.h>
#include <bootretry.h>
#include <cli.h>
#include <env.h>
#include <errno.h>
#include <time.h>
-#include <vsprintf.h>
#include <watchdog.h>
static uint64_t endtime; /* must be set, default is instant timeout */
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <bootflow.h>
#include <bootstd.h>
#include <dm.h>
#define LOG_CATEGORY LOGC_EXPO
+#include <common.h>
#include <abuf.h>
#include <cedit.h>
#include <cli.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <errno.h>
#include <image.h>
#include <log.h>
#define LOG_CATEGORY LOGC_EXPO
+#include <common.h>
#include <dm.h>
#include <expo.h>
#include <malloc.h>
#define LOG_CATEGORY LOGC_EXPO
+#include <common.h>
#include <expo.h>
#include <fdtdec.h>
#include <log.h>
* Stephen Warren <swarren@wwwdotorg.org>
*/
+#include <common.h>
#include <dm.h>
#include <fdt_support.h>
#include <asm/global_data.h>
* Copyright 2010-2011 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <abuf.h>
#include <env.h>
#include <log.h>
#include <image-android-dt.h>
#include <dt_table.h>
+#include <common.h>
#include <linux/libfdt.h>
#include <mapmem.h>
* Copyright (c) 2011 Sebastian Andrzej Siewior <bigeasy@linutronix.de>
*/
+#include <common.h>
#include <env.h>
#include <image.h>
#include <image-android-dt.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <bootstage.h>
#include <cpu_func.h>
#include <display_options.h>
#include "mkimage.h"
#include <time.h>
#else
+#include <common.h>
#include <malloc.h>
#include <asm/global_data.h>
DECLARE_GLOBAL_DATA_PTR;
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <command.h>
#include <fdt_support.h>
#include <fdtdec.h>
#include "mkimage.h"
#include <time.h>
#else
+#include <common.h>
#include <log.h>
#include <malloc.h>
#include <asm/global_data.h>
#else
#include <linux/compiler.h>
#include <linux/sizes.h>
+#include <common.h>
#include <errno.h>
#include <log.h>
#include <mapmem.h>
* Copyright (C) 2021 Philippe Reynes <philippe.reynes@softathome.com>
*/
+#include <common.h>
#include <asm/global_data.h>
DECLARE_GLOBAL_DATA_PTR;
#include <image.h>
* Copyright (c) 2013, Google Inc.
*/
+#include <common.h>
#include <log.h>
#include <malloc.h>
#include <asm/global_data.h>
*/
#ifndef USE_HOSTCC
+#include <common.h>
#include <env.h>
#include <display_options.h>
#include <init.h>
* Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved.
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <env.h>
#define LOG_CATEGORY LOGC_EXPO
+#include <common.h>
#include <dm.h>
#include <expo.h>
#include <malloc.h>
#define LOG_CATEGORY LOGC_EXPO
+#include <common.h>
#include <dm.h>
#include <expo.h>
#include <malloc.h>
#define LOG_CATEGORY LOGC_EXPO
+#include <common.h>
#include <expo.h>
#include <menu.h>
-#include <log.h>
#include <video_console.h>
-#include <linux/errno.h>
-#include <linux/string.h>
#include "scene_internal.h"
int scene_textline(struct scene *scn, const char *name, uint id, uint max_chars,
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <bootmeth.h>
#include <bootstd.h>
#include <dm.h>
#define LOG_CATEGORY LOGC_BOOT
+#include <common.h>
#include <dm.h>
#include <event.h>
#include <image.h>
#define LOG_CATEGORY LOGC_BOOT
+#include <common.h>
#include <bootdev.h>
#include <bootflow.h>
#include <bootmeth.h>
#define LOG_CATEGORY LOGC_BOOT
+#include <common.h>
#include <bloblist.h>
#include <bootdev.h>
#include <bootflow.h>
#define LOG_CATEGORY LOGC_BOOT
+#include <common.h>
#include <dm.h>
#include <bootflow.h>
#include <vbe.h>
/* Console version of the game "2048" for GNU/Linux */
+#include <common.h>
#include <cli.h>
#include <command.h>
#include <rand.h>
-#include <vsprintf.h>
#include <linux/delay.h>
#define SIZE 4
config CMD_IMLS
bool "imls"
- depends on MTD_NOR_FLASH || FLASH_CFI_DRIVER
help
List all images found in flash
config SYS_EEPROM_PAGE_WRITE_BITS
int "Number of bits used to address bytes in a single page"
- depends on CMD_EEPROM || ENV_IS_IN_EEPROM
+ depends on CMD_EEPROM
default 8
help
The EEPROM page size is 2^SYS_EEPROM_PAGE_WRITE_BITS.
- Displaying the arm_ffa device info
config CMD_ARMFLASH
+ #depends on FLASH_CFI_DRIVER
bool "armflash"
- depends on FLASH_CFI_DRIVER
help
ARM Ltd reference designs flash partition access
config CMD_FPGAD
bool "fpgad - dump FPGA registers"
- depends on GDSYS_LEGACY_DRIVERS
help
(legacy, needs conversion to driver model)
Provides a way to dump FPGA registers by calling the board-specific
config CMD_TSI148
bool "tsi148 - Command to access tsi148 device"
- depends on DM_PCI_COMPAT
help
This provides various sub-commands to initialise and configure the
Turndra tsi148 device. See the command help for full details.
config CMD_UNIVERSE
bool "universe - Command to set up the Turndra Universe controller"
- depends on DM_PCI_COMPAT
help
This allows setting up the VMEbus provided by this controller.
See the command help for full details.
* Copyright (C) 2017 The Android Open Source Project
*/
+#include <common.h>
#include <android_ab.h>
#include <command.h>
#include <env.h>
*/
#include <android_image.h>
+#include <common.h>
#include <command.h>
#include <image.h>
#include <mapmem.h>
* Copyright 2019 Google LLC
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <command.h>
#include <display_options.h>
#include <log.h>
#include <acpi/acpi_table.h>
#include <asm/acpi_table.h>
#include <asm/global_data.h>
-#include <linux/errno.h>
#include <dm/acpi.h>
DECLARE_GLOBAL_DATA_PTR;
* Copyright (C) 2018 BayLibre, SAS
* Author: Neil Armstrong <narmstrong@baylibre.com>
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <adc.h>
* Copyright (C) 2021, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <command.h>
#include <addr_map.h>
#include <command.h>
#include <env.h>
-#include <vsprintf.h>
#include <image-android-dt.h>
+#include <common.h>
#define OPT_INDEX "--index"
* Command for en/de-crypting block of memory with AES-[128/192/256]-CBC cipher.
*/
+#include <common.h>
#include <command.h>
#include <uboot_aes.h>
#include <malloc.h>
#include <asm/byteorder.h>
#include <linux/compiler.h>
#include <mapmem.h>
-#include <vsprintf.h>
u32 aes_get_key_len(char *command)
{
* Copyright (c) 2018, Heinrich Schuchardt <xypron.glpk@gmx.de>
*/
+#include <common.h>
#include <command.h>
#include <linux/bitops.h>
* Authors:
* Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
*/
+#include <common.h>
#include <arm_ffa.h>
#include <command.h>
#include <dm.h>
*
* Support for ARM Flash Partitions
*/
+#include <common.h>
#include <command.h>
#include <console.h>
#include <flash.h>
-#include <vsprintf.h>
#include <asm/io.h>
#define MAX_REGIONS 4
* SPDX-License-Identifier: GPL-2.0+
*/
+#include <common.h>
#include <axi.h>
#include <command.h>
#include <console.h>
#include <android_bootloader_message.h>
#include <bcb.h>
#include <command.h>
+#include <common.h>
#include <display_options.h>
#include <log.h>
#include <part.h>
#include <malloc.h>
#include <memalign.h>
-#include <vsprintf.h>
#include <linux/err.h>
enum bcb_cmd {
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <env.h>
* Copyright (c) 2018 JJ Hiblot <jjhiblot@ti.com>
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <dm/device-internal.h>
// SPDX-License-Identifier: GPL-2.0+
+#include <common.h>
#include <command.h>
#include <env.h>
#include <hexdump.h>
#include <malloc.h>
#include <mapmem.h>
-#include <vsprintf.h>
#include <linux/ctype.h>
enum {
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <blk.h>
#include <command.h>
#include <mapmem.h>
-#include <vsprintf.h>
int blk_common_cmd(int argc, char *const argv[], enum uclass_id uclass_id,
int *cur_devnump)
*/
#include <command.h>
#include <config.h>
+#include <common.h>
#include <malloc.h>
#include <part.h>
-#include <vsprintf.h>
static int blkc_show(struct cmd_tbl *cmdtp, int flag,
int argc, char *const argv[])
#include <blk.h>
#include <blkmap.h>
+#include <common.h>
#include <command.h>
#include <malloc.h>
#include <dm/device.h>
* Command for encapsulating/decapsulating blob of memory.
*/
+#include <common.h>
#include <command.h>
#include <malloc.h>
-#include <vsprintf.h>
#include <asm/byteorder.h>
#include <linux/compiler.h>
#if defined(CONFIG_ARCH_MX6) || defined(CONFIG_ARCH_MX7) || \
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <bloblist.h>
#include <command.h>
#include <asm/global_data.h>
* BMP handling routines
*/
+#include <common.h>
#include <command.h>
#include <image.h>
#include <mapmem.h>
/*
* Misc boot support
*/
+#include <common.h>
#include <command.h>
#include <net.h>
-#include <vsprintf.h>
#ifdef CONFIG_CMD_GO
// SPDX-License-Identifier: GPL-2.0+
+#include <common.h>
#include <command.h>
#include <bootcount.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <bootdev.h>
#include <bootflow.h>
#include <bootstd.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <bootdev.h>
#include <bootflow.h>
#include <bootm.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <bootm.h>
#include <command.h>
#include <image.h>
/*
* Boot support
*/
+#include <common.h>
#include <bootm.h>
#include <command.h>
#include <env.h>
#include <charset.h>
#include <cli.h>
+#include <common.h>
#include <command.h>
#include <ansi.h>
#include <efi_config.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <bootdev.h>
#include <bootmeth.h>
#include <bootstd.h>
* Copyright (c) 2012, Google Inc. All rights reserved.
*/
+#include <common.h>
#include <bootstage.h>
#include <command.h>
-#include <vsprintf.h>
static int do_bootstage_report(struct cmd_tbl *cmdtp, int flag, int argc,
char *const argv[])
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <bootm.h>
#include <command.h>
#include <image.h>
* Copyright 2020 Broadcom
*/
+#include <common.h>
#include <command.h>
#include <broadcom/chimp.h>
* Copyright 2020 Broadcom
*/
+#include <common.h>
#include <command.h>
#include <broadcom/chimp.h>
* Copyright 2020 Broadcom
*/
+#include <common.h>
#include <command.h>
-#include <vsprintf.h>
#define FW_IMAGE_SIG 0xff123456
#define CFG_IMAGE_SIG 0xcf54321a
* 2017 by Marek Behún <kabel@kernel.org>
*/
+#include <common.h>
#include <command.h>
#include <btrfs.h>
#include <fs.h>
* Based on led.c
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <button.h>
/*
* Cache support: switch on or off, get status
*/
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <linux/compiler.h>
* Roger Knecht <rknecht@pm.de>
*/
+#include <common.h>
#include <command.h>
#include <fs.h>
#include <malloc.h>
/*
* CBFS commands
*/
+#include <common.h>
#include <command.h>
#include <env.h>
#include <cbfs.h>
-#include <vsprintf.h>
static int do_cbfs_init(struct cmd_tbl *cmdtp, int flag, int argc,
char *const argv[])
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <abuf.h>
#include <cedit.h>
#include <command.h>
/*
* Copyright (C) 2013 Xilinx, Inc.
*/
+#include <common.h>
#include <command.h>
#include <clk.h>
#if defined(CONFIG_DM) && defined(CONFIG_CLK)
*
*/
+#include <common.h>
#include <command.h>
#include <malloc.h>
#include <part.h>
#include <blk.h>
-#include <time.h>
#include <vsprintf.h>
#define BUFSIZE (1 * 1024 * 1024)
*
* cls - clear screen command
*/
+#include <common.h>
#include <command.h>
#include <console.h>
#include <dm.h>
* Copyright (C) 2017 Masahiro Yamada <yamada.masahiro@socionext.com>
*/
+#include <common.h>
#include <command.h>
#include <gzip.h>
#include <malloc.h>
*
* Copyright (c) 2018, Heinrich Schuchardt <xypron.glpk@gmx.de>
*/
+#include <common.h>
#include <command.h>
#include <linux/delay.h>
/*
* Boot support
*/
+#include <common.h>
#include <command.h>
#include <iomux.h>
#include <stdio_dev.h>
* Copyright (c) 2017 Álvaro Fernández Rojas <noltari@gmail.com>
*/
+#include <common.h>
#include <command.h>
#include <cpu.h>
#include <display_options.h>
/*
* CRAMFS support
*/
+#include <common.h>
#include <command.h>
#include <env.h>
#include <image.h>
* Copyright (c) 2016 National Instruments Corp
*/
+#include <common.h>
#include <command.h>
#include <cros_ec.h>
#include <dm.h>
* Copyright (C) 2022 Stefan Roese <sr@denx.de>
*/
+#include <common.h>
#include <command.h>
#include <cyclic.h>
#include <div64.h>
#include <malloc.h>
-#include <time.h>
-#include <vsprintf.h>
#include <linux/delay.h>
struct cyclic_demo_info {
/*
* RTC, Date & Time support: get and set date & time
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <rtc.h>
* Pavel Herrmann <morpheus.ibis@gmail.com>
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <dm-demo.h>
* Lukasz Majewski <l.majewski@samsung.com>
*/
+#include <common.h>
#include <command.h>
#include <watchdog.h>
#include <dfu.h>
/*
* Diagnostics support
*/
+#include <common.h>
#include <command.h>
#include <post.h>
* (C) Copyright 2000-2011
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <bootstage.h>
#include <command.h>
#include <cpu_func.h>
* Marek Vasut <marex@denx.de>
*/
+#include <common.h>
#include <command.h>
#include <dm/root.h>
#include <dm/util.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <command.h>
static int do_echo(struct cmd_tbl *cmdtp, int flag, int argc,
*
*/
+#include <common.h>
#include <config.h>
#include <command.h>
#include <eeprom.h>
#include <i2c.h>
#include <eeprom_layout.h>
-#include <vsprintf.h>
#include <linux/delay.h>
#ifndef I2C_RXTX_LEN
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <command.h>
#include <efi.h>
#include <efi_api.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <efi.h>
#include <efi_api.h>
#include <uuid.h>
#include <ansi.h>
#include <cli.h>
+#include <common.h>
#include <charset.h>
#include <efi_loader.h>
#include <efi_load_initrd.h>
*/
#include <ansi.h>
+#include <common.h>
#include <charset.h>
#include <hexdump.h>
#include <log.h>
*/
#include <charset.h>
+#include <common.h>
#include <command.h>
#include <dm/device.h>
#include <efi_dt_fixup.h>
* All rights reserved.
*/
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <elf.h>
* Ethernet Switch commands
*/
+#include <common.h>
#include <command.h>
#include <env.h>
#include <errno.h>
#include <env_flags.h>
#include <ethsw.h>
#include <net.h>
-#include <vsprintf.h>
static const char *ethsw_name;
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <command.h>
#include <event.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <command.h>
-#include <vsprintf.h>
static int do_exit(struct cmd_tbl *cmdtp, int flag, int argc,
char *const argv[])
/*
* Ext2fs support
*/
+#include <common.h>
#include <command.h>
#include <fs.h>
* file in uboot. Added ext4fs ls load and write support.
*/
+#include <common.h>
#include <part.h>
#include <config.h>
#include <command.h>
* Köry Maincent, Bootlin, <kory.maincent@bootlin.com>
*/
+#include <common.h>
#include <bootdev.h>
#include <command.h>
#include <dm.h>
* (C) Copyright 2014 Linaro, Ltd.
* Rob Herring <robh@kernel.org>
*/
+#include <common.h>
#include <command.h>
#include <console.h>
#include <g_dnl.h>
/*
* Boot support
*/
+#include <common.h>
#include <command.h>
#include <mapmem.h>
#include <fat.h>
* Matthew McClintock <msm@freescale.com>
*/
+#include <common.h>
#include <command.h>
#include <env.h>
#include <image.h>
/*
* FLASH support
*/
+#include <common.h>
#include <command.h>
#include <log.h>
-#include <vsprintf.h>
#include <uuid.h>
#if defined(CONFIG_CMD_MTDPARTS)
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <video.h>
/*
* FPGA support
*/
+#include <common.h>
#include <command.h>
#include <env.h>
#include <fpga.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <command.h>
#include <console.h>
#include <display_options.h>
-#include <vsprintf.h>
#include <gdsys_fpga.h>
* Inspired by cmd_ext_common.c, cmd_fat.c.
*/
+#include <common.h>
#include <command.h>
#include <fs.h>
* Copyright (C) 2014, Bachmann electronic GmbH
*/
+#include <common.h>
#include <command.h>
#include <fs.h>
* Martha Marx <mmarx@silicontkx.com>
*/
+#include <common.h>
#include <command.h>
#include <console.h>
#include <fuse.h>
#include <mapmem.h>
-#include <vsprintf.h>
#include <linux/errno.h>
static int strtou32(const char *str, unsigned int base, u32 *result)
/*
* Get Timer overflows after 2^32 / CONFIG_SYS_HZ (32Khz) = 131072 sec
*/
+#include <common.h>
#include <command.h>
-#include <time.h>
static int do_gettime(struct cmd_tbl *cmdtp, int flag, int argc,
char *const argv[])
* Licensed under the GPL-2 or later.
*/
+#include <common.h>
#include <command.h>
#include <errno.h>
#include <dm.h>
* author: Piotr Wilczek <p.wilczek@samsung.com>
*/
+#include <common.h>
#include <blk.h>
#include <env.h>
#include <log.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <command.h>
#include <hash.h>
#include <linux/ctype.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <command.h>
static int do_help(struct cmd_tbl *cmdtp, int flag, int argc,
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <command.h>
#include <cli.h>
* Copyright (c) 2012, Google Inc.
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <fs.h>
* Adapted from cmd_mem.c which is copyright Wolfgang Denk (wd@denx.de).
*/
+#include <common.h>
#include <bootretry.h>
#include <cli.h>
#include <command.h>
* IDE support
*/
+#include <common.h>
#include <blk.h>
#include <dm.h>
#include <config.h>
* http://code.google.com/p/inih/
*/
+#include <common.h>
#include <command.h>
#include <env.h>
-#include <vsprintf.h>
#include <linux/ctype.h>
#include <linux/string.h>
* IO space access commands.
*/
+#include <common.h>
#include <command.h>
#include <display_options.h>
-#include <vsprintf.h>
#include <asm/io.h>
/* Display values from last command */
* Copyright (c) 2014 Google, Inc
*/
+#include <common.h>
#include <command.h>
#include <iotrace.h>
-#include <vsprintf.h>
static void do_print_stats(void)
{
* Copyright 2008 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <config.h>
#include <command.h>
#include <irq_func.h>
* A few parts were lifted from bash 'test' command
*/
+#include <common.h>
#include <config.h>
#include <command.h>
#include <env.h>
#include <mapmem.h>
-#include <vsprintf.h>
#include <asm/io.h>
/*
* JFFS2/CRAMFS support
*/
+#include <common.h>
#include <command.h>
#include <env.h>
#if defined(CONFIG_CMD_FLASH)
* Copyright (c) 2021, Chris Morgan <macromorgan@hotmail.com>
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <hexdump.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <led.h>
// SPDX-License-Identifier: GPL-2.0+
+#include <common.h>
#include <jffs2/jffs2.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h>
* Ulf Samuelsson <ulf.samuelsson@atmel.com>
*/
+#include <common.h>
+#include <config.h>
#include <command.h>
#include <status_led.h>
-#include <vsprintf.h>
struct led_tbl_s {
char *string; /* String for use in the command */
* Author: Harald Welte <laforge@openmoko.org>
*/
+#include <common.h>
#include <command.h>
#include <gzip.h>
#include <malloc.h>
/*
* Serial up- and download support
*/
+#include <common.h>
#include <command.h>
#include <console.h>
#include <cpu_func.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <getopt.h>
* Niel Fourie, DENX Software Engineering, lusus@denx.de.
*/
+#include <common.h>
#include <blk.h>
#include <command.h>
#include <dm.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <command.h>
#include <env.h>
#include <mapmem.h>
-#include <vsprintf.h>
#include <asm/io.h>
#include <lzma/LzmaTools.h>
* based on the gpt command.
*/
+#include <common.h>
#include <blk.h>
#include <command.h>
#include <malloc.h>
#include <part.h>
-#include <vsprintf.h>
/**
* extract_val() - Extract a value from the key=value pair list
* MDIO Commands
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <miiphy.h>
* Copied from FADS ROM, Dan Malek (dmalek@jlc.net)
*/
+#include <common.h>
#include <console.h>
#include <bootretry.h>
#include <cli.h>
#include <log.h>
#include <mapmem.h>
#include <rand.h>
-#include <time.h>
#include <watchdog.h>
#include <asm/global_data.h>
#include <asm/io.h>
*/
#include <command.h>
+#include <common.h>
#include <env.h>
#include <asm/arch/sm.h>
#include <stdlib.h>
#include <display_options.h>
-#include <vsprintf.h>
static int do_sm_serial(struct cmd_tbl *cmdtp, int flag, int argc,
char *const argv[])
* MII Utilities
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <miiphy.h>
* A command interface to access misc devices with MISC uclass driver APIs.
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <errno.h>
* Kyle Harris, kharris@nexus-tech.net
*/
+#include <common.h>
#include <blk.h>
#include <command.h>
#include <console.h>
#include <part.h>
#include <sparse_format.h>
#include <image-sparse.h>
-#include <vsprintf.h>
static int curr_device = -1;
* Copyright 2008-2009 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
-#include <vsprintf.h>
static int cpu_status_all(void)
{
*/
#include <command.h>
+#include <common.h>
#include <console.h>
#if CONFIG_IS_ENABLED(CMD_MTD_OTP)
#include <hexdump.h>
*
*/
+#include <common.h>
#include <command.h>
#include <env.h>
#include <log.h>
* Author: Pratyush Yadav <p.yadav@ti.com>
*/
+#include <common.h>
#include <command.h>
#include <errno.h>
#include <dm.h>
*/
#include <config.h>
+#include <common.h>
#include <command.h>
#include <env.h>
#include <image.h>
* SPDX-License-Identifier: GPL-2.0
*/
+#include <common.h>
#include <command.h>
#include <console.h>
#include <dm.h>
* only
*/
+#include <common.h>
#include <bootstage.h>
#include <image.h>
#include <asm/cache.h>
/*
* Boot support
*/
+#include <common.h>
#include <bootstage.h>
#include <command.h>
#include <dm.h>
* environment. After that, we use a hash table.
*/
-#include <config.h>
+#include <common.h>
#include <cli.h>
#include <command.h>
#include <console.h>
*/
#include <charset.h>
+#include <common.h>
#include <command.h>
#include <efi_loader.h>
#include <efi_variable.h>
* Copyright (C) 2017 Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <blk.h>
#include <command.h>
#include <dm.h>
* published by the Free Software Foundation.
*/
+#include <common.h>
#include <command.h>
#include <malloc.h>
#include <linux/printk.h>
*/
#include <command.h>
+#include <common.h>
#include <env.h>
#include <errno.h>
#include <image.h>
* Dirk Eibach, Guntermann & Drunck GmbH, eibach@gdsys.de
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <hexdump.h>
* Copyright (c) 2020 Theobroma Systems Design und Consulting GmbH
*/
-#include <vsprintf.h>
+#include <common.h>
#include <command.h>
static int do_panic(struct cmd_tbl *cmdtp, int flag, int argc,
* Pavel Bartusek <pba@sysgo.com>
*/
+#include <common.h>
#include <config.h>
#include <command.h>
#include <env.h>
* Ramon Fried <rfried.dev@gmail.com>
*/
+#include <common.h>
#include <command.h>
-#include <vsprintf.h>
#include <net.h>
#include <net/pcap.h>
* PCI routines
*/
+#include <common.h>
#include <bootretry.h>
#include <cli.h>
#include <command.h>
* PCI Express Maximum Packet Size (MPS) configuration
*/
+#include <common.h>
#include <bootretry.h>
#include <cli.h>
#include <command.h>
* Copyright (C) 2018, STMicroelectronics - All Rights Reserved
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <errno.h>
* Copyright 2019 Google LLC
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <power/acpi_pmc.h>
* Copyright (C) 2014-2015 Samsung Electronics
* Przemyslaw Marczak <p.marczak@samsung.com>
*/
+#include <common.h>
#include <command.h>
#include <errno.h>
#include <dm.h>
* We try to be compatible.
*/
+#include <common.h>
#include <ctype.h>
#include <errno.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
-#include <vsprintf.h>
#define WANT_HEX_ESCAPES 0
#define PRINT_CONVERSION_ERROR 1
*/
#include <blk.h>
+#include <common.h>
#include <command.h>
/* Current I/O Device */
* Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved.
*/
+#include <common.h>
#include <command.h>
#include <fs.h>
#include <net.h>
#include <net6.h>
#include <malloc.h>
-#include <vsprintf.h>
#include "pxe_utils.h"
* (C) Copyright 2015 Miao Yan <yanmiaobest@gmail.com>
*/
+#include <common.h>
#include <command.h>
#include <env.h>
#include <errno.h>
* Software Foundation.
*/
+#include <common.h>
#include <command.h>
#include <mapmem.h>
#include <part.h>
-#include <vsprintf.h>
static int
do_rw(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
* Subodh Nijsure, SkyStream Networks, snijsure@skystream.com
*/
+#include <common.h>
#include <command.h>
#include <asm/ppc.h>
* Copyright (C) 2014-2015 Samsung Electronics
* Przemyslaw Marczak <p.marczak@samsung.com>
*/
+#include <common.h>
#include <command.h>
#include <errno.h>
#include <dm.h>
* (C) Copyright 2015
* Texas Instruments Incorporated - https://www.ti.com/
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <errno.h>
* Copyright (c) 2020, Heinrich Schuchardt <xypron.glpk@gmx.de>
*/
+#include <common.h>
#include <command.h>
#include <asm/sbi.h>
* Copyright (C) 2023 Johan Jonker <jbx6244@gmail.com>
*/
+#include <common.h>
#include <blk.h>
#include <command.h>
#include <dm.h>
*
* Copyright (c) 2019, Heinrich Schuchardt <xypron.glpk@gmx.de>
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <hexdump.h>
* Copyright (C) 2017 Eddie Cai <eddie.cai.linux@gmail.com>
*/
+#include <common.h>
#include <command.h>
#include <console.h>
#include <g_dnl.h>
// SPDX-License-Identifier: GPL-2.0+
+#include <common.h>
#include <command.h>
#include <display_options.h>
#include <dm.h>
* Dave Liu <daveliu@freescale.com>
*/
+#include <common.h>
#include <ahci.h>
#include <blk.h>
#include <dm.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <spl.h>
*
*/
+#include <common.h>
#include <command.h>
#include <env.h>
#include <scp03.h>
/*
* SCSI support.
*/
+#include <common.h>
#include <blk.h>
#include <command.h>
#include <scsi.h>
* Support for the "SEAttle iMAge" SEAMA NAND image format
*/
+#include <common.h>
#include <command.h>
#include <nand.h>
* This file provides a shell like 'expr' function to return.
*/
+#include <common.h>
#include <config.h>
#include <command.h>
#include <ctype.h>
#include <log.h>
#include <malloc.h>
#include <mapmem.h>
-#include <vsprintf.h>
-#include <linux/errno.h>
#include <linux/sizes.h>
#include "printf.h"
* Copyright (C) 2008 Atmel Corporation
*/
+#include <common.h>
#include <command.h>
#include <display_options.h>
#include <div64.h>
#include <malloc.h>
#include <mapmem.h>
#include <spi.h>
-#include <time.h>
#include <spi_flash.h>
#include <asm/cache.h>
#include <jffs2/jffs2.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <command.h>
#include <hash.h>
#include <u-boot/sha1.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <command.h>
#include <console.h>
-#include <time.h>
-#include <vsprintf.h>
#include <linux/delay.h>
static int do_sleep(struct cmd_tbl *cmdtp, int flag, int argc,
* Michalis Pappas <mpappas@fastmail.fm>
*/
#include <asm/psci.h>
+#include <common.h>
#include <command.h>
-#include <vsprintf.h>
#include <linux/arm-smccc.h>
#include <linux/compiler.h>
#include <linux/psci.h>
* Rajeshwari Shinde <rajeshwari.s@samsung.com>
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <fdtdec.h>
/* #define DEBUG */
+#include <common.h>
#include <command.h>
#include <env.h>
#include <image.h>
* SPI Read/Write Utilities
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <errno.h>
* Corscience GmbH & Co. KG - Simon Schwarz <schwarz@corscience.de>
*/
+#include <common.h>
#include <command.h>
#include <cmd_spl.h>
#include <env.h>
* Copyright 2021 Broadcom
*/
+#include <common.h>
#include <command.h>
static int do_test_stackprot_fail(struct cmd_tbl *cmdtp, int flag, int argc,
*/
#include <config.h>
+#include <common.h>
#include <command.h>
-#include <vsprintf.h>
static char *start_addr, *last_addr;
// SPDX-License-Identifier: GPL-2.0+
+#include <common.h>
#include <command.h>
#include <env.h>
#include <fs.h>
#include <pxe_utils.h>
-#include <vsprintf.h>
/**
* struct sysboot_info - useful information for sysboot helpers
* Written by Robert Marko <robert.marko@sartura.hr>
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <thermal.h>
/*
* Boot support
*/
+#include <common.h>
#include <command.h>
#include <stdio_dev.h>
#include <serial.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <command.h>
#include <fs.h>
#include <log.h>
-#include <vsprintf.h>
#define OP_INVALID 0
#define OP_NOT 1
* All rights reserved.
*/
+#include <common.h>
#include <command.h>
#include <thor.h>
#include <dfu.h>
#include <asm/arch/hardware.h>
#include <asm/cache.h>
#include <asm/emif.h>
+#include <common.h>
#include <command.h>
#include <asm/global_data.h>
* Copyright (C) 2020 Texas Instruments Incorporated, <www.ti.com>
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <k3-dev.h>
* Copyright (c) 2011 The Chromium OS Authors.
*/
+#include <common.h>
#include <command.h>
static void report_time(ulong cycles)
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <command.h>
-#include <time.h>
static int do_timer(struct cmd_tbl *cmdtp, int flag, int argc,
char *const argv[])
* Copyright (C) 2014,2016 david_yang <david_yang@accton.com>
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <i2c.h>
* Copyright (c) 2013 The Chromium OS Authors.
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <env.h>
* Copyright (c) 2013 The Chromium OS Authors.
*/
+#include <common.h>
#include <command.h>
#include <env.h>
#include <malloc.h>
-#include <vsprintf.h>
#include <asm/unaligned.h>
#include <tpm-common.h>
#include <tpm-v1.h>
* Author: Miquel Raynal <miquel.raynal@bootlin.com>
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <log.h>
* Copyright (c) 2015 Google, Inc
*/
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <log.h>
-#include <time.h>
#include <tpm-v1.h>
#include <linux/printk.h>
#include "tpm-user-utils.h"
* Copyright (c) 2011 The Chromium OS Authors.
*/
+#include <common.h>
#include <command.h>
#include <env.h>
#include <mapmem.h>
#include <trace.h>
-#include <vsprintf.h>
#include <asm/io.h>
static int get_args(int argc, char *const argv[], char **buff,
* (C) Copyright 2003 Stefan Roese, stefan.roese@esd-electronics.com
*/
+#include <common.h>
#include <command.h>
#include <log.h>
#include <malloc.h>
-#include <vsprintf.h>
#include <asm/io.h>
#include <pci.h>
* published by the Free Software Foundation.
*/
+#include <common.h>
#include <command.h>
#include <env.h>
#include <exports.h>
#undef DEBUG
+#include <common.h>
#include <config.h>
#include <command.h>
#include <log.h>
#include <ubifs_uboot.h>
-#include <vsprintf.h>
static int ubifs_initialized;
static int ubifs_mounted;
* Copyright (C) 2019 Texas Instruments Incorporated - https://www.ti.com
*
*/
+#include <common.h>
#include <command.h>
#include <ufs.h>
-#include <vsprintf.h>
static int do_ufs(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
{
* (C) Copyright 2003 Stefan Roese, stefan.roese@esd-electronics.com
*/
+#include <common.h>
#include <command.h>
#include <malloc.h>
-#include <vsprintf.h>
#include <asm/io.h>
#include <pci.h>
* FUJITSU COMPUTERTECHNOLOGIES LIMITED. All rights reserved.
*/
+#include <common.h>
#include <command.h>
#include <env.h>
-#include <vsprintf.h>
#include <u-boot/lz4.h>
static int do_unlz4(struct cmd_tbl *cmdtp, int flag, int argc,
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <command.h>
#include <env.h>
#include <gzip.h>
#include <mapmem.h>
#include <part.h>
-#include <vsprintf.h>
static int do_unzip(struct cmd_tbl *cmdtp, int flag, int argc,
char *const argv[])
* project.
*/
+#include <common.h>
#include <blk.h>
#include <bootstage.h>
#include <command.h>
* Author: Stefan Agner <stefan.agner@toradex.com>
*/
+#include <common.h>
#include <command.h>
#include <g_dnl.h>
#include <sdp.h>
* Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved.
*/
+#include <common.h>
#include <blk.h>
#include <command.h>
#include <console.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <bloblist.h>
#include <bootmeth.h>
#include <bootstd.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <command.h>
#include <display_options.h>
#include <version_string.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <video.h>
* Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <blk.h>
#include <command.h>
#include <dm.h>
* Microchip Technology, Inc.
* Eugen Hristev <eugen.hristev@microchip.com>
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <w1.h>
* Copyright (c) 2019 Michael Walle <michael@walle.cc>
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <wdt.h>
/*
* Wake-on-LAN support
*/
+#include <common.h>
#include <command.h>
#include <net.h>
-#include <vsprintf.h>
#if defined(CONFIG_CMD_WOL)
void wol_set_timeout(ulong);
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <asm/cb_sysinfo.h>
#include <command.h>
#include <console.h>
* Copyright (C) 2014-2015, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <command.h>
#include <asm/fsp/fsp_support.h>
#include <asm/global_data.h>
* Copyright (C) 2014-2015, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <command.h>
#include <efi.h>
#include <uuid.h>
* (C) Copyright 2014 Google, Inc
*/
+#include <common.h>
#include <command.h>
#include <log.h>
-#include <vsprintf.h>
#include <asm/msr.h>
#include <asm/mp.h>
#include <asm/mtrr.h>
/*
* Multi Image extract
*/
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <env.h>
* Roger Knecht <rknecht@pm.de>
*/
+#include <common.h>
#include <command.h>
#include <display_options.h>
#include <fs.h>
* ...
*/
+#include <common.h>
#include <config.h>
#include <command.h>
* made from existing GRUB Sources by Sun, GNU and others.
*/
+#include <common.h>
#include <part.h>
#include <config.h>
#include <command.h>
* Lei Wen <leiwen@marvell.com>, Marvell Inc.
*/
+#include <common.h>
#include <command.h>
#include <env.h>
#include <gzip.h>
-#include <vsprintf.h>
static int do_zip(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
{
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <autoboot.h>
#include <bootretry.h>
#include <cli.h>
#include <command.h>
#include <console.h>
#include <env.h>
-#include <errno.h>
#include <fdtdec.h>
#include <hash.h>
#include <log.h>
#define LOG_CATEGORY LOGC_BLOBLIST
+#include <common.h>
#include <bloblist.h>
#include <display_options.h>
#include <log.h>
* Marius Groeger <mgroeger@sysgo.de>
*/
-#include <config.h>
+#include <common.h>
#include <bloblist.h>
#include <bootstage.h>
#include <clock_legacy.h>
// SPDX-License-Identifier: GPL-2.0+
+#include <common.h>
#include <dm.h>
#include <init.h>
#include <sysinfo.h>
* Marius Groeger <mgroeger@sysgo.de>
*/
-#include <config.h>
+#include <common.h>
#include <api.h>
#include <bootstage.h>
#include <cpu_func.h>
#define LOG_CATEGORY LOGC_BOOT
+#include <common.h>
#include <bootstage.h>
#include <hang.h>
#include <log.h>
* Copyright (C) 2012 Marek Vasut <marex@denx.de>
*/
+#include <common.h>
#include <cpu_func.h>
#include <log.h>
#include <malloc.h>
#define pr_fmt(fmt) "cli: %s: " fmt, __func__
+#include <common.h>
#include <ansi.h>
#include <bootstage.h>
#include <cli.h>
* Copyright 2022 Google LLC
*/
+#include <common.h>
#include <cli.h>
-#include <stdio.h>
-#include <string.h>
-#include <linux/errno.h>
/**
* enum cli_esc_state_t - indicates what to do with an escape character
#define __U_BOOT__
#ifdef __U_BOOT__
+#include <common.h> /* readline */
#include <env.h>
#include <malloc.h> /* malloc, free, realloc*/
#include <linux/ctype.h> /* isalpha, isdigit */
* JinHua Luo, GuangDong Linux Center, <luo.jinhua@gd-linux.com>
*/
+#include <common.h>
#include <bootretry.h>
#include <cli.h>
#include <command.h>
#include <malloc.h>
#include <time.h>
#include <watchdog.h>
-#include <linux/errno.h>
#include <asm/global_data.h>
DECLARE_GLOBAL_DATA_PTR;
* JinHua Luo, GuangDong Linux Center, <luo.jinhua@gd-linux.com>
*/
+#include <common.h>
#include <bootretry.h>
#include <cli.h>
#include <command.h>
* Command Processor Table
*/
-#include <config.h>
+#include <common.h>
#include <compiler.h>
#include <command.h>
#include <console.h>
#include <image.h>
#include <log.h>
#include <mapmem.h>
-#include <time.h>
#include <asm/global_data.h>
#include <linux/ctype.h>
* Paolo Scaffardi, AIRVENT SAM s.p.a - RIMINI(ITALY), arsenio@tin.it
*/
+#include <common.h>
#include <console.h>
#include <debug_uart.h>
#include <display_options.h>
* Software Foundation.
*/
+#include <common.h>
#include <cros_ec.h>
#include <dm.h>
#include <errno.h>
* Copyright 2008-2014 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <ddr_spd.h>
-#include <stdio.h>
/* used for ddr1 and ddr2 spd */
static int
* Lukasz Majewski <l.majewski@samsung.com>
*/
+#include <common.h>
#include <command.h>
#include <log.h>
#include <watchdog.h>
#define DEBUG
#endif
+#include <common.h>
#include <log.h>
#include <asm/global_data.h>
* Copyright (C) Nalin Dahyabhai <bigfun@pobox.com>
*/
+#include <common.h>
#include <edid.h>
#include <errno.h>
#include <fdtdec.h>
* Igor Grinberg <grinberg@compulab.co.il>
*/
-#include <stdio.h>
-#include <vsprintf.h>
+#include <common.h>
#include <linux/string.h>
#include <eeprom_field.h>
* Igor Grinberg <grinberg@compulab.co.il>
*/
+#include <common.h>
#include <linux/kernel.h>
-#include <linux/string.h>
#include <eeprom_layout.h>
#include <eeprom_field.h>
#define LOG_CATEGORY LOGC_EVENT
+#include <common.h>
#include <event.h>
#include <event_internal.h>
#include <log.h>
#include <linker_lists.h>
#include <malloc.h>
#include <asm/global_data.h>
-#include <linux/errno.h>
#include <linux/list.h>
#include <relocate.h>
+#include <common.h>
#include <command.h>
#include <exports.h>
#include <malloc.h>
/* #define DEBUG */
+#include <common.h>
#include <flash.h>
#include <log.h>
#include <uuid.h>
-#include <linux/string.h>
#include <mtd/cfi_flash.h>
*/
#ifndef USE_HOSTCC
+#include <common.h>
#include <command.h>
#include <env.h>
#include <log.h>
#ifndef HWCONFIG_TEST
#include <config.h>
+#include <common.h>
#include <env.h>
#include <exports.h>
#include <hwconfig.h>
* Written by Simon Glass <sjg@chromium.org>
*/
-#include <config.h>
+#include <common.h>
#include <bootstage.h>
#include <init.h>
#include <asm/global_data.h>
* Copyright 2018 Google, Inc
*/
+#include <common.h>
#include <handoff.h>
#include <asm/global_data.h>
* Gary Jennejohn, DENX Software Engineering GmbH, garyj@denx.de.
*/
+#include <common.h>
#include <console.h>
#include <serial.h>
#include <malloc.h>
#define IOTRACE_IMPL
+#include <common.h>
#include <mapmem.h>
#include <time.h>
#include <asm/global_data.h>
* Licensed under the GPL-2 or later.
*/
+#include <common.h>
/* We need the weak marking as this symbol is provided specially */
extern const char system_map[] __attribute__((weak));
*
****************************************************************************/
+#include <common.h>
#include <asm/ptrace.h>
#include <kgdb.h>
* Licensed under the GPL-2 or later.
*/
+#include <common.h>
#include <cpu_func.h>
#include <kgdb.h>
#include <serial.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <display_options.h>
#include <log.h>
#include <malloc.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <log.h>
#include <asm/global_data.h>
* Copyright (c) 2020, Heinrich Schuchardt <xypron.glpk@gmx.de>
*/
+#include <common.h>
#include <log.h>
#include <net.h>
#include <asm/global_data.h>
/* #define DEBUG */
+#include <common.h>
#include <autoboot.h>
#include <button.h>
#include <bootstage.h>
#define LOG_CATEGORY LOGC_ALLOC
+#include <common.h>
#include <log.h>
#include <malloc.h>
#include <mapmem.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <cpu_func.h>
*/
#include <ansi.h>
+#include <common.h>
#include <cli.h>
#include <malloc.h>
#include <errno.h>
* channel.
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <miiphy.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <s_record.h>
static int hex1_bin (char c);
*
*/
+#include <common.h>
#include <scp03.h>
#include <tee.h>
#include <tee/optee_ta_scp03.h>
-#include <linux/errno.h>
-#include <linux/string.h>
static int scp03_enable(bool provision)
{
* Aneesh V <aneesh@ti.com>
*/
-#include <config.h>
+#include <common.h>
#include <bloblist.h>
#include <binman_sym.h>
#include <bootstage.h>
#include <system-constants.h>
#include <asm/global_data.h>
#include <asm-generic/gpio.h>
+#include <asm/u-boot.h>
#include <nand.h>
#include <fat.h>
#include <u-boot/crc.h>
* Copyright (C) 2017 Theobroma Systems Design und Consulting GmbH
*/
+#include <common.h>
#include <atf_common.h>
#include <cpu_func.h>
#include <errno.h>
*
*/
+#include <common.h>
#include <spl.h>
#include <spl_load.h>
#include <image.h>
* Copyright (C) 2017 Theobroma Systems Design und Consulting GmH
*/
+#include <common.h>
#include <spl.h>
__weak int board_return_to_bootrom(struct spl_image_info *spl_image,
*
* Ravi B <ravibabu@ti.com>
*/
+#include <common.h>
#include <env.h>
#include <spl.h>
#include <linux/compiler.h>
// SPDX-License-Identifier: GPL-2.0+
+#include <common.h>
#include <env.h>
#include <part.h>
#include <spl.h>
#include <spl_load.h>
+#include <asm/u-boot.h>
#include <ext4fs.h>
#include <errno.h>
#include <image.h>
* FAT Image Functions copied from spl_mmc.c
*/
+#include <common.h>
#include <env.h>
#include <log.h>
#include <spl.h>
#include <spl_load.h>
+#include <asm/u-boot.h>
#include <fat.h>
#include <errno.h>
#include <image.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <errno.h>
#include <fpga.h>
#include <gzip.h>
*/
#define LOG_CATEGORY LOGC_ARCH
+#include <common.h>
#include <stdlib.h>
#include <errno.h>
#include <imx_container.h>
* Copyright (C) 2020 Stefan Roese <sr@denx.de>
*/
+#include <common.h>
#include <image.h>
#include <log.h>
#include <malloc.h>
*
* Aneesh V <aneesh@ti.com>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <part.h>
#include <spl_load.h>
#include <linux/compiler.h>
#include <errno.h>
+#include <asm/u-boot.h>
#include <errno.h>
#include <mmc.h>
#include <image.h>
* Copyright (C) 2011
* Corscience GmbH & Co. KG - Simon Schwarz <schwarz@corscience.de>
*/
+#include <common.h>
#include <config.h>
#include <fdt_support.h>
#include <image.h>
* (C) Copyright 2012
* Ilya Yanok <ilya.yanok@gmail.com>
*/
+#include <common.h>
#include <env.h>
#include <errno.h>
#include <image.h>
* Copyright (C) 2012 Stefan Roese <sr@denx.de>
*/
-#include <config.h>
+#include <common.h>
#include <image.h>
#include <imx_container.h>
#include <log.h>
*
*/
+#include <common.h>
#include <spl.h>
#include <nvme.h>
* Copyright (C) 2011
* Corscience GmbH & Co. KG - Simon Schwarz <schwarz@corscience.de>
*/
+#include <common.h>
#include <config.h>
#include <image.h>
#include <log.h>
*
* Based on common/spl/spl_atf.c
*/
+#include <common.h>
#include <cpu_func.h>
#include <errno.h>
#include <hang.h>
* Michal Simek <michal.simek@amd.com>
* Stefan Agner <stefan.agner@toradex.com>
*/
+#include <common.h>
#include <binman_sym.h>
#include <image.h>
#include <log.h>
* Derived work from spl_usb.c
*/
+#include <common.h>
#include <spl.h>
+#include <asm/u-boot.h>
#include <sata.h>
#include <scsi.h>
#include <errno.h>
* Author: Stefan Agner <stefan.agner@toradex.com>
*/
+#include <common.h>
#include <log.h>
#include <spl.h>
#include <usb.h>
* Copyright (C) 2022 Sean Anderson <sean.anderson@seco.com>
*/
+#include <common.h>
#include <image.h>
#include <log.h>
#include <semihosting.h>
* Heiko Schocher, DENX Software Engineering, hs@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <image.h>
#include <imx_container.h>
#include <log.h>
* Ladislav Michl <ladis@linux-mips.org>
*/
+#include <common.h>
#include <config.h>
#include <image.h>
#include <nand.h>
* Derived work from spl_mmc.c
*/
+#include <common.h>
#include <log.h>
#include <spl.h>
+#include <asm/u-boot.h>
#include <errno.h>
#include <usb.h>
#include <fat.h>
* Author(s): Vikas Manocha, <vikas.manocha@st.com> for STMicroelectronics.
*/
-#include <config.h>
+#include <common.h>
#include <image.h>
#include <log.h>
#include <spl.h>
*
* Matt Porter <mporter@ti.com>
*/
+#include <common.h>
#include <gzip.h>
#include <image.h>
#include <log.h>
#include <spl.h>
#include <xyzModem.h>
+#include <asm/u-boot.h>
#include <linux/libfdt.h>
#define BUF_SIZE 1024
*
*/
+#include <common.h>
#include <display_options.h>
#include <env.h>
#include <splash.h>
#include <video.h>
-#include <vsprintf.h>
-#include <linux/kernel.h>
static struct splash_location default_splash_locations[] = {
{
* Authors: Igor Grinberg <grinberg@compulab.co.il>
*/
+#include <common.h>
#include <bmp_layout.h>
#include <command.h>
#include <env.h>
* Copyright 2021 Broadcom
*/
+#include <common.h>
#include <asm/global_data.h>
DECLARE_GLOBAL_DATA_PTR;
*/
#include <config.h>
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
* Bartlomiej Sieka <tur@semihalf.com>
*/
+#include <common.h>
#include <cpu_func.h>
#include <image.h>
#include <linux/printk.h>
*
* For each transfer (except "Interrupt") we wait for completion.
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <dm/device_compat.h>
* Probes device for being a hub and configurate it
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <env.h>
#include <log.h>
#include <malloc.h>
#include <memalign.h>
-#include <time.h>
#include <asm/processor.h>
#include <asm/unaligned.h>
#include <linux/ctype.h>
* Part of this source has been derived from the Linux USB
* project.
*/
+#include <common.h>
#include <console.h>
#include <dm.h>
#include <env.h>
#include <malloc.h>
#include <memalign.h>
#include <stdio_dev.h>
-#include <time.h>
#include <watchdog.h>
#include <asm/byteorder.h>
#ifdef CONFIG_SANDBOX
* Mostly inspired by Linux kernel v6.1 onboard_usb_hub driver
*/
+#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <power/regulator.h>
*/
+#include <common.h>
#include <blk.h>
#include <bootdev.h>
#include <command.h>
*
*==========================================================================
*/
+#include <common.h>
#include <xyzModem.h>
#include <stdarg.h>
-#include <time.h>
#include <u-boot/crc.h>
#include <watchdog.h>
#include <env.h>
-#include <vsprintf.h>
/* Assumption - run xyzModem protocol over the console port */
CONFIG_BOOTSTD_FULL=y
CONFIG_BOOTCOMMAND="run mmcboot; bootflow scan -lb"
CONFIG_DEFAULT_FDT_FILE="oftree"
-CONFIG_BOARD_LATE_INIT=y
CONFIG_SPL_MAX_SIZE=0x180000
CONFIG_SPL_BOARD_INIT=y
CONFIG_SPL_SYS_MALLOC_SIMPLE=y
#define LOG_CATEGORY UCLASS_PARTITION
+#include <common.h>
#include <blk.h>
#include <dm.h>
#include <log.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <blk.h>
#include <command.h>
#include <env.h>
* Hans-Joerg Frieden, Hyperion Entertainment
* Hans-JoergF@hyperion-entertainment.com
*/
+#include <common.h>
#include <command.h>
#include <env.h>
#include <ide.h>
#include "part_amiga.h"
#include <part.h>
-#include <vsprintf.h>
#undef AMIGA_DEBUG
* http://developer.apple.com/techpubs/mac/Devices/Devices-126.html#MARKER-14-92
*/
+#include <common.h>
#include <blk.h>
#include <command.h>
#include <ide.h>
#include <memalign.h>
-#include <vsprintf.h>
#include <asm/unaligned.h>
#include <linux/compiler.h>
#include "part_dos.h"
#define LOG_CATEGORY LOGC_FS
+#include <common.h>
#include <blk.h>
#include <log.h>
#include <part.h>
* Denis Peter, MPL AG Switzerland, d.peter@mpl.ch.
*/
+#include <common.h>
#include <blk.h>
#include <command.h>
#include <part.h>
* http://developer.apple.com/techpubs/mac/Devices/Devices-126.html#MARKER-14-92
*/
+#include <common.h>
#include <command.h>
#include <log.h>
#include <memalign.h>
You should follow this ordering in U-Boot. In all cases, they should be listed
in alphabetical order. First comes headers which are located directly in our
-top-level include diretory. Second are headers within subdirectories, Finally
-directory-local includes should be listed. See this example:
+top-level include diretory. This excludes the common.h header file which is to
+be removed. Second are headers within subdirectories, Finally directory-local
+includes should be listed. See this example:
.. code-block:: C
``#ifndef USE_HOSTCC`` to avoid including U-Boot specific include files. See
common/image.c for an example.
+If you encounter code which still uses <common.h> a patch to remove that and
+replace it with any required include files directly is much appreciated.
+
If your file uses driver model, include <dm.h> in the C file. Do not include
dm.h in a header file. Try to use forward declarations (e.g. ``struct
udevice``) instead.
Create a new file in test/ or a subdirectory and define a macro to register the
suite. For example::
+ #include <common.h>
#include <console.h>
#include <mapmem.h>
#include <dm/test.h>
#define LOG_CATEGORY UCLASS_ADC
+#include <common.h>
#include <errno.h>
#include <div64.h>
#include <dm.h>
* Copyright (C) 2015 Samsung Electronics
* Przemyslaw Marczak <p.marczak@samsung.com>
*/
+#include <common.h>
#include <errno.h>
#include <dm.h>
#include <adc.h>
* Originally based on NXP linux-imx kernel v5.15 drivers/iio/adc/imx93_adc.c
*/
+#include <common.h>
#include <errno.h>
#include <dm.h>
#include <linux/bitfield.h>
* Amlogic Meson Successive Approximation Register (SAR) A/D Converter
*/
+#include <common.h>
#include <adc.h>
#include <clk.h>
#include <dm.h>
* Rockchip SARADC driver for U-Boot
*/
+#include <common.h>
#include <adc.h>
#include <clk.h>
#include <dm.h>
* Copyright (C) 2015 Samsung Electronics
* Przemyslaw Marczak <p.marczak@samsung.com>
*/
+#include <common.h>
#include <errno.h>
#include <dm.h>
#include <adc.h>
* Originally based on the Linux kernel v4.18 drivers/iio/adc/stm32-adc-core.c.
*/
+#include <common.h>
#include <dm.h>
#include <asm/io.h>
#include <dm/device_compat.h>
* Originally based on the Linux kernel v4.18 drivers/iio/adc/stm32-adc.c.
*/
+#include <common.h>
#include <adc.h>
#include <dm.h>
#include <asm/io.h>
* Copyright (C) 2017, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <ahci.h>
#include <scsi.h>
#include <dm.h>
#define LOG_CATEGORY UCLASS_AHCI
+#include <common.h>
#include <ahci.h>
#include <dm.h>
*
* This driver provides a SCSI interface to SATA.
*/
+#include <common.h>
#include <blk.h>
#include <cpu_func.h>
#include <log.h>
-#include <time.h>
#include <linux/bitops.h>
#include <linux/delay.h>
* Copyright (C) 2016 Stefan Roese <sr@denx.de>
*/
+#include <common.h>
#include <ahci.h>
#include <dm.h>
#include <log.h>
+#include <common.h>
#include <ahci.h>
#include <dm.h>
#include <log.h>
* Author: Mugunthan V N <mugunthanvnm@ti.com>
*/
+#include <common.h>
#include <dm.h>
#include <ahci.h>
#include <scsi.h>
* Terry Lv <r65388@freescale.com>
*/
+#include <common.h>
#include <ahci.h>
#include <blk.h>
#include <cpu_func.h>
* Author: Dave Liu <daveliu@freescale.com>
*/
+#include <common.h>
#include <ahci.h>
#include <blk.h>
#include <command.h>
* port from the libata of linux kernel
*/
+#include <common.h>
#include <compiler.h>
#include <libata.h>
-#include <stdio.h>
u64 ata_id_n_sectors(u16 *id)
{
* Author: Frank Wunderlich <frank-w@public-files.de>
*/
+#include <common.h>
#include <ahci.h>
#include <asm/global_data.h>
#include <asm/io.h>
* Dave Liu <daveliu@freescale.com>
*/
+#include <common.h>
#include <ahci.h>
#include <blk.h>
#include <dm.h>
* Copyright 2023 Tony Dinh <mibodhi@gmail.com>
*/
+#include <common.h>
#include <ahci.h>
#include <bootdev.h>
#include <dm.h>
* (C) Copyright 2015 - 2016 Xilinx, Inc.
* Michal Simek <michal.simek@amd.com>
*/
+#include <common.h>
#include <dm.h>
#include <ahci.h>
#include <generic-phy.h>
* No port multiplier support
*/
+#include <common.h>
#include <ahci.h>
#include <blk.h>
#include <bootdev.h>
#include <libata.h>
#include <malloc.h>
#include <sata.h>
-#include <time.h>
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
* Author: Tang Yuantian <b29983@freescale.com>
*/
+#include <common.h>
#include <blk.h>
#include <cpu_func.h>
#include <dm.h>
#define LOG_CATEGORY UCLASS_AXI_EMUL
+#include <common.h>
#include <axi.h>
#include <dm.h>
#include <log.h>
#define LOG_CATEGORY UCLASS_AXI
+#include <common.h>
#include <dm.h>
#include <axi.h>
* Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/
+#include <common.h>
#include <axi.h>
#include <dm.h>
#include <asm/axi.h>
* Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/
+#include <common.h>
#include <axi.h>
#include <dm.h>
#include <log.h>
* Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/
+#include <common.h>
#include <axi.h>
#include <dm.h>
#include <log.h>
* Jason ported this file to u-boot to run the ATI video card
* BIOS in u-boot.
****************************************************************************/
+#include <common.h>
#include <compiler.h>
#include <bios_emul.h>
#include <errno.h>
****************************************************************************/
#define __io
+#include <common.h>
#include <asm/io.h>
#include "biosemui.h"
****************************************************************************/
#define __io
+#include <common.h>
#include <asm/io.h>
#include "biosemui.h"
****************************************************************************/
#include <malloc.h>
+#include <common.h>
#include "biosemui.h"
BE_sysEnv _BE_env = {{0}};
****************************************************************************/
#include <stdarg.h>
+#include <common.h>
#include <linux/ctype.h>
#include <linux/printk.h>
#include "x86emu/x86emui.h"
* instruction decoding and accessess of immediate data via IP. etc.
*
****************************************************************************/
+#include <common.h>
#include <linux/printk.h>
#include "x86emu/x86emui.h"
*
****************************************************************************/
+#include <common.h>
#include <linux/printk.h>
#include "x86emu/x86emui.h"
*
****************************************************************************/
+#include <common.h>
#include <linux/compiler.h>
#include <linux/printk.h>
#include "x86emu/x86emui.h"
*
****************************************************************************/
+#include <common.h>
#define PRIM_OPS_NO_REDEFINE_ASM
#include "x86emu/x86emui.h"
*
****************************************************************************/
+#include <common.h>
#include <linux/printk.h>
#include "x86emu/x86emui.h"
#define LOG_CATEGORY UCLASS_BLK
+#include <common.h>
#include <blk.h>
#include <dm.h>
#include <log.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <blk.h>
#include <part.h>
#include <linux/err.h>
* Author: Eric Nelson<eric@nelint.com>
*
*/
+#include <common.h>
#include <blk.h>
#include <log.h>
#include <malloc.h>
* Author: Tobias Waldekranz <tobias@waldekranz.com>
*/
+#include <common.h>
#include <blk.h>
#include <blkmap.h>
#include <dm.h>
* Copyright 2021 Google LLC
*/
+#include <common.h>
#include <dm.h>
UCLASS_DRIVER(efi_media) = {
* Copyright 2021 Google LLC
*/
+#include <common.h>
#include <blk.h>
#include <dm.h>
#include <efi.h>
#define LOG_CATEGORY UCLASS_HOST
+#include <common.h>
#include <blk.h>
#include <dm.h>
#include <malloc.h>
#define LOG_CATEGORY UCLASS_HOST
+#include <common.h>
#include <blk.h>
#include <bootdev.h>
#include <dm.h>
#define LOG_CATEGORY UCLASS_IDE
+#include <common.h>
#include <ata.h>
#include <blk.h>
#include <bootdev.h>
* Copyright (C) 2013 Henrik Nordstrom <henrik@henriknordstrom.net>
*/
+#include <common.h>
#include <blk.h>
#include <dm.h>
#include <fdtdec.h>
* Copyright 2021 Google LLC
*/
+#include <common.h>
#include <dm.h>
static const struct udevice_id sandbox_efi_media_ids[] = {
#define LOG_CATEGORY UCLASS_BOOTCOUNT
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <bootcount.h>
// SPDX-License-Identifier: GPL-2.0+
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/hardware.h>
#include <asm/arch/at91_gpbr.h>
* Heiko Schocher, DENX Software Engineering, hs@denx.de.
*/
+#include <common.h>
#include <env.h>
void bootcount_store(ulong a)
* Heiko Schocher, DENX Software Engineering, hs@denx.de.
*/
+#include <common.h>
#include <cpu_func.h>
#include <asm/cache.h>
#include <asm/global_data.h>
* Copyright (c) Vaisala Oyj. All rights reserved.
*/
+#include <common.h>
#include <bootcount.h>
#include <dm.h>
#include <dm/device_compat.h>
* (C) Copyright 2019 GE
*/
+#include <common.h>
#include <bootcount.h>
#include <dm.h>
#include <i2c_eeprom.h>
* This works only, if the PMIC is not connected to a battery.
*/
+#include <common.h>
#include <bootcount.h>
#include <dm.h>
#include <power/pmic.h>
* (C) Copyright 2018 Theobroma Systems Design und Consulting GmbH
*/
+#include <common.h>
#include <bootcount.h>
#include <dm.h>
#include <log.h>
* (C) Copyright 2019 GE
*/
+#include <common.h>
#include <bootcount.h>
#include <dm.h>
#include <spi_flash.h>
* Copyright (C) 2020 Dario Binacchi <dariobin@libero.it>
*/
+#include <common.h>
#include <dm.h>
static const struct udevice_id ti_pwmss_ids[] = {
* Copyright (C) 2020 Dario Binacchi <dariobin@libero.it>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dm/device_compat.h>
* Author: Marek Szyprowski <m.szyprowski@samsung.com>
*/
+#include <common.h>
#include <adc.h>
#include <button.h>
#include <log.h>
* Copyright (C) 2020 Philippe Reynes <philippe.reynes@softathome.com>
*/
+#include <common.h>
#include <button.h>
#include <dm.h>
#include <dm/lists.h>
#define LOG_CATEGORY UCLASS_BUTTON
+#include <common.h>
#include <button.h>
#include <dm.h>
#include <dm/uclass-internal.h>
* Rick Chen, Andes Technology Corporation <rick@andestech.com>
*/
+#include <common.h>
#include <command.h>
#include <cache.h>
#include <dm.h>
/*
* Copyright (C) 2019 Intel Corporation <www.intel.com>
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
* Copyright (C) 2021 SiFive
*/
+#include <common.h>
#include <cache.h>
#include <dm.h>
#include <asm/io.h>
#define LOG_CATEGORY UCLASS_CACHE
+#include <common.h>
#include <cache.h>
#include <dm.h>
* Copyright (C) 2019 Intel Corporation <www.intel.com>
*/
+#include <common.h>
#include <cache.h>
#include <dm.h>
#include <errno.h>
This clock driver adds support for clock realted settings for
ZynqMP platform.
-source "drivers/clk/adi/Kconfig"
source "drivers/clk/analogbits/Kconfig"
source "drivers/clk/at91/Kconfig"
source "drivers/clk/exynos/Kconfig"
obj-$(CONFIG_$(SPL_TPL_)CLK_COMPOSITE_CCF) += clk-composite.o
obj-$(CONFIG_$(SPL_TPL_)CLK_GPIO) += clk-gpio.o
-obj-y += adi/
obj-y += analogbits/
obj-y += imx/
obj-$(CONFIG_CLK_JH7110) += starfive/
+++ /dev/null
-# SPDX-License-Identifier: GPL-2.0-or-later
-#
-# (C) Copyright 2022 - Analog Devices, Inc.
-#
-# Written and/or maintained by Timesys Corporation
-#
-# Contact: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
-# Contact: Greg Malysa <greg.malysa@timesys.com>
-#
-
-config COMMON_CLK_ADI_SHARED
- bool "Enable shared ADI clock framework code"
- help
- Required for shared code between SoC clock drivers. Automatically
- selected by an appropriate SoC-specific clock driver version.
-
-config COMMON_CLK_ADI_SC598
- bool "Clock driver for ADI SC598 SoCs"
- select DM
- select CLK
- select CLK_CCF
- select OF_CONTROL
- select CMD_CLK
- select SPL_DM if SPL
- select SPL_CLK if SPL
- select SPL_CLK_CCF if SPL
- select SPL_OF_CONTROL if SPL
- select COMMON_CLK_ADI_SHARED
- depends on SC59X_64
- help
- This driver supports the system clocks on Analog Devices SC598-series
- SoCs. It includes CGU and CDU clocks and supports gating unused clocks.
- Modifying PLL configuration is not supported; that must be done prior
- to booting the kernel. Clock dividers after the PLLs may be configured.
-
-config COMMON_CLK_ADI_SC594
- bool "Clock driver for ADI SC594 SoCs"
- select DM
- select CLK
- select CLK_CCF
- select OF_CONTROL
- select CMD_CLK
- select SPL_DM if SPL
- select SPL_CLK if SPL
- select SPL_CLK_CCF if SPL
- select SPL_OF_CONTROL if SPL
- select COMMON_CLK_ADI_SHARED
- depends on SC59X
- help
- This driver supports the system clocks on Analog Devices SC594-series
- SoCs. It includes CGU and CDU clocks and supports gating unused clocks.
- Modifying PLL configuration is not supported; that must be done prior
- to booting the kernel. Clock dividers after the PLLs may be configured.
-
-config COMMON_CLK_ADI_SC58X
- bool "Clock driver for ADI SC58X SoCs"
- select DM
- select CLK
- select CLK_CCF
- select OF_CONTROL
- select CMD_CLK
- select COMMON_CLK_ADI_SHARED
- depends on SC58X
- help
- This driver supports the system clocks on Analog Devices SC58x-series
- SoCs. It includes CGU and CDU clocks and supports gating unused clocks.
- Modifying PLL configuration is not supported; that must be done prior
- to booting the kernel. Clock dividers after the PLLs may be configured.
-
-config COMMON_CLK_ADI_SC57X
- bool "Clock driver for ADI SC57X SoCs"
- select DM
- select CLK
- select CLK_CCF
- select OF_CONTROL
- select CMD_CLK
- select COMMON_CLK_ADI_SHARED
- depends on SC57X
- help
- This driver supports the system clocks on Analog Devices SC57x-series
- SoCs. It includes CGU and CDU clocks and supports gating unused clocks.
- Modifying PLL configuration is not supported; that must be done prior
- to booting the kernel. Clock dividers after the PLLs may be configured.
+++ /dev/null
-# SPDX-License-Identifier: GPL-2.0-or-later
-#
-# (C) Copyright 2022 - Analog Devices, Inc.
-#
-# Written and/or maintained by Timesys Corporation
-#
-# Contact: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
-# Contact: Greg Malysa <greg.malysa@timesys.com>
-#
-
-obj-$(CONFIG_COMMON_CLK_ADI_SHARED) += clk-shared.o clk-adi-pll.o
-
-obj-$(CONFIG_COMMON_CLK_ADI_SC594) += clk-adi-sc594.o
-obj-$(CONFIG_COMMON_CLK_ADI_SC598) += clk-adi-sc598.o
-obj-$(CONFIG_COMMON_CLK_ADI_SC58X) += clk-adi-sc58x.o
-obj-$(CONFIG_COMMON_CLK_ADI_SC57X) += clk-adi-sc57x.o
+++ /dev/null
-// SPDX-License-Identifier: GPL-2.0-or-later
-/*
- * (C) Copyright 2022 - Analog Devices, Inc.
- *
- * Written and/or maintained by Timesys Corporation
- *
- * Author: Greg Malysa <greg.malysa@timesys.com>
- *
- * Ported from Linux: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
- */
-
-#include <clk.h>
-#include <clk-uclass.h>
-#include <asm/io.h>
-#include <dm/device.h>
-#include <linux/compiler_types.h>
-#include <linux/err.h>
-#include <linux/kernel.h>
-
-#include "clk.h"
-
-#define ADI_CLK_PLL_GENERIC "adi_clk_pll_generic"
-
-struct clk_sc5xx_cgu_pll {
- struct clk clk;
- void __iomem *base;
- u32 mask;
- u32 max;
- u32 m_offset;
- u8 shift;
- bool half_m;
-};
-
-#define to_clk_sc5xx_cgu_pll(_clk) container_of(_clk, struct clk_sc5xx_cgu_pll, clk)
-
-static unsigned long sc5xx_cgu_pll_get_rate(struct clk *clk)
-{
- struct clk_sc5xx_cgu_pll *pll = to_clk_sc5xx_cgu_pll(dev_get_clk_ptr(clk->dev));
- unsigned long parent_rate = clk_get_parent_rate(clk);
-
- u32 reg = readl(pll->base);
- u32 m = ((reg & pll->mask) >> pll->shift) + pll->m_offset;
-
- if (m == 0)
- m = pll->max;
-
- if (pll->half_m)
- return parent_rate * m * 2;
- return parent_rate * m;
-}
-
-static const struct clk_ops clk_sc5xx_cgu_pll_ops = {
- .get_rate = sc5xx_cgu_pll_get_rate,
-};
-
-struct clk *sc5xx_cgu_pll(const char *name, const char *parent_name,
- void __iomem *base, u8 shift, u8 width, u32 m_offset,
- bool half_m)
-{
- struct clk_sc5xx_cgu_pll *pll;
- struct clk *clk;
- int ret;
- char *drv_name = ADI_CLK_PLL_GENERIC;
-
- pll = kzalloc(sizeof(*pll), GFP_KERNEL);
- if (!pll)
- return ERR_PTR(-ENOMEM);
-
- pll->base = base;
- pll->shift = shift;
- pll->mask = GENMASK(width - 1, 0) << shift;
- pll->max = pll->mask + 1;
- pll->m_offset = m_offset;
- pll->half_m = half_m;
-
- clk = &pll->clk;
-
- ret = clk_register(clk, drv_name, name, parent_name);
- if (ret) {
- pr_err("Failed to register %s in %s: %d\n", name, __func__, ret);
- kfree(pll);
- return ERR_PTR(ret);
- }
-
- return clk;
-}
-
-U_BOOT_DRIVER(clk_adi_pll_generic) = {
- .name = ADI_CLK_PLL_GENERIC,
- .id = UCLASS_CLK,
- .ops = &clk_sc5xx_cgu_pll_ops,
- .flags = DM_FLAG_PRE_RELOC,
-};
+++ /dev/null
-// SPDX-License-Identifier: GPL-2.0-or-later
-/*
- * (C) Copyright 2022 - Analog Devices, Inc.
- *
- * Written and/or maintained by Timesys Corporation
- *
- * Author: Greg Malysa <greg.malysa@timesys.com>
- *
- * Ported from Linux: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
- */
-
-#include <clk.h>
-#include <clk-uclass.h>
-#include <dm.h>
-#include <dt-bindings/clock/adi-sc5xx-clock.h>
-#include <linux/compiler_types.h>
-#include <linux/clk-provider.h>
-#include <linux/io.h>
-#include <linux/ioport.h>
-#include <linux/printk.h>
-#include <linux/types.h>
-
-#include "clk.h"
-
-static const char * const cgu1_in_sels[] = {"sys_clkin0", "sys_clkin1"};
-static const char * const sharc0_sels[] = {"cclk0_0", "sysclk_0", "dummy", "dummy"};
-static const char * const sharc1_sels[] = {"cclk0_0", "sysclk_0", "dummy", "dummy"};
-static const char * const arm_sels[] = {"cclk1_0", "sysclk_0", "dummy", "dummy"};
-static const char * const cdu_ddr_sels[] = {"dclk_0", "dclk_1", "dummy", "dummy"};
-static const char * const can_sels[] = {"oclk_0", "oclk_1", "dclk_1", "oclk_0_half"};
-static const char * const spdif_sels[] = {"oclk_0", "oclk_1", "dclk_1", "dclk_0"};
-static const char * const gige_sels[] = {"sclk1_0", "sclk1_1", "cclk0_1", "oclk_0"};
-static const char * const sdio_sels[] = {"oclk_0_half", "cclk1_1_half", "cclk1_1",
- "dclk_1"};
-
-static int sc57x_clock_probe(struct udevice *dev)
-{
- void __iomem *cgu0;
- void __iomem *cgu1;
- void __iomem *cdu;
- int ret;
- struct resource res;
-
- struct clk *clks[ADSP_SC57X_CLK_END];
- struct clk dummy, clkin0, clkin1;
-
- ret = dev_read_resource_byname(dev, "cgu0", &res);
- if (ret)
- return ret;
- cgu0 = devm_ioremap(dev, res.start, resource_size(&res));
-
- ret = dev_read_resource_byname(dev, "cgu1", &res);
- if (ret)
- return ret;
- cgu1 = devm_ioremap(dev, res.start, resource_size(&res));
-
- ret = dev_read_resource_byname(dev, "cdu", &res);
- if (ret)
- return ret;
- cdu = devm_ioremap(dev, res.start, resource_size(&res));
-
- // Input clock configuration
- clk_get_by_name(dev, "dummy", &dummy);
- clk_get_by_name(dev, "sys_clkin0", &clkin0);
- clk_get_by_name(dev, "sys_clkin1", &clkin1);
-
- clks[ADSP_SC57X_CLK_DUMMY] = &dummy;
- clks[ADSP_SC57X_CLK_SYS_CLKIN0] = &clkin0;
- clks[ADSP_SC57X_CLK_SYS_CLKIN1] = &clkin1;
-
- clks[ADSP_SC57X_CLK_CGU1_IN] = clk_register_mux(NULL, "cgu1_in_sel", cgu1_in_sels,
- 2, CLK_SET_RATE_PARENT,
- cdu + CDU_CLKINSEL, 0, 1, 0);
-
- // CGU configuration and internal clocks
- clks[ADSP_SC57X_CLK_CGU0_PLL_IN] = clk_register_divider(NULL, "cgu0_df",
- "sys_clkin0",
- CLK_SET_RATE_PARENT,
- cgu0 + CGU_CTL, 0, 1, 0);
- clks[ADSP_SC57X_CLK_CGU1_PLL_IN] = clk_register_divider(NULL, "cgu1_df",
- "cgu1_in_sel",
- CLK_SET_RATE_PARENT,
- cgu1 + CGU_CTL, 0, 1, 0);
-
- // VCO output == PLL output
- clks[ADSP_SC57X_CLK_CGU0_PLLCLK] = sc5xx_cgu_pll("cgu0_pllclk", "cgu0_df",
- cgu0 + CGU_CTL, CGU_MSEL_SHIFT,
- CGU_MSEL_WIDTH, 0, false);
- clks[ADSP_SC57X_CLK_CGU1_PLLCLK] = sc5xx_cgu_pll("cgu1_pllclk", "cgu1_df",
- cgu1 + CGU_CTL, CGU_MSEL_SHIFT,
- CGU_MSEL_WIDTH, 0, false);
-
- // Dividers from pll output
- clks[ADSP_SC57X_CLK_CGU0_CDIV] = cgu_divider("cgu0_cdiv", "cgu0_pllclk",
- cgu0 + CGU_DIV, 0, 5, 0);
- clks[ADSP_SC57X_CLK_CGU0_SYSCLK] = cgu_divider("sysclk_0", "cgu0_pllclk",
- cgu0 + CGU_DIV, 8, 5, 0);
- clks[ADSP_SC57X_CLK_CGU0_DDIV] = cgu_divider("cgu0_ddiv", "cgu0_pllclk",
- cgu0 + CGU_DIV, 16, 5, 0);
- clks[ADSP_SC57X_CLK_CGU0_ODIV] = cgu_divider("cgu0_odiv", "cgu0_pllclk",
- cgu0 + CGU_DIV, 22, 7, 0);
- clks[ADSP_SC57X_CLK_CGU0_S0SELDIV] = cgu_divider("cgu0_s0seldiv", "sysclk_0",
- cgu0 + CGU_DIV, 5, 3, 0);
- clks[ADSP_SC57X_CLK_CGU0_S1SELDIV] = cgu_divider("cgu0_s1seldiv", "sysclk_0",
- cgu0 + CGU_DIV, 13, 3, 0);
-
- clks[ADSP_SC57X_CLK_CGU1_CDIV] = cgu_divider("cgu1_cdiv", "cgu1_pllclk",
- cgu1 + CGU_DIV, 0, 5, 0);
- clks[ADSP_SC57X_CLK_CGU1_SYSCLK] = cgu_divider("sysclk_1", "cgu1_pllclk",
- cgu1 + CGU_DIV, 8, 5, 0);
- clks[ADSP_SC57X_CLK_CGU1_DDIV] = cgu_divider("cgu1_ddiv", "cgu1_pllclk",
- cgu1 + CGU_DIV, 16, 5, 0);
- clks[ADSP_SC57X_CLK_CGU1_ODIV] = cgu_divider("cgu1_odiv", "cgu1_pllclk",
- cgu1 + CGU_DIV, 22, 7, 0);
- clks[ADSP_SC57X_CLK_CGU1_S0SELDIV] = cgu_divider("cgu1_s0seldiv",
- "sysclk_1", cgu1 + CGU_DIV, 5,
- 3, 0);
- clks[ADSP_SC57X_CLK_CGU1_S1SELDIV] = cgu_divider("cgu1_s1seldiv",
- "sysclk_1", cgu1 + CGU_DIV, 13,
- 3, 0);
-
- // Gates to enable CGU outputs
- clks[ADSP_SC57X_CLK_CGU0_CCLK0] = cgu_gate("cclk0_0", "cgu0_cdiv",
- cgu0 + CGU_CCBF_DIS, 0);
- clks[ADSP_SC57X_CLK_CGU0_CCLK1] = cgu_gate("cclk1_0", "cgu0_cdiv",
- cgu1 + CGU_CCBF_DIS, 1);
- clks[ADSP_SC57X_CLK_CGU0_OCLK] = cgu_gate("oclk_0", "cgu0_odiv",
- cgu0 + CGU_SCBF_DIS, 3);
- clks[ADSP_SC57X_CLK_CGU0_DCLK] = cgu_gate("dclk_0", "cgu0_ddiv",
- cgu0 + CGU_SCBF_DIS, 2);
- clks[ADSP_SC57X_CLK_CGU0_SCLK1] = cgu_gate("sclk1_0", "cgu0_s1seldiv",
- cgu0 + CGU_SCBF_DIS, 1);
- clks[ADSP_SC57X_CLK_CGU0_SCLK0] = cgu_gate("sclk0_0", "cgu0_s0seldiv",
- cgu0 + CGU_SCBF_DIS, 0);
-
- clks[ADSP_SC57X_CLK_CGU1_CCLK0] = cgu_gate("cclk0_1", "cgu1_cdiv",
- cgu1 + CGU_CCBF_DIS, 0);
- clks[ADSP_SC57X_CLK_CGU1_CCLK1] = cgu_gate("cclk1_1", "cgu1_cdiv",
- cgu1 + CGU_CCBF_DIS, 1);
- clks[ADSP_SC57X_CLK_CGU1_OCLK] = cgu_gate("oclk_1", "cgu1_odiv",
- cgu1 + CGU_SCBF_DIS, 3);
- clks[ADSP_SC57X_CLK_CGU1_DCLK] = cgu_gate("dclk_1", "cgu1_ddiv",
- cgu1 + CGU_SCBF_DIS, 2);
- clks[ADSP_SC57X_CLK_CGU1_SCLK1] = cgu_gate("sclk1_1", "cgu1_s1seldiv",
- cgu1 + CGU_SCBF_DIS, 1);
- clks[ADSP_SC57X_CLK_CGU1_SCLK0] = cgu_gate("sclk0_1", "cgu1_s0seldiv",
- cgu1 + CGU_SCBF_DIS, 0);
-
- // Extra half rate clocks generated in the CDU
- clks[ADSP_SC57X_CLK_OCLK0_HALF] = clk_register_fixed_factor(NULL, "oclk_0_half",
- "oclk_0",
- CLK_SET_RATE_PARENT,
- 1, 2);
- clks[ADSP_SC57X_CLK_CCLK1_1_HALF] = clk_register_fixed_factor(NULL,
- "cclk1_1_half",
- "cclk1_1",
- CLK_SET_RATE_PARENT,
- 1, 2);
-
- // CDU output muxes
- clks[ADSP_SC57X_CLK_SHARC0_SEL] = cdu_mux("sharc0_sel", cdu + CDU_CFG0,
- sharc0_sels);
- clks[ADSP_SC57X_CLK_SHARC1_SEL] = cdu_mux("sharc1_sel", cdu + CDU_CFG1,
- sharc1_sels);
- clks[ADSP_SC57X_CLK_ARM_SEL] = cdu_mux("arm_sel", cdu + CDU_CFG2, arm_sels);
- clks[ADSP_SC57X_CLK_CDU_DDR_SEL] = cdu_mux("cdu_ddr_sel", cdu + CDU_CFG3,
- cdu_ddr_sels);
- clks[ADSP_SC57X_CLK_CAN_SEL] = cdu_mux("can_sel", cdu + CDU_CFG4, can_sels);
- clks[ADSP_SC57X_CLK_SPDIF_SEL] = cdu_mux("spdif_sel", cdu + CDU_CFG5, spdif_sels);
- clks[ADSP_SC57X_CLK_GIGE_SEL] = cdu_mux("gige_sel", cdu + CDU_CFG7, gige_sels);
- clks[ADSP_SC57X_CLK_SDIO_SEL] = cdu_mux("sdio_sel", cdu + CDU_CFG9, sdio_sels);
-
- // CDU output enable gates
- clks[ADSP_SC57X_CLK_SHARC0] = cdu_gate("sharc0", "sharc0_sel", cdu + CDU_CFG0,
- CLK_IS_CRITICAL);
- clks[ADSP_SC57X_CLK_SHARC1] = cdu_gate("sharc1", "sharc1_sel", cdu + CDU_CFG1,
- CLK_IS_CRITICAL);
- clks[ADSP_SC57X_CLK_ARM] = cdu_gate("arm", "arm_sel", cdu + CDU_CFG2,
- CLK_IS_CRITICAL);
- clks[ADSP_SC57X_CLK_CDU_DDR] = cdu_gate("cdu_ddr", "cdu_ddr_sel", cdu + CDU_CFG3,
- CLK_IS_CRITICAL);
- clks[ADSP_SC57X_CLK_CAN] = cdu_gate("can", "can_sel", cdu + CDU_CFG4, 0);
- clks[ADSP_SC57X_CLK_SPDIF] = cdu_gate("spdif", "spdif_sel", cdu + CDU_CFG5, 0);
- clks[ADSP_SC57X_CLK_GIGE] = cdu_gate("gige", "gige_sel", cdu + CDU_CFG7, 0);
- clks[ADSP_SC57X_CLK_SDIO] = cdu_gate("sdio", "sdio_sel", cdu + CDU_CFG9, 0);
-
- ret = cdu_check_clocks(clks, ARRAY_SIZE(clks));
- if (ret)
- pr_err("CDU error detected\n");
-
- return ret;
-}
-
-static const struct udevice_id adi_sc57x_clk_ids[] = {
- { .compatible = "adi,sc57x-clocks" },
- { },
-};
-
-U_BOOT_DRIVER(adi_sc57x_clk) = {
- .name = "clk_adi_sc57x",
- .id = UCLASS_CLK,
- .of_match = adi_sc57x_clk_ids,
- .ops = &adi_clk_ops,
- .probe = sc57x_clock_probe,
- .flags = DM_FLAG_PRE_RELOC,
-};
+++ /dev/null
-// SPDX-License-Identifier: GPL-2.0-or-later
-/*
- * (C) Copyright 2022 - Analog Devices, Inc.
- *
- * Written and/or maintained by Timesys Corporation
- *
- * Author: Greg Malysa <greg.malysa@timesys.com>
- *
- * Ported from Linux: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
- */
-
-#include <clk.h>
-#include <clk-uclass.h>
-#include <dm.h>
-#include <dt-bindings/clock/adi-sc5xx-clock.h>
-#include <linux/compiler_types.h>
-#include <linux/clk-provider.h>
-#include <linux/io.h>
-#include <linux/ioport.h>
-#include <linux/printk.h>
-#include <linux/types.h>
-
-#include "clk.h"
-
-static const char * const cgu1_in_sels[] = {"sys_clkin0", "sys_clkin1"};
-static const char * const sharc0_sels[] = {"cclk0_0", "sysclk_0", "dummy", "dummy"};
-static const char * const sharc1_sels[] = {"cclk0_0", "sysclk_0", "dummy", "dummy"};
-static const char * const arm_sels[] = {"cclk1_0", "sysclk_0", "dummy", "dummy"};
-static const char * const cdu_ddr_sels[] = {"dclk_0", "dclk_1", "dummy", "dummy"};
-static const char * const can_sels[] = {"oclk_0", "oclk_1", "dclk_1", "dummy"};
-static const char * const spdif_sels[] = {"oclk_0", "oclk_1", "dclk_1", "dclk_0"};
-static const char * const reserved_sels[] = {"sclk0_0", "oclk_0", "dummy", "dummy"};
-static const char * const gige_sels[] = {"sclk0_0", "sclk1_1", "cclk0_1", "oclk_0"};
-static const char * const lp_sels[] = {"sclk0_0", "sclk0_1", "cclk1_1", "dclk_1"};
-static const char * const sdio_sels[] = {"oclk_0_half", "cclk1_1_half", "cclk1_1",
- "dclk_1"};
-
-static int sc58x_clock_probe(struct udevice *dev)
-{
- void __iomem *cgu0;
- void __iomem *cgu1;
- void __iomem *cdu;
- int ret;
- struct resource res;
-
- struct clk *clks[ADSP_SC58X_CLK_END];
- struct clk dummy, clkin0, clkin1;
-
- ret = dev_read_resource_byname(dev, "cgu0", &res);
- if (ret)
- return ret;
- cgu0 = devm_ioremap(dev, res.start, resource_size(&res));
-
- ret = dev_read_resource_byname(dev, "cgu1", &res);
- if (ret)
- return ret;
- cgu1 = devm_ioremap(dev, res.start, resource_size(&res));
-
- ret = dev_read_resource_byname(dev, "cdu", &res);
- if (ret)
- return ret;
- cdu = devm_ioremap(dev, res.start, resource_size(&res));
-
- // Input clock configuration
- clk_get_by_name(dev, "dummy", &dummy);
- clk_get_by_name(dev, "sys_clkin0", &clkin0);
- clk_get_by_name(dev, "sys_clkin1", &clkin1);
-
- clks[ADSP_SC58X_CLK_DUMMY] = &dummy;
- clks[ADSP_SC58X_CLK_SYS_CLKIN0] = &clkin0;
- clks[ADSP_SC58X_CLK_SYS_CLKIN1] = &clkin1;
-
- clks[ADSP_SC58X_CLK_CGU1_IN] = clk_register_mux(NULL, "cgu1_in_sel", cgu1_in_sels,
- 2, CLK_SET_RATE_PARENT,
- cdu + CDU_CLKINSEL, 0, 1, 0);
-
- // CGU configuration and internal clocks
- clks[ADSP_SC58X_CLK_CGU0_PLL_IN] = clk_register_divider(NULL, "cgu0_df",
- "sys_clkin0",
- CLK_SET_RATE_PARENT,
- cgu0 + CGU_CTL, 0, 1, 0);
- clks[ADSP_SC58X_CLK_CGU1_PLL_IN] = clk_register_divider(NULL, "cgu1_df",
- "cgu1_in_sel",
- CLK_SET_RATE_PARENT,
- cgu1 + CGU_CTL, 0, 1, 0);
-
- // VCO output inside PLL
- clks[ADSP_SC58X_CLK_CGU0_VCO_OUT] = sc5xx_cgu_pll("cgu0_vco", "cgu0_df",
- cgu0 + CGU_CTL, CGU_MSEL_SHIFT,
- CGU_MSEL_WIDTH, 0, false);
- clks[ADSP_SC58X_CLK_CGU1_VCO_OUT] = sc5xx_cgu_pll("cgu1_vco", "cgu1_df",
- cgu1 + CGU_CTL, CGU_MSEL_SHIFT,
- CGU_MSEL_WIDTH, 0, false);
-
- // Final PLL output
- clks[ADSP_SC58X_CLK_CGU0_PLLCLK] = clk_register_fixed_factor(NULL, "cgu0_pllclk",
- "cgu0_vco",
- CLK_SET_RATE_PARENT,
- 1, 1);
- clks[ADSP_SC58X_CLK_CGU1_PLLCLK] = clk_register_fixed_factor(NULL, "cgu1_pllclk",
- "cgu1_vco",
- CLK_SET_RATE_PARENT,
- 1, 1);
-
- // Dividers from pll output
- clks[ADSP_SC58X_CLK_CGU0_CDIV] = cgu_divider("cgu0_cdiv", "cgu0_pllclk",
- cgu0 + CGU_DIV, 0, 5, 0);
- clks[ADSP_SC58X_CLK_CGU0_SYSCLK] = cgu_divider("sysclk_0", "cgu0_pllclk",
- cgu0 + CGU_DIV, 8, 5, 0);
- clks[ADSP_SC58X_CLK_CGU0_DDIV] = cgu_divider("cgu0_ddiv", "cgu0_pllclk",
- cgu0 + CGU_DIV, 16, 5, 0);
- clks[ADSP_SC58X_CLK_CGU0_ODIV] = cgu_divider("cgu0_odiv", "cgu0_pllclk",
- cgu0 + CGU_DIV, 22, 7, 0);
- clks[ADSP_SC58X_CLK_CGU0_S0SELDIV] = cgu_divider("cgu0_s0seldiv", "sysclk_0",
- cgu0 + CGU_DIV, 5, 3, 0);
- clks[ADSP_SC58X_CLK_CGU0_S1SELDIV] = cgu_divider("cgu0_s1seldiv", "sysclk_0",
- cgu0 + CGU_DIV, 13, 3, 0);
-
- clks[ADSP_SC58X_CLK_CGU1_CDIV] = cgu_divider("cgu1_cdiv", "cgu1_pllclk",
- cgu1 + CGU_DIV, 0, 5, 0);
- clks[ADSP_SC58X_CLK_CGU1_SYSCLK] = cgu_divider("sysclk_1", "cgu1_pllclk",
- cgu1 + CGU_DIV, 8, 5, 0);
- clks[ADSP_SC58X_CLK_CGU1_DDIV] = cgu_divider("cgu1_ddiv", "cgu1_pllclk",
- cgu1 + CGU_DIV, 16, 5, 0);
- clks[ADSP_SC58X_CLK_CGU1_ODIV] = cgu_divider("cgu1_odiv", "cgu1_pllclk",
- cgu1 + CGU_DIV, 22, 7, 0);
- clks[ADSP_SC58X_CLK_CGU1_S0SELDIV] = cgu_divider("cgu1_s0seldiv", "sysclk_1",
- cgu1 + CGU_DIV, 5, 3, 0);
- clks[ADSP_SC58X_CLK_CGU1_S1SELDIV] = cgu_divider("cgu1_s1seldiv", "sysclk_1",
- cgu1 + CGU_DIV, 13, 3, 0);
-
- // Gates to enable CGU outputs
- clks[ADSP_SC58X_CLK_CGU0_CCLK0] = cgu_gate("cclk0_0", "cgu0_cdiv",
- cgu0 + CGU_CCBF_DIS, 0);
- clks[ADSP_SC58X_CLK_CGU0_CCLK1] = cgu_gate("cclk1_0", "cgu0_cdiv",
- cgu1 + CGU_CCBF_DIS, 1);
- clks[ADSP_SC58X_CLK_CGU0_OCLK] = cgu_gate("oclk_0", "cgu0_odiv",
- cgu0 + CGU_SCBF_DIS, 3);
- clks[ADSP_SC58X_CLK_CGU0_DCLK] = cgu_gate("dclk_0", "cgu0_ddiv",
- cgu0 + CGU_SCBF_DIS, 2);
- clks[ADSP_SC58X_CLK_CGU0_SCLK1] = cgu_gate("sclk1_0", "cgu0_s1seldiv",
- cgu0 + CGU_SCBF_DIS, 1);
- clks[ADSP_SC58X_CLK_CGU0_SCLK0] = cgu_gate("sclk0_0", "cgu0_s0seldiv",
- cgu0 + CGU_SCBF_DIS, 0);
-
- clks[ADSP_SC58X_CLK_CGU1_CCLK0] = cgu_gate("cclk0_1", "cgu1_cdiv",
- cgu1 + CGU_CCBF_DIS, 0);
- clks[ADSP_SC58X_CLK_CGU1_CCLK1] = cgu_gate("cclk1_1", "cgu1_cdiv",
- cgu1 + CGU_CCBF_DIS, 1);
- clks[ADSP_SC58X_CLK_CGU1_OCLK] = cgu_gate("oclk_1", "cgu1_odiv",
- cgu1 + CGU_SCBF_DIS, 3);
- clks[ADSP_SC58X_CLK_CGU1_DCLK] = cgu_gate("dclk_1", "cgu1_ddiv",
- cgu1 + CGU_SCBF_DIS, 2);
- clks[ADSP_SC58X_CLK_CGU1_SCLK1] = cgu_gate("sclk1_1", "cgu1_s1seldiv",
- cgu1 + CGU_SCBF_DIS, 1);
- clks[ADSP_SC58X_CLK_CGU1_SCLK0] = cgu_gate("sclk0_1", "cgu1_s0seldiv",
- cgu1 + CGU_SCBF_DIS, 0);
-
- // Extra half rate clocks generated in the CDU
- clks[ADSP_SC58X_CLK_OCLK0_HALF] = clk_register_fixed_factor(NULL, "oclk_0_half",
- "oclk_0",
- CLK_SET_RATE_PARENT,
- 1, 2);
- clks[ADSP_SC58X_CLK_CCLK1_1_HALF] = clk_register_fixed_factor(NULL,
- "cclk1_1_half",
- "cclk1_1",
- CLK_SET_RATE_PARENT,
- 1, 2);
-
- // CDU output muxes
- clks[ADSP_SC58X_CLK_SHARC0_SEL] = cdu_mux("sharc0_sel", cdu + CDU_CFG0,
- sharc0_sels);
- clks[ADSP_SC58X_CLK_SHARC1_SEL] = cdu_mux("sharc1_sel", cdu + CDU_CFG1,
- sharc1_sels);
- clks[ADSP_SC58X_CLK_ARM_SEL] = cdu_mux("arm_sel", cdu + CDU_CFG2, arm_sels);
- clks[ADSP_SC58X_CLK_CDU_DDR_SEL] = cdu_mux("cdu_ddr_sel", cdu + CDU_CFG3,
- cdu_ddr_sels);
- clks[ADSP_SC58X_CLK_CAN_SEL] = cdu_mux("can_sel", cdu + CDU_CFG4, can_sels);
- clks[ADSP_SC58X_CLK_SPDIF_SEL] = cdu_mux("spdif_sel", cdu + CDU_CFG5, spdif_sels);
- clks[ADSP_SC58X_CLK_RESERVED_SEL] = cdu_mux("reserved_sel", cdu + CDU_CFG6,
- reserved_sels);
- clks[ADSP_SC58X_CLK_GIGE_SEL] = cdu_mux("gige_sel", cdu + CDU_CFG7, gige_sels);
- clks[ADSP_SC58X_CLK_LP_SEL] = cdu_mux("lp_sel", cdu + CDU_CFG8, lp_sels);
- clks[ADSP_SC58X_CLK_SDIO_SEL] = cdu_mux("sdio_sel", cdu + CDU_CFG9, sdio_sels);
-
- // CDU output enable gates
- clks[ADSP_SC58X_CLK_SHARC0] = cdu_gate("sharc0", "sharc0_sel", cdu + CDU_CFG0,
- CLK_IS_CRITICAL);
- clks[ADSP_SC58X_CLK_SHARC1] = cdu_gate("sharc1", "sharc1_sel", cdu + CDU_CFG1,
- CLK_IS_CRITICAL);
- clks[ADSP_SC58X_CLK_ARM] = cdu_gate("arm", "arm_sel", cdu + CDU_CFG2,
- CLK_IS_CRITICAL);
- clks[ADSP_SC58X_CLK_CDU_DDR] = cdu_gate("cdu_ddr", "cdu_ddr_sel", cdu + CDU_CFG3,
- CLK_IS_CRITICAL);
- clks[ADSP_SC58X_CLK_CAN] = cdu_gate("can", "can_sel", cdu + CDU_CFG4, 0);
- clks[ADSP_SC58X_CLK_SPDIF] = cdu_gate("spdif", "spdif_sel", cdu + CDU_CFG5, 0);
- clks[ADSP_SC58X_CLK_RESERVED] = cdu_gate("reserved", "reserved_sel",
- cdu + CDU_CFG6, 0);
- clks[ADSP_SC58X_CLK_GIGE] = cdu_gate("gige", "gige_sel", cdu + CDU_CFG7, 0);
- clks[ADSP_SC58X_CLK_LP] = cdu_gate("lp", "lp_sel", cdu + CDU_CFG8, 0);
- clks[ADSP_SC58X_CLK_SDIO] = cdu_gate("sdio", "sdio_sel", cdu + CDU_CFG9, 0);
-
- ret = cdu_check_clocks(clks, ARRAY_SIZE(clks));
- if (ret)
- pr_err("CDU error detected\n");
-
- return ret;
-}
-
-static const struct udevice_id adi_sc58x_clk_ids[] = {
- { .compatible = "adi,sc58x-clocks" },
- { },
-};
-
-U_BOOT_DRIVER(adi_sc58x_clk) = {
- .name = "clk_adi_sc58x",
- .id = UCLASS_CLK,
- .of_match = adi_sc58x_clk_ids,
- .ops = &adi_clk_ops,
- .probe = sc58x_clock_probe,
- .flags = DM_FLAG_PRE_RELOC,
-};
+++ /dev/null
-// SPDX-License-Identifier: GPL-2.0-or-later
-/*
- * (C) Copyright 2022 - Analog Devices, Inc.
- *
- * Written and/or maintained by Timesys Corporation
- *
- * Author: Greg Malysa <greg.malysa@timesys.com>
- *
- * Ported from Linux: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
- */
-
-#include <clk.h>
-#include <clk-uclass.h>
-#include <dm.h>
-#include <dt-bindings/clock/adi-sc5xx-clock.h>
-#include <linux/compiler_types.h>
-#include <linux/clk-provider.h>
-#include <linux/io.h>
-#include <linux/ioport.h>
-#include <linux/printk.h>
-#include <linux/types.h>
-
-#include "clk.h"
-
-static const char * const cgu1_in_sels[] = {"sys_clkin0", "sys_clkin1"};
-static const char * const cgu0_s1sels[] = {"cgu0_s1seldiv", "cgu0_s1selexdiv"};
-static const char * const cgu1_s1sels[] = {"cgu1_s1seldiv", "cgu1_s1selexdiv"};
-static const char * const sharc0_sels[] = {"cclk0_0", "dummy", "dummy", "dummy"};
-static const char * const sharc1_sels[] = {"cclk0_0", "dummy", "dummy", "dummy"};
-static const char * const arm_sels[] = {"cclk1_0", "dummy", "dummy", "dummy"};
-static const char * const cdu_ddr_sels[] = {"dclk_0", "dclk_1", "dummy", "dummy"};
-static const char * const can_sels[] = {"oclk_0", "oclk_1", "dummy", "dummy"};
-static const char * const spdif_sels[] = {"sclk1_0", "dummy", "dummy", "dummy"};
-static const char * const spi_sels[] = {"sclk0_0", "oclk_0", "dummy", "dummy"};
-static const char * const gige_sels[] = {"sclk0_0", "sclk0_1", "cclk0_1", "dummy"};
-static const char * const lp_sels[] = {"oclk_0", "sclk0_0", "cclk0_1", "dummy"};
-static const char * const lpddr_sels[] = {"oclk_0", "dclk_0", "sysclkin_1", "dummy"};
-static const char * const ospi_sels[] = {"sysclk_0", "sclk0_0", "sclk1_1", "dummy"};
-static const char * const trace_sels[] = {"sclk0_0", "dummy", "dummy", "dummy"};
-
-static int sc594_clock_probe(struct udevice *dev)
-{
- void __iomem *cgu0;
- void __iomem *cgu1;
- void __iomem *cdu;
- int ret;
- struct resource res;
-
- struct clk *clks[ADSP_SC594_CLK_END];
- struct clk dummy, clkin0, clkin1;
-
- ret = dev_read_resource_byname(dev, "cgu0", &res);
- if (ret)
- return ret;
- cgu0 = devm_ioremap(dev, res.start, resource_size(&res));
-
- ret = dev_read_resource_byname(dev, "cgu1", &res);
- if (ret)
- return ret;
- cgu1 = devm_ioremap(dev, res.start, resource_size(&res));
-
- ret = dev_read_resource_byname(dev, "cdu", &res);
- if (ret)
- return ret;
- cdu = devm_ioremap(dev, res.start, resource_size(&res));
-
- // Input clock configuration
- clk_get_by_name(dev, "dummy", &dummy);
- clk_get_by_name(dev, "sys_clkin0", &clkin0);
- clk_get_by_name(dev, "sys_clkin1", &clkin1);
-
- clks[ADSP_SC594_CLK_DUMMY] = &dummy;
- clks[ADSP_SC594_CLK_SYS_CLKIN0] = &clkin0;
- clks[ADSP_SC594_CLK_SYS_CLKIN1] = &clkin1;
- clks[ADSP_SC594_CLK_CGU1_IN] = clk_register_mux(NULL, "cgu1_in_sel", cgu1_in_sels,
- 2, CLK_SET_RATE_PARENT,
- cdu + CDU_CLKINSEL, 0, 1, 0);
-
- // CGU configuration and internal clocks
- clks[ADSP_SC594_CLK_CGU0_PLL_IN] = clk_register_divider(NULL, "cgu0_df",
- "sys_clkin0",
- CLK_SET_RATE_PARENT,
- cgu0 + CGU_CTL, 0, 1, 0);
- clks[ADSP_SC594_CLK_CGU1_PLL_IN] = clk_register_divider(NULL, "cgu1_df",
- "cgu1_in_sel",
- CLK_SET_RATE_PARENT,
- cgu1 + CGU_CTL, 0, 1, 0);
-
- // VCO output inside PLL
- clks[ADSP_SC594_CLK_CGU0_VCO_OUT] = sc5xx_cgu_pll("cgu0_vco", "cgu0_df",
- cgu0 + CGU_CTL, CGU_MSEL_SHIFT,
- CGU_MSEL_WIDTH, 0, false);
- clks[ADSP_SC594_CLK_CGU1_VCO_OUT] = sc5xx_cgu_pll("cgu1_vco", "cgu1_df",
- cgu1 + CGU_CTL, CGU_MSEL_SHIFT,
- CGU_MSEL_WIDTH, 0, false);
-
- // Final PLL output
- clks[ADSP_SC594_CLK_CGU0_PLLCLK] = clk_register_fixed_factor(NULL, "cgu0_pllclk",
- "cgu0_vco",
- CLK_SET_RATE_PARENT,
- 1, 1);
- clks[ADSP_SC594_CLK_CGU1_PLLCLK] = clk_register_fixed_factor(NULL, "cgu1_pllclk",
- "cgu1_vco",
- CLK_SET_RATE_PARENT,
- 1, 1);
-
- // Dividers from pll output
- clks[ADSP_SC594_CLK_CGU0_CDIV] = cgu_divider("cgu0_cdiv", "cgu0_pllclk",
- cgu0 + CGU_DIV, 0, 5, 0);
- clks[ADSP_SC594_CLK_CGU0_SYSCLK] = cgu_divider("sysclk_0", "cgu0_pllclk",
- cgu0 + CGU_DIV, 8, 5, 0);
- clks[ADSP_SC594_CLK_CGU0_DDIV] = cgu_divider("cgu0_ddiv", "cgu0_pllclk",
- cgu0 + CGU_DIV, 16, 5, 0);
- clks[ADSP_SC594_CLK_CGU0_ODIV] = cgu_divider("cgu0_odiv", "cgu0_pllclk",
- cgu0 + CGU_DIV, 22, 7, 0);
- clks[ADSP_SC594_CLK_CGU0_S0SELDIV] = cgu_divider("cgu0_s0seldiv", "sysclk_0",
- cgu0 + CGU_DIV, 5, 3, 0);
- clks[ADSP_SC594_CLK_CGU0_S1SELDIV] = cgu_divider("cgu0_s1seldiv", "sysclk_0",
- cgu0 + CGU_DIV, 13, 3, 0);
- clks[ADSP_SC594_CLK_CGU0_S1SELEXDIV] = cgu_divider("cgu0_s1selexdiv",
- "cgu0_pllclk",
- cgu0 + CGU_DIVEX, 16, 8, 0);
- clks[ADSP_SC594_CLK_CGU0_S1SEL] = clk_register_mux(NULL, "cgu0_sclk1sel",
- cgu0_s1sels, 2,
- CLK_SET_RATE_PARENT,
- cgu0 + CGU_CTL, 17, 1, 0);
-
- clks[ADSP_SC594_CLK_CGU1_CDIV] = cgu_divider("cgu1_cdiv", "cgu1_pllclk",
- cgu1 + CGU_DIV, 0, 5, 0);
- clks[ADSP_SC594_CLK_CGU1_SYSCLK] = cgu_divider("sysclk_1", "cgu1_pllclk",
- cgu1 + CGU_DIV, 8, 5, 0);
- clks[ADSP_SC594_CLK_CGU1_DDIV] = cgu_divider("cgu1_ddiv", "cgu1_pllclk",
- cgu1 + CGU_DIV, 16, 5, 0);
- clks[ADSP_SC594_CLK_CGU1_ODIV] = cgu_divider("cgu1_odiv", "cgu1_pllclk",
- cgu1 + CGU_DIV, 22, 7, 0);
- clks[ADSP_SC594_CLK_CGU1_S0SELDIV] = cgu_divider("cgu1_s0seldiv", "sysclk_1",
- cgu1 + CGU_DIV, 5, 3, 0);
- clks[ADSP_SC594_CLK_CGU1_S1SELDIV] = cgu_divider("cgu1_s1seldiv", "sysclk_1",
- cgu1 + CGU_DIV, 13, 3, 0);
- clks[ADSP_SC594_CLK_CGU1_S1SELEXDIV] = cgu_divider("cgu1_s1selexdiv",
- "cgu1_pllclk",
- cgu1 + CGU_DIVEX, 16, 8, 0);
- clks[ADSP_SC594_CLK_CGU1_S1SEL] = clk_register_mux(NULL, "cgu1_sclk1sel",
- cgu1_s1sels, 2,
- CLK_SET_RATE_PARENT,
- cgu1 + CGU_CTL, 17, 1, 0);
-
- // Gates to enable CGU outputs
- clks[ADSP_SC594_CLK_CGU0_CCLK0] = cgu_gate("cclk0_0", "cgu0_cdiv",
- cgu0 + CGU_CCBF_DIS, 0);
- clks[ADSP_SC594_CLK_CGU0_CCLK1] = cgu_gate("cclk1_0", "cgu0_cdiv",
- cgu1 + CGU_CCBF_DIS, 1);
- clks[ADSP_SC594_CLK_CGU0_OCLK] = cgu_gate("oclk_0", "cgu0_odiv",
- cgu0 + CGU_SCBF_DIS, 3);
- clks[ADSP_SC594_CLK_CGU0_DCLK] = cgu_gate("dclk_0", "cgu0_ddiv",
- cgu0 + CGU_SCBF_DIS, 2);
- clks[ADSP_SC594_CLK_CGU0_SCLK1] = cgu_gate("sclk1_0", "cgu0_sclk1sel",
- cgu0 + CGU_SCBF_DIS, 1);
- clks[ADSP_SC594_CLK_CGU0_SCLK0] = cgu_gate("sclk0_0", "cgu0_s0seldiv",
- cgu0 + CGU_SCBF_DIS, 0);
-
- clks[ADSP_SC594_CLK_CGU1_CCLK0] = cgu_gate("cclk0_1", "cgu1_cdiv",
- cgu1 + CGU_CCBF_DIS, 0);
- clks[ADSP_SC594_CLK_CGU1_CCLK1] = cgu_gate("cclk1_1", "cgu1_cdiv",
- cgu1 + CGU_CCBF_DIS, 1);
- clks[ADSP_SC594_CLK_CGU1_OCLK] = cgu_gate("oclk_1", "cgu1_odiv",
- cgu1 + CGU_SCBF_DIS, 3);
- clks[ADSP_SC594_CLK_CGU1_DCLK] = cgu_gate("dclk_1", "cgu1_ddiv",
- cgu1 + CGU_SCBF_DIS, 2);
- clks[ADSP_SC594_CLK_CGU1_SCLK1] = cgu_gate("sclk1_1", "cgu1_sclk1sel",
- cgu1 + CGU_SCBF_DIS, 1);
- clks[ADSP_SC594_CLK_CGU1_SCLK0] = cgu_gate("sclk0_1", "cgu1_s0seldiv",
- cgu1 + CGU_SCBF_DIS, 0);
-
- // CDU output muxes
- clks[ADSP_SC594_CLK_SHARC0_SEL] = cdu_mux("sharc0_sel", cdu + CDU_CFG0,
- sharc0_sels);
- clks[ADSP_SC594_CLK_SHARC1_SEL] = cdu_mux("sharc1_sel", cdu + CDU_CFG1,
- sharc1_sels);
- clks[ADSP_SC594_CLK_ARM_SEL] = cdu_mux("arm_sel", cdu + CDU_CFG2, arm_sels);
- clks[ADSP_SC594_CLK_CDU_DDR_SEL] = cdu_mux("cdu_ddr_sel", cdu + CDU_CFG3,
- cdu_ddr_sels);
- clks[ADSP_SC594_CLK_CAN_SEL] = cdu_mux("can_sel", cdu + CDU_CFG4, can_sels);
- clks[ADSP_SC594_CLK_SPDIF_SEL] = cdu_mux("spdif_sel", cdu + CDU_CFG5, spdif_sels);
- clks[ADSP_SC594_CLK_RESERVED_SEL] = cdu_mux("spi_sel", cdu + CDU_CFG6, spi_sels);
- clks[ADSP_SC594_CLK_GIGE_SEL] = cdu_mux("gige_sel", cdu + CDU_CFG7, gige_sels);
- clks[ADSP_SC594_CLK_LP_SEL] = cdu_mux("lp_sel", cdu + CDU_CFG8, lp_sels);
- clks[ADSP_SC594_CLK_LPDDR_SEL] = cdu_mux("lpddr_sel", cdu + CDU_CFG9, lpddr_sels);
- clks[ADSP_SC594_CLK_OSPI_SEL] = cdu_mux("ospi_sel", cdu + CDU_CFG10,
- ospi_sels);
- clks[ADSP_SC594_CLK_TRACE_SEL] = cdu_mux("trace_sel", cdu + CDU_CFG12,
- trace_sels);
-
- // CDU output enable gates
- clks[ADSP_SC594_CLK_SHARC0] = cdu_gate("sharc0", "sharc0_sel",
- cdu + CDU_CFG0, CLK_IS_CRITICAL);
- clks[ADSP_SC594_CLK_SHARC1] = cdu_gate("sharc1", "sharc1_sel",
- cdu + CDU_CFG1, CLK_IS_CRITICAL);
- clks[ADSP_SC594_CLK_ARM] = cdu_gate("arm", "arm_sel", cdu + CDU_CFG2,
- CLK_IS_CRITICAL);
- clks[ADSP_SC594_CLK_CDU_DDR] = cdu_gate("cdu_ddr", "cdu_ddr_sel",
- cdu + CDU_CFG3, CLK_IS_CRITICAL);
- clks[ADSP_SC594_CLK_CAN] = cdu_gate("can", "can_sel", cdu + CDU_CFG4, 0);
- clks[ADSP_SC594_CLK_SPDIF] = cdu_gate("spdif", "spdif_sel", cdu + CDU_CFG5, 0);
- clks[ADSP_SC594_CLK_SPI] = cdu_gate("spi", "spi_sel", cdu + CDU_CFG6, 0);
- clks[ADSP_SC594_CLK_GIGE] = cdu_gate("gige", "gige_sel", cdu + CDU_CFG7, 0);
- clks[ADSP_SC594_CLK_LP] = cdu_gate("lp", "lp_sel", cdu + CDU_CFG8, 0);
- clks[ADSP_SC594_CLK_LPDDR] = cdu_gate("lpddr", "lpddr_sel", cdu + CDU_CFG9, 0);
- clks[ADSP_SC594_CLK_OSPI] = cdu_gate("ospi", "ospi_sel", cdu + CDU_CFG10, 0);
- clks[ADSP_SC594_CLK_TRACE] = cdu_gate("trace", "trace_sel", cdu + CDU_CFG12, 0);
-
- ret = cdu_check_clocks(clks, ARRAY_SIZE(clks));
- if (ret)
- pr_err("CDU error detected\n");
-
- return ret;
-}
-
-static const struct udevice_id adi_sc594_clk_ids[] = {
- { .compatible = "adi,sc594-clocks" },
- { },
-};
-
-U_BOOT_DRIVER(adi_sc594_clk) = {
- .name = "clk_adi_sc594",
- .id = UCLASS_CLK,
- .of_match = adi_sc594_clk_ids,
- .ops = &adi_clk_ops,
- .probe = sc594_clock_probe,
- .flags = DM_FLAG_PRE_RELOC,
-};
+++ /dev/null
-// SPDX-License-Identifier: GPL-2.0-or-later
-/*
- * (C) Copyright 2022 - Analog Devices, Inc.
- *
- * Written and/or maintained by Timesys Corporation
- *
- * Author: Greg Malysa <greg.malysa@timesys.com>
- *
- * Ported from Linux: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
- */
-
-#include <clk.h>
-#include <clk-uclass.h>
-#include <dm.h>
-#include <dt-bindings/clock/adi-sc5xx-clock.h>
-#include <linux/compiler_types.h>
-#include <linux/clk-provider.h>
-#include <linux/io.h>
-#include <linux/ioport.h>
-#include <linux/printk.h>
-#include <linux/types.h>
-
-#include "clk.h"
-
-static const char * const cgu1_in_sels[] = {"sys_clkin0", "sys_clkin1"};
-static const char * const cgu0_s1sels[] = {"cgu0_s1seldiv", "cgu0_s1selexdiv"};
-static const char * const cgu1_s0sels[] = {"cgu1_s0seldiv", "cgu1_s0selexdiv"};
-static const char * const cgu1_s1sels[] = {"cgu1_s1seldiv", "cgu1_s1selexdiv"};
-static const char * const sharc0_sels[] = {"cclk0_0", "dummy", "dummy", "dummy"};
-static const char * const sharc1_sels[] = {"cclk0_0", "dummy", "dummy", "dummy"};
-static const char * const arm_sels[] = {"dummy", "dummy", "cclk2_0", "cclk2_1"};
-static const char * const cdu_ddr_sels[] = {"dclk_0", "dclk_1", "dummy", "dummy"};
-static const char * const can_sels[] = {"dummy", "oclk_1", "dummy", "dummy"};
-static const char * const spdif_sels[] = {"sclk1_0", "dummy", "dummy", "dummy"};
-static const char * const spi_sels[] = {"sclk0_0", "oclk_0", "dummy", "dummy"};
-static const char * const gige_sels[] = {"sclk0_0", "sclk0_1", "dummy", "dummy"};
-static const char * const lp_sels[] = {"oclk_0", "sclk0_0", "cclk0_1", "dummy"};
-static const char * const lp_ddr_sels[] = {"oclk_0", "dclk_0", "sysclk_1", "dummy"};
-static const char * const ospi_refclk_sels[] = {"sysclk_0", "sclk0_0", "sclk1_1",
- "dummy"};
-static const char * const trace_sels[] = {"sclk0_0", "dummy", "dummy", "dummy"};
-static const char * const emmc_sels[] = {"oclk_0", "sclk0_1", "dclk_0_half",
- "dclk_1_half"};
-static const char * const emmc_timer_sels[] = {"dummy", "sclk1_1_half", "dummy",
- "dummy"};
-static const char * const ddr_sels[] = {"cdu_ddr", "3pll_ddiv"};
-
-static int sc598_clock_probe(struct udevice *dev)
-{
- void __iomem *cgu0;
- void __iomem *cgu1;
- void __iomem *cdu;
- void __iomem *pll3;
- int ret;
- struct resource res;
-
- struct clk *clks[ADSP_SC598_CLK_END];
- struct clk dummy, clkin0, clkin1;
-
- ret = dev_read_resource_byname(dev, "cgu0", &res);
- if (ret)
- return ret;
- cgu0 = devm_ioremap(dev, res.start, resource_size(&res));
-
- ret = dev_read_resource_byname(dev, "cgu1", &res);
- if (ret)
- return ret;
- cgu1 = devm_ioremap(dev, res.start, resource_size(&res));
-
- ret = dev_read_resource_byname(dev, "cdu", &res);
- if (ret)
- return ret;
- cdu = devm_ioremap(dev, res.start, resource_size(&res));
-
- ret = dev_read_resource_byname(dev, "pll3", &res);
- if (ret)
- return ret;
- pll3 = devm_ioremap(dev, res.start, resource_size(&res));
-
- // We only access this one register for pll3
- pll3 = pll3 + PLL3_OFFSET;
-
- // Input clock configuration
- clk_get_by_name(dev, "dummy", &dummy);
- clk_get_by_name(dev, "sys_clkin0", &clkin0);
- clk_get_by_name(dev, "sys_clkin1", &clkin1);
-
- clks[ADSP_SC598_CLK_DUMMY] = &dummy;
- clks[ADSP_SC598_CLK_SYS_CLKIN0] = &clkin0;
- clks[ADSP_SC598_CLK_SYS_CLKIN1] = &clkin1;
-
- clks[ADSP_SC598_CLK_CGU1_IN] = clk_register_mux(NULL, "cgu1_in_sel", cgu1_in_sels,
- 2, CLK_SET_RATE_PARENT,
- cdu + CDU_CLKINSEL, 0, 1, 0);
-
- // 3rd pll reuses cgu1 clk in selection, feeds directly into 3pll df
- // changing the cgu1 in sel mux will affect 3pll so reuse the same clocks
-
- // CGU configuration and internal clocks
- clks[ADSP_SC598_CLK_CGU0_PLL_IN] = clk_register_divider(NULL, "cgu0_df",
- "sys_clkin0",
- CLK_SET_RATE_PARENT,
- cgu0 + CGU_CTL, 0, 1, 0);
- clks[ADSP_SC598_CLK_CGU1_PLL_IN] = clk_register_divider(NULL, "cgu1_df",
- "cgu1_in_sel",
- CLK_SET_RATE_PARENT,
- cgu1 + CGU_CTL, 0, 1, 0);
- clks[ADSP_SC598_CLK_3PLL_PLL_IN] = clk_register_divider(NULL, "3pll_df",
- "cgu1_in_sel",
- CLK_SET_RATE_PARENT,
- pll3, 3, 1, 0);
-
- // VCO output inside PLL
- clks[ADSP_SC598_CLK_CGU0_VCO_OUT] = sc5xx_cgu_pll("cgu0_vco", "cgu0_df",
- cgu0 + CGU_CTL, CGU_MSEL_SHIFT,
- CGU_MSEL_WIDTH, 0, true);
- clks[ADSP_SC598_CLK_CGU1_VCO_OUT] = sc5xx_cgu_pll("cgu1_vco", "cgu1_df",
- cgu1 + CGU_CTL, CGU_MSEL_SHIFT,
- CGU_MSEL_WIDTH, 0, true);
- clks[ADSP_SC598_CLK_3PLL_VCO_OUT] = sc5xx_cgu_pll("3pll_vco", "3pll_df",
- pll3, PLL3_MSEL_SHIFT,
- PLL3_MSEL_WIDTH, 1, true);
-
- // Final PLL output
- clks[ADSP_SC598_CLK_CGU0_PLLCLK] = clk_register_fixed_factor(NULL, "cgu0_pllclk",
- "cgu0_vco",
- CLK_SET_RATE_PARENT,
- 1, 2);
- clks[ADSP_SC598_CLK_CGU1_PLLCLK] = clk_register_fixed_factor(NULL, "cgu1_pllclk",
- "cgu1_vco",
- CLK_SET_RATE_PARENT,
- 1, 2);
- clks[ADSP_SC598_CLK_3PLL_PLLCLK] = clk_register_fixed_factor(NULL, "3pll_pllclk",
- "3pll_vco",
- CLK_SET_RATE_PARENT,
- 1, 2);
-
- // Dividers from pll output
- clks[ADSP_SC598_CLK_CGU0_CDIV] = cgu_divider("cgu0_cdiv", "cgu0_pllclk",
- cgu0 + CGU_DIV, 0, 5, 0);
- clks[ADSP_SC598_CLK_CGU0_SYSCLK] = cgu_divider("sysclk_0", "cgu0_pllclk",
- cgu0 + CGU_DIV, 8, 5, 0);
- clks[ADSP_SC598_CLK_CGU0_DDIV] = cgu_divider("cgu0_ddiv", "cgu0_pllclk",
- cgu0 + CGU_DIV, 16, 5, 0);
- clks[ADSP_SC598_CLK_CGU0_ODIV] = cgu_divider("cgu0_odiv", "cgu0_pllclk",
- cgu0 + CGU_DIV, 22, 7, 0);
- clks[ADSP_SC598_CLK_CGU0_S0SELDIV] = cgu_divider("cgu0_s0seldiv", "sysclk_0",
- cgu0 + CGU_DIV, 5, 3, 0);
- clks[ADSP_SC598_CLK_CGU0_S1SELDIV] = cgu_divider("cgu0_s1seldiv", "sysclk_0",
- cgu0 + CGU_DIV, 13, 3, 0);
- clks[ADSP_SC598_CLK_CGU0_S1SELEXDIV] = cgu_divider("cgu0_s1selexdiv",
- "cgu0_pllclk",
- cgu0 + CGU_DIVEX, 16, 8, 0);
- clks[ADSP_SC598_CLK_CGU0_S1SEL] = clk_register_mux(NULL, "cgu0_sclk1sel",
- cgu0_s1sels, 2,
- CLK_SET_RATE_PARENT,
- cgu0 + CGU_CTL, 17, 1, 0);
- clks[ADSP_SC598_CLK_CGU0_CCLK2] = clk_register_fixed_factor(NULL, "cclk2_0",
- "cgu0_vco",
- CLK_SET_RATE_PARENT,
- 1, 3);
-
- clks[ADSP_SC598_CLK_CGU1_CDIV] = cgu_divider("cgu1_cdiv", "cgu1_pllclk",
- cgu1 + CGU_DIV, 0, 5, 0);
- clks[ADSP_SC598_CLK_CGU1_SYSCLK] = cgu_divider("sysclk_1", "cgu1_pllclk",
- cgu1 + CGU_DIV, 8, 5, 0);
- clks[ADSP_SC598_CLK_CGU1_DDIV] = cgu_divider("cgu1_ddiv", "cgu1_pllclk",
- cgu1 + CGU_DIV, 16, 5, 0);
- clks[ADSP_SC598_CLK_CGU1_ODIV] = cgu_divider("cgu1_odiv", "cgu1_pllclk",
- cgu1 + CGU_DIV, 22, 7, 0);
- clks[ADSP_SC598_CLK_CGU1_S0SELDIV] = cgu_divider("cgu1_s0seldiv", "sysclk_1",
- cgu1 + CGU_DIV, 5, 3, 0);
- clks[ADSP_SC598_CLK_CGU1_S1SELDIV] = cgu_divider("cgu1_s1seldiv", "sysclk_1",
- cgu1 + CGU_DIV, 13, 3, 0);
- clks[ADSP_SC598_CLK_CGU1_S0SELEXDIV] = cgu_divider("cgu1_s0selexdiv",
- "cgu1_pllclk",
- cgu1 + CGU_DIVEX, 0, 8, 0);
- clks[ADSP_SC598_CLK_CGU1_S1SELEXDIV] = cgu_divider("cgu1_s1selexdiv",
- "cgu1_pllclk",
- cgu1 + CGU_DIVEX, 16, 8, 0);
- clks[ADSP_SC598_CLK_CGU1_S0SEL] = clk_register_mux(NULL, "cgu1_sclk0sel",
- cgu1_s0sels, 2,
- CLK_SET_RATE_PARENT,
- cgu1 + CGU_CTL, 16, 1, 0);
- clks[ADSP_SC598_CLK_CGU1_S1SEL] = clk_register_mux(NULL, "cgu1_sclk1sel",
- cgu1_s1sels, 2,
- CLK_SET_RATE_PARENT,
- cgu1 + CGU_CTL, 17, 1, 0);
- clks[ADSP_SC598_CLK_CGU1_CCLK2] = clk_register_fixed_factor(NULL, "cclk2_1",
- "cgu1_vco",
- CLK_SET_RATE_PARENT,
- 1, 3);
-
- clks[ADSP_SC598_CLK_3PLL_DDIV] = clk_register_divider(NULL, "3pll_ddiv",
- "3pll_pllclk",
- CLK_SET_RATE_PARENT, pll3,
- 12, 5, 0);
-
- // Gates to enable CGU outputs
- clks[ADSP_SC598_CLK_CGU0_CCLK0] = cgu_gate("cclk0_0", "cgu0_cdiv",
- cgu0 + CGU_CCBF_DIS, 0);
- clks[ADSP_SC598_CLK_CGU0_OCLK] = cgu_gate("oclk_0", "cgu0_odiv",
- cgu0 + CGU_SCBF_DIS, 3);
- clks[ADSP_SC598_CLK_CGU0_DCLK] = cgu_gate("dclk_0", "cgu0_ddiv",
- cgu0 + CGU_SCBF_DIS, 2);
- clks[ADSP_SC598_CLK_CGU0_SCLK1] = cgu_gate("sclk1_0", "cgu0_sclk1sel",
- cgu0 + CGU_SCBF_DIS, 1);
- clks[ADSP_SC598_CLK_CGU0_SCLK0] = cgu_gate("sclk0_0", "cgu0_s0seldiv",
- cgu0 + CGU_SCBF_DIS, 0);
-
- clks[ADSP_SC598_CLK_CGU1_CCLK0] = cgu_gate("cclk0_1", "cgu1_cdiv",
- cgu1 + CGU_CCBF_DIS, 0);
- clks[ADSP_SC598_CLK_CGU1_OCLK] = cgu_gate("oclk_1", "cgu1_odiv",
- cgu1 + CGU_SCBF_DIS, 3);
- clks[ADSP_SC598_CLK_CGU1_DCLK] = cgu_gate("dclk_1", "cgu1_ddiv",
- cgu1 + CGU_SCBF_DIS, 2);
- clks[ADSP_SC598_CLK_CGU1_SCLK1] = cgu_gate("sclk1_1", "cgu1_sclk1sel",
- cgu1 + CGU_SCBF_DIS, 1);
- clks[ADSP_SC598_CLK_CGU1_SCLK0] = cgu_gate("sclk0_1", "cgu1_sclk0sel",
- cgu1 + CGU_SCBF_DIS, 0);
-
- // Extra half rate clocks generated in the CDU
- clks[ADSP_SC598_CLK_DCLK0_HALF] = clk_register_fixed_factor(NULL, "dclk_0_half",
- "dclk_0",
- CLK_SET_RATE_PARENT,
- 1, 2);
- clks[ADSP_SC598_CLK_DCLK1_HALF] = clk_register_fixed_factor(NULL, "dclk_1_half",
- "dclk_1",
- CLK_SET_RATE_PARENT,
- 1, 2);
- clks[ADSP_SC598_CLK_CGU1_SCLK1_HALF] = clk_register_fixed_factor(NULL,
- "sclk1_1_half",
- "sclk1_1",
- CLK_SET_RATE_PARENT,
- 1, 2);
-
- // CDU output muxes
- clks[ADSP_SC598_CLK_SHARC0_SEL] = cdu_mux("sharc0_sel", cdu + CDU_CFG0,
- sharc0_sels);
- clks[ADSP_SC598_CLK_SHARC1_SEL] = cdu_mux("sharc1_sel", cdu + CDU_CFG1,
- sharc1_sels);
- clks[ADSP_SC598_CLK_ARM_SEL] = cdu_mux("arm_sel", cdu + CDU_CFG2, arm_sels);
- clks[ADSP_SC598_CLK_CDU_DDR_SEL] = cdu_mux("cdu_ddr_sel", cdu + CDU_CFG3,
- cdu_ddr_sels);
- clks[ADSP_SC598_CLK_CAN_SEL] = cdu_mux("can_sel", cdu + CDU_CFG4, can_sels);
- clks[ADSP_SC598_CLK_SPDIF_SEL] = cdu_mux("spdif_sel", cdu + CDU_CFG5, spdif_sels);
- clks[ADSP_SC598_CLK_SPI_SEL] = cdu_mux("spi_sel", cdu + CDU_CFG6, spi_sels);
- clks[ADSP_SC598_CLK_GIGE_SEL] = cdu_mux("gige_sel", cdu + CDU_CFG7, gige_sels);
- clks[ADSP_SC598_CLK_LP_SEL] = cdu_mux("lp_sel", cdu + CDU_CFG8, lp_sels);
- clks[ADSP_SC598_CLK_LP_DDR_SEL] = cdu_mux("lp_ddr_sel", cdu + CDU_CFG9,
- lp_ddr_sels);
- clks[ADSP_SC598_CLK_OSPI_REFCLK_SEL] = cdu_mux("ospi_refclk_sel", cdu + CDU_CFG10,
- ospi_refclk_sels);
- clks[ADSP_SC598_CLK_TRACE_SEL] = cdu_mux("trace_sel", cdu + CDU_CFG12,
- trace_sels);
- clks[ADSP_SC598_CLK_EMMC_SEL] = cdu_mux("emmc_sel", cdu + CDU_CFG13, emmc_sels);
- clks[ADSP_SC598_CLK_EMMC_TIMER_QMC_SEL] = cdu_mux("emmc_timer_qmc_sel",
- cdu + CDU_CFG14,
- emmc_timer_sels);
-
- // CDU output enable gates
- clks[ADSP_SC598_CLK_SHARC0] = cdu_gate("sharc0", "sharc0_sel", cdu + CDU_CFG0,
- CLK_IS_CRITICAL);
- clks[ADSP_SC598_CLK_SHARC1] = cdu_gate("sharc1", "sharc1_sel", cdu + CDU_CFG1,
- CLK_IS_CRITICAL);
- clks[ADSP_SC598_CLK_ARM] = cdu_gate("arm", "arm_sel", cdu + CDU_CFG2,
- CLK_IS_CRITICAL);
- clks[ADSP_SC598_CLK_CDU_DDR] = cdu_gate("cdu_ddr", "cdu_ddr_sel", cdu + CDU_CFG3,
- 0);
- clks[ADSP_SC598_CLK_CAN] = cdu_gate("can", "can_sel", cdu + CDU_CFG4, 0);
- clks[ADSP_SC598_CLK_SPDIF] = cdu_gate("spdif", "spdif_sel", cdu + CDU_CFG5, 0);
- clks[ADSP_SC598_CLK_SPI] = cdu_gate("spi", "spi_sel", cdu + CDU_CFG6, 0);
- clks[ADSP_SC598_CLK_GIGE] = cdu_gate("gige", "gige_sel", cdu + CDU_CFG7, 0);
- clks[ADSP_SC598_CLK_LP] = cdu_gate("lp", "lp_sel", cdu + CDU_CFG8, 0);
- clks[ADSP_SC598_CLK_LP_DDR] = cdu_gate("lp_ddr", "lp_ddr_sel", cdu + CDU_CFG9, 0);
- clks[ADSP_SC598_CLK_OSPI_REFCLK] = cdu_gate("ospi_refclk", "ospi_refclk_sel",
- cdu + CDU_CFG10, 0);
- clks[ADSP_SC598_CLK_TRACE] = cdu_gate("trace", "trace_sel", cdu + CDU_CFG12, 0);
- clks[ADSP_SC598_CLK_EMMC] = cdu_gate("emmc", "emmc_sel", cdu + CDU_CFG13, 0);
- clks[ADSP_SC598_CLK_EMMC_TIMER_QMC] = cdu_gate("emmc_timer_qmc",
- "emmc_timer_qmc_sel",
- cdu + CDU_CFG14, 0);
-
- // Dedicated DDR output mux
- clks[ADSP_SC598_CLK_DDR] = clk_register_mux(NULL, "ddr", ddr_sels, 2,
- CLK_SET_RATE_PARENT | CLK_IS_CRITICAL,
- pll3, 11, 1, 0);
-
- ret = cdu_check_clocks(clks, ARRAY_SIZE(clks));
- if (ret)
- pr_err("CDU error detected\n");
-
- return ret;
-}
-
-static const struct udevice_id adi_sc598_clk_ids[] = {
- { .compatible = "adi,sc598-clocks" },
- { },
-};
-
-U_BOOT_DRIVER(adi_sc598_clk) = {
- .name = "clk_adi_sc598",
- .id = UCLASS_CLK,
- .of_match = adi_sc598_clk_ids,
- .ops = &adi_clk_ops,
- .probe = sc598_clock_probe,
- .flags = DM_FLAG_PRE_RELOC,
-};
+++ /dev/null
-// SPDX-License-Identifier: GPL-2.0-or-later
-/*
- * (C) Copyright 2022 - Analog Devices, Inc.
- *
- * Written and/or maintained by Timesys Corporation
- *
- * Author: Greg Malysa <greg.malysa@timesys.com>
- */
-
-#include "clk.h"
-
-static ulong adi_get_rate(struct clk *clk)
-{
- struct clk *c;
- int ret;
-
- ret = clk_get_by_id(clk->id, &c);
- if (ret)
- return ret;
-
- return clk_get_rate(c);
-}
-
-static ulong adi_set_rate(struct clk *clk, ulong rate)
-{
- //Not yet implemented
- return 0;
-}
-
-static int adi_enable(struct clk *clk)
-{
- //Not yet implemented
- return 0;
-}
-
-static int adi_disable(struct clk *clk)
-{
- //Not yet implemented
- return 0;
-}
-
-const struct clk_ops adi_clk_ops = {
- .set_rate = adi_set_rate,
- .get_rate = adi_get_rate,
- .enable = adi_enable,
- .disable = adi_disable,
-};
-
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0-or-later */
-/*
- * (C) Copyright 2022 - Analog Devices, Inc.
- *
- * Written and/or maintained by Timesys Corporation
- *
- * Author: Greg Malysa <greg.malysa@timesys.com>
- *
- * Ported from Linux: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
- */
-
-#ifndef CLK_ADI_CLK_H
-#define CLK_ADI_CLK_H
-
-#include <linux/compiler_types.h>
-#include <linux/types.h>
-#include <linux/clk-provider.h>
-
-#define CGU_CTL 0x00
-#define CGU_PLLCTL 0x04
-#define CGU_STAT 0x08
-#define CGU_DIV 0x0C
-#define CGU_CLKOUTSEL 0x10
-#define CGU_OSCWDCTL 0x14
-#define CGU_TSCTL 0x18
-#define CGU_TSVALUE0 0x1C
-#define CGU_TSVALUE1 0x20
-#define CGU_TSCOUNT0 0x24
-#define CGU_TSCOUNT1 0x28
-#define CGU_CCBF_DIS 0x2C
-#define CGU_CCBF_STAT 0x30
-#define CGU_SCBF_DIS 0x38
-#define CGU_SCBF_STAT 0x3C
-#define CGU_DIVEX 0x40
-#define CGU_REVID 0x48
-
-#define CDU_CFG0 0x00
-#define CDU_CFG1 0x04
-#define CDU_CFG2 0x08
-#define CDU_CFG3 0x0C
-#define CDU_CFG4 0x10
-#define CDU_CFG5 0x14
-#define CDU_CFG6 0x18
-#define CDU_CFG7 0x1C
-#define CDU_CFG8 0x20
-#define CDU_CFG9 0x24
-#define CDU_CFG10 0x28
-#define CDU_CFG11 0x2C
-#define CDU_CFG12 0x30
-#define CDU_CFG13 0x34
-#define CDU_CFG14 0x38
-
-#define PLL3_OFFSET 0x2c
-
-#define CDU_CLKINSEL 0x44
-
-#define CGU_MSEL_SHIFT 8
-#define CGU_MSEL_WIDTH 7
-
-#define PLL3_MSEL_SHIFT 4
-#define PLL3_MSEL_WIDTH 7
-
-#define CDU_MUX_SIZE 4
-#define CDU_MUX_SHIFT 1
-#define CDU_MUX_WIDTH 2
-#define CDU_EN_BIT 0
-
-extern const struct clk_ops adi_clk_ops;
-
-struct clk *sc5xx_cgu_pll(const char *name, const char *parent_name,
- void __iomem *base, u8 shift, u8 width, u32 m_offset, bool half_m);
-
-/**
- * All CDU clock muxes are the same size
- */
-static inline struct clk *cdu_mux(const char *name, void __iomem *reg,
- const char * const *parents)
-{
- return clk_register_mux(NULL, name, parents, CDU_MUX_SIZE,
- CLK_SET_RATE_PARENT, reg, CDU_MUX_SHIFT, CDU_MUX_WIDTH, 0);
-}
-
-static inline struct clk *cgu_divider(const char *name, const char *parent,
- void __iomem *reg, u8 shift, u8 width, u8 extra_flags)
-{
- return clk_register_divider(NULL, name, parent, CLK_SET_RATE_PARENT,
- reg, shift, width, CLK_DIVIDER_MAX_AT_ZERO | extra_flags);
-}
-
-static inline struct clk *cdu_gate(const char *name, const char *parent,
- void __iomem *reg, u32 flags)
-{
- return clk_register_gate(NULL, name, parent, CLK_SET_RATE_PARENT | flags,
- reg, CDU_EN_BIT, 0, NULL);
-}
-
-static inline struct clk *cgu_gate(const char *name, const char *parent,
- void __iomem *reg, u8 bit)
-{
- return clk_register_gate(NULL, name, parent, CLK_SET_RATE_PARENT, reg, bit,
- CLK_GATE_SET_TO_DISABLE, NULL);
-}
-
-static inline int cdu_check_clocks(struct clk *clks[], size_t count)
-{
- size_t i;
-
- for (i = 0; i < count; ++i) {
- if (clks[i]) {
- if (IS_ERR(clks[i])) {
- pr_err("Clock %zu failed to register: %ld\n", i, PTR_ERR(clks[i]));
- return PTR_ERR(clks[i]);
- }
- clks[i]->id = i;
- } else {
- pr_err("ADI Clock framework: Null pointer detected on clock %zu\n", i);
- }
- }
-
- return 0;
-}
-
-#endif
* Copyright (C) 2019 Intel Corporation <www.intel.com>
*/
+#include <common.h>
#include <log.h>
#include <asm/global_data.h>
#include <asm/io.h>
#include <asm/global_data.h>
#include <asm/io.h>
#include <asm/system.h>
+#include <asm/u-boot.h>
#include <dm/lists.h>
#include <dm/util.h>
#include <linux/bitops.h>
* Copyright (C) 2018 Marek Vasut <marex@denx.de>
*/
+#include <common.h>
#include <malloc.h>
#include <asm/io.h>
#include <clk-uclass.h>
* Copyright (C) 2020-2022 Intel Corporation <www.intel.com>
*/
+#include <common.h>
#include <asm/arch/clock_manager.h>
#include <asm/global_data.h>
#include <asm/io.h>
* Copyright (C) 2020-2022 Intel Corporation <www.intel.com>
*/
+#include <common.h>
#include <asm/arch/clock_manager.h>
#include <asm/global_data.h>
#include <asm/io.h>
* (C) Copyright 2016 Google, Inc
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <log.h>
* Copyright (C) ASPEED Technology Inc.
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <asm/io.h>
*
* Based on drivers/clk/at91/clk-generated.c from Linux.
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <linux/io.h>
*/
#include <asm/processor.h>
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <linux/clk-provider.h>
#include <asm/processor.h>
#include <clk-uclass.h>
+#include <common.h>
#include <div64.h>
#include <dm.h>
#include <linux/clk-provider.h>
*
* Based on drivers/clk/at91/clk-peripheral.c from Linux.
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <linux/io.h>
*
* Based on drivers/clk/at91/clk-programmable.c from Linux.
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <linux/clk-provider.h>
*/
#include <asm/processor.h>
+#include <common.h>
#include <clk-uclass.h>
#include <div64.h>
#include <dm.h>
* Based on drivers/clk/at91/clk-system.c from Linux.
*/
#include <asm/processor.h>
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <linux/io.h>
* Based on drivers/clk/at91/clk-utmi.c from Linux.
*/
#include <asm/processor.h>
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <linux/clk-provider.h>
*
* Author: Claudiu Beznea <claudiu.beznea@microchip.com>
*/
-#include <config.h>
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <asm/global_data.h>
* Wenyou.Yang <wenyou.yang@atmel.com>
*/
+#include <common.h>
#include <asm/io.h>
#include <clk-uclass.h>
#include <linux/clk-provider.h>
* Based on sam9x60.c on Linux.
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <dt-bindings/clk/at91.h>
* Based on drivers/clk/at91/sama7g5.c from Linux.
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <dt-bindings/clk/at91.h>
* Author: Claudiu Beznea <claudiu.beznea@microchip.com>
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <dt-bindings/clk/at91.h>
* Based on Linux kernel clk-cdce925.c.
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <clk-uclass.h>
#define LOG_CATEGORY UCLASS_CLK
+#include <common.h>
#include <clk.h>
#include <clk-uclass.h>
#include <log.h>
#define LOG_CATEGORY UCLASS_CLK
+#include <common.h>
#include <asm/io.h>
#include <malloc.h>
#include <clk-uclass.h>
#define LOG_CATEGORY UCLASS_CLK
+#include <common.h>
#include <clk.h>
#include <clk-uclass.h>
#include <div64.h>
#define LOG_CATEGORY UCLASS_CLK
+#include <common.h>
#include <clk.h>
#include <log.h>
#include <clk-uclass.h>
* warranty of any kind, whether express or implied.
*/
+#include <common.h>
#include <clk-uclass.h>
#include <div64.h>
#include <dm.h>
#define LOG_CATEGORY UCLASS_CLK
+#include <common.h>
#include <clk.h>
#include <clk-uclass.h>
#include <log.h>
#define LOG_CATEGORY UCLASS_CLK
+#include <common.h>
#include <clk.h>
#include <clk-uclass.h>
#include <dm.h>
* Author: Zhengxun Li <zhengxunli@mxic.com.tw>
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <div64.h>
#define LOG_CATEGORY UCLASS_CLK
+#include <common.h>
#include <clk.h>
#include <clk-uclass.h>
#include <log.h>
* Copyright (C) 2008 Maxime Bizon <mbizon@freebox.fr>
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <errno.h>
* Copyright (C) 2016 Imagination Technologies
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <dt-bindings/clock/boston-clock.h>
#define LOG_CATEGORY UCLASS_CLK
+#include <common.h>
#include <clk-uclass.h>
#include <div64.h>
#include <dm.h>
#define LOG_CATEGORY UCLASS_CLK
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <log.h>
*/
#define LOG_CATEGORY UCLASS_CLK
+#include <common.h>
#include <clk.h>
#include <clk-uclass.h>
#include <div64.h>
*
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <div64.h>
* (C) Copyright 2015 Google, Inc
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <errno.h>
* Common Clock Framework [CCF] driver for Sandbox
*/
+#include <common.h>
#include <dm.h>
#include <clk.h>
#include <malloc.h>
* Copyright (c) 2016, NVIDIA CORPORATION.
*/
+#include <common.h>
#include <dm.h>
#include <clk.h>
#include <malloc.h>
#define LOG_CATEGORY UCLASS_CLK
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <scmi_agent.h>
* Derived from code Copyright (C) 2017 Marek Vasut <marek.vasut@gmail.com>
*/
+#include <common.h>
#include <clk.h>
#include <clk-uclass.h>
#include <dm.h>
* Siva Durga Prasad Paladugu <siva.durga.prasad.paladugu@amd.com>>
*/
+#include <common.h>
#include <log.h>
#include <asm/cache.h>
#include <asm/ptrace.h>
*
*/
#define DEBUG
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <log.h>
* Copyright (C) 2013 Xilinx, Inc. All rights reserved.
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <log.h>
* Copyright (C) 2016 Xilinx, Inc.
*/
+#include <common.h>
#include <log.h>
#include <malloc.h>
#include <dm/device_compat.h>
* Thomas Abraham <thomas.ab@samsung.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <clk-uclass.h>
* Dirk Eibach, Guntermann & Drunck GmbH, eibach@gdsys.de
*/
+#include <common.h>
#include <dm.h>
#include <clk-uclass.h>
#include <i2c.h>
* Copyright 2019 NXP
*/
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <malloc.h>
*
* Peng Fan <peng.fan@nxp.com>
*/
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <malloc.h>
* Copyright 2021 NXP
*/
+#include <common.h>
#include <asm/io.h>
#include <malloc.h>
#include <clk-uclass.h>
* Peng Fan <peng.fan@nxp.com>
*/
+#include <common.h>
#include <asm/io.h>
#include <malloc.h>
#include <clk-uclass.h>
*
*/
+#include <common.h>
#include <asm/io.h>
#include <malloc.h>
#include <clk-uclass.h>
* Lukasz Majewski, DENX Software Engineering, lukma@denx.de
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <log.h>
* Peng Fan <peng.fan@nxp.com>
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <log.h>
* Peng Fan <peng.fan@nxp.com>
*/
+#include <common.h>
#include <clk.h>
#include <clk-uclass.h>
#include <dm.h>
* Peng Fan <peng.fan@nxp.com>
*/
+#include <common.h>
#include <clk.h>
#include <clk-uclass.h>
#include <dm.h>
* Peng Fan <peng.fan@nxp.com>
*/
+#include <common.h>
#include <clk.h>
#include <clk-uclass.h>
#include <dm.h>
* Peng Fan <peng.fan@nxp.com>
*/
+#include <common.h>
#include <clk.h>
#include <clk-uclass.h>
#include <dm.h>
* Peng Fan <peng.fan@nxp.com>
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <log.h>
* Peng Fan <peng.fan@nxp.com>
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <log.h>
* Copyright 2021 NXP.
*/
+#include <common.h>
#include <clk.h>
#include <clk-uclass.h>
#include <dm.h>
* Author(s): Giulio Benetti <giulio.benetti@benettiengineering.com>
*/
+#include <common.h>
#include <clk.h>
#include <clk-uclass.h>
#include <dm.h>
* Author(s): Giulio Benetti <giulio.benetti@benettiengineering.com>
*/
+#include <common.h>
#include <clk.h>
#include <clk-uclass.h>
#include <dm.h>
* Author(s): Jesse Taube <Mr.Bossman075@gmail.com>
*/
+#include <common.h>
#include <clk.h>
#include <clk-uclass.h>
#include <dm.h>
* http://www.gnu.org/copyleft/gpl.html
*/
+#include <common.h>
#include <asm/io.h>
#include <malloc.h>
#include <clk-uclass.h>
* Peng Fan <peng.fan@nxp.com>
*/
+#include <common.h>
#include <asm/io.h>
#include <malloc.h>
#include <clk-uclass.h>
* Lukasz Majewski, DENX Software Engineering, lukma@denx.de
*/
+#include <common.h>
#include <asm/io.h>
#include <div64.h>
#include <malloc.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <clk-uclass.h>
#include <dt-bindings/clock/intel-clock.h>
* Author: Ryder Lee <ryder.lee@mediatek.com>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <asm/arch-mediatek/reset.h>
* Author: Ryder Lee <ryder.lee@mediatek.com>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <asm/arch-mediatek/reset.h>
* Author: Ryder Lee <ryder.lee@mediatek.com>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <asm/arch-mediatek/reset.h>
* Author: Weiyi Lu <weiyi.lu@mediatek.com>
*/
+#include <common.h>
#include <dm.h>
#include <asm/io.h>
#include <dt-bindings/clock/mt8183-clk.h>
* Author: Chen Zhong <chen.zhong@mediatek.com>
*/
+#include <common.h>
#include <dm.h>
#include <asm/io.h>
#include <dt-bindings/clock/mt8512-clk.h>
* Author: Fabien Parent <fparent@baylibre.com>
*/
+#include <common.h>
#include <dm.h>
#include <asm/io.h>
#include <dt-bindings/clock/mt8516-clk.h>
* Author: Chen Zhong <chen.zhong@mediatek.com>
*/
+#include <common.h>
#include <dm.h>
#include <asm/io.h>
#include <dt-bindings/clock/mt8518-clk.h>
* Author: Ryder Lee <ryder.lee@mediatek.com>
*/
+#include <common.h>
#include <clk-uclass.h>
#include <div64.h>
#include <dm.h>
* Author: Igor Prusov <ivprusov@salutedevices.com>
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <regmap.h>
// SPDX-License-Identifier: GPL-2.0+
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <clk-uclass.h>
* Author: Neil Armstrong <narmstrong@baylibre.com>
*/
+#include <common.h>
#include <log.h>
#include <asm/arch/clock-axg.h>
#include <asm/io.h>
// SPDX-License-Identifier: GPL-2.0+
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <clk-uclass.h>
* Author: Neil Armstrong <narmstrong@baylibre.com>
*/
+#include <common.h>
#include <log.h>
#include <asm/arch/clock-g12a.h>
#include <asm/io.h>
* Author: Neil Armstrong <narmstrong@baylibre.com>
*/
+#include <common.h>
#include <log.h>
#include <asm/arch/clock-gx.h>
#include <asm/io.h>
* Copyright (C) 2020 Microchip Technology Inc.
* Padmarao Begari <padmarao.begari@microchip.com>
*/
+#include <common.h>
#include <clk.h>
#include <clk-uclass.h>
#include <dm.h>
* Copyright (C) 2020 Microchip Technology Inc.
* Padmarao Begari <padmarao.begari@microchip.com>
*/
+#include <common.h>
#include <clk.h>
#include <clk-uclass.h>
#include <asm/io.h>
/*
* Copyright (C) 2022 Microchip Technology Inc.
*/
+#include <common.h>
#include <clk.h>
#include <clk-uclass.h>
#include <asm/io.h>
* Copyright (C) 2020 Microchip Technology Inc.
* Padmarao Begari <padmarao.begari@microchip.com>
*/
+#include <common.h>
#include <clk.h>
#include <clk-uclass.h>
#include <asm/io.h>
* Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/
+#include <common.h>
#include <clk-uclass.h>
#include <clock_legacy.h>
#include <command.h>
* Author: Weijie Gao <weijie.gao@mediatek.com>
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <dt-bindings/clock/mt7628-clk.h>
* Gregory CLEMENT <gregory.clement@free-electrons.com>
*/
+#include <common.h>
#include <malloc.h>
#include <clk-uclass.h>
#include <clk.h>
* Gregory CLEMENT <gregory.clement@free-electrons.com>
*/
+#include <common.h>
#include <clk-uclass.h>
#include <clk.h>
#include <dm.h>
* Copyright (C) 2018 Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
*/
+#include <common.h>
#include <dm.h>
#include "clk_owl.h"
#include <asm/io.h>
* Based on Little Kernel driver, simplified
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <errno.h>
* Based on Little Kernel driver, simplified
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <errno.h>
*/
#include <clk-uclass.h>
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <dt-bindings/clock/qcom,gcc-ipq4019.h>
* Based on Little Kernel driver, simplified
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <dm/device-internal.h>
* (C) Copyright 2022 Sumit Garg <sumit.garg@linaro.org>
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <errno.h>
* Based on Little Kernel driver, simplified
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <linux/delay.h>
/*
* (C) Copyright 2018-2019 Rockchip Electronics Co., Ltd
*/
+ #include <common.h>
#include <bitfield.h>
#include <clk-uclass.h>
#include <dm.h>
* (C) Copyright 2017 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <bitfield.h>
#include <clk-uclass.h>
#include <dm.h>
* (C) Copyright 2015 Google, Inc
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <errno.h>
*/
#include <bitfield.h>
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <dt-structs.h>
* (C) Copyright 2017 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <errno.h>
* (C) Copyright 2016 Heiko Stuebner <heiko@sntech.de>
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <dt-structs.h>
* (C) Copyright 2017 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <errno.h>
* (C) Copyright 2015 Google, Inc
*/
+#include <common.h>
#include <bitfield.h>
#include <clk-uclass.h>
#include <div64.h>
/*
* (C) Copyright 2017-2019 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <bitfield.h>
#include <clk-uclass.h>
#include <dm.h>
* (C) Copyright 2017 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <bitfield.h>
#include <clk-uclass.h>
#include <dm.h>
* (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <dt-structs.h>
* (C) 2017 Theobroma Systems Design und Consulting GmbH
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <dt-structs.h>
* Author: Elaine Zhang <zhangqing@rock-chips.com>
*/
+#include <common.h>
#include <bitfield.h>
#include <clk-uclass.h>
#include <dm.h>
* Author: Elaine Zhang <zhangqing@rock-chips.com>
*/
+#include <common.h>
#include <bitfield.h>
#include <clk-uclass.h>
#include <dm.h>
* Author: Andy Yan <andy.yan@rock-chips.com>
*/
+#include <common.h>
#include <bitfield.h>
#include <clk-uclass.h>
#include <dm.h>
* Author: Finley Xiao <finley.xiao@rock-chips.com>
*/
+#include <common.h>
#include <bitfield.h>
#include <clk-uclass.h>
#include <dm.h>
* https://github.com/riscv/riscv-linux/commit/999529edf517ed75b56659d456d221b2ee56bb60
*/
+#include <common.h>
#include <clk-uclass.h>
#include <clk.h>
#include <dm.h>
* Xingyu Wu <xingyu.wu@starfivetech.com>
*/
+#include <common.h>
#include <asm/io.h>
#include <malloc.h>
#include <clk-uclass.h>
* Xingyu Wu <xingyu.wu@starfivetech.com>
*/
+#include <common.h>
#include <clk.h>
#include <clk-uclass.h>
#include <dm.h>
#define LOG_CATEGORY UCLASS_CLK
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <log.h>
#define LOG_CATEGORY UCLASS_CLK
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <log.h>
#define LOG_CATEGORY UCLASS_CLK
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <log.h>
#define LOG_CATEGORY UCLASS_CLK
+#include <common.h>
#include <clk-uclass.h>
#include <div64.h>
#include <dm.h>
#define LOG_CATEGORY UCLASS_CLK
#include <clk-uclass.h>
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <asm/io.h>
* Author: Jagan Teki <jagan@amarulasolutions.com>
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <errno.h>
* Author: Jagan Teki <jagan@amarulasolutions.com>
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <errno.h>
* Author: Jagan Teki <jagan@amarulasolutions.com>
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <errno.h>
* Author: Jagan Teki <jagan@amarulasolutions.com>
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <errno.h>
* Author: Jagan Teki <jagan@amarulasolutions.com>
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <errno.h>
* Author: Jagan Teki <jagan@amarulasolutions.com>
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <errno.h>
* Author: Jagan Teki <jagan@amarulasolutions.com>
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <errno.h>
* Copyright (C) 2021 Samuel Holland <samuel@sholland.org>
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <errno.h>
* Copyright (C) 2019 George Hilliard <thirtythreeforty@gmail.com>.
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <errno.h>
* Author: Jagan Teki <jagan@amarulasolutions.com>
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <errno.h>
* Author: Jagan Teki <jagan@amarulasolutions.com>
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <errno.h>
* Copyright (C) 2021 Jernej Skrabec <jernej.skrabec@siol.net>
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <errno.h>
* Author: Jagan Teki <jagan@amarulasolutions.com>
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <errno.h>
* Author: Jagan Teki <jagan@amarulasolutions.com>
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <errno.h>
* Author: Jagan Teki <jagan@amarulasolutions.com>
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <errno.h>
* Copyright (c) 2016, NVIDIA CORPORATION.
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <log.h>
* Copyright (c) 2016, NVIDIA CORPORATION.
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <log.h>
* Loosely based on Linux kernel drivers/clk/ti/dpll.c
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <dm/device_compat.h>
* Loosely based on Linux kernel drivers/clk/ti/dpll.c
*/
+#include <common.h>
#include <clk.h>
#include <clk-uclass.h>
#include <div64.h>
* Copyright (C) 2020 Dario Binacchi <dariobin@libero.it>
*/
+#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <clk-uclass.h>
* Loosely based on Linux kernel drivers/clk/ti/divider.c
*/
+#include <common.h>
#include <clk.h>
#include <clk-uclass.h>
#include <div64.h>
* Loosely based on Linux kernel drivers/clk/ti/gate.c
*/
+#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <clk-uclass.h>
* Tero Kristo <t-kristo@ti.com>
*/
+#include <common.h>
#include <asm/io.h>
#include <dm.h>
#include <div64.h>
* Tero Kristo <t-kristo@ti.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <soc.h>
* Based on Linux kernel drivers/clk/ti/mux.c
*/
+#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <clk-uclass.h>
* Loosely based on Linux kernel sci-clk.c...
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <clk-uclass.h>
* Copyright (C) 2020 Dario Binacchi <dariobin@libero.it>
*/
+#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <regmap.h>
* Copyright (C) 2020 Dario Binacchi <dariobin@libero.it>
*/
+#include <common.h>
#include <dm.h>
#include <dm/lists.h>
* Author: Masahiro Yamada <yamada.masahiro@socionext.com>
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <dm/device_compat.h>
#define LOG_CATEOGRY LOGC_ACPI
+#include <common.h>
#include <display_options.h>
#include <dm.h>
#include <log.h>
#define LOG_CATEGORY LOGC_DM
+#include <common.h>
#include <errno.h>
#include <log.h>
#include <malloc.h>
* Pavel Herrmann <morpheus.ibis@gmail.com>
*/
+#include <common.h>
#include <cpu_func.h>
-#include <errno.h>
#include <event.h>
#include <log.h>
#include <asm/global_data.h>
#define LOG_CATEGORY LOGC_DEVRES
+#include <common.h>
#include <log.h>
#include <malloc.h>
#include <linux/compat.h>
* Copyright (c) 2015 Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <malloc.h>
#include <mapmem.h>
* Pavel Herrmann <morpheus.ibis@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <fdt_support.h>
#include <log.h>
#define LOG_CATEGORY LOGC_DM
+#include <common.h>
#include <errno.h>
#include <log.h>
#include <dm/device.h>
* Linux version.
*/
+#include <common.h>
#include <log.h>
#include <malloc.h>
#include <asm/global_data.h>
* Copyright (c) 2017 Google, Inc
*/
+#include <common.h>
#include <log.h>
#include <linux/bug.h>
#include <linux/libfdt.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <log.h>
#include <linux/libfdt.h>
#include <dm/of_access.h>
#define LOG_CATEGORY LOGC_DT
+#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <fdt_support.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <dm/of_access.h>
#include <mapmem.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <dm/of_addr.h>
#include <dm/read.h>
#define LOG_CATEGORY LOGC_DM
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
#define LOG_CATEGORY UCLASS_ROOT
+#include <common.h>
#include <errno.h>
#include <fdtdec.h>
#include <log.h>
#define LOG_CATEGORY UCLASS_SIMPLE_BUS
+#include <common.h>
#include <asm/global_data.h>
#include <dm.h>
#include <dm/simple_bus.h>
* Copyright (C) 2020 Sean Anderson <seanga2@gmail.com>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#define LOG_CATEGORY UCLASS_SYSCON
+#include <common.h>
#include <log.h>
#include <syscon.h>
#include <dm.h>
#define LOG_CATEGORY LOGC_DM
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
* Copyright (c) 2013 Google, Inc
*/
+#include <common.h>
#include <dm/device.h>
#include <dm/ofnode.h>
#include <dm/read.h>
* Author: Claudiu Beznea <claudiu.beznea@microchip.com>
*/
+#include <common.h>
#include <cpu.h>
#include <dm.h>
#include <div64.h>
* Copyright (C) 2009 Florian Fainelli <florian@openwrt.org>
*/
+#include <common.h>
#include <cpu.h>
#include <display_options.h>
#include <dm.h>
#define LOG_CATEGORY UCLASS_CPU
+#include <common.h>
#include <cpu.h>
#include <dm.h>
#include <errno.h>
* Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/
+#include <common.h>
#include <dm.h>
#include <cpu.h>
* Copyright 2019 NXP
*/
+#include <common.h>
#include <cpu.h>
#include <dm.h>
#include <thermal.h>
/*
* Copyright (C) 2022, Ovidiu Panait <ovpanait@gmail.com>
*/
+#include <common.h>
#include <cpu.h>
#include <dm.h>
#include <asm/cpuinfo.h>
* Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/
+#include <common.h>
#include <bitfield.h>
#include <clk.h>
#include <cpu.h>
*/
#include <clk.h>
+#include <common.h>
#include <cpu.h>
#include <dm.h>
#include <errno.h>
* Advanced Crypto Engine - SHA Firmware
* Copyright (c) 2012 Samsung Electronics
*/
-
-#include <config.h>
+#include <common.h>
#include "ace_sha.h"
#include <log.h>
#include <rand.h>
-#include <linux/string.h>
#ifdef CONFIG_SHA_HW_ACCEL
#include <u-boot/sha256.h>
#ifndef __ACE_SHA_H
#define __ACE_SHA_H
-#include <linux/types.h>
-
struct exynos_ace_sfr {
unsigned int fc_intstat; /* base + 0 */
unsigned int fc_intenset;
* Copyright 2021 ASPEED Technology Inc.
*/
#include <config.h>
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <asm/types.h>
* Copyright 2021 ASPEED Technology Inc.
*/
#include <config.h>
+#include <common.h>
#include <dm.h>
#include <clk.h>
#include <log.h>
* Based on RNGC driver in drivers/char/hw_random/imx-rngc.c in Linux
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <rng.h>
* Derived from error.c file in linux drivers/crypto/caam
*/
+#include <common.h>
#include <log.h>
#include <malloc.h>
-#include <vsprintf.h>
#include "desc.h"
#include "jr.h"
*
*/
+#include <common.h>
#include <cpu_func.h>
#include <log.h>
#include <malloc.h>
* Copyright 2021 NXP
*/
+#include <common.h>
#include <cpu_func.h>
#include <log.h>
#include <malloc.h>
* Copyright 2017 NXP
*/
+#include <common.h>
#include <errno.h>
#include <fsl_sec.h>
#include <memalign.h>
*/
#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <log.h>
*
*/
-#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <fsl_sec.h>
#include "desc_constr.h"
* Based on CAAM driver in drivers/crypto/caam in Linux
*/
-#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <linux/kernel.h>
#include <log.h>
*/
#include <asm/cache.h>
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <rng.h>
* Copyright 2014 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <linux/libfdt.h>
#include <fdt_support.h>
#if CONFIG_SYS_FSL_SEC_COMPAT == 2 || CONFIG_SYS_FSL_SEC_COMPAT >= 4
#define LOG_CATEGORY UCLASS_HASH
+#include <common.h>
#include <dm.h>
#include <asm/global_data.h>
#include <u-boot/hash.h>
* Author: ChiaWei Wang <chiawei_wang@aspeedtech.com>
*/
#include <config.h>
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
* Copyright (c) 2021 Nuvoton Technology Corp.
*/
+#include <common.h>
#include <dm.h>
#include <uboot_aes.h>
#include <asm/io.h>
#include <asm/arch/aes.h>
#include <asm/arch/otp.h>
#include <malloc.h>
-#include <time.h>
#define ONE_SECOND 0xC00000
* Copyright (c) 2022 Nuvoton Technology Corp.
*/
+#include <common.h>
#include <dm.h>
#include <hash.h>
#include <malloc.h>
*/
#include <config.h>
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <u-boot/rsa-mod-exp.h>
#define LOG_CATEGORY UCLASS_MOD_EXP
+#include <common.h>
#include <dm.h>
#include <asm/global_data.h>
#include <u-boot/rsa-mod-exp.h>
*
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <div64.h>
* Copyright (C) 2017 Intel Corporation <www.intel.com>
*/
+#include <common.h>
#include <cpu_func.h>
#include <errno.h>
#include <fdtdec.h>
/*
* Copyright Altera Corporation (C) 2014-2015
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <div64.h>
*
*/
+#include <common.h>
#include <clk.h>
#include <div64.h>
#include <dm.h>
*
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <errno.h>
*
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <errno.h>
* Copyright Altera Corporation (C) 2012-2015
*/
+#include <common.h>
#include <log.h>
-#include <linux/string.h>
#include <asm/io.h>
#include <asm/arch/sdram.h>
#include <errno.h>
#ifndef _SEQUENCER_H_
#define _SEQUENCER_H_
-#include <config.h>
-
#define RW_MGR_NUM_DM_PER_WRITE_GROUP (seq->rwcfg->mem_data_mask_width \
/ seq->rwcfg->mem_if_write_dqs_width)
#define RW_MGR_NUM_TRUE_DM_PER_WRITE_GROUP ( \
* Derived from mpc85xx_ddr_gen3.c, removed all workarounds
*/
-#include <config.h>
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <fsl_ddr_sdram.h>
* Author: James Yang [at freescale.com]
*/
-#include <config.h>
+#include <common.h>
#include <fsl_ddr_sdram.h>
#include <fsl_errata.h>
#include <fsl_ddr.h>
#include <fsl_immap.h>
#include <log.h>
-#include <linux/string.h>
#include <asm/bitops.h>
#include <asm/io.h>
#if defined(CONFIG_FSL_LSCH2) || defined(CONFIG_FSL_LSCH3) || \
* Copyright 2008 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <fsl_ddr_sdram.h>
#include <log.h>
#include <asm/bitops.h>
* Copyright 2008 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <fsl_ddr_sdram.h>
#include <log.h>
-#include <linux/string.h>
#include <asm/bitops.h>
#include <fsl_ddr.h>
* JEDEC standard No.21-C 4_01_02_11R18.pdf
*/
-#include <linux/string.h>
+#include <common.h>
#include <fsl_ddr_sdram.h>
#include <log.h>
*
*/
+#include <common.h>
#include <fsl_ddr_sdram.h>
#include <log.h>
#include <linux/bug.h>
-#include <linux/string.h>
#include <fsl_ddr.h>
* Copyright 2021 NXP
*/
-#include <config.h>
+#include <common.h>
#include <env.h>
#include <log.h>
#include <asm/io.h>
* Generic driver for Freescale MMDC(Multi Mode DDR Controller).
*/
-#include <config.h>
+#include <common.h>
#include <fsl_mmdc.h>
#include <asm/io.h>
#include <linux/delay.h>
* York Sun [at freescale.com]
*/
+#include <common.h>
#include <cli.h>
#include <command.h>
#include <env.h>
#include <log.h>
-#include <vsprintf.h>
#include <asm/bitops.h>
#include <linux/ctype.h>
#include <asm/types.h>
* Copyright 2017-2021 NXP Semiconductor
*/
+#include <common.h>
#include <fsl_ddr_sdram.h>
#include <log.h>
#include <asm/bitops.h>
* Author: James Yang [at freescale.com]
*/
-#include <config.h>
+#include <common.h>
#include <display_options.h>
#include <dm.h>
#include <i2c.h>
* Copyright 2008 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <fsl_ddr_sdram.h>
* Copyright 2008-2011 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <asm/io.h>
-#include <asm/ppc.h>
+#include <asm/processor.h>
#include <fsl_ddr_sdram.h>
#include <linux/delay.h>
* Copyright 2008-2020 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <log.h>
#include <asm/io.h>
-#include <asm/ppc.h>
#include <fsl_ddr_sdram.h>
#include <asm/processor.h>
#include <linux/delay.h>
* Copyright 2017-2018 NXP Semiconductor
*/
-#include <config.h>
+#include <common.h>
#include <env.h>
#include <hwconfig.h>
#include <fsl_ddr_sdram.h>
#include <log.h>
-#include <vsprintf.h>
#include <fsl_ddr.h>
#if defined(CONFIG_FSL_LSCH2) || defined(CONFIG_FSL_LSCH3) || \
defined(CONFIG_ARM)
#include <asm/arch/clock.h>
-#else
-#include <asm/ppc.h>
#endif
/*
* Copyright 2021 NXP
*/
-#include <config.h>
+#include <common.h>
#ifdef CONFIG_PPC
#include <asm/fsl_law.h>
-#include <asm/ppc.h>
#endif
#include <div64.h>
#include <linux/delay.h>
* Copyright 2018-2019 NXP
*/
+#include <common.h>
#include <errno.h>
#include <log.h>
#include <asm/io.h>
/*
* Copyright 2021 NXP
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/clock.h>
#include <asm/arch/ddr.h>
* Copyright 2022 NXP
*/
+#include <common.h>
#include <errno.h>
#include <log.h>
#include <asm/io.h>
#include <asm/arch/clock.h>
#include <asm/arch/sys_proto.h>
#include <linux/delay.h>
-#include <linux/string.h>
static unsigned int g_cdd_rr_max[4];
static unsigned int g_cdd_rw_max[4];
* Copyright 2018 NXP
*/
+#include <common.h>
#include <log.h>
#include <linux/kernel.h>
#include <asm/arch/ddr.h>
* Copyright 2018 NXP
*/
+#include <common.h>
#include <errno.h>
#include <log.h>
#include <asm/io.h>
* Copyright 2018 NXP
*/
+#include <common.h>
#include <binman_sym.h>
#include <log.h>
#include <spl.h>
* Copyright (C) Marvell International Ltd. and its affiliates
*/
+#include <common.h>
#include <i2c.h>
#include <spl.h>
#include <asm/io.h>
* Copyright (C) Marvell International Ltd. and its affiliates
*/
+#include <common.h>
#include <i2c.h>
#include <log.h>
#include <spl.h>
* Copyright (C) Marvell International Ltd. and its affiliates
*/
+#include <common.h>
#include <i2c.h>
#include <log.h>
#include <spl.h>
* Copyright (C) Marvell International Ltd. and its affiliates
*/
+#include <common.h>
#include <i2c.h>
#include <log.h>
#include <spl.h>
* Copyright (C) Marvell International Ltd. and its affiliates
*/
+#include <common.h>
#include <i2c.h>
#include <spl.h>
#include <asm/io.h>
* Copyright (C) Marvell International Ltd. and its affiliates
*/
+#include <common.h>
#include <i2c.h>
#include <log.h>
#include <spl.h>
* Copyright (C) Marvell International Ltd. and its affiliates
*/
+#include <common.h>
#include <i2c.h>
#include <spl.h>
#include <asm/io.h>
* Copyright (C) Marvell International Ltd. and its affiliates
*/
+#include <common.h>
#include <i2c.h>
#include <spl.h>
#include <asm/io.h>
* Copyright (C) Marvell International Ltd. and its affiliates
*/
+#include <common.h>
#include <i2c.h>
#include <log.h>
#include <spl.h>
* Copyright (C) Marvell International Ltd. and its affiliates
*/
+#include <common.h>
#include <i2c.h>
#include <log.h>
#include <spl.h>
* (c) 2015 Paul Thacker <paul.thacker@microchip.com>
*
*/
+#include <common.h>
#include <wait_bit.h>
#include <linux/kernel.h>
#include <linux/bitops.h>
* Copyright (c) 2013 Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <dm-demo.h>
* Copyright (c) 2013 Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
* Pavel Herrmann <morpheus.ibis@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm-demo.h>
#include <mapmem.h>
* Pavel Herrmann <morpheus.ibis@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm-demo.h>
#include <errno.h>
* author: Lukasz Majewski <l.majewski@samsung.com>
*/
+#include <common.h>
#include <env.h>
#include <errno.h>
#include <log.h>
* Lukasz Majewski <l.majewski@majess.pl>
*/
+#include <common.h>
#include <log.h>
#include <malloc.h>
#include <errno.h>
* author: Lukasz Majewski <l.majewski@samsung.com>
*/
+#include <common.h>
#include <log.h>
#include <malloc.h>
#include <errno.h>
* Based on dfu_nand.c
*/
+#include <common.h>
#include <dfu.h>
#include <mtd.h>
#include <linux/err.h>
* author: Lukasz Majewski <l.majewski@samsung.com>
*/
+#include <common.h>
#include <log.h>
#include <malloc.h>
#include <errno.h>
* author: Lukasz Majewski <l.majewski@samsung.com>
*/
+#include <common.h>
#include <malloc.h>
#include <mapmem.h>
#include <errno.h>
* Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved.
*/
+#include <common.h>
#include <malloc.h>
#include <errno.h>
#include <div64.h>
/*
* Copyright (C) 2019, STMicroelectronics - All Rights Reserved
*/
+#include <common.h>
#include <dfu.h>
#include <errno.h>
#include <log.h>
#include <asm/cache.h>
#include <linux/list.h>
+#include <common.h>
#include <malloc.h>
#include <linux/errno.h>
#include <asm/io.h>
* Copyright (C) 2010 Broadcom Corporation
*/
+#include <common.h>
#include <clk.h>
#include <cpu_func.h>
#include <dm.h>
#define LOG_CATEGORY UCLASS_DMA
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <log.h>
*/
#include <config.h>
+#include <common.h>
#include <asm/io.h>
#include <asm/fsl_dma.h>
* (C) Copyright 2012-2014
* Texas Instruments Incorporated, <www.ti.com>
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/ti-common/keystone_nav.h>
#include <linux/delay.h>
-#include <linux/string.h>
struct qm_config qm_memmap = {
.stat_cfg = KS2_QM_QUEUE_STATUS_BASE,
* Copyright (c) 2015 Tyco Fire Protection Products.
*/
+#include <common.h>
#include <errno.h>
#include <init.h>
-#include <time.h>
#include <asm/arch/dma.h>
#include <asm/arch/cpu.h>
#include <asm/arch/clk.h>
* Author: Grygorii Strashko <grygorii.strashko@ti.com>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
#include <asm/cache.h>
#include <asm/io.h>
+#include <common.h>
#include <dm.h>
#include <dma-uclass.h>
#include <linux/dma-mapping.h>
*/
#define pr_fmt(fmt) "udma: " fmt
+#include <common.h>
#include <cpu_func.h>
#include <log.h>
#include <asm/cache.h>
* Copyright (C) 2021 Xilinx Inc.
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <dma.h>
* Copyright (c) 2022 Svyatoslav Ryhel <clamor95@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <i2c.h>
#include <linux/delay.h>
#define LOG_CATEGORY UCLASS_EXTCON
+#include <common.h>
#include <extcon.h>
#include <dm.h>
* Copyright (C) 2016 The Android Open Source Project
*/
+#include <common.h>
#include <command.h>
#include <console.h>
#include <env.h>
#include <fb_nand.h>
#include <part.h>
#include <stdlib.h>
-#include <vsprintf.h>
#include <linux/printk.h>
/**
*/
#include <bcb.h>
+#include <common.h>
#include <command.h>
#include <env.h>
#include <fastboot.h>
#include <net.h>
-#include <vsprintf.h>
/**
* fastboot_buf_addr - base address of the fastboot download buffer
* Copyright (C) 2016 The Android Open Source Project
*/
+#include <common.h>
#include <env.h>
#include <fastboot.h>
#include <fastboot-internal.h>
#include <fs.h>
#include <part.h>
#include <version.h>
-#include <vsprintf.h>
#include <linux/printk.h>
static void getvar_version(char *var_parameter, char *response);
*/
#include <config.h>
+#include <common.h>
#include <blk.h>
#include <env.h>
#include <fastboot.h>
*/
#include <config.h>
+#include <common.h>
#include <blk.h>
#include <fastboot.h>
* Authors:
* Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
*/
+#include <common.h>
#include <arm_ffa.h>
#include <arm_ffa_priv.h>
#include <dm.h>
* Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
*/
+#include <common.h>
#include <arm_ffa.h>
#include <arm_ffa_priv.h>
#include <dm.h>
* Authors:
* Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
*/
+#include <common.h>
#include <dm.h>
#include <mapmem.h>
#include <string.h>
* Authors:
* Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
*/
+#include <common.h>
#include <arm_ffa.h>
#include <dm.h>
#include <log.h>
* Copyright (C) 2018 Xilinx, Inc.
*/
+#include <common.h>
#include <dm.h>
static const struct udevice_id generic_sandbox_firmware_ids[] = {
#define LOG_CATEGORY UCLASS_FIRMWARE
+#include <common.h>
#include <dm.h>
/* Firmware access is platform-dependent. No generic code in uclass */
* Copyright (C) 2018-2019 Xilinx, Inc.
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <dm/device_compat.h>
* Copyright (C) 2015 ARM Limited
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <efi_loader.h>
* author: AKASHI Takahiro <takahiro.akashi@linaro.org>
*/
+#include <common.h>
#include <dm.h>
#include <scmi_agent.h>
#include <scmi_protocols.h>
#define LOG_CATEGORY UCLASS_SCMI_AGENT
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <mailbox.h>
#define LOG_CATEGORY UCLASS_SCMI_AGENT
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <scmi_agent.h>
#define LOG_CATEGORY UCLASS_SCMI_AGENT
+#include <common.h>
#include <dm.h>
#include <malloc.h>
#include <scmi_agent.h>
#define LOG_CATEGORY UCLASS_MISC
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <log.h>
#define LOG_CATEGORY UCLASS_SCMI_AGENT
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <scmi_agent.h>
#define LOG_CATEGORY UCLASS_SCMI_AGENT
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <scmi_agent.h>
#define LOG_CATEGORY UCLASS_SCMI_AGENT
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <dm/device_compat.h>
* Lokesh Vutla <lokeshvutla@ti.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
#define LOG_CATEGORY UCLASS_FPGA
-#include <config.h> /* core U-Boot definitions */
+#include <common.h> /* core U-Boot definitions */
#include <console.h>
#include <log.h>
#include <ACEX1K.h> /* ACEX device family */
/*
* Altera FPGA support
*/
+#include <common.h>
#include <errno.h>
#include <ACEX1K.h>
#include <log.h>
#define LOG_CATEGORY UCLASS_FPGA
-#include <config.h> /* core U-Boot definitions */
+#include <common.h> /* core U-Boot definitions */
#include <log.h>
-#include <time.h>
#include <altera.h>
#include <ACEX1K.h> /* ACEX device family */
#include <linux/delay.h>
*/
/* Generic FPGA support */
+#include <common.h> /* core U-Boot definitions */
#include <init.h>
#include <log.h>
#include <xilinx.h> /* xilinx specific definitions */
* Copyright (C) 2018 Intel Corporation <www.intel.com>
*/
+#include <common.h>
#include <altera.h>
#include <log.h>
-#include <time.h>
#include <watchdog.h>
#include <asm/arch/mailbox_s10.h>
#include <asm/arch/smc_api.h>
#include <linux/delay.h>
-#include <linux/errno.h>
#include <linux/intel-smc.h>
-#include <linux/string.h>
#define RECONFIG_STATUS_POLL_RESP_TIMEOUT_MS 60000
#define RECONFIG_STATUS_INTERVAL_DELAY_US 1000000
* the ispVMLCOUNT function
*/
+#include <common.h>
#include <log.h>
#include <linux/string.h>
#include <malloc.h>
* Copyright 2009 Lattice Semiconductor Corp.
*/
+#include <common.h>
#include <log.h>
#include <malloc.h>
#include <fpga.h>
* All rights reserved.
*/
-#include <config.h>
+#include <common.h>
#include <asm/io.h>
#include <linux/errno.h>
#include <asm/arch/fpga_manager.h>
#include <asm/arch/misc.h>
#include <altera.h>
#include <asm/arch/pinmux.h>
+#include <common.h>
#include <dm.h>
#include <dm/ofnode.h>
#include <errno.h>
* All rights reserved.
*/
-#include <config.h>
+#include <common.h>
#include <asm/io.h>
#include <linux/errno.h>
#include <asm/arch/fpga_manager.h>
#define LOG_CATEGORY UCLASS_FPGA
-#include <config.h> /* core U-Boot definitions */
+#include <common.h> /* core U-Boot definitions */
#include <log.h>
#include <spartan2.h> /* Spartan-II device family */
#define LOG_CATEGORY UCLASS_FPGA
-#include <config.h> /* core U-Boot definitions */
+#include <common.h> /* core U-Boot definitions */
#include <log.h>
-#include <time.h>
#include <spartan3.h> /* Spartan-II device family */
/* Note: The assumption is that we cannot possibly run fast enough to
* Eran Liberty, Extricom , eran.liberty@gmail.com
*/
+#include <common.h> /* core U-Boot definitions */
#include <altera.h>
#include <linux/delay.h>
* Copyright (C) 2016 Stefan Roese <sr@denx.de>
*/
+#include <common.h>
#include <altera.h>
#include <log.h>
#include <spi.h>
* Siva Durga Prasad Paladugu <siva.durga.prasad.paladugu@amd.com>>
*/
+#include <common.h>
#include <cpu_func.h>
#include <log.h>
#include <asm/arch/sys_proto.h>
#define LOG_CATEGORY UCLASS_FPGA
-#include <config.h>
+#include <common.h>
#include <console.h>
#include <log.h>
#include <virtex2.h>
* Xilinx FPGA support
*/
+#include <common.h>
#include <fpga.h>
#include <log.h>
#include <virtex2.h>
#include <spartan2.h>
#include <spartan3.h>
#include <zynqpl.h>
-#include <linux/string.h>
/* Local Static Functions */
static int xilinx_validate(xilinx_desc *desc, char *fn);
*/
#include <console.h>
+#include <common.h>
#include <compiler.h>
#include <cpu_func.h>
#include <fpga.h>
* Joe Hershberger <joe.hershberger@ni.com>
*/
-#include <config.h>
+#include <common.h>
#include <console.h>
#include <cpu_func.h>
#include <log.h>
-#include <time.h>
#include <asm/cache.h>
#include <asm/io.h>
#include <fs.h>
#define LOG_CATEGORY UCLASS_FUZZING_ENGINE
+#include <common.h>
#include <dm.h>
#include <fuzzing_engine.h>
* Written by Andrew Scull <ascull@google.com>
*/
+#include <common.h>
#include <dm.h>
#include <fuzzing_engine.h>
#include <asm/fuzzing_engine.h>
#define LOG_CATEGORY UCLASS_FWU_MDATA
+#include <common.h>
#include <dm.h>
#include <efi_loader.h>
#include <fwu.h>
*
*/
+#include <common.h>
#include <errno.h>
#include <dm.h>
#include <fdtdec.h>
* Copyright (C) 2011 Missing Link Electronics
* Joachim Foerster <joachim@missinglinkelectronics.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <malloc.h>
*/
#include <config.h>
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <malloc.h>
* Copyright (C) 2015 Atmel Corporation
* Wenyou.Yang <wenyou.yang@atmel.com>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <fdtdec.h>
* X-Powers AXP Power Management ICs gpio driver
*/
+#include <common.h>
#include <asm/arch/pmic_bus.h>
#include <asm/gpio.h>
#include <axp_pmic.h>
* <vikram186@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
#include <errno.h>
* Copyright (C) 2008-2011 Florian Fainelli <florian@openwrt.org>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <asm/gpio.h>
* GPIO Driver for Cortina Access CAxxxx Line of SoCs
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <asm/io.h>
* Laurence Withers <lwithers@guralp.com>
*/
+#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <malloc.h>
* Faraday Technology's FTGPIO010 controller.
*/
+#include <common.h>
#include <dm.h>
#include <asm/io.h>
#include <asm/gpio.h>
*
* Implementation extracted from the Linux kernel and adapted for u-boot.
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/gpio.h>
#include <asm-generic/gpio.h>
#include <asm/global_data.h>
+#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <dt-bindings/gpio/gpio.h>
* Copyright (C) 2017 Marek Vasut <marek.vasut@gmail.com>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <malloc.h>
* Copyright (C) 2019 Marek Vasut <marek.vasut@gmail.com>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <errno.h>
#define LOG_CATEGORY UCLASS_GPIO
+#include <common.h>
#include <dm.h>
#include <dt-structs.h>
#include <log.h>
* Author: Masahiro Yamada <yamada.masahiro@socionext.com>
*/
+#include <common.h>
#include <dm.h>
#include <linux/bitops.h>
#include <linux/io.h>
* Copyright (C) 2021 Xilinx, Inc.
*/
+#include <common.h>
#include <errno.h>
#include <asm/io.h>
#include <asm/gpio.h>
* Peter Griffin <peter.griffin@linaro.org>
*/
+#include <common.h>
#include <dm.h>
#include <asm/gpio.h>
#include <asm/io.h>
#include <log.h>
#include <asm-generic/gpio.h>
#include <asm/io.h>
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <linux/bitops.h>
* RGPIO2P driver for the Freescale i.MX7ULP.
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
* Copyright (c) 2012 The Chromium OS Authors.
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
#define LOG_CATEGORY UCLASS_GPIO
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
#define LOG_CATEGORY UCLASS_GPIO
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
* Copyright (C) 2020 Broadcom
*/
+#include <common.h>
#include <errno.h>
#include <asm/gpio.h>
#include <asm/io.h>
* Dieter Kiermaier dk-arm-linux@gmx.de
*/
+#include <common.h>
#include <linux/bitops.h>
#include <asm/io.h>
#include <asm/arch/soc.h>
* Written-by: Albert ARIBAUD <albert.aribaud@3adev.fr>
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch-lpc32xx/cpu.h>
#include <asm/arch-lpc32xx/gpio.h>
*
*/
+#include <common.h>
#include <dm.h>
#include <i2c.h>
#include <asm-generic/gpio.h>
#define LOG_CATEGORY UCLASS_GPIO
+#include <common.h>
#include <errno.h>
#include <dm.h>
#include <i2c.h>
* GPIO driver to set/clear SPISEL_BOOT pin on mpc83xx.
*/
+#include <common.h>
#include <log.h>
#include <dm.h>
#include <mapmem.h>
* Copyright 2010 eXMeritus, A Boeing Company
*/
+#include <common.h>
#include <asm/io.h>
#include <dm.h>
#include <mapmem.h>
* Copyright 2020-2021 NXP
*/
+#include <common.h>
#include <dm.h>
#include <mapmem.h>
#include <asm/gpio.h>
* Copyright (c) 2018 Microsemi Corporation
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <asm/gpio.h>
* (C) Copyright 2015 Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <asm/global_data.h>
* Copyright (C) 2013 John Crispin <blogic@openwrt.org>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
* Copyright (C) 2016 Stefan Roese <sr@denx.de>
*/
+#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
#include <asm/gpio.h>
* Copyright (C) 2011
* Stefano Babic, DENX Software Engineering, <sbabic@denx.de>
*/
+#include <common.h>
#include <errno.h>
#include <dm.h>
#include <malloc.h>
* on behalf of DENX Software Engineering GmbH
*/
+#include <common.h>
#include <log.h>
#include <malloc.h>
#include <asm/global_data.h>
// SPDX-License-Identifier: GPL-2.0+
/* Copyright (C) 2019 Stephan Gerhold */
+#include <common.h>
#include <dm.h>
#include <asm/gpio.h>
#include <asm/io.h>
* Copyright (c) 2022 Nuvoton Technology Corp.
*/
+#include <common.h>
#include <dm.h>
#include <asm/gpio.h>
#include <linux/io.h>
* DeokJin, Lee <truevirtue@nexell.co.kr>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <malloc.h>
* Copyright (C) 2003-2005 Nokia Corporation
* Written by Juha Yrjölä <juha.yrjola@nokia.com>
*/
+#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <asm/global_data.h>
* pca9539, etc)
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <i2c.h>
#include <pca953x.h>
-#include <vsprintf.h>
/* Default to an address that hopefully won't corrupt other i2c devices */
#ifndef CFG_SYS_I2C_PCA953X_ADDR
* 2. Support Polarity Inversion
*/
+#include <common.h>
#include <errno.h>
#include <dm.h>
#include <fdtdec.h>
*
*/
+#include <common.h>
#include <dm.h>
#include <i2c.h>
#include <log.h>
* Purna Chandra Mandal <purna.mandal@microchip.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <malloc.h>
* (C) Copyright 2015 Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm/device-internal.h>
#include <dm/lists.h>
* Christophe Leroy <christophe.leroy@csgroup.eu>
*/
+#include <common.h>
#include <dm.h>
#include <mapmem.h>
#include <asm/gpio.h>
* Peter, Software Engineering, <superpeter.cai@gmail.com>.
*/
+#include <common.h>
#include <dm.h>
#include <syscon.h>
#include <linux/errno.h>
* Minkyu Kang <mk7.kang@samsung.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
* Copyright (c) 2011 The Chromium OS Authors.
*/
+#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <log.h>
* Copyright 2021 Google LLC
*/
+#include <common.h>
#include <dm.h>
#include <asm-generic/gpio.h>
* for more details.
*/
+#include <common.h>
#include <log.h>
#include <malloc.h>
#include <asm/bitops.h>
* Copyright (C) 2019 SiFive, Inc.
*/
+#include <common.h>
#include <dm.h>
#include <asm/arch/gpio.h>
#include <asm/io.h>
* Copyright (c) 2021 Michael Walle <michael@walle.cc>
*/
+#include <common.h>
#include <dm.h>
#include <asm/gpio.h>
#include <sl28cpld.h>
#define LOG_CATEGORY UCLASS_GPIO
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <fdtdec.h>
* Tom Cubie <tangliang@allwinnertech.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
* MA 02111-1307 USA
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <i2c.h>
#include <tca642x.h>
* (based on tegra_gpio.c)
*/
+#include <common.h>
#include <dm.h>
#include <malloc.h>
#include <errno.h>
* Tom Warren (twarren@nvidia.com)
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
* Bhuvanchandra DV, Toradex, Inc.
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
* Copyright (c) 2013 - 2018 Xilinx, Michal Simek
*/
+#include <common.h>
#include <errno.h>
#include <log.h>
#include <malloc.h>
* Copyright (C) 2009 - 2014 Xilinx, Inc.
*/
+#include <common.h>
#include <asm/gpio.h>
#include <asm/io.h>
#include <linux/bitops.h>
* Copyright (C) 2021 Xilinx, Inc.
*/
+#include <common.h>
#include <errno.h>
#include <asm/io.h>
#include <asm/gpio.h>
#define LOG_CATEGORY UCLASS_HWSPINLOCK
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <hwspinlock.h>
* Copyright (C) 2018, STMicroelectronics - All Rights Reserved
*/
+#include <common.h>
#include <dm.h>
#include <hwspinlock.h>
#include <asm/state.h>
#define LOG_CATEGORY UCLASS_HWSPINLOCK
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <hwspinlock.h>
* Copyright 2019 Google LLC
*/
+#include <common.h>
#include <dm.h>
#include <i2c.h>
#include <log.h>
/*
* Copyright ASPEED Technology Inc.
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <errno.h>
* Copyright 2017 Google, Inc.
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <errno.h>
#include <malloc.h>
#include <asm/global_data.h>
#include <asm/io.h>
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <errno.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <cros_ec.h>
#include <errno.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <cros_ec.h>
#include <errno.h>
* Please see doc/driver-model/i2c-howto.rst for instructions.
*/
-#include <config.h>
+#include <common.h>
#include <i2c.h>
#include <dm.h>
#include <log.h>
* Vipin Kumar, STMicroelectronics, vipin.kumar@st.com.
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <i2c.h>
* Copyright 2019 Google Inc
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <spl.h>
* David Mueller, ELSOFT AG, d.mueller@elsoft.ch
*/
+#include <common.h>
#include <dm.h>
#include <i2c.h>
#include <log.h>
* Changes for multibus/multiadapter I2C support.
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <i2c.h> /* Functional interface */
#include <log.h>
* with added driver-model support and code cleanup.
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <linux/bitops.h>
* Arthur Li, Cortina Access, arthur.li@cortina-access.com.
*/
+#include <common.h>
#include <i2c.h>
#include <log.h>
#include <asm/io.h>
#include <dm.h>
#include <mapmem.h>
-#include <time.h>
#include "i2c-cortina.h"
static void set_speed(struct i2c_regs *regs, int i2c_spd)
#define LOG_CATEGORY UCLASS_I2C_EMUL
+#include <common.h>
#include <dm.h>
#include <i2c.h>
#include <log.h>
* This file is based on: drivers/i2c/soft-i2c.c,
* with added driver-model support and code cleanup.
*/
+#include <common.h>
#include <errno.h>
#include <dm.h>
#include <i2c.h>
* Padmarao Begari <padmarao.begari@microchip.com>
* Conor Dooley <conor.dooley@microchip.com>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <i2c.h>
#define LOG_CATEGORY UCLASS_I2C
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <i2c.h>
*
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <i2c.h>
*
* Multibus/multiadapter I2C core functions (wrappers)
*/
-#include <config.h>
+#include <common.h>
#include <i2c.h>
#include <linker_lists.h>
#include <asm/global_data.h>
* Dirk Eibach, Guntermann & Drunck GmbH, dirk.eibach@gdsys.cc
*/
+#include <common.h>
#include <i2c.h>
#include <dm.h>
#include <regmap.h>
* Copyright 2016 Freescale Semiconductors, Inc.
*/
+#include <common.h>
#include <errno.h>
#include <log.h>
#include <asm/io.h>
* Copyright (C) 2016 Stefan Roese <sr@denx.de>
*/
+#include <common.h>
#include <dm.h>
#include <i2c.h>
#include <log.h>
#include <pci.h>
-#include <time.h>
#include <asm/io.h>
/* PCI Configuration Space (D31:F3): SMBus */
#include <asm/global_data.h>
#include <asm/io.h>
+#include <common.h>
#include <config.h>
#include <dm.h>
#include <linux/printk.h>
* Written-by: Albert ARIBAUD - 3ADEV <albert.aribaud@3adev.fr>
*/
-#include <config.h>
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <i2c.h>
/*
* (C) Copyright 2017 - Beniamino Galvani <b.galvani@gmail.com>
*/
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <clk.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <i2c.h>
#include <log.h>
#include <malloc.h>
-#include <time.h>
#include <asm/global_data.h>
#include <asm/gpio.h>
#include <linux/delay.h>
#include <asm/global_data.h>
#include <asm/io.h>
#include <asm-generic/gpio.h>
+#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <dm/devres.h>
#define LOG_CATEGORY UCLASS_I2C_MUX
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <i2c.h>
* Written by Michal Simek
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <i2c.h>
* Murray.Jensen@cmst.csiro.au, 27-Jan-01.
*/
+#include <common.h>
#include <dm.h>
#include <i2c.h>
#include <log.h>
* Copyright (c) 2010 Albert Aribaud.
*/
-#include <config.h>
+#include <common.h>
#include <i2c.h>
#include <log.h>
#include <asm/global_data.h>
*
*/
-#include <config.h>
+#include <common.h>
#include <log.h>
#include <asm/arch/clock.h>
#include <asm/arch/imx-regs.h>
+#include <common.h>
#include <errno.h>
#include <dm.h>
#include <i2c.h>
#include <log.h>
-#include <time.h>
#include <asm/arch/nexell.h>
#include <asm/arch/reset.h>
#include <asm/arch/clk.h>
* Andreas Larsson <andreas@gaisler.com>
*/
+#include <common.h>
#include <asm/global_data.h>
#include <asm/io.h>
#include <clk.h>
*
*/
+#include <common.h>
#include <dm.h>
#include <i2c.h>
#include <log.h>
#include <init.h>
#include <env.h>
+#include <common.h>
#include <log.h>
#include <dm/device_compat.h>
#include <linux/delay.h>
* Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <i2c.h>
* Copyright (C) 2011, 2013 Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <i2c.h>
* Peter, Software Engineering, <superpeter.cai@gmail.com>.
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <errno.h>
* David Mueller, ELSOFT AG, d.mueller@elsoft.ch
*/
+#include <common.h>
#include <errno.h>
#include <dm.h>
#include <fdtdec.h>
-#include <time.h>
#if defined(CONFIG_ARCH_EXYNOS4) || defined(CONFIG_ARCH_EXYNOS5)
#include <log.h>
#include <asm/arch/clk.h>
* Copyright (c) 2014 Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <i2c.h>
* Please see doc/driver-model/i2c-howto.rst for instructions.
*/
+#include <common.h>
#include <i2c.h>
#include <log.h>
#include <asm/global_data.h>
* Please see doc/driver-model/i2c-howto.rst for instructions.
*/
-#include <config.h>
+#include <common.h>
#if defined(CONFIG_AT91FAMILY)
#include <asm/io.h>
#include <asm/arch/hardware.h>
#define LOG_CATEGORY UCLASS_I2C
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <i2c.h>
#include <axp_pmic.h>
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <i2c.h>
#include <axp_pmic.h>
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <i2c.h>
* Copyright (c) 2016, NVIDIA CORPORATION.
*/
+#include <common.h>
#include <dm.h>
#include <i2c.h>
#include <log.h>
* NVIDIA Corporation <www.nvidia.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <i2c.h>
* Copyright (c) 2009-2010 Intel Corporation
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <i2c.h>
* Copyright (C) 2021 Mark Kettenis <kettenis@openbsd.org>
*/
+#include <common.h>
#include <dm.h>
#include <keyboard.h>
#include <spi.h>
*/
#include <stdlib.h>
+#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <input.h>
* Copyright (c) 2012 The Chromium OS Authors.
*/
+#include <common.h>
#include <cros_ec.h>
#include <dm.h>
#include <errno.h>
#define LOG_CATEGORY UCLASS_KEYBOARD
+#include <common.h>
#include <dm.h>
#include <env.h>
#include <errno.h>
* (C) Copyright 2004 DENX Software Engineering, Wolfgang Denk, wd@denx.de
*/
+#include <common.h>
#include <console.h>
#include <dm.h>
#include <env.h>
#include <errno.h>
#include <log.h>
#include <stdio_dev.h>
-#include <time.h>
#include <input.h>
#ifdef CONFIG_DM_KEYBOARD
#include <keyboard.h>
* (C) Copyright 2004 DENX Software Engineering, Wolfgang Denk, wd@denx.de
*/
+#include <common.h>
#include <dm.h>
#include <key_matrix.h>
#include <log.h>
#define LOG_CATEGORY UCLASS_KEYBOARD
+#include <common.h>
#include <dm.h>
#include <keyboard.h>
#include <log.h>
* NVIDIA Corporation <www.nvidia.com>
*/
+#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <input.h>
#include <log.h>
#include <stdio_dev.h>
#include <tegra-kbc.h>
-#include <time.h>
#include <asm/io.h>
#include <asm/arch/clock.h>
#include <asm/arch/funcmux.h>
* Copyright (C) 2021 Mark Kettenis <kettenis@openbsd.org>
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <iommu.h>
#define LOG_CATEGORY UCLASS_IOMMU
+#include <common.h>
#include <dm.h>
#include <iommu.h>
#include <malloc.h>
* Copyright (C) 2021 Mark Kettenis <kettenis@openbsd.org>
*/
+#include <common.h>
#include <dm.h>
#include <iommu.h>
#include <lmb.h>
#define LOG_CATEGORY UCLASS_LED
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <led.h>
* Copyright (C) 2017 Álvaro Fernández Rojas <noltari@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <led.h>
* Copyright (C) 2017 Álvaro Fernández Rojas <noltari@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <led.h>
* drivers/led/led_bcm6858.c
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <led.h>
* drivers/led/led_bcm6358.c
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <led.h>
*
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <led.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <led.h>
* Author: Ivan Vozvakhov <i.vozvakhov@vk.team>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <led.h>
* Copyright (C) 2021 Mark Kettenis <kettenis@openbsd.org>
*/
+#include <common.h>
#include <dm.h>
#include <mailbox-uclass.h>
#include <asm/io.h>
* Lokesh Vutla <lokeshvutla@ti.com>
*/
+#include <common.h>
#include <log.h>
#include <malloc.h>
#include <asm/global_data.h>
#define LOG_CATEGORY UCLASS_MAILBOX
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <mailbox.h>
* Copyright (c) 2016, NVIDIA CORPORATION.
*/
+#include <common.h>
#include <dm.h>
#include <mailbox.h>
#include <malloc.h>
* Copyright (c) 2016, NVIDIA CORPORATION.
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <mailbox-uclass.h>
#define LOG_CATEGORY UCLASS_MAILBOX
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <log.h>
* Copyright (c) 2016, NVIDIA CORPORATION.
*/
+#include <common.h>
#include <log.h>
#include <malloc.h>
#include <asm/io.h>
* Copyright (C) 2018-2019 Xilinx, Inc.
*/
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <asm/system.h>
#define LOG_CATEGORY UCLASS_NOP
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <reset.h>
* Texas Instruments Incorporated, <www.ti.com>
*/
+#include <common.h>
#include <asm/arch/hardware.h>
#include <asm/ti-common/ti-aemif.h>
#include <asm/io.h>
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <dm/device-internal.h>
#include <dm/device_compat.h>
* Scott McNutt <smcnutt@psyent.com>
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <errno.h>
* published by the Free Software Foundation.
*/
+#include <common.h>
#include <dm.h>
#include <i2c.h>
#include <errno.h>
* Copyright (C) 2011 The ChromiumOS Authors. All rights reserved.
*/
+#include <common.h>
#include <console.h>
-#include <linux/string.h>
#include <asm/cb_sysinfo.h>
void cbmemc_putc(struct stdio_dev *dev, char data)
#define LOG_CATEGORY UCLASS_CROS_EC
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <i2c.h>
#include <log.h>
#include <malloc.h>
#include <spi.h>
-#include <time.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <asm/io.h>
* KBC.
*/
+#include <common.h>
#include <dm.h>
#include <i2c.h>
#include <cros_ec.h>
* KBC.
*/
+#include <common.h>
#include <dm.h>
#include <command.h>
#include <cros_ec.h>
#include <log.h>
-#include <time.h>
#include <asm/io.h>
#ifdef DEBUG_TRACE
#define LOG_CATEGORY UCLASS_CROS_EC
+#include <common.h>
#include <cros_ec.h>
#include <dm.h>
#include <ec_commands.h>
#include <os.h>
#include <u-boot/sha256.h>
#include <spi.h>
-#include <time.h>
#include <asm/malloc.h>
#include <asm/state.h>
#include <asm/sdl.h>
* KBC.
*/
+#include <common.h>
#include <cros_ec.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
#include <spi.h>
-#include <time.h>
int cros_ec_spi_packet(struct udevice *udev, int out_bytes, int in_bytes)
{
* and 4 programmable non-volatile GPIO pins.
*/
+#include <common.h>
#include <i2c.h>
#include <command.h>
#include <linux/delay.h>
*
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <power/pmic.h>
#define LOG_CATEGORY UCLASS_FS_FIRMWARE_LOADER
+#include <common.h>
#include <dm.h>
#include <env.h>
#include <errno.h>
* Copyright 2015 Freescale Semiconductor, Inc.
* Author: Zhuoyu Zhang <Zhuoyu.Zhang@freescale.com>
*/
-#include <config.h>
+#include <common.h>
#include <asm/io.h>
#include <asm/arch-ls102xa/immap_ls102xa.h>
#include <asm/arch-ls102xa/config.h>
* Author: Dipen Dudhat <dipen.dudhat@freescale.com>
*/
-#include <config.h>
+#include <common.h>
#include <fsl_ifc.h>
#include <part.h>
* Martha Marx <mmarx@silicontkx.com>
*/
+#include <common.h>
#include <fuse.h>
#include <linux/delay.h>
#include <linux/errno.h>
* Copyright 2017 NXP
*/
-#include <config.h>
+#include <common.h>
#include <log.h>
#include <linux/libfdt.h>
#include <fdt_support.h>
* Copyright 2015 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <fsl_sec_mon.h>
#include <linux/delay.h>
* SPDX-License-Identifier: GPL-2.0+
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <misc.h>
* Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/
+#include <common.h>
#include <dm.h>
#include <regmap.h>
#include <misc.h>
* Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <dm/lists.h>
* Licensed under the GPL-2 or later.
*/
+#include <common.h>
#include <status_led.h>
#include <asm/gpio.h>
#define LOG_CATEGORY UCLASS_I2C_EEPROM
+#include <common.h>
+#include <eeprom.h>
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/kernel.h>
* Copyright (c) 2014 Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <i2c.h>
* Dirk Eibach, Guntermann & Drunck GmbH, eibach@gdsys.de
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <regmap.h>
* Copyright 2019 NXP
*/
+#include <common.h>
#include <console.h>
#include <errno.h>
#include <fuse.h>
* Peng Fan <peng.fan@nxp.com>
*/
+#include <common.h>
#include <log.h>
#include <asm/global_data.h>
#include <asm/io.h>
* Peng Fan <peng.fan@nxp.com>
*/
+#include <common.h>
#include <hang.h>
#include <malloc.h>
#include <asm/global_data.h>
*
*/
+#include <common.h>
#include <hang.h>
#include <malloc.h>
#include <asm/io.h>
* Copyright 2020-2022 NXP
*/
+#include <common.h>
#include <asm/io.h>
#include <dm.h>
#include <dm/lists.h>
* Copyright 2020 NXP
*/
+#include <common.h>
#include <console.h>
#include <errno.h>
#include <fuse.h>
#define LOG_CATEGORY UCLASS_IRQ
+#include <common.h>
#include <dm.h>
#include <dt-structs.h>
#include <irq.h>
* Copyright 2019 Google LLC
*/
+#include <common.h>
#include <dm.h>
#include <irq.h>
#include <acpi/acpi_device.h>
* Copyright 2021 Google LLC
*/
+#include <common.h>
#include <dm.h>
#include <irq.h>
#include <asm/irq.h>
* Author: Alex Smith <alex.smith@imgtec.com>
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/unaligned.h>
#include <errno.h>
*
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <asm/io.h>
*
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <asm/io.h>
*/
#define LOG_CATEGORY UCLASS_MISC
+#include <common.h>
#include <clk.h>
#include <fuse.h>
#include <misc.h>
* Author: Eugen Hristev <eugen.hristev@microchip.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
#define LOG_CATEGORY UCLASS_MISC
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <misc.h>
* Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/
+#include <common.h>
#include <dm.h>
#include <misc.h>
* Copyright (C) 2008 MontaVista Software, Inc.
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <mapmem.h>
* Copyright (C) 2011 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <fuse.h>
#include <linux/delay.h>
#include <linux/errno.h>
* etc.) which would make common driver an ifdef nightmare :-(
*/
+#include <common.h>
#include <fuse.h>
#include <linux/delay.h>
#include <linux/errno.h>
* Copyright (c) 2022 Nuvoton Technology Corp.
*/
+#include <common.h>
#include <dm.h>
#include <regmap.h>
#include <syscon.h>
*/
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fuse.h>
* Copyright (C) 2016 Stefan Roese <sr@denx.de>
*/
+#include <common.h>
#include <nuvoton_nct6102d.h>
#include <asm/io.h>
#include <asm/pnp_def.h>
* Copyright (C) 2022 Sean Anderson <sean.anderson@seco.com>
*/
+#include <common.h>
#include <i2c_eeprom.h>
#include <linker_lists.h>
#include <misc.h>
#define LOG_CATEGORY UCLASS_P2SB
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
#define LOG_CATEGORY UCLASS_MISC
+#include <common.h>
#include <axi.h>
#include <dm.h>
#include <log.h>
#define LOG_CATEGORY UCLASS_P2SB
+#include <common.h>
#include <dm.h>
#include <asm/io.h>
#include <p2sb.h>
* Copyright (C) 2015 Stefan Roese <sr@denx.de>
*/
+#include <common.h>
#include <errno.h>
#include <i2c.h>
#include <status_led.h>
#define LOG_CATEGORY UCLASS_PWRSEQ
+#include <common.h>
#include <dm.h>
#include <pwrseq.h>
#define LOG_CATEGORY UCLASS_QFW
+#include <common.h>
#include <acpi/acpi_table.h>
#include <bootdev.h>
#include <bootflow.h>
* Written by Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
*/
+#include <common.h>
#include <asm/io.h>
#include <command.h>
#include <display_options.h>
* Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <asm/io.h>
#include <command.h>
#include <display_options.h>
#define LOG_CATEGORY UCLASS_MISC
+#include <common.h>
#include <axi.h>
#include <dm.h>
#include <misc.h>
* Right now first 1KiB is used to store only serial number.
*/
+#include <common.h>
#include <dm/device.h>
#include <dm/read.h>
#include <linux/bitops.h>
* Copyright (c) 2021 Michael Walle <michael@walle.cc>
*/
+#include <common.h>
#include <dm.h>
#include <i2c.h>
* Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/pnp_def.h>
* Copyright (C) 2016, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <asm/io.h>
#include <errno.h>
#include <smsc_sio1007.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <dt-structs.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <status_led.h>
-#include <linux/types.h>
/*
* The purpose of this code is to signal the operational status of a
#define LOG_CATEGORY UCLASS_NOP
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <misc.h>
* Copyright (C) 2018, STMicroelectronics - All Rights Reserved
*/
+#include <common.h>
#include <command.h>
#include <fuse.h>
#include <misc.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <syscon.h>
* Copyright (c) 2016, NVIDIA CORPORATION.
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
* Copyright (c) 2016, NVIDIA CORPORATION.
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <dm/lists.h>
* Copyright (c) 2014 Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <dm/test.h>
#include <asm/global_data.h>
* Copyright (C) 2024 Marek Behún <kabel@kernel.org>
*/
+#include <common.h>
#include <console.h>
#include <dm.h>
#include <dm/lists.h>
* https://patchwork.kernel.org/patch/9257715/
*/
+#include <common.h>
#include <asm/gpio.h>
#include <dm.h>
#include <dm/device_compat.h>
* Author: Liviu Dudau <liviu.dudau@foss.arm.com>
*
*/
+#include <common.h>
#include <dm.h>
#include <malloc.h>
#include <dm/read.h>
* Copyright (C) 2016 Stefan Roese <sr@denx.de>
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/pnp_def.h>
support. For eMMC this not mandatory, but not enabling this option may
prevent the driver of using the faster modes.
-config MMC_SUPPORTS_TUNING
- bool
-
-config SPL_MMC_SUPPORTS_TUNING
- bool
-
config MMC_UHS_SUPPORT
bool "enable UHS support"
depends on MMC_IO_VOLTAGE
- select MMC_SUPPORTS_TUNING
help
The Ultra High Speed (UHS) bus is available on some SDHC and SDXC
cards. The IO voltage must be switchable from 3.3v to 1.8v. The bus
config SPL_MMC_UHS_SUPPORT
bool "enable UHS support in SPL"
depends on SPL_MMC_IO_VOLTAGE
- select SPL_MMC_SUPPORTS_TUNING
help
The Ultra High Speed (UHS) bus is available on some SDHC and SDXC
cards. The IO voltage must be switchable from 3.3v to 1.8v. The bus
config MMC_HS200_SUPPORT
bool "enable HS200 support"
- select MMC_SUPPORTS_TUNING
help
The HS200 mode is support by some eMMC. The bus frequency is up to
200MHz. This mode requires tuning the IO.
config SPL_MMC_HS200_SUPPORT
bool "enable HS200 support in SPL"
depends on SPL_MMC
- select SPL_MMC_SUPPORTS_TUNING
help
The HS200 mode is support by some eMMC. The bus frequency is up to
200MHz. This mode requires tuning the IO.
bool "Marvell Octeon Multimedia Card Interface support"
depends on (ARCH_OCTEON || ARCH_OCTEONTX || ARCH_OCTEONTX2)
depends on DM_MMC
- select MMC_SUPPORTS_TUNING if ARCH_OCTEONTX2
help
This selects the Octeon Multimedia card Interface.
If you have an OcteonTX/TX2 or MIPS Octeon board with a
*/
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <malloc.h>
#include <mmc.h>
writeb(val, host->ioaddr + reg);
}
-#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
+#ifdef MMC_SUPPORTS_TUNING
#define ITAPDLY_LENGTH 32
#define ITAPDLY_LAST_INDEX (ITAPDLY_LENGTH - 1)
}
#endif
const struct sdhci_ops am654_sdhci_ops = {
-#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
+#ifdef MMC_SUPPORTS_TUNING
.platform_execute_tuning = am654_sdhci_execute_tuning,
#endif
.deferred_probe = am654_sdhci_deferred_probe,
}
const struct sdhci_ops j721e_4bit_sdhci_ops = {
-#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
+#ifdef MMC_SUPPORTS_TUNING
.platform_execute_tuning = am654_sdhci_execute_tuning,
#endif
.deferred_probe = am654_sdhci_deferred_probe,
/* #define DEBUG */
+#include "common.h"
#include <clk.h>
#include <errno.h>
#include <log.h>
* Eddie James <eajames@linux.ibm.com>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <malloc.h>
* Wenyou.Yang <wenyou.yang@atmel.com>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <malloc.h>
* Inspired by sdhci-pci.c, by Pierre Ossman
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
* sdhci.c and sdhci-pci.c by Pierre Ossman
*/
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <mmc.h>
#include <asm/arch/msg.h>
* Author: Thomas Fitzsimmons <fitzsim@fitzsim.org>
*/
+#include <common.h>
#include <dm.h>
#include <mach/sdhci.h>
#include <malloc.h>
* Arthur Li <arthur.li@cortina-access.com>
*/
+#include <common.h>
#include <dwmmc.h>
#include <fdtdec.h>
#include <asm/global_data.h>
*/
#include <config.h>
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <mmc.h>
*/
#include <bouncebuf.h>
+#include <common.h>
#include <cpu_func.h>
#include <errno.h>
#include <log.h>
* Jaehoon Chung <jh80.chung@samsung.com>
*/
+#include <common.h>
#include <dwmmc.h>
#include <fdtdec.h>
#include <asm/global_data.h>
* Copyright 2021 Socionext, Inc.
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <malloc.h>
*/
#include <config.h>
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <errno.h>
return esdhc_init_common(priv, &plat->mmc);
}
-#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
+#ifdef MMC_SUPPORTS_TUNING
static int fsl_esdhc_execute_tuning(struct udevice *dev, uint32_t opcode)
{
struct fsl_esdhc_plat *plat = dev_get_plat(dev);
.get_cd = fsl_esdhc_get_cd,
.send_cmd = fsl_esdhc_send_cmd,
.set_ios = fsl_esdhc_set_ios,
-#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
+#ifdef MMC_SUPPORTS_TUNING
.execute_tuning = fsl_esdhc_execute_tuning,
#endif
.reinit = fsl_esdhc_reinit,
*/
#include <config.h>
+#include <common.h>
#include <command.h>
#include <clk.h>
#include <cpu_func.h>
priv->clock = clock;
}
-#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
+#ifdef MMC_SUPPORTS_TUNING
static int esdhc_change_pinstate(struct udevice *dev)
{
struct fsl_esdhc_priv *priv = dev_get_priv(dev);
int ret __maybe_unused;
u32 clock;
-#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
+#ifdef MMC_SUPPORTS_TUNING
/*
* call esdhc_set_timing() before update the clock rate,
* This is because current we support DDR and SDR mode,
esdhc_setbits32(®s->sysctl, SYSCTL_PEREN | SYSCTL_CKEN);
}
-#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
+#ifdef MMC_SUPPORTS_TUNING
/*
* For HS400/HS400ES mode, make sure set the strobe dll in the
* target clock rate. So call esdhc_set_strobe_dll() after the
.get_cd = fsl_esdhc_get_cd,
.send_cmd = fsl_esdhc_send_cmd,
.set_ios = fsl_esdhc_set_ios,
-#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
+#ifdef MMC_SUPPORTS_TUNING
.execute_tuning = fsl_esdhc_execute_tuning,
#endif
#if CONFIG_IS_ENABLED(MMC_HS400_ES_SUPPORT)
* Copyright 2013 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <hang.h>
#include <mmc.h>
* Author: Rick Chen (rick@andestech.com)
*/
+#include <common.h>
#include <clk.h>
#include <log.h>
#include <malloc.h>
* Copyright (C) 2004-2006 Atmel Corporation
*/
-#include <config.h>
+#include <common.h>
#include <clk.h>
#include <display_options.h>
#include <dm.h>
* peter.griffin <peter.griffin@linaro.org>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dwmmc.h>
*
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <malloc.h>
* Author: Paul Burton <paul.burton@imgtec.com>
*/
+#include <common.h>
#include <malloc.h>
#include <mmc.h>
#include <asm/global_data.h>
* Copyright 2013 Broadcom Corporation.
*/
+#include <common.h>
#include <malloc.h>
#include <sdhci.h>
#include <linux/delay.h>
* (C) Copyright 2016 Carlo Caione <carlo@caione.org>
*/
+#include <common.h>
#include <clk.h>
#include <cpu_func.h>
#include <dm.h>
* Jaehoon Chung <jh80.chung@samsung.com>
*/
+#include <common.h>
#include <dm.h>
#include <mmc.h>
#include <pwrseq.h>
#define LOG_CATEGORY UCLASS_MMC
+#include <common.h>
#include <bootdev.h>
#include <log.h>
#include <mmc.h>
return dm_mmc_get_cd(mmc->dev);
}
-#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
+#ifdef MMC_SUPPORTS_TUNING
static int dm_mmc_execute_tuning(struct udevice *dev, uint opcode)
{
struct dm_mmc_ops *ops = mmc_get_ops(dev);
*/
#include <config.h>
+#include <common.h>
#include <blk.h>
#include <command.h>
#include <dm.h>
#include <errno.h>
#include <mmc.h>
#include <part.h>
-#include <time.h>
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/printk.h>
#include <malloc.h>
#include <memalign.h>
#include <linux/list.h>
-#include <linux/printk.h>
#include <div64.h>
#include "mmc_private.h"
MMC_QUIRK_RETRY_SET_BLOCKLEN, 4);
}
-#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
+#ifdef MMC_SUPPORTS_TUNING
static const u8 tuning_blk_pattern_4bit[] = {
0xff, 0x0f, 0xff, 0x00, 0xff, 0xcc, 0xc3, 0xcc,
0xc3, 0x3c, 0xcc, 0xff, 0xfe, 0xff, 0xfe, 0xef,
}
#if !CONFIG_IS_ENABLED(DM_MMC)
-#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
+#ifdef MMC_SUPPORTS_TUNING
static int mmc_execute_tuning(struct mmc *mmc, uint opcode)
{
return -ENOTSUPP;
struct mode_width_tuning {
enum bus_mode mode;
uint widths;
-#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
+#ifdef MMC_SUPPORTS_TUNING
uint tuning;
#endif
};
#if !CONFIG_IS_ENABLED(MMC_TINY)
static const struct mode_width_tuning sd_modes_by_pref[] = {
#if CONFIG_IS_ENABLED(MMC_UHS_SUPPORT)
-#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
+#ifdef MMC_SUPPORTS_TUNING
{
.mode = UHS_SDR104,
.widths = MMC_MODE_4BIT | MMC_MODE_1BIT,
mmc_set_clock(mmc, mmc->tran_speed,
MMC_CLK_ENABLE);
-#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
+#ifdef MMC_SUPPORTS_TUNING
/* execute tuning if needed */
if (mwt->tuning && !mmc_host_is_spi(mmc)) {
err = mmc_execute_tuning(mmc,
mmc_select_mode(mmc, mwt->mode);
mmc_set_clock(mmc, mmc->tran_speed,
MMC_CLK_ENABLE);
-#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
+#ifdef MMC_SUPPORTS_TUNING
/* execute tuning if needed */
if (mwt->tuning) {
* Written by Amar <amarendra.xt@samsung.com>
*/
+#include <common.h>
#include <log.h>
#include <mmc.h>
#include "mmc_private.h"
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <bootdev.h>
#include <dm.h>
#include <mmc.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <log.h>
#include <malloc.h>
#include <mmc.h>
*
* Licensed under the GPL-2 or later.
*/
+#include <common.h>
#include <errno.h>
#include <log.h>
#include <malloc.h>
*/
#include <config.h>
+#include <common.h>
#include <blk.h>
#include <dm.h>
#include <part.h>
* Based on Linux driver
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <malloc.h>
*/
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <mmc.h>
#include <errno.h>
#endif
}
-#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
+#ifdef MMC_SUPPORTS_TUNING
static u32 test_delay_bit(u32 delay, u32 bit)
{
bit %= PAD_DELAY_MAX;
.set_ios = msdc_ops_set_ios,
.get_cd = msdc_ops_get_cd,
.get_wp = msdc_ops_get_wp,
-#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
+#ifdef MMC_SUPPORTS_TUNING
.execute_tuning = msdc_execute_tuning,
#endif
.wait_dat0 = msdc_ops_wait_dat0,
* Marvell SD Host Controller Interface
*/
+#include <common.h>
#include <dm.h>
#include <malloc.h>
#include <sdhci.h>
* Written-by: Maen Suleiman, Gerald Kerma
*/
+#include <common.h>
#include <errno.h>
#include <log.h>
#include <malloc.h>
*/
#include <config.h>
+#include <common.h>
#include <command.h>
#include <mmc.h>
#include <part.h>
* Kyle Harris, Nexus Technologies, Inc. kharris@nexus-tech.net
*/
+#include <common.h>
#include <log.h>
#include <malloc.h>
#include <mmc.h>
* (C) Copyright 2019 Stefan Bosch <stefan_b@posteo.net>
*/
+#include <common.h>
#include <dm.h>
#include <dt-structs.h>
#include <dwmmc.h>
* Copyright (c) 2022 Nuvoton Technology Corp.
*/
+#include <common.h>
#include <dm.h>
#include <sdhci.h>
#include <clk.h>
u8 desired_ctype = 0;
if (IS_MMC(mmc)) {
-#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
+#ifdef MMC_SUPPORTS_TUNING
if (cmd->cmdidx == MMC_CMD_SEND_TUNING_BLOCK_HS200) {
if (cmd->resp_type == MMC_RSP_R1)
cr.rtype_xor = 1;
return octeontx_mmc_send_cmd(dev_to_mmc(dev), cmd, data);
}
-#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
+#ifdef MMC_SUPPORTS_TUNING
static int octeontx_mmc_test_cmd(struct mmc *mmc, u32 opcode, int *statp)
{
struct mmc_cmd cmd;
return 0;
}
-#else /* CONFIG_MMC_SUPPORTS_TUNING */
+#else /* MMC_SUPPORTS_TUNING */
static void octeontx_mmc_set_emm_timing(struct mmc *mmc,
union mio_emm_timing emm_timing)
{
}
-#endif /* CONFIG_MMC_SUPPORTS_TUNING */
+#endif /* MMC_SUPPORTS_TUNING */
/**
* Calculate the clock period with rounding up
err = octeontx_mmc_configure_delay(mmc);
-#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
+#ifdef MMC_SUPPORTS_TUNING
if (!err && mmc->selected_mode == MMC_HS_400 && !slot->hs400_tuned) {
debug("%s: Tuning HS400 mode\n", __func__);
err = octeontx_tune_hs400(mmc);
.set_ios = octeontx_mmc_set_ios,
.get_cd = octeontx_mmc_get_cd,
.get_wp = octeontx_mmc_get_wp,
-#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
+#ifdef MMC_SUPPORTS_TUNING
.execute_tuning = octeontx_mmc_execute_tuning,
#endif
};
*/
#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <log.h>
#include <malloc.h>
return val;
}
-#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
+#ifdef MMC_SUPPORTS_TUNING
static void omap_hsmmc_disable_tuning(struct mmc *mmc)
{
struct hsmmc *mmc_base;
.get_cd = omap_hsmmc_getcd,
.get_wp = omap_hsmmc_getwp,
#endif
-#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
+#ifdef MMC_SUPPORTS_TUNING
.execute_tuning = omap_hsmmc_execute_tuning,
#endif
.wait_dat0 = omap_hsmmc_wait_dat0,
* channel, and those special bits used in this driver is picked from vendor
* source exclusively for MMC/SD.
*/
+#include <common.h>
#include <clk.h>
#include <cpu_func.h>
#include <dm.h>
* Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
#include <asm/gpio.h>
#include <asm/io.h>
+#include <common.h>
#include <div64.h>
#include <dm.h>
#include <errno.h>
* Copyright (c) 2013 Google, Inc
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dt-structs.h>
* Rockchip SD Host Controller Interface
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dm/ofnode.h>
*/
#include <config.h>
+#include <common.h>
#include <log.h>
#include <memalign.h>
#include <mmc.h>
* Jaehoon Chung <jh80.chung@samsung.com>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
* SDHCI ADMA2 helper functions.
*/
+#include <common.h>
#include <cpu_func.h>
#include <sdhci.h>
#include <malloc.h>
* Author: Masahiro Yamada <yamada.masahiro@socionext.com>
*/
+#include <common.h>
#include <dm.h>
#include <asm/global_data.h>
#include <dm/device_compat.h>
host->ops = &sdhci_cdns_ops;
host->quirks |= SDHCI_QUIRK_WAIT_SEND_CMD;
sdhci_cdns_mmc_ops = sdhci_ops;
-#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
+#ifdef MMC_SUPPORTS_TUNING
sdhci_cdns_mmc_ops.execute_tuning = sdhci_cdns_execute_tuning;
#endif
* Murray.Jensen@cmst.csiro.au, 27-Jan-01.
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <errno.h>
#include <malloc.h>
#include <mmc.h>
#include <sdhci.h>
-#include <time.h>
#include <asm/cache.h>
#include <linux/bitops.h>
#include <linux/delay.h>
return -ECOMM;
}
-#if defined(CONFIG_DM_MMC) && CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
+#if defined(CONFIG_DM_MMC) && defined(MMC_SUPPORTS_TUNING)
static int sdhci_execute_tuning(struct udevice *dev, uint opcode)
{
int err;
.set_ios = sdhci_set_ios,
.get_cd = sdhci_get_cd,
.deferred_probe = sdhci_deferred_probe,
-#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
+#ifdef MMC_SUPPORTS_TUNING
.execute_tuning = sdhci_execute_tuning,
#endif
.wait_dat0 = sdhci_wait_dat0,
*/
#include <config.h>
+#include <common.h>
#include <log.h>
#include <watchdog.h>
#include <command.h>
* Author: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dwmmc.h>
* (C) Copyright 2013 Altera Corporation <www.altera.com>
*/
+#include <common.h>
#include <log.h>
#include <asm/arch/clock_manager.h>
#include <asm/arch/secure_reg_helper.h>
* Author(s): Patrice Chotard, <patrice.chotard@foss.st.com> for STMicroelectronics.
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <mmc.h>
#define LOG_CATEGORY UCLASS_MMC
+#include <common.h>
#include <clk.h>
#include <cpu_func.h>
#include <dm.h>
* proper DM_MMC implementation at the end.
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
/*
* Copyright (c) 2017 Intel Corporation
*/
+#include <common.h>
#include <dm.h>
#include <dm/device.h>
#include <linux/io.h>
*/
#include <bouncebuf.h>
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
* Author: Masahiro Yamada <yamada.masahiro@socionext.com>
*/
+#include <common.h>
#include <clk.h>
#include <cpu_func.h>
#include <fdtdec.h>
* Author: Masahiro Yamada <yamada.masahiro@socionext.com>
*/
+#include <common.h>
#include <clk.h>
#include <fdtdec.h>
#include <malloc.h>
* Stefan Roese <sr@denx.de>
*/
+#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <asm/global_data.h>
*/
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <linux/delay.h>
* Copyright (C) 2015 Thomas Chou <thomas@wytron.com.tw>
*/
+#include <common.h>
#include <console.h>
#include <dm.h>
#include <errno.h>
/* The DEBUG define must be before common to enable debugging */
/* #define DEBUG */
-#include <config.h>
+#include <common.h>
#include <console.h>
#include <dm.h>
#include <env.h>
#include <init.h>
#include <irq_func.h>
#include <log.h>
-#include <time.h>
#include <asm/global_data.h>
#include <asm/processor.h>
#include <asm/io.h>
* Written by: Piotr Ziecik <kosmo@semihalf.com>
*/
+#include <common.h>
#include <dma.h>
#include <flash.h>
#include <malloc.h>
// Copyright (C) 2019 Texas Instruments Incorporated - https://www.ti.com/
// Author: Vignesh Raghavendra <vigneshr@ti.com>
+#include <common.h>
#include <asm/io.h>
#include <dm.h>
#include <regmap.h>
/* The DEBUG define must be before common to enable debugging */
/*#define DEBUG*/
+#include <common.h>
#include <flash.h>
#include <log.h>
#include <asm/processor.h>
#define LOG_CATEGORY UCLASS_MTD
+#include <common.h>
#include <dm.h>
#include <dm/device-internal.h>
#include <errno.h>
* (C) Copyright 2014
* Heiko Schocher, DENX Software Engineering, hs@denx.de.
*/
+#include <common.h>
#include <env.h>
#include <log.h>
#include <malloc.h>
#include <linux/kmod.h>
#endif
+#include <common.h>
#include <malloc.h>
#include <linux/bug.h>
#include <linux/errno.h>
#define pr_fmt(fmt) "nand-bbt: " fmt
+#include <common.h>
#include <dm/devres.h>
#include <linux/bitops.h>
#include <linux/mtd/nand.h>
#define pr_fmt(fmt) "nand: " fmt
+#include <common.h>
#include <watchdog.h>
#ifndef __UBOOT__
#include <linux/compat.h>
* Stefan Roese, DENX Software Engineering, sr@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <nand.h>
#include <system-constants.h>
#include <asm/io.h>
* Copyright (C) 2014 - 2015 Xilinx, Inc.
*/
+#include <common.h>
#include <malloc.h>
#include <asm/io.h>
#include <linux/delay.h>
* (C) Copyright 2012 ATMEL, Hong Xu
*/
-#include <config.h>
+#include <common.h>
#include <log.h>
#include <system-constants.h>
#include <asm/gpio.h>
// SPDX-License-Identifier: GPL-2.0+
+#include <common.h>
#include <asm/io.h>
#include <memalign.h>
#include <nand.h>
// SPDX-License-Identifier: GPL-2.0+
+#include <common.h>
#include <asm/io.h>
#include <memalign.h>
#include <nand.h>
// SPDX-License-Identifier: GPL-2.0+
+#include <common.h>
#include <asm/io.h>
#include <memalign.h>
#include <nand.h>
// SPDX-License-Identifier: GPL-2.0+
+#include <common.h>
#include <asm/io.h>
#include <memalign.h>
#include <nand.h>
// SPDX-License-Identifier: GPL-2.0+
+#include <common.h>
#include <asm/io.h>
#include <memalign.h>
#include <nand.h>
// SPDX-License-Identifier: GPL-2.0+
+#include <common.h>
#include <asm/io.h>
#include <memalign.h>
#include <nand.h>
* GNU General Public License for more details.
*/
+#include <common.h>
#include <asm/io.h>
#include <memalign.h>
#include <nand.h>
// SPDX-License-Identifier: GPL-2.0+
+#include <common.h>
#include <dm.h>
#include <malloc.h>
#include <dm/devres.h>
* Copyright (C) 2015 Broadcom Corporation
*/
+#include <common.h>
#include <asm/io.h>
#include <memalign.h>
#include <nand.h>
* Copyright (c) 2020, Cortina Access Inc..
*/
+#include <common.h>
#include <linux/delay.h>
#include <linux/bitops.h>
#include <linux/sizes.h>
-
*/
-#include <config.h>
+#include <common.h>
#include <log.h>
#include <linux/mtd/rawnand.h>
#include <asm/io.h>
* Copyright (C) 2009-2010, Intel Corporation and its suppliers.
*/
+#include <common.h>
#include <dm.h>
#include <malloc.h>
#include <nand.h>
* Copyright (C) 2014-2015 Masahiro Yamada <yamada.masahiro@socionext.com>
*/
-#include <config.h>
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <asm/unaligned.h>
* Scott Wood <scottwood@freescale.com>
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <malloc.h>
#include <nand.h>
* Author: Scott Wood <scottwood@freescale.com>
*/
-#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <linux/mtd/rawnand.h>
#include <asm/io.h>
* Authors: Dipen Dudhat <Dipen.Dudhat@freescale.com>
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <malloc.h>
#include <nand.h>
* Author: Dipen Dudhat <dipen.dudhat@freescale.com>
*/
-#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <asm/io.h>
#include <fsl_ifc.h>
* Written-by: Prafulla Wadaskar <prafulla@marvell.com>
*/
+#include <common.h>
#include <linux/mtd/rawnand.h>
#include <asm/io.h>
#include <asm/arch/soc.h>
* Heiko Schocher, DENX Software Engineering, hs@denx.de
*/
-#include <config.h>
+#include <common.h>
#include <nand.h>
#include <asm/io.h>
#include <linux/delay.h>
* should not rely on the ECC validity.
*/
-#include <config.h>
+#include <common.h>
#include <nand.h>
#include <linux/delay.h>
#include <linux/errno.h>
* Author: Kevin Wells
*/
-#include <config.h>
+#include <common.h>
#include <log.h>
#include <nand.h>
#include <linux/bug.h>
* Copyright 2009 Ilya Yanok, <yanok@emcraft.com>
*/
-#include <config.h>
+#include <common.h>
#include <log.h>
#include <nand.h>
#include <linux/delay.h>
* Stefan Roese, DENX Software Engineering, sr at denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <hang.h>
#include <nand.h>
#include <system-constants.h>
* Zhengxun Li <zhengxunli@mxic.com.tw>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <malloc.h>
* Copyright 2017-2019 NXP
*/
+#include <common.h>
#include <clk.h>
#include <cpu_func.h>
#include <dm.h>
* Copyright 2019 NXP
* Author: Tim Harvey <tharvey@gateworks.com>
*/
+#include <common.h>
#include <log.h>
#include <nand.h>
#include <malloc.h>
* Ladislav Michl <michl@2n.cz>
*/
-#include <config.h>
+#include <common.h>
#include <nand.h>
#include <errno.h>
#include <linux/mtd/concat.h>
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+#include <common.h>
#include <log.h>
#include <malloc.h>
#include <watchdog.h>
*
*/
+#include <common.h>
#include <log.h>
#include <malloc.h>
#include <dm/devres.h>
*
*/
+#include <common.h>
#include <log.h>
#include <dm/devres.h>
#include <linux/printk.h>
* this file might be covered by the GNU General Public License.
*/
+#include <common.h>
#include <linux/errno.h>
#include <linux/mtd/mtd.h>
* published by the Free Software Foundation.
*
*/
+#include <common.h>
#include <linux/mtd/rawnand.h>
#include <linux/sizes.h>
* Heiko Schocher, DENX Software Engineering, hs@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <nand.h>
/*
* Stefan Roese, DENX Software Engineering, sr@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <nand.h>
#include <system-constants.h>
#include <asm/io.h>
* published by the Free Software Foundation.
*
*/
+#include <common.h>
#include <linux/err.h>
#include <linux/kernel.h>
#include <linux/mtd/rawnand.h>
* Copyright 2010 Freescale Semiconductor
*/
+#include <common.h>
#include <command.h>
#include <log.h>
#include <watchdog.h>
* sets in uboot
*/
+#include <common.h>
#include <asm/io.h>
#include <linux/errno.h>
#include <asm/arch/hardware.h>
* Rohit Choraria <rohitkc@ti.com>
*/
-#include <config.h>
+#include <common.h>
#include <log.h>
#include <system-constants.h>
#include <asm/io.h>
* Copyright © 2006 Marvell International Ltd.
*/
+#include <common.h>
#include <malloc.h>
#include <fdtdec.h>
#include <nand.h>
* Author: Yifeng Zhao <yifeng.zhao@rock-chips.com>
*/
+#include <common.h>
#include <asm/io.h>
#include <clk.h>
#include <dm.h>
#define LOG_CATEGORY UCLASS_MTD
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <log.h>
*/
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <malloc.h>
#include <memalign.h>
#include <asm/arch/clock.h>
#include <asm/io.h>
+#include <common.h>
#include <config.h>
#include <nand.h>
#include <linux/bitops.h>
* (C) Copyright 2006 DENX Software Engineering
*/
+#include <common.h>
#include <log.h>
#include <asm/global_data.h>
#include <asm/io.h>
* - HW ECC: Only 24 and 32-bit error correction implemented.
*/
-#include <config.h>
+#include <common.h>
#include <malloc.h>
#include <dm/device_compat.h>
#include <linux/printk.h>
* This driver is based on plat_nand.c and mxc_nand.c drivers
*/
+#include <common.h>
#include <log.h>
#include <malloc.h>
#include <asm/io.h>
#include <linux/spi/spi.h>
#include <linux/spi/spi-mem.h>
#else
+#include <common.h>
#include <errno.h>
#include <watchdog.h>
#include <spi.h>
* Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#if CONFIG_IS_ENABLED(SANDBOX64)
* Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <mapmem.h>
* Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
*/
+#include <common.h>
#include <dm.h>
#include <fdt_support.h>
#include <linux/errno.h>
* published by the Free Software Foundation.
*/
+#include <common.h>
#include <log.h>
#include <watchdog.h>
#include <dm/devres.h>
* published by the Free Software Foundation.
*/
+#include <common.h>
#include <log.h>
#include <linux/compat.h>
#include <linux/mtd/mtd.h>
* Kyungmin Park <kyungmin.park@samsung.com>
*/
-#include <config.h>
+#include <common.h>
#include <asm/io.h>
#include <linux/bitops.h>
-#include <linux/string.h>
#include <linux/mtd/onenand_regs.h>
#include <onenand_uboot.h>
* OneNAND initialization at U-Boot
*/
-#include <config.h>
+#include <common.h>
#include <display_options.h>
#include <linux/compat.h>
#include <linux/mtd/mtd.h>
* Emulate the pseudo BufferRAM
*/
+#include <common.h>
#include <malloc.h>
#include <linux/compat.h>
#include <linux/mtd/mtd.h>
* Copyright (C) 2017 Marek Vasut <marek.vasut@gmail.com>
*/
+#include <common.h>
#include <malloc.h>
#include <asm/io.h>
#include <clk.h>
* Copyright 2013 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <hang.h>
#include <spi_flash.h>
#define LOG_CATEGORY UCLASS_SPI_FLASH
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
#define LOG_CATEGORY UCLASS_SPI_FLASH
+#include <common.h>
#include <bootdev.h>
#include <dm.h>
#include <log.h>
* Copyright 2022 Google LLC
*/
+#include <common.h>
#include <bootdev.h>
#include <bootflow.h>
#include <bootmeth.h>
* Haikun Wang (haikun.wang@freescale.com)
*/
+#include <common.h>
#include <display_options.h>
#include <dm.h>
#include <errno.h>
* Copyright (C) 2012-2014 Daniel Schwierzeck, daniel.schwierzeck@gmail.com
*/
+#include <common.h>
#include <malloc.h>
#include <linux/errno.h>
#include <linux/mtd/mtd.h>
* Copyright (C) 2013 Jagannadha Sutradharudu Teki, Xilinx Inc.
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <linux/mtd/spi-nor.h>
* Synced from Linux v4.19
*/
+#include <common.h>
#include <display_options.h>
#include <log.h>
#include <watchdog.h>
* Copyright (C) 2018 Texas Instruments Incorporated - https://www.ti.com/
*/
+#include <common.h>
#include <spi.h>
#include <spi_flash.h>
* Synced from Linux v4.19
*/
+#include <common.h>
#include <log.h>
#include <dm/device_compat.h>
#include <linux/err.h>
* Kamil Lulko, <kamil.lulko@gmail.com>
*/
-#include <config.h>
+#include <common.h>
#include <flash.h>
#include <asm/io.h>
#include <asm/arch/stm32.h>
* Copyright (c) International Business Machines Corp., 2006
*/
+#include <common.h>
#include <errno.h>
#include <linux/bug.h>
#include <u-boot/crc.h>
* Copyright (C) 2017 Pengutronix, Philipp Zabel <kernel@pengutronix.de>
* Copyright (C) 2019 Texas Instrument, Jean-jacques Hiblot <jjhiblot@ti.com>
*/
+#include <common.h>
#include <dm.h>
#include <mux-internal.h>
#include <regmap.h>
#define LOG_CATEGORY UCLASS_MUX
+#include <common.h>
#include <dm.h>
#include <mux-internal.h>
#include <dm/device-internal.h>
This driver supports the XGMAC in Calxeda Highbank and Midway
machines.
-config DWC_ETH_XGMAC
- bool "Synopsys DWC Ethernet XGMAC device support"
- select PHYLIB
- help
- This driver supports the Synopsys Designware Ethernet XGMAC (10G
- Ethernet MAC) IP block. The IP supports many options for bus type,
- clocking/reset structure, and feature list.
-
-config DWC_ETH_XGMAC_SOCFPGA
- bool "Synopsys DWC Ethernet XGMAC device support for SOCFPGA"
- select REGMAP
- select SYSCON
- depends on DWC_ETH_XGMAC
- default y if TARGET_SOCFPGA_AGILEX5
- help
- The Synopsys Designware Ethernet XGMAC IP block with specific
- configuration used in Intel SoC FPGA chip.
-
config DRIVER_DM9000
bool "Davicom DM9000 controller driver"
help
obj-$(CONFIG_DWC_ETH_QOS_IMX) += dwc_eth_qos_imx.o
obj-$(CONFIG_DWC_ETH_QOS_ROCKCHIP) += dwc_eth_qos_rockchip.o
obj-$(CONFIG_DWC_ETH_QOS_QCOM) += dwc_eth_qos_qcom.o
-obj-$(CONFIG_DWC_ETH_XGMAC) += dwc_eth_xgmac.o
-obj-$(CONFIG_DWC_ETH_XGMAC_SOCFPGA) += dwc_eth_xgmac_socfpga.o
obj-$(CONFIG_DWC_ETH_QOS_STARFIVE) += dwc_eth_qos_starfive.o
obj-$(CONFIG_DWC_ETH_QOS_STM32) += dwc_eth_qos_stm32.o
obj-$(CONFIG_E1000) += e1000.o
* Copyright (C) 2019 Rosy Song <rosysong@rosinson.com>
*/
+#include <common.h>
#include <clock_legacy.h>
#include <cpu_func.h>
#include <dm.h>
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <errno.h>
* This file is inspired from the Linux kernel driver drivers/net/phy/mdio-aspeed.c
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <miiphy.h>
#endif
#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <log.h>
#include <malloc.h>
* Copyright 2014 Broadcom Corporation.
*/
+#include <common.h>
#include <log.h>
#include <malloc.h>
#include <net.h>
* Copyright (C) 2008 Maxime Bizon <mbizon@freebox.fr>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dma.h>
* Copyright (C) 2008 Maxime Bizon <mbizon@freebox.fr>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dma.h>
* Copyright 2019-2021 Broadcom.
*/
+#include <common.h>
#include <asm/io.h>
#include <dm.h>
* Copyright 2010-2011 Calxeda, Inc.
*/
+#include <common.h>
#include <malloc.h>
#include <net.h>
#include <linux/compiler.h>
* Ethernet MAC Driver for all supported CAxxxx SoCs
*/
+#include <common.h>
#include <command.h>
#include <malloc.h>
#include <net.h>
// SPDX-License-Identifier: GPL-2.0+
+#include <common.h>
#include <asm/io.h>
#include <dm.h>
#include <malloc.h>
* Designware ethernet IP driver for U-Boot
*/
+#include <common.h>
#include <clk.h>
#include <cpu_func.h>
#include <dm.h>
* TODO: external MII is not functional, only internal at the moment.
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <malloc.h>
#define LOG_CATEGORY UCLASS_ETH
+#include <common.h>
#include <clk.h>
#include <cpu_func.h>
#include <dm.h>
* Copyright 2022 NXP
*/
+#include <common.h>
#include <clk.h>
#include <cpu_func.h>
#include <dm.h>
* Qcom DWMAC specific glue layer
*/
+#include <common.h>
#include <asm/global_data.h>
#include <asm/gpio.h>
#include <asm/io.h>
* part in order to simplify future porting of fixes and support for other SoCs.
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dm/device_compat.h>
* Author: Yanhong Wang<yanhong.wang@starfivetech.com>
*/
+#include <common.h>
#include <asm/cache.h>
#include <asm/gpio.h>
#include <clk.h>
+++ /dev/null
-// SPDX-License-Identifier: GPL-2.0
-/*
- * Copyright (c) 2023, Intel Corporation.
- *
- * Portions based on U-Boot's dwc_eth_qos.c.
- */
-
-/*
- * This driver supports the Synopsys Designware Ethernet XGMAC (10G Ethernet
- * MAC) IP block. The IP supports multiple options for bus type, clocking/
- * reset structure, and feature list.
- *
- * The driver is written such that generic core logic is kept separate from
- * configuration-specific logic. Code that interacts with configuration-
- * specific resources is split out into separate functions to avoid polluting
- * common code. If/when this driver is enhanced to support multiple
- * configurations, the core code should be adapted to call all configuration-
- * specific functions through function pointers, with the definition of those
- * function pointers being supplied by struct udevice_id xgmac_ids[]'s .data
- * field.
- *
- * This configuration uses an AXI master/DMA bus, an AHB slave/register bus,
- * contains the DMA, MTL, and MAC sub-blocks, and supports a single RGMII PHY.
- * This configuration also has SW control over all clock and reset signals to
- * the HW block.
- */
-
-#define LOG_CATEGORY UCLASS_ETH
-
-#include <clk.h>
-#include <cpu_func.h>
-#include <dm.h>
-#include <errno.h>
-#include <eth_phy.h>
-#include <log.h>
-#include <malloc.h>
-#include <memalign.h>
-#include <miiphy.h>
-#include <net.h>
-#include <netdev.h>
-#include <phy.h>
-#include <reset.h>
-#include <wait_bit.h>
-#include <asm/cache.h>
-#include <asm/gpio.h>
-#include <asm/io.h>
-#include <linux/delay.h>
-#include "dwc_eth_xgmac.h"
-
-static void *xgmac_alloc_descs(struct xgmac_priv *xgmac, unsigned int num)
-{
- return memalign(ARCH_DMA_MINALIGN, num * xgmac->desc_size);
-}
-
-static void xgmac_free_descs(void *descs)
-{
- free(descs);
-}
-
-static struct xgmac_desc *xgmac_get_desc(struct xgmac_priv *xgmac,
- unsigned int num, bool rx)
-{
- return (rx ? xgmac->rx_descs : xgmac->tx_descs) +
- (num * xgmac->desc_size);
-}
-
-void xgmac_inval_desc_generic(void *desc)
-{
- unsigned long start;
- unsigned long end;
-
- if (!desc) {
- pr_err("%s invalid input buffer\n", __func__);
- return;
- }
-
- start = (unsigned long)desc & ~(ARCH_DMA_MINALIGN - 1);
- end = ALIGN(start + sizeof(struct xgmac_desc),
- ARCH_DMA_MINALIGN);
-
- invalidate_dcache_range(start, end);
-}
-
-void xgmac_flush_desc_generic(void *desc)
-{
- unsigned long start;
- unsigned long end;
-
- if (!desc) {
- pr_err("%s invalid input buffer\n", __func__);
- return;
- }
-
- start = (unsigned long)desc & ~(ARCH_DMA_MINALIGN - 1);
- end = ALIGN(start + sizeof(struct xgmac_desc),
- ARCH_DMA_MINALIGN);
-
- flush_dcache_range(start, end);
-}
-
-void xgmac_inval_buffer_generic(void *buf, size_t size)
-{
- unsigned long start;
- unsigned long end;
-
- if (!buf) {
- pr_err("%s invalid input buffer\n", __func__);
- return;
- }
-
- start = (unsigned long)buf & ~(ARCH_DMA_MINALIGN - 1);
- end = ALIGN((unsigned long)buf + size,
- ARCH_DMA_MINALIGN);
-
- invalidate_dcache_range(start, end);
-}
-
-void xgmac_flush_buffer_generic(void *buf, size_t size)
-{
- unsigned long start;
- unsigned long end;
-
- if (!buf) {
- pr_err("%s invalid input buffer\n", __func__);
- return;
- }
-
- start = (unsigned long)buf & ~(ARCH_DMA_MINALIGN - 1);
- end = ALIGN((unsigned long)buf + size,
- ARCH_DMA_MINALIGN);
-
- flush_dcache_range(start, end);
-}
-
-static int xgmac_mdio_wait_idle(struct xgmac_priv *xgmac)
-{
- return wait_for_bit_le32(&xgmac->mac_regs->mdio_data,
- XGMAC_MAC_MDIO_ADDRESS_SBUSY, false,
- XGMAC_TIMEOUT_100MS, true);
-}
-
-static int xgmac_mdio_read(struct mii_dev *bus, int mdio_addr, int mdio_devad,
- int mdio_reg)
-{
- struct xgmac_priv *xgmac = bus->priv;
- u32 val;
- u32 hw_addr;
- int ret;
-
- debug("%s(dev=%p, addr=0x%x, reg=%d):\n", __func__, xgmac->dev, mdio_addr,
- mdio_reg);
-
- ret = xgmac_mdio_wait_idle(xgmac);
- if (ret) {
- pr_err("MDIO not idle at entry: %d\n", ret);
- return ret;
- }
-
- /* Set clause 22 format */
- val = BIT(mdio_addr);
- writel(val, &xgmac->mac_regs->mdio_clause_22_port);
-
- hw_addr = (mdio_addr << XGMAC_MAC_MDIO_ADDRESS_PA_SHIFT) |
- (mdio_reg & XGMAC_MAC_MDIO_REG_ADDR_C22P_MASK);
-
- val = xgmac->config->config_mac_mdio <<
- XGMAC_MAC_MDIO_ADDRESS_CR_SHIFT;
-
- val |= XGMAC_MAC_MDIO_ADDRESS_SADDR |
- XGMAC_MDIO_SINGLE_CMD_ADDR_CMD_READ |
- XGMAC_MAC_MDIO_ADDRESS_SBUSY;
-
- ret = xgmac_mdio_wait_idle(xgmac);
- if (ret) {
- pr_err("MDIO not idle at entry: %d\n", ret);
- return ret;
- }
-
- writel(hw_addr, &xgmac->mac_regs->mdio_address);
- writel(val, &xgmac->mac_regs->mdio_data);
-
- ret = xgmac_mdio_wait_idle(xgmac);
- if (ret) {
- pr_err("MDIO read didn't complete: %d\n", ret);
- return ret;
- }
-
- val = readl(&xgmac->mac_regs->mdio_data);
- val &= XGMAC_MAC_MDIO_DATA_GD_MASK;
-
- debug("%s: val=0x%x\n", __func__, val);
-
- return val;
-}
-
-static int xgmac_mdio_write(struct mii_dev *bus, int mdio_addr, int mdio_devad,
- int mdio_reg, u16 mdio_val)
-{
- struct xgmac_priv *xgmac = bus->priv;
- u32 val;
- u32 hw_addr;
- int ret;
-
- debug("%s(dev=%p, addr=0x%x, reg=%d, val=0x%x):\n", __func__, xgmac->dev,
- mdio_addr, mdio_reg, mdio_val);
-
- ret = xgmac_mdio_wait_idle(xgmac);
- if (ret) {
- pr_err("MDIO not idle at entry: %d\n", ret);
- return ret;
- }
-
- /* Set clause 22 format */
- val = BIT(mdio_addr);
- writel(val, &xgmac->mac_regs->mdio_clause_22_port);
-
- hw_addr = (mdio_addr << XGMAC_MAC_MDIO_ADDRESS_PA_SHIFT) |
- (mdio_reg & XGMAC_MAC_MDIO_REG_ADDR_C22P_MASK);
-
- hw_addr |= (mdio_reg >> XGMAC_MAC_MDIO_ADDRESS_PA_SHIFT) <<
- XGMAC_MAC_MDIO_ADDRESS_DA_SHIFT;
-
- val = (xgmac->config->config_mac_mdio <<
- XGMAC_MAC_MDIO_ADDRESS_CR_SHIFT);
-
- val |= XGMAC_MAC_MDIO_ADDRESS_SADDR |
- mdio_val | XGMAC_MDIO_SINGLE_CMD_ADDR_CMD_WRITE |
- XGMAC_MAC_MDIO_ADDRESS_SBUSY;
-
- ret = xgmac_mdio_wait_idle(xgmac);
- if (ret) {
- pr_err("MDIO not idle at entry: %d\n", ret);
- return ret;
- }
-
- writel(hw_addr, &xgmac->mac_regs->mdio_address);
- writel(val, &xgmac->mac_regs->mdio_data);
-
- ret = xgmac_mdio_wait_idle(xgmac);
- if (ret) {
- pr_err("MDIO write didn't complete: %d\n", ret);
- return ret;
- }
-
- return 0;
-}
-
-static int xgmac_set_full_duplex(struct udevice *dev)
-{
- struct xgmac_priv *xgmac = dev_get_priv(dev);
-
- debug("%s(dev=%p):\n", __func__, dev);
-
- clrbits_le32(&xgmac->mac_regs->mac_extended_conf, XGMAC_MAC_EXT_CONF_HD);
-
- return 0;
-}
-
-static int xgmac_set_half_duplex(struct udevice *dev)
-{
- struct xgmac_priv *xgmac = dev_get_priv(dev);
-
- debug("%s(dev=%p):\n", __func__, dev);
-
- setbits_le32(&xgmac->mac_regs->mac_extended_conf, XGMAC_MAC_EXT_CONF_HD);
-
- /* WAR: Flush TX queue when switching to half-duplex */
- setbits_le32(&xgmac->mtl_regs->txq0_operation_mode,
- XGMAC_MTL_TXQ0_OPERATION_MODE_FTQ);
-
- return 0;
-}
-
-static int xgmac_set_gmii_speed(struct udevice *dev)
-{
- struct xgmac_priv *xgmac = dev_get_priv(dev);
- u32 val;
-
- debug("%s(dev=%p):\n", __func__, dev);
-
- val = XGMAC_MAC_CONF_SS_1G_GMII << XGMAC_MAC_CONF_SS_SHIFT;
- writel(val, &xgmac->mac_regs->tx_configuration);
-
- return 0;
-}
-
-static int xgmac_set_mii_speed_100(struct udevice *dev)
-{
- struct xgmac_priv *xgmac = dev_get_priv(dev);
- u32 val;
-
- debug("%s(dev=%p):\n", __func__, dev);
-
- val = XGMAC_MAC_CONF_SS_100M_MII << XGMAC_MAC_CONF_SS_SHIFT;
- writel(val, &xgmac->mac_regs->tx_configuration);
-
- return 0;
-}
-
-static int xgmac_set_mii_speed_10(struct udevice *dev)
-{
- struct xgmac_priv *xgmac = dev_get_priv(dev);
- u32 val;
-
- debug("%s(dev=%p):\n", __func__, dev);
-
- val = XGMAC_MAC_CONF_SS_2_10M_MII << XGMAC_MAC_CONF_SS_SHIFT;
- writel(val, &xgmac->mac_regs->tx_configuration);
-
- return 0;
-}
-
-static int xgmac_adjust_link(struct udevice *dev)
-{
- struct xgmac_priv *xgmac = dev_get_priv(dev);
- int ret;
- bool en_calibration;
-
- debug("%s(dev=%p):\n", __func__, dev);
-
- if (xgmac->phy->duplex)
- ret = xgmac_set_full_duplex(dev);
- else
- ret = xgmac_set_half_duplex(dev);
- if (ret < 0) {
- pr_err("xgmac_set_*_duplex() failed: %d\n", ret);
- return ret;
- }
-
- switch (xgmac->phy->speed) {
- case SPEED_1000:
- en_calibration = true;
- ret = xgmac_set_gmii_speed(dev);
- break;
- case SPEED_100:
- en_calibration = true;
- ret = xgmac_set_mii_speed_100(dev);
- break;
- case SPEED_10:
- en_calibration = false;
- ret = xgmac_set_mii_speed_10(dev);
- break;
- default:
- pr_err("invalid speed %d\n", xgmac->phy->speed);
- return -EINVAL;
- }
- if (ret < 0) {
- pr_err("xgmac_set_*mii_speed*() failed: %d\n", ret);
- return ret;
- }
-
- if (en_calibration) {
- ret = xgmac->config->ops->xgmac_calibrate_pads(dev);
- if (ret < 0) {
- pr_err("xgmac_calibrate_pads() failed: %d\n",
- ret);
- return ret;
- }
- } else {
- ret = xgmac->config->ops->xgmac_disable_calibration(dev);
- if (ret < 0) {
- pr_err("xgmac_disable_calibration() failed: %d\n",
- ret);
- return ret;
- }
- }
-
- return 0;
-}
-
-static int xgmac_write_hwaddr(struct udevice *dev)
-{
- struct eth_pdata *plat = dev_get_plat(dev);
- struct xgmac_priv *xgmac = dev_get_priv(dev);
- u32 val;
-
- /*
- * This function may be called before start() or after stop(). At that
- * time, on at least some configurations of the XGMAC HW, all clocks to
- * the XGMAC HW block will be stopped, and a reset signal applied. If
- * any register access is attempted in this state, bus timeouts or CPU
- * hangs may occur. This check prevents that.
- *
- * A simple solution to this problem would be to not implement
- * write_hwaddr(), since start() always writes the MAC address into HW
- * anyway. However, it is desirable to implement write_hwaddr() to
- * support the case of SW that runs subsequent to U-Boot which expects
- * the MAC address to already be programmed into the XGMAC registers,
- * which must happen irrespective of whether the U-Boot user (or
- * scripts) actually made use of the XGMAC device, and hence
- * irrespective of whether start() was ever called.
- *
- */
- if (!xgmac->config->reg_access_always_ok && !xgmac->reg_access_ok)
- return 0;
-
- /* Update the MAC address */
- val = (plat->enetaddr[5] << 8) |
- (plat->enetaddr[4]);
- writel(val, &xgmac->mac_regs->address0_high);
- val = (plat->enetaddr[3] << 24) |
- (plat->enetaddr[2] << 16) |
- (plat->enetaddr[1] << 8) |
- (plat->enetaddr[0]);
- writel(val, &xgmac->mac_regs->address0_low);
- return 0;
-}
-
-static int xgmac_read_rom_hwaddr(struct udevice *dev)
-{
- struct eth_pdata *pdata = dev_get_plat(dev);
- struct xgmac_priv *xgmac = dev_get_priv(dev);
- int ret;
-
- ret = xgmac->config->ops->xgmac_get_enetaddr(dev);
- if (ret < 0)
- return ret;
-
- return !is_valid_ethaddr(pdata->enetaddr);
-}
-
-static int xgmac_get_phy_addr(struct xgmac_priv *priv, struct udevice *dev)
-{
- struct ofnode_phandle_args phandle_args;
- int reg;
-
- if (dev_read_phandle_with_args(dev, "phy-handle", NULL, 0, 0,
- &phandle_args)) {
- debug("Failed to find phy-handle");
- return -ENODEV;
- }
-
- priv->phy_of_node = phandle_args.node;
-
- reg = ofnode_read_u32_default(phandle_args.node, "reg", 0);
-
- return reg;
-}
-
-static int xgmac_start(struct udevice *dev)
-{
- struct xgmac_priv *xgmac = dev_get_priv(dev);
- int ret, i;
- u32 val, tx_fifo_sz, rx_fifo_sz, tqs, rqs, pbl;
- ulong last_rx_desc;
- ulong desc_pad;
-
- struct xgmac_desc *tx_desc = NULL;
- struct xgmac_desc *rx_desc = NULL;
- int addr = -1;
-
- debug("%s(dev=%p):\n", __func__, dev);
-
- xgmac->tx_desc_idx = 0;
- xgmac->rx_desc_idx = 0;
-
- ret = xgmac->config->ops->xgmac_start_resets(dev);
- if (ret < 0) {
- pr_err("xgmac_start_resets() failed: %d\n", ret);
- goto err;
- }
-
- xgmac->reg_access_ok = true;
-
- ret = wait_for_bit_le32(&xgmac->dma_regs->mode,
- XGMAC_DMA_MODE_SWR, false,
- xgmac->config->swr_wait, false);
- if (ret) {
- pr_err("XGMAC_DMA_MODE_SWR stuck: %d\n", ret);
- goto err_stop_resets;
- }
-
- ret = xgmac->config->ops->xgmac_calibrate_pads(dev);
- if (ret < 0) {
- pr_err("xgmac_calibrate_pads() failed: %d\n", ret);
- goto err_stop_resets;
- }
-
- /*
- * if PHY was already connected and configured,
- * don't need to reconnect/reconfigure again
- */
- if (!xgmac->phy) {
- addr = xgmac_get_phy_addr(xgmac, dev);
- xgmac->phy = phy_connect(xgmac->mii, addr, dev,
- xgmac->config->interface(dev));
- if (!xgmac->phy) {
- pr_err("phy_connect() failed\n");
- goto err_stop_resets;
- }
-
- if (xgmac->max_speed) {
- ret = phy_set_supported(xgmac->phy, xgmac->max_speed);
- if (ret) {
- pr_err("phy_set_supported() failed: %d\n", ret);
- goto err_shutdown_phy;
- }
- }
-
- xgmac->phy->node = xgmac->phy_of_node;
- ret = phy_config(xgmac->phy);
- if (ret < 0) {
- pr_err("phy_config() failed: %d\n", ret);
- goto err_shutdown_phy;
- }
- }
-
- ret = phy_startup(xgmac->phy);
- if (ret < 0) {
- pr_err("phy_startup() failed: %d\n", ret);
- goto err_shutdown_phy;
- }
-
- if (!xgmac->phy->link) {
- pr_err("No link\n");
- goto err_shutdown_phy;
- }
-
- ret = xgmac_adjust_link(dev);
- if (ret < 0) {
- pr_err("xgmac_adjust_link() failed: %d\n", ret);
- goto err_shutdown_phy;
- }
-
- /* Configure MTL */
-
- /* Enable Store and Forward mode for TX */
- /* Program Tx operating mode */
- setbits_le32(&xgmac->mtl_regs->txq0_operation_mode,
- XGMAC_MTL_TXQ0_OPERATION_MODE_TSF |
- (XGMAC_MTL_TXQ0_OPERATION_MODE_TXQEN_ENABLED <<
- XGMAC_MTL_TXQ0_OPERATION_MODE_TXQEN_SHIFT));
-
- /* Transmit Queue weight */
- writel(0x10, &xgmac->mtl_regs->txq0_quantum_weight);
-
- /* Enable Store and Forward mode for RX, since no jumbo frame */
- setbits_le32(&xgmac->mtl_regs->rxq0_operation_mode,
- XGMAC_MTL_RXQ0_OPERATION_MODE_RSF);
-
- /* Transmit/Receive queue fifo size; use all RAM for 1 queue */
- val = readl(&xgmac->mac_regs->hw_feature1);
- tx_fifo_sz = (val >> XGMAC_MAC_HW_FEATURE1_TXFIFOSIZE_SHIFT) &
- XGMAC_MAC_HW_FEATURE1_TXFIFOSIZE_MASK;
- rx_fifo_sz = (val >> XGMAC_MAC_HW_FEATURE1_RXFIFOSIZE_SHIFT) &
- XGMAC_MAC_HW_FEATURE1_RXFIFOSIZE_MASK;
-
- /*
- * r/tx_fifo_sz is encoded as log2(n / 128). Undo that by shifting.
- * r/tqs is encoded as (n / 256) - 1.
- */
- tqs = (128 << tx_fifo_sz) / 256 - 1;
- rqs = (128 << rx_fifo_sz) / 256 - 1;
-
- clrsetbits_le32(&xgmac->mtl_regs->txq0_operation_mode,
- XGMAC_MTL_TXQ0_OPERATION_MODE_TQS_MASK <<
- XGMAC_MTL_TXQ0_OPERATION_MODE_TQS_SHIFT,
- tqs << XGMAC_MTL_TXQ0_OPERATION_MODE_TQS_SHIFT);
- clrsetbits_le32(&xgmac->mtl_regs->rxq0_operation_mode,
- XGMAC_MTL_RXQ0_OPERATION_MODE_RQS_MASK <<
- XGMAC_MTL_RXQ0_OPERATION_MODE_RQS_SHIFT,
- rqs << XGMAC_MTL_RXQ0_OPERATION_MODE_RQS_SHIFT);
-
- setbits_le32(&xgmac->mtl_regs->rxq0_operation_mode,
- XGMAC_MTL_RXQ0_OPERATION_MODE_EHFC);
-
- /* Configure MAC */
- clrsetbits_le32(&xgmac->mac_regs->rxq_ctrl0,
- XGMAC_MAC_RXQ_CTRL0_RXQ0EN_MASK <<
- XGMAC_MAC_RXQ_CTRL0_RXQ0EN_SHIFT,
- xgmac->config->config_mac <<
- XGMAC_MAC_RXQ_CTRL0_RXQ0EN_SHIFT);
-
- /* Multicast and Broadcast Queue Enable */
- setbits_le32(&xgmac->mac_regs->rxq_ctrl1,
- XGMAC_MAC_RXQ_CTRL1_MCBCQEN);
-
- /* enable promise mode and receive all mode */
- setbits_le32(&xgmac->mac_regs->mac_packet_filter,
- XGMAC_MAC_PACKET_FILTER_RA |
- XGMAC_MAC_PACKET_FILTER_PR);
-
- /* Set TX flow control parameters */
- /* Set Pause Time */
- setbits_le32(&xgmac->mac_regs->q0_tx_flow_ctrl,
- XGMAC_MAC_Q0_TX_FLOW_CTRL_PT_MASK <<
- XGMAC_MAC_Q0_TX_FLOW_CTRL_PT_SHIFT);
-
- /* Assign priority for RX flow control */
- clrbits_le32(&xgmac->mac_regs->rxq_ctrl2,
- XGMAC_MAC_RXQ_CTRL2_PSRQ0_MASK <<
- XGMAC_MAC_RXQ_CTRL2_PSRQ0_SHIFT);
-
- /* Enable flow control */
- setbits_le32(&xgmac->mac_regs->q0_tx_flow_ctrl,
- XGMAC_MAC_Q0_TX_FLOW_CTRL_TFE);
- setbits_le32(&xgmac->mac_regs->rx_flow_ctrl,
- XGMAC_MAC_RX_FLOW_CTRL_RFE);
-
- clrbits_le32(&xgmac->mac_regs->tx_configuration,
- XGMAC_MAC_CONF_JD);
-
- clrbits_le32(&xgmac->mac_regs->rx_configuration,
- XGMAC_MAC_CONF_JE |
- XGMAC_MAC_CONF_GPSLCE |
- XGMAC_MAC_CONF_WD);
-
- setbits_le32(&xgmac->mac_regs->rx_configuration,
- XGMAC_MAC_CONF_ACS |
- XGMAC_MAC_CONF_CST);
-
- ret = xgmac_write_hwaddr(dev);
- if (ret < 0) {
- pr_err("xgmac_write_hwaddr() failed: %d\n", ret);
- goto err;
- }
-
- /* Configure DMA */
- clrsetbits_le32(&xgmac->dma_regs->sysbus_mode,
- XGMAC_DMA_SYSBUS_MODE_AAL,
- XGMAC_DMA_SYSBUS_MODE_EAME |
- XGMAC_DMA_SYSBUS_MODE_UNDEF);
-
- /* Enable OSP mode */
- setbits_le32(&xgmac->dma_regs->ch0_tx_control,
- XGMAC_DMA_CH0_TX_CONTROL_OSP);
-
- /* RX buffer size. Must be a multiple of bus width */
- clrsetbits_le32(&xgmac->dma_regs->ch0_rx_control,
- XGMAC_DMA_CH0_RX_CONTROL_RBSZ_MASK <<
- XGMAC_DMA_CH0_RX_CONTROL_RBSZ_SHIFT,
- XGMAC_MAX_PACKET_SIZE <<
- XGMAC_DMA_CH0_RX_CONTROL_RBSZ_SHIFT);
-
- desc_pad = (xgmac->desc_size - sizeof(struct xgmac_desc)) /
- xgmac->config->axi_bus_width;
-
- setbits_le32(&xgmac->dma_regs->ch0_control,
- XGMAC_DMA_CH0_CONTROL_PBLX8 |
- (desc_pad << XGMAC_DMA_CH0_CONTROL_DSL_SHIFT));
-
- /*
- * Burst length must be < 1/2 FIFO size.
- * FIFO size in tqs is encoded as (n / 256) - 1.
- * Each burst is n * 8 (PBLX8) * 16 (AXI width) == 128 bytes.
- * Half of n * 256 is n * 128, so pbl == tqs, modulo the -1.
- */
- pbl = tqs + 1;
- if (pbl > 32)
- pbl = 32;
-
- clrsetbits_le32(&xgmac->dma_regs->ch0_tx_control,
- XGMAC_DMA_CH0_TX_CONTROL_TXPBL_MASK <<
- XGMAC_DMA_CH0_TX_CONTROL_TXPBL_SHIFT,
- pbl << XGMAC_DMA_CH0_TX_CONTROL_TXPBL_SHIFT);
-
- clrsetbits_le32(&xgmac->dma_regs->ch0_rx_control,
- XGMAC_DMA_CH0_RX_CONTROL_RXPBL_MASK <<
- XGMAC_DMA_CH0_RX_CONTROL_RXPBL_SHIFT,
- 8 << XGMAC_DMA_CH0_RX_CONTROL_RXPBL_SHIFT);
-
- /* DMA performance configuration */
- val = (XGMAC_DMA_SYSBUS_MODE_RD_OSR_LMT_MASK <<
- XGMAC_DMA_SYSBUS_MODE_RD_OSR_LMT_SHIFT) |
- (XGMAC_DMA_SYSBUS_MODE_WR_OSR_LMT_MASK <<
- XGMAC_DMA_SYSBUS_MODE_WR_OSR_LMT_SHIFT) |
- XGMAC_DMA_SYSBUS_MODE_EAME |
- XGMAC_DMA_SYSBUS_MODE_BLEN16 |
- XGMAC_DMA_SYSBUS_MODE_BLEN8 |
- XGMAC_DMA_SYSBUS_MODE_BLEN4 |
- XGMAC_DMA_SYSBUS_MODE_BLEN32;
-
- writel(val, &xgmac->dma_regs->sysbus_mode);
-
- /* Set up descriptors */
-
- memset(xgmac->tx_descs, 0, xgmac->desc_size * XGMAC_DESCRIPTORS_TX);
- memset(xgmac->rx_descs, 0, xgmac->desc_size * XGMAC_DESCRIPTORS_RX);
-
- for (i = 0; i < XGMAC_DESCRIPTORS_TX; i++) {
- tx_desc = (struct xgmac_desc *)xgmac_get_desc(xgmac, i, false);
-
- xgmac->config->ops->xgmac_flush_desc(tx_desc);
- }
-
- for (i = 0; i < XGMAC_DESCRIPTORS_RX; i++) {
- rx_desc = (struct xgmac_desc *)xgmac_get_desc(xgmac, i, true);
-
- rx_desc->des0 = (uintptr_t)(xgmac->rx_dma_buf +
- (i * XGMAC_MAX_PACKET_SIZE));
- rx_desc->des3 = XGMAC_DESC3_OWN;
- /* Flush the cache to the memory */
- mb();
- xgmac->config->ops->xgmac_flush_desc(rx_desc);
- xgmac->config->ops->xgmac_inval_buffer(xgmac->rx_dma_buf +
- (i * XGMAC_MAX_PACKET_SIZE),
- XGMAC_MAX_PACKET_SIZE);
- }
-
- writel(0, &xgmac->dma_regs->ch0_txdesc_list_haddress);
- writel((ulong)xgmac_get_desc(xgmac, 0, false),
- &xgmac->dma_regs->ch0_txdesc_list_address);
- writel(XGMAC_DESCRIPTORS_TX - 1,
- &xgmac->dma_regs->ch0_txdesc_ring_length);
- writel(0, &xgmac->dma_regs->ch0_rxdesc_list_haddress);
- writel((ulong)xgmac_get_desc(xgmac, 0, true),
- &xgmac->dma_regs->ch0_rxdesc_list_address);
- writel(XGMAC_DESCRIPTORS_RX - 1,
- &xgmac->dma_regs->ch0_rxdesc_ring_length);
-
- /* Enable everything */
- setbits_le32(&xgmac->dma_regs->ch0_tx_control,
- XGMAC_DMA_CH0_TX_CONTROL_ST);
- setbits_le32(&xgmac->dma_regs->ch0_rx_control,
- XGMAC_DMA_CH0_RX_CONTROL_SR);
- setbits_le32(&xgmac->mac_regs->tx_configuration,
- XGMAC_MAC_CONF_TE);
- setbits_le32(&xgmac->mac_regs->rx_configuration,
- XGMAC_MAC_CONF_RE);
-
- /* TX tail pointer not written until we need to TX a packet */
- /*
- * Point RX tail pointer at last descriptor. Ideally, we'd point at the
- * first descriptor, implying all descriptors were available. However,
- * that's not distinguishable from none of the descriptors being
- * available.
- */
- last_rx_desc = (ulong)xgmac_get_desc(xgmac, XGMAC_DESCRIPTORS_RX - 1, true);
- writel(last_rx_desc, &xgmac->dma_regs->ch0_rxdesc_tail_pointer);
-
- xgmac->started = true;
-
- debug("%s: OK\n", __func__);
- return 0;
-
-err_shutdown_phy:
- phy_shutdown(xgmac->phy);
-err_stop_resets:
- xgmac->config->ops->xgmac_stop_resets(dev);
-err:
- pr_err("FAILED: %d\n", ret);
- return ret;
-}
-
-static void xgmac_stop(struct udevice *dev)
-{
- struct xgmac_priv *xgmac = dev_get_priv(dev);
- unsigned long start_time;
- u32 val;
- u32 trcsts;
- u32 txqsts;
- u32 prxq;
- u32 rxqsts;
-
- debug("%s(dev=%p):\n", __func__, dev);
-
- if (!xgmac->started)
- return;
- xgmac->started = false;
- xgmac->reg_access_ok = false;
-
- /* Disable TX DMA */
- clrbits_le32(&xgmac->dma_regs->ch0_tx_control,
- XGMAC_DMA_CH0_TX_CONTROL_ST);
-
- /* Wait for TX all packets to drain out of MTL */
- start_time = get_timer(0);
-
- while (get_timer(start_time) < XGMAC_TIMEOUT_100MS) {
- val = readl(&xgmac->mtl_regs->txq0_debug);
-
- trcsts = (val >> XGMAC_MTL_TXQ0_DEBUG_TRCSTS_SHIFT) &
- XGMAC_MTL_TXQ0_DEBUG_TRCSTS_MASK;
-
- txqsts = val & XGMAC_MTL_TXQ0_DEBUG_TXQSTS;
-
- if (trcsts != XGMAC_MTL_TXQ0_DEBUG_TRCSTS_READ_STATE && !txqsts)
- break;
- }
-
- /* Turn off MAC TX and RX */
- clrbits_le32(&xgmac->mac_regs->tx_configuration,
- XGMAC_MAC_CONF_RE);
- clrbits_le32(&xgmac->mac_regs->rx_configuration,
- XGMAC_MAC_CONF_RE);
-
- /* Wait for all RX packets to drain out of MTL */
- start_time = get_timer(0);
-
- while (get_timer(start_time) < XGMAC_TIMEOUT_100MS) {
- val = readl(&xgmac->mtl_regs->rxq0_debug);
-
- prxq = (val >> XGMAC_MTL_RXQ0_DEBUG_PRXQ_SHIFT) &
- XGMAC_MTL_RXQ0_DEBUG_PRXQ_MASK;
-
- rxqsts = (val >> XGMAC_MTL_RXQ0_DEBUG_RXQSTS_SHIFT) &
- XGMAC_MTL_RXQ0_DEBUG_RXQSTS_MASK;
-
- if (!prxq && !rxqsts)
- break;
- }
-
- /* Turn off RX DMA */
- clrbits_le32(&xgmac->dma_regs->ch0_rx_control,
- XGMAC_DMA_CH0_RX_CONTROL_SR);
-
- if (xgmac->phy)
- phy_shutdown(xgmac->phy);
-
- xgmac->config->ops->xgmac_stop_resets(dev);
-
- debug("%s: OK\n", __func__);
-}
-
-static int xgmac_send(struct udevice *dev, void *packet, int length)
-{
- struct xgmac_priv *xgmac = dev_get_priv(dev);
- struct xgmac_desc *tx_desc;
- unsigned long start_time;
-
- debug("%s(dev=%p, packet=%p, length=%d):\n", __func__, dev, packet,
- length);
-
- memcpy(xgmac->tx_dma_buf, packet, length);
- xgmac->config->ops->xgmac_flush_buffer(xgmac->tx_dma_buf, length);
-
- tx_desc = xgmac_get_desc(xgmac, xgmac->tx_desc_idx, false);
- xgmac->tx_desc_idx++;
- xgmac->tx_desc_idx %= XGMAC_DESCRIPTORS_TX;
-
- tx_desc->des0 = (ulong)xgmac->tx_dma_buf;
- tx_desc->des1 = 0;
- tx_desc->des2 = length;
- /*
- * Make sure that if HW sees the _OWN write below, it will see all the
- * writes to the rest of the descriptor too.
- */
- mb();
- tx_desc->des3 = XGMAC_DESC3_OWN | XGMAC_DESC3_FD | XGMAC_DESC3_LD | length;
- xgmac->config->ops->xgmac_flush_desc(tx_desc);
-
- writel((ulong)xgmac_get_desc(xgmac, xgmac->tx_desc_idx, false),
- &xgmac->dma_regs->ch0_txdesc_tail_pointer);
-
- start_time = get_timer(0);
-
- while (get_timer(start_time) < XGMAC_TIMEOUT_100MS) {
- xgmac->config->ops->xgmac_inval_desc(tx_desc);
- if (!(readl(&tx_desc->des3) & XGMAC_DESC3_OWN))
- return 0;
- }
- debug("%s: TX timeout\n", __func__);
-
- return -ETIMEDOUT;
-}
-
-static int xgmac_recv(struct udevice *dev, int flags, uchar **packetp)
-{
- struct xgmac_priv *xgmac = dev_get_priv(dev);
- struct xgmac_desc *rx_desc;
- int length;
-
- debug("%s(dev=%p, flags=0x%x):\n", __func__, dev, flags);
-
- rx_desc = xgmac_get_desc(xgmac, xgmac->rx_desc_idx, true);
- xgmac->config->ops->xgmac_inval_desc(rx_desc);
- if (rx_desc->des3 & XGMAC_DESC3_OWN) {
- debug("%s: RX packet not available\n", __func__);
- return -EAGAIN;
- }
-
- *packetp = xgmac->rx_dma_buf +
- (xgmac->rx_desc_idx * XGMAC_MAX_PACKET_SIZE);
- length = rx_desc->des3 & XGMAC_RDES3_PKT_LENGTH_MASK;
- debug("%s: *packetp=%p, length=%d\n", __func__, *packetp, length);
-
- xgmac->config->ops->xgmac_inval_buffer(*packetp, length);
-
- return length;
-}
-
-static int xgmac_free_pkt(struct udevice *dev, uchar *packet, int length)
-{
- struct xgmac_priv *xgmac = dev_get_priv(dev);
- u32 idx, idx_mask = xgmac->desc_per_cacheline - 1;
- uchar *packet_expected;
- struct xgmac_desc *rx_desc;
-
- debug("%s(packet=%p, length=%d)\n", __func__, packet, length);
-
- packet_expected = xgmac->rx_dma_buf +
- (xgmac->rx_desc_idx * XGMAC_MAX_PACKET_SIZE);
- if (packet != packet_expected) {
- debug("%s: Unexpected packet (expected %p)\n", __func__,
- packet_expected);
- return -EINVAL;
- }
-
- xgmac->config->ops->xgmac_inval_buffer(packet, length);
-
- if ((xgmac->rx_desc_idx & idx_mask) == idx_mask) {
- for (idx = xgmac->rx_desc_idx - idx_mask;
- idx <= xgmac->rx_desc_idx;
- idx++) {
- rx_desc = xgmac_get_desc(xgmac, idx, true);
- rx_desc->des0 = 0;
- /* Flush the cache to the memory */
- mb();
- xgmac->config->ops->xgmac_flush_desc(rx_desc);
- xgmac->config->ops->xgmac_inval_buffer(packet, length);
- rx_desc->des0 = (u32)(ulong)(xgmac->rx_dma_buf +
- (idx * XGMAC_MAX_PACKET_SIZE));
- rx_desc->des1 = 0;
- rx_desc->des2 = 0;
- /*
- * Make sure that if HW sees the _OWN write below,
- * it will see all the writes to the rest of the
- * descriptor too.
- */
- mb();
- rx_desc->des3 = XGMAC_DESC3_OWN;
- xgmac->config->ops->xgmac_flush_desc(rx_desc);
- }
- writel((ulong)rx_desc, &xgmac->dma_regs->ch0_rxdesc_tail_pointer);
- }
-
- xgmac->rx_desc_idx++;
- xgmac->rx_desc_idx %= XGMAC_DESCRIPTORS_RX;
-
- return 0;
-}
-
-static int xgmac_probe_resources_core(struct udevice *dev)
-{
- struct xgmac_priv *xgmac = dev_get_priv(dev);
- unsigned int desc_step;
- int ret;
-
- debug("%s(dev=%p):\n", __func__, dev);
-
- /* Maximum distance between neighboring descriptors, in Bytes. */
- desc_step = sizeof(struct xgmac_desc);
-
- if (desc_step < ARCH_DMA_MINALIGN) {
- /*
- * The hardware implementation cannot place one descriptor
- * per cacheline, it is necessary to place multiple descriptors
- * per cacheline in memory and do cache management carefully.
- */
- xgmac->desc_size = BIT(fls(desc_step) - 1);
- } else {
- xgmac->desc_size = ALIGN(sizeof(struct xgmac_desc),
- (unsigned int)ARCH_DMA_MINALIGN);
- }
- xgmac->desc_per_cacheline = ARCH_DMA_MINALIGN / xgmac->desc_size;
-
- xgmac->tx_descs = xgmac_alloc_descs(xgmac, XGMAC_DESCRIPTORS_TX);
- if (!xgmac->tx_descs) {
- debug("%s: xgmac_alloc_descs(tx) failed\n", __func__);
- ret = -ENOMEM;
- goto err;
- }
-
- xgmac->rx_descs = xgmac_alloc_descs(xgmac, XGMAC_DESCRIPTORS_RX);
- if (!xgmac->rx_descs) {
- debug("%s: xgmac_alloc_descs(rx) failed\n", __func__);
- ret = -ENOMEM;
- goto err_free_tx_descs;
- }
-
- xgmac->tx_dma_buf = memalign(XGMAC_BUFFER_ALIGN, XGMAC_MAX_PACKET_SIZE);
- if (!xgmac->tx_dma_buf) {
- debug("%s: memalign(tx_dma_buf) failed\n", __func__);
- ret = -ENOMEM;
- goto err_free_descs;
- }
- debug("%s: tx_dma_buf=%p\n", __func__, xgmac->tx_dma_buf);
-
- xgmac->rx_dma_buf = memalign(XGMAC_BUFFER_ALIGN, XGMAC_RX_BUFFER_SIZE);
- if (!xgmac->rx_dma_buf) {
- debug("%s: memalign(rx_dma_buf) failed\n", __func__);
- ret = -ENOMEM;
- goto err_free_tx_dma_buf;
- }
- debug("%s: rx_dma_buf=%p\n", __func__, xgmac->rx_dma_buf);
-
- xgmac->rx_pkt = malloc(XGMAC_MAX_PACKET_SIZE);
- if (!xgmac->rx_pkt) {
- debug("%s: malloc(rx_pkt) failed\n", __func__);
- ret = -ENOMEM;
- goto err_free_rx_dma_buf;
- }
- debug("%s: rx_pkt=%p\n", __func__, xgmac->rx_pkt);
-
- xgmac->config->ops->xgmac_inval_buffer(xgmac->rx_dma_buf,
- XGMAC_MAX_PACKET_SIZE * XGMAC_DESCRIPTORS_RX);
-
- debug("%s: OK\n", __func__);
- return 0;
-
-err_free_rx_dma_buf:
- free(xgmac->rx_dma_buf);
-err_free_tx_dma_buf:
- free(xgmac->tx_dma_buf);
-err_free_descs:
- xgmac_free_descs(xgmac->rx_descs);
-err_free_tx_descs:
- xgmac_free_descs(xgmac->tx_descs);
-err:
-
- debug("%s: returns %d\n", __func__, ret);
- return ret;
-}
-
-static int xgmac_remove_resources_core(struct udevice *dev)
-{
- struct xgmac_priv *xgmac = dev_get_priv(dev);
-
- debug("%s(dev=%p):\n", __func__, dev);
-
- free(xgmac->rx_pkt);
- free(xgmac->rx_dma_buf);
- free(xgmac->tx_dma_buf);
- xgmac_free_descs(xgmac->rx_descs);
- xgmac_free_descs(xgmac->tx_descs);
-
- debug("%s: OK\n", __func__);
- return 0;
-}
-
-/* board-specific Ethernet Interface initializations. */
-__weak int board_interface_eth_init(struct udevice *dev,
- phy_interface_t interface_type)
-{
- return 0;
-}
-
-static int xgmac_probe(struct udevice *dev)
-{
- struct xgmac_priv *xgmac = dev_get_priv(dev);
- int ret;
-
- debug("%s(dev=%p):\n", __func__, dev);
-
- xgmac->dev = dev;
- xgmac->config = (void *)dev_get_driver_data(dev);
-
- xgmac->regs = dev_read_addr(dev);
- if (xgmac->regs == FDT_ADDR_T_NONE) {
- pr_err("dev_read_addr() failed\n");
- return -ENODEV;
- }
- xgmac->mac_regs = (void *)(xgmac->regs + XGMAC_MAC_REGS_BASE);
- xgmac->mtl_regs = (void *)(xgmac->regs + XGMAC_MTL_REGS_BASE);
- xgmac->dma_regs = (void *)(xgmac->regs + XGMAC_DMA_REGS_BASE);
-
- xgmac->max_speed = dev_read_u32_default(dev, "max-speed", 0);
-
- ret = xgmac_probe_resources_core(dev);
- if (ret < 0) {
- pr_err("xgmac_probe_resources_core() failed: %d\n", ret);
- return ret;
- }
-
- ret = xgmac->config->ops->xgmac_probe_resources(dev);
- if (ret < 0) {
- pr_err("xgmac_probe_resources() failed: %d\n", ret);
- goto err_remove_resources_core;
- }
-
- ret = xgmac->config->ops->xgmac_start_clks(dev);
- if (ret < 0) {
- pr_err("xgmac_start_clks() failed: %d\n", ret);
- return ret;
- }
-
- if (IS_ENABLED(CONFIG_DM_ETH_PHY))
- xgmac->mii = eth_phy_get_mdio_bus(dev);
-
- if (!xgmac->mii) {
- xgmac->mii = mdio_alloc();
- if (!xgmac->mii) {
- pr_err("mdio_alloc() failed\n");
- ret = -ENOMEM;
- goto err_stop_clks;
- }
- xgmac->mii->read = xgmac_mdio_read;
- xgmac->mii->write = xgmac_mdio_write;
- xgmac->mii->priv = xgmac;
- strcpy(xgmac->mii->name, dev->name);
-
- ret = mdio_register(xgmac->mii);
- if (ret < 0) {
- pr_err("mdio_register() failed: %d\n", ret);
- goto err_free_mdio;
- }
- }
-
- if (IS_ENABLED(CONFIG_DM_ETH_PHY))
- eth_phy_set_mdio_bus(dev, xgmac->mii);
-
- debug("%s: OK\n", __func__);
- return 0;
-
-err_free_mdio:
- mdio_free(xgmac->mii);
-err_stop_clks:
- xgmac->config->ops->xgmac_stop_clks(dev);
-err_remove_resources_core:
- xgmac_remove_resources_core(dev);
-
- debug("%s: returns %d\n", __func__, ret);
- return ret;
-}
-
-static int xgmac_remove(struct udevice *dev)
-{
- struct xgmac_priv *xgmac = dev_get_priv(dev);
-
- debug("%s(dev=%p):\n", __func__, dev);
-
- mdio_unregister(xgmac->mii);
- mdio_free(xgmac->mii);
- xgmac->config->ops->xgmac_stop_clks(dev);
- xgmac->config->ops->xgmac_remove_resources(dev);
-
- xgmac_remove_resources_core(dev);
-
- debug("%s: OK\n", __func__);
- return 0;
-}
-
-int xgmac_null_ops(struct udevice *dev)
-{
- return 0;
-}
-
-static const struct eth_ops xgmac_ops = {
- .start = xgmac_start,
- .stop = xgmac_stop,
- .send = xgmac_send,
- .recv = xgmac_recv,
- .free_pkt = xgmac_free_pkt,
- .write_hwaddr = xgmac_write_hwaddr,
- .read_rom_hwaddr = xgmac_read_rom_hwaddr,
-};
-
-static const struct udevice_id xgmac_ids[] = {
- {
- .compatible = "intel,socfpga-dwxgmac",
- .data = (ulong)&xgmac_socfpga_config
- },
- { }
-};
-
-U_BOOT_DRIVER(eth_xgmac) = {
- .name = "eth_xgmac",
- .id = UCLASS_ETH,
- .of_match = of_match_ptr(xgmac_ids),
- .probe = xgmac_probe,
- .remove = xgmac_remove,
- .ops = &xgmac_ops,
- .priv_auto = sizeof(struct xgmac_priv),
- .plat_auto = sizeof(struct eth_pdata),
-};
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Copyright 2023 Intel Coporation.
- */
-
-#include <phy_interface.h>
-#include <linux/bitops.h>
-
-/* Core registers */
-
-#define XGMAC_MAC_REGS_BASE 0x000
-
-struct xgmac_mac_regs {
- u32 tx_configuration; /* 0x000 */
- u32 rx_configuration; /* 0x004 */
- u32 mac_packet_filter; /* 0x008 */
- u32 unused_00c[(0x070 - 0x00c) / 4]; /* 0x00c */
- u32 q0_tx_flow_ctrl; /* 0x070 */
- u32 unused_070[(0x090 - 0x074) / 4]; /* 0x074 */
- u32 rx_flow_ctrl; /* 0x090 */
- u32 unused_094[(0x0a0 - 0x094) / 4]; /* 0x094 */
- u32 rxq_ctrl0; /* 0x0a0 */
- u32 rxq_ctrl1; /* 0x0a4 */
- u32 rxq_ctrl2; /* 0x0a8 */
- u32 unused_0ac[(0x0dc - 0x0ac) / 4]; /* 0x0ac */
- u32 us_tic_counter; /* 0x0dc */
- u32 unused_0e0[(0x11c - 0x0e0) / 4]; /* 0x0e0 */
- u32 hw_feature0; /* 0x11c */
- u32 hw_feature1; /* 0x120 */
- u32 hw_feature2; /* 0x124 */
- u32 hw_feature3; /* 0x128 */
- u32 hw_feature4; /* 0x12c */
- u32 unused_130[(0x140 - 0x130) / 4]; /* 0x130 */
- u32 mac_extended_conf; /* 0x140 */
- u32 unused_144[(0x200 - 0x144) / 4]; /* 0x144 */
- u32 mdio_address; /* 0x200 */
- u32 mdio_data; /* 0x204 */
- u32 mdio_cont_write_addr; /* 0x208 */
- u32 mdio_cont_write_data; /* 0x20c */
- u32 mdio_cont_scan_port_enable; /* 0x210 */
- u32 mdio_intr_status; /* 0x214 */
- u32 mdio_intr_enable; /* 0x218 */
- u32 mdio_port_cnct_dsnct_status; /* 0x21c */
- u32 mdio_clause_22_port; /* 0x220 */
- u32 unused_224[(0x300 - 0x224) / 4]; /* 0x224 */
- u32 address0_high; /* 0x300 */
- u32 address0_low; /* 0x304 */
-};
-
-#define XGMAC_TIMEOUT_100MS 100000
-#define XGMAC_MAC_CONF_SS_SHIFT 29
-#define XGMAC_MAC_CONF_SS_10G_XGMII 0
-#define XGMAC_MAC_CONF_SS_2_5G_GMII 2
-#define XGMAC_MAC_CONF_SS_1G_GMII 3
-#define XGMAC_MAC_CONF_SS_100M_MII 4
-#define XGMAC_MAC_CONF_SS_5G_XGMII 5
-#define XGMAC_MAC_CONF_SS_2_5G_XGMII 6
-#define XGMAC_MAC_CONF_SS_2_10M_MII 7
-
-#define XGMAC_MAC_CONF_JD BIT(16)
-#define XGMAC_MAC_CONF_JE BIT(8)
-#define XGMAC_MAC_CONF_WD BIT(7)
-#define XGMAC_MAC_CONF_GPSLCE BIT(6)
-#define XGMAC_MAC_CONF_CST BIT(2)
-#define XGMAC_MAC_CONF_ACS BIT(1)
-#define XGMAC_MAC_CONF_TE BIT(0)
-#define XGMAC_MAC_CONF_RE BIT(0)
-
-#define XGMAC_MAC_EXT_CONF_HD BIT(24)
-
-#define XGMAC_MAC_PACKET_FILTER_RA BIT(31)
-#define XGMAC_MAC_PACKET_FILTER_PR BIT(0)
-
-#define XGMAC_MAC_Q0_TX_FLOW_CTRL_PT_SHIFT 16
-#define XGMAC_MAC_Q0_TX_FLOW_CTRL_PT_MASK GENMASK(15, 0)
-#define XGMAC_MAC_Q0_TX_FLOW_CTRL_TFE BIT(1)
-
-#define XGMAC_MAC_RX_FLOW_CTRL_RFE BIT(0)
-#define XGMAC_MAC_RXQ_CTRL0_RXQ0EN_SHIFT 0
-#define XGMAC_MAC_RXQ_CTRL0_RXQ0EN_MASK GENMASK(1, 0)
-#define XGMAC_MAC_RXQ_CTRL0_RXQ0EN_NOT_ENABLED 0
-#define XGMAC_MAC_RXQ_CTRL0_RXQ0EN_ENABLED_DCB 2
-#define XGMAC_MAC_RXQ_CTRL0_RXQ0EN_ENABLED_AV 1
-
-#define XGMAC_MAC_RXQ_CTRL1_MCBCQEN BIT(15)
-
-#define XGMAC_MAC_RXQ_CTRL2_PSRQ0_SHIFT 0
-#define XGMAC_MAC_RXQ_CTRL2_PSRQ0_MASK GENMASK(7, 0)
-
-#define XGMAC_MAC_HW_FEATURE1_TXFIFOSIZE_SHIFT 6
-#define XGMAC_MAC_HW_FEATURE1_TXFIFOSIZE_MASK GENMASK(4, 0)
-#define XGMAC_MAC_HW_FEATURE1_RXFIFOSIZE_SHIFT 0
-#define XGMAC_MAC_HW_FEATURE1_RXFIFOSIZE_MASK GENMASK(4, 0)
-
-#define XGMAC_MDIO_SINGLE_CMD_SHIFT 16
-#define XGMAC_MDIO_SINGLE_CMD_ADDR_CMD_READ 3 << XGMAC_MDIO_SINGLE_CMD_SHIFT
-#define XGMAC_MDIO_SINGLE_CMD_ADDR_CMD_WRITE BIT(16)
-#define XGMAC_MAC_MDIO_ADDRESS_PA_SHIFT 16
-#define XGMAC_MAC_MDIO_ADDRESS_PA_MASK GENMASK(15, 0)
-#define XGMAC_MAC_MDIO_ADDRESS_DA_SHIFT 21
-#define XGMAC_MAC_MDIO_ADDRESS_CR_SHIFT 19
-#define XGMAC_MAC_MDIO_ADDRESS_CR_100_150 0
-#define XGMAC_MAC_MDIO_ADDRESS_CR_150_250 1
-#define XGMAC_MAC_MDIO_ADDRESS_CR_250_300 2
-#define XGMAC_MAC_MDIO_ADDRESS_CR_300_350 3
-#define XGMAC_MAC_MDIO_ADDRESS_CR_350_400 4
-#define XGMAC_MAC_MDIO_ADDRESS_CR_400_500 5
-#define XGMAC_MAC_MDIO_ADDRESS_SADDR BIT(18)
-#define XGMAC_MAC_MDIO_ADDRESS_SBUSY BIT(22)
-#define XGMAC_MAC_MDIO_REG_ADDR_C22P_MASK GENMASK(4, 0)
-#define XGMAC_MAC_MDIO_DATA_GD_MASK GENMASK(15, 0)
-
-/* MTL Registers */
-
-#define XGMAC_MTL_REGS_BASE 0x1000
-
-struct xgmac_mtl_regs {
- u32 mtl_operation_mode; /* 0x1000 */
- u32 unused_1004[(0x1030 - 0x1004) / 4]; /* 0x1004 */
- u32 mtl_rxq_dma_map0; /* 0x1030 */
- u32 mtl_rxq_dma_map1; /* 0x1034 */
- u32 mtl_rxq_dma_map2; /* 0x1038 */
- u32 mtl_rxq_dma_map3; /* 0x103c */
- u32 mtl_tc_prty_map0; /* 0x1040 */
- u32 mtl_tc_prty_map1; /* 0x1044 */
- u32 unused_1048[(0x1100 - 0x1048) / 4]; /* 0x1048 */
- u32 txq0_operation_mode; /* 0x1100 */
- u32 unused_1104; /* 0x1104 */
- u32 txq0_debug; /* 0x1108 */
- u32 unused_100c[(0x1118 - 0x110c) / 4]; /* 0x110c */
- u32 txq0_quantum_weight; /* 0x1118 */
- u32 unused_111c[(0x1140 - 0x111c) / 4]; /* 0x111c */
- u32 rxq0_operation_mode; /* 0x1140 */
- u32 unused_1144; /* 0x1144 */
- u32 rxq0_debug; /* 0x1148 */
-};
-
-#define XGMAC_MTL_TXQ0_OPERATION_MODE_TQS_SHIFT 16
-#define XGMAC_MTL_TXQ0_OPERATION_MODE_TQS_MASK GENMASK(8, 0)
-#define XGMAC_MTL_TXQ0_OPERATION_MODE_TXQEN_SHIFT 2
-#define XGMAC_MTL_TXQ0_OPERATION_MODE_TXQEN_ENABLED 2
-#define XGMAC_MTL_TXQ0_OPERATION_MODE_TSF BIT(1)
-#define XGMAC_MTL_TXQ0_OPERATION_MODE_FTQ BIT(0)
-
-#define XGMAC_MTL_TXQ0_DEBUG_TXQSTS BIT(4)
-#define XGMAC_MTL_TXQ0_DEBUG_TRCSTS_SHIFT 1
-#define XGMAC_MTL_TXQ0_DEBUG_TRCSTS_MASK GENMASK(2, 0)
-#define XGMAC_MTL_TXQ0_DEBUG_TRCSTS_READ_STATE 0x1
-
-#define XGMAC_MTL_RXQ0_OPERATION_MODE_RQS_SHIFT 16
-#define XGMAC_MTL_RXQ0_OPERATION_MODE_RQS_MASK GENMASK(9, 0)
-#define XGMAC_MTL_RXQ0_OPERATION_MODE_EHFC BIT(7)
-#define XGMAC_MTL_RXQ0_OPERATION_MODE_RSF BIT(5)
-
-#define XGMAC_MTL_RXQ0_DEBUG_PRXQ_SHIFT 16
-#define XGMAC_MTL_RXQ0_DEBUG_PRXQ_MASK GENMASK(14, 0)
-#define XGMAC_MTL_RXQ0_DEBUG_RXQSTS_SHIFT 4
-#define XGMAC_MTL_RXQ0_DEBUG_RXQSTS_MASK GENMASK(1, 0)
-
-/* DMA Registers */
-
-#define XGMAC_DMA_REGS_BASE 0x3000
-
-struct xgmac_dma_regs {
- u32 mode; /* 0x3000 */
- u32 sysbus_mode; /* 0x3004 */
- u32 unused_3008[(0x3100 - 0x3008) / 4]; /* 0x3008 */
- u32 ch0_control; /* 0x3100 */
- u32 ch0_tx_control; /* 0x3104 */
- u32 ch0_rx_control; /* 0x3108 */
- u32 slot_func_control_status; /* 0x310c */
- u32 ch0_txdesc_list_haddress; /* 0x3110 */
- u32 ch0_txdesc_list_address; /* 0x3114 */
- u32 ch0_rxdesc_list_haddress; /* 0x3118 */
- u32 ch0_rxdesc_list_address; /* 0x311c */
- u32 unused_3120; /* 0x3120 */
- u32 ch0_txdesc_tail_pointer; /* 0x3124 */
- u32 unused_3128; /* 0x3128 */
- u32 ch0_rxdesc_tail_pointer; /* 0x312c */
- u32 ch0_txdesc_ring_length; /* 0x3130 */
- u32 ch0_rxdesc_ring_length; /* 0x3134 */
- u32 unused_3138[(0x3160 - 0x3138) / 4]; /* 0x3138 */
- u32 ch0_status; /* 0x3160 */
-};
-
-#define XGMAC_DMA_MODE_SWR BIT(0)
-#define XGMAC_DMA_SYSBUS_MODE_WR_OSR_LMT_SHIFT 24
-#define XGMAC_DMA_SYSBUS_MODE_WR_OSR_LMT_MASK GENMASK(4, 0)
-#define XGMAC_DMA_SYSBUS_MODE_RD_OSR_LMT_SHIFT 16
-#define XGMAC_DMA_SYSBUS_MODE_RD_OSR_LMT_MASK GENMASK(4, 0)
-#define XGMAC_DMA_SYSBUS_MODE_AAL BIT(12)
-#define XGMAC_DMA_SYSBUS_MODE_EAME BIT(11)
-#define XGMAC_DMA_SYSBUS_MODE_BLEN32 BIT(4)
-#define XGMAC_DMA_SYSBUS_MODE_BLEN16 BIT(3)
-#define XGMAC_DMA_SYSBUS_MODE_BLEN8 BIT(2)
-#define XGMAC_DMA_SYSBUS_MODE_BLEN4 BIT(1)
-#define XGMAC_DMA_SYSBUS_MODE_UNDEF BIT(0)
-
-#define XGMAC_DMA_CH0_CONTROL_DSL_SHIFT 18
-#define XGMAC_DMA_CH0_CONTROL_PBLX8 BIT(16)
-
-#define XGMAC_DMA_CH0_TX_CONTROL_TXPBL_SHIFT 16
-#define XGMAC_DMA_CH0_TX_CONTROL_TXPBL_MASK GENMASK(5, 0)
-#define XGMAC_DMA_CH0_TX_CONTROL_OSP BIT(4)
-#define XGMAC_DMA_CH0_TX_CONTROL_ST BIT(0)
-
-#define XGMAC_DMA_CH0_RX_CONTROL_RXPBL_SHIFT 16
-#define XGMAC_DMA_CH0_RX_CONTROL_RXPBL_MASK GENMASK(5, 0)
-#define XGMAC_DMA_CH0_RX_CONTROL_RBSZ_SHIFT 4
-#define XGMAC_DMA_CH0_RX_CONTROL_RBSZ_MASK GENMASK(10, 0)
-#define XGMAC_DMA_CH0_RX_CONTROL_SR BIT(0)
-
-/* Descriptors */
-#define XGMAC_DESCRIPTORS_TX 8
-#define XGMAC_DESCRIPTORS_RX 8
-#define XGMAC_BUFFER_ALIGN ARCH_DMA_MINALIGN
-#define XGMAC_MAX_PACKET_SIZE ALIGN(1568, ARCH_DMA_MINALIGN)
-#define XGMAC_RX_BUFFER_SIZE (XGMAC_DESCRIPTORS_RX * XGMAC_MAX_PACKET_SIZE)
-
-#define XGMAC_RDES3_PKT_LENGTH_MASK GENMASK(13, 0)
-
-struct xgmac_desc {
- u32 des0;
- u32 des1;
- u32 des2;
- u32 des3;
-};
-
-#define XGMAC_DESC3_OWN BIT(31)
-#define XGMAC_DESC3_FD BIT(29)
-#define XGMAC_DESC3_LD BIT(28)
-
-#define XGMAC_AXI_WIDTH_32 4
-#define XGMAC_AXI_WIDTH_64 8
-#define XGMAC_AXI_WIDTH_128 16
-
-struct xgmac_config {
- bool reg_access_always_ok;
- int swr_wait;
- int config_mac;
- int config_mac_mdio;
- unsigned int axi_bus_width;
- phy_interface_t (*interface)(const struct udevice *dev);
- struct xgmac_ops *ops;
-};
-
-struct xgmac_ops {
- void (*xgmac_inval_desc)(void *desc);
- void (*xgmac_flush_desc)(void *desc);
- void (*xgmac_inval_buffer)(void *buf, size_t size);
- void (*xgmac_flush_buffer)(void *buf, size_t size);
- int (*xgmac_probe_resources)(struct udevice *dev);
- int (*xgmac_remove_resources)(struct udevice *dev);
- int (*xgmac_stop_resets)(struct udevice *dev);
- int (*xgmac_start_resets)(struct udevice *dev);
- int (*xgmac_stop_clks)(struct udevice *dev);
- int (*xgmac_start_clks)(struct udevice *dev);
- int (*xgmac_calibrate_pads)(struct udevice *dev);
- int (*xgmac_disable_calibration)(struct udevice *dev);
- int (*xgmac_get_enetaddr)(struct udevice *dev);
-};
-
-struct xgmac_priv {
- struct udevice *dev;
- const struct xgmac_config *config;
- fdt_addr_t regs;
- struct xgmac_mac_regs *mac_regs;
- struct xgmac_mtl_regs *mtl_regs;
- struct xgmac_dma_regs *dma_regs;
- struct reset_ctl reset_ctl;
- struct reset_ctl_bulk reset_bulk;
- struct clk clk_common;
- struct mii_dev *mii;
- struct phy_device *phy;
- ofnode phy_of_node;
- void *syscon_phy;
- u32 syscon_phy_regshift;
- u32 max_speed;
- void *tx_descs;
- void *rx_descs;
- int tx_desc_idx, rx_desc_idx;
- unsigned int desc_size;
- unsigned int desc_per_cacheline;
- void *tx_dma_buf;
- void *rx_dma_buf;
- void *rx_pkt;
- bool started;
- bool reg_access_ok;
- bool clk_ck_enabled;
-};
-
-void xgmac_inval_desc_generic(void *desc);
-void xgmac_flush_desc_generic(void *desc);
-void xgmac_inval_buffer_generic(void *buf, size_t size);
-void xgmac_flush_buffer_generic(void *buf, size_t size);
-int xgmac_null_ops(struct udevice *dev);
-
-extern struct xgmac_config xgmac_socfpga_config;
+++ /dev/null
-// SPDX-License-Identifier: GPL-2.0
-/*
- * Copyright (c) 2023, Intel Corporation
- */
-#include <clk.h>
-#include <cpu_func.h>
-#include <dm.h>
-#include <errno.h>
-#include <eth_phy.h>
-#include <log.h>
-#include <malloc.h>
-#include <memalign.h>
-#include <miiphy.h>
-#include <net.h>
-#include <netdev.h>
-#include <phy.h>
-#include <reset.h>
-#include <wait_bit.h>
-#include <asm/arch/secure_reg_helper.h>
-#include <asm/arch/system_manager.h>
-#include <regmap.h>
-#include <syscon.h>
-#include <asm/cache.h>
-#include <asm/gpio.h>
-#include <asm/io.h>
-#include <linux/delay.h>
-#include <dm/device_compat.h>
-#include "dwc_eth_xgmac.h"
-
-#define SOCFPGA_XGMAC_SYSCON_ARG_COUNT 2
-
-static int dwxgmac_socfpga_do_setphy(struct udevice *dev, u32 modereg)
-{
- struct xgmac_priv *xgmac = dev_get_priv(dev);
- int ret;
-
- u32 modemask = SYSMGR_EMACGRP_CTRL_PHYSEL_MASK <<
- xgmac->syscon_phy_regshift;
-
- if (!(IS_ENABLED(CONFIG_SPL_BUILD)) && IS_ENABLED(CONFIG_SPL_ATF)) {
- u32 index = ((u64)xgmac->syscon_phy - socfpga_get_sysmgr_addr() -
- SYSMGR_SOC64_EMAC0) >> 2;
-
- u32 id = SOCFPGA_SECURE_REG_SYSMGR_SOC64_EMAC0 + index;
-
- ret = socfpga_secure_reg_update32(id,
- modemask,
- modereg <<
- xgmac->syscon_phy_regshift);
- if (ret) {
- dev_err(dev, "Failed to set PHY register via SMC call\n");
- return ret;
- }
-
- } else {
- clrsetbits_le32(xgmac->phy, modemask, modereg);
- }
-
- return 0;
-}
-
-static int xgmac_probe_resources_socfpga(struct udevice *dev)
-{
- struct xgmac_priv *xgmac = dev_get_priv(dev);
- struct regmap *reg_map;
- struct ofnode_phandle_args args;
- void *range;
- phy_interface_t interface;
- int ret;
- u32 modereg;
-
- interface = xgmac->config->interface(dev);
-
- switch (interface) {
- case PHY_INTERFACE_MODE_MII:
- case PHY_INTERFACE_MODE_GMII:
- modereg = SYSMGR_EMACGRP_CTRL_PHYSEL_ENUM_GMII_MII;
- break;
- case PHY_INTERFACE_MODE_RMII:
- modereg = SYSMGR_EMACGRP_CTRL_PHYSEL_ENUM_RMII;
- break;
- case PHY_INTERFACE_MODE_RGMII:
- modereg = SYSMGR_EMACGRP_CTRL_PHYSEL_ENUM_RGMII;
- break;
- default:
- dev_err(dev, "Unsupported PHY mode\n");
- return -EINVAL;
- }
-
- /* Get PHY syscon */
- ret = dev_read_phandle_with_args(dev, "altr,sysmgr-syscon", NULL,
- SOCFPGA_XGMAC_SYSCON_ARG_COUNT,
- 0, &args);
-
- if (ret) {
- dev_err(dev, "Failed to get syscon: %d\n", ret);
- return ret;
- }
-
- if (args.args_count != SOCFPGA_XGMAC_SYSCON_ARG_COUNT) {
- dev_err(dev, "Invalid number of syscon args\n");
- return -EINVAL;
- }
-
- reg_map = syscon_node_to_regmap(args.node);
- if (IS_ERR(reg_map)) {
- ret = PTR_ERR(reg_map);
- dev_err(dev, "Failed to get reg_map: %d\n", ret);
- return ret;
- }
-
- range = regmap_get_range(reg_map, 0);
- if (!range) {
- dev_err(dev, "Failed to get reg_map: %d\n", ret);
- return -ENOMEM;
- }
-
- xgmac->syscon_phy = range + args.args[0];
- xgmac->syscon_phy_regshift = args.args[1];
-
- /* Get Reset Bulk */
- ret = reset_get_bulk(dev, &xgmac->reset_bulk);
- if (ret) {
- dev_err(dev, "Failed to get reset: %d\n", ret);
- return ret;
- }
-
- ret = reset_assert_bulk(&xgmac->reset_bulk);
- if (ret) {
- dev_err(dev, "XGMAC failed to assert reset: %d\n", ret);
- return ret;
- }
-
- ret = dwxgmac_socfpga_do_setphy(dev, modereg);
- if (ret)
- return ret;
-
- ret = reset_deassert_bulk(&xgmac->reset_bulk);
- if (ret) {
- dev_err(dev, "XGMAC failed to de-assert reset: %d\n", ret);
- return ret;
- }
-
- ret = clk_get_by_name(dev, "stmmaceth", &xgmac->clk_common);
- if (ret) {
- pr_err("clk_get_by_name(stmmaceth) failed: %d", ret);
- goto err_probe;
- }
- return 0;
-
-err_probe:
- debug("%s: returns %d\n", __func__, ret);
- return ret;
-}
-
-static int xgmac_get_enetaddr_socfpga(struct udevice *dev)
-{
- struct eth_pdata *pdata = dev_get_plat(dev);
- struct xgmac_priv *xgmac = dev_get_priv(dev);
- u32 hi_addr, lo_addr;
-
- debug("%s(dev=%p):\n", __func__, dev);
-
- /* Read the MAC Address from the hardawre */
- hi_addr = readl(&xgmac->mac_regs->address0_high);
- lo_addr = readl(&xgmac->mac_regs->address0_low);
-
- pdata->enetaddr[0] = lo_addr & 0xff;
- pdata->enetaddr[1] = (lo_addr >> 8) & 0xff;
- pdata->enetaddr[2] = (lo_addr >> 16) & 0xff;
- pdata->enetaddr[3] = (lo_addr >> 24) & 0xff;
- pdata->enetaddr[4] = hi_addr & 0xff;
- pdata->enetaddr[5] = (hi_addr >> 8) & 0xff;
-
- return !is_valid_ethaddr(pdata->enetaddr);
-}
-
-static int xgmac_start_resets_socfpga(struct udevice *dev)
-{
- struct xgmac_priv *xgmac = dev_get_priv(dev);
- int ret;
-
- debug("%s(dev=%p):\n", __func__, dev);
-
- ret = reset_assert_bulk(&xgmac->reset_bulk);
- if (ret < 0) {
- pr_err("xgmac reset assert failed: %d", ret);
- return ret;
- }
-
- udelay(2);
-
- ret = reset_deassert_bulk(&xgmac->reset_bulk);
- if (ret < 0) {
- pr_err("xgmac reset de-assert failed: %d", ret);
- return ret;
- }
-
- return 0;
-}
-
-static struct xgmac_ops xgmac_socfpga_ops = {
- .xgmac_inval_desc = xgmac_inval_desc_generic,
- .xgmac_flush_desc = xgmac_flush_desc_generic,
- .xgmac_inval_buffer = xgmac_inval_buffer_generic,
- .xgmac_flush_buffer = xgmac_flush_buffer_generic,
- .xgmac_probe_resources = xgmac_probe_resources_socfpga,
- .xgmac_remove_resources = xgmac_null_ops,
- .xgmac_stop_resets = xgmac_null_ops,
- .xgmac_start_resets = xgmac_start_resets_socfpga,
- .xgmac_stop_clks = xgmac_null_ops,
- .xgmac_start_clks = xgmac_null_ops,
- .xgmac_calibrate_pads = xgmac_null_ops,
- .xgmac_disable_calibration = xgmac_null_ops,
- .xgmac_get_enetaddr = xgmac_get_enetaddr_socfpga,
-};
-
-struct xgmac_config __maybe_unused xgmac_socfpga_config = {
- .reg_access_always_ok = false,
- .swr_wait = 50,
- .config_mac = XGMAC_MAC_RXQ_CTRL0_RXQ0EN_ENABLED_DCB,
- .config_mac_mdio = XGMAC_MAC_MDIO_ADDRESS_CR_350_400,
- .axi_bus_width = XGMAC_AXI_WIDTH_64,
- .interface = dev_read_phy_mode,
- .ops = &xgmac_socfpga_ops
-};
* Copyright (C) 2021 BayLibre, SAS
*/
+#include <common.h>
#include <asm/io.h>
#include <dm.h>
#include <phy.h>
* Actions DWMAC specific glue layer
*/
+#include <common.h>
#include <asm/global_data.h>
#include <asm/io.h>
#include <dm.h>
* Altera SoCFPGA EMAC extras
*/
+#include <common.h>
#include <asm/arch/secure_reg_helper.h>
#include <asm/arch/system_manager.h>
#include <asm/io.h>
* Copyright 2011 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <dm.h>
+#include <common.h>
#include <command.h>
#include <console.h>
#include <linux/delay.h>
#include "e1000.h"
#include <malloc.h>
-#include <vsprintf.h>
#include <linux/compiler.h>
/*-----------------------------------------------------------------------
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <asm/io.h>
#include <cpu_func.h>
#include <malloc.h>
#define LOG_CATEGORY UCLASS_ETH_PHY
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <net.h>
* Copyright (C) 2016 Cadence Design Systems Inc.
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <log.h>
* (C) Copyright 2007 Pengutronix, Juergen Beisert <j.beisert@pengutronix.de>
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <env.h>
* Copyright 2012 Freescale Semiconductor, Inc.
* Roy Zang <tie-fei.zang@freescale.com>
*/
-#include <config.h>
+#include <common.h>
#include <env.h>
#include <phy.h>
#include <fm_eth.h>
* Copyright 2009-2011 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <asm/types.h>
#include <asm/io.h>
#include <fsl_dtsec.h>
* Copyright 2020 NXP
* Dave Liu <daveliu@freescale.com>
*/
-#include <config.h>
+#include <common.h>
#include <log.h>
#include <part.h>
#include <asm/io.h>
/*
* Copyright 2015 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <phy.h>
#include <fm_eth.h>
#include <asm/io.h>
/*
* Copyright 2016 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <phy.h>
#include <fm_eth.h>
#include <asm/io.h>
/* MAXFRM - maximum frame length */
#define MAXFRM_MASK 0x0000ffff
+#include <common.h>
#include <log.h>
#include <phy.h>
#include <asm/types.h>
* Roy Zang <tie-fei.zang@freescale.com>
* Some part is taken from tsec.c
*/
+#include <common.h>
#include <miiphy.h>
#include <phy.h>
#include <asm/io.h>
/*
* Copyright 2011 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <phy.h>
#include <fm_eth.h>
#include <asm/io.h>
/*
* Copyright 2011 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <phy.h>
#include <fm_eth.h>
#include <asm/io.h>
/*
* Copyright 2011 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <phy.h>
#include <fm_eth.h>
#include <asm/io.h>
/*
* Copyright 2011 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <phy.h>
#include <fm_eth.h>
#include <asm/io.h>
* Shengzhou Liu <Shengzhou.Liu@freescale.com>
*/
-#include <config.h>
+#include <common.h>
#include <phy.h>
#include <fm_eth.h>
#include <asm/immap_85xx.h>
/*
* Copyright 2013 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <phy.h>
#include <fm_eth.h>
#include <asm/io.h>
* Shengzhou Liu <Shengzhou.Liu@freescale.com>
*/
-#include <config.h>
+#include <common.h>
#include <phy.h>
#include <fm_eth.h>
#include <asm/immap_85xx.h>
* Copyright 2012 Freescale Semiconductor, Inc.
* Roy Zang <tie-fei.zang@freescale.com>
*/
-#include <config.h>
+#include <common.h>
#include <phy.h>
#include <fm_eth.h>
#include <asm/io.h>
/* MAXFRM - maximum frame length */
#define MAXFRM_MASK 0x0000ffff
+#include <common.h>
#include <phy.h>
#include <asm/types.h>
#include <asm/io.h>
* Andy Fleming <afleming@gmail.com>
* Some part is taken from tsec.c
*/
+#include <common.h>
#include <miiphy.h>
#include <phy.h>
#include <asm/io.h>
* Copyright 2014 Freescale Semiconductor, Inc.
* Copyright 2017-2018, 2020-2021 NXP
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <env.h>
#include <fsl-mc/fsl_mc_sys.h>
#include <fsl-mc/fsl_mc_cmd.h>
+#include <common.h>
#include <errno.h>
#include <asm/io.h>
#include <linux/delay.h>
* Copyright 2017-2021 NXP
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fdt_support.h>
* Copyright 2019 NXP
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <pci.h>
* Copyright 2020 NXP
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <miiphy.h>
* Mingkai Hu <Mingkai.hu@freescale.com>
*/
+#include <common.h>
#include <miiphy.h>
#include <phy.h>
#include <fsl_mdio.h>
* Copyright (C) 2018, IBM Corporation.
*/
+#include <common.h>
#include <clk.h>
#include <reset.h>
#include <cpu_func.h>
*/
#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <env.h>
#include <malloc.h>
* Rockchip GMAC ethernet IP driver for U-Boot
*/
+#include <common.h>
#include <dm.h>
#include <clk.h>
#include <log.h>
#include <malloc.h>
#include <asm/cache.h>
#include <asm/io.h>
+#include <common.h>
#include <console.h>
#include <linux/bitops.h>
#include <linux/bug.h>
#include <log.h>
#include <asm/io.h>
+#include <common.h>
#include <command.h>
#include <malloc.h>
#include <net.h>
* Copyright 2017, 2023 NXP
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm/device_compat.h>
#include <fsl-mc/fsl_dpmac.h>
* Copyright (C) 2015 Freescale Semiconductor
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/types.h>
#include <malloc.h>
/*
* Copyright 2017 NXP
*/
-#include <config.h>
+#include <common.h>
#include <phy.h>
#include <fsl-mc/ldpaa_wriop.h>
#include <asm/io.h>
/*
* Copyright 2015 Freescale Semiconductor, Inc.
*/
-#include <config.h>
+#include <common.h>
#include <phy.h>
#include <fsl-mc/ldpaa_wriop.h>
#include <asm/io.h>
/*
* Copyright 2018, 2020 NXP
*/
-#include <config.h>
+#include <common.h>
#include <phy.h>
#include <fsl-mc/ldpaa_wriop.h>
#include <asm/io.h>
/*
* Copyright (C) 2005-2006 Atmel Corporation
*/
+#include <common.h>
#include <clk.h>
#include <cpu_func.h>
#include <dm.h>
* (C) 2019 Angelo Dureghello <angelo.dureghello@timesys.com>
*/
-#include <config.h>
+#include <common.h>
#include <env.h>
#include <hang.h>
#include <malloc.h>
* TsiChung Liew (Tsi-Chung.Liew@freescale.com)
*/
+#include <common.h>
#include <config.h>
#include <net.h>
#include <netdev.h>
*/
#include <asm/io.h>
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <linux/bitops.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <command.h>
#include <hang.h>
#include <malloc.h>
* Copyright (c) 2018 Microsemi Corporation
*/
+#include <common.h>
#include <config.h>
#include <dm.h>
#include <malloc.h>
* Copyright (c) 2019 Microsemi Corporation
*/
+#include <common.h>
#include <config.h>
#include <dm.h>
#include <malloc.h>
* Copyright (c) 2018 Microsemi Corporation
*/
+#include <common.h>
#include <config.h>
#include <dm.h>
#include <log.h>
* Copyright (c) 2019 Microsemi Corporation
*/
+#include <common.h>
#include <config.h>
#include <dm.h>
#include <log.h>
* Copyright (c) 2019 Microsemi Corporation
*/
+#include <common.h>
#include <config.h>
#include <dm.h>
#include <malloc.h>
* copyrights here, so I can't add them here.
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <log.h>
* Author: Mark Lee <mark-mc.lee@mediatek.com>
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <log.h>
* on the mv88e6176 via an SGMII interface.
*/
+#include <common.h>
#include <dm/device.h>
#include <dm/device_compat.h>
#include <dm/device-internal.h>
* Copyright (C) 2002 rabeeh@galileo.co.il
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <net.h>
* Author: Ken Ma<make@marvell.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm/device-internal.h>
#include <dm/lists.h>
* Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <log.h>
* warranty of any kind, whether express or implied.
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <asm/cache.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <command.h>
#include <env.h>
#include <log.h>
#include <stdio_dev.h>
#include <net.h>
-#include <vsprintf.h>
#ifndef CFG_NETCONSOLE_BUFFER_SIZE
#define CFG_NETCONSOLE_BUFFER_SIZE 512
* Copyright (c) 2021 Nuvoton Technology Corp.
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <errno.h>
* Intel Platform Controller Hub EG20T (codename Topcliff) GMAC Driver
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <errno.h>
* Linux driver pcnet32.c written 1996-1999 by Thomas Bogendoerfer.
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <log.h>
* @brief PFE utility commands
*/
+#include <common.h>
#include <command.h>
#include <log.h>
#include <linux/delay.h>
* Copyright 2017 NXP
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
* Copyright 2015-2016 Freescale Semiconductor, Inc.
* Copyright 2017 NXP
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
* Copyright 2022 Variscite Ltd.
* Copyright 2022 Josua Mayer <josua@solid-run.com>
*/
+#include <common.h>
#include <phy.h>
#include <linux/bitops.h>
#include <linux/bitfield.h>
* Copyright 2018, 2021 NXP
*/
#include <config.h>
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <net.h>
* author Andy Fleming
* Copyright (c) 2019 Michael Walle <michael@walle.cc>
*/
+#include <common.h>
#include <phy.h>
#include <dm/device_compat.h>
#include <linux/bitfield.h>
* cover other switches would be trivial.
*/
+#include <common.h>
#include <command.h>
#include <linux/bitops.h>
#include <linux/delay.h>
* Copyright 2010-2011 Freescale Semiconductor, Inc.
* author Andy Fleming
*/
+#include <common.h>
#include <phy.h>
#include <linux/delay.h>
*/
#include <config.h>
+#include <common.h>
#include <log.h>
#include <malloc.h>
#include <linux/ctype.h>
*/
#include <config.h>
+#include <common.h>
#include <log.h>
#include <malloc.h>
#include <linux/ctype.h>
* Copyright 2010-2011 Freescale Semiconductor, Inc.
* author Andy Fleming
*/
+#include <common.h>
#include <phy.h>
#define MIIM_DM9161_SCR 0x10
* TI PHY drivers
*
*/
+#include <common.h>
#include <log.h>
#include <phy.h>
#include <dm/devres.h>
*
*/
+#include <common.h>
#include <phy.h>
#include <linux/compat.h>
#include <malloc.h>
* Copyright (C) 2022 Xilinx, Inc.
*/
+#include <common.h>
#include <dm/device_compat.h>
#include <dm/device-internal.h>
#include <dm/lists.h>
*/
#include <config.h>
+#include <common.h>
#include <malloc.h>
#include <phy.h>
#include <dm.h>
*
* Based loosely off of Linux's PHY Lib
*/
+#include <common.h>
#include <miiphy.h>
#include <phy.h>
// SPDX-License-Identifier: GPL-2.0+
+#include <common.h>
#include <phy.h>
#include <linux/bitfield.h>
* Copyright 2010-2011 Freescale Semiconductor, Inc.
* author Andy Fleming
*/
+#include <common.h>
#include <phy.h>
/* LXT971 Status 2 registers */
* Copyright 2010-2011 Freescale Semiconductor, Inc.
* author Andy Fleming
*/
+#include <common.h>
#include <errno.h>
#include <marvell_phy.h>
#include <phy.h>
* If both the fiber and copper ports are connected, the first to gain
* link takes priority and the other port is completely locked out.
*/
+#include <common.h>
#include <console.h>
#include <dm/device_compat.h>
#include <dm/devres.h>
* Author: Neil Armstrong <narmstrong@baylibre.com>
*/
#include <config.h>
+#include <common.h>
#include <linux/bitops.h>
#include <dm.h>
#include <phy.h>
* author Andy Fleming
* (C) 2012 NetModule AG, David Andrey, added KSZ9031
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
* (C) Copyright 2017 Adaptrum, Inc.
* Written by Alexandru Gagniuc <alex.g@adaptrum.com> for Adaptrum, Inc.
*/
+#include <common.h>
#include <dm.h>
#include <env.h>
#include <errno.h>
* channel.
*/
+#include <common.h>
#include <ioports.h>
#include <ppc_asm.tmpl>
#include <miiphy.h>
*/
#include <config.h>
+#include <common.h>
#include <malloc.h>
#include <phy.h>
#include <linux/bitfield.h>
* changes may be required.
*/
+#include <common.h>
#include <log.h>
#include <linux/bitops.h>
#include <linux/delay.h>
* Valentin Lontgchamp, Keymile AG, valentin.longchamp@keymile.com
*/
+#include <common.h>
#include <command.h>
#include <log.h>
#include <miiphy.h>
* Copyright 2010-2011 Freescale Semiconductor, Inc.
* author Andy Fleming
*/
+#include <common.h>
#include <phy.h>
/* NatSemi DP83630 */
* Copyright (C) 2019, IBM Corporation.
*/
+#include <common.h>
#include <log.h>
#include <malloc.h>
#include <phy.h>
* Copyright 2021 NXP
* Author: Radu Pirea <radu-nicolae.pirea@oss.nxp.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm/devres.h>
#include <linux/delay.h>
* Copyright (C) 2018 Marek Vasut <marex@denx.de>
*/
+#include <common.h>
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/iopoll.h>
*
* Based loosely off of Linux's PHY Lib
*/
+#include <common.h>
#include <console.h>
#include <dm.h>
#include <log.h>
* author Andy Fleming
* Copyright 2016 Karsten Merker <merker@debian.org>
*/
+#include <common.h>
#include <linux/bitops.h>
#include <phy.h>
#include <linux/delay.h>
* Some code copied from linux kernel
* Copyright (c) 2006 Herbert Valerio Riedel <hvr@gnu.org>
*/
+#include <common.h>
#include <miiphy.h>
/* This code does not check the partner abilities. */
* Copyright 2010-2011 Freescale Semiconductor, Inc.
* author Andy Fleming
*/
+#include <common.h>
#include <phy.h>
#include <linux/delay.h>
* Original Author: Andy Fleming
* Add vsc8662 phy support - Priyanka Jain
*/
+#include <common.h>
#include <miiphy.h>
/* Cicada Auxiliary Control/Status Register */
* Copyright (C) 2018 Xilinx, Inc.
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <phy.h>
*/
#include <config.h>
+#include <common.h>
#include <log.h>
#include <phy.h>
#include <dm.h>
* (c) 2015 Purna Chandra Mandal <purna.mandal@microchip.com>
*
*/
+#include <common.h>
#include <cpu_func.h>
#include <errno.h>
#include <dm.h>
* Copyright 2015 Microchip Inc.
* Purna Chandra Mandal <purna.mandal@microchip.com>
*/
+#include <common.h>
#include <phy.h>
#include <miiphy.h>
#include <errno.h>
* Copyright (C) 2020 Heiko Schocher <hs@denx.de>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <memalign.h>
* Copyright (C) 2020 Heiko Schocher <hs@denx.de>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <miiphy.h>
*/
#include <malloc.h>
-#include <stdio.h>
#include <linux/errno.h>
#include <asm/io.h>
#include <linux/immap_qe.h>
#ifndef __UCCF_H__
#define __UCCF_H__
-#include <linux/types.h>
-#include <linux/immap_qe.h>
+#include "common.h"
+#include "linux/immap_qe.h"
#include <fsl_qe.h>
/* Fast or Giga ethernet */
* Based on the SuperH Ethernet driver.
*/
+#include <common.h>
#include <clk.h>
#include <cpu_func.h>
#include <dm.h>
#include <asm/io.h>
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <dm/device-internal.h>
#include <dm/device_compat.h>
*
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <log.h>
* 26 August 2006 Mihai Georgian <u-boot@linuxnotincluded.org.uk>
* Modified to use le32_to_cpu and cpu_to_le32 properly
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <errno.h>
* Copyright (c) 2018 Joe Hershberger <joe.hershberger@ni.com>
*/
+#include <common.h>
#include <asm/eth-raw-os.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
#include <asm/eth-raw-os.h>
+#include <common.h>
#include <dm.h>
#include <env.h>
#include <malloc.h>
* Joe Hershberger <joe.hershberger@ni.com>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
*/
#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <env.h>
#include <log.h>
* Ported from Linux (drivers/net/dsa/sja1105/).
*/
+#include <common.h>
#include <dm/device_compat.h>
#include <linux/bitops.h>
#include <linux/bitrev.h>
* (c) 2007 Pengutronix, Sascha Hauer <s.hauer@pengutronix.de>
*/
+#include <common.h>
#include <command.h>
#include <malloc.h>
#include <net.h>
#include <asm/global_data.h>
#include <asm/gpio.h>
#include <asm/io.h>
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <fdt_support.h>
* (C) Copyright 2012, Stefan Roese <sr@denx.de>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <log.h>
*
*/
+#include <common.h>
#include <malloc.h>
#include <asm/cache.h>
#include <asm/gpio.h>
* Copyright (C) 2016, Texas Instruments, Incorporated
*/
+#include <common.h>
#include <dm.h>
#include <fdt_support.h>
#include <asm/global_data.h>
* Copyright (C) 2010-2018 Texas Instruments Incorporated - https://www.ti.com/
*/
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <log.h>
*/
#include <clk.h>
+#include <common.h>
#include <dm/device_compat.h>
#include <log.h>
#include <malloc.h>
* ver. 1.0: Sep 2005, Anant Gole - Created EMAC version for uBoot.
* ver 1.1: Nov 2005, Anant Gole - Extended the RX logic for multiple descriptors
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <log.h>
* (C) Copyright 2012-2014
* Texas Instruments Incorporated, <www.ti.com>
*/
+#include <common.h>
#include <command.h>
#include <console.h>
#include <asm/global_data.h>
*/
#include <config.h>
+#include <common.h>
#include <dm.h>
#include <malloc.h>
#include <net.h>
*/
#include <config.h>
+#include <common.h>
#include <console.h>
#include <log.h>
#include <asm/io.h>
*/
#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <display_options.h>
#include <dm.h>
*/
#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <log.h>
* Michal SIMEK <monstr@monstr.eu>
*/
+#include <common.h>
#include <log.h>
#include <net.h>
#include <config.h>
*/
#include <clk.h>
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <generic-phy.h>
#define LOG_CATEGORY UCLASS_NVME
+#include <common.h>
#include <bootdev.h>
#include <dm.h>
#include <init.h>
* Copyright (C) 2017 Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <blk.h>
#include <bootdev.h>
#include <cpu_func.h>
* (C) Copyright 2021 Mark Kettenis <kettenis@openbsd.org>
*/
+#include <common.h>
#include <dm.h>
#include <mailbox.h>
#include <mapmem.h>
* Copyright (C) 2017 Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <init.h>
#include <pci.h>
* Copyright (C) 2017 Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <memalign.h>
#define LOG_CATEGORY UCLASS_PCH
+#include <common.h>
#include <dm.h>
#include <pch.h>
* Copyright (C) 2014 Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <pch.h>
#define LOG_CATEGORY UCLASS_PCH
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <pch.h>
* Copyright 2018 Google LLC
*/
+#include <common.h>
#include <dm.h>
#include <pch.h>
*
*/
+#include <common.h>
#include <dm.h>
#include <pci.h>
#include <asm/io.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <log.h>
* Copyright (C) 2018 Marek Vasut <marek.vasut@gmail.com>
*/
-#include <config.h>
+#include <common.h>
#include <asm/io.h>
#include <clk.h>
#include <dm.h>
* Author: Phil Edworthy <phil.edworthy@renesas.com>
*/
+#include <common.h>
#include <asm/io.h>
#include <clk.h>
#include <dm.h>
#define LOG_CATEGORY UCLASS_PCI
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <init.h>
* Copyright (c) 2021 Maciej W. Rozycki <macro@orcam.me.uk>
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <dm.h>
#include <env.h>
#include <errno.h>
*
* Copyright (C) 2014 Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
// SPDX-License-Identifier: GPL-2.0-or-later
+#include <common.h>
#include <pci.h>
#include <dm.h>
#include <asm/io.h>
* Heiko Schocher, DENX Software Engineering, hs@denx.de.
*
*/
+#include <common.h>
#include <asm/bitops.h>
#include <pci.h>
#include <dm.h>
* Pali Rohár <pali@kernel.org>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
#define LOG_CATEGORY UCLASS_PCI
+#include <common.h>
#include <bios_emul.h>
#include <bloblist.h>
#include <bootstage.h>
#include <pci.h>
#include <pci_rom.h>
#include <spl.h>
-#include <time.h>
#include <vesa.h>
#include <video.h>
#include <acpi/acpi_s3.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <log.h>
* (C) 2007,2008 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <pci.h>
#include <asm/processor.h>
#define pr_fmt(fmt) "tegra-pcie: " fmt
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <errno.h>
* Copyright (c) 2015 Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <pci.h>
#include <asm/pci.h>
* Author: Marc Zyngier <maz@kernel.org>
*/
+#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <dm/devres.h>
* Copyright (C) 2020 Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
*/
+#include <common.h>
#include <errno.h>
#include <dm.h>
#include <dm/ofnode.h>
* Copyright (C) 2018 Texas Instruments, Inc
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <pci.h>
* Copyright (c) 2021 Rockchip, Inc.
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <generic-phy.h>
* - drivers/pci/pcie_xilinx.c
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <pci.h>
-#include <time.h>
#include <asm/global_data.h>
#include <asm/io.h>
#include <asm-generic/gpio.h>
* Copyright (c) 2021 Rockchip, Inc.
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <generic-phy.h>
#include <asm/io.h>
#include <asm-generic/gpio.h>
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <generic-phy.h>
* Copyright (C) 2018 Texas Instruments, Inc
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <pci.h>
* Copyright (C) 2016 Imagination Technologies
*/
+#include <common.h>
#include <dm.h>
#include <pci.h>
#include <linux/ioport.h>
* Copyright (C) 2021 Linaro Ltd.
*/
+#include <common.h>
#include <dm.h>
#include <pci.h>
#include <log.h>
* Author: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <malloc.h>
#include <mapmem.h>
* Author: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
*/
+#include <common.h>
#ifdef CONFIG_OF_BOARD_SETUP
#include <dm.h>
#include <fdt_support.h>
* those too in order to have a single modern PCIe iMX driver.
*/
+#include <common.h>
#include <init.h>
#include <log.h>
#include <malloc.h>
*
*/
+#include <common.h>
#include <dm.h>
#include <pci.h>
#include <asm/global_data.h>
*
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <generic-phy.h>
* Layerscape PCIe driver
*/
+#include <common.h>
#include <log.h>
#include <asm/global_data.h>
#include <asm/io.h>
* Layerscape PCIe EP driver
*/
-#include <config.h>
+#include <common.h>
#include <asm/arch/fsl_serdes.h>
#include <dm.h>
#include <asm/global_data.h>
* Layerscape PCIe driver
*/
+#include <common.h>
#include <dm.h>
#include <init.h>
#include <log.h>
*
*/
+#include <common.h>
#include <init.h>
#include <asm/arch/clock.h>
#include <asm/arch/soc.h>
-#include <linux/errno.h>
#include <linux/libfdt.h>
#include <fdt_support.h>
#include "pcie_layerscape_fixup_common.h"
* Author: Hou Zhiqiang <Minder.Hou@gmail.com>
*/
-#include <config.h>
+#include <common.h>
#include <log.h>
#include <asm/arch/fsl_serdes.h>
#include <pci.h>
*
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <pci.h>
* Layerscape PCIe driver
*/
+#include <common.h>
#include <asm/arch/fsl_serdes.h>
#include <pci.h>
#include <asm/global_data.h>
* Honghui Zhang <honghui.zhang@mediatek.com>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <generic-phy.h>
* Copyright (C) 2019
*/
+#include <common.h>
#include <dm.h>
#include <pci.h>
#include <asm/global_data.h>
*
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <pci.h>
* Bits taken from Linux Rockchip PCIe host controller.
*/
+#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <generic-phy.h>
*
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <pci.h>
*/
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <generic-phy.h>
* Copyright (C) 2016 Imagination Technologies
*/
+#include <common.h>
#include <dm.h>
#include <pci.h>
#include <linux/bitops.h>
#define LOG_CATEGORY UCLASS_PCI_EP
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <asm/global_data.h>
* Written by Ramon Fried <ramon.fried@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <pci_ep.h>
* Copyright (c) 2019 Ramon Fried <ramon.fried@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <pci.h>
* SPDX-License-Identifier: GPL-2.0+
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <log.h>
* Copyright 2013 Florian Fainelli <florian@openwrt.org>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <generic-phy.h>
* Copyright 2013 Florian Fainelli <florian@openwrt.org>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <generic-phy.h>
* Copyright 2013 Florian Fainelli <florian@openwrt.org>
*/
+#include <common.h>
#include <dm.h>
#include <generic-phy.h>
#include <log.h>
* Copyright 2013 Florian Fainelli <florian@openwrt.org>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <generic-phy.h>
* Jean-Jacques Hiblot <jjhiblot@ti.com>
*
*/
+#include <common.h>
#include <clk.h>
#include <linux/delay.h>
#include <linux/clk-provider.h>
*
*/
+#include <common.h>
#include <clk.h>
#include <generic-phy.h>
#include <reset.h>
* Written by Jean-Jacques Hiblot <jjhiblot@ti.com>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <dm/device.h>
* Copyright (C) 2015-2016 Marvell International Ltd.
*/
+#include <common.h>
#include <fdt_support.h>
#include <log.h>
#include <asm/global_data.h>
* Copyright (C) 2016 Stefan Roese <sr@denx.de>
*/
+#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <asm/global_data.h>
* Copyright (C) 2015-2016 Marvell International Ltd.
*/
+#include <common.h>
#include <fdtdec.h>
#include <log.h>
#include <asm/global_data.h>
#include <asm/arch/cpu.h>
#include <asm/arch/soc.h>
#include <linux/delay.h>
-#include <linux/errno.h>
#include <linux/printk.h>
#include "comphy_core.h"
* Copyright (C) 2015-2016 Marvell International Ltd.
*/
+#include <common.h>
#include <log.h>
#include <asm/io.h>
* Author: Neil Armstrong <narmstrong@baylibre.com>
*/
+#include <common.h>
#include <log.h>
#include <malloc.h>
#include <asm/io.h>
* Author: Neil Armstrong <narmstrong@baylibre.com>
*/
+#include <common.h>
#include <log.h>
#include <malloc.h>
#include <asm/io.h>
* Author: Neil Armstrong <narmstron@baylibre.com>
*/
+#include <common.h>
#include <log.h>
#include <malloc.h>
#include <asm/io.h>
* Author: Neil Armstrong <narmstron@baylibre.com>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <malloc.h>
* Author: Beniamino Galvani <b.galvani@gmail.com>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <generic-phy.h>
* Author: Neil Armstrong <narmstron@baylibre.com>
*/
+#include <common.h>
#include <malloc.h>
#include <asm/io.h>
#include <bitfield.h>
*/
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <generic-phy.h>
#include <log.h>
*/
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <dm/device.h>
#include <dm/device_compat.h>
* Written by Jean-Jacques Hiblot <jjhiblot@ti.com>
*/
+#include <common.h>
#include <asm/global_data.h>
#include <asm/io.h>
#include <dm.h>
// SPDX-License-Identifier: GPL-2.0+
/* Copyright (C) 2019 Stephan Gerhold */
+#include <common.h>
#include <dm.h>
#include <generic-phy.h>
#include <linux/bitops.h>
* Copyright (C) 2022 Mark Kettenis <kettenis@openbsd.org>
*/
+#include <common.h>
#include <dm.h>
#include <dm/device-internal.h>
#include <generic-phy.h>
* Copyright (C) 2019 Broadcom
*/
+#include <common.h>
#include <dm.h>
#include <generic-phy.h>
#include <asm/io.h>
* Copyright (C) 2018 Cadence Design Systems Inc.
*/
+#include <common.h>
#include <div64.h>
-#include <linux/kernel.h>
#include <linux/time.h>
#include <phy-mipi-dphy.h>
* DT support added by: Adam Ford <aford173@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
-#include <time.h>
#include <dm/device-internal.h>
#include <dm/lists.h>
#include <asm/arch/hardware.h>
*
*/
+#include <common.h>
#include <asm/io.h>
#include <dm.h>
#include <errno.h>
* Ryder Lee <ryder.lee@mediatek.com>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <generic-phy.h>
* Copyright (c) 2021 Nuvoton Technology Corp.
*/
+#include <common.h>
#include <dm.h>
#include <generic-phy.h>
#include <regmap.h>
* Copyright (C) 2018 Marek Vasut <marek.vasut@gmail.com>
*/
+#include <common.h>
#include <clk.h>
#include <div64.h>
#include <dm.h>
* Copyright (C) 2018 Marek Vasut <marek.vasut@gmail.com>
*/
+#include <common.h>
#include <clk.h>
#include <div64.h>
#include <dm.h>
#define LOG_CATEGORY UCLASS_PHY
+#include <common.h>
#include <clk.h>
#include <clk-uclass.h>
#include <div64.h>
* Author: Kishon Vijay Abraham I <kishon@ti.com>
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <log.h>
#define LOG_CATEGORY UCLASS_PHY
+#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <dm/devres.h>
* Author: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <generic-phy.h>
* Copyright (C) 2018 Ramon Fried <ramon.fried@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <generic-phy.h>
#include <linux/bitops.h>
*/
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <generic-phy.h>
#include <log.h>
* Based on Linux driver
*/
+#include <common.h>
#include <dm.h>
#include <generic-phy.h>
#include <reset.h>
* Based on Linux driver
*/
+#include <common.h>
#include <dm.h>
#include <generic-phy.h>
#include <linux/bitops.h>
#include <asm/io.h>
#include <clk-uclass.h>
#include <clk.h>
+#include <common.h>
#include <div64.h>
#include <dm.h>
#include <dm/device_compat.h>
* Copyright (C) 2021 Rockchip Electronics Co., Ltd.
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dm/lists.h>
* Copyright (C) 2016 ROCKCHIP, Inc.
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <asm/global_data.h>
* Copyright (C) 2021 Rockchip Electronics Co., Ltd.
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <generic-phy.h>
* Kever Yang <kever.yang@rock-chips.com>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <asm/global_data.h>
* Copyright (C) 2021 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dm/device_compat.h>
* Written by Jean-Jacques Hiblot <jjhiblot@ti.com>
*/
+#include <common.h>
#include <dm.h>
#include <generic-phy.h>
* Copyright 2019-2021 Socionext, Inc.
*/
+#include <common.h>
#include <dm.h>
#include <generic-phy.h>
#include <linux/bitops.h>
* Copyright 2019-2023 Socionext, Inc.
*/
+#include <common.h>
#include <dm.h>
#include <generic-phy.h>
* Author(s): Patrice Chotard, <patrice.chotard@foss.st.com> for STMicroelectronics.
*/
+#include <common.h>
#include <log.h>
#include <asm/global_data.h>
#include <asm/io.h>
* Written by Jean-Jacques Hiblot <jjhiblot@ti.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm/device.h>
#include <generic-phy.h>
* Jean-Jacques Hiblot <jjhiblot@ti.com>
*/
+#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <dm/device_compat.h>
* Copyright 2017 Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
* Copyright (C) ASPEED Technology Inc.
*/
+#include <common.h>
#include <errno.h>
#include <asm/arch/pinctrl.h>
#include <asm/arch/scu_ast2600.h>
* Copyright (C) 2015-2016 Wills Wang <wills.wang@live.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
* Copyright (C) 2015-2016 Wills Wang <wills.wang@live.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
* https://spdx.org/licenses
*/
+#include <common.h>
#include <config.h>
#include <errno.h>
#include <dm.h>
// SPDX-License-Identifier: GPL-2.0
+#include <common.h>
#include <dm.h>
#include <regmap.h>
#include <syscon.h>
*/
#include <log.h>
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <asm/io.h>
* Thomas Abraham <thomas.ab@samsung.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <asm/io.h>
* Thomas Abraham <thomas.ab@samsung.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <asm/io.h>
#define LOG_CATEGORY UCLASS_GPIO
+#include <common.h>
#include <dm.h>
#include <irq.h>
#include <log.h>
#define LOG_CATEGORY UCLASS_GPIO
+#include <common.h>
#include <dm.h>
#include <dt-structs.h>
#include <log.h>
* Author: Ryder Lee <ryder.lee@mediatek.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm/device-internal.h>
#include <dm/lists.h>
* Author: Igor Prusov <ivprusov@sberdevices.ru>
*/
+#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
#include <dt-bindings/gpio/meson-a1-gpio.h>
#include <log.h>
#include <asm/gpio.h>
+#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
#include <linux/io.h>
* Author: Xingyu Chen <xingyu.chen@amlogic.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
#include <dt-bindings/gpio/meson-axg-gpio.h>
* Author: Yixun Lan <yixun.lan@amlogic.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
#include <dt-bindings/gpio/meson-g12a-gpio.h>
#include <log.h>
#include <asm/gpio.h>
+#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
#include <linux/bitops.h>
* Copyright (C) 2016 Endless Mobile, Inc.
*/
+#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
#include <dt-bindings/gpio/meson-gxbb-gpio.h>
* Copyright (C) 2016 Endless Mobile, Inc.
*/
+#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
#include <dt-bindings/gpio/meson-gxl-gpio.h>
* (C) Copyright 2016 - Beniamino Galvani <b.galvani@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
#include <asm/gpio.h>
#include <asm/system.h>
+#include <common.h>
#include <config.h>
#include <dm.h>
#include <dm/device-internal.h>
* Copyright (c) 2018 Microsemi Corporation
*/
+#include <common.h>
#include <config.h>
#include <dm.h>
#include <dm/device-internal.h>
* Copyright (c) 2018 Microsemi Corporation
*/
+#include <common.h>
#include <config.h>
#include <dm.h>
#include <dm/device-internal.h>
#include <asm/gpio.h>
#include <asm/system.h>
+#include <common.h>
#include <config.h>
#include <dm.h>
#include <dm/device-internal.h>
* Copyright (c) 2019 Microsemi Corporation
*/
+#include <common.h>
#include <config.h>
#include <dm.h>
#include <dm/device-internal.h>
* Copyright (c) 2019 Microsemi Corporation
*/
+#include <common.h>
#include <config.h>
#include <dm.h>
#include <dm/device-internal.h>
* Author: Weijie Gao <weijie.gao@mediatek.com>
*/
+#include <common.h>
#include <dm.h>
#include <asm/global_data.h>
#include <dm/pinctrl.h>
* Author: Weijie Gao <weijie.gao@mediatek.com>
*/
+#include <common.h>
#include <dm.h>
#include <malloc.h>
#include <dm/pinctrl.h>
* https://spdx.org/licenses
*/
+#include <common.h>
#include <config.h>
#include <dm.h>
#include <malloc.h>
// SPDX-License-Identifier: GPL-2.0-or-later
// (C) 2022 Pali Rohár <pali@kernel.org>
+#include <common.h>
#include <config.h>
#include <dm.h>
#include <dm/devres.h>
* https://spdx.org/licenses
*/
+#include <common.h>
#include <config.h>
#include <fdtdec.h>
#include <errno.h>
* Bongyu, KOO <freestyle@nexell.co.kr>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <asm/global_data.h>
* (C) Copyright 2019 Stefan Bosch <stefan_b@posteo.net>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <asm/global_data.h>
* Copyright (C) 2016 Peng Fan <van.freenix@gmail.com>
*/
+#include <common.h>
#include <malloc.h>
#include <mapmem.h>
#include <asm/global_data.h>
* Copyright (C) 2016 Peng Fan <van.freenix@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
* Copyright (C) 2016 Peng Fan <van.freenix@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
* Copyright (C) 2016 Peng Fan <van.freenix@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
* Peng Fan <peng.fan@nxp.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
* Copyright 2018 NXP
*/
+#include <common.h>
#include <asm/global_data.h>
#include <dm/device.h>
#include <dm/pinctrl.h>
*
*/
+#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
* Author(s): Giulio Benetti <giulio.benetti@benettiengineering.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
* Lukasz Majewski, DENX Software Engineering, lukma@denx.de
*/
+#include <common.h>
#include <log.h>
#include <asm/global_data.h>
#include <dm/device_compat.h>
* Copyright 2018-2019 NXP
*/
+#include <common.h>
#include <errno.h>
#include <linux/bitops.h>
#include <asm/io.h>
* Lukasz Majewski, DENX Software Engineering, lukma@denx.de
*/
+#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
* (C) Copyright 2021 Mark Kettenis <kettenis@openbsd.org>
*/
+#include <common.h>
#include <dm.h>
#include <dm/device-internal.h>
#include <dm/pinctrl.h>
* Wenyou.Yang <wenyou.yang@atmel.com>
*/
+#include <common.h>
#include <dm.h>
#include <asm/global_data.h>
#include <dm/device-internal.h>
* Wenyou.Yang <wenyou.yang@atmel.com>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <asm/global_data.h>
* Copyright (C) 2015 Masahiro Yamada <yamada.masahiro@socionext.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <linux/compat.h>
* Copyright (C) 2020 Sean Anderson <seanga2@gmail.com>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dm/pinctrl.h>
* based on source code of Shlomi Gridish
*/
+#include <common.h>
#include <linux/errno.h>
#include <asm/io.h>
#include <asm/immap_83xx.h>
* Copyright (C) 2015 Masahiro Yamada <yamada.masahiro@socionext.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
#include <dt-bindings/pinctrl/sandbox-pinmux.h>
* Copyright (C) 2021 Dario Binacchi <dariobin@libero.it>
*/
+#include <common.h>
#include <mapmem.h>
#include <dm.h>
#include <dm/device_compat.h>
* Author(s): Patrice Chotard, <patrice.chotard@foss.st.com> for STMicroelectronics.
*/
+#include <common.h>
#include <bitfield.h>
#include <dm.h>
#include <errno.h>
#define LOG_CATEGORY UCLASS_PINCTRL
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <i2c.h>
#define LOG_CATEGORY UCLASS_PINCTRL
+#include <common.h>
#include <malloc.h>
#include <asm/global_data.h>
#include <dm/device_compat.h>
* Copyright (C) 2021 Xilinx, Inc. All rights reserved.
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <malloc.h>
* Copyright (c) 2015 Microchip Technology Inc.
* Written by Purna Chandra Mandal <purna.mandal@microchip.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
#define LOG_CATEGORY UCLASS_PINCTRL
+#include <common.h>
#include <dm.h>
#include <hwspinlock.h>
#include <log.h>
*
*/
+#include <common.h>
#include <dm.h>
#include "pinctrl-qcom.h"
*
*/
+#include <common.h>
#include <dm.h>
#include "pinctrl-qcom.h"
* Author: Robert Marko <robert.marko@sartura.hr>
*/
+#include <common.h>
#include <dm.h>
#include "pinctrl-qcom.h"
*
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <asm/io.h>
* (C) Copyright 2022 Sumit Garg <sumit.garg@linaro.org>
*/
+#include <common.h>
#include <dm.h>
#include "pinctrl-qcom.h"
*
*/
+#include <common.h>
#include <dm.h>
#include "pinctrl-qcom.h"
* (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <dm/pinctrl.h>
* (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
#include <regmap.h>
* (C) Copyright 2021 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
#include <regmap.h>
* (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
#include <regmap.h>
* (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <dm/pinctrl.h>
* (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <dm/pinctrl.h>
* (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <dm/pinctrl.h>
* (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <dm/pinctrl.h>
* (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <dm/pinctrl.h>
* (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <dm/pinctrl.h>
* (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <dm/pinctrl.h>
* (C) Copyright 2020 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
#include <regmap.h>
* (C) Copyright 2021 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
#include <regmap.h>
* (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <dm/pinctrl.h>
* (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <dm/pinctrl.h>
* (C) Copyright 2020 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <dm/pinctrl.h>
* Author: Jianlong Huang <jianlong.huang@starfivetech.com>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dm/device-internal.h>
/* Tegra114 high-level function multiplexing */
+#include <common.h>
#include <log.h>
#include <asm/arch/clock.h>
#include <asm/arch/funcmux.h>
/* Tegra124 high-level function multiplexing */
+#include <common.h>
#include <log.h>
#include <asm/arch/clock.h>
#include <asm/arch/funcmux.h>
*/
/* Tegra20 high-level function multiplexing */
+#include <common.h>
#include <log.h>
#include <asm/arch/clock.h>
#include <asm/arch/funcmux.h>
/* Tegra210 high-level function multiplexing */
+#include <common.h>
#include <log.h>
#include <asm/arch/clock.h>
#include <asm/arch/funcmux.h>
/* Tegra30 high-level function multiplexing */
+#include <common.h>
#include <log.h>
#include <asm/arch/clock.h>
#include <asm/arch/funcmux.h>
* Copyright (c) 2011 The Chromium OS Authors.
*/
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <asm/arch/pinmux.h>
* Copyright (c) 2010-2014, NVIDIA CORPORATION. All rights reserved.
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/pinmux.h>
* Copyright (c) 2013-2014, NVIDIA CORPORATION. All rights reserved.
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/pinmux.h>
/* Tegra20 pin multiplexing functions */
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/pinmux.h>
* Copyright (c) 2010-2014, NVIDIA CORPORATION. All rights reserved.
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/pinmux.h>
* Author: Masahiro Yamada <yamada.masahiro@socionext.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <linux/bitops.h>
* Author: Masahiro Yamada <yamada.masahiro@socionext.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
* Author: Masahiro Yamada <yamada.masahiro@socionext.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
* Author: Masahiro Yamada <yamada.masahiro@socionext.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
* Author: Masahiro Yamada <yamada.masahiro@socionext.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
* Author: Masahiro Yamada <yamada.masahiro@socionext.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
* Author: Masahiro Yamada <yamada.masahiro@socionext.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
* Author: Masahiro Yamada <yamada.masahiro@socionext.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
* Author: Dai Okamura <dai.okamura@socionext.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
* Author: Masahiro Yamada <yamada.masahiro@socionext.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
#define LOG_CATEGORY UCLASS_ACPI_PMC
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <spl.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <pci.h>
#define LOG_CATEGORY UCLASS_ACPI_PMC
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <asm/io.h>
* (C) Copyright 2012
* Henrik Nordstrom <henrik@henriknordstrom.net>
*/
+#include <common.h>
#include <command.h>
-#include <linux/errno.h>
#include <asm/arch/pmic_bus.h>
#include <axp_pmic.h>
* Henrik Nordstrom <henrik@henriknordstrom.net>
*/
+#include <common.h>
#include <command.h>
#include <asm/arch/pmic_bus.h>
#include <axp_pmic.h>
#include <linux/delay.h>
-#include <linux/errno.h>
#ifdef CONFIG_AXP_ALDO3_VOLT_SLOPE_08
# define AXP209_VRC_SLOPE AXP209_VRC_LDO3_800uV_uS
* (C) Copyright 2013 Oliver Schinagl <oliver@schinagl.nl>
*/
+#include <common.h>
#include <command.h>
#include <errno.h>
#include <asm/arch/pmic_bus.h>
* (C) Copyright 2013 Oliver Schinagl <oliver@schinagl.nl>
*/
+#include <common.h>
#include <command.h>
#include <errno.h>
#include <asm/arch/pmic_bus.h>
* (C) Copyright 2013 Oliver Schinagl <oliver@schinagl.nl>
*/
+#include <common.h>
#include <command.h>
#include <errno.h>
#include <asm/arch/pmic_bus.h>
* (C) Copyright 2013 Oliver Schinagl <oliver@schinagl.nl>
*/
+#include <common.h>
#include <command.h>
#include <errno.h>
#include <asm/arch/pmic_bus.h>
* (C) Copyright 2013 Oliver Schinagl <oliver@schinagl.nl>
*/
+#include <common.h>
#include <command.h>
#include <errno.h>
#include <asm/arch/pmic_bus.h>
* Copyright (C) 2021 Mark Kettenis <kettenis@openbsd.org>
*/
+#include <common.h>
#include <asm/io.h>
#include <dm.h>
#include <dm/device-internal.h>
* Copyright (C) 2017 Álvaro Fernández Rojas <noltari@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <malloc.h>
#include <power-domain-uclass.h>
* Copyright 2017 NXP
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
*/
#define DEBUG
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
* Copyright 2017 NXP
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <malloc.h>
* Copyright (C) 2022 Marek Vasut <marex@denx.de>
*/
+#include <common.h>
#include <asm/io.h>
#include <clk.h>
#include <clk-uclass.h>
* Author: Neil Armstrong <narmstrong@baylibre.com>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
* Author: Neil Armstrong <narmstrong@baylibre.com>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
*/
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <malloc.h>
#include <power-domain-uclass.h>
#define LOG_CATEGORY UCLASS_POWER_DOMAIN
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
* Copyright (c) 2016, NVIDIA CORPORATION.
*/
+#include <common.h>
#include <dm.h>
#include <malloc.h>
#include <power-domain.h>
* Copyright (c) 2016, NVIDIA CORPORATION.
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
* Copyright (c) 2016, NVIDIA CORPORATION.
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
*/
#include <asm/io.h>
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <power-domain-uclass.h>
* Loosely based on Linux kernel ti_sci_pm_domains.c...
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
* Copyright (c) 2021, Xilinx. Inc.
*/
+#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <log.h>
* MA 02111-1307 USA
*/
+#include <common.h>
#include <errno.h>
#include <fdtdec.h>
#include <log.h>
-#include <time.h>
#include <tmu.h>
-#include <asm/io.h>
#include <asm/arch/tmu.h>
#include <asm/arch/power.h>
* Copyright (C) 2019 Frank Wunderlich <frank-w@public-files.de>
*/
+#include <common.h>
#include <command.h>
#include <asm/io.h>
#include <linux/delay.h>
* Copyright (C) ST-Ericsson SA 2010
*/
+#include <common.h>
#include <dm.h>
#include <regmap.h>
#include <syscon.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
#define pr_fmt(fmt) "as3722: " fmt
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
* Copyright (C) 2014 NVIDIA Corporation
*/
+#include <common.h>
#include <dm.h>
#include <asm/gpio.h>
#include <linux/printk.h>
* Copyright 2018 NXP
*/
+#include <common.h>
#include <errno.h>
#include <dm.h>
#include <i2c.h>
* Martin Fuzzey <martin.fuzzey@flowbird.group>
*/
+#include <common.h>
#include <fdtdec.h>
#include <errno.h>
#include <dm.h>
* (C) 2018 Theobroma Systems Design und Consulting GmbH
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <dm/device-internal.h>
* Przemyslaw Marczak <p.marczak@samsung.com>
*/
+#include <common.h>
#include <errno.h>
#include <dm.h>
#include <i2c.h>
* Keerthy <j-keerthy@ti.com>
*/
+#include <common.h>
#include <fdtdec.h>
#include <errno.h>
#include <dm.h>
* Keerthy <j-keerthy@ti.com>
*/
+#include <common.h>
#include <fdtdec.h>
#include <errno.h>
#include <dm.h>
* Przemyslaw Marczak <p.marczak@samsung.com>
*/
+#include <common.h>
#include <fdtdec.h>
#include <errno.h>
#include <dm.h>
* Jaehoon Chung <jh80.chung@samsung.com>
*/
+#include <common.h>
#include <dm.h>
#include <i2c.h>
#include <linux/printk.h>
* Jaehoon Chung <jh80.chung@samsung.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <i2c.h>
*
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fsl_pmic.h>
/*
* Copyright 2020 Gateworks Corporation
*/
+#include <common.h>
#include <errno.h>
#include <dm.h>
#include <i2c.h>
* Keerthy <j-keerthy@ti.com>
*/
+#include <common.h>
#include <fdtdec.h>
#include <errno.h>
#include <dm.h>
* Copyright 2019 NXP
*/
+#include <common.h>
#include <fdtdec.h>
#include <errno.h>
#include <dm.h>
* Peng Fan <Peng.Fan@freescale.com>
*/
+#include <common.h>
#include <fdtdec.h>
#include <errno.h>
#include <dm.h>
#define LOG_CATEGORY UCLASS_PMIC
+#include <common.h>
#include <fdtdec.h>
#include <errno.h>
#include <dm.h>
* Peter Griffin <peter.griffin@linaro.org>
*/
#include <asm/io.h>
+#include <common.h>
#include <linux/delay.h>
#include <power/pmic.h>
#include <power/max8997_muic.h>
* Tim Harvey <tharvey@gateworks.com>
*/
+#include <common.h>
#include <errno.h>
#include <i2c.h>
#include <power/pmic.h>
* Hou Zhiqiang <Zhiqiang.Hou@freescale.com>
*/
+#include <common.h>
#include <errno.h>
#include <i2c.h>
#include <power/pmic.h>
* Copyright 2019 NXP
*/
+#include <common.h>
#include <errno.h>
#include <i2c.h>
#include <power/pmic.h>
* Tim Harvey <tharvey@gateworks.com>
*/
+#include <common.h>
#include <errno.h>
#include <i2c.h>
#include <power/pmic.h>
* Peng Fan <Peng.Fan@freescale.com>
*/
+#include <common.h>
#include <errno.h>
#include <i2c.h>
#include <power/pmic.h>
*
* (C) Copyright 2015 Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <power/pmic.h>
#include <spmi/spmi.h>
* Author: Felipe Balbi <balbi@ti.com>
*/
+#include <common.h>
#include <i2c.h>
#include <linux/errno.h>
#include <power/pmic.h>
* Texas Instruments, <www.ti.com>
*/
+#include <common.h>
#include <i2c.h>
#include <dm.h>
#include <errno.h>
* Texas Instruments, <www.ti.com>
*/
+#include <common.h>
#include <i2c.h>
#include <linux/errno.h>
#include <power/pmic.h>
* Texas Instruments, <www.ti.com>
*/
+#include <common.h>
#include <i2c.h>
#include <power/tps65910.h>
* Copyright (C) EETS GmbH, 2017, Felix Brack <f.brack@eets.ch>
*/
+#include <common.h>
#include <dm.h>
#include <dm/lists.h>
#include <i2c.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <dm/lists.h>
#include <errno.h>
* Stefan Agner <stefan.agner@toradex.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
* Przemyslaw Marczak <p.marczak@samsung.com>
*/
+#include <common.h>
#include <fdtdec.h>
#include <errno.h>
#include <dm.h>
* Copyright (C) 2015 Google, Inc
*/
+#include <common.h>
#include <fdtdec.h>
#include <errno.h>
#include <dm.h>
#define LOG_CATEGORY UCLASS_PMIC
+#include <common.h>
#include <fdtdec.h>
#include <errno.h>
#include <dm.h>
* Copyright (C) 2018, STMicroelectronics - All Rights Reserved
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <i2c.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
* Author: Neil Armstrong <narmstrong@baylibre.com>
*/
+#include <common.h>
#include <fdtdec.h>
#include <errno.h>
#include <dm.h>
* Keerthy <j-keerthy@ti.com>
*/
+#include <common.h>
#include <fdtdec.h>
#include <errno.h>
#include <dm.h>
* (C) Copyright 2008-2009 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <command.h>
#include <log.h>
#include <malloc.h>
* Lukasz Majewski <l.majewski@samsung.com>
*/
-#include <config.h>
+#include <common.h>
#include <log.h>
#include <power/pmic.h>
#include <dialog_pmic.h>
* Lukasz Majewski <l.majewski@samsung.com>
*/
-#include <config.h>
+#include <common.h>
#include <spi.h>
#include <power/pmic.h>
#include <fsl_pmic.h>
* (C) Copyright 2019 NXP
*/
+#include <common.h>
#include <log.h>
#include <linux/types.h>
#include <power/pmic.h>
* (C) Copyright 2008-2009 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <linux/types.h>
#include <power/pmic.h>
#include <spi.h>
* zyw <zyw@rock-chips.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <power/act8846_pmic.h>
* Copyright (C) 2021 Linaro
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
* Placeholder regulator driver for as3722.
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
* ROHM BD71837 regulator driver
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <linux/bitops.h>
* Martin Fuzzey <martin.fuzzey@flowbird.group>
*/
+#include <common.h>
#include <dm.h>
#include <linux/bitops.h>
#include <power/da9063_pmic.h>
* (C) 2018 Theobroma Systems Design und Consulting GmbH
*/
+#include <common.h>
#include <bitfield.h>
#include <errno.h>
#include <dm.h>
* Przemyslaw Marczak <p.marczak@samsung.com>
*/
+#include <common.h>
#include <clk.h>
#include <errno.h>
#include <dm.h>
* Keerthy <j-keerthy@ti.com>
*/
+#include <common.h>
#include <fdtdec.h>
#include <errno.h>
#include <dm.h>
* Keerthy <j-keerthy@ti.com>
*/
+#include <common.h>
#include <fdtdec.h>
#include <errno.h>
#include <dm.h>
* Keerthy <j-keerthy@ti.com>
*/
+#include <common.h>
#include <fdtdec.h>
#include <errno.h>
#include <dm.h>
* Przemyslaw Marczak <p.marczak@samsung.com>
*/
+#include <common.h>
#include <fdtdec.h>
#include <errno.h>
#include <dm.h>
* Copyright (c) 2022 Nuvoton Technology Corp.
*/
+#include <common.h>
#include <dm.h>
#include <asm/io.h>
#include <dm/device_compat.h>
* Keerthy <j-keerthy@ti.com>
*/
+#include <common.h>
#include <fdtdec.h>
#include <errno.h>
#include <dm.h>
* Jean-Jacques Hiblot <jjhiblot@ti.com>
*/
+#include <common.h>
#include <errno.h>
#include <dm.h>
#include <log.h>
* ROHM BD71837 regulator driver
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <linux/bitops.h>
* Peng Fan <peng.fan@nxp.com>
*/
+#include <common.h>
#include <fdtdec.h>
#include <errno.h>
#include <dm.h>
* Author: Lee Jones <lee.jones@linaro.org>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
#define LOG_CATEGORY UCLASS_REGULATOR
+#include <common.h>
#include <errno.h>
#include <dm.h>
#include <log.h>
* Sven Schwermer <sven.svenschwermer@disruptive-technologies.com>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <asm/gpio.h>
* zyw <zyw@rock-chips.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
* Jaehoon Chung <jh80.chung@samsung.com>
*/
+#include <common.h>
#include <fdtdec.h>
#include <errno.h>
#include <dm.h>
* Copyright (C) 2015 Google, Inc
*/
+#include <common.h>
#include <fdtdec.h>
#include <errno.h>
#include <dm.h>
* Przemyslaw Marczak <p.marczak@samsung.com>
*/
+#include <common.h>
#include <fdtdec.h>
#include <errno.h>
#include <dm.h>
#define LOG_CATEGORY UCLASS_REGULATOR
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <scmi_agent.h>
#define LOG_CATEGORY UCLASS_REGULATOR
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <asm/io.h>
* Author: Christophe Kerello <christophe.kerello@st.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <linux/delay.h>
* Tero Kristo <t-kristo@ti.com>
*/
+#include <common.h>
#include <dm.h>
#include <i2c.h>
#include <dm/device_compat.h>
* Copyright (c) 2015 Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
-#include <time.h>
#include <linux/delay.h>
#include <power/pmic.h>
#include <power/regulator.h>
*
*/
+#include <common.h>
#include <fdtdec.h>
#include <errno.h>
#include <dm.h>
* Copyright (C) EETS GmbH, 2017, Felix Brack <f.brack@eets.ch>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <linux/printk.h>
* Keerthy <j-keerthy@ti.com>
*/
+#include <common.h>
#include <fdtdec.h>
#include <errno.h>
#include <dm.h>
* (C) Copyright 2016
* Jelle van der Waa <jelle@vdwaa.nl>
*/
+#include <common.h>
#include <i2c.h>
#include <sy8106a.h>
* (C) Copyright 2010,2011 NVIDIA Corporation <www.nvidia.com>
*/
+#include <common.h>
#include <log.h>
#include <tps6586x.h>
#include <asm/io.h>
#include <i2c.h>
#include <linux/delay.h>
-#include <linux/errno.h>
static struct udevice *tps6586x_dev;
// SPDX-License-Identifier: GPL-2.0+
+#include <common.h>
#include <cros_ec.h>
#include <dm.h>
#include <errno.h>
* Copyright 2016 Google Inc.
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <pwm.h>
* This improvement can disable/enable through PWM_ASPEED_CTRL_DUTY_SYNC_DISABLE.
*/
+#include <common.h>
#include <div64.h>
#include <dm.h>
#include <pwm.h>
* Based on drivers/pwm/pwm-atmel.c from Linux.
*/
#include <clk.h>
+#include <common.h>
#include <div64.h>
#include <dm.h>
#include <linux/bitops.h>
#define LOG_CATEGORY UCLASS_PWM
#include <clk.h>
+#include <common.h>
#include <div64.h>
#include <dm.h>
#include <log.h>
* Basic support for the pwm module on imx6.
*/
+#include <common.h>
#include <div64.h>
#include <dm.h>
#include <log.h>
* current period to complete first).
*/
+#include <common.h>
#include <clk.h>
#include <div64.h>
#include <dm.h>
* Author: Sam Shih <sam.shih@mediatek.com>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <pwm.h>
* - The hardware generates only inverted output.
*/
+#include <common.h>
#include <clk.h>
#include <div64.h>
#include <dm.h>
* Based on Linux kernel drivers/pwm/pwm-tiehrpwm.c
*/
+#include <common.h>
#include <clk.h>
#include <div64.h>
#include <dm.h>
#define LOG_CATEGORY UCLASS_PWM
+#include <common.h>
#include <dm.h>
#include <pwm.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <clk.h>
#include <div64.h>
#include <dm.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <pwm.h>
* Copyright (c) 2017-2018 Vasily Khoruzhick <anarsoul@gmail.com>
*/
+#include <common.h>
#include <div64.h>
#include <dm.h>
#include <log.h>
* Copyright 2016 Google Inc.
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <pwm.h>
* Copyright 2016 Google, Inc
*/
-#include <config.h>
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <errno.h>
/*
* Copyright (C) ASPEED Technology Inc.
*/
-#include <config.h>
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <errno.h>
* Copyright (C) 2009 Florian Fainelli <florian@openwrt.org>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <init.h>
* bandwidth allocated to each AXI slave can be set.
*/
+#include <common.h>
#include <linux/delay.h>
#include <linux/sizes.h>
#include <asm/io.h>
* Author(s): Giulio Benetti <giulio.benetti@benettiengineering.com>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dm/device_compat.h>
* Lokesh Vutla <lokeshvutla@ti.com>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <log.h>
* Copyright (C) 2020-2021 Texas Instruments Incorporated - https://www.ti.com/
*/
+#include <common.h>
#include <config.h>
#include <clk.h>
#include <div64.h>
*/
#include <clk.h>
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <ram.h>
#include <asm/io.h>
* Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/
+#include <common.h>
#include <dm.h>
#include <init.h>
#include <log.h>
#define LOG_CATEGORY UCLASS_RAM
+#include <common.h>
#include <ram.h>
#include <dm.h>
#include <errno.h>
*
* Copyright (C) 2015 Renesas Electronics Europe Ltd
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dm/device_compat.h>
* (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH
*/
-#include <config.h>
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <hang.h>
* (C) Copyright 2018 Rockchip Electronics Co., Ltd.
*/
-#include <config.h>
+#include <common.h>
#include <debug_uart.h>
#include <ram.h>
#include <asm/io.h>
* (C) Copyright 2018 Rockchip Electronics Co., Ltd.
*/
+#include <common.h>
#include <ram.h>
#include <asm/io.h>
#include <asm/arch-rockchip/sdram.h>
* (C) Copyright 2018 Rockchip Electronics Co., Ltd.
*/
+#include <common.h>
#include <ram.h>
#include <asm/io.h>
#include <asm/arch-rockchip/sdram.h>
* (C) Copyright 2018 Rockchip Electronics Co., Ltd.
*/
-#include <config.h>
+#include <common.h>
#include <debug_uart.h>
#include <dm.h>
#include <init.h>
* Adapted from the very similar rk3188 ddr init.
*/
-#include <config.h>
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dt-structs.h>
* (C) Copyright 2017 Rockchip Electronics Co., Ltd.
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <ram.h>
* Adapted from the very similar rk3288 ddr init.
*/
-#include <config.h>
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dt-structs.h>
/*
* (C) Copyright 2017 Rockchip Electronics Co., Ltd
*/
-#include <config.h>
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dt-structs.h>
* Adapted from coreboot.
*/
-#include <config.h>
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dt-structs.h>
* (C) Copyright 2019 Rockchip Electronics Co., Ltd.
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <ram.h>
#include <syscon.h>
/*
* (C) Copyright 2017 Rockchip Electronics Co., Ltd.
*/
-#include <config.h>
+#include <common.h>
#include <clk.h>
#include <debug_uart.h>
#include <dm.h>
* Adapted from coreboot.
*/
-#include <config.h>
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dt-structs.h>
* (C) Copyright 2021 Rockchip Electronics Co., Ltd.
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <ram.h>
#include <syscon.h>
* (C) Copyright 2021 Rockchip Electronics Co., Ltd.
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <ram.h>
#include <syscon.h>
* Copyright (c) 2022 Edgeble AI Technologies Pvt. Ltd.
*/
-#include <config.h>
+#include <common.h>
#include <debug_uart.h>
#include <dm.h>
#include <ram.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <ram.h>
* Pragnesh Patel <pragnesh.patel@sifive.com>
*/
+#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <init.h>
* Author: Yanhong Wang<yanhong.wang@starfivetech.com>
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/regs.h>
#include <linux/delay.h>
* Author: Yanhong Wang<yanhong.wang@starfivetech.com>
*/
+#include <common.h>
#include <asm/io.h>
#include "starfive_ddr.h"
* Author: Yanhong Wang<yanhong.wang@starfivetech.com>
*/
-#include <linux/kernel.h>
+#include <common.h>
#include <asm/io.h>
static const u32 ddr_train_data[] = {
* Author: Yanhong Wang<yanhong.wang@starfivetech.com>
*/
-#include <linux/kernel.h>
+#include <common.h>
#include <asm/io.h>
static const u32 ddr_phy_data[] = {
* Author: Yanhong Wang<yanhong.wang@starfivetech.com>
*/
+#include <common.h>
#include <asm/arch/regs.h>
#include <asm/io.h>
#include <clk.h>
#ifndef __STARFIVE_DDR_H__
#define __STARFIVE_DDR_H__
-#include <linux/kernel.h>
-
#define SEC_CTRL_ADDR 0x1000
#define PHY_BASE_ADDR 0x800
#define PHY_AC_BASE_ADDR 0x1000
#define LOG_CATEGORY UCLASS_RAM
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <init.h>
#define LOG_CATEGORY UCLASS_RAM
+#include <common.h>
#include <clk.h>
#include <log.h>
#include <ram.h>
#define LOG_CATEGORY UCLASS_RAM
+#include <common.h>
#include <command.h>
#include <console.h>
#include <cli.h>
#define LOG_CATEGORY UCLASS_RAM
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <init.h>
#define LOG_CATEGORY UCLASS_RAM
+#include <common.h>
#include <console.h>
#include <init.h>
#include <log.h>
*/
#include <asm/io.h>
-#include <config.h>
+#include <common.h>
#ifdef CONFIG_RAM
#include <dm.h>
#include <ram.h>
* Copyright (c), Vaisala Oyj
*/
+#include <common.h>
#include <asm/gpio.h>
#include <dm.h>
#include <dm/devres.h>
* Copyright (C) 2022 Sean Anderson <sean.anderson@seco.com>
*/
+#include <common.h>
#include <dm.h>
#include <nvmem.h>
#include <reboot-mode/reboot-mode.h>
* Copyright (c), Vaisala Oyj
*/
+#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <reboot-mode/reboot-mode-rtc.h>
* Copyright (c), Vaisala Oyj
*/
+#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <dm/devres.h>
* Keerthy <j-keerthy@ti.com>
*/
+#include <common.h>
#include <hang.h>
#include <cpu_func.h>
#include <dm.h>
* Lokesh Vutla <lokeshvutla@ti.com>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <remoteproc.h>
* Keerthy <j-keerthy@ti.com>
*/
+#include <common.h>
#include <dm.h>
#include <elf.h>
#include <dm/of_access.h>
{
u32 mask2 = 0x38000;
- if (device_is_compatible(dev, "ti,am654-rtu") ||
- device_is_compatible(dev, "ti,am642-rtu"))
+ if (device_is_compatible(dev, "ti,am654-rtu"))
mask2 = 0x6000;
- if (device_is_compatible(dev, "ti,am654-tx-pru") ||
- device_is_compatible(dev, "ti,am642-tx-pru"))
+ if (device_is_compatible(dev, "ti,am654-tx-pru"))
mask2 = 0xc000;
if ((priv->pru_iram & mask2) == mask2)
{ .compatible = "ti,am654-pru"},
{ .compatible = "ti,am654-rtu"},
{ .compatible = "ti,am654-tx-pru" },
- { .compatible = "ti,am642-pru"},
- { .compatible = "ti,am642-rtu"},
- { .compatible = "ti,am642-tx-pru" },
{}
};
/*
* Copyright (C) 2019, STMicroelectronics - All Rights Reserved
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <elf.h>
#define LOG_CATEGORY UCLASS_REMOTEPROC
#define pr_fmt(fmt) "%s: " fmt, __func__
+#include <common.h>
#include <elf.h>
#include <errno.h>
#include <log.h>
* Texas Instruments Incorporated - https://www.ti.com/
*/
#define pr_fmt(fmt) "%s: " fmt, __func__
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
*/
#define LOG_CATEGORY UCLASS_REMOTEPROC
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
*
*/
+#include <common.h>
#include <dm.h>
#include <remoteproc.h>
#include <errno.h>
* Suman Anna <s-anna@ti.com>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
* Suman Anna <s-anna@ti.com>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
* Texas Instruments Incorporated - https://www.ti.com/
*/
#define pr_fmt(fmt) "%s: " fmt, __func__
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
* Copyright 2020 ASPEED Technology Inc.
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <misc.h>
* Copyright 2020 ASPEED Technology Inc.
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <misc.h>
* Copyright (C) 2012 Jonas Gorski <jonas.gorski@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
*/
#include <asm/io.h>
+#include <common.h>
#include <dm.h>
#include <reset-uclass.h>
#include <dm/device_compat.h>
#include <log.h>
#include <malloc.h>
#include <asm/io.h>
+#include <common.h>
#include <dm.h>
#include <dt-bindings/reset/ti-syscon.h>
#include <reset-uclass.h>
#include <log.h>
#include <asm/io.h>
+#include <common.h>
#include <dm.h>
#include <linux/bitops.h>
#include <linux/iopoll.h>
#include <log.h>
#include <malloc.h>
#include <asm/io.h>
+#include <common.h>
#include <dm.h>
#include <dt-bindings/reset/imx7-reset.h>
#include <dt-bindings/reset/imx8mp-reset.h>
*
*/
+#include <common.h>
#include <dm.h>
#include <dm/ofnode.h>
#include <dt-bindings/reset/starfive,jh7110-crg.h>
* Weijie Gao <weijie.gao@mediatek.com>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
* Author: Neil Armstrong <narmstrong@baylibre.com>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
* Author: Weijie Gao <weijie.gao@mediatek.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
*
* Copyright (C) 2020 Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
*/
+#include <common.h>
#include <dm.h>
#include <reset-uclass.h>
#include <asm/arch/msg.h>
* (C) Copyright 2017 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
#define LOG_CATEGORY UCLASS_RESET
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <reset-uclass.h>
* Author: Sagar Kadam <sagar.kadam@sifive.com>
*/
+#include <common.h>
#include <dm.h>
#include <reset-uclass.h>
#include <asm/io.h>
* Maxime Ripard <maxime.ripard@free-electrons.com>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
* Author: Jagan Teki <jagan@amarulasolutions.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
* Copyright (C) 2020 Sean Anderson
*/
+#include <common.h>
#include <dm.h>
#include <regmap.h>
#include <reset.h>
* Loosely based on Linux kernel reset-ti-sci.c...
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
#define LOG_CATEGORY UCLASS_RESET
+#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <log.h>
* Author: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
#define LOG_CATEGORY UCLASS_RESET
+#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <reset-uclass.h>
* Author: Sebastian Reichel <sebastian.reichel@collabora.com>
*/
+#include <common.h>
#include <dm.h>
#include <asm/arch-rockchip/clock.h>
#include <dt-bindings/reset/rockchip,rk3588-cru.h>
* Copyright (c) 2016, NVIDIA CORPORATION.
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
* Copyright (c) 2016, NVIDIA CORPORATION.
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
* Author(s): Patrice Chotard, <patrice.chotard@foss.st.com> for STMicroelectronics.
*/
+#include <common.h>
#include <errno.h>
#include <log.h>
#include <malloc.h>
#define LOG_CATEGORY UCLASS_RESET
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
* Copyright (c) 2016, NVIDIA CORPORATION.
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
* Copyright (c) 2016, NVIDIA CORPORATION.
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
*
*/
+#include <common.h>
#include <dm.h>
#include <i2c.h>
#include <rtc.h>
* Heiko Schocher <hs@denx.de>
* Copyright (C) 2021 Dario Binacchi <dariobin@libero.it>
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <clk.h>
* based on ds1337.c
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <log.h>
* DS1337 Real Time Clock (RTC).
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <log.h>
* based on ds1337.c
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <rtc.h>
#include <i2c.h>
* copied from ds1337.c
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <log.h>
* (C) Copyright 2019, Vaisala Oyj
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <i2c.h>
* This driver emulates a real time clock based on timer ticks.
*/
+#include <common.h>
#include <div64.h>
#include <dm.h>
#include <env.h>
#include <rtc.h>
-#include <time.h>
#include <timestamp.h>
/**
*
*/
+#include <common.h>
#include <dm.h>
#include <rtc.h>
#include <bcd.h>
* time-keeping. It does not change the system time.
*/
+#include <common.h>
#include <dm.h>
#include <i2c.h>
#include <log.h>
* ISL1208 Real Time Clock (RTC).
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <rtc.h>
/* #define DEBUG */
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <log.h>
* Copyright (C) 2008, Guennadi Liakhovetski <lg@denx.de>
*/
+#include <common.h>
#include <rtc.h>
#include <spi.h>
#include <power/pmic.h>
* Date & Time support for the MC146818 (PIXX4) RTC
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <rtc.h>
* TsiChung Liew (Tsi-Chung.Liew@freescale.com)
*/
+#include <common.h>
#include <command.h>
#include <rtc.h>
* Date & Time support for Marvell Integrated RTC
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <rtc.h>
* on behalf of DENX Software Engineering GmbH
*/
+#include <common.h>
#include <rtc.h>
#include <asm/io.h>
#include <asm/arch/imx-regs.h>
/* #define DEBUG */
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <i2c.h>
/* #define DEBUG */
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <log.h>
* reference linux-2.6.20.6/drivers/rtc/rtc-pl031.c
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <errno.h>
* It has 56 bytes of nonvolatile RAM.
*/
-#include <config.h>
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <log.h>
#define LOG_CATEGORY UCLASS_RTC
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
* Michael Buesch <m@bues.ch>
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
+#include <eeprom.h>
#include <i2c.h>
#include <log.h>
#include <rtc.h>
*
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <log.h>
*/
#include <command.h>
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <i2c.h>
#include <rtc.h>
* Epson RX8025 RTC driver.
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <i2c.h>
*/
#include <command.h>
+#include <common.h>
#include <dm.h>
#include <i2c.h>
#include <linux/bitrev.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <i2c.h>
#include <rtc.h>
#define LOG_CATEGORY UCLASS_RTC
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <malloc.h>
#define LOG_CATEGORY UCLASS_RTC
+#include <common.h>
#include <dm.h>
#include <rtc.h>
#include <asm/io.h>
#define LOG_CATEGORY UCLASS_SCSI
+#include <common.h>
#include <dm.h>
#include <os.h>
#include <malloc.h>
#define LOG_CATEGORY UCLASS_SCSI
+#include <common.h>
#include <dm.h>
#include <scsi.h>
#define LOG_CATEGORY UCLASS_SCSI
+#include <common.h>
#include <blk.h>
#include <bootdev.h>
#include <bootstage.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <bootdev.h>
#include <dm.h>
#include <init.h>
#define LOG_CATEGORY UCLASS_SCSI
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <scsi.h>
ifndef CONFIG_SPL_BUILD
obj-$(CONFIG_USB_TTY) += usbtty.o
endif
-obj-$(CONFIG_UART4_SERIAL) += serial_adi_uart4.o
* Scott McNutt <smcnutt@psyent.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <serial.h>
* Scott McNutt <smcnutt@psyent.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <serial.h>
* this file might be covered by the GNU General Public License.
*/
+#include <common.h>
#include <dm.h>
#include <serial.h>
* Modified to support C structur SoC access by
* Andreas Bießmann <biessmann@corscience.de>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <errno.h>
*/
#include <clock_legacy.h>
-#include <config.h>
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <errno.h>
* U-Boot.
*/
+#include <common.h>
#include <console.h>
#include <dm.h>
#include <os.h>
#define LOG_CATEGORY UCLASS_SERIAL
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <env_internal.h>
#include <errno.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <env_internal.h>
#include <hang.h>
#include <serial.h>
+++ /dev/null
-// SPDX-License-Identifier: GPL-2.0-or-later
-/*
- * (C) Copyright 2022 - Analog Devices, Inc.
- *
- * Written and/or maintained by Timesys Corporation
- *
- * Converted to driver model by Nathan Barrett-Morrison
- *
- * Contact: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
- * Contact: Greg Malysa <greg.malysa@timesys.com>
- *
- */
-
-#include <clk.h>
-#include <dm.h>
-#include <serial.h>
-#include <asm/io.h>
-#include <dm/device_compat.h>
-#include <linux/bitops.h>
-
-/*
- * UART4 Masks
- */
-
-/* UART_CONTROL */
-#define UEN BIT(0)
-#define LOOP_ENA BIT(1)
-#define UMOD (3 << 4)
-#define UMOD_UART (0 << 4)
-#define UMOD_MDB BIT(4)
-#define UMOD_IRDA BIT(4)
-#define WLS (3 << 8)
-#define WLS_5 (0 << 8)
-#define WLS_6 BIT(8)
-#define WLS_7 (2 << 8)
-#define WLS_8 (3 << 8)
-#define STB BIT(12)
-#define STBH BIT(13)
-#define PEN BIT(14)
-#define EPS BIT(15)
-#define STP BIT(16)
-#define FPE BIT(17)
-#define FFE BIT(18)
-#define SB BIT(19)
-#define FCPOL BIT(22)
-#define RPOLC BIT(23)
-#define TPOLC BIT(24)
-#define MRTS BIT(25)
-#define XOFF BIT(26)
-#define ARTS BIT(27)
-#define ACTS BIT(28)
-#define RFIT BIT(29)
-#define RFRT BIT(30)
-
-/* UART_STATUS */
-#define DR BIT(0)
-#define OE BIT(1)
-#define PE BIT(2)
-#define FE BIT(3)
-#define BI BIT(4)
-#define THRE BIT(5)
-#define TEMT BIT(7)
-#define TFI BIT(8)
-#define ASTKY BIT(9)
-#define ADDR BIT(10)
-#define RO BIT(11)
-#define SCTS BIT(12)
-#define CTS BIT(16)
-#define RFCS BIT(17)
-
-/* UART_EMASK */
-#define ERBFI BIT(0)
-#define ETBEI BIT(1)
-#define ELSI BIT(2)
-#define EDSSI BIT(3)
-#define EDTPTI BIT(4)
-#define ETFI BIT(5)
-#define ERFCI BIT(6)
-#define EAWI BIT(7)
-#define ERXS BIT(8)
-#define ETXS BIT(9)
-
-DECLARE_GLOBAL_DATA_PTR;
-
-struct uart4_reg {
- u32 revid;
- u32 control;
- u32 status;
- u32 scr;
- u32 clock;
- u32 emask;
- u32 emaskst;
- u32 emaskcl;
- u32 rbr;
- u32 thr;
- u32 taip;
- u32 tsr;
- u32 rsr;
- u32 txdiv_cnt;
- u32 rxdiv_cnt;
-};
-
-struct adi_uart4_platdata {
- // Hardware registers
- struct uart4_reg *regs;
-
- // Enable divide-by-one baud rate setting
- bool edbo;
-};
-
-static int adi_uart4_set_brg(struct udevice *dev, int baudrate)
-{
- struct adi_uart4_platdata *plat = dev_get_plat(dev);
- struct uart4_reg *regs = plat->regs;
- u32 divisor, uart_base_clk_rate;
- struct clk uart_base_clk;
-
- if (clk_get_by_index(dev, 0, &uart_base_clk)) {
- dev_err(dev, "Could not get UART base clock\n");
- return -1;
- }
-
- uart_base_clk_rate = clk_get_rate(&uart_base_clk);
-
- if (plat->edbo) {
- u16 divisor16 = (uart_base_clk_rate + (baudrate / 2)) / baudrate;
-
- divisor = divisor16 | BIT(31);
- } else {
- // Divisor is only 16 bits
- divisor = 0x0000ffff & ((uart_base_clk_rate + (baudrate * 8)) / (baudrate * 16));
- }
-
- writel(divisor, ®s->clock);
- return 0;
-}
-
-static int adi_uart4_pending(struct udevice *dev, bool input)
-{
- struct adi_uart4_platdata *plat = dev_get_plat(dev);
- struct uart4_reg *regs = plat->regs;
-
- if (input)
- return (readl(®s->status) & DR) ? 1 : 0;
- else
- return (readl(®s->status) & THRE) ? 0 : 1;
-}
-
-static int adi_uart4_getc(struct udevice *dev)
-{
- struct adi_uart4_platdata *plat = dev_get_plat(dev);
- struct uart4_reg *regs = plat->regs;
- int uart_rbr_val;
-
- if (!adi_uart4_pending(dev, true))
- return -EAGAIN;
-
- uart_rbr_val = readl(®s->rbr);
- writel(-1, ®s->status);
-
- return uart_rbr_val;
-}
-
-static int adi_uart4_putc(struct udevice *dev, const char ch)
-{
- struct adi_uart4_platdata *plat = dev_get_plat(dev);
- struct uart4_reg *regs = plat->regs;
-
- if (adi_uart4_pending(dev, false))
- return -EAGAIN;
-
- writel(ch, ®s->thr);
- return 0;
-}
-
-static const struct dm_serial_ops adi_uart4_serial_ops = {
- .setbrg = adi_uart4_set_brg,
- .getc = adi_uart4_getc,
- .putc = adi_uart4_putc,
- .pending = adi_uart4_pending,
-};
-
-static int adi_uart4_of_to_plat(struct udevice *dev)
-{
- struct adi_uart4_platdata *plat = dev_get_plat(dev);
- fdt_addr_t addr;
-
- addr = dev_read_addr(dev);
- if (addr == FDT_ADDR_T_NONE)
- return -EINVAL;
-
- plat->regs = (struct uart4_reg *)addr;
- plat->edbo = dev_read_bool(dev, "adi,enable-edbo");
-
- return 0;
-}
-
-static int adi_uart4_probe(struct udevice *dev)
-{
- struct adi_uart4_platdata *plat = dev_get_plat(dev);
- struct uart4_reg *regs = plat->regs;
-
- /* always enable UART to 8-bit mode */
- writel(UEN | UMOD_UART | WLS_8, ®s->control);
-
- writel(-1, ®s->status);
-
- return 0;
-}
-
-static const struct udevice_id adi_uart4_serial_ids[] = {
- { .compatible = "adi,uart4" },
- { }
-};
-
-U_BOOT_DRIVER(serial_adi_uart4) = {
- .name = "serial_adi_uart4",
- .id = UCLASS_SERIAL,
- .of_match = adi_uart4_serial_ids,
- .of_to_plat = adi_uart4_of_to_plat,
- .plat_auto = sizeof(struct adi_uart4_platdata),
- .probe = adi_uart4_probe,
- .ops = &adi_uart4_serial_ops,
- .flags = DM_FLAG_PRE_RELOC,
-};
* Copyright (C) 2015-2016 Wills Wang <wills.wang@live.com>
*/
+#include <common.h>
#include <clock_legacy.h>
#include <dm.h>
#include <div64.h>
*
*/
+#include <common.h>
#include <dm.h>
#include <serial.h>
#include <asm/global_data.h>
/* Simple U-Boot driver for the BCM283x mini UART */
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <watchdog.h>
* Copyright (c) 2018 Alexander Graf <agraf@suse.de>
*/
+#include <common.h>
#include <dm.h>
#include <asm/gpio.h>
#include <dm/pinctrl.h>
#define LOG_CATGEGORY UCLASS_SERIAL
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <ns16550.h>
*
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <watchdog.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <debug_uart.h>
#include <dm.h>
#include <efi.h>
* Copyright (C) 2022 Ventana Micro Systems Inc.
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
* Copyright (c) 2017 Intel Corporation
*/
+#include <common.h>
#include <dm.h>
#include <ns16550.h>
#include <serial.h>
* (C) Copyright 2013-2016 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <watchdog.h>
* Copyright 2013 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <clock_legacy.h>
#include <clk.h>
#include <dm.h>
* as serial console interface.
*/
+#include <common.h>
#include <dm.h>
#include <asm/global_data.h>
#include <dm/platform_data/serial_coldfire.h>
* (C) Copyright 2016 Beniamino Galvani <b.galvani@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <serial.h>
* Based on Linux driver.
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <errno.h>
#include <asm/io.h>
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <linux/delay.h>
*/
#include <clk.h>
-#include <config.h>
+#include <common.h>
#include <div64.h>
#include <dm.h>
#include <dm/device_compat.h>
* Copyright (C) 2021 Pali Rohár <pali@kernel.org>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <serial.h>
* (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <watchdog.h>
/*
* Copyright (C) 2023 Marek Vasut <marex@denx.de>
*/
+#include <common.h>
#include <dm.h>
#include <malloc.h>
#include <serial.h>
* Copyright (c) 2021 Nuvoton Technology Corp.
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <serial.h>
* Rob Taylor, Flying Pig Systems. robt@flyingpig.com.
*/
-#include <config.h>
+#include <common.h>
#include <clock_legacy.h>
#include <ns16550.h>
#include <serial.h>
* Copyright (c) 2015 National Instruments
*/
+#include <common.h>
#include <dm.h>
#include <serial.h>
* Lokesh Vutla <lokeshvutla@ti.com>
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <dt-structs.h>
#include <log.h>
* Copyright (C) 2018 Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <errno.h>
* (c) 2015 Paul Thacker <paul.thacker@microchip.com>
*
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <malloc.h>
/* Simple U-Boot driver for the PrimeCell PL010/PL011 UARTs */
+#include <common.h>
#include <asm/global_data.h>
/* For get_bus_freq() */
#include <clock_legacy.h>
* Copyright (c) 2015 Google, Inc
*/
+#include <common.h>
#include <debug_uart.h>
#include <dm.h>
#include <dt-structs.h>
* Copyright (C) 2022 Stefan Bosch <stefan_b@posteo.net>
*/
+#include <common.h>
#include <dm.h>
#include <asm/arch/clk.h>
#include <asm/arch/reset.h>
* Copyright (C) 2022 Sean Anderson <sean.anderson@seco.com>
*/
+#include <common.h>
#include <dm.h>
#include <malloc.h>
#include <serial.h>
* Copyright (C) 2018 Anup Patel <anup@brainfault.org>
*/
+#include <common.h>
#include <clk.h>
#include <debug_uart.h>
#include <dm.h>
* Author(s): Patrice Chotard, <patrice.chotard@foss.st.com> for STMicroelectronics.
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <serial.h>
#define LOG_CATEGORY UCLASS_SERIAL
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <log.h>
* Author: Masahiro Yamada <yamada.masahiro@socionext.com>
*/
+#include <common.h>
#include <dm.h>
#include <linux/bitfield.h>
#include <linux/bitops.h>
* (C) 2018 NXP
* (C) 2020 EPAM Systems Inc.
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <serial.h>
*/
#include <config.h>
+#include <common.h>
#include <dm.h>
#include <asm/io.h>
#include <linux/bitops.h>
*/
#include <clk.h>
+#include <common.h>
#include <debug_uart.h>
#include <dm.h>
#include <errno.h>
* Bryan O'Donoghue, bodonoghue@codehermit.ie
*/
+#include <common.h>
#include <config.h>
#include <circbuf.h>
#include <env.h>
* Author: Alexey Romanov <avromanov@salutedevices.com>
*/
+#include <common.h>
#include <dm.h>
#include <regmap.h>
#include <sm.h>
* Author: Alexey Romanov <avromanov@salutedevices.com>
*/
+#include <common.h>
#include <sm.h>
#include <sm-uclass.h>
#include <sandbox-sm.h>
* Author: Alexey Romanov <avromanov@salutedevices.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <sm-uclass.h>
* Copyright (c) 2018, Ramon Fried <ramon.fried@gmail.com>
*/
+#include <common.h>
#include <errno.h>
#include <dm.h>
#include <asm/global_data.h>
* Copyright (c) 2018 Ramon Fried <ramon.fried@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <smem.h>
#define LOG_CATEGORY UCLASS_SMEM
+#include <common.h>
#include <dm.h>
#include <smem.h>
#define LOG_CATEGORY UCLASS_SOC
+#include <common.h>
#include <soc.h>
#include <dm.h>
#include <errno.h>
* Dave Gerlach <d-gerlach@ti.com>
*/
+#include <common.h>
#include <dm.h>
#include <soc.h>
* Dave Gerlach <d-gerlach@ti.com>
*/
+#include <common.h>
#include <dm.h>
#include <soc.h>
* Copyright (C) 2021 Xilinx, Inc.
*/
+#include <common.h>
#include <dm.h>
#include <soc.h>
#include <zynqmp_firmware.h>
* Copyright (C) 2022, Advanced Micro Devices, Inc.
*/
+#include <common.h>
#include <dm.h>
#include <soc.h>
#include <zynqmp_firmware.h>
* Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <asm/cache.h>
* Copyright (C) 2018 Texas Instruments Incorporated - https://www.ti.com
*/
+#include <common.h>
#include <cpu_func.h>
#include <log.h>
#include <asm/cache.h>
*/
#include <errno.h>
+#include <common.h>
#include <asm/io.h>
#include <asm/ti-common/keystone_serdes.h>
#include <linux/bitops.h>
* Copyright (C) 2020-2021 Texas Instruments Incorporated - https://www.ti.com/
*/
+#include <common.h>
#include <dm.h>
#include <dm/of_access.h>
#include <errno.h>
static const struct udevice_id pruss_ids[] = {
{ .compatible = "ti,am654-icssg"},
- { .compatible = "ti,am642-icssg"},
{}
};
#define LOG_CATEGORY UCLASS_I2S
+#include <common.h>
#include <dm.h>
#include <i2s.h>
#include <log.h>
#define LOG_CATEGORY UCLASS_SOUND
+#include <common.h>
#include <audio_codec.h>
#include <dm.h>
#include <i2s.h>
#define LOG_CATEGORY UCLASS_AUDIO_CODEC
+#include <common.h>
#include <dm.h>
#include <audio_codec.h>
* Parts taken from coreboot
*/
+#include <common.h>
#include <dm.h>
#include <i2c.h>
#include <irq.h>
#define LOG_CATEGORY UCLASS_SOUND
+#include <common.h>
#include <dm.h>
#include <hda_codec.h>
#include <log.h>
#define LOG_CATEGORY UCLASS_I2S
+#include <common.h>
#include <dm.h>
#include <i2s.h>
* Copyright 2018 Google LLC
*/
+#include <common.h>
#include <dm.h>
#include <sound.h>
#include <asm/i8254.h>
#define LOG_CATEGORY UCLASS_SOUND
+#include <common.h>
#include <dm.h>
#include <hda_codec.h>
#include <log.h>
* following the changes made in max98095.c
*/
+#include <common.h>
#include <audio_codec.h>
#include <div64.h>
#include <dm.h>
* Copyright 2011 Maxim Integrated Products
*/
+#include <common.h>
#include <audio_codec.h>
#include <div64.h>
#include <dm.h>
* Modified for U-Boot by R. Chandrasekar (rcsekar@samsung.com)
*/
+#include <common.h>
#include <audio_codec.h>
#include <dm.h>
#include <div64.h>
* Parts taken from coreboot
*/
+#include <common.h>
#include <audio_codec.h>
#include <dm.h>
#include <log.h>
* Copyright 2011 Maxim Integrated Products
*/
+#include <common.h>
#include <div64.h>
#include <i2c.h>
#include <i2s.h>
#define LOG_CATEGORY UCLASS_I2S
+#include <common.h>
#include <dm.h>
#include <i2s.h>
#include <log.h>
#define LOG_CATEGORY UCLASS_SOUND
+#include <common.h>
#include <audio_codec.h>
#include <clk.h>
#include <dm.h>
#define LOG_CATEGORY UCLASS_SOUND
+#include <common.h>
#include <audio_codec.h>
#include <dm.h>
#include <i2c.h>
* R. Chandrasekar <rcsekar@samsung.com>
*/
+#include <common.h>
#include <dm.h>
#include <i2s.h>
#include <log.h>
#include <sound.h>
-#include <time.h>
#include <asm/arch/clk.h>
#include <asm/arch/pinmux.h>
#include <asm/arch/i2s-regs.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <audio_codec.h>
#include <dm.h>
#include <i2s.h>
#define LOG_CATEGORY UCLASS_SOUND
+#include <common.h>
#include <audio_codec.h>
#include <dm.h>
#include <i2s.h>
#define LOG_CATEGORY UCLASS_SOUND
+#include <common.h>
#include <dm.h>
#include <i2s.h>
#include <log.h>
* R. Chandrasekar <rcsekar@samsung.com>
*/
+#include <common.h>
#include <log.h>
#include <sound.h>
-#include <linux/string.h>
void sound_create_square_wave(uint sample_rate, unsigned short *data, int size,
uint freq, uint channels)
#define LOG_CATEGORY UCLASS_MISC
+#include <common.h>
#include <dm.h>
#include <i2s.h>
#include <log.h>
#include <misc.h>
-#include <time.h>
#include <asm/io.h>
#include <asm/arch-tegra/tegra_ahub.h>
#include <asm/arch-tegra/tegra_i2s.h>
*/
#define LOG_CATEGORY UCLASS_I2S
+#include <common.h>
#include <dm.h>
#include <i2s.h>
#include <log.h>
#define LOG_CATEGORY UCLASS_I2S
+#include <common.h>
#include <audio_codec.h>
#include <dm.h>
#include <i2s.h>
* Copyright (C) 2012 Samsung Electronics
* R. Chandrasekar <rcsekar@samsung.com>
*/
+#include <common.h>
#include <audio_codec.h>
#include <dm.h>
#include <div64.h>
* Copyright (c) 2005-2008 Analog Devices Inc.
* Copyright (C) 2010 Thomas Chou <thomas@wytron.com.tw>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
* Copyright The Asahi Linux Contributors
*/
+#include <common.h>
#include <dm.h>
#include <clk.h>
#include <spi.h>
* Author: Rick Chen (rick@andestech.com)
*/
+#include <common.h>
#include <clk.h>
#include <log.h>
#include <malloc.h>
* Copyright (C) 2015-2016 Wills Wang <wills.wang@live.com>
*/
+#include <common.h>
#include <clock_legacy.h>
#include <spi.h>
#include <dm.h>
#include <malloc.h>
#include <asm/io.h>
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
/*
* Copyright (C) 2007 Atmel Corporation
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <fdtdec.h>
* Copyright (C) 2012-2013 Jonas Gorski <jogo@openwrt.org>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <log.h>
* Copyright (C) 2010 Tanguy Bouzeloc <tanguy.bouzeloc@efixo.com>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <log.h>
* Copyright (C) 2021 Broadcom Ltd
*/
+#include <common.h>
#include <asm/io.h>
#include <clk.h>
#include <spi.h>
* Author: PengPeng Chen <pengpeng.chen@cortina-access.com>
*/
+#include <common.h>
#include <malloc.h>
#include <clk.h>
#include <dm.h>
*/
#include <clk.h>
+#include <common.h>
#include <memalign.h>
#include <wait_bit.h>
#include <asm/io.h>
* Altera Corporation <www.altera.com>
*/
+#include <common.h>
#include <clk.h>
#include <log.h>
#include <dm.h>
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <dma.h>
* TODO: fsl_dspi.c should work as a driver for the DSPI module.
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <asm/global_data.h>
* Copyright (C) 2007 Atmel Corporation
*/
-#include <config.h>
+#include <common.h>
#include <log.h>
#include <spi.h>
#include <malloc.h>
*/
#define LOG_CATEGORY UCLASS_SPI
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dm/device_compat.h>
* Padmavathi Venna <padma.v@samsung.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
#include <asm/global_data.h>
#include <linux/math64.h>
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
* Chuanhua Han (chuanhua.han@nxp.com)
*/
-#include <config.h>
+#include <common.h>
#include <log.h>
#include <linux/bitops.h>
#include <linux/delay.h>
* Transition to spi-mem in spi-fsl-qspi.c
*/
+#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <log.h>
#define LOG_CATEGORY UCLASS_SPI
+#include <common.h>
#include <bootstage.h>
#include <div64.h>
#include <dm.h>
* Copyright 2020-2021 Broadcom
*/
+#include <common.h>
#include <dm.h>
#include <spi.h>
#include <spi-mem.h>
* Derived from drivers/spi/mpc8xxx_spi.c
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
* Amlogic Meson SPI Flash Controller driver
*/
+#include <common.h>
#include <log.h>
#include <spi.h>
#include <clk.h>
* Naga Sureshkumar Relli <nagasuresh.relli@microchip.com>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <log.h>
*
*/
+#include <common.h>
#include <dm.h>
#include <malloc.h>
#include <mpc8xx.h>
* With help from the common/soft_spi and arch/powerpc/cpu/mpc8260 drivers
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <errno.h>
* Copyright (c) 2018 Microsemi Corporation
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
* Copyright (C) 2014-2015 Felix Fietkau <nbd@nbd.name>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <log.h>
* Author: Weijie Gao <weijie.gao@mediatek.com>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <errno.h>
// Some parts are based on drivers/spi/spi-mtk-nor.c of linux version
#include <clk.h>
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <dm/device.h>
* Copyright (C) 2016 Stefan Roese <sr@denx.de>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
* Copyright (C) 2008, Guennadi Liakhovetski <lg@denx.de>
*/
-#include <config.h>
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <log.h>
* GPIO driven chipselects are not supported.
*/
+#include <common.h>
#include <dm.h>
#include <dt-structs.h>
#include <cpu_func.h>
* Copyright (c) 2021 Nuvoton Technology.
*/
+#include <common.h>
#include <dm.h>
#include <spi.h>
#include <clk.h>
* Frieder Schrempf <frieder.schrempf@kontron.de>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dm/device_compat.h>
* Modified by Ruslan Araslanov <ruslan.araslanov@vitecmm.com>
*/
+#include <common.h>
#include <dm.h>
#include <spi.h>
-#include <time.h>
#include <malloc.h>
#include <asm/global_data.h>
#include <asm/io.h>
* Purna Chandra Mandal <purna.mandal@microchip.com>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <log.h>
*/
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <fdtdec.h>
* Copyright (C) 2018 Marek Vasut <marek.vasut@gmail.com>
*/
+#include <common.h>
#include <asm/global_data.h>
#include <asm/io.h>
#include <clk.h>
* Peter, Software Engineering, <superpeter.cai@gmail.com>.
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dt-structs.h>
#define LOG_CATEGORY UCLASS_SPI
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
#define LOG_CATEGORY UCLASS_SPI
+#include <common.h>
#include <console.h>
#include <malloc.h>
#include <spi.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
#include <asm/io.h>
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <linux/bitops.h>
#define LOG_CATEGORY UCLASS_SPI_EMUL
+#include <common.h>
#include <dm.h>
#include <spi.h>
#include <spi_flash.h>
#include <linux/pm_runtime.h>
#include "internals.h"
#else
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <malloc.h>
* zhengxunli <zhengxunli@mxic.com.tw>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <errno.h>
#include <asm/gpio.h>
#include <asm/io.h>
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <linux/delay.h>
* SiFive SPI controller driver (master mode only)
*/
+#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <malloc.h>
*/
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <linux/bitfield.h>
* SPDX-License-Identifier: GPL-2.0+
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <log.h>
*/
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <time.h>
#define LOG_CATEGORY UCLASS_SPI
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
* Copyright (c) 2011 The Chromium OS Authors.
*/
+#include <common.h>
#include <fdtdec.h>
#include <malloc.h>
#include <spi.h>
#define LOG_CATEGORY UCLASS_SPI
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <log.h>
#define LOG_CATEGORY UCLASS_SPI
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <errno.h>
* Copyright (c) 2010-2013 NVIDIA Corporation
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <time.h>
* With more help from omap3_spi SPI driver
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
* Copyright (c) 2010-2013 NVIDIA Corporation
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <time.h>
*
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <time.h>
* Copyright (C) 2013, Texas Instruments, Incorporated
*/
+#include <common.h>
#include <cpu_func.h>
#include <log.h>
#include <asm/cache.h>
*/
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <time.h>
*/
#include <config.h>
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
*/
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <log.h>
* Xilinx Zynq PS SPI controller driver (master mode only)
*/
+#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <log.h>
#define LOG_CATEGORY UCLASS_SPI
+#include <common.h>
#include <cpu_func.h>
#include <log.h>
#include <asm/arch/sys_proto.h>
* Loosely based on Little Kernel driver
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
* (C) Copyright 2015 Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <spmi/spmi.h>
#define LOG_CATEGORY UCLASS_SPMI
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <spmi/spmi.h>
* Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/
+#include <common.h>
#include <dm.h>
#include <sysinfo.h>
#include <i2c.h>
* Copyright (C) 2021 Sean Anderson <sean.anderson@seco.com>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <sysinfo.h>
* Copyright (C) 2021 Marek Vasut <marek.vasut+renesas@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <i2c_eeprom.h>
#include <log.h>
* Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/
+#include <common.h>
#include <dm.h>
#include <sysinfo.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <sysinfo.h>
#define LOG_CATEGORY UCLASS_SYSINFO
+#include <common.h>
#include <dm.h>
#include <sysinfo.h>
* Copyright (C) 2012 Jamie Lentin
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
* Andreas Dannenberg <dannenberg@ti.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
#define LOG_CATEGORY UCLASS_SYSRESET
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <dm.h>
* (C) Copyright 2016 Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
#include <asm/io.h>
#include <asm/arch/at91_rstc.h>
#include <clk.h>
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <dm/device_compat.h>
* Copyright (C) 2018 Xilinx, Inc. - Michal Simek
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
* Copyright (C) 2018 Xilinx, Inc. - Michal Simek
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <sysreset.h>
* Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <log.h>
* Copyright (C) 2020 Stefan Roese <sr@denx.de>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <sysreset.h>
* Copyright (C) 2017 Masahiro Yamada <yamada.masahiro@socionext.com>
*/
+#include <common.h>
#include <dm.h>
#include <sysreset.h>
#include <linux/errno.h>
* Author: Weijie Gao <weijie.gao@mediatek.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <sysreset.h>
* (C) Copyright 2017 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <sysreset.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <sysreset.h>
* Copyright 2021, Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
* Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <sysreset.h>
* Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <sysreset.h>
* Author(s): Patrice Chotard, <patrice.chotard@foss.st.com> for STMicroelectronics.
*/
+#include <common.h>
#include <dm.h>
#include <regmap.h>
#include <syscon.h>
* Author: Feng Kan <fkan@apm.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <regmap.h>
* Copyright (C) 2017 Álvaro Fernández Rojas <noltari@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm/device-internal.h>
#include <errno.h>
* Generic reset driver for x86 processor
*/
+#include <common.h>
#include <dm.h>
#include <efi_loader.h>
#include <pch.h>
* (C) Copyright 2016 Cadence Design Systems Inc.
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <sysreset.h>
*/
#include <config.h>
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
*/
#include <config.h>
+#include <common.h>
#include <div64.h>
#include <fuse.h>
#include <log.h>
*/
#include <config.h>
+#include <common.h>
#include <asm/global_data.h>
#include <asm/io.h>
#include <asm/arch/clock.h>
#define LOG_CATEGORY UCLASS_THERMAL
+#include <common.h>
#include <dm.h>
#include <thermal.h>
#include <errno.h>
* Sandbox driver for the thermal uclass.
*/
+#include <common.h>
#include <dm.h>
#include <thermal.h>
use an early timer. These functions must be supported by your timer
driver: timer_early_get_count() and timer_early_get_rate().
-config ADI_SC5XX_TIMER
- bool "ADI ADSP-SC5xx Timer Support"
- depends on TIMER && (SC57X || SC58X || SC59X || SC59X_64)
- help
- gptimer based timer support on ADI's ADSP-SC5xx platforms. Available
- but not required on sc59x-64-based platforms (598 and similar).
- Required on 32-bit platforms (sc57x, sc58x, sc594 and earlier).
-
config ALTERA_TIMER
bool "Altera timer support"
depends on TIMER
# Copyright (C) 2015 Thomas Chou <thomas@wytron.com.tw>
obj-y += timer-uclass.o
-obj-$(CONFIG_ADI_SC5XX_TIMER) += adi_sc5xx_timer.o
obj-$(CONFIG_ALTERA_TIMER) += altera_timer.o
obj-$(CONFIG_$(SPL_)ANDES_PLMT_TIMER) += andes_plmt_timer.o
obj-$(CONFIG_ARC_TIMER) += arc_timer.o
+++ /dev/null
-// SPDX-License-Identifier: GPL-2.0-or-later
-/*
- * (C) Copyright 2022 - Analog Devices, Inc.
- *
- * Written and/or maintained by Timesys Corporation
- *
- * Converted to driver model by Nathan Barrett-Morrison
- *
- * Author: Greg Malysa <greg.malysa@timesys.com>
- * Additional Contact: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
- *
- * dm timer implementation for ADI ADSP-SC5xx SoCs
- *
- */
-
-#include <clk.h>
-#include <dm.h>
-#include <timer.h>
-#include <asm/io.h>
-#include <dm/device_compat.h>
-#include <linux/compiler_types.h>
-
-/*
- * Timer Configuration Register Bits
- */
-#define TIMER_OUT_DIS 0x0800
-#define TIMER_PULSE_HI 0x0080
-#define TIMER_MODE_PWM_CONT 0x000c
-
-#define __BFP(m) u16 m; u16 __pad_##m
-
-struct gptimer3 {
- __BFP(config);
- u32 counter;
- u32 period;
- u32 width;
- u32 delay;
-};
-
-struct gptimer3_group_regs {
- __BFP(run);
- __BFP(enable);
- __BFP(disable);
- __BFP(stop_cfg);
- __BFP(stop_cfg_set);
- __BFP(stop_cfg_clr);
- __BFP(data_imsk);
- __BFP(stat_imsk);
- __BFP(tr_msk);
- __BFP(tr_ie);
- __BFP(data_ilat);
- __BFP(stat_ilat);
- __BFP(err_status);
- __BFP(bcast_per);
- __BFP(bcast_wid);
- __BFP(bcast_dly);
-};
-
-#define MAX_TIM_LOAD 0xFFFFFFFF
-
-struct adi_gptimer_priv {
- struct gptimer3_group_regs __iomem *timer_group;
- struct gptimer3 __iomem *timer_base;
- u32 prev;
- u64 upper;
-};
-
-static u64 adi_gptimer_get_count(struct udevice *udev)
-{
- struct adi_gptimer_priv *priv = dev_get_priv(udev);
-
- u32 now = readl(&priv->timer_base->counter);
-
- if (now < priv->prev)
- priv->upper += (1ull << 32);
-
- priv->prev = now;
-
- return (priv->upper + (u64)now);
-}
-
-static const struct timer_ops adi_gptimer_ops = {
- .get_count = adi_gptimer_get_count,
-};
-
-static int adi_gptimer_probe(struct udevice *udev)
-{
- struct timer_dev_priv *uc_priv = dev_get_uclass_priv(udev);
- struct adi_gptimer_priv *priv = dev_get_priv(udev);
- struct clk clk;
- u16 imask;
- int ret;
-
- priv->timer_group = dev_remap_addr_index(udev, 0);
- priv->timer_base = dev_remap_addr_index(udev, 1);
- priv->upper = 0;
- priv->prev = 0;
-
- if (!priv->timer_group || !priv->timer_base) {
- dev_err(udev, "Missing timer_group or timer_base reg entries\n");
- return -ENODEV;
- }
-
- ret = clk_get_by_index(udev, 0, &clk);
- if (ret < 0) {
- dev_err(udev, "Missing clock reference for timer\n");
- return ret;
- }
-
- ret = clk_enable(&clk);
- if (ret) {
- dev_err(udev, "Failed to enable clock\n");
- return ret;
- }
-
- uc_priv->clock_rate = clk_get_rate(&clk);
-
- /* Enable timer */
- writew(TIMER_OUT_DIS | TIMER_MODE_PWM_CONT | TIMER_PULSE_HI,
- &priv->timer_base->config);
- writel(MAX_TIM_LOAD, &priv->timer_base->period);
- writel(MAX_TIM_LOAD - 1, &priv->timer_base->width);
-
- /* We only use timer 0 in uboot */
- imask = readw(&priv->timer_group->data_imsk);
- imask &= ~(1 << 0);
- writew(imask, &priv->timer_group->data_imsk);
- writew((1 << 0), &priv->timer_group->enable);
-
- return 0;
-}
-
-static const struct udevice_id adi_gptimer_ids[] = {
- { .compatible = "adi,sc5xx-gptimer" },
- { },
-};
-
-U_BOOT_DRIVER(adi_gptimer) = {
- .name = "adi_gptimer",
- .id = UCLASS_TIMER,
- .of_match = adi_gptimer_ids,
- .priv_auto = sizeof(struct adi_gptimer_priv),
- .probe = adi_gptimer_probe,
- .ops = &adi_gptimer_ops,
-};
* Scott McNutt <smcnutt@psyent.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <timer.h>
* associated with timer tick.
*/
+#include <common.h>
#include <dm.h>
#include <timer.h>
#include <asm/io.h>
* Copyright (C) 2016 Synopsys, Inc. All rights reserved.
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <timer.h>
* ARM Cortext A9 global timer driver
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <clk.h>
#include <timer.h>
* Alex Zuepke <azu@sysgo.de>
*/
+#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <timer.h>
* Copyright 2016 Google Inc.
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <timer.h>
* Wenyou.Yang <wenyou.yang@microchip.com>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <timer.h>
* Author: Clément Léger <clement.leger@bootlin.com>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <timer.h>
* Copyright (C) 2018 Xilinx, Inc. (Michal Simek)
*/
+#include <common.h>
#include <bootstage.h>
#include <dm.h>
#include <errno.h>
* Copyright (C) 2018 Marek Vasut <marex@denx.de>
*/
+#include <common.h>
#include <dm.h>
#include <clk.h>
#include <dt-structs.h>
*
* 23/08/2022 Port to DM
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <timer.h>
* Author(s): Giulio Benetti <giulio.benetti@benettiengineering.com>
*/
-#include <config.h>
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <fdtdec.h>
* Author: Claudiu Beznea <claudiu.beznea@microchip.com>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <timer.h>
* Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/
-#include <config.h>
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <irq_func.h>
*/
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <timer.h>
#include <asm/io.h>
* Copyright (C) 2010 Linus Walleij for ST-Ericsson
*/
+#include <common.h>
#include <dm.h>
#include <timer.h>
#include <asm/io.h>
* Copyright (c) 2022 Nuvoton Technology Corp.
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <timer.h>
* Copyright (C) 2015, Texas Instruments, Incorporated
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <timer.h>
// SPDX-License-Identifier: GPL-2.0+
#include <asm/io.h>
-#include <config.h>
+#include <common.h>
#include <div64.h>
#include <dm/device.h>
#include <dm/fdtaddr.h>
* Copyright (C) 2019 Marek Vasut <marek.vasut@gmail.com>
*/
+#include <common.h>
#include <clock_legacy.h>
#include <malloc.h>
#include <asm/global_data.h>
* Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
*/
-#include <config.h>
+#include <common.h>
#include <clk.h>
#include <div64.h>
#include <dm.h>
* This driver provides generic timer support for S-mode U-Boot.
*/
-#include <config.h>
+#include <common.h>
#include <div64.h>
#include <dm.h>
#include <errno.h>
* Copyright (C) 2017 Theobroma Systems Design und Consulting GmbH
*/
+#include <common.h>
#include <bootstage.h>
#include <dm.h>
#include <init.h>
* Copyright (C) 2015 Thomas Chou <thomas@wytron.com.tw>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <timer.h>
* Copyright (C) 2022 Arm Ltd.
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <init.h>
* Author: Kuan Lim Lee <kuanlim.lee@starfivetech.com>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <time.h>
#define LOG_CATEGORY UCLASS_TIMER
-#include <config.h>
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <fdtdec.h>
* Copyright (C) 2022 Svyatoslav Ryhel <clamor95@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <timer.h>
#define LOG_CATEGORY UCLASS_TIMER
+#include <common.h>
#include <clk.h>
#include <cpu.h>
#include <dm.h>
* arch/x86/kernel/tsc_msr.c and arch/x86/kernel/tsc.c
*/
+#include <common.h>
#include <bootstage.h>
#include <dm.h>
#include <log.h>
* Michal SIMEK <monstr@monstr.eu>
*/
+#include <common.h>
#include <dm.h>
#include <timer.h>
#include <regmap.h>
#define LOG_CATEGORY UCLASS_TPM
+#include <common.h>
#include <dm.h>
#include <i2c.h>
#include <irq.h>
#include <log.h>
#include <spl.h>
-#include <time.h>
#include <tpm-common.h>
#include <tpm-v2.h>
#include <acpi/acpigen.h>
#define LOG_CATEGORY UCLASS_TPM
+#include <common.h>
#include <tpm-v1.h>
#include <tpm-v2.h>
#include <asm/unaligned.h>
#define LOG_CATEGORY UCLASS_TPM
+#include <common.h>
#include <dm.h>
#include <log.h>
-#include <time.h>
#include <tpm_api.h>
#include <tpm-v1.h>
#include <tpm-v2.h>
* https://github.com/microsoft/ms-tpm-20-ref/tree/master/Samples/ARM32-FirmwareTPM/optee_ta/fTPM
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <tpm-v2.h>
* Based on the Linux TIS core interface and U-Boot original SPI TPM driver
*/
+#include <common.h>
#include <dm.h>
-#include <time.h>
#include <tpm-v2.h>
#include <linux/delay.h>
#include <linux/unaligned/be_byteshift.h>
* Copyright 2022 IBM Corp.
*/
+#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <i2c.h>
* Specifications at www.trustedcomputinggroup.org
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <tpm-v2.h>
* Author: Miquel Raynal <miquel.raynal@bootlin.com>
*/
+#include <common.h>
#include <dm.h>
#include <tpm-v2.h>
#include <asm/state.h>
* It is based on the U-Boot driver tpm_tis_infineon_i2c.c.
*/
+#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <log.h>
#include <spi.h>
-#include <time.h>
#include <tpm-v2.h>
#include <linux/bitops.h>
#include <linux/delay.h>
* Written by Dirk Eibach <dirk.eibach@gdsys.cc>
*/
+#include <common.h>
#include <display_options.h>
#include <dm.h>
#include <tpm-v1.h>
#include <i2c.h>
-#include <time.h>
#include <asm/unaligned.h>
#include <linux/delay.h>
* Version: 2.1.1
*/
+#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <i2c.h>
#include <log.h>
-#include <time.h>
#include <tpm-v1.h>
#include <linux/delay.h>
#include <linux/errno.h>
* slb9635), so this driver provides access to locality 0 only.
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <mapmem.h>
* Copyright (c) 2013 Google, Inc
*/
+#include <common.h>
#include <display_options.h>
#include <dm.h>
#include <tpm-v1.h>
* STMicroelectronics Protocol Stack Specification version 1.2.0.
*/
+#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <i2c.h>
* STMicroelectronics Protocol Stack Specification version 1.2.0.
*/
+#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <log.h>
*/
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <ufs.h>
#include <asm/io.h>
#include <asm/io.h>
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <linux/bitops.h>
* Author: Bin Meng <bmeng@tinylab.org>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <pci.h>
#define LOG_CATEGORY UCLASS_UFS
+#include <common.h>
#include "ufs.h"
#include <dm.h>
#include <bouncebuf.h>
#include <charset.h>
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <dm/device_compat.h>
#ifndef __UFS_H
#define __UFS_H
-#include <linux/types.h>
#include "unipro.h"
struct udevice;
* Copyright (C) 2019 Texas Instruments Incorporated - https://www.ti.com
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dm/device_compat.h>
* Roger Quadros <rogerq@ti.com>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <dm/device-internal.h>
* Texas Instruments Incorporated, <www.ti.com>
*/
+#include <common.h>
#include <dm.h>
#include <asm/global_data.h>
#include <linux/printk.h>
* Author: Tor Krill tor@excito.com
*/
+#include <common.h>
#include <log.h>
#include <usb.h>
#include <asm/io.h>
* Copyright 2013 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <hwconfig.h>
#include <fsl_errata.h>
#include<fsl_usb.h>
* commit cd72f890d2 : usb: dwc3: core: enable phy suspend quirk on non-FPGA
*/
+#include <common.h>
#include <clk.h>
#include <cpu_func.h>
#include <malloc.h>
* Based on dwc3-omap.c.
*/
+#include <common.h>
#include <cpu_func.h>
#include <log.h>
#include <dm.h>
* Based on dwc3-generic.c.
*/
+#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <dm/device-internal.h>
* Author: Neil Armstrong <narmstrong@baylibre.com>
*/
+#include <common.h>
#include <log.h>
#include <dm.h>
#include <dm/device-internal.h>
*/
#define DEBUG
+#include <common.h>
#include <dm.h>
#include <dm/device-internal.h>
#include <dm/lists.h>
* commit 7ee2566ff5 : usb: dwc3: dwc3-omap: get rid of ->prepare()/->complete()
*/
+#include <common.h>
#include <malloc.h>
#include <asm/io.h>
#include <dm.h>
*
* commit c00552ebaf : Merge 3.18-rc7 into usb-next
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <dm/device_compat.h>
* commit 8e74475b0e : usb: dwc3: gadget: use udc-core's reset notifier
*/
+#include <common.h>
#include <cpu_func.h>
#include <log.h>
#include <malloc.h>
* Author: Joonyoung Shim <jy0922.shim@samsung.com>
*/
-#include <asm/io.h>
+#include <common.h>
#include <asm/arch/power.h>
#include <asm/arch/xhci-exynos.h>
#include <linux/delay.h>
* and remove" for phy-omap-usb2.c
*/
+#include <common.h>
#include <malloc.h>
#include <ti-usb-phy-uboot.h>
#include <dm/device_compat.h>
#define LOG_CATEGORY UCLASS_USB
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <usb.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <os.h>
#define LOG_CATEGORY UCLASS_USB_EMUL
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <usb.h>
* Patched for AX88772B by Antmicro Ltd <www.antmicro.com>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <net.h>
* from the Linux AX88179_178a driver
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <usb.h>
* MOSCHIP MCS7830 based (7730/7830/7832) USB 2.0 Ethernet Devices
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
*
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
* Copyright (c) 2015 Realtek Semiconductor Corp. All rights reserved.
*
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <linux/bitops.h>
* Copyright (C) 2007-2008 SMSC (Steve Glendinning)
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
* Copyright (c) 2011 The Chromium OS Authors.
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
#undef VERBOSE_DEBUG
#undef PACKET_TRACE
+#include <common.h>
#include <dm/devres.h>
#include <linux/bug.h>
#include <linux/err.h>
* Bo Shen <voice.shen@atmel.com>
*/
+#include <common.h>
#include <linux/bitops.h>
#include <linux/errno.h>
#include <asm/gpio.h>
*/
#include <config.h>
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/sysmap.h>
#include <asm/kona-common/clk.h>
* Murray.Jensen@cmst.csiro.au, 27-Jan-01.
*/
+#include <common.h>
#include <command.h>
#include <config.h>
#include <cpu_func.h>
* Remy Bohmer <linux@bohmer.net>
*/
+#include <common.h>
#include <asm/unaligned.h>
#include <linux/errno.h>
#include <linux/list.h>
* Lukasz Majewski <l.majewski@samsumg.com>
*/
#undef DEBUG
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <generic-phy.h>
* Lukasz Majewski <l.majewski@samsumg.com>
*/
+#include <common.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/list.h>
* Lukasz Majewski <l.majewski@samsumg.com>
*/
+#include <common.h>
#include <cpu_func.h>
#include <log.h>
#include <linux/bug.h>
* XXX
*/
+#include <common.h>
#include <serial.h>
#include <usbdevice.h>
* Remy Bohmer <linux@bohmer.net>
*/
+#include <common.h>
#include <linux/usb/ch9.h>
#include <linux/errno.h>
#include <linux/usb/gadget.h>
* Copyright (C) 2008 Nokia Corporation
*/
+#include <common.h>
#include <console.h>
#include <env.h>
#include <log.h>
*/
#include <circbuf.h>
+#include <common.h>
#include <console.h>
#include <errno.h>
#include <g_dnl.h>
#include <env.h>
#include <errno.h>
+#include <common.h>
#include <log.h>
#include <malloc.h>
*/
#include <command.h>
#include <config.h>
+#include <common.h>
#include <env.h>
#include <errno.h>
#include <fastboot.h>
#include <hexdump.h>
#include <log.h>
#include <malloc.h>
+#include <common.h>
#include <console.h>
#include <g_dnl.h>
#include <dm/devres.h>
*/
#include <command.h>
#include <config.h>
+#include <common.h>
#include <env.h>
#include <errno.h>
#include <log.h>
*/
#include <errno.h>
+#include <common.h>
#include <console.h>
#include <env.h>
#include <log.h>
*/
#include <command.h>
+#include <common.h>
#include <console.h>
#include <dm.h>
#include <errno.h>
* Lukasz Majewski <l.majewski@samsung.com>
*/
+#include <common.h>
#include <log.h>
#include <malloc.h>
// SPDX-License-Identifier: GPL-2.0+
+#include <common.h>
#include <linux/errno.h>
#include <linux/delay.h>
#include <asm/gpio.h>
* updates to merge with Linux 2.6, better match RNDIS spec
*/
+#include <common.h>
#include <log.h>
#include <net.h>
#include <malloc.h>
#include <malloc.h>
#include <asm/cache.h>
#include <linux/dma-mapping.h>
+#include <common.h>
#include <dm.h>
#include <dm/device-internal.h>
#include <linux/usb/ch9.h>
#define LOG_CATEGORY UCLASS_USB_GADGET_GENERIC
+#include <common.h>
#include <dm.h>
#include <dm/device-internal.h>
#include <linux/printk.h>
* Remy Bohmer <linux@bohmer.net>
*/
+#include <common.h>
#include <linux/errno.h>
#include <linux/usb/ch9.h>
#include <linux/usb/gadget.h>
* Copyright (C) 2014 Marek Vasut <marex@denx.de>
*/
+#include <common.h>
#include <clk.h>
#include <cpu_func.h>
#include <dm.h>
* Author: Neil Armstrong <narmstron@baylibre.com>
*/
+#include <common.h>
#include <dm.h>
#include <reset.h>
#include <clk.h>
* Author(s): Patrice Chotard, <patrice.chotard@foss.st.com> for STMicroelectronics.
*/
+#include <common.h>
#include <log.h>
#include <asm/global_data.h>
#include <asm/io.h>
* Written-by: Bo Shen <voice.shen@atmel.com>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <log.h>
* Vivek Gautam <gautam.vivek@samsung.com>
*/
+#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <log.h>
* Author: Tor Krill tor@excito.com
*/
+#include <common.h>
#include <env.h>
#include <log.h>
#include <pci.h>
* Copyright (C) 2015 Alexey Brodkin <abrodkin@synopsys.com>
*/
+#include <common.h>
#include <clk.h>
#include <log.h>
#include <dm/device_compat.h>
*
* All rights reserved.
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <errno.h>
* Written-by: Prafulla Wadaskar <prafulla@marvell.com>
*/
+#include <common.h>
#include <log.h>
#include <asm/global_data.h>
#include <asm/io.h>
* Based on Linux driver
*/
+#include <common.h>
#include <dm.h>
#include <dm/lists.h>
#include <errno.h>
* Copyright (C) 2010 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <log.h>
#include <usb.h>
#include <errno.h>
* Copyright (C) 2010 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <clk.h>
#include <log.h>
#include <usb.h>
* on behalf of DENX Software Engineering GmbH
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/imx-regs.h>
#include <errno.h>
* Copyright (c) 2021 Nuvoton Technology Corp.
*/
+#include <common.h>
#include <dm.h>
#include <generic-phy.h>
#include <reset.h>
*
*/
+#include <common.h>
#include <log.h>
-#include <time.h>
#include <usb.h>
#include <linux/delay.h>
#include <usb/ulpi.h>
* All rights reserved.
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <init.h>
* Copyright (c) 2013 Lucas Stach
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <linux/delay.h>
* Based on ehci-mx6 driver
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <usb.h>
* USB Low level initialization(Specific to zynq)
*/
+#include <common.h>
#include <dm.h>
#include <usb.h>
#include <asm/arch/hardware.h>
* DENX Software Engineering <mk@denx.de>
*/
+#include <common.h>
#include <asm/arch/clk.h>
int usb_cpu_init(void)
* Copyright (C) 2012 Sughosh Ganu <urwithsughosh@gmail.com>
*/
+#include <common.h>
#include <malloc.h>
#include <asm/io.h>
#include <clk.h>
* Copyright (C) 2015 Alexey Brodkin <abrodkin@synopsys.com>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <log.h>
* to activate workaround for bug #41 or this driver will NOT work!
*/
-#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <asm/byteorder.h>
#include <dm.h>
* Copyright (c) 2015 Tyco Fire Protection Products.
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <init.h>
* Copyright (c) 2021 Nuvoton Technology Corp.
*/
+#include <common.h>
#include <dm.h>
#include <generic-phy.h>
#include <reset.h>
*
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <pci.h>
* Copyright (C) 2008 Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
*/
+#include <common.h>
#include <console.h>
#include <dm.h>
#include <log.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <usb.h>
#define LOG_CATEGORY UCLASS_USB
+#include <common.h>
#include <bootdev.h>
#include <dm.h>
#include <errno.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <bootdev.h>
#include <dm.h>
#include <usb.h>
* Copyright (C) 2019 Broadcom.
*/
+#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <usb.h>
*/
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <generic-phy.h>
#include <log.h>
* exynos5 specific PHY-init sequence.
*/
+#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <log.h>
* Author: Ramneek Mehresh<ramneek.mehresh@freescale.com>
*/
+#include <common.h>
#include <log.h>
#include <usb.h>
#include <linux/errno.h>
* Vikas Sajjan <vikas.sajjan@samsung.com>
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <log.h>
*/
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <dm/devres.h>
* MVEBU USB HOST xHCI Controller
*/
+#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <log.h>
* Author: Dan Murphy <dmurphy@ti.com>
*/
+#include <common.h>
#include <log.h>
#include <usb.h>
#include <linux/errno.h>
* All rights reserved.
*/
+#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <init.h>
* Renesas RCar USB HOST xHCI Controller
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <fdtdec.h>
* Vikas Sajjan <vikas.sajjan@samsung.com>
*/
+#include <common.h>
#include <cpu_func.h>
#include <log.h>
#include <asm/byteorder.h>
* The quirk devices support hasn't been given yet.
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <dm/device_compat.h>
*/
#include <hexdump.h>
+#include <common.h>
#include <asm/cache.h>
#include <cpu_func.h>
#include <dm.h>
* (c) 2007 Sebastian Siewior <bigeasy@linutronix.de>
*/
+#include <common.h>
#include <dm.h>
#include <dm/device-internal.h>
#include <dm/device_compat.h>
*
*/
+#include <common.h>
#include <dm.h>
#include <dm/device-internal.h>
#include <dm/device_compat.h>
* Author: Chunfeng Yun <chunfeng.yun@mediatek.com>
*/
+#include <common.h>
#include <dm/lists.h>
#include <linux/iopoll.h>
#include <plat/usb.h>
#else
+#include <common.h>
#include <asm/omap_musb.h>
#include <linux/bug.h>
#include <linux/delay.h>
*
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <dm/device-internal.h>
*
* This file is part of the Inventra Controller Driver for Linux.
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <linux/platform_device.h>
#include <linux/io.h>
#else
+#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <usb.h>
#include <plat/usb.h>
#else
+#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <asm/omap_musb.h>
#include <linux/dma-mapping.h>
#include <linux/slab.h>
#else
+#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <linux/bug.h>
#include <linux/device.h>
#include <linux/interrupt.h>
#else
+#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <linux/printk.h>
#include <linux/list.h>
#include <linux/dma-mapping.h>
#else
+#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <usb.h>
+#include <common.h>
#include <console.h>
#include <dm.h>
#include <malloc.h>
*
* This file is part of the Inventra Controller Driver for Linux.
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <serial.h>
* Based on the dsps "glue layer" code.
*/
+#include <common.h>
#include <dm.h>
#include <asm/global_data.h>
#include <dm/device_compat.h>
*
* This file is part of the Inventra Controller Driver for Linux.
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <generic-phy.h>
* (C) Copyright 2016
* Texas Instruments Incorporated, <www.ti.com>
*/
+#include <common.h>
#include <command.h>
#include <console.h>
#include <dm.h>
// SPDX-License-Identifier: GPL-2.0+
/* Copyright (C) 2019 Stephan Gerhold */
+#include <common.h>
#include <dm.h>
#include <generic-phy.h>
#include <dm/device_compat.h>
* Copyright (c) 2010 Texas Instruments Incorporated
*/
+#include <common.h>
#include <linux/delay.h>
#include "am35x.h"
* Author: Thomas Abraham t-abraham@ti.com, Texas Instruments
*/
+#include <common.h>
#include <linux/bitops.h>
#include "musb_core.h"
* Author: Thomas Abraham t-abraham@ti.com, Texas Instruments
*/
+#include <common.h>
#include <log.h>
#include <usb.h>
#include <linux/delay.h>
* -------------------------------------------------------------------------
*/
+#include <common.h>
#include <hang.h>
#include <serial.h>
#include <usbdevice.h>
* Copyright 2016 Rockchip Electronics Co., Ltd
*/
+#include <common.h>
#include <hang.h>
#include <log.h>
#include <asm/global_data.h>
* Author: Govindraj R <govindraj.raja@ti.com>
*/
+#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <linux/delay.h>
* Copyright (C) 2011 Google, Inc.
*/
+#include <common.h>
#include <asm/io.h>
#include <linux/delay.h>
#include <usb/ulpi.h>
* Freescale Semiconductors
*/
+#include <common.h>
#include <exports.h>
#include <log.h>
#include <linux/delay.h>
* interface for driving eDP TFT displays.
*/
+#include <common.h>
#include <i2c.h>
#include <linux/delay.h>
#include "anx98xx-edp.h"
* Copyright (C) 2012 Atmel Corporation
*/
+#include <common.h>
#include <cpu_func.h>
#include <log.h>
#include <malloc.h>
* Copyright (C) 2007 Atmel Corporation
*/
+#include <common.h>
#include <atmel_lcd.h>
#include <dm.h>
#include <fdtdec.h>
#define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT
+#include <common.h>
#include <dm.h>
#include <backlight.h>
* Author: Patrick Delaunay <patrick.delaunay@foss.st.com>
*/
+#include <common.h>
#include <dm.h>
#include <backlight.h>
#include <log.h>
* (C) Copyright 2012 Stephen Warren
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <video.h>
* BMP handling routines
*/
+#include <common.h>
#include <bmp_layout.h>
#include <command.h>
#include <dm.h>
#define LOG_CATEGORY UCLASS_VIDEO
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <pci.h>
* Copyright (C) 2017 Vasily Khoruzhick <anarsoul@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <i2c.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <i2c.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <video_bridge.h>
* Copyright (c) 2022 Svyatoslav Ryhel <clamor95@gmail.com>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <log.h>
#define LOG_CATEGORY UCLASS_VIDEO_BRIDGE
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <edid.h>
* Copyright (C) 2016 Google, Inc
*/
+#include <common.h>
#include <bios_emul.h>
#include <bootstage.h>
#include <dm.h>
#include <init.h>
#include <log.h>
-#include <time.h>
#include <vesa.h>
#include <video.h>
#include <asm/cpu.h>
* (C) Copyright 2023 Dzmitry Sankouski <dsankouski@gmail.com>
*/
+#include <common.h>
#include <charset.h>
#include <dm.h>
#include <video.h>
* (C) Copyright 2023 Dzmitry Sankouski <dsankouski@gmail.com>
*/
+#include <common.h>
#include <charset.h>
#include <dm.h>
#include <video.h>
* Copyright (c) 2016 Google, Inc
*/
+#include <common.h>
#include <abuf.h>
#include <dm.h>
#include <log.h>
* Copyright (C) 2016, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <init.h>
#include <vesa.h>
#define LOG_CATEGORY UCLASS_DISPLAY
+#include <common.h>
#include <dm.h>
#include <display.h>
#include <edid.h>
#define LOG_CATEGORY UCLASS_DSI_HOST
+#include <common.h>
#include <dm.h>
#include <dsi_host.h>
* Copyright 2017 Jernej Skrabec <jernej.skrabec@siol.net>
*/
+#include <common.h>
#include <fdtdec.h>
#include <log.h>
#include <asm/io.h>
#include <i2c.h>
#include <media_bus_format.h>
-#include <time.h>
#include <linux/delay.h>
-#include <linux/errno.h>
#include "dw_hdmi.h"
struct tmds_n_cts {
* the Linux Kernel driver drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c.
*/
+#include <common.h>
#include <clk.h>
#include <dsi_host.h>
#include <dm.h>
#define LOG_CATEGORY LOGC_EFI
+#include <common.h>
#include <dm.h>
#include <efi_api.h>
#include <log.h>
* Copyright (c) 2022 Svyatoslav Ryhel <clamor95@gmail.com>
*/
+#include <common.h>
#include <backlight.h>
#include <dm.h>
#include <panel.h>
* Author: Donghwa Lee <dh09.lee@samsung.com>
*/
+#include <common.h>
#include <dm.h>
#include <display.h>
#include <fdtdec.h>
*/
#include <config.h>
+#include <common.h>
#include <log.h>
#include <linux/delay.h>
#include <linux/err.h>
*/
#include <config.h>
+#include <common.h>
#include <display.h>
#include <div64.h>
#include <dm.h>
* Author: Donghwa Lee <dh09.lee@samsung.com>
*/
+#include <common.h>
#include <log.h>
#include <malloc.h>
#include <fdtdec.h>
* Author: Donghwa Lee <dh09.lee@samsung.com>
*/
+#include <common.h>
#include <log.h>
#include <linux/delay.h>
#include <linux/err.h>
* Author: Donghwa Lee <dh09.lee@samsung.com>
*/
+#include <common.h>
#include <asm/arch/dsim.h>
#include <asm/arch/mipi_dsim.h>
#include <asm/arch/power.h>
/*
* Copyright (C) 2022 Ondrej Jirman <megi@xff.cz>
*/
+#include <common.h>
#include <backlight.h>
#include <dm.h>
#include <mipi_dsi.h>
* (C) Copyright 2015 Hans de Goede <hdegoede@redhat.com>
*/
+#include <common.h>
#include <malloc.h>
#include <linux/delay.h>
*
*/
+#include <common.h>
#include <dm.h>
#include <panel.h>
#include <spi.h>
* Dirk Eibach, Guntermann & Drunck GmbH, dirk.eibach@gdsys.de
*/
+#include <common.h>
#include <display.h>
#include <dm.h>
#include <log.h>
*/
/* #define DEBUG */
-#include <config.h>
+#include <common.h>
#include <log.h>
#include <linux/delay.h>
#include <linux/types.h>
/* #define DEBUG */
+#include <common.h>
#include <log.h>
#include <linux/delay.h>
#include <linux/types.h>
* (C) Copyright 2004-2010 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <log.h>
#include <part.h>
#include <asm/cache.h>
* Copyright (C) 2016 Google, Inc
*/
+#include <common.h>
#include <bios_emul.h>
#include <dm.h>
#include <errno.h>
#define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT
#include <backlight.h>
+#include <common.h>
#include <dm.h>
#include <i2c.h>
#include <log.h>
* Dirk Eibach, Guntermann & Drunck GmbH, dirk.eibach@gdsys.cc
*/
+#include <common.h>
#include <clk.h>
#include <display.h>
#include <dm.h>
*
*/
#define DEBUG
+#include <common.h>
#include <malloc.h>
#include <video.h>
#include <dm.h>
// SPDX-License-Identifier: GPL-2.0+
/* Copyright (C) 2019 Stephan Gerhold */
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <video.h>
* Author: Neil Armstrong <narmstrong@baylibre.com>
*/
+#include <common.h>
#include <dm.h>
#include <asm/io.h>
* Author: Jorge Ramirez-Ortiz <jramirez@baylibre.com>
*/
+#include <common.h>
#include <display.h>
#include <dm.h>
#include <edid.h>
* Author: Neil Armstrong <narmstrong@baylibre.com>
*/
+#include <common.h>
#include <dm.h>
#include <asm/io.h>
#include <linux/bitfield.h>
* Author: Neil Armstrong <narmstrong@baylibre.com>
*/
+#include <common.h>
#include <dm.h>
#include <edid.h>
#include <linux/bitops.h>
* Author: Neil Armstrong <narmstrong@baylibre.com>
*/
+#include <common.h>
#include <dm.h>
#include <edid.h>
#include <fdtdec.h>
* Author: Neil Armstrong <narmstrong@baylibre.com>
*/
+#include <common.h>
#include <display.h>
#include <dm.h>
#include <efi_loader.h>
#define DEBUG
+#include <common.h>
#include <dm.h>
#include <asm/io.h>
#include <linux/bitops.h>
*
*/
+#include <common.h>
#include <clk.h>
#include <display.h>
#include <dm.h>
* Initialization of LCD interface and setup of SPLASH screen image
*/
+#include <common.h>
#include <dm.h>
#include <part.h>
#include <video.h>
*
* Copyright (C) 2011-2013 Marek Vasut <marex@denx.de>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <env.h>
*/
#include <config.h>
+#include <common.h>
#include <errno.h>
#include <log.h>
#include <asm/arch/reset.h>
*/
#include <config.h>
+#include <common.h>
#include <errno.h>
#include <log.h>
*/
#include <config.h>
+#include <common.h>
#include <errno.h>
-#include <stdio.h>
#include <asm/arch/nexell.h>
#include <asm/arch/reset.h>
*/
#include <config.h>
+#include <common.h>
#include <errno.h>
#include <asm/arch/nexell.h>
*/
#include <config.h>
+#include <common.h>
#include <errno.h>
-#include <stdio.h>
#include <asm/arch/display.h>
#ifndef _S5PXX18_SOC_DISPTOP_H_
#define _S5PXX18_SOC_DISPTOP_H_
-#include <linux/types.h>
#include "s5pxx18_soc_disptype.h"
#define NUMBER_OF_DISPTOP_MODULE 1
*/
#include <config.h>
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <mapmem.h>
* MA 02111-1307 USA
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/dss.h>
* This otm8009a panel driver is inspired from the Linux Kernel driver
* drivers/gpu/drm/panel/panel-orisetech-otm8009a.c.
*/
+#include <common.h>
#include <backlight.h>
#include <dm.h>
#include <mipi_dsi.h>
#define LOG_CATEGORY UCLASS_PANEL
+#include <common.h>
#include <dm.h>
#include <panel.h>
#define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT
+#include <common.h>
#include <dm.h>
#include <backlight.h>
#include <log.h>
* This rm68200 panel driver is inspired from the Linux Kernel driver
* drivers/gpu/drm/panel/panel-raydium-rm68200.c.
*/
+#include <common.h>
#include <backlight.h>
#include <dm.h>
#include <mipi_dsi.h>
* Copyright (c) 2022 Svyatoslav Ryhel <clamor95@gmail.com>
*/
+#include <common.h>
#include <backlight.h>
#include <dm.h>
#include <panel.h>
* Copyright (c) 2022 Svyatoslav Ryhel <clamor95@gmail.com>
*/
+#include <common.h>
#include <backlight.h>
#include <dm.h>
#include <panel.h>
#include <dm/lists.h>
#include <linux/iopoll.h>
+#include <common.h>
#include <log.h>
#include <video.h>
#include <dm/device-internal.h>
* Copyright (c) 2017 Theobroma Systems Design und Consulting GmbH
*/
+#include <common.h>
#include <clk.h>
#include <display.h>
#include <dm.h>
* Author: Eric Gao <eric.gao@rock-chips.com>
*/
+#include <common.h>
#include <clk.h>
#include <display.h>
#include <dm.h>
* Copyright 2014 Rockchip Inc.
*/
+#include <common.h>
#include <display.h>
#include <dm.h>
#include <regmap.h>
* Copyright (c) 2017 Theobroma Systems Design und Consulting GmbH
*/
+#include <common.h>
#include <clk.h>
#include <display.h>
#include <dm.h>
* Author: Eric Gao <eric.gao@rock-chips.com>
*/
+#include <common.h>
#include <clk.h>
#include <display.h>
#include <dm.h>
* Copyright 2014 Rockchip Inc.
*/
+#include <common.h>
#include <display.h>
#include <dm.h>
#include <log.h>
* Copyright 2014 Rockchip Inc.
*/
+#include <common.h>
#include <clk.h>
#include <display.h>
#include <dm.h>
* Copyright 2014 Rockchip Inc.
*/
+#include <common.h>
#include <clk.h>
#include <display.h>
#include <dm.h>
* Copyright 2016 Rockchip Inc.
*/
+#include <common.h>
#include <display.h>
#include <dm.h>
#include <edid.h>
* Author: Eric Gao <eric.gao@rock-chips.com>
*/
+#include <common.h>
#include <clk.h>
#include <display.h>
#include <dm.h>
* Copyright 2014 Rockchip Inc.
*/
+#include <common.h>
#include <clk.h>
#include <display.h>
#include <dm.h>
* Copyright (C) 2019, STMicroelectronics - All Rights Reserved
*/
+#include <common.h>
#include <display.h>
#include <dm.h>
#include <dsi_host.h>
* (C) Copyright 2018
* Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/
+#include <common.h>
#include <display.h>
#include <dm.h>
#include <malloc.h>
* Copyright (c) 2013 Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <log.h>
* Copyright (C) 2020 Xilinx Inc.
*/
+#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <dm.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <backlight.h>
#include <dm.h>
#include <edid.h>
* (C) Copyright 2017 Rob Clark
*/
+#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <fdt_support.h>
* interface for driving a MIPI compatible TFT display.
*/
+#include <common.h>
#include <malloc.h>
#include <mipi_display.h>
#include <asm/gpio.h>
#define LOG_CATEGORY UCLASS_VIDEO_BRIDGE
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dsi_host.h>
#define LOG_CATEGORY UCLASS_VIDEO
+#include <common.h>
#include <clk.h>
#include <display.h>
#include <dm.h>
* (C) Copyright 2017 Jernej Skrabec <jernej.skrabec@siol.net>
*/
+#include <common.h>
#include <log.h>
#include <linux/delay.h>
* (C) Copyright 2017 Jernej Skrabec <jernej.skrabec@siol.net>
*/
+#include <common.h>
#include <display.h>
#include <dm.h>
#include <edid.h>
* (C) Copyright 2014-2015 Hans de Goede <hdegoede@redhat.com>
*/
-#include <config.h>
+#include <common.h>
#include <display.h>
#include <dm.h>
#include <cpu_func.h>
*/
#include <clk.h>
+#include <common.h>
#include <display.h>
#include <dm.h>
#include <dw_hdmi.h>
* (C) Copyright 2017 Vasily Khoruzhick <anarsoul@gmail.com>
*/
+#include <common.h>
#include <display.h>
#include <log.h>
#include <video_bridge.h>
* (C) Copyright 2017 Jernej Skrabec <jernej.skrabec@siol.net>
*/
+#include <common.h>
#include <asm/arch/tve.h>
#include <asm/io.h>
* Based on the Linux driver, (C) 2012 Texas Instruments
*/
+#include <common.h>
#include <dm.h>
#include <display.h>
#include <i2c.h>
* Copyright (C) 2020 BayLibre, SAS
* Author: Neil Armstrong <narmstrong@baylibre.com>
*/
+#include <common.h>
#include <backlight.h>
#include <dm.h>
#include <mipi_dsi.h>
* Extracted from Chromium coreboot commit 3f59b13d
*/
+#include <common.h>
#include <bootstage.h>
#include <dm.h>
#include <edid.h>
#include <edid.h>
#include <log.h>
#include <part.h>
-#include <time.h>
#include <video.h>
#include <asm/gpio.h>
#include <asm/io.h>
* Copyright 2014 Google Inc.
*/
+#include <common.h>
#include <display.h>
#include <dm.h>
#include <div64.h>
#include <errno.h>
#include <log.h>
-#include <time.h>
#include <video_bridge.h>
#include <asm/io.h>
#include <asm/arch-tegra/dc.h>
* Copyright (c) 2011-2013, NVIDIA Corporation.
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
* Copyright (C) 2013 NVIDIA Corporation
*/
+#include <common.h>
#include <linux/err.h>
#include "mipi-phy.h"
* Copyright (c) 2022 Svyatoslav Ryhel <clamor95@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <misc.h>
#define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT
#include <backlight.h>
+#include <common.h>
#include <dm.h>
#include <i2c.h>
#include <log.h>
* Copyright (C) 2020 Dario Binacchi <dariobin@libero.it>
*/
+#include <common.h>
#include <backlight.h>
#include <clk.h>
#include <display.h>
* Copyright (C) 2020 Dario Binacchi <dariobin@libero.it>
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dm/device_compat.h>
* Author: Tomi Valkeinen <tomi.valkeinen@ti.com>
*/
+#include <common.h>
#include <dm.h>
#include <clk.h>
#include <log.h>
* Copyright (C) 2016, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <pci.h>
#define LOG_CATEGORY UCLASS_VIDEO_CONSOLE
+#include <common.h>
#include <abuf.h>
#include <charset.h>
#include <command.h>
#define LOG_CATEGORY UCLASS_VIDEO
+#include <common.h>
#include <bloblist.h>
#include <console.h>
#include <cpu_func.h>
* Copyright (c) 2015 Google, Inc
*/
+#include <common.h>
#include <bmp_layout.h>
#include <dm.h>
#include <log.h>
#define LOG_CATEGORY UCLASS_VIDEO_OSD
+#include <common.h>
#include <dm.h>
#include <video_osd.h>
"myvideo" and setting the variable "videomode=myvideo"..
****************************************************************************/
+#include <common.h>
#include <edid.h>
#include <env.h>
#include <errno.h>
* Xilinx displayport(DP) Tx Subsytem driver
*/
+#include <common.h>
#include <clk.h>
#include <cpu_func.h>
#include <dm.h>
#define LOG_CATEGORY UCLASS_VIRTIO
+#include <common.h>
#include <bootdev.h>
#include <dm.h>
#include <log.h>
#define LOG_CATEGORY UCLASS_VIRTIO
+#include <common.h>
#include <blk.h>
#include <dm.h>
#include <part.h>
* Ported from Linux drivers/virtio/virtio_mmio.c
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <virtio_types.h>
* Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <net.h>
#include <virtio_types.h>
* Ported from Linux drivers/virtio/virtio_pci*.c
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <virtio_types.h>
* Ported from Linux drivers/virtio/virtio_pci*.c
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <virtio_types.h>
*/
#include <bouncebuf.h>
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
* Copyright (c) 2019, Linaro Limited
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <rng.h>
* VirtIO Sandbox transport driver, for testing purpose only
*/
+#include <common.h>
#include <dm.h>
#include <virtio_types.h>
#include <virtio.h>
*
*/
+#include <common.h>
#include <linux/err.h>
#include <dm.h>
#include <w1-eeprom.h>
* Martin Fuzzey <martin.fuzzey@flowbird.group>
*/
+#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <linux/err.h>
*
*/
+#include <common.h>
#include <linux/err.h>
#include <dm.h>
#include <w1-eeprom.h>
#define LOG_CATEGORY UCLASS_W1_EEPROM
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <w1.h>
* Martin Fuzzey <martin.fuzzey@flowbird.group>
*/
+#include <common.h>
#include <asm/arch/clock.h>
#include <dm.h>
#include <dm/device_compat.h>
*
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <w1.h>
#define LOG_CATEGORY UCLASS_W1
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
* Marek Behún <kabel@kernel.org>
*/
+#include <common.h>
#include <dm.h>
#include <wdt.h>
#include <asm/global_data.h>
* Copyright (c) 2020 Aspeed Technology, Inc
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
* Copyright 2017 Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
#include <asm/global_data.h>
#include <asm/io.h>
#include <asm/arch/at91_wdt.h>
+#include <common.h>
#include <div64.h>
#include <dm.h>
#include <errno.h>
* Copyright (C) 2008 Florian Fainelli <florian@openwrt.org>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <wdt.h>
* Author(s): Shreenidhi Shedi <yesshedi@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <wdt.h>
*
*/
+#include <common.h>
#include <dm.h>
#include <hang.h>
#include <asm/io.h>
*/
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <reset.h>
#include <wdt.h>
* 22/08/2022 Port to DM
*/
+#include <common.h>
#include <dm.h>
#include <wdt.h>
#include <log.h>
* Licensed under the GPL-2 or later.
*/
+#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <hang.h>
*
*/
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <hang.h>
#include <asm/io.h>
* Copyright 2017 CS Systemes d'Information
*/
+#include <common.h>
#include <env.h>
#include <dm.h>
#include <wdt.h>
* Copyright (C) 2013 John Crispin <blogic@openwrt.org>
*/
+#include <common.h>
#include <dm.h>
#include <wdt.h>
#include <asm/global_data.h>
* Author: Ryder Lee <ryder.lee@mediatek.com>
*/
+#include <common.h>
#include <dm.h>
#include <hang.h>
#include <wdt.h>
* Use the driver model and standard identifiers; handle bigger timeouts.
*/
+#include <common.h>
#include <log.h>
#include <watchdog.h>
#include <asm/ti-common/omap_wdt.h>
* warranty of any kind, whether express or implied.
*/
+#include <common.h>
#include <dm.h>
#include <clk.h>
#include <log.h>
* Derived from linux/drivers/watchdog/rti_wdt.c
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dm/device_compat.h>
* Minkyu Kang <mk7.kang@samsung.com>
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/cpu.h>
#include <asm/arch/watchdog.h>
+#include <common.h>
#include <dm.h>
#include <os.h>
#include <wdt.h>
* Copyright 2017 Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <wdt.h>
#include <asm/state.h>
#include <asm/global_data.h>
#include <asm/io.h>
+#include <common.h>
#include <dm/device.h>
#include <dm/fdtaddr.h>
#include <dm/read.h>
* Copyright (c) 2021 Michael Walle <michael@walle.cc>
*/
+#include <common.h>
#include <dm.h>
#include <wdt.h>
#include <sl28cpld.h>
#include <log.h>
#include <asm/global_data.h>
#include <asm/io.h>
+#include <common.h>
#include <clk.h>
#include <dm/device.h>
#include <dm/fdtaddr.h>
#define LOG_CATEGORY UCLASS_WDT
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <log.h>
/*
* Copyright (c) 2017 Intel Corporation
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <wdt.h>
* Copyright (C) 2016 Freescale Semiconductor, Inc.
*/
+#include <common.h>
#include <cpu_func.h>
#include <asm/io.h>
#include <asm/arch/imx-regs.h>
#define LOG_CATEGORY UCLASS_WDT
+#include <common.h>
#include <cyclic.h>
#include <div64.h>
#include <dm.h>
* Copyright (c) 2011-2018 Xilinx Inc.
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <wdt.h>
*/
#include <clk.h>
+#include <common.h>
#include <dm.h>
#include <regmap.h>
#include <wdt.h>
*
* [1] - http://xenbits.xen.org/gitweb/?p=mini-os.git;a=summary
*/
+#include <common.h>
#include <log.h>
#include <asm/io.h>
*
* [1] - http://xenbits.xen.org/gitweb/?p=mini-os.git;a=summary
*/
+#include <common.h>
#include <asm/global_data.h>
#include <linux/compiler.h>
#include <log.h>
* Copyright (c) 2005, Grzegorz Milos, gm281@cam.ac.uk,Intel Research Cambridge
* Copyright (c) 2020, EPAM Systems Inc.
*/
+#include <common.h>
#include <cpu_func.h>
#include <log.h>
#include <memalign.h>
#define LOG_CATEGORY UCLASS_PVBLOCK
#include <blk.h>
+#include <common.h>
#include <dm.h>
#include <dm/device-internal.h>
#include <malloc.h>
* [1] - http://xenbits.xen.org/gitweb/?p=mini-os.git;a=summary
*/
+#include <common.h>
#include <log.h>
#include <asm/armv8/mmu.h>
config ENV_IS_IN_ONENAND
bool "Environment is in OneNAND"
- depends on !CHAIN_OF_TRUST && CMD_ONENAND
+ depends on !CHAIN_OF_TRUST
help
Define this if you want to put your local device's environment in
OneNAND.
* Joe Hershberger, National Instruments, joe.hershberger@ni.com
*/
-#include <stdio.h>
#ifdef USE_HOSTCC /* Eliminate "ANSI does not permit..." warnings */
#include <stdint.h>
+#include <stdio.h>
#include <linux/linux_string.h>
#else
+#include <common.h>
#include <slre.h>
-#include <vsprintf.h>
#endif
#include <env_attr.h>
* Joe Hershberger, National Instruments, joe.hershberger@ni.com
*/
+#include <common.h>
#include <env.h>
#include <env_internal.h>
#include <asm/global_data.h>
* Andreas Heppel <aheppel@sysgo.de>
*/
+#include <common.h>
#include <bootstage.h>
#include <command.h>
#include <env.h>
* Andreas Heppel <aheppel@sysgo.de>
*/
+#include <common.h>
#include <command.h>
#include <eeprom.h>
#include <env.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <env.h>
#include <env_internal.h>
#include <log.h>
#include <asm/global_data.h>
#include <linux/bitops.h>
#include <linux/bug.h>
-#include <linux/errno.h>
DECLARE_GLOBAL_DATA_PTR;
* Manjunatha C Achar <a.manjunatha@samsung.com>
*/
+#include <common.h>
#include <part.h>
#include <command.h>
* Maximilian Schwerin <mvs@tigris.de>
*/
+#include <common.h>
#include <command.h>
#include <env.h>
#include <env_internal.h>
#include <linux/string.h>
#include <linux/ctype.h>
-#include <stdio.h>
#ifdef USE_HOSTCC /* Eliminate "ANSI does not permit..." warnings */
#include <stdint.h>
+#include <stdio.h>
#include "fw_env_private.h"
#include "fw_env.h"
#include <env_attr.h>
#define env_get fw_getenv
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
#else
-#include <linux/kernel.h>
+#include <common.h>
#include <env_internal.h>
#endif
/* #define DEBUG */
+#include <common.h>
#include <command.h>
#include <env.h>
#include <env_internal.h>
/* #define DEBUG */
+#include <common.h>
#include <asm/global_data.h>
#include <command.h>
* Andreas Heppel <aheppel@sysgo.de>
*/
+#include <common.h>
#include <command.h>
#include <env.h>
#include <env_internal.h>
* Andreas Heppel <aheppel@sysgo.de>
*/
+#include <common.h>
#include <command.h>
#include <env.h>
#include <env_internal.h>
* Andreas Heppel <aheppel@sysgo.de>
*/
+#include <common.h>
#include <command.h>
#include <env.h>
#include <env_internal.h>
* Kyungmin Park <kyungmin.park@samsung.com>
*/
+#include <common.h>
#include <command.h>
#include <env_internal.h>
#include <asm/global_data.h>
/* #define DEBUG */
+#include <common.h>
#include <command.h>
#include <env_internal.h>
#include <asm/global_data.h>
-#include <linux/errno.h>
#include <linux/stddef.h>
#include <u-boot/crc.h>
*
* (C) Copyright 2008 Atmel Corporation
*/
+#include <common.h>
#include <dm.h>
#include <env.h>
#include <env_internal.h>
* Joe Hershberger <joe.hershberger@ni.com>
*/
+#include <common.h>
#include <asm/global_data.h>
#include <command.h>
* Written by: Rafal Jaworowski <raj@semihalf.com>
*/
-#include <stdio.h>
+#include <common.h>
#include <env.h>
#include <linux/types.h>
#include <api_public.h>
* (C) Copyright 2007-2008 Semihalf, Rafal Jaworowski <raj@semihalf.com>
*/
+#include <common.h>
#include <env.h>
#include <linux/types.h>
#include <api_public.h>
* existing code e.g. operations on strings and similar.
*/
+#include <common.h>
#include <command.h>
#include <hang.h>
#include <linux/delay.h>
* Licensed under the 2-clause BSD.
*/
+#include <common.h>
#include <exports.h>
#include <spi.h>
#include <linux/delay.h>
// SPDX-License-Identifier: GPL-2.0+
+#include <common.h>
#include <exports.h>
/*
+#include <common.h>
#include <exports.h>
#include <linux/compiler.h>
* 2017 Marek Behún, CZ.NIC, kabel@kernel.org
*/
+#include <common.h>
#include <blk.h>
#include <compiler.h>
#include <fs_internal.h>
// SPDX-License-Identifier: GPL-2.0+
+#include <common.h>
#include <fs_internal.h>
#include <log.h>
#include <uuid.h>
// SPDX-License-Identifier: GPL-2.0+
#include <stdlib.h>
-#include <errno.h>
+#include <common.h>
#include <fs_internal.h>
#include "ctree.h"
#include "disk-io.h"
* Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
*/
+#include <common.h>
#include <cbfs.h>
#include <log.h>
#include <malloc.h>
-#include <linux/errno.h>
#include <asm/byteorder.h>
/* Offset of master header from the start of a coreboot ROM */
* The actual compression is based on zlib, see the other files.
*/
-#include <stdio.h>
+#include <common.h>
#include <malloc.h>
#include <asm/byteorder.h>
#include <linux/stat.h>
* then is used by multiple filesystems.
*/
-#include <stdio.h>
+#include <common.h>
#include <cyclic.h>
#include <malloc.h>
#include <watchdog.h>
* fs/ext2/dev.c file in uboot.
*/
+#include <common.h>
#include <blk.h>
#include <config.h>
#include <fs_internal.h>
* ext4write : Based on generic ext4 protocol.
*/
+#include <common.h>
#include <blk.h>
#include <ext_common.h>
#include <ext4fs.h>
* Copyright 1998-2000 Red Hat, Inc --- All Rights Reserved
*/
+#include <common.h>
#include <blk.h>
#include <ext4fs.h>
#include <log.h>
*/
+#include <common.h>
#include <blk.h>
#include <log.h>
#include <malloc.h>
* ext4write : Based on generic ext4 protocol.
*/
+#include <common.h>
#include <blk.h>
#include <ext_common.h>
#include <ext4fs.h>
#define LOG_CATEGORY LOGC_FS
+#include <common.h>
#include <blk.h>
#include <config.h>
#include <exports.h>
#define LOG_CATEGORY LOGC_FS
+#include <common.h>
#include <command.h>
#include <config.h>
#include <div64.h>
#include <config.h>
#include <display_options.h>
#include <errno.h>
+#include <common.h>
#include <env.h>
#include <lmb.h>
#include <log.h>
#include <fs.h>
#include <sandboxfs.h>
#include <semihostingfs.h>
-#include <time.h>
#include <ubifs_uboot.h>
#include <btrfs.h>
#include <asm/global_data.h>
#define LOG_CATEGORY LOGC_CORE
+#include <common.h>
#include <blk.h>
#include <compiler.h>
#include <log.h>
*
*/
+#include <common.h>
+#include <config.h>
#include <jffs2/jffs2.h>
#include <jffs2/mini_inflate.h>
*/
+#include <common.h>
#include <config.h>
#include <malloc.h>
#include <div64.h>
* http://www.chiark.greenend.org.uk/~sgtatham/algorithms/listsort.html
*/
+#include <common.h>
#include "jffs2_private.h"
int sort_list(struct b_list *list)
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <bootdev.h>
#include <bootflow.h>
#include <bootmeth.h>
* Copyright (c) 2012, Google Inc.
*/
-#include <stdio.h>
+#include <common.h>
#include <fs.h>
#include <malloc.h>
#include <os.h>
* Copyright (c) 2012, Google Inc.
*/
-#include <stdio.h>
+#include <common.h>
#include <fs.h>
#include <malloc.h>
#include <os.h>
#include <linux/writeback.h>
#else
+#include <common.h>
#include <malloc.h>
#include <memalign.h>
#include <linux/bitops.h>
* Adrian Hunter
*/
+#include <common.h>
#include <env.h>
#include <gzip.h>
#include <log.h>
*/
/* XXX U-BOOT XXX */
+#include <common.h>
#include "yportenv.h"
/* mtd interface for YAFFS2 */
/* XXX U-BOOT XXX */
+#include <common.h>
#include <linux/bug.h>
#include <linux/errno.h>
* This version now uses the ydevconfig mechanism to set up partitions.
*/
+#include <common.h>
#include <div64.h>
#include <malloc.h>
#include <linux/printk.h>
*/
+#include <common.h>
#include <config.h>
#include <fs_internal.h>
#include <zfs_common.h>
* Copyright 2004 Sun Microsystems, Inc.
*/
+#include <common.h>
#include <log.h>
#include <malloc.h>
#include <linux/stat.h>
* Use is subject to license terms.
*/
+#include <common.h>
#include <malloc.h>
#include <linux/stat.h>
#include <linux/time.h>
* Use is subject to license terms.
*/
+#include <common.h>
#include <malloc.h>
#include <linux/stat.h>
#include <linux/time.h>
* Use is subject to license terms.
*/
+#include <common.h>
#include <malloc.h>
#include <linux/stat.h>
#include <linux/time.h>
#ifndef __ASSEMBLY__
-#include <linux/errno.h>
-#include <linux/types.h>
-
extern char __wakeup[];
extern int __wakeup_size;
#ifndef _ADC_H_
#define _ADC_H_
-#include <stdbool.h>
-
/* ADC_CHANNEL() - ADC channel bit mask, to select only required channels */
#define ADC_CHANNEL(x) (1 << x)
#ifndef __ANDROID_AB_H
#define __ANDROID_AB_H
-#include <stdbool.h>
-
struct blk_desc;
struct disk_partition;
#ifndef _API_PUBLIC_H_
#define _API_PUBLIC_H_
-#include <linux/types.h>
-
#define API_EINVAL 1 /* invalid argument(s) */
#define API_ENODEV 2 /* no device */
#define API_ENOMEM 3 /* no memory */
#ifndef __ASSEMBLY__
-#include <linux/types.h>
-
/*******************************************************************************
* Structure used for telling the next BL how much of a particular type of
* memory is available for its use and how much is already used.
#ifndef __AUDIO_CODEC_H__
#define __AUDIO_CODEC_H__
-#include <linux/types.h>
-
struct udevice;
/*
#define __AUTOBOOT_H
#include <stdbool.h>
-#include <stddef.h>
#ifdef CONFIG_SANDBOX
#ifndef _AXI_H_
#define _AXI_H_
-#include <linux/types.h>
-
struct udevice;
/**
#ifndef _BMP_H_
#define _BMP_H_
-#include <linux/compiler.h>
-
struct __packed bmp_color_table_entry {
__u8 blue;
__u8 green;
#ifndef __bootmeth_h
#define __bootmeth_h
-#include <linux/bitops.h>
-
struct blk_desc;
struct bootflow;
struct bootflow_iter;
#define __bootstd_h
#include <dm/ofnode_decl.h>
-#include <linux/list.h>
-#include <linux/types.h>
struct udevice;
#ifndef __CEDIT_H
#define __CEDIT_H
-#include <stdbool.h>
#include <dm/ofnode_decl.h>
-#include <linux/types.h>
struct abuf;
struct expo;
struct scene;
struct video_priv;
-struct udevice;
enum {
/* size increment for writing FDT */
--- /dev/null
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Common header file for U-Boot
+ *
+ * This file still includes quite a few headers that should be included
+ * individually as needed. Patches to remove things are welcome.
+ *
+ * (C) Copyright 2000-2009
+ * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
+ */
+
+#ifndef __COMMON_H_
+#define __COMMON_H_ 1
+
+#ifndef __ASSEMBLY__ /* put C only stuff in this section */
+#include <config.h>
+#include <errno.h>
+#include <time.h>
+#include <linux/types.h>
+#include <linux/string.h>
+#include <stdarg.h>
+#include <stdio.h>
+#include <linux/kernel.h>
+#include <asm/u-boot.h> /* boot information for Linux kernel */
+#include <vsprintf.h>
+#endif /* __ASSEMBLY__ */
+
+/* Pull in stuff for the build system */
+#ifdef DO_DEPS_ONLY
+# include <env_internal.h>
+#endif
+
+#endif /* __COMMON_H_ */
#define CFG_SYS_INIT_SP_OFFSET 0x800000
+/* MMC */
+#define MMC_SUPPORTS_TUNING
+
/* Serial SPL */
#if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_SERIAL)
#define CFG_SYS_NS16550_CLK 50000000
#include <linux/sizes.h>
+/* MMC */
+#define MMC_SUPPORTS_TUNING
+
/* DRAM */
#define CFG_SYS_SDRAM_BASE 0x80000000
"loadaddr=20080000\0" \
"ethrotate=yes\0"
+#if defined(CONFIG_MMC_OCTEONTX)
+#define MMC_SUPPORTS_TUNING
+/** EMMC specific defines */
+#endif
+
#endif /* __OCTEONTX2_COMMON_H__ */
#ifndef _DDR_SPD_H_
#define _DDR_SPD_H_
-#include <linux/types.h>
-
/*
* Format from "JEDEC Standard No. 21-C,
* Appendix D: Rev 1.0: SPD's for DDR SDRAM
#ifndef _DISPLAY_H
#define _DISPLAY_H
-#include <linux/types.h>
-
struct udevice;
struct display_timing;
#ifndef _DM_OF_H
#define _DM_OF_H
+#include <asm/u-boot.h>
#include <asm/global_data.h>
/* integer value within a device tree property which references another node */
#ifndef __DM_TEST_H
#define __DM_TEST_H
-#include <linux/types.h>
-
struct udevice;
/**
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0-or-later */
-/*
- * (C) Copyright 2022 - Analog Devices, Inc.
- *
- * Written and/or maintained by Timesys Corporation
- *
- * Contact: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
- * Contact: Greg Malysa <greg.malysa@timesys.com>
- *
- */
-
-#ifndef DT_BINDINGS_CLOCK_ADI_SC5XX_CLOCK_H
-#define DT_BINDINGS_CLOCK_ADI_SC5XX_CLOCK_H
-
-//ADSP-SC594
-#define ADSP_SC594_CLK_DUMMY 0
-#define ADSP_SC594_CLK_SYS_CLKIN0 1
-#define ADSP_SC594_CLK_SYS_CLKIN1 2
-#define ADSP_SC594_CLK_CGU1_IN 3
-#define ADSP_SC594_CLK_CGU0_PLL_IN 4
-#define ADSP_SC594_CLK_CGU1_PLL_IN 5
-#define ADSP_SC594_CLK_CGU0_VCO_OUT 6
-#define ADSP_SC594_CLK_CGU1_VCO_OUT 7
-#define ADSP_SC594_CLK_CGU0_PLLCLK 8
-#define ADSP_SC594_CLK_CGU1_PLLCLK 9
-#define ADSP_SC594_CLK_CGU0_CDIV 10
-#define ADSP_SC594_CLK_CGU0_SYSCLK 11
-#define ADSP_SC594_CLK_CGU0_DDIV 12
-#define ADSP_SC594_CLK_CGU0_ODIV 13
-#define ADSP_SC594_CLK_CGU0_S0SELDIV 14
-#define ADSP_SC594_CLK_CGU0_S1SELDIV 15
-#define ADSP_SC594_CLK_CGU0_S1SELEXDIV 16
-#define ADSP_SC594_CLK_CGU0_S1SEL 17
-#define ADSP_SC594_CLK_CGU1_CDIV 18
-#define ADSP_SC594_CLK_CGU1_SYSCLK 19
-#define ADSP_SC594_CLK_CGU1_DDIV 20
-#define ADSP_SC594_CLK_CGU1_ODIV 21
-#define ADSP_SC594_CLK_CGU1_S0SELDIV 22
-#define ADSP_SC594_CLK_CGU1_S1SELDIV 23
-#define ADSP_SC594_CLK_CGU1_S1SELEXDIV 24
-#define ADSP_SC594_CLK_CGU1_S1SEL 25
-#define ADSP_SC594_CLK_CGU0_CCLK0 26
-#define ADSP_SC594_CLK_CGU0_CCLK1 27
-#define ADSP_SC594_CLK_CGU0_OCLK 28
-#define ADSP_SC594_CLK_CGU0_DCLK 29
-#define ADSP_SC594_CLK_CGU0_SCLK1 30
-#define ADSP_SC594_CLK_CGU0_SCLK0 31
-#define ADSP_SC594_CLK_CGU1_CCLK0 32
-#define ADSP_SC594_CLK_CGU1_CCLK1 33
-#define ADSP_SC594_CLK_CGU1_OCLK 34
-#define ADSP_SC594_CLK_CGU1_DCLK 35
-#define ADSP_SC594_CLK_CGU1_SCLK1 36
-#define ADSP_SC594_CLK_CGU1_SCLK0 37
-#define ADSP_SC594_CLK_SHARC0_SEL 38
-#define ADSP_SC594_CLK_SHARC1_SEL 39
-#define ADSP_SC594_CLK_ARM_SEL 40
-#define ADSP_SC594_CLK_CDU_DDR_SEL 41
-#define ADSP_SC594_CLK_CAN_SEL 42
-#define ADSP_SC594_CLK_SPDIF_SEL 43
-#define ADSP_SC594_CLK_RESERVED_SEL 44
-#define ADSP_SC594_CLK_GIGE_SEL 45
-#define ADSP_SC594_CLK_LP_SEL 46
-#define ADSP_SC594_CLK_LPDDR_SEL 47
-#define ADSP_SC594_CLK_OSPI_SEL 48
-#define ADSP_SC594_CLK_TRACE_SEL 49
-#define ADSP_SC594_CLK_SHARC0 50
-#define ADSP_SC594_CLK_SHARC1 51
-#define ADSP_SC594_CLK_ARM 52
-#define ADSP_SC594_CLK_CDU_DDR 53
-#define ADSP_SC594_CLK_CAN 54
-#define ADSP_SC594_CLK_SPDIF 55
-#define ADSP_SC594_CLK_SPI 56
-#define ADSP_SC594_CLK_GIGE 57
-#define ADSP_SC594_CLK_LP 58
-#define ADSP_SC594_CLK_LPDDR 59
-#define ADSP_SC594_CLK_OSPI 60
-#define ADSP_SC594_CLK_TRACE 61
-#define ADSP_SC594_CLK_END 62
-
-//ADSP-SC598
-#define ADSP_SC598_CLK_DUMMY 0
-#define ADSP_SC598_CLK_SYS_CLKIN0 1
-#define ADSP_SC598_CLK_SYS_CLKIN1 2
-#define ADSP_SC598_CLK_CGU0_PLL_IN 3
-#define ADSP_SC598_CLK_CGU0_VCO_OUT 4
-#define ADSP_SC598_CLK_CGU0_PLLCLK 5
-#define ADSP_SC598_CLK_CGU1_IN 6
-#define ADSP_SC598_CLK_CGU1_PLL_IN 7
-#define ADSP_SC598_CLK_CGU1_VCO_OUT 8
-#define ADSP_SC598_CLK_CGU1_PLLCLK 9
-#define ADSP_SC598_CLK_CGU0_CDIV 10
-#define ADSP_SC598_CLK_CGU0_SYSCLK 11
-#define ADSP_SC598_CLK_CGU0_DDIV 12
-#define ADSP_SC598_CLK_CGU0_ODIV 13
-#define ADSP_SC598_CLK_CGU0_S0SELDIV 14
-#define ADSP_SC598_CLK_CGU0_S1SELDIV 15
-#define ADSP_SC598_CLK_CGU0_S1SELEXDIV 16
-#define ADSP_SC598_CLK_CGU0_S1SEL 17
-#define ADSP_SC598_CLK_CGU1_CDIV 18
-#define ADSP_SC598_CLK_CGU1_SYSCLK 19
-#define ADSP_SC598_CLK_CGU1_DDIV 20
-#define ADSP_SC598_CLK_CGU1_ODIV 21
-#define ADSP_SC598_CLK_CGU1_S0SELDIV 22
-#define ADSP_SC598_CLK_CGU1_S1SELDIV 23
-#define ADSP_SC598_CLK_CGU1_S0SELEXDIV 24
-#define ADSP_SC598_CLK_CGU1_S1SELEXDIV 25
-#define ADSP_SC598_CLK_CGU1_S0SEL 26
-#define ADSP_SC598_CLK_CGU1_S1SEL 27
-#define ADSP_SC598_CLK_CGU0_CCLK2 28
-#define ADSP_SC598_CLK_CGU0_CCLK0 29
-#define ADSP_SC598_CLK_CGU0_OCLK 30
-#define ADSP_SC598_CLK_CGU0_DCLK 31
-#define ADSP_SC598_CLK_CGU0_SCLK1 32
-#define ADSP_SC598_CLK_CGU0_SCLK0 33
-#define ADSP_SC598_CLK_CGU1_CCLK0 34
-#define ADSP_SC598_CLK_CGU1_OCLK 35
-#define ADSP_SC598_CLK_CGU1_DCLK 36
-#define ADSP_SC598_CLK_CGU1_SCLK1 37
-#define ADSP_SC598_CLK_CGU1_SCLK0 38
-#define ADSP_SC598_CLK_CGU1_CCLK2 39
-#define ADSP_SC598_CLK_DCLK0_HALF 40
-#define ADSP_SC598_CLK_DCLK1_HALF 41
-#define ADSP_SC598_CLK_CGU1_SCLK1_HALF 42
-#define ADSP_SC598_CLK_SHARC0_SEL 43
-#define ADSP_SC598_CLK_SHARC1_SEL 44
-#define ADSP_SC598_CLK_ARM_SEL 45
-#define ADSP_SC598_CLK_CDU_DDR_SEL 46
-#define ADSP_SC598_CLK_CAN_SEL 47
-#define ADSP_SC598_CLK_SPDIF_SEL 48
-#define ADSP_SC598_CLK_SPI_SEL 49
-#define ADSP_SC598_CLK_GIGE_SEL 50
-#define ADSP_SC598_CLK_LP_SEL 51
-#define ADSP_SC598_CLK_LP_DDR_SEL 52
-#define ADSP_SC598_CLK_OSPI_REFCLK_SEL 53
-#define ADSP_SC598_CLK_TRACE_SEL 54
-#define ADSP_SC598_CLK_EMMC_SEL 55
-#define ADSP_SC598_CLK_EMMC_TIMER_QMC_SEL 56
-#define ADSP_SC598_CLK_SHARC0 57
-#define ADSP_SC598_CLK_SHARC1 58
-#define ADSP_SC598_CLK_ARM 59
-#define ADSP_SC598_CLK_CDU_DDR 60
-#define ADSP_SC598_CLK_CAN 61
-#define ADSP_SC598_CLK_SPDIF 62
-#define ADSP_SC598_CLK_SPI 63
-#define ADSP_SC598_CLK_GIGE 64
-#define ADSP_SC598_CLK_LP 65
-#define ADSP_SC598_CLK_LP_DDR 66
-#define ADSP_SC598_CLK_OSPI_REFCLK 67
-#define ADSP_SC598_CLK_TRACE 68
-#define ADSP_SC598_CLK_EMMC 69
-#define ADSP_SC598_CLK_EMMC_TIMER_QMC 70
-#define ADSP_SC598_CLK_3PLL_PLL_IN 71
-#define ADSP_SC598_CLK_3PLL_VCO_OUT 72
-#define ADSP_SC598_CLK_3PLL_PLLCLK 73
-#define ADSP_SC598_CLK_3PLL_DDIV 74
-#define ADSP_SC598_CLK_DDR 75
-#define ADSP_SC598_CLK_END 76
-
-//ADSP-SC58X
-#define ADSP_SC58X_CLK_DUMMY 0
-#define ADSP_SC58X_CLK_SYS_CLKIN0 1
-#define ADSP_SC58X_CLK_SYS_CLKIN1 2
-#define ADSP_SC58X_CLK_CGU0_PLL_IN 3
-#define ADSP_SC58X_CLK_CGU0_VCO_OUT 4
-#define ADSP_SC58X_CLK_CGU0_PLLCLK 5
-#define ADSP_SC58X_CLK_CGU1_IN 6
-#define ADSP_SC58X_CLK_CGU1_PLL_IN 7
-#define ADSP_SC58X_CLK_CGU1_VCO_OUT 8
-#define ADSP_SC58X_CLK_CGU1_PLLCLK 9
-#define ADSP_SC58X_CLK_CGU0_CDIV 10
-#define ADSP_SC58X_CLK_CGU0_SYSCLK 11
-#define ADSP_SC58X_CLK_CGU0_DDIV 12
-#define ADSP_SC58X_CLK_CGU0_ODIV 13
-#define ADSP_SC58X_CLK_CGU0_S0SELDIV 14
-#define ADSP_SC58X_CLK_CGU0_S1SELDIV 15
-#define ADSP_SC58X_CLK_CGU1_CDIV 16
-#define ADSP_SC58X_CLK_CGU1_SYSCLK 17
-#define ADSP_SC58X_CLK_CGU1_DDIV 18
-#define ADSP_SC58X_CLK_CGU1_ODIV 19
-#define ADSP_SC58X_CLK_CGU1_S0SELDIV 20
-#define ADSP_SC58X_CLK_CGU1_S1SELDIV 21
-#define ADSP_SC58X_CLK_CGU0_CCLK0 22
-#define ADSP_SC58X_CLK_CGU0_CCLK1 23
-#define ADSP_SC58X_CLK_CGU0_OCLK 24
-#define ADSP_SC58X_CLK_CGU0_DCLK 25
-#define ADSP_SC58X_CLK_CGU0_SCLK1 26
-#define ADSP_SC58X_CLK_CGU0_SCLK0 27
-#define ADSP_SC58X_CLK_CGU1_CCLK0 28
-#define ADSP_SC58X_CLK_CGU1_CCLK1 29
-#define ADSP_SC58X_CLK_CGU1_OCLK 30
-#define ADSP_SC58X_CLK_CGU1_DCLK 31
-#define ADSP_SC58X_CLK_CGU1_SCLK1 32
-#define ADSP_SC58X_CLK_CGU1_SCLK0 33
-#define ADSP_SC58X_CLK_OCLK0_HALF 34
-#define ADSP_SC58X_CLK_CCLK1_1_HALF 35
-#define ADSP_SC58X_CLK_SHARC0_SEL 36
-#define ADSP_SC58X_CLK_SHARC1_SEL 37
-#define ADSP_SC58X_CLK_ARM_SEL 38
-#define ADSP_SC58X_CLK_CDU_DDR_SEL 39
-#define ADSP_SC58X_CLK_CAN_SEL 40
-#define ADSP_SC58X_CLK_SPDIF_SEL 41
-#define ADSP_SC58X_CLK_RESERVED_SEL 42
-#define ADSP_SC58X_CLK_GIGE_SEL 43
-#define ADSP_SC58X_CLK_LP_SEL 44
-#define ADSP_SC58X_CLK_SDIO_SEL 45
-#define ADSP_SC58X_CLK_SHARC0 46
-#define ADSP_SC58X_CLK_SHARC1 47
-#define ADSP_SC58X_CLK_ARM 48
-#define ADSP_SC58X_CLK_CDU_DDR 49
-#define ADSP_SC58X_CLK_CAN 50
-#define ADSP_SC58X_CLK_SPDIF 51
-#define ADSP_SC58X_CLK_RESERVED 52
-#define ADSP_SC58X_CLK_GIGE 53
-#define ADSP_SC58X_CLK_LP 54
-#define ADSP_SC58X_CLK_SDIO 55
-#define ADSP_SC58X_CLK_END 56
-
-//ADSP-SC57X
-#define ADSP_SC57X_CLK_DUMMY 0
-#define ADSP_SC57X_CLK_SYS_CLKIN0 1
-#define ADSP_SC57X_CLK_SYS_CLKIN1 2
-#define ADSP_SC57X_CLK_CGU0_PLL_IN 3
-#define ADSP_SC57X_CLK_CGU0_PLLCLK 4
-#define ADSP_SC57X_CLK_CGU1_IN 5
-#define ADSP_SC57X_CLK_CGU1_PLL_IN 6
-#define ADSP_SC57X_CLK_CGU1_PLLCLK 7
-#define ADSP_SC57X_CLK_CGU0_CDIV 8
-#define ADSP_SC57X_CLK_CGU0_SYSCLK 9
-#define ADSP_SC57X_CLK_CGU0_DDIV 10
-#define ADSP_SC57X_CLK_CGU0_ODIV 11
-#define ADSP_SC57X_CLK_CGU0_S0SELDIV 12
-#define ADSP_SC57X_CLK_CGU0_S1SELDIV 13
-#define ADSP_SC57X_CLK_CGU1_CDIV 14
-#define ADSP_SC57X_CLK_CGU1_SYSCLK 15
-#define ADSP_SC57X_CLK_CGU1_DDIV 16
-#define ADSP_SC57X_CLK_CGU1_ODIV 17
-#define ADSP_SC57X_CLK_CGU1_S0SELDIV 18
-#define ADSP_SC57X_CLK_CGU1_S1SELDIV 19
-#define ADSP_SC57X_CLK_CGU0_CCLK0 20
-#define ADSP_SC57X_CLK_CGU0_CCLK1 21
-#define ADSP_SC57X_CLK_CGU0_OCLK 22
-#define ADSP_SC57X_CLK_CGU0_DCLK 23
-#define ADSP_SC57X_CLK_CGU0_SCLK1 24
-#define ADSP_SC57X_CLK_CGU0_SCLK0 25
-#define ADSP_SC57X_CLK_CGU1_CCLK0 26
-#define ADSP_SC57X_CLK_CGU1_CCLK1 27
-#define ADSP_SC57X_CLK_CGU1_OCLK 28
-#define ADSP_SC57X_CLK_CGU1_DCLK 29
-#define ADSP_SC57X_CLK_CGU1_SCLK1 30
-#define ADSP_SC57X_CLK_CGU1_SCLK0 31
-#define ADSP_SC57X_CLK_OCLK0_HALF 32
-#define ADSP_SC57X_CLK_CCLK1_1_HALF 33
-#define ADSP_SC57X_CLK_SHARC0_SEL 34
-#define ADSP_SC57X_CLK_SHARC1_SEL 35
-#define ADSP_SC57X_CLK_ARM_SEL 36
-#define ADSP_SC57X_CLK_CDU_DDR_SEL 37
-#define ADSP_SC57X_CLK_CAN_SEL 38
-#define ADSP_SC57X_CLK_SPDIF_SEL 39
-#define ADSP_SC57X_CLK_GIGE_SEL 40
-#define ADSP_SC57X_CLK_SDIO_SEL 41
-#define ADSP_SC57X_CLK_SHARC0 42
-#define ADSP_SC57X_CLK_SHARC1 43
-#define ADSP_SC57X_CLK_ARM 44
-#define ADSP_SC57X_CLK_CDU_DDR 45
-#define ADSP_SC57X_CLK_CAN 46
-#define ADSP_SC57X_CLK_SPDIF 47
-#define ADSP_SC57X_CLK_GIGE 48
-#define ADSP_SC57X_CLK_SDIO 49
-#define ADSP_SC57X_CLK_END 50
-
-#endif
#define __EEPROM_LEGACY_H
#if defined(CONFIG_CMD_EEPROM) || defined(CONFIG_ENV_IS_IN_EEPROM)
-#include <linux/types.h>
-
void eeprom_init(int bus);
int eeprom_read(uint dev_addr, uint offset, uchar *buffer, uint cnt);
int eeprom_write(uint dev_addr, uint offset, uchar *buffer, uint cnt);
+++ /dev/null
-/*
- * A target board needs to set these variables for the commands below to work:
- *
- * - adi_stage2_offset, the location of stage2-boot.ldr on the SPI flash
- * - adi_image_offset, location of the fitImage on the SPI flash
- * - adi_rfs_offset, location of the RFS on the SPI flash
- * - loadaddr, where you want to load things
- * - jffs2file, name of the jffs2 file for update, ex adsp-sc5xx-tiny-adsp-sc573.jffs2
- */
-
-#ifdef CONFIG_SC59X_64
-#define EARLY_PRINTK earlycon=adi_uart,0x31003000
-#else
-#define EARLY_PRINTK earlyprintk=serial,uart0,CONFIG_BAUDRATE
-#endif
-
-/* Config options */
-imagefile=fitImage
-ethaddr=02:80:ad:20:31:e8
-eth1addr=02:80:ad:20:31:e9
-uart_console=CONFIG_UART_CONSOLE
-#ifdef CONFIG_SC59X_64
-fdt_high=0xffffffffffffffff
-initrd_high=0xffffffffffffffff
-#else
-fdt_high=0xffffffff
-initrd_high=0xffffffff
-#endif
-
-/* Helper routines */
-init_ethernet=mii info;
- dhcp;
- setenv serverip ${tftpserverip}
-
-/* Args for each boot mode */
-adi_bootargs=EARLY_PRINTK console=ttySC0,CONFIG_BAUDRATE vmalloc=512M
-ramargs=setenv bootargs ${adi_bootargs}
-
-addip=setenv bootargs ${bootargs} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:eth0:off
-
-/* Boot modes are selectable and should be defined in the board env before including */
-#if defined(USE_NFS)
-// rootpath is set by CONFIG_ROOTPATH
-nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}${rootpath},tcp,nfsvers=3 ${adi_bootargs}
-nfsboot=run init_ethernet;
- tftp ${loadaddr} ${tftp_dir_prefix}${imagefile};
- run nfsargs;
- run addip;
- bootm ${loadaddr}
-#endif
-
-#if defined(USE_MMC)
-mmcargs=setenv bootargs root=/dev/mmcblk0p1 rw rootfstype=ext4 rootwait ${adi_bootargs}
-mmcboot=mmc rescan;
- ext4load mmc 0:1 ${loadaddr} /boot/${imagefile};
- run mmcargs;
- bootm ${loadaddr}
-#endif
-
-#if defined(USE_SPI) || defined(USE_OSPI)
-spiargs=setenv bootargs root=/dev/mtdblock4 rw rootfstype=jffs2 ${adi_bootargs}
-spiboot=run spiargs;
- sf probe ${sfdev};
- sf read ${loadaddr} ${adi_image_offset} ${imagesize};
- bootm ${loadaddr}
-#endif
-
-#if defined(USE_OSPI)
-ospiboot=run spiboot
-#endif
-
-#if defined(USE_RAM)
-ramboot=run init_ethernet;
- tftp ${loadaddr} ${tfpt_dir_prefix}${imagefile};
- run ramargs;
- bootm ${loadaddr}
-#endif
-
-/* Update commands */
-stage1file=stage1-boot.ldr
-stage2file=stage2-boot.ldr
-
-#if defined(USE_SPI) || defined(USE_OSPI)
-update_spi_uboot_stage1=tftp ${loadaddr} ${tftp_dir_prefix}${stage1file};
- sf probe ${sfdev};
- sf update ${loadaddr} 0x0 ${filesize}
-update_spi_uboot_stage2=tftp ${loadaddr} ${tftp_dir_prefix}${stage2file};
- sf probe ${sfdev};
- sf update ${loadaddr} ${adi_stage2_offset} ${filesize}
-update_spi_uboot=run update_spi_uboot_stage1;
- run update_spi_uboot_stage2;
-update_spi_fit=tftp ${loadaddr} ${tftp_dir_prefix}${imagefile};
- sf probe ${sfdev};
- sf update ${loadaddr} ${adi_image_offset} ${filesize};
- setenv imagesize ${filesize}
-update_spi_rfs=tftp ${loadaddr} ${tftp_dir_prefix}${jffs2file};
- sf probe ${sfdev};
- sf update ${loadaddr} ${adi_rfs_offset} ${filesize}
-
-start_update_spi=run init_ethernet;
- run update_spi_uboot;
- run update_spi_fit;
- run update_spi_rfs;
-start_update_spi_uboot_only=run init_ethernet;
- run update_spi_uboot;
-#endif
-
-#if defined(USE_SPI)
-update_spi=setenv sfdev CONFIG_SC_BOOT_SPI_BUS:CONFIG_SC_BOOT_SPI_SSEL;
- setenv bootcmd run spiboot;
- setenv argscmd spiargs;
- run start_update_spi;
- saveenv
-#endif
-
-#if defined(USE_OSPI)
-update_ospi=setenv sfdev CONFIG_SC_BOOT_OSPI_BUS:CONFIG_SC_BOOT_OSPI_SSEL;
- setenv bootcmd run ospiboot;
- setenv argscmd spiargs;
- run start_update_spi;
- saveenv
-#endif
#ifndef __ENV_CALLBACK_H__
#define __ENV_CALLBACK_H__
-#include <config.h>
#include <env_flags.h>
#include <linker_lists.h>
#include <search.h>
* Andreas Heppel <aheppel@sysgo.de>
*/
-#include <config.h>
#include <env_callback.h>
#include <linux/stringify.h>
#ifndef __ENV_FLAGS_H__
#define __ENV_FLAGS_H__
-#include <config.h>
-
enum env_flags_vartype {
env_flags_vartype_string,
env_flags_vartype_decimal,
#ifndef __EXTENSION_SUPPORT_H
#define __EXTENSION_SUPPORT_H
-#include <linux/list.h>
-
struct extension {
struct list_head list;
char name[32];
#ifndef _FLASH_H_
#define _FLASH_H_
-#include <linux/types.h>
-
/*-----------------------------------------------------------------------
* FLASH Info: contains chip specific data, per FLASH bank
*/
#define _FSL_ERRATA_H
#if defined(CONFIG_PPC)
-#include <asm/ppc.h>
+#include <asm/processor.h>
#elif defined(CONFIG_ARCH_LS1021A)
#include <asm/arch-ls102xa/immap_ls102xa.h>
#elif defined(CONFIG_FSL_LAYERSCAPE)
#include <part.h>
#ifdef CONFIG_ARM
#include <asm/arch/soc.h>
-#else
-#include <asm/ppc.h>
#endif
#define FSL_IFC_V1_1_0 0x01010000
#ifndef __FSL_IMMAP_H
#define __FSL_IMMAP_H
-
-#include <linux/types.h>
-
/*
* DDR memory controller registers
* This structure works for mpc83xx (DDR2 and DDR3), mpc85xx, mpc86xx.
#ifndef _FUSE_H_
#define _FUSE_H_
-#include <linux/types.h>
-
/*
* Read/Sense/Program/Override interface:
* bank: Fuse bank
#ifndef __GZIP_H
#define __GZIP_H
-#include <linux/types.h>
-
struct blk_desc;
/**
#if CONFIG_IS_ENABLED(HANDOFF)
-#include <linux/types.h>
#include <asm/handoff.h>
/**
#define __I2C_EEPROM
#include <linux/errno.h>
-#include <linux/types.h>
struct udevice;
/* Show arch-specific information for the 'bd' command */
void arch_print_bdinfo(void);
-struct cmd_tbl;
-
int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
#endif /* __ASSEMBLY__ */
*-----------------------------------------------------------------------*/
#include <linux/list.h>
-#include <linux/string.h>
/* mtd device types */
#define MTD_DEV_TYPE_NOR 0x0001
#ifndef __LIBATA_H__
#define __LIBATA_H__
-#include <linux/types.h>
enum {
/* various global constants */
#include <cyclic.h>
#include <log.h>
#include <malloc.h>
-#include <time.h>
#include <asm/processor.h>
#ifndef __ASM_OMAP_GPMC_H
#define __ASM_OMAP_GPMC_H
-#include <linux/types.h>
-
/* Maximum Number of Chip Selects */
#define GPMC_CS_NUM 8
#ifndef _MAILBOX_H
#define _MAILBOX_H
-#include <linux/types.h>
-
/**
* A mailbox is a hardware mechanism for transferring small fixed-size messages
* and/or notifications between the CPU on which U-Boot runs and some other
struct bd_info;
+#if CONFIG_IS_ENABLED(MMC_HS200_SUPPORT)
+#define MMC_SUPPORTS_TUNING
+#endif
+#if CONFIG_IS_ENABLED(MMC_UHS_SUPPORT)
+#define MMC_SUPPORTS_TUNING
+#endif
+
/* SD/MMC version bits; 8 flags, 8 major, 8 minor, 8 change */
#define SD_VERSION_SD (1U << 31)
#define MMC_VERSION_MMC (1U << 30)
*/
int (*get_wp)(struct udevice *dev);
-#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
+#ifdef MMC_SUPPORTS_TUNING
/**
* execute_tuning() - Start the tuning process
*
#ifndef __MPC85xx_H__
#define __MPC85xx_H__
-#include <config.h>
#if defined(CONFIG_E500)
#include <e500.h>
#endif
#ifndef _NAND_H_
#define _NAND_H_
+#include <config.h>
+
extern void nand_init(void);
void nand_reinit(void);
unsigned long nand_size(void);
#ifndef _NETDEV_H_
#define _NETDEV_H_
-
-#include <linux/types.h>
#include <phy_interface.h>
struct udevice;
-struct bd_info;
/*
* Board and CPU-specific initialization functions
#ifndef __ASSEMBLY__
-#include <linux/types.h>
#include <dm/pci.h>
#ifdef CONFIG_SYS_PCI_64BIT
#define _PHY_INTERFACE_H
#include <string.h>
-#include <linux/kernel.h>
typedef enum {
PHY_INTERFACE_MODE_NA, /* don't touch */
#ifndef __RAM_H
#define __RAM_H
-#include <linux/types.h>
-
struct udevice;
struct ram_info {
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <linux/types.h>
-
/*--------------------------------------------------------------------------
*
* Motorola S-Record Format:
* implementation of the driver you are using.
*/
-#include <linux/types.h>
+#include <asm/types.h>
#include <asm/ptrace.h>
struct udevice;
#define _SPLASH_H_
#include <errno.h>
-#include <linux/types.h>
enum splash_storage {
SPLASH_STORAGE_NAND,
#ifndef _SHA1_H
#define _SHA1_H
-#include <linux/types.h>
-
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _SHA256_H
#define _SHA256_H
-#include <linux/types.h>
-
#define SHA256_SUM_LEN 32
#define SHA256_DER_LEN 19
#ifndef _SHA512_H
#define _SHA512_H
-#include <linux/types.h>
-
#define SHA384_SUM_LEN 48
#define SHA384_DER_LEN 19
#define SHA512_SUM_LEN 64
#include <dm/device.h>
#include <linux/bitops.h>
#include <linux/bug.h>
-#include <linux/typecheck.h>
#define VIRTIO_ID_NET 1 /* virtio net */
#define VIRTIO_ID_BLOCK 2 /* virtio block */
#define VIRTIO_ID_RNG 4 /* virtio rng */
#ifndef _EVENTS_H_
#define _EVENTS_H_
-#include <asm/ptrace.h>
#include <asm/xen/hypercall.h>
#include <xen/interface/event_channel.h>
* Copyright 2000-2002 Wolfgang Denk, wd@denx.de
*/
+#include <common.h>
#include <env.h>
#include <log.h>
#include <net.h>
-#include <vsprintf.h>
#include <linux/delay.h>
#include "arp.h"
* Copyright 2000-2004 Wolfgang Denk, wd@denx.de
*/
+#include <common.h>
#include <bootstage.h>
#include <command.h>
#include <env.h>
* Copyright 2000-2002 Wolfgang Denk, wd@denx.de
*/
+#include <common.h>
#include <net.h>
#include "cdp.h"
/* Simple DHCP6 network layer implementation. */
+#include <common.h>
#include <net6.h>
#include <malloc.h>
#include <linux/delay.h>
* this stuff is worth it, you can buy me a beer in return.
*/
+#include <common.h>
#include <command.h>
#include <env.h>
#include <log.h>
#define LOG_CATEGORY UCLASS_ETH
+#include <common.h>
#include <bootdev.h>
#include <bootstage.h>
#include <dm.h>
#define LOG_CATEGORY UCLASS_BOOTSTD
+#include <common.h>
#include <bootdev.h>
#include <bootflow.h>
#include <command.h>
* Joe Hershberger, National Instruments
*/
+#include <common.h>
#include <bootstage.h>
#include <dm.h>
#include <env.h>
* Copyright (C) 2023 The Android Open Source Project
*/
+#include <common.h>
#include <fastboot.h>
#include <net.h>
#include <net/fastboot_tcp.h>
* Copyright (C) 2016 The Android Open Source Project
*/
+#include <common.h>
#include <command.h>
#include <fastboot.h>
#include <net.h>
* Licensed under the GPL v2 or later
*/
+#include <common.h>
#include <env.h>
#include <log.h>
#include <net.h>
* Alex Marginean, NXP
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <miiphy.h>
* Alex Marginean, NXP
*/
+#include <common.h>
#include <dm.h>
#include <dm/lists.h>
#include <eth_phy.h>
/* Neighbour Discovery for IPv6 */
+#include <common.h>
#include <net.h>
#include <net6.h>
#include <ndisc.h>
*/
+#include <common.h>
#include <bootstage.h>
#include <command.h>
#include <console.h>
/* Simple IPv6 network layer implementation */
+#include <common.h>
#include <env_internal.h>
#include <malloc.h>
#include <net.h>
#include <net6.h>
#include <ndisc.h>
-#include <vsprintf.h>
/* NULL IPv6 address */
struct in6_addr const net_null_addr_ip6 = ZERO_IPV6_ADDR;
* September 27, 2018. As of now, NFSv3 is the default choice. If the server
* does not support NFSv3, we fall back to versions 2 or 1. */
+#include <common.h>
#include <command.h>
#include <display_options.h>
#ifdef CONFIG_SYS_DIRECT_FLASH_NFS
* Copyright 2019 Ramon Fried <rfried.dev@gmail.com>
*/
+#include <common.h>
#include <net.h>
#include <net/pcap.h>
#include <time.h>
-#include <linux/errno.h>
#include <asm/io.h>
#define LINKTYPE_ETHERNET 1
/* Simple ping6 implementation */
+#include <common.h>
#include <net.h>
#include <net6.h>
#include "ndisc.h"
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <common.h>
#include <command.h>
#include <log.h>
#include <net.h>
*
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <log.h>
* - TCP application (eg wget)
* Next Step HTTPS?
*/
+#include <common.h>
#include <command.h>
#include <console.h>
#include <env_internal.h>
* Copyright 2011 Comelit Group SpA,
* Luca Ceresoli <luca.ceresoli@comelit.it>
*/
+#include <common.h>
#include <command.h>
#include <display_options.h>
#include <efi_loader.h>
* Copyright (C) 2020 Philippe Reynes <philippe.reynes@softathome.com>
*/
+#include <common.h>
#include <net.h>
#include <net/udp.h>
#include <asm/global_data.h>
#include <command.h>
+#include <common.h>
#include <display_options.h>
#include <env.h>
#include <image.h>
* Copyright 2018 Lothar Felten, lothar.felten@gmail.com
*/
+#include <common.h>
#include <command.h>
#include <env.h>
#include <net.h>
* Dave Liu <daveliu@freescale.com>
*/
-#include <config.h>
+#include <common.h>
#include <cpu_func.h>
#include <irq_func.h>
#include <log.h>
*/
#if CFG_POST & CFG_SYS_POST_FLASH
-#include <config.h>
+#include <common.h>
#include <malloc.h>
#include <post.h>
#include <flash.h>
* #endif
*/
-#include <config.h>
+#include <common.h>
#include <log.h>
#include <post.h>
#include <i2c.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <log.h>
#include <asm/global_data.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
/*
* RTC test
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <irq_func.h>
/*
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <irq_func.h>
/*
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <irq_func.h>
/*
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <irq_func.h>
/*
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <irq_func.h>
/*
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <cpu_func.h>
/*
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <irq_func.h>
/*
* This file is originally a part of the GCC testsuite.
*/
-#include <config.h>
+#include <common.h>
#include <post.h>
* This file is originally a part of the GCC testsuite.
*/
-#include <config.h>
+#include <common.h>
#include <post.h>
* This file is originally a part of the GCC testsuite.
*/
-#include <config.h>
+#include <common.h>
#include <post.h>
* This file is originally a part of the GCC testsuite.
*/
-#include <config.h>
+#include <common.h>
#include <post.h>
* This file is originally a part of the GCC testsuite.
*/
-#include <config.h>
+#include <common.h>
#include <post.h>
* This file is originally a part of the GCC testsuite.
*/
-#include <config.h>
+#include <common.h>
#include <post.h>
* Author: Sergei Poselenov <sposelenov@emcraft.com>
*/
-#include <config.h>
+#include <common.h>
/*
* FPU test
* numbers) are rounded to within 0.5 ulp. PR other/14354.
*/
-#include <config.h>
+#include <common.h>
#include <post.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <irq_func.h>
/*
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <irq_func.h>
#include <log.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <irq_func.h>
/*
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <irq_func.h>
/*
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <irq_func.h>
/*
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <irq_func.h>
/*
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <irq_func.h>
/*
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <irq_func.h>
/*
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <irq_func.h>
/*
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <irq_func.h>
/*
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <irq_func.h>
/*
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <irq_func.h>
/*
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <irq_func.h>
/*
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
+#include <common.h>
#include <bootstage.h>
#include <env.h>
#include <log.h>
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <config.h>
-#include <linux/kernel.h>
+#include <common.h>
#include <post.h>
quiet_cmd_autoconf_dep = GEN $@
cmd_autoconf_dep = $(CC) -x c -DDO_DEPS_ONLY -M -MP $(c_flags) \
- -MQ include/config/auto.conf include/config.h > $@ || { \
+ -MQ include/config/auto.conf $(srctree)/include/common.h > $@ || { \
rm $@; false; \
}
include/autoconf.mk.dep: include/config.h FORCE
quiet_cmd_u_boot_cfg = CFG $@
cmd_u_boot_cfg = \
- $(CPP) $(c_flags) $2 -DDO_DEPS_ONLY -dM include/config.h > $@.tmp && { \
+ $(CPP) $(c_flags) $2 -DDO_DEPS_ONLY -dM $(srctree)/include/common.h > $@.tmp && { \
grep 'define CONFIG_' $@.tmp | \
sed '/define CONFIG_IS_ENABLED(/d;/define CONFIG_IF_ENABLED_INT(/d;/define CONFIG_VAL(/d;' > $@; \
rm $@.tmp; \
set -e
-echo '#include <linux/compiler.h>'
+echo '#include <common.h>'
$@ 2>/dev/null | grep -oe '_u_boot_list_2_[a-zA-Z0-9_]*_2_[a-zA-Z0-9_]*' | \
sort -u | sed -e 's/^\(.*\)/extern char \1[];\n__ADDRESSABLE(\1);/'
* Copyright (c) 2018, Google Inc. All rights reserved.
*/
+#include <common.h>
#include <bloblist.h>
#include <log.h>
#include <mapmem.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <bootstd.h>
#include <dm.h>
#include <bootdev.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <bootdev.h>
#include <bootflow.h>
#include <bootmeth.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <bootmeth.h>
#include <bootstd.h>
#include <dm.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <bootdev.h>
#include <bootstd.h>
#include <dm.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <cedit.h>
#include <env.h>
#include <expo.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <expo.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <image.h>
#include <test/suites.h>
#include <test/ut.h>
* Written by Eddie James <eajames@linux.ibm.com>
*/
+#include <common.h>
#include <bootm.h>
#include <malloc.h>
#include <test/suites.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm/ofnode.h>
#include <linux/libfdt.h>
#include <test/test.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <bootmeth.h>
#include <dm.h>
#include <image.h>
* Copyright 2020 Google LLC
*/
+#include <common.h>
#include <bootm.h>
#include <asm/global_data.h>
#include <test/suites.h>
* Copyright (C) 2021, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <console.h>
#include <test/suites.h>
#include <test/ut.h>
* Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
*/
+#include <common.h>
#include <string.h>
#include <asm/sandbox_arm_ffa.h>
#include <dm/test.h>
* Copyright 2023 Marek Vasut <marek.vasut+renesas@mailbox.org>
*/
+#include <common.h>
#include <console.h>
#include <mapmem.h>
#include <asm/global_data.h>
* Copyright 2022 Marek Vasut <marex@denx.de>
*/
+#include <common.h>
#include <console.h>
#include <mapmem.h>
#include <asm/global_data.h>
* Copyright 2022 Google LLC
*/
+#include <common.h>
#include <console.h>
#include <fdt_support.h>
#include <mapmem.h>
* Copyright 2022 Google LLC
*/
+#include <common.h>
#include <console.h>
#include <dm.h>
#include <video_console.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <cli.h>
#include <command.h>
#include <test/lib.h>
* Rui Miguel Silva <rui.silva@linaro.org>
*/
+#include <common.h>
#include <console.h>
#include <mapmem.h>
#include <asm/global_data.h>
* Copyright 2020 Google LLC
*/
+#include <common.h>
#include <command.h>
#include <test/suites.h>
#include <test/test.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <console.h>
#include <mapmem.h>
#include <dm/test.h>
* Written by Stephen Carlson <stcarlso@linux.microsoft.com>
*/
+#include <common.h>
#include <console.h>
#include <test/suites.h>
#include <test/ut.h>
* Copyright (C) 2021, STMicroelectronics - All Rights Reserved
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <dm/test.h>
* Tests for read and write commands
*/
+#include <common.h>
#include <dm/test.h>
#include <mapmem.h>
#include <part.h>
* Copyright (C) 2021 Linus Walleij <linus.walleij@linaro.org>
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <test/suites.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <console.h>
#include <mapmem.h>
#include <dm/test.h>
* Copyright (C) 2022 Sartura Ltd.
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <dm/test.h>
* Copyright 2020, Heinrich Schuchadt <xypron.glpk@gmx.de>
*/
+#include <common.h>
#include <command.h>
#include <asm/global_data.h>
#include <display_options.h>
* Copyright 2022, Samuel Dionne-Riel <samuel@dionne-riel.com>
*/
+#include <common.h>
#include <asm/global_data.h>
#include <test/lib.h>
#include <test/ut.h>
* Ying-Chun Liu (PaulLiu) <paul.liu@linaro.org>
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <env.h>
* Joe Hershberger, National Instruments, joe.hershberger@ni.com
*/
+#include <common.h>
#include <command.h>
#include <console.h>
-#include <vsprintf.h>
#include <test/suites.h>
#include <test/test.h>
#include <test/ut.h>
#define DEBUG
+#include <common.h>
#include <command.h>
#include <env.h>
#include <log.h>
* Unit tests for common functions
*/
+#include <common.h>
#include <command.h>
#include <test/common.h>
#include <test/suites.h>
* Copyright 2023 Google LLC
*/
+#include <common.h>
#include <cli.h>
-#include <time.h>
#include <test/common.h>
#include <test/test.h>
#include <test/ut.h>
* Copyright (C) 2022 Stefan Roese <sr@denx.de>
*/
+#include <common.h>
#include <cyclic.h>
#include <dm.h>
#include <test/common.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <event.h>
#include <test/common.h>
*/
#include <autoboot.h>
+#include <common.h>
#include <test/common.h>
#include <test/test.h>
#include <test/ut.h>
* Copyright (c) 2013, The Chromium Authors
*/
+#include <common.h>
#include <abuf.h>
#include <bootm.h>
#include <command.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <console.h>
#include <dm.h>
#include <malloc.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <uuid.h>
#include <acpi/acpigen.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <irq.h>
#include <malloc.h>
* Przemyslaw Marczak <p.marczak@samsung.com>
*/
+#include <common.h>
#include <adc.h>
#include <dm.h>
#include <dm/root.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <audio_codec.h>
#include <dm.h>
#include <dm/test.h>
* Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/
+#include <common.h>
#include <axi.h>
#include <dm.h>
#include <log.h>
* Copyright (C) 2015 Google, Inc
*/
+#include <common.h>
#include <blk.h>
#include <dm.h>
#include <part.h>
* Author: Tobias Waldekranz <tobias@waldekranz.com>
*/
+#include <common.h>
#include <blk.h>
#include <blkmap.h>
#include <dm.h>
* (C) 2018 Theobroma Systems Design und Consulting GmbH
*/
+#include <common.h>
#include <dm.h>
#include <bootcount.h>
#include <log.h>
* Copyright (c) 2014 Google, Inc
*/
+#include <common.h>
#ifdef CONFIG_SANDBOX
#include <log.h>
#include <os.h>
* Based on led.c
*/
+#include <common.h>
#include <dm.h>
#include <adc.h>
#include <button.h>
* Copyright (C) 2019 Intel Corporation <www.intel.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm/test.h>
* Copyright (C) 2015 Google, Inc
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <log.h>
* Lukasz Majewski, DENX Software Engineering, lukma@denx.de
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <asm/clk.h>
* Copyright (c) 2013 Google, Inc
*/
+#include <common.h>
#include <errno.h>
#include <dm.h>
#include <fdtdec.h>
* Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <dm/test.h>
* Copyright 2021 Google LLC
*/
+#include <common.h>
#include <cros_ec.h>
#include <dm.h>
#include <asm/test.h>
// SPDX-License-Identifier: GPL-2.0+
+#include <common.h>
#include <cros_ec.h>
#include <dm.h>
#include <pwm.h>
* Copyright 2019 Google LLC
*/
+#include <common.h>
#include <errno.h>
#include <dm.h>
#include <log.h>
* Grygorii Strashko <grygorii.strashko@ti.com>
*/
+#include <common.h>
#include <dm.h>
#include <malloc.h>
#include <dm/test.h>
* Author(s): Yannick Fertre <yannick.fertre@st.com> for STMicroelectronics.
*/
+#include <common.h>
#include <dm.h>
#include <dsi_host.h>
#include <asm/state.h>
* Copyright 2021 Google LLC
*/
+#include <common.h>
#include <dm.h>
#include <asm/test.h>
#include <dm/test.h>
* Joe Hershberger <joe.hershberger@ni.com>
*/
+#include <common.h>
#include <dm.h>
#include <env.h>
#include <fdtdec.h>
* Copyright (C) 2015 Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <fastboot.h>
#include <fb_mmc.h>
* Copyright 2020 NXP
*/
+#include <common.h>
#include <dm.h>
#include <asm/global_data.h>
#include <dm/of_extra.h>
* Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
*/
+#include <common.h>
#include <console.h>
#include <dm.h>
#include <asm/sandbox_arm_ffa.h>
* Copyright (C) 2018 Xilinx, Inc.
*/
+#include <common.h>
#include <dm.h>
#include <syscon.h>
#include <asm/test.h>
*/
#include <blk.h>
+#include <common.h>
#include <dm.h>
#include <fwu.h>
#include <fwu_mdata.h>
* Copyright (C) 2013 Google, Inc
*/
+#include <common.h>
#include <fdtdec.h>
#include <dm.h>
#include <log.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <blk.h>
#include <dm.h>
#include <fs.h>
* Copyright (C) 2018, STMicroelectronics - All Rights Reserved
*/
+#include <common.h>
#include <dm.h>
#include <hwspinlock.h>
#include <asm/state.h>
* Note: Test coverage does not include 10-bit addressing
*/
+#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <i2c.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <i2s.h>
#include <asm/test.h>
* Copyright (C) 2021 Mark Kettenis <kettenis@openbsd.org>
*/
+#include <common.h>
#include <dm.h>
#include <dm/test.h>
#include <dm/uclass-internal.h>
* Copyright 2019 Google LLC
*/
+#include <common.h>
#include <dm.h>
#include <irq.h>
#include <acpi/acpi_device.h>
* Copyright (C) 2020 Sean Anderson <seanga2@gmail.com>
*/
+#include <common.h>
/* For DIV_ROUND_DOWN_ULL, defined in linux/kernel.h */
#include <div64.h>
#include <dm/test.h>
* Copyright (C) 2015 Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <led.h>
#include <asm/gpio.h>
* Copyright (c) 2016, NVIDIA CORPORATION.
*/
+#include <common.h>
#include <dm.h>
#include <malloc.h>
#include <dm/test.h>
* Alex Marginean, NXP
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <miiphy.h>
* Alex Marginean, NXP
*/
+#include <common.h>
#include <dm.h>
#include <miiphy.h>
#include <misc.h>
* Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/
+#include <common.h>
#include <dm.h>
#include <dm/test.h>
#include <misc.h>
* Copyright (C) 2015 Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <mmc.h>
#include <part.h>
* Copyright (C) 2020 Texas Instruments Inc.
* Pratyush Yadav <p.yadav@ti.com>
*/
+#include <common.h>
#include <dm.h>
#include <mux.h>
#include <mux-internal.h>
#include <test/ut.h>
#include <console.h>
#include <rand.h>
-#include <time.h>
#define BUF_SIZE 256
* Copyright (C) 2020 Texas Instruments Incorporated - https://www.ti.com/
* Pratyush Yadav <p.yadav@ti.com>
*/
+#include <common.h>
#include <dm.h>
#include <mux.h>
#include <mux-internal.h>
* Jean-Jacques Hiblot <jjhiblot@ti.com>
*/
+#include <common.h>
#include <dm.h>
#include <mux.h>
#include <regmap.h>
* Jean-Jacques Hiblot <jjhiblot@ti.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm/ofnode.h>
#include <dm/lists.h>
* Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
*/
+#include <common.h>
#include <blk.h>
#include <console.h>
#include <dm.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <dm/of_extra.h>
#include <dm/test.h>
// SPDX-License-Identifier: GPL-2.0+
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dt-structs.h>
* behaviour of each ofnode function, since that is done by the normal ones.
*/
+#include <common.h>
#include <abuf.h>
#include <dm.h>
#include <log.h>
// SPDX-License-Identifier: GPL-2.0+
+#include <common.h>
#include <dm.h>
#include <dm/test.h>
#include <test/ut.h>
* Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/
+#include <common.h>
#include <display_options.h>
#include <dm.h>
#include <video_osd.h>
* Copyright 2019 Google LLC
*/
+#include <common.h>
#include <dm.h>
#include <p2sb.h>
#include <asm/test.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <backlight.h>
#include <dm.h>
#include <panel.h>
* Copyright (C) 2020 Sean Anderson <sean.anderson@seco.com>
*/
+#include <common.h>
#include <dm.h>
#include <mmc.h>
#include <part.h>
* Copyright 2018 Google LLC
*/
+#include <common.h>
#include <dm.h>
#include <pch.h>
#include <asm/test.h>
* Copyright (C) 2015 Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <asm/io.h>
#include <asm/test.h>
* Copyright (C) 2019 Ramon Fried
*/
+#include <common.h>
#include <dm.h>
#include <hexdump.h>
#include <pci_ep.h>
* Written by Jean-Jacques Hiblot <jjhiblot@ti.com>
*/
+#include <common.h>
#include <dm.h>
#include <generic-phy.h>
#include <log.h>
* Copyright (c) 2020 Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
*/
+#include <common.h>
#include <dm.h>
#include <mapmem.h>
#include <phys2bus.h>
* Copyright (C) 2020 Sean Anderson <seanga2@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
#include <dm/test.h>
* Copyright 2019 Google LLC
*/
+#include <common.h>
#include <dm.h>
#include <power/acpi_pmc.h>
#include <dm/test.h>
* Przemyslaw Marczak <p.marczak@samsung.com>
*/
+#include <common.h>
#include <errno.h>
#include <dm.h>
#include <fdtdec.h>
* Copyright (c) 2016, NVIDIA CORPORATION.
*/
+#include <common.h>
#include <dm.h>
#include <malloc.h>
#include <dm/test.h>
* Copyright (C) 2017 Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <pwm.h>
#include <asm/test.h>
* Copyright 2021 Asherah Connor <ashe@kivikakk.ee>
*/
+#include <common.h>
#include <qfw.h>
#include <dm.h>
#include <asm/test.h>
* Copyright (C) 2015 Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <ram.h>
#include <asm/global_data.h>
* Copyright (c) 2020 Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
*/
+#include <common.h>
#include <dm.h>
#include <dm/device.h>
#include <dm/ofnode.h>
* (C) 2018 Theobroma Systems Design und Consulting GmbH
*/
+#include <common.h>
#include <dm.h>
#include <reboot-mode/reboot-mode.h>
#include <env.h>
* Copyright (C) 2015 Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <mapmem.h>
#include <regmap.h>
#include <syscon.h>
#include <rand.h>
-#include <time.h>
#include <asm/test.h>
#include <dm/test.h>
#include <dm/devres.h>
* Przemyslaw Marczak <p.marczak@samsung.com>
*/
+#include <common.h>
#include <errno.h>
#include <dm.h>
#include <fdtdec.h>
* (C) Copyright 2015
* Texas Instruments Incorporated - https://www.ti.com/
*/
-
-#include <config.h>
+#include <common.h>
#include <dm.h>
#include <elf.h>
#include <errno.h>
* Copyright (c) 2016, NVIDIA CORPORATION.
*/
+#include <common.h>
#include <dm.h>
#include <dm/device-internal.h>
#include <log.h>
* Copyright (C) 2023 Johan Jonker <jbx6244@gmail.com>
*/
+#include <common.h>
#include <blk.h>
#include <dm.h>
#include <fs.h>
* Copyright (c) 2019, Linaro Limited
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <rng.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <console.h>
#include <dm.h>
#include <i2c.h>
* unknown SCMI protocol ID.
*/
+#include <common.h>
#include <clk.h>
#include <dm.h>
#include <reset.h>
* Copyright (C) 2015 Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <part.h>
#include <scsi.h>
* Copyright (c) 2018, STMicroelectronics
*/
+#include <common.h>
#include <log.h>
#include <serial.h>
#include <dm.h>
* Copyright (C) 2013 Google, Inc
*/
+#include <common.h>
#include <command.h>
#include <dm.h>
#include <fdtdec.h>
* Copyright (C) 2021, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm/test.h>
#include <dm/simple_bus.h>
* Copyright (C) 2020 Sean Anderson <seanga2@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm/test.h>
#include <dm/device-internal.h>
* Author: Alexey Romanov <avromanov@salutedevices.com>
*/
+#include <common.h>
#include <dm.h>
#include <sm.h>
#include <sandbox-sm.h>
* Copyright (C) 2018 Ramon Fried <ramon.fried@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <smem.h>
#include <dm/test.h>
* Dave Gerlach <d-gerlach@ti.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm/test.h>
#include <dm/uclass-internal.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <sound.h>
#include <dm/test.h>
* Copyright (C) 2013 Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <spi.h>
* (C) Copyright 2015 Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
*/
+#include <common.h>
#include <fdtdec.h>
#include <dm.h>
#include <malloc.h>
* Copyright (C) 2020 Sean Anderson <seanga2@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <dm/test.h>
#include <regmap.h>
* Copyright (C) 2015 Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <syscon.h>
* Copyright (C) 2021 Sean Anderson <sean.anderson@seco.com>
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <sysinfo.h>
* Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <dm/test.h>
* Copyright (C) 2015 Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <sysreset.h>
#include <asm/state.h>
* Author: AKASHI Takahiro
*/
+#include <common.h>
#include <dm/tag.h>
#include <dm/test.h> /* DM_TEST() */
#include <test/test.h> /* struct unit_test_state */
* Copyright (C) 2018 Linaro Limited
*/
+#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
* Copyright (c) 2013 Google, Inc
*/
+#include <common.h>
#include <test/suites.h>
#include <test/test.h>
* Pavel Herrmann <morpheus.ibis@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
* Copyright (c) 2013 Google, Inc
*/
+#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
* Pavel Herrmann <morpheus.ibis@gmail.com>
*/
+#include <common.h>
#include <log.h>
#include <malloc.h>
#include <dm.h>
* Copyright (C) 2015 Thomas Chou <thomas@wytron.com.tw>
*/
+#include <common.h>
#include <dm.h>
#include <timer.h>
#include <dm/test.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <dm.h>
#include <tpm_api.h>
#include <dm/test.h>
* Copyright (C) 2015 Google, Inc
*/
+#include <common.h>
#include <console.h>
#include <dm.h>
#include <part.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <bzlib.h>
#include <dm.h>
#include <gzip.h>
* Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <virtio_types.h>
#include <virtio.h>
* Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <virtio_types.h>
#include <virtio.h>
* Written by Andrew Scull <ascull@google.com>
*/
+#include <common.h>
#include <dm.h>
#include <virtio_types.h>
#include <virtio.h>
* Copyright 2017 Google, Inc
*/
+#include <common.h>
#include <cyclic.h>
#include <dm.h>
-#include <time.h>
#include <wdt.h>
#include <asm/gpio.h>
#include <asm/state.h>
* Joe Hershberger, National Instruments, joe.hershberger@ni.com
*/
+#include <common.h>
#include <command.h>
#include <env_attr.h>
#include <test/env.h>
* Joe Hershberger, National Instruments, joe.hershberger@ni.com
*/
+#include <common.h>
#include <command.h>
#include <test/env.h>
#include <test/suites.h>
+#include <common.h>
#include <command.h>
#include <env_attr.h>
#include <test/env.h>
* Roman Kapl, SYSGO, rka@sysgo.com
*/
+#include <common.h>
#include <command.h>
#include <log.h>
#include <search.h>
#include <stdio.h>
-#include <vsprintf.h>
#include <test/env.h>
#include <test/ut.h>
*/
#include <command.h>
+#include <common.h>
#include <dm.h>
#include <fuzzing_engine.h>
#include <test/fuzz.h>
* Written by Andrew Scull <ascull@google.com>
*/
+#include <common.h>
#include <dm.h>
#include <virtio.h>
#include <virtio_ring.h>
* Copyright (C) 2023 Sean Anderson <seanga2@gmail.com>
*/
+#include <common.h>
#include <image.h>
#include <imx_container.h>
#include <mapmem.h>
* Copyright (C) 2023 Sean Anderson <seanga2@gmail.com>
*/
+#include <common.h>
#include <blk.h>
#include <ext_common.h>
#include <ext4fs.h>
* Copyright (C) 2023 Sean Anderson <seanga2@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <spl.h>
#include <test/spl.h>
* Copyright (C) 2023 Sean Anderson <seanga2@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <spl.h>
#include <asm/io.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <image.h>
#include <os.h>
#include <spl.h>
* Copyright (C) 2023 Sean Anderson <seanga2@gmail.com>
*/
+#include <common.h>
#include <dm.h>
#include <spi_flash.h>
#include <spl.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <abuf.h>
#include <mapmem.h>
#include <test/lib.h>
* Unit test for asn1 compiler and asn1 decoder function via various parsers
*/
+#include <common.h>
#include <command.h>
#include <test/lib.h>
#include <test/test.h>
* Unit tests for library functions
*/
+#include <common.h>
#include <command.h>
#include <test/lib.h>
#include <test/suites.h>
* Copyright (c) 2020 Heinrich Schuchardt <xypron.glpk@gmx.de>
*/
+#include <common.h>
#include <efi_loader.h>
#include <test/lib.h>
#include <test/test.h>
* (C) Copyright 2020, Heinrich Schuchardt <xypron.glpk@gmx.de>
*/
+#include <common.h>
#include <efi_loader.h>
#include <test/lib.h>
#include <test/test.h>
* posix/tst-getopt-cancel.c
*/
+#include <common.h>
#include <getopt.h>
#include <test/lib.h>
#include <test/test.h>
* Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/
+#include <common.h>
#include <hexdump.h>
#include <test/lib.h>
#include <test/test.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <test/lib.h>
#include <test/test.h>
#include <test/ut.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <test/lib.h>
#include <test/test.h>
#include <test/ut.h>
* (C) Copyright 2018 Simon Goldschmidt
*/
+#include <common.h>
#include <dm.h>
#include <lmb.h>
#include <log.h>
* Copyright (c) 2021, Heinrich Schuchardt <xypron.glpk@gmx.de>
*/
+#include <common.h>
#include <test/lib.h>
#include <test/test.h>
#include <test/ut.h>
* Unit test for rsa_verify() function
*/
+#include <common.h>
#include <command.h>
#include <image.h>
#include <test/lib.h>
* Unit tests for sscanf() function
*/
+#include <common.h>
#include <command.h>
#include <log.h>
#include <test/lib.h>
* This has to be considered in testing.
*/
+#include <common.h>
#include <command.h>
#include <log.h>
#include <test/lib.h>
* These tests adapted from glibc's string/test-strncat.c
*/
+#include <common.h>
#include <test/lib.h>
#include <test/test.h>
#include <test/ut.h>
* Unit tests for aes functions
*/
+#include <common.h>
#include <command.h>
#include <hexdump.h>
#include <rand.h>
* Unit test for crypt-style password hashing
*/
+#include <common.h>
#include <test/lib.h>
#include <test/test.h>
#include <test/ut.h>
* This has to be considered in testing.
*/
+#include <common.h>
#include <command.h>
#include <errno.h>
#include <test/lib.h>
* Copyright 2020, Heinrich Schuchadt <xypron.glpk@gmx.de>
*/
+#include <common.h>
#include <command.h>
#include <display_options.h>
#include <asm/global_data.h>
* Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
*/
+#include <common.h>
#include <uuid.h>
#include <test/lib.h>
#include <test/test.h>
* Test continuation of log messages.
*/
+#include <common.h>
#include <console.h>
#include <asm/global_data.h>
#include <test/log.h>
* Copyright (C) 2020 Sean Anderson <seanga2@gmail.com>
*/
+#include <common.h>
#include <console.h>
#include <log.h>
#include <asm/global_data.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <command.h>
#include <log.h>
#include <asm/global_data.h>
* Logging function tests.
*/
+#include <common.h>
#include <console.h>
#include <log.h>
#include <test/log.h>
* Logging function tests for CONFIG_LOG=n without #define DEBUG
*/
+#include <common.h>
#include <console.h>
#include <log.h>
#include <asm/global_data.h>
/* Needed for testing log_debug() */
#define DEBUG 1
+#include <common.h>
#include <console.h>
#include <log.h>
#include <asm/global_data.h>
* Test continuation of log messages using pr_cont().
*/
+#include <common.h>
#include <console.h>
#include <test/log.h>
#include <test/test.h>
/* Override CONFIG_LOG_MAX_LEVEL */
#define LOG_DEBUG
+#include <common.h>
#include <asm/global_data.h>
#include <dm/device.h>
#include <hexdump.h>
* Invoke the test with: ./u-boot -d arch/sandbox/dts/test.dtb
*/
+#include <common.h>
#include <asm/global_data.h>
#include <dm/device.h>
#include <hexdump.h>
* Copyright (C) 2019, Theobroma Systems Design und Consulting GmbH
*/
+#include <common.h>
#include <command.h>
#include <errno.h>
#include <fdt_support.h>
* Copyright (c) 2016 Free Electrons
*/
+#include <common.h>
#include <command.h>
#include <errno.h>
#include <fdt_support.h>
* Copyright (c) 2012, The Chromium Authors
*/
+#include <common.h>
#include <command.h>
#include <efi_api.h>
#include <display_options.h>
# Regexes for text we expect U-Boot to send to the console.
pattern_u_boot_spl_signon = re.compile('(U-Boot SPL \\d{4}\\.\\d{2}[^\r\n]*\\))')
+pattern_u_boot_spl2_signon = re.compile('(U-Boot SPL \\d{4}\\.\\d{2}[^\r\n]*\\))')
pattern_u_boot_main_signon = re.compile('(U-Boot \\d{4}\\.\\d{2}[^\r\n]*\\))')
pattern_stop_autoboot_prompt = re.compile('Hit any key to stop autoboot: ')
pattern_unknown_command = re.compile('Unknown command \'.*\' - try \'help\'')
bad_pattern_defs = (
('spl_signon', pattern_u_boot_spl_signon),
+ ('spl2_signon', pattern_u_boot_spl2_signon),
('main_signon', pattern_u_boot_main_signon),
('stop_autoboot_prompt', pattern_stop_autoboot_prompt),
('unknown_command', pattern_unknown_command),
"""
try:
bcfg = self.config.buildconfig
+ config_spl = bcfg.get('config_spl', 'n') == 'y'
config_spl_serial = bcfg.get('config_spl_serial', 'n') == 'y'
env_spl_skipped = self.config.env.get('env__spl_skipped', False)
- env_spl_banner_times = self.config.env.get('env__spl_banner_times', 1)
+ env_spl2_skipped = self.config.env.get('env__spl2_skipped', True)
while loop_num > 0:
loop_num -= 1
- while config_spl_serial and not env_spl_skipped and env_spl_banner_times > 0:
+ if config_spl and config_spl_serial and not env_spl_skipped:
m = self.p.expect([pattern_u_boot_spl_signon] +
self.bad_patterns)
if m != 0:
raise Exception('Bad pattern found on SPL console: ' +
self.bad_pattern_ids[m - 1])
- env_spl_banner_times -= 1
-
+ if not env_spl2_skipped:
+ m = self.p.expect([pattern_u_boot_spl2_signon] +
+ self.bad_patterns)
+ if m != 0:
+ raise Exception('Bad pattern found on SPL2 console: ' +
+ self.bad_pattern_ids[m - 1])
m = self.p.expect([pattern_u_boot_main_signon] + self.bad_patterns)
if m != 0:
raise Exception('Bad pattern found on console: ' +
-#include <linux/types.h>
+#include <common.h>
int test_types(void)
{
* Copyright 2020 Google LLC
*/
+#include <common.h>
#include <vsprintf.h>
#include <test/suites.h>
#include <test/test.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <blk.h>
#include <console.h>
#include <cyclic.h>
* Written by Simon Glass <sjg@chromium.org>
*/
+#include <common.h>
#include <command.h>
#include <errno.h>
#include <time.h>
* Copyright (c) 2018 Heinrich Schuchardt <xypron.glpk@gmx.de>
*/
+#include <common.h>
#include <charset.h>
#include <command.h>
#include <efi_loader.h>
* Copyright (c) 2013 Google, Inc
*/
+#include <common.h>
#include <console.h>
#include <malloc.h>
#ifdef CONFIG_SANDBOX
def generate_uclasses(self):
self.out('\n')
+ self.out('#include <common.h>\n')
self.out('#include <dm.h>\n')
self.out('#include <dt-structs.h>\n')
self.out('\n')
self.out('/* Allow use of U_BOOT_DRVINFO() in this file */\n')
self.out('#define DT_PLAT_C\n')
self.out('\n')
+ self.out('#include <common.h>\n')
self.out('#include <dm.h>\n')
self.out('#include <dt-structs.h>\n')
self.out('\n')
See the documentation in doc/driver-model/of-plat.rst for more
information.
"""
+ self.out('#include <common.h>\n')
self.out('#include <dm.h>\n')
self.out('#include <dt-structs.h>\n')
self.out('\n')
/* Allow use of U_BOOT_DRVINFO() in this file */
#define DT_PLAT_C
+#include <common.h>
#include <dm.h>
#include <dt-structs.h>
'''
'''
uclass_text_inst = '''
+#include <common.h>
#include <dm.h>
#include <dt-structs.h>
* This was generated by dtoc from a .dtb (device tree binary) file.
*/
+#include <common.h>
#include <dm.h>
#include <dt-structs.h>