Blame view
include/configs/sama5d4_xplained.h
2.14 KB
f196044df ARM: atmel: add s... |
1 2 3 4 5 6 7 8 9 10 11 |
/* * Configuration settings for the SAMA5D4 Xplained ultra board. * * Copyright (C) 2014 Atmel * Bo Shen <voice.shen@atmel.com> * * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __CONFIG_H #define __CONFIG_H |
b2d387bce ARM: at91: sama5:... |
12 |
#include "at91-sama5_common.h" |
f196044df ARM: atmel: add s... |
13 |
|
fafa44034 board: sama5d4_xp... |
14 |
#define CONFIG_MISC_INIT_R |
f196044df ARM: atmel: add s... |
15 16 |
/* SDRAM */ #define CONFIG_NR_DRAM_BANKS 1 |
e61ed48ff ARM: at91: Remove... |
17 |
#define CONFIG_SYS_SDRAM_BASE 0x20000000 |
f196044df ARM: atmel: add s... |
18 |
#define CONFIG_SYS_SDRAM_SIZE 0x20000000 |
0b2a98242 ARM: atmel: sama5... |
19 |
#ifdef CONFIG_SPL_BUILD |
6dbadb4d9 board: sama5d4_xp... |
20 |
#define CONFIG_SYS_INIT_SP_ADDR 0x218000 |
0b2a98242 ARM: atmel: sama5... |
21 |
#else |
f196044df ARM: atmel: add s... |
22 |
#define CONFIG_SYS_INIT_SP_ADDR \ |
6dbadb4d9 board: sama5d4_xp... |
23 |
(CONFIG_SYS_SDRAM_BASE + 16 * 1024 - GENERATED_GBL_DATA_SIZE) |
0b2a98242 ARM: atmel: sama5... |
24 |
#endif |
f196044df ARM: atmel: add s... |
25 26 |
#define CONFIG_SYS_LOAD_ADDR 0x22000000 /* load address */ |
f196044df ARM: atmel: add s... |
27 |
#ifdef CONFIG_CMD_SF |
f196044df ARM: atmel: add s... |
28 29 30 31 |
#define CONFIG_SF_DEFAULT_SPEED 30000000 #endif /* NAND flash */ |
f196044df ARM: atmel: add s... |
32 33 34 |
#ifdef CONFIG_CMD_NAND #define CONFIG_NAND_ATMEL #define CONFIG_SYS_MAX_NAND_DEVICE 1 |
e61ed48ff ARM: at91: Remove... |
35 |
#define CONFIG_SYS_NAND_BASE 0x80000000 |
f196044df ARM: atmel: add s... |
36 37 38 39 40 41 42 43 44 |
/* our ALE is AD21 */ #define CONFIG_SYS_NAND_MASK_ALE (1 << 21) /* our CLE is AD22 */ #define CONFIG_SYS_NAND_MASK_CLE (1 << 22) #define CONFIG_SYS_NAND_ONFI_DETECTION /* PMECC & PMERRLOC */ #define CONFIG_ATMEL_NAND_HWECC #define CONFIG_ATMEL_NAND_HW_PMECC #endif |
0b2a98242 ARM: atmel: sama5... |
45 |
/* SPL */ |
0b2a98242 ARM: atmel: sama5... |
46 |
#define CONFIG_SPL_TEXT_BASE 0x200000 |
6dbadb4d9 board: sama5d4_xp... |
47 |
#define CONFIG_SPL_MAX_SIZE 0x18000 |
0b2a98242 ARM: atmel: sama5... |
48 49 50 51 |
#define CONFIG_SPL_BSS_START_ADDR 0x20000000 #define CONFIG_SPL_BSS_MAX_SIZE 0x80000 #define CONFIG_SYS_SPL_MALLOC_START 0x20080000 #define CONFIG_SYS_SPL_MALLOC_SIZE 0x80000 |
0b2a98242 ARM: atmel: sama5... |
52 |
#define CONFIG_SYS_MONITOR_LEN (512 << 10) |
5541543f6 configs: at91: Re... |
53 |
#ifdef CONFIG_SD_BOOT |
0b2a98242 ARM: atmel: sama5... |
54 55 |
#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1 #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img" |
0b2a98242 ARM: atmel: sama5... |
56 57 |
#elif CONFIG_SYS_USE_NANDFLASH |
5541543f6 configs: at91: Re... |
58 59 60 61 62 |
#elif CONFIG_SPI_BOOT #define CONFIG_SPL_SPI_LOAD #define CONFIG_SYS_SPI_U_BOOT_OFFS 0x10000 #elif CONFIG_NAND_BOOT |
0b2a98242 ARM: atmel: sama5... |
63 64 |
#define CONFIG_SPL_NAND_DRIVERS #define CONFIG_SPL_NAND_BASE |
5541543f6 configs: at91: Re... |
65 |
#endif |
0b2a98242 ARM: atmel: sama5... |
66 67 68 69 70 71 72 73 74 75 |
#define CONFIG_PMECC_CAP 8 #define CONFIG_PMECC_SECTOR_SIZE 512 #define CONFIG_SYS_NAND_U_BOOT_OFFS 0x40000 #define CONFIG_SYS_NAND_5_ADDR_CYCLE #define CONFIG_SYS_NAND_PAGE_SIZE 0x1000 #define CONFIG_SYS_NAND_PAGE_COUNT 64 #define CONFIG_SYS_NAND_OOBSIZE 224 #define CONFIG_SYS_NAND_BLOCK_SIZE 0x40000 #define CONFIG_SYS_NAND_BAD_BLOCK_POS 0x0 #define CONFIG_SPL_GENERATE_ATMEL_PMECC_HEADER |
f196044df ARM: atmel: add s... |
76 |
#endif |