diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2019-01-15 13:43:03 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-01-15 13:43:03 +0100 |
commit | 358959c256a46dd0c53ae0855e957ccfd2660a51 (patch) | |
tree | bf545a1788bdf3e64d2c71d9365f083ee9c4a571 /arch | |
parent | 7c2517c2444fdd5c2eceee330a03ff15d12602ca (diff) | |
parent | de8466c986f245b662305dd4f8cef8bae2a3fe46 (diff) | |
download | barebox-358959c256a46dd0c53ae0855e957ccfd2660a51.tar.gz barebox-358959c256a46dd0c53ae0855e957ccfd2660a51.tar.xz |
Merge branch 'for-next/missing-prototypes'
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/cpu/start-pbl.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-at91/at91rm9200_time.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-at91/clock.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-at91/setup.c | 12 | ||||
-rw-r--r-- | arch/arm/mach-omap/include/mach/omap4-generic.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-omap/omap4_generic.c | 3 |
6 files changed, 10 insertions, 13 deletions
diff --git a/arch/arm/cpu/start-pbl.c b/arch/arm/cpu/start-pbl.c index 48a8086456..25ef0d3d82 100644 --- a/arch/arm/cpu/start-pbl.c +++ b/arch/arm/cpu/start-pbl.c @@ -31,9 +31,13 @@ #include <asm/mmu.h> #include <asm/unaligned.h> +#include "entry.h" + unsigned long free_mem_ptr; unsigned long free_mem_end_ptr; +void pbl_start(void); + /* * First instructions in the pbl image */ diff --git a/arch/arm/mach-at91/at91rm9200_time.c b/arch/arm/mach-at91/at91rm9200_time.c index b4021b5038..63975071f1 100644 --- a/arch/arm/mach-at91/at91rm9200_time.c +++ b/arch/arm/mach-at91/at91rm9200_time.c @@ -40,7 +40,7 @@ static void __iomem *st = IOMEM(AT91RM9200_BASE_ST); * the updates as seen by the CPU don't seem to be strictly monotonic. * Waiting until we read the same value twice avoids glitching. */ -uint64_t at91rm9200_clocksource_read(void) +static uint64_t at91rm9200_clocksource_read(void) { unsigned long x1, x2; diff --git a/arch/arm/mach-at91/clock.c b/arch/arm/mach-at91/clock.c index 9d2e3a3acc..d2691acae3 100644 --- a/arch/arm/mach-at91/clock.c +++ b/arch/arm/mach-at91/clock.c @@ -22,6 +22,7 @@ #include <mach/hardware.h> #include <mach/at91_pmc.h> #include <mach/cpu.h> +#include <mach/board.h> #include "clock.h" #include "generic.h" diff --git a/arch/arm/mach-at91/setup.c b/arch/arm/mach-at91/setup.c index adc614c42c..cb79eb26b8 100644 --- a/arch/arm/mach-at91/setup.c +++ b/arch/arm/mach-at91/setup.c @@ -15,6 +15,7 @@ #include <mach/cpu.h> #include <mach/at91_dbgu.h> #include <mach/at91_rstc.h> +#include <mach/board.h> #include "generic.h" @@ -24,17 +25,6 @@ void __initdata (*at91_boot_soc)(void); struct at91_socinfo at91_soc_initdata; EXPORT_SYMBOL(at91_soc_initdata); -void __init at91rm9200_set_type(int type) -{ - if (type == ARCH_REVISON_9200_PQFP) - at91_soc_initdata.subtype = AT91_SOC_RM9200_PQFP; - else - at91_soc_initdata.subtype = AT91_SOC_RM9200_BGA; - - pr_info("AT91: filled in soc subtype: %s\n", - at91_get_soc_subtype(&at91_soc_initdata)); -} - static void __init soc_detect(u32 dbgu_base) { u32 cidr, socid; diff --git a/arch/arm/mach-omap/include/mach/omap4-generic.h b/arch/arm/mach-omap/include/mach/omap4-generic.h index 7ec41d880b..c1d0a3c900 100644 --- a/arch/arm/mach-omap/include/mach/omap4-generic.h +++ b/arch/arm/mach-omap/include/mach/omap4-generic.h @@ -1,6 +1,7 @@ #ifndef __MACH_OMAP4_GENERIC_H #define __MACH_OMAP4_GENERIC_H +#include <linux/sizes.h> #include <mach/generic.h> #include <mach/omap4-silicon.h> diff --git a/arch/arm/mach-omap/omap4_generic.c b/arch/arm/mach-omap/omap4_generic.c index c7b6e513a2..1f71153848 100644 --- a/arch/arm/mach-omap/omap4_generic.c +++ b/arch/arm/mach-omap/omap4_generic.c @@ -10,6 +10,7 @@ #include <mach/generic.h> #include <mach/gpmc.h> #include <mach/omap4_rom_usb.h> +#include <mach/omap4-generic.h> /* * The following several lines are taken from U-Boot to support @@ -179,7 +180,7 @@ static inline void delay(unsigned long loops) "bne 1b" : "=r" (loops) : "0"(loops)); } -int omap4_emif_config(unsigned int base, const struct ddr_regs *ddr_regs) +static int omap4_emif_config(unsigned int base, const struct ddr_regs *ddr_regs) { /* * set SDRAM CONFIG register |