powerpc: Remove <common.h> and add needed includes

Remove <common.h> from all powerpc architecture files and when needed add
missing include files directly. This typically involves using
<asm/u-boot.h> instead due to the difficult nested structure of the
PowerPC includes themselves.

Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Tom Rini
2024-05-06 15:05:04 -06:00
parent e51478ba42
commit 702841b56e
76 changed files with 50 additions and 73 deletions
-1
View File
@@ -9,7 +9,6 @@
* Derived from the MPC8260 and MPC85xx.
*/
#include <common.h>
#include <cpu_func.h>
#include <irq_func.h>
#include <net.h>
-1
View File
@@ -6,7 +6,6 @@
* based on the contribution of Marian Balakowicz <m8@semihalf.com>
*/
#include <common.h>
#include <irq_func.h>
#include <mpc83xx.h>
#include <command.h>
-1
View File
@@ -6,7 +6,6 @@
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
#include <common.h>
#include <clock_legacy.h>
#include <asm/global_data.h>
#include <linux/libfdt.h>
+1 -1
View File
@@ -6,7 +6,7 @@
* Copyright 2004 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <asm/u-boot.h>
#include <command.h>
#include <irq_func.h>
#include <mpc83xx.h>
-1
View File
@@ -3,7 +3,6 @@
* Copyright 2011 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <log.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
-1
View File
@@ -6,7 +6,6 @@
* with some bits from older board-specific PCI initialization.
*/
#include <common.h>
#include <init.h>
#include <pci.h>
#include <asm/bitops.h>
+1 -1
View File
@@ -7,7 +7,7 @@
* Anton Vorontsov <avorontsov@ru.mvista.com>
*/
#include <common.h>
#include <asm/u-boot.h>
#include <clock_legacy.h>
#include <pci.h>
#include <mpc83xx.h>
-1
View File
@@ -6,7 +6,6 @@
* based on source code of Shlomi Gridish
*/
#include <common.h>
#include <linux/errno.h>
#include <asm/io.h>
#include <asm/immap_83xx.h>
-1
View File
@@ -9,7 +9,6 @@
*/
#include <config.h>
#include <common.h>
#include <asm/io.h>
#include <asm/fsl_mpc83xx_serdes.h>
#include <linux/delay.h>
+1 -1
View File
@@ -12,7 +12,7 @@
#ifndef CONFIG_MPC83XX_SDRAM
#include <common.h>
#include <asm/u-boot.h>
#include <cpu_func.h>
#include <log.h>
#include <time.h>
+1 -1
View File
@@ -8,7 +8,7 @@
#ifndef CONFIG_CLK_MPC83XX
#include <common.h>
#include <asm/u-boot.h>
#include <clock_legacy.h>
#include <mpc83xx.h>
#include <command.h>
+1 -1
View File
@@ -3,7 +3,7 @@
* Copyright (C) 2004-2008 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <config.h>
#include <asm-offsets.h>
#include <clock_legacy.h>
#include <mpc83xx.h>
-1
View File
@@ -11,7 +11,6 @@
* exceptions
*/
#include <common.h>
#include <asm/global_data.h>
#include <asm/ptrace.h>
#include <command.h>
+1 -1
View File
@@ -3,7 +3,7 @@
* Copyright 2012 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <config.h>
#include <asm/fsl_portals.h>
#include <asm/fsl_liodn.h>
-1
View File
@@ -3,7 +3,6 @@
* Copyright 2012 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <asm/fsl_serdes.h>
#include <asm/processor.h>
#include <asm/io.h>
@@ -5,7 +5,6 @@
*/
#include <config.h>
#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <asm/immap_85xx.h>
-1
View File
@@ -4,7 +4,6 @@
*/
#include <config.h>
#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <asm/immap_85xx.h>
+1 -1
View File
@@ -3,7 +3,7 @@
* Copyright 2010-2011 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <asm/u-boot.h>
#include <command.h>
#include <init.h>
#include <linux/compiler.h>
-1
View File
@@ -9,7 +9,6 @@
*/
#include <config.h>
#include <common.h>
#include <cpu_func.h>
#include <clock_legacy.h>
#include <display_options.h>
+2 -1
View File
@@ -3,8 +3,9 @@
* Copyright 2009-2012 Freescale Semiconductor, Inc
*/
#include <common.h>
#include <asm/ppc.h>
#include <system-constants.h>
#include <linux/types.h>
#include <asm-offsets.h>
#include <asm/global_data.h>
#include <asm/processor.h>
+1 -1
View File
@@ -6,7 +6,7 @@
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
#include <common.h>
#include <config.h>
#include <clock_legacy.h>
#include <env.h>
#include <log.h>
@@ -3,7 +3,7 @@
* Copyright 2012 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <asm/u-boot.h>
#include <log.h>
#include <asm/fsl_serdes.h>
#include <asm/immap_85xx.h>
@@ -3,7 +3,7 @@
* Copyright 2009-2011 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <config.h>
#include <env.h>
#include <log.h>
#include <time.h>
+1 -1
View File
@@ -10,7 +10,7 @@
* Xianghua Xiao (X.Xiao@motorola.com)
*/
#include <common.h>
#include <asm/ppc.h>
#include <irq_func.h>
#include <log.h>
#include <time.h>
+1 -1
View File
@@ -3,7 +3,7 @@
* Copyright 2008-2011 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <config.h>
#include <log.h>
#include <linux/libfdt.h>
#include <fdt_support.h>
+1 -1
View File
@@ -3,7 +3,7 @@
* Copyright 2008-2011 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <config.h>
#include <cpu_func.h>
#include <env.h>
#include <log.h>
@@ -5,7 +5,6 @@
*/
#include <config.h>
#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <asm/immap_85xx.h>
@@ -4,7 +4,6 @@
*/
#include <config.h>
#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <asm/immap_85xx.h>
@@ -4,7 +4,6 @@
*/
#include <config.h>
#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <asm/immap_85xx.h>
-1
View File
@@ -5,7 +5,6 @@
*/
#include <config.h>
#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <asm/immap_85xx.h>
-1
View File
@@ -4,7 +4,6 @@
*/
#include <config.h>
#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <asm/immap_85xx.h>
-1
View File
@@ -5,7 +5,6 @@
*/
#include <config.h>
#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <asm/immap_85xx.h>
-1
View File
@@ -4,7 +4,6 @@
*/
#include <config.h>
#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <asm/immap_85xx.h>
+1 -1
View File
@@ -3,7 +3,7 @@
* Copyright 2011 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <asm/u-boot.h>
#include <asm/fsl_portals.h>
#include <asm/fsl_liodn.h>
+1 -1
View File
@@ -3,7 +3,7 @@
* Copyright 2010-2011 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <asm/u-boot.h>
#include <asm/fsl_serdes.h>
#include <asm/processor.h>
#include <asm/io.h>
+1 -1
View File
@@ -3,7 +3,7 @@
* Copyright 2010-2011 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <config.h>
#include <asm/fsl_portals.h>
#include <asm/fsl_liodn.h>
-1
View File
@@ -3,7 +3,6 @@
* Copyright 2009-2011 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <asm/fsl_serdes.h>
#include <asm/processor.h>
#include <asm/io.h>
+1 -1
View File
@@ -3,7 +3,7 @@
* Copyright 2010-2011 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <config.h>
#include <asm/fsl_portals.h>
#include <asm/fsl_liodn.h>
-1
View File
@@ -3,7 +3,6 @@
* Copyright 2009-2010 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <asm/io.h>
#include <asm/fsl_serdes.h>
#include <asm/processor.h>
+1 -1
View File
@@ -3,7 +3,7 @@
* Copyright 2010-2011 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <config.h>
#include <asm/fsl_portals.h>
#include <asm/fsl_liodn.h>
-1
View File
@@ -3,7 +3,6 @@
* Copyright 2009-2011 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <asm/fsl_serdes.h>
#include <asm/processor.h>
#include <asm/io.h>
-1
View File
@@ -3,7 +3,6 @@
* Copyright 2008-2011 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <linux/libfdt.h>
#include <fdt_support.h>
+1 -1
View File
@@ -6,7 +6,7 @@
* based on source code of Shlomi Gridish
*/
#include <common.h>
#include <config.h>
#include <linux/errno.h>
#include <asm/io.h>
#include <asm/immap_85xx.h>
+1 -1
View File
@@ -9,7 +9,7 @@
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
#include <common.h>
#include <asm/u-boot.h>
#include <cpu_func.h>
#include <clock_legacy.h>
#include <ppc_asm.tmpl>
+1 -1
View File
@@ -3,7 +3,7 @@
* Copyright 2009 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <asm/u-boot.h>
#include <asm/processor.h>
#include <asm/global_data.h>
#include <fsl_ifc.h>
+1 -1
View File
@@ -3,7 +3,7 @@
* Copyright 2014 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <asm/u-boot.h>
#include <asm/fsl_portals.h>
#include <asm/fsl_liodn.h>
+1 -1
View File
@@ -3,7 +3,7 @@
* Copyright 2014 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <asm/u-boot.h>
#include <asm/fsl_serdes.h>
#include <asm/processor.h>
#include <asm/io.h>
+1 -1
View File
@@ -3,7 +3,7 @@
* Copyright 2012 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <asm/u-boot.h>
#include <asm/fsl_portals.h>
#include <asm/fsl_liodn.h>
+1 -1
View File
@@ -3,7 +3,7 @@
* Copyright 2012 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <asm/u-boot.h>
#include <asm/fsl_serdes.h>
#include <asm/processor.h>
#include <asm/io.h>
+1 -1
View File
@@ -3,7 +3,7 @@
* Copyright 2013 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <asm/u-boot.h>
#include <asm/fsl_portals.h>
#include <asm/fsl_liodn.h>
+1 -1
View File
@@ -5,7 +5,7 @@
* Shengzhou Liu <Shengzhou.Liu@freescale.com>
*/
#include <common.h>
#include <asm/u-boot.h>
#include <asm/fsl_serdes.h>
#include <asm/processor.h>
#include "fsl_corenet2_serdes.h"
+1 -1
View File
@@ -3,7 +3,7 @@
* Copyright 2012 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <asm/u-boot.h>
#include <asm/fsl_portals.h>
#include <asm/fsl_liodn.h>
+1 -1
View File
@@ -3,7 +3,7 @@
* Copyright 2012 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <asm/u-boot.h>
#include <asm/fsl_serdes.h>
#include <asm/processor.h>
#include <asm/io.h>
+1 -1
View File
@@ -6,7 +6,7 @@
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
#include <common.h>
#include <config.h>
#include <display_options.h>
#include <init.h>
#include <asm/bitops.h>
+1 -1
View File
@@ -19,7 +19,7 @@
* This file handles the architecture-dependent parts of hardware exceptions
*/
#include <common.h>
#include <asm/ppc.h>
#include <asm/global_data.h>
#include <asm/ptrace.h>
#include <command.h>
-1
View File
@@ -8,7 +8,6 @@
*/
#include <config.h>
#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <init.h>
-1
View File
@@ -8,7 +8,6 @@
* cpu specific common code for 85xx/86xx processors.
*/
#include <common.h>
#include <cpu_func.h>
#include <linux/libfdt.h>
#include <fdt_support.h>
+1 -1
View File
@@ -3,7 +3,7 @@
* Copyright 2010-2011 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <asm/u-boot.h>
#include <hang.h>
#include <init.h>
#include <asm/fsl_lbc.h>
+1 -1
View File
@@ -5,7 +5,7 @@
* Copyright 2012-2016 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <asm/u-boot.h>
#include <log.h>
#include <linux/bitops.h>
#include <linux/log2.h>
+1 -1
View File
@@ -6,7 +6,7 @@
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
#include <common.h>
#include <asm/u-boot.h>
#include <display_options.h>
#include <asm/bitops.h>
#include <asm/global_data.h>
+1 -1
View File
@@ -3,7 +3,7 @@
* Copyright 2012-2016 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <asm/u-boot.h>
#include <log.h>
#include <asm/fsl_pamu.h>
#include <asm/global_data.h>
+1 -2
View File
@@ -3,8 +3,7 @@
* Copyright 2011 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <config.h>
#include <asm/u-boot.h>
#include <log.h>
#include <time.h>
#include <asm/fsl_law.h>
+2
View File
@@ -39,6 +39,8 @@
#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);
+1 -1
View File
@@ -8,7 +8,7 @@
#ifndef _ASM_FSL_DMA_H_
#define _ASM_FSL_DMA_H_
#include <asm/types.h>
#include <linux/types.h>
#ifdef CONFIG_MPC83xx
typedef struct fsl_dma {
+1
View File
@@ -7,6 +7,7 @@
#define __FSL_SERDES_H
#include <config.h>
#include <linux/types.h>
enum srds_prtcl {
/*
+2
View File
@@ -12,6 +12,8 @@
#ifndef __IMMAP_8XX__
#define __IMMAP_8XX__
#include <linux/types.h>
/* System configuration registers.
*/
typedef struct sys_conf {
+1 -1
View File
@@ -6,9 +6,9 @@
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/u-boot.h>
DECLARE_GLOBAL_DATA_PTR;
+1 -1
View File
@@ -7,7 +7,7 @@
*/
#include <common.h>
#include <config.h>
#include <bootm.h>
#include <bootstage.h>
#include <cpu_func.h>
-1
View File
@@ -4,7 +4,6 @@
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
#include <common.h>
#include <cpu_func.h>
#include <asm/cache.h>
#include <watchdog.h>
-1
View File
@@ -5,7 +5,6 @@
* (C) Copyright 2000
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
#include <common.h>
#include <log.h>
/*
+1 -1
View File
@@ -7,7 +7,7 @@
* Gleb Natapov <gnatapov@mrv.com>
*/
#include <common.h>
#include <asm/ppc.h>
#include <irq_func.h>
#include <asm/processor.h>
#include <watchdog.h>
-1
View File
@@ -1,4 +1,3 @@
#include <common.h>
#include <command.h>
#include <kgdb.h>
#include <asm/ptrace.h>
-1
View File
@@ -2,7 +2,6 @@
/*
* Copyright 2012 Stefan Roese <sr@denx.de>
*/
#include <common.h>
#include <config.h>
#include <log.h>
#include <spl.h>
-1
View File
@@ -10,7 +10,6 @@
* 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>
-1
View File
@@ -4,7 +4,6 @@
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
#include <common.h>
#include <init.h>
#include <time.h>
#include <asm/io.h>
+3
View File
@@ -7,6 +7,9 @@
#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.