1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (c) 2019 NVIDIA Corporation. All rights reserved.
6 #ifndef _TEGRA_CBOOT_H_
7 #define _TEGRA_CBOOT_H_
13 extern unsigned long cboot_boot_x0;
15 void cboot_save_boot_params(unsigned long x0, unsigned long x1,
16 unsigned long x2, unsigned long x3);
17 int cboot_dram_init(void);
18 int cboot_dram_init_banksize(void);
19 ulong cboot_get_usable_ram_top(ulong total_size);
20 int cboot_get_ethaddr(const void *fdt, uint8_t mac[ETH_ALEN]);
22 static inline void cboot_save_boot_params(unsigned long x0, unsigned long x1,
23 unsigned long x2, unsigned long x3)
27 static inline int cboot_dram_init(void)
32 static inline int cboot_dram_init_banksize(void)
37 static inline ulong cboot_get_usable_ram_top(ulong total_size)
42 static inline int cboot_get_ethaddr(const void *fdt, uint8_t mac[ETH_ALEN])