u-boot.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * (C) Copyright 2002
  3. * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
  4. * Marius Groeger <mgroeger@sysgo.de>
  5. *
  6. * Copyright (C) 2017 Andes Technology Corporation
  7. * Rick Chen, Andes Technology Corporation <rick@andestech.com>
  8. *
  9. * SPDX-License-Identifier: GPL-2.0+
  10. *
  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. #ifndef _U_BOOT_H_
  19. #define _U_BOOT_H_ 1
  20. #include <asm/u-boot-riscv.h>
  21. #include <environment.h>
  22. typedef struct bd_info {
  23. unsigned long bi_arch_number; /* unique id for this board */
  24. unsigned long bi_boot_params; /* where this board expects params */
  25. unsigned long bi_memstart; /* start of DRAM memory */
  26. unsigned long bi_memsize; /* size of DRAM memory in bytes */
  27. unsigned long bi_flashstart; /* start of FLASH memory */
  28. unsigned long bi_flashsize; /* size of FLASH memory */
  29. unsigned long bi_flashoffset; /* reserved area for startup monitor */
  30. unsigned char bi_enetaddr[6];
  31. struct /* RAM configuration */
  32. {
  33. unsigned long start;
  34. unsigned long size;
  35. } bi_dram[CONFIG_NR_DRAM_BANKS];
  36. } bd_t;
  37. /* For image.h:image_check_target_arch() */
  38. #define IH_ARCH_DEFAULT IH_ARCH_RISCV
  39. #endif /* _U_BOOT_H_ */