Wolfgang Denk | 83c1585 | 2006-10-24 14:21:16 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2004-2006 Atmel Corporation |
| 3 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
Wolfgang Denk | 83c1585 | 2006-10-24 14:21:16 +0200 | [diff] [blame] | 5 | */ |
| 6 | #ifndef __ASM_U_BOOT_H__ |
| 7 | #define __ASM_U_BOOT_H__ 1 |
| 8 | |
Andreas Bießmann | c1d0917 | 2015-02-06 23:06:48 +0100 | [diff] [blame] | 9 | #ifdef CONFIG_SYS_GENERIC_BOARD |
| 10 | /* Use the generic board which requires a unified bd_info */ |
| 11 | #include <asm-generic/u-boot.h> |
| 12 | #else |
| 13 | |
Wolfgang Denk | 83c1585 | 2006-10-24 14:21:16 +0200 | [diff] [blame] | 14 | typedef struct bd_info { |
Wolfgang Denk | 83c1585 | 2006-10-24 14:21:16 +0200 | [diff] [blame] | 15 | unsigned char bi_phy_id[4]; |
Wolfgang Denk | 83c1585 | 2006-10-24 14:21:16 +0200 | [diff] [blame] | 16 | unsigned long bi_board_number; |
| 17 | void *bi_boot_params; |
| 18 | struct { |
| 19 | unsigned long start; |
| 20 | unsigned long size; |
| 21 | } bi_dram[CONFIG_NR_DRAM_BANKS]; |
| 22 | unsigned long bi_flashstart; |
| 23 | unsigned long bi_flashsize; |
| 24 | unsigned long bi_flashoffset; |
| 25 | } bd_t; |
| 26 | |
| 27 | #define bi_memstart bi_dram[0].start |
| 28 | #define bi_memsize bi_dram[0].size |
| 29 | |
Andreas Bießmann | c1d0917 | 2015-02-06 23:06:48 +0100 | [diff] [blame] | 30 | #endif |
| 31 | |
Mike Frysinger | 5da0bed | 2011-10-03 14:50:33 +0000 | [diff] [blame] | 32 | /* For image.h:image_check_target_arch() */ |
| 33 | #define IH_ARCH_DEFAULT IH_ARCH_AVR32 |
| 34 | |
Andreas Bießmann | 465c0dd | 2015-02-06 23:06:40 +0100 | [diff] [blame] | 35 | int arch_cpu_init(void); |
Andreas Bießmann | 662a4f2 | 2015-02-06 23:06:43 +0100 | [diff] [blame] | 36 | int dram_init(void); |
Andreas Bießmann | 465c0dd | 2015-02-06 23:06:40 +0100 | [diff] [blame] | 37 | |
Wolfgang Denk | 83c1585 | 2006-10-24 14:21:16 +0200 | [diff] [blame] | 38 | #endif /* __ASM_U_BOOT_H__ */ |