Usama Arif | 565add1 | 2020-08-12 16:12:53 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Configuration for Total Compute platform. Parts were derived from other ARM |
| 4 | * configurations. |
annsai01 | c48002e | 2023-03-13 14:27:15 +0530 | [diff] [blame] | 5 | * (C) Copyright 2020-2023 Arm Limited |
Usama Arif | 565add1 | 2020-08-12 16:12:53 +0100 | [diff] [blame] | 6 | * Usama Arif <usama.arif@arm.com> |
| 7 | */ |
| 8 | |
| 9 | #ifndef __TOTAL_COMPUTE_H |
| 10 | #define __TOTAL_COMPUTE_H |
| 11 | |
Usama Arif | 565add1 | 2020-08-12 16:12:53 +0100 | [diff] [blame] | 12 | /* Link Definitions */ |
Usama Arif | 565add1 | 2020-08-12 16:12:53 +0100 | [diff] [blame] | 13 | |
annsai01 | c48002e | 2023-03-13 14:27:15 +0530 | [diff] [blame] | 14 | /* AP non-secure UART base address */ |
| 15 | #define UART0_BASE 0x2A400000 |
Usama Arif | 565add1 | 2020-08-12 16:12:53 +0100 | [diff] [blame] | 16 | |
Usama Arif | 565add1 | 2020-08-12 16:12:53 +0100 | [diff] [blame] | 17 | /* PL011 Serial Configuration */ |
Tom Rini | f410d0a | 2022-12-04 10:13:30 -0500 | [diff] [blame] | 18 | #define CFG_PL011_CLOCK 7372800 |
Usama Arif | 565add1 | 2020-08-12 16:12:53 +0100 | [diff] [blame] | 19 | |
| 20 | /* Miscellaneous configurable options */ |
Usama Arif | 565add1 | 2020-08-12 16:12:53 +0100 | [diff] [blame] | 21 | |
| 22 | /* Physical Memory Map */ |
| 23 | #define PHYS_SDRAM_1 0x80000000 |
| 24 | /* Top 48MB reserved for secure world use */ |
| 25 | #define DRAM_SEC_SIZE 0x03000000 |
| 26 | #define PHYS_SDRAM_1_SIZE 0x80000000 - DRAM_SEC_SIZE |
Tom Rini | aa6e94d | 2022-11-16 13:10:37 -0500 | [diff] [blame] | 27 | #define CFG_SYS_SDRAM_BASE PHYS_SDRAM_1 |
Usama Arif | 565add1 | 2020-08-12 16:12:53 +0100 | [diff] [blame] | 28 | |
Usama Arif | b20b16a | 2021-10-12 13:43:16 +0100 | [diff] [blame] | 29 | #define PHYS_SDRAM_2 0x8080000000 |
| 30 | #define PHYS_SDRAM_2_SIZE 0x180000000 |
| 31 | |
Tom Rini | 0613c36 | 2022-12-04 10:03:50 -0500 | [diff] [blame] | 32 | #define CFG_EXTRA_ENV_SETTINGS \ |
Usama Arif | 565add1 | 2020-08-12 16:12:53 +0100 | [diff] [blame] | 33 | "bootm_size=0x20000000\0" \ |
| 34 | "load_addr=0xa0000000\0" \ |
| 35 | "kernel_addr_r=0x80080000\0" \ |
| 36 | "initrd_addr_r=0x88000000\0" \ |
| 37 | "fdt_addr_r=0x83000000\0" |
| 38 | /* |
| 39 | * If vbmeta partition is present, boot Android with verification using AVB. |
| 40 | * Else if system partition is present (no vbmeta partition), boot Android |
| 41 | * without verification (for development purposes). |
| 42 | * Else boot FIT image. |
| 43 | */ |
Usama Arif | 565add1 | 2020-08-12 16:12:53 +0100 | [diff] [blame] | 44 | |
Tom Rini | 65cc0e2 | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 45 | #define CFG_SYS_FLASH_BASE 0x0C000000 |
Usama Arif | 565add1 | 2020-08-12 16:12:53 +0100 | [diff] [blame] | 46 | |
| 47 | #endif /* __TOTAL_COMPUTE_H */ |