Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Macpaul Lin | 0b9b59a | 2011-10-11 22:33:15 +0000 | [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) 2011 Andes Technology Corporation |
| 8 | * Copyright (C) 2010 Shawn Lin (nobuhiro@andestech.com) |
| 9 | * Copyright (C) 2011 Macpaul Lin (macpaul@andestech.com) |
| 10 | * |
Macpaul Lin | 0b9b59a | 2011-10-11 22:33:15 +0000 | [diff] [blame] | 11 | ******************************************************************** |
| 12 | * NOTE: This header file defines an interface to U-Boot. Including |
| 13 | * this (unmodified) header file in another file is considered normal |
| 14 | * use of U-Boot, and does *not* fall under the heading of "derived |
| 15 | * work". |
| 16 | ******************************************************************** |
| 17 | */ |
| 18 | |
| 19 | #ifndef _U_BOOT_H_ |
| 20 | #define _U_BOOT_H_ 1 |
| 21 | |
Simon Glass | 94dd939 | 2017-05-17 08:22:52 -0600 | [diff] [blame] | 22 | #include <asm/u-boot-nds32.h> |
| 23 | |
Macpaul Lin | 0b9b59a | 2011-10-11 22:33:15 +0000 | [diff] [blame] | 24 | #include <environment.h> |
| 25 | |
| 26 | typedef struct bd_info { |
Macpaul Lin | 0b9b59a | 2011-10-11 22:33:15 +0000 | [diff] [blame] | 27 | unsigned long bi_arch_number; /* unique id for this board */ |
| 28 | unsigned long bi_boot_params; /* where this board expects params */ |
| 29 | unsigned long bi_memstart; /* start of DRAM memory */ |
| 30 | unsigned long bi_memsize; /* size of DRAM memory in bytes */ |
| 31 | unsigned long bi_flashstart; /* start of FLASH memory */ |
| 32 | unsigned long bi_flashsize; /* size of FLASH memory */ |
| 33 | unsigned long bi_flashoffset; /* reserved area for startup monitor */ |
Kun-Hua Huang | 89299e2 | 2015-08-24 14:52:35 +0800 | [diff] [blame] | 34 | unsigned char bi_enetaddr[6]; |
Macpaul Lin | 0b9b59a | 2011-10-11 22:33:15 +0000 | [diff] [blame] | 35 | |
| 36 | struct /* RAM configuration */ |
| 37 | { |
| 38 | unsigned long start; |
| 39 | unsigned long size; |
| 40 | } bi_dram[CONFIG_NR_DRAM_BANKS]; |
| 41 | } bd_t; |
| 42 | |
| 43 | /* For image.h:image_check_target_arch() */ |
| 44 | #define IH_ARCH_DEFAULT IH_ARCH_NDS32 |
| 45 | |
| 46 | #endif /* _U_BOOT_H_ */ |