projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
board: st: Remove board_early_init_f and board_late_init callbacks for stm32 boards
[platform/kernel/u-boot.git]
/
board
/
st
/
stm32f429-discovery
/
stm32f429-discovery.c
diff --git
a/board/st/stm32f429-discovery/stm32f429-discovery.c
b/board/st/stm32f429-discovery/stm32f429-discovery.c
index
3d90218
..
46fcf90
100644
(file)
--- a/
board/st/stm32f429-discovery/stm32f429-discovery.c
+++ b/
board/st/stm32f429-discovery/stm32f429-discovery.c
@@
-1,3
+1,4
@@
+// SPDX-License-Identifier: GPL-2.0+
/*
* (C) Copyright 2011, 2012, 2013
* Yuri Tikhonov, Emcraft Systems, yur@emcraft.com
/*
* (C) Copyright 2011, 2012, 2013
* Yuri Tikhonov, Emcraft Systems, yur@emcraft.com
@@
-7,12
+8,14
@@
*
* (C) Copyright 2015
* Kamil Lulko, <kamil.lulko@gmail.com>
*
* (C) Copyright 2015
* Kamil Lulko, <kamil.lulko@gmail.com>
- *
- * SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <dm.h>
*/
#include <common.h>
#include <dm.h>
+#include <env.h>
+#include <init.h>
+#include <log.h>
+#include <asm/global_data.h>
#include <asm/io.h>
#include <asm/arch/stm32.h>
#include <asm/io.h>
#include <asm/arch/stm32.h>
@@
-30,7
+33,7
@@
int dram_init(void)
return rv;
}
return rv;
}
- if (fdtdec_setup_mem
ory_siz
e() != 0)
+ if (fdtdec_setup_mem
_size_bas
e() != 0)
rv = -EINVAL;
return rv;
rv = -EINVAL;
return rv;
@@
-48,14
+51,9
@@
u32 get_board_rev(void)
return 0;
}
return 0;
}
-int board_early_init_f(void)
-{
- return 0;
-}
-
int board_init(void)
{
int board_init(void)
{
- gd->bd->bi_boot_params =
CONFIG_SYS_SDRAM_BASE
+ 0x100;
+ gd->bd->bi_boot_params =
gd->bd->bi_dram[0].start
+ 0x100;
return 0;
}
return 0;
}