Macpaul Lin | 00f892f | 2011-10-11 22:33:15 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2002 |
| 3 | * Sysgo Real-Time Solutions, GmbH <www.elinos.com> |
| 4 | * Marius Groeger <mgroeger@sysgo.de> |
| 5 | * |
| 6 | * Copyright (C) 2011 Andes Technology Corporation |
| 7 | * Copyright (C) 2010 Shawn Lin (nobuhiro@andestech.com) |
| 8 | * Copyright (C) 2011 Macpaul Lin (macpaul@andestech.com) |
| 9 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 10 | * SPDX-License-Identifier: GPL-2.0+ |
Macpaul Lin | 00f892f | 2011-10-11 22:33:15 +0000 | [diff] [blame] | 11 | * |
| 12 | ******************************************************************** |
| 13 | * NOTE: This header file defines an interface to U-Boot. Including |
| 14 | * this (unmodified) header file in another file is considered normal |
| 15 | * use of U-Boot, and does *not* fall under the heading of "derived |
| 16 | * work". |
| 17 | ******************************************************************** |
| 18 | */ |
| 19 | |
| 20 | #ifndef _U_BOOT_H_ |
| 21 | #define _U_BOOT_H_ 1 |
| 22 | |
Simon Glass | e8d4fa9 | 2017-05-17 08:22:52 -0600 | [diff] [blame] | 23 | #include <asm/u-boot-nds32.h> |
| 24 | |
Macpaul Lin | 00f892f | 2011-10-11 22:33:15 +0000 | [diff] [blame] | 25 | #include <environment.h> |
| 26 | |
| 27 | typedef struct bd_info { |
Macpaul Lin | 00f892f | 2011-10-11 22:33:15 +0000 | [diff] [blame] | 28 | unsigned long bi_arch_number; /* unique id for this board */ |
| 29 | unsigned long bi_boot_params; /* where this board expects params */ |
| 30 | unsigned long bi_memstart; /* start of DRAM memory */ |
| 31 | unsigned long bi_memsize; /* size of DRAM memory in bytes */ |
| 32 | unsigned long bi_flashstart; /* start of FLASH memory */ |
| 33 | unsigned long bi_flashsize; /* size of FLASH memory */ |
| 34 | unsigned long bi_flashoffset; /* reserved area for startup monitor */ |
Kun-Hua Huang | 2e88bb2 | 2015-08-24 14:52:35 +0800 | [diff] [blame] | 35 | unsigned char bi_enetaddr[6]; |
Macpaul Lin | 00f892f | 2011-10-11 22:33:15 +0000 | [diff] [blame] | 36 | |
| 37 | struct /* RAM configuration */ |
| 38 | { |
| 39 | unsigned long start; |
| 40 | unsigned long size; |
| 41 | } bi_dram[CONFIG_NR_DRAM_BANKS]; |
| 42 | } bd_t; |
| 43 | |
| 44 | /* For image.h:image_check_target_arch() */ |
| 45 | #define IH_ARCH_DEFAULT IH_ARCH_NDS32 |
| 46 | |
| 47 | #endif /* _U_BOOT_H_ */ |