summaryrefslogtreecommitdiff
path: root/arch/arm/mach-meson
diff options
context:
space:
mode:
authorJerome Brunet <jbrunet@baylibre.com>2018-10-24 14:57:54 +0200
committerNeil Armstrong <narmstrong@baylibre.com>2018-11-26 14:40:52 +0100
commitb890acc7432e2ca7b21a44cc70a87aca51b0aedd (patch)
tree0a969e5693ba04f06a777f10fddde56a0b36e0b3 /arch/arm/mach-meson
parentb72794e37e056f3ec18a6cadfe0376058a5c2f34 (diff)
downloadu-boot-b890acc7432e2ca7b21a44cc70a87aca51b0aedd.tar.gz
u-boot-b890acc7432e2ca7b21a44cc70a87aca51b0aedd.tar.bz2
u-boot-b890acc7432e2ca7b21a44cc70a87aca51b0aedd.zip
ARM: meson: factorize common code out amlogic's boards
Now we have moved all the Amlogic board support to common generic board code, we can move the identical board_init() and ft_board_setup() functions to weak functions into the board-common mach-meson file. Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Diffstat (limited to 'arch/arm/mach-meson')
-rw-r--r--arch/arm/mach-meson/board-common.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/mach-meson/board-common.c b/arch/arm/mach-meson/board-common.c
index 6340445053..8c4f3074fb 100644
--- a/arch/arm/mach-meson/board-common.c
+++ b/arch/arm/mach-meson/board-common.c
@@ -14,6 +14,11 @@
DECLARE_GLOBAL_DATA_PTR;
+__weak int board_init(void)
+{
+ return 0;
+}
+
int dram_init(void)
{
const fdt64_t *val;
@@ -34,6 +39,18 @@ int dram_init(void)
return 0;
}
+__weak int meson_ft_board_setup(void *blob, bd_t *bd)
+{
+ return 0;
+}
+
+int ft_board_setup(void *blob, bd_t *bd)
+{
+ meson_init_reserved_memory(blob);
+
+ return meson_ft_board_setup(blob, bd);
+}
+
void meson_board_add_reserved_memory(void *fdt, u64 start, u64 size)
{
int ret;