]> git.ipfire.org Git - thirdparty/u-boot.git/blob - include/handoff.h
arm: fsl-layerscape: add 0x3040 serdes1 settings for LS1046A
[thirdparty/u-boot.git] / include / handoff.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3 * Passing basic information from SPL to U-Boot proper
4 *
5 * Copyright 2018 Google, Inc
6 */
7
8 #ifndef __HANDOFF_H
9 #define __HANDOFF_H
10
11 #if CONFIG_IS_ENABLED(HANDOFF)
12
13 #include <asm/handoff.h>
14
15 /**
16 * struct spl_handoff - information passed from SPL to U-Boot proper
17 *
18 * @ram_size: Value to use for gd->ram_size
19 */
20 struct spl_handoff {
21 struct arch_spl_handoff arch;
22 u64 ram_size;
23 #ifdef CONFIG_NR_DRAM_BANKS
24 struct {
25 u64 start;
26 u64 size;
27 } ram_bank[CONFIG_NR_DRAM_BANKS];
28 #endif
29 };
30
31 void handoff_save_dram(struct spl_handoff *ho);
32 void handoff_load_dram_size(struct spl_handoff *ho);
33 void handoff_load_dram_banks(struct spl_handoff *ho);
34 #endif
35
36 #endif