summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-09-15 08:54:15 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-09-15 08:55:02 +0200
commitf037b754def9210ce9c96903b496f664aa15a969 (patch)
treeaafad858c5622e85191438fa43a1e5ce62abdf9c /arch
parentc7595a3f815fcf052e2c8e7830f6c92aed34cb9b (diff)
downloadbarebox-f037b754def9210ce9c96903b496f664aa15a969.tar.gz
barebox-f037b754def9210ce9c96903b496f664aa15a969.tar.xz
powerpc: Add missing includes
Add missing includes to avoid -Wmissing-prototypes warnings. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/boards/freescale-p1010rdb/p1010rdb.c2
-rw-r--r--arch/powerpc/boards/freescale-p1022ds/p1022ds.c2
-rw-r--r--arch/powerpc/mach-mpc5xxx/reginfo.c1
-rw-r--r--arch/powerpc/mach-mpc5xxx/speed.c1
-rw-r--r--arch/powerpc/mach-mpc85xx/cpu.c1
-rw-r--r--arch/powerpc/mach-mpc85xx/cpuid.c1
-rw-r--r--arch/powerpc/mach-mpc85xx/fsl_i2c.c1
7 files changed, 9 insertions, 0 deletions
diff --git a/arch/powerpc/boards/freescale-p1010rdb/p1010rdb.c b/arch/powerpc/boards/freescale-p1010rdb/p1010rdb.c
index b163327597..f2f6d00b77 100644
--- a/arch/powerpc/boards/freescale-p1010rdb/p1010rdb.c
+++ b/arch/powerpc/boards/freescale-p1010rdb/p1010rdb.c
@@ -37,6 +37,8 @@
#include <mach/early_udelay.h>
#include <of.h>
+#include "p1010rdb.h"
+
static struct gfar_info_struct gfar_info[] = {
{
.phyaddr = 1,
diff --git a/arch/powerpc/boards/freescale-p1022ds/p1022ds.c b/arch/powerpc/boards/freescale-p1022ds/p1022ds.c
index d80c234ea9..956b830c5d 100644
--- a/arch/powerpc/boards/freescale-p1022ds/p1022ds.c
+++ b/arch/powerpc/boards/freescale-p1022ds/p1022ds.c
@@ -34,6 +34,8 @@
#include <mach/clock.h>
#include <mach/early_udelay.h>
+#include "p1022ds.h"
+
/* Define attributes for eTSEC1 and eTSEC2 */
static struct gfar_info_struct gfar_info[] = {
{
diff --git a/arch/powerpc/mach-mpc5xxx/reginfo.c b/arch/powerpc/mach-mpc5xxx/reginfo.c
index e41d235a5d..8b646e7d04 100644
--- a/arch/powerpc/mach-mpc5xxx/reginfo.c
+++ b/arch/powerpc/mach-mpc5xxx/reginfo.c
@@ -1,4 +1,5 @@
#include <stdio.h>
+#include <common.h>
#include <config.h>
#include <mach/mpc5xxx.h>
#include <asm/io.h>
diff --git a/arch/powerpc/mach-mpc5xxx/speed.c b/arch/powerpc/mach-mpc5xxx/speed.c
index 0cec9522e5..8aa20bd373 100644
--- a/arch/powerpc/mach-mpc5xxx/speed.c
+++ b/arch/powerpc/mach-mpc5xxx/speed.c
@@ -19,6 +19,7 @@
#include <init.h>
#include <asm/processor.h>
#include <types.h>
+#include <mach/clock.h>
/* Bus-to-Core Multipliers */
diff --git a/arch/powerpc/mach-mpc85xx/cpu.c b/arch/powerpc/mach-mpc85xx/cpu.c
index 7c8a59edc9..1d5a69c999 100644
--- a/arch/powerpc/mach-mpc85xx/cpu.c
+++ b/arch/powerpc/mach-mpc85xx/cpu.c
@@ -28,6 +28,7 @@
#include <asm-generic/memory_layout.h>
#include <mach/mmu.h>
#include <mach/immap_85xx.h>
+#include <mach/mpc85xx.h>
static void __noreturn mpc85xx_restart_soc(struct restart_handler *rst)
{
diff --git a/arch/powerpc/mach-mpc85xx/cpuid.c b/arch/powerpc/mach-mpc85xx/cpuid.c
index ae82e3fd3f..28f08ca292 100644
--- a/arch/powerpc/mach-mpc85xx/cpuid.c
+++ b/arch/powerpc/mach-mpc85xx/cpuid.c
@@ -23,6 +23,7 @@
#include <asm/cache.h>
#include <asm/io.h>
#include <mach/immap_85xx.h>
+#include <mach/mpc85xx.h>
struct cpu_type cpu_type_list[] = {
CPU_TYPE_ENTRY(8544, 8544, 1),
diff --git a/arch/powerpc/mach-mpc85xx/fsl_i2c.c b/arch/powerpc/mach-mpc85xx/fsl_i2c.c
index 51fcc64c26..8cf80713f6 100644
--- a/arch/powerpc/mach-mpc85xx/fsl_i2c.c
+++ b/arch/powerpc/mach-mpc85xx/fsl_i2c.c
@@ -21,6 +21,7 @@
#include <mach/clock.h>
#include <mach/immap_85xx.h>
#include <mach/early_udelay.h>
+#include <mach/fsl_i2c.h>
/* FSL I2C registers */
#define FSL_I2C_ADR 0x00