arm: tegra: Remove <common.h> and add needed includes

Remove <common.h> from all mach-tegra and include/asm/arch-tegra files
and when needed add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Tom Rini 2024-04-30 07:35:31 -06:00
parent 97d4896b53
commit d6bf10009b
43 changed files with 16 additions and 41 deletions

View File

@ -4,6 +4,7 @@
* NVIDIA Corporation <www.nvidia.com> * NVIDIA Corporation <www.nvidia.com>
*/ */
#include <asm/types.h> #include <asm/types.h>
#include <asm/arch-tegra/tegra.h>
/* Stabilization delays, in usec */ /* Stabilization delays, in usec */
#define PLL_STABILIZATION_DELAY (300) #define PLL_STABILIZATION_DELAY (300)

View File

@ -6,6 +6,8 @@
#ifndef _TEGRA_CBOOT_H_ #ifndef _TEGRA_CBOOT_H_
#define _TEGRA_CBOOT_H_ #define _TEGRA_CBOOT_H_
#include <linux/errno.h>
#include <linux/types.h>
#include <net.h> #include <net.h>
#ifdef CONFIG_ARM64 #ifdef CONFIG_ARM64

View File

@ -6,7 +6,7 @@
/* Tegra AP (Application Processor) code */ /* Tegra AP (Application Processor) code */
#include <common.h> #include <config.h>
#include <log.h> #include <log.h>
#include <linux/bug.h> #include <linux/bug.h>
#include <asm/io.h> #include <asm/io.h>

View File

@ -7,7 +7,6 @@
* Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved. * Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved.
*/ */
#include <common.h>
#include <asm/system.h> #include <asm/system.h>
#include <asm/armv8/mmu.h> #include <asm/armv8/mmu.h>

View File

@ -4,7 +4,7 @@
* NVIDIA Corporation <www.nvidia.com> * NVIDIA Corporation <www.nvidia.com>
*/ */
#include <common.h> #include <config.h>
#include <cpu_func.h> #include <cpu_func.h>
#include <dm.h> #include <dm.h>
#include <init.h> #include <init.h>

View File

@ -4,7 +4,7 @@
* NVIDIA Corporation <www.nvidia.com> * NVIDIA Corporation <www.nvidia.com>
*/ */
#include <common.h> #include <config.h>
#include <dm.h> #include <dm.h>
#include <env.h> #include <env.h>
#include <errno.h> #include <errno.h>

View File

@ -5,7 +5,6 @@
/* Tegra cache routines */ /* Tegra cache routines */
#include <common.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/arch-tegra/ap.h> #include <asm/arch-tegra/ap.h>
#if IS_ENABLED(CONFIG_TEGRA_GP_PADCTRL) #if IS_ENABLED(CONFIG_TEGRA_GP_PADCTRL)

View File

@ -3,7 +3,6 @@
* Copyright (c) 2016-2018, NVIDIA CORPORATION. * Copyright (c) 2016-2018, NVIDIA CORPORATION.
*/ */
#include <common.h>
#include <env.h> #include <env.h>
#include <fdt_support.h> #include <fdt_support.h>
#include <fdtdec.h> #include <fdtdec.h>

View File

@ -5,7 +5,6 @@
/* Tegra SoC common clock control functions */ /* Tegra SoC common clock control functions */
#include <common.h>
#include <div64.h> #include <div64.h>
#include <dm.h> #include <dm.h>
#include <errno.h> #include <errno.h>

View File

@ -24,7 +24,6 @@
* (C) Copyright 2004 Texas Insturments * (C) Copyright 2004 Texas Insturments
*/ */
#include <common.h>
#include <command.h> #include <command.h>
#include <cpu_func.h> #include <cpu_func.h>
#include <irq_func.h> #include <irq_func.h>

View File

@ -3,7 +3,6 @@
* Copyright (c) 2010-2019, NVIDIA CORPORATION. All rights reserved. * Copyright (c) 2010-2019, NVIDIA CORPORATION. All rights reserved.
*/ */
#include <common.h>
#include <log.h> #include <log.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/arch/clock.h> #include <asm/arch/clock.h>

View File

@ -4,7 +4,6 @@
* (C) Copyright 2010 - 2011 NVIDIA Corporation <www.nvidia.com> * (C) Copyright 2010 - 2011 NVIDIA Corporation <www.nvidia.com>
*/ */
#include <common.h>
#include <log.h> #include <log.h>
#include <linux/errno.h> #include <linux/errno.h>
#include <asm/arch-tegra/crypto.h> #include <asm/arch-tegra/crypto.h>

View File

@ -3,7 +3,6 @@
* Copyright (c) 2010-2016, NVIDIA CORPORATION. * Copyright (c) 2010-2016, NVIDIA CORPORATION.
*/ */
#include <common.h>
#include <fdtdec.h> #include <fdtdec.h>
#include <stdlib.h> #include <stdlib.h>
#include <asm/arch-tegra/cboot.h> #include <asm/arch-tegra/cboot.h>

View File

@ -3,7 +3,6 @@
* Copyright (c) 2011 The Chromium OS Authors. * Copyright (c) 2011 The Chromium OS Authors.
*/ */
#include <common.h>
#include <asm/global_data.h> #include <asm/global_data.h>
#include "emc.h" #include "emc.h"
#include <asm/io.h> #include <asm/io.h>

View File

@ -7,7 +7,6 @@
* Svyatoslav Ryhel <clamor95@gmail.com> * Svyatoslav Ryhel <clamor95@gmail.com>
*/ */
#include <common.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <asm/io.h> #include <asm/io.h>

View File

@ -5,7 +5,6 @@
/* Tegra vpr routines */ /* Tegra vpr routines */
#include <common.h>
#include <log.h> #include <log.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/arch/tegra.h> #include <asm/arch/tegra.h>

View File

@ -3,11 +3,11 @@
* Copyright (c) 2016, NVIDIA CORPORATION. * Copyright (c) 2016, NVIDIA CORPORATION.
*/ */
#include <common.h>
#include <cpu_func.h> #include <cpu_func.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/arch-tegra/ivc.h> #include <asm/arch-tegra/ivc.h>
#include <linux/bug.h> #include <linux/bug.h>
#include <linux/errno.h>
#include <linux/printk.h> #include <linux/printk.h>
#define TEGRA_IVC_ALIGN 64 #define TEGRA_IVC_ALIGN 64

View File

@ -3,7 +3,6 @@
* Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved. * Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
*/ */
#include <common.h>
#include <cpu_func.h> #include <cpu_func.h>
#include <log.h> #include <log.h>
#include <asm/global_data.h> #include <asm/global_data.h>

View File

@ -3,8 +3,8 @@
* Copyright (c) 2014-2019, NVIDIA CORPORATION. All rights reserved. * Copyright (c) 2014-2019, NVIDIA CORPORATION. All rights reserved.
*/ */
#include <common.h>
#include <errno.h> #include <errno.h>
#include <time.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <asm/io.h> #include <asm/io.h>

View File

@ -5,7 +5,6 @@
* *
* Allen Martin <amartin@nvidia.com> * Allen Martin <amartin@nvidia.com>
*/ */
#include <common.h>
#include <debug_uart.h> #include <debug_uart.h>
#include <log.h> #include <log.h>
#include <spl.h> #include <spl.h>

View File

@ -4,7 +4,6 @@
* NVIDIA Corporation <www.nvidia.com> * NVIDIA Corporation <www.nvidia.com>
*/ */
#include <common.h>
#include <init.h> #include <init.h>
#include <linux/ctype.h> #include <linux/ctype.h>
#if defined(CONFIG_TEGRA124) || defined(CONFIG_TEGRA30) #if defined(CONFIG_TEGRA124) || defined(CONFIG_TEGRA30)

View File

@ -6,7 +6,6 @@
/* Tegra114 Clock control functions */ /* Tegra114 Clock control functions */
#include <common.h>
#include <init.h> #include <init.h>
#include <log.h> #include <log.h>
#include <asm/io.h> #include <asm/io.h>

View File

@ -4,7 +4,6 @@
* NVIDIA Corporation <www.nvidia.com> * NVIDIA Corporation <www.nvidia.com>
*/ */
#include <common.h>
#include <log.h> #include <log.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/arch/clock.h> #include <asm/arch/clock.h>

View File

@ -6,7 +6,7 @@
/* Tegra124 Clock control functions */ /* Tegra124 Clock control functions */
#include <common.h> #include <config.h>
#include <init.h> #include <init.h>
#include <log.h> #include <log.h>
#include <asm/io.h> #include <asm/io.h>

View File

@ -4,7 +4,6 @@
* NVIDIA Corporation <www.nvidia.com> * NVIDIA Corporation <www.nvidia.com>
*/ */
#include <common.h>
#include <log.h> #include <log.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/arch/ahb.h> #include <asm/arch/ahb.h>

View File

@ -3,7 +3,6 @@
* Copyright (C) 2017 Google, Inc * Copyright (C) 2017 Google, Inc
*/ */
#include <common.h>
#include <dm.h> #include <dm.h>
#include <syscon.h> #include <syscon.h>

View File

@ -4,7 +4,6 @@
* Author: Jan Kiszka <jan.kiszka@siemens.com> * Author: Jan Kiszka <jan.kiszka@siemens.com>
*/ */
#include <common.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/psci.h> #include <asm/psci.h>
#include <asm/arch/flow.h> #include <asm/arch/flow.h>

View File

@ -5,9 +5,9 @@
#define pr_fmt(fmt) "tegra-xusb-padctl: " fmt #define pr_fmt(fmt) "tegra-xusb-padctl: " fmt
#include <common.h>
#include <errno.h> #include <errno.h>
#include <log.h> #include <log.h>
#include <time.h>
#include <dm/of_access.h> #include <dm/of_access.h>
#include <dm/ofnode.h> #include <dm/ofnode.h>
#include <linux/delay.h> #include <linux/delay.h>

View File

@ -4,7 +4,6 @@
* Copyright (c) 2022, Svyatoslav Ryhel <clamor95@gmail.com> * Copyright (c) 2022, Svyatoslav Ryhel <clamor95@gmail.com>
*/ */
#include <common.h>
#include <command.h> #include <command.h>
#include <log.h> #include <log.h>
#include <asm/arch-tegra/crypto.h> #include <asm/arch-tegra/crypto.h>

View File

@ -7,7 +7,6 @@
/* Tegra20 Clock control functions */ /* Tegra20 Clock control functions */
#include <common.h>
#include <errno.h> #include <errno.h>
#include <init.h> #include <init.h>
#include <log.h> #include <log.h>

View File

@ -3,7 +3,6 @@
* Copyright (c) 2010-2012, NVIDIA CORPORATION. All rights reserved. * Copyright (c) 2010-2012, NVIDIA CORPORATION. All rights reserved.
*/ */
#include <common.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/arch/tegra.h> #include <asm/arch/tegra.h>
#include <asm/arch-tegra/pmc.h> #include <asm/arch-tegra/pmc.h>

View File

@ -4,7 +4,6 @@
* NVIDIA Corporation <www.nvidia.com> * NVIDIA Corporation <www.nvidia.com>
*/ */
#include <common.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/arch/clock.h> #include <asm/arch/clock.h>
#include <asm/arch/tegra.h> #include <asm/arch/tegra.h>

View File

@ -3,7 +3,7 @@
* Copyright (c) 2011 The Chromium OS Authors. * Copyright (c) 2011 The Chromium OS Authors.
*/ */
#include <common.h> #include <config.h>
#include <fdtdec.h> #include <fdtdec.h>
#include <log.h> #include <log.h>
#include <asm/io.h> #include <asm/io.h>

View File

@ -4,7 +4,6 @@
* (C) Copyright 2010,2011 NVIDIA Corporation <www.nvidia.com> * (C) Copyright 2010,2011 NVIDIA Corporation <www.nvidia.com>
*/ */
#include <common.h>
#include <i2c.h> #include <i2c.h>
#include <log.h> #include <log.h>
#include <tps6586x.h> #include <tps6586x.h>

View File

@ -4,7 +4,6 @@
* NVIDIA Corporation <www.nvidia.com> * NVIDIA Corporation <www.nvidia.com>
*/ */
#include <common.h>
#include <asm/global_data.h> #include <asm/global_data.h>
#include <asm/io.h> #include <asm/io.h>
#include <linux/errno.h> #include <linux/errno.h>

View File

@ -4,7 +4,7 @@
* NVIDIA Corporation <www.nvidia.com> * NVIDIA Corporation <www.nvidia.com>
*/ */
#include <common.h> #include <config.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/arch/clock.h> #include <asm/arch/clock.h>
#include <asm/arch/flow.h> #include <asm/arch/flow.h>

View File

@ -6,10 +6,10 @@
/* Tegra210 Clock control functions */ /* Tegra210 Clock control functions */
#include <common.h>
#include <errno.h> #include <errno.h>
#include <init.h> #include <init.h>
#include <log.h> #include <log.h>
#include <time.h>
#include <asm/cache.h> #include <asm/cache.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/arch/clock.h> #include <asm/arch/clock.h>

View File

@ -5,9 +5,9 @@
#define pr_fmt(fmt) "tegra-xusb-padctl: " fmt #define pr_fmt(fmt) "tegra-xusb-padctl: " fmt
#include <common.h>
#include <errno.h> #include <errno.h>
#include <log.h> #include <log.h>
#include <time.h>
#include <asm/global_data.h> #include <asm/global_data.h>
#include <dm/of_access.h> #include <dm/of_access.h>
#include <dm/ofnode.h> #include <dm/ofnode.h>

View File

@ -4,9 +4,9 @@
* Copyright (c) 2022, Svyatoslav Ryhel <clamor95@gmail.com> * Copyright (c) 2022, Svyatoslav Ryhel <clamor95@gmail.com>
*/ */
#include <common.h>
#include <command.h> #include <command.h>
#include <log.h> #include <log.h>
#include <vsprintf.h>
#include <asm/arch-tegra/crypto.h> #include <asm/arch-tegra/crypto.h>
#include "bct.h" #include "bct.h"
#include "uboot_aes.h" #include "uboot_aes.h"

View File

@ -6,7 +6,6 @@
/* Tegra30 Clock control functions */ /* Tegra30 Clock control functions */
#include <common.h>
#include <errno.h> #include <errno.h>
#include <init.h> #include <init.h>
#include <log.h> #include <log.h>

View File

@ -3,7 +3,6 @@
* Copyright (c) 2010-2014, NVIDIA CORPORATION. All rights reserved. * Copyright (c) 2010-2014, NVIDIA CORPORATION. All rights reserved.
*/ */
#include <common.h>
#include <log.h> #include <log.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/arch/clock.h> #include <asm/arch/clock.h>

View File

@ -5,7 +5,6 @@
#define pr_fmt(fmt) "tegra-xusb-padctl: " fmt #define pr_fmt(fmt) "tegra-xusb-padctl: " fmt
#include <common.h>
#include <errno.h> #include <errno.h>
#include <log.h> #include <log.h>
#include <linux/printk.h> #include <linux/printk.h>

View File

@ -3,9 +3,9 @@
* Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved.
*/ */
#include <common.h>
#include <errno.h> #include <errno.h>
#include <linux/compiler.h>
#include <asm/arch-tegra/xusb-padctl.h> #include <asm/arch-tegra/xusb-padctl.h>
struct tegra_xusb_phy * __weak tegra_xusb_phy_get(unsigned int type) struct tegra_xusb_phy * __weak tegra_xusb_phy_get(unsigned int type)