Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Rick Chen | 76c0a24 | 2017-12-26 13:55:51 +0800 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2002 |
| 4 | * Sysgo Real-Time Solutions, GmbH <www.elinos.com> |
| 5 | * Marius Groeger <mgroeger@sysgo.de> |
| 6 | * |
| 7 | * Copyright (C) 2017 Andes Technology Corporation |
| 8 | * Rick Chen, Andes Technology Corporation <rick@andestech.com> |
| 9 | * |
Rick Chen | 76c0a24 | 2017-12-26 13:55:51 +0800 | [diff] [blame] | 10 | ******************************************************************** |
| 11 | * NOTE: This header file defines an interface to U-Boot. Including |
| 12 | * this (unmodified) header file in another file is considered normal |
| 13 | * use of U-Boot, and does *not* fall under the heading of "derived |
| 14 | * work". |
| 15 | ******************************************************************** |
| 16 | */ |
| 17 | |
| 18 | #ifndef _U_BOOT_H_ |
| 19 | #define _U_BOOT_H_ 1 |
| 20 | |
| 21 | #include <asm/u-boot-riscv.h> |
| 22 | |
Rick Chen | 76c0a24 | 2017-12-26 13:55:51 +0800 | [diff] [blame] | 23 | |
| 24 | typedef struct bd_info { |
Rick Chen | 76c0a24 | 2017-12-26 13:55:51 +0800 | [diff] [blame] | 25 | unsigned long bi_boot_params; /* where this board expects params */ |
| 26 | unsigned long bi_memstart; /* start of DRAM memory */ |
| 27 | unsigned long bi_memsize; /* size of DRAM memory in bytes */ |
| 28 | unsigned long bi_flashstart; /* start of FLASH memory */ |
| 29 | unsigned long bi_flashsize; /* size of FLASH memory */ |
| 30 | unsigned long bi_flashoffset; /* reserved area for startup monitor */ |
| 31 | unsigned char bi_enetaddr[6]; |
| 32 | |
| 33 | struct /* RAM configuration */ |
| 34 | { |
| 35 | unsigned long start; |
| 36 | unsigned long size; |
| 37 | } bi_dram[CONFIG_NR_DRAM_BANKS]; |
| 38 | } bd_t; |
| 39 | |
| 40 | /* For image.h:image_check_target_arch() */ |
| 41 | #define IH_ARCH_DEFAULT IH_ARCH_RISCV |
| 42 | |
| 43 | #endif /* _U_BOOT_H_ */ |