Merge https://gitlab.denx.de/u-boot/custodians/u-boot-mpc85xx
[platform/kernel/u-boot.git] / include / configs / sam9x60_curiosity.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Configuration settings for the SAM9X60 CURIOSITY board.
4  *
5  * Copyright (C) 2022 Microchip Technology Inc. and its subsidiaries
6  *
7  * Author: Durai Manickam KR <durai.manickamkr@microchip.com>
8  */
9
10 #ifndef __CONFIG_H__
11 #define __CONFIG_H__
12
13 #define CONFIG_SYS_AT91_SLOW_CLOCK      32768
14 #define CONFIG_SYS_AT91_MAIN_CLOCK      24000000        /* 24 MHz crystal */
15
16 #define CONFIG_USART_BASE   ATMEL_BASE_DBGU
17 #define CONFIG_USART_ID     0 /* ignored in arm */
18
19 /* SDRAM */
20 #define CONFIG_SYS_SDRAM_BASE           0x20000000
21 #define CONFIG_SYS_SDRAM_SIZE           0x8000000       /* 128 MB */
22
23 #ifdef CONFIG_SPL_BUILD
24 #define CONFIG_SYS_INIT_SP_ADDR         0x218000
25 #else
26 #define CONFIG_SYS_INIT_SP_ADDR \
27         (CONFIG_SYS_SDRAM_BASE + 16 * 1024 + CONFIG_SYS_MALLOC_F_LEN - \
28          GENERATED_GBL_DATA_SIZE)
29 #endif
30
31 #endif