Blame view
include/configs/sama5d4ek.h
2.07 KB
927b901b4 ARM: atmel: add s... |
1 2 3 4 5 6 7 8 9 10 11 |
/* * Configuration settings for the SAMA5D4EK 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" |
927b901b4 ARM: atmel: add s... |
13 |
|
927b901b4 ARM: atmel: add s... |
14 15 |
/* SDRAM */ #define CONFIG_NR_DRAM_BANKS 1 |
e61ed48ff ARM: at91: Remove... |
16 |
#define CONFIG_SYS_SDRAM_BASE 0x20000000 |
927b901b4 ARM: atmel: add s... |
17 |
#define CONFIG_SYS_SDRAM_SIZE 0x20000000 |
5a4c9c228 ARM: atmel: sama5... |
18 |
#ifdef CONFIG_SPL_BUILD |
ef33aa3dc board: sama5d4ek:... |
19 |
#define CONFIG_SYS_INIT_SP_ADDR 0x218000 |
5a4c9c228 ARM: atmel: sama5... |
20 |
#else |
927b901b4 ARM: atmel: add s... |
21 |
#define CONFIG_SYS_INIT_SP_ADDR \ |
ef33aa3dc board: sama5d4ek:... |
22 |
(CONFIG_SYS_SDRAM_BASE + 16 * 1024 - GENERATED_GBL_DATA_SIZE) |
5a4c9c228 ARM: atmel: sama5... |
23 |
#endif |
927b901b4 ARM: atmel: add s... |
24 25 |
#define CONFIG_SYS_LOAD_ADDR 0x22000000 /* load address */ |
927b901b4 ARM: atmel: add s... |
26 |
#ifdef CONFIG_CMD_SF |
927b901b4 ARM: atmel: add s... |
27 28 29 30 |
#define CONFIG_SF_DEFAULT_SPEED 30000000 #endif /* NAND flash */ |
927b901b4 ARM: atmel: add s... |
31 32 33 |
#ifdef CONFIG_CMD_NAND #define CONFIG_NAND_ATMEL #define CONFIG_SYS_MAX_NAND_DEVICE 1 |
e61ed48ff ARM: at91: Remove... |
34 |
#define CONFIG_SYS_NAND_BASE 0x80000000 |
927b901b4 ARM: atmel: add s... |
35 36 37 38 39 40 41 42 43 |
/* 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 |
5a4c9c228 ARM: atmel: sama5... |
44 |
/* SPL */ |
5a4c9c228 ARM: atmel: sama5... |
45 |
#define CONFIG_SPL_TEXT_BASE 0x200000 |
ef33aa3dc board: sama5d4ek:... |
46 |
#define CONFIG_SPL_MAX_SIZE 0x18000 |
5a4c9c228 ARM: atmel: sama5... |
47 48 49 50 |
#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 |
5a4c9c228 ARM: atmel: sama5... |
51 |
#define CONFIG_SYS_MONITOR_LEN (512 << 10) |
5541543f6 configs: at91: Re... |
52 |
#ifdef CONFIG_SD_BOOT |
5a4c9c228 ARM: atmel: sama5... |
53 54 |
#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1 #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img" |
5a4c9c228 ARM: atmel: sama5... |
55 |
|
5541543f6 configs: at91: Re... |
56 57 58 59 60 |
#elif CONFIG_SPI_BOOT #define CONFIG_SPL_SPI_LOAD #define CONFIG_SYS_SPI_U_BOOT_OFFS 0x10000 #elif CONFIG_NAND_BOOT |
5a4c9c228 ARM: atmel: sama5... |
61 62 |
#define CONFIG_SPL_NAND_DRIVERS #define CONFIG_SPL_NAND_BASE |
5541543f6 configs: at91: Re... |
63 |
#endif |
5a4c9c228 ARM: atmel: sama5... |
64 65 66 67 68 69 70 71 72 73 |
#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 |
927b901b4 ARM: atmel: add s... |
74 |
#endif |