diff options
author | Tom Rini <trini@konsulko.com> | 2019-06-08 09:10:31 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-06-08 09:10:31 -0400 |
commit | 5973901826c73462306fbe4051bc3643dca6b88f (patch) | |
tree | 0135545945d4eabd2e2ba873a79f1f57a8e13c33 /arch/arm/include/asm/arch-tegra/cboot.h | |
parent | 6d277fb0ed145f82dd50cc6e99d2fa553a588c3b (diff) | |
parent | 879a3bc1c2f3e2aadd6f05e6427cf4d97a272f9a (diff) |
Merge branch 'master' of git://git.denx.de/u-boot-tegra
The bulk of these changes are an effort to unify Tegra186 builds with
builds of prior 64-bit Tegra generations. On top of that there are
various improvements that allow data (such as the MAC address and boot
arguments) to be passed through from early firmware to the kernel on
boot.
Diffstat (limited to 'arch/arm/include/asm/arch-tegra/cboot.h')
-rw-r--r-- | arch/arm/include/asm/arch-tegra/cboot.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-tegra/cboot.h b/arch/arm/include/asm/arch-tegra/cboot.h new file mode 100644 index 0000000000..021c246175 --- /dev/null +++ b/arch/arm/include/asm/arch-tegra/cboot.h @@ -0,0 +1,45 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright (c) 2019 NVIDIA Corporation. All rights reserved. + */ + +#ifndef _TEGRA_CBOOT_H_ +#define _TEGRA_CBOOT_H_ + +#ifdef CONFIG_ARM64 +extern unsigned long cboot_boot_x0; + +void cboot_save_boot_params(unsigned long x0, unsigned long x1, + unsigned long x2, unsigned long x3); +int cboot_dram_init(void); +int cboot_dram_init_banksize(void); +ulong cboot_get_usable_ram_top(ulong total_size); +int cboot_get_ethaddr(const void *fdt, uint8_t mac[ETH_ALEN]); +#else +static inline void cboot_save_boot_params(unsigned long x0, unsigned long x1, + unsigned long x2, unsigned long x3) +{ +} + +static inline int cboot_dram_init(void) +{ + return -ENOSYS; +} + +static inline int cboot_dram_init_banksize(void) +{ + return -ENOSYS; +} + +static inline ulong cboot_get_usable_ram_top(ulong total_size) +{ + return 0; +} + +static inline int cboot_get_ethaddr(const void *fdt, uint8_t mac[ETH_ALEN]) +{ + return -ENOSYS; +} +#endif + +#endif |