1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */ 26020faf6SRick Chen /* 36020faf6SRick Chen * (C) Copyright 2002 46020faf6SRick Chen * Sysgo Real-Time Solutions, GmbH <www.elinos.com> 56020faf6SRick Chen * Marius Groeger <mgroeger@sysgo.de> 66020faf6SRick Chen * 76020faf6SRick Chen * Copyright (C) 2017 Andes Technology Corporation 86020faf6SRick Chen * Rick Chen, Andes Technology Corporation <rick@andestech.com> 96020faf6SRick Chen * 106020faf6SRick Chen ******************************************************************** 116020faf6SRick Chen * NOTE: This header file defines an interface to U-Boot. Including 126020faf6SRick Chen * this (unmodified) header file in another file is considered normal 136020faf6SRick Chen * use of U-Boot, and does *not* fall under the heading of "derived 146020faf6SRick Chen * work". 156020faf6SRick Chen ******************************************************************** 166020faf6SRick Chen */ 176020faf6SRick Chen 186020faf6SRick Chen #ifndef _U_BOOT_H_ 196020faf6SRick Chen #define _U_BOOT_H_ 1 206020faf6SRick Chen 216020faf6SRick Chen #include <asm/u-boot-riscv.h> 226020faf6SRick Chen 236020faf6SRick Chen #include <environment.h> 246020faf6SRick Chen 256020faf6SRick Chen typedef struct bd_info { 266020faf6SRick Chen unsigned long bi_boot_params; /* where this board expects params */ 276020faf6SRick Chen unsigned long bi_memstart; /* start of DRAM memory */ 286020faf6SRick Chen unsigned long bi_memsize; /* size of DRAM memory in bytes */ 296020faf6SRick Chen unsigned long bi_flashstart; /* start of FLASH memory */ 306020faf6SRick Chen unsigned long bi_flashsize; /* size of FLASH memory */ 316020faf6SRick Chen unsigned long bi_flashoffset; /* reserved area for startup monitor */ 326020faf6SRick Chen unsigned char bi_enetaddr[6]; 336020faf6SRick Chen 346020faf6SRick Chen struct /* RAM configuration */ 356020faf6SRick Chen { 366020faf6SRick Chen unsigned long start; 376020faf6SRick Chen unsigned long size; 386020faf6SRick Chen } bi_dram[CONFIG_NR_DRAM_BANKS]; 396020faf6SRick Chen } bd_t; 406020faf6SRick Chen 416020faf6SRick Chen /* For image.h:image_check_target_arch() */ 426020faf6SRick Chen #define IH_ARCH_DEFAULT IH_ARCH_RISCV 436020faf6SRick Chen 446020faf6SRick Chen #endif /* _U_BOOT_H_ */ 45