Merge tag 'next-20220328' of https://source.denx.de/u-boot/custodians/u-boot-video...
[platform/kernel/u-boot.git] / include / configs / total_compute.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Configuration for Total Compute platform. Parts were derived from other ARM
4  * configurations.
5  * (C) Copyright 2020 Arm Limited
6  * Usama Arif <usama.arif@arm.com>
7  */
8
9 #ifndef __TOTAL_COMPUTE_H
10 #define __TOTAL_COMPUTE_H
11
12 /* Link Definitions */
13 #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + 0x7fff0)
14
15 #define CONFIG_SYS_BOOTM_LEN    (64 << 20)
16
17 #define UART0_BASE              0x7ff80000
18
19 /* PL011 Serial Configuration */
20 #define CONFIG_PL011_CLOCK      7372800
21
22 /* Miscellaneous configurable options */
23
24 /* Physical Memory Map */
25 #define PHYS_SDRAM_1            0x80000000
26 /* Top 48MB reserved for secure world use */
27 #define DRAM_SEC_SIZE           0x03000000
28 #define PHYS_SDRAM_1_SIZE       0x80000000 - DRAM_SEC_SIZE
29 #define CONFIG_SYS_SDRAM_BASE   PHYS_SDRAM_1
30
31 #define PHYS_SDRAM_2            0x8080000000
32 #define PHYS_SDRAM_2_SIZE       0x180000000
33
34 #define CONFIG_SYS_MMC_MAX_BLK_COUNT            127
35
36 #define CONFIG_EXTRA_ENV_SETTINGS       \
37                                 "bootm_size=0x20000000\0"       \
38                                 "load_addr=0xa0000000\0"        \
39                                 "kernel_addr_r=0x80080000\0"    \
40                                 "initrd_addr_r=0x88000000\0"    \
41                                 "fdt_addr_r=0x83000000\0"
42 /*
43  * If vbmeta partition is present, boot Android with verification using AVB.
44  * Else if system partition is present (no vbmeta partition), boot Android
45  * without verification (for development purposes).
46  * Else boot FIT image.
47  */
48
49 /* Monitor Command Prompt */
50 #define CONFIG_SYS_CBSIZE               512     /* Console I/O Buffer Size */
51 #define CONFIG_SYS_MAXARGS              64      /* max command args */
52
53 #define CONFIG_SYS_FLASH_BASE           0x0C000000
54 /* 256 x 256KiB sectors */
55 #define CONFIG_SYS_MAX_FLASH_SECT       256
56
57 #define CONFIG_SYS_FLASH_CFI_WIDTH      FLASH_CFI_32BIT
58
59 #define CONFIG_SYS_FLASH_EMPTY_INFO     /* flinfo indicates empty blocks */
60 #define FLASH_MAX_SECTOR_SIZE           0x00040000
61
62 #endif /* __TOTAL_COMPUTE_H */