summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/phytec-phycard-omap3/lowlevel.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2019-04-09 12:24:49 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-04-09 12:24:49 +0200
commit0272ec9ca9fe43a5d57a603093dc6787e6a3a7e4 (patch)
treeeca186b6730cb539003f21a5081c4bd575551a36 /arch/arm/boards/phytec-phycard-omap3/lowlevel.c
parent383b3cb658f99f3fd9aea3fe94e9060e895a7568 (diff)
parent426b4de76c0a7df7be447af5931a869d14926c34 (diff)
downloadbarebox-0272ec9ca9fe43a5d57a603093dc6787e6a3a7e4.tar.gz
barebox-0272ec9ca9fe43a5d57a603093dc6787e6a3a7e4.tar.xz
Merge branch 'for-next/warnings'
Diffstat (limited to 'arch/arm/boards/phytec-phycard-omap3/lowlevel.c')
-rw-r--r--arch/arm/boards/phytec-phycard-omap3/lowlevel.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/boards/phytec-phycard-omap3/lowlevel.c b/arch/arm/boards/phytec-phycard-omap3/lowlevel.c
index 27b56b1e0c..54d8eaaddf 100644
--- a/arch/arm/boards/phytec-phycard-omap3/lowlevel.c
+++ b/arch/arm/boards/phytec-phycard-omap3/lowlevel.c
@@ -48,7 +48,7 @@ struct sdrc_config {
/*********************************************************************
* init_sdram_ddr() - Init DDR controller.
*********************************************************************/
-void init_sdram_ddr(void)
+static void init_sdram_ddr(void)
{
/* reset sdrc controller */
writel(SOFTRESET, OMAP3_SDRC_REG(SYSCONFIG));
@@ -67,7 +67,7 @@ void init_sdram_ddr(void)
/*********************************************************************
* config_sdram_ddr() - Init DDR on dev board.
*********************************************************************/
-void config_sdram_ddr(u8 cs, u8 cfg)
+static void config_sdram_ddr(u8 cs, u8 cfg)
{
writel(sdrc_config[cfg].mcfg, OMAP3_SDRC_REG(MCFG_0) + (0x30 * cs));
@@ -252,9 +252,9 @@ static int pcaal1_board_init(void)
return 0;
}
-void __bare_init __naked barebox_arm_reset_vector(uint32_t *data)
+void __bare_init __naked barebox_arm_reset_vector(uint32_t r0, uint32_t r1, uint32_t r2)
{
- omap3_save_bootinfo(data);
+ omap3_save_bootinfo((void *)r0);
arm_cpu_lowlevel_init();