blob: 8b047ec7c8b090b37c114d3cef8a21c86cf05cb8 [file] [log] [blame]
Wolfgang Denk7b64fef2006-10-24 14:21:16 +02001/*
2 * Copyright (C) 2004-2006 Atmel Corporation
3 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Wolfgang Denk7b64fef2006-10-24 14:21:16 +02005 */
6#ifndef __ASM_U_BOOT_H__
7#define __ASM_U_BOOT_H__ 1
8
Andreas Bießmanna752a8b2015-02-06 23:06:48 +01009#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 Denk7b64fef2006-10-24 14:21:16 +020014typedef struct bd_info {
Wolfgang Denk7b64fef2006-10-24 14:21:16 +020015 unsigned char bi_phy_id[4];
Wolfgang Denk7b64fef2006-10-24 14:21:16 +020016 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ßmanna752a8b2015-02-06 23:06:48 +010030#endif
31
Mike Frysinger476af292011-10-03 14:50:33 +000032/* For image.h:image_check_target_arch() */
33#define IH_ARCH_DEFAULT IH_ARCH_AVR32
34
Andreas Bießmannaa0ea2a2015-02-06 23:06:40 +010035int arch_cpu_init(void);
Andreas Bießmann18667862015-02-06 23:06:43 +010036int dram_init(void);
Andreas Bießmannaa0ea2a2015-02-06 23:06:40 +010037
Wolfgang Denk7b64fef2006-10-24 14:21:16 +020038#endif /* __ASM_U_BOOT_H__ */