Usama Arif | 9218a11 | 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. |
| 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 | |
Usama Arif | 9218a11 | 2020-08-12 16:12:53 +0100 | [diff] [blame] | 12 | /* Link Definitions */ |
Usama Arif | 9218a11 | 2020-08-12 16:12:53 +0100 | [diff] [blame] | 13 | |
Usama Arif | 9218a11 | 2020-08-12 16:12:53 +0100 | [diff] [blame] | 14 | #define UART0_BASE 0x7ff80000 |
| 15 | |
Usama Arif | 9218a11 | 2020-08-12 16:12:53 +0100 | [diff] [blame] | 16 | /* PL011 Serial Configuration */ |
Tom Rini | 5c896ae | 2022-12-04 10:13:30 -0500 | [diff] [blame] | 17 | #define CFG_PL011_CLOCK 7372800 |
Usama Arif | 9218a11 | 2020-08-12 16:12:53 +0100 | [diff] [blame] | 18 | |
| 19 | /* Miscellaneous configurable options */ |
Usama Arif | 9218a11 | 2020-08-12 16:12:53 +0100 | [diff] [blame] | 20 | |
| 21 | /* Physical Memory Map */ |
| 22 | #define PHYS_SDRAM_1 0x80000000 |
| 23 | /* Top 48MB reserved for secure world use */ |
| 24 | #define DRAM_SEC_SIZE 0x03000000 |
| 25 | #define PHYS_SDRAM_1_SIZE 0x80000000 - DRAM_SEC_SIZE |
Tom Rini | bb4dd96 | 2022-11-16 13:10:37 -0500 | [diff] [blame] | 26 | #define CFG_SYS_SDRAM_BASE PHYS_SDRAM_1 |
Usama Arif | 9218a11 | 2020-08-12 16:12:53 +0100 | [diff] [blame] | 27 | |
Usama Arif | 3e44c08 | 2021-10-12 13:43:16 +0100 | [diff] [blame] | 28 | #define PHYS_SDRAM_2 0x8080000000 |
| 29 | #define PHYS_SDRAM_2_SIZE 0x180000000 |
| 30 | |
Tom Rini | c9edebe | 2022-12-04 10:03:50 -0500 | [diff] [blame] | 31 | #define CFG_EXTRA_ENV_SETTINGS \ |
Usama Arif | 9218a11 | 2020-08-12 16:12:53 +0100 | [diff] [blame] | 32 | "bootm_size=0x20000000\0" \ |
| 33 | "load_addr=0xa0000000\0" \ |
| 34 | "kernel_addr_r=0x80080000\0" \ |
| 35 | "initrd_addr_r=0x88000000\0" \ |
| 36 | "fdt_addr_r=0x83000000\0" |
| 37 | /* |
| 38 | * If vbmeta partition is present, boot Android with verification using AVB. |
| 39 | * Else if system partition is present (no vbmeta partition), boot Android |
| 40 | * without verification (for development purposes). |
| 41 | * Else boot FIT image. |
| 42 | */ |
Usama Arif | 9218a11 | 2020-08-12 16:12:53 +0100 | [diff] [blame] | 43 | |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 44 | #define CFG_SYS_FLASH_BASE 0x0C000000 |
Usama Arif | 9218a11 | 2020-08-12 16:12:53 +0100 | [diff] [blame] | 45 | |
| 46 | #endif /* __TOTAL_COMPUTE_H */ |