]> Git Repo - J-u-boot.git/blob - arch/arm/lib/bootm-fdt.c
armv8/cache: Flush D-cache, invalidate I-cache for relocation
[J-u-boot.git] / arch / arm / lib / bootm-fdt.c
1 /*
2  * Copyright (c) 2013, Google Inc.
3  *
4  * Copyright (C) 2011
5  * Corscience GmbH & Co. KG - Simon Schwarz <[email protected]>
6  *  - Added prep subcommand support
7  *  - Reorganized source - modeled after powerpc version
8  *
9  * (C) Copyright 2002
10  * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
11  * Marius Groeger <[email protected]>
12  *
13  * Copyright (C) 2001  Erik Mouw ([email protected])
14  *
15  * SPDX-License-Identifier:     GPL-2.0+
16  */
17
18 #include <common.h>
19 #include <fdt_support.h>
20
21 DECLARE_GLOBAL_DATA_PTR;
22
23 int arch_fixup_memory_node(void *blob)
24 {
25         bd_t *bd = gd->bd;
26         int bank;
27         u64 start[CONFIG_NR_DRAM_BANKS];
28         u64 size[CONFIG_NR_DRAM_BANKS];
29
30         for (bank = 0; bank < CONFIG_NR_DRAM_BANKS; bank++) {
31                 start[bank] = bd->bi_dram[bank].start;
32                 size[bank] = bd->bi_dram[bank].size;
33         }
34
35         return fdt_fixup_memory_banks(blob, start, size, CONFIG_NR_DRAM_BANKS);
36 }
This page took 0.028697 seconds and 4 git commands to generate.