u-boot.h 824 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Copyright (C) 2004-2006 Atmel Corporation
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. #ifndef __ASM_U_BOOT_H__
  7. #define __ASM_U_BOOT_H__ 1
  8. #ifdef CONFIG_SYS_GENERIC_BOARD
  9. /* Use the generic board which requires a unified bd_info */
  10. #include <asm-generic/u-boot.h>
  11. #else
  12. typedef struct bd_info {
  13. unsigned char bi_phy_id[4];
  14. unsigned long bi_board_number;
  15. void *bi_boot_params;
  16. struct {
  17. unsigned long start;
  18. unsigned long size;
  19. } bi_dram[CONFIG_NR_DRAM_BANKS];
  20. unsigned long bi_flashstart;
  21. unsigned long bi_flashsize;
  22. unsigned long bi_flashoffset;
  23. } bd_t;
  24. #define bi_memstart bi_dram[0].start
  25. #define bi_memsize bi_dram[0].size
  26. #endif
  27. /* For image.h:image_check_target_arch() */
  28. #define IH_ARCH_DEFAULT IH_ARCH_AVR32
  29. int arch_cpu_init(void);
  30. int dram_init(void);
  31. #endif /* __ASM_U_BOOT_H__ */