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. |
| 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 | 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 | |
| 14 | #define CONFIG_SYS_BOOTM_LEN (64 << 20) |
| 15 | |
| 16 | #define UART0_BASE 0x7ff80000 |
| 17 | |
Usama Arif | 565add1 | 2020-08-12 16:12:53 +0100 | [diff] [blame] | 18 | /* PL011 Serial Configuration */ |
| 19 | #define CONFIG_PL011_CLOCK 7372800 |
| 20 | |
| 21 | /* Miscellaneous configurable options */ |
Usama Arif | 565add1 | 2020-08-12 16:12:53 +0100 | [diff] [blame] | 22 | |
| 23 | /* Physical Memory Map */ |
| 24 | #define PHYS_SDRAM_1 0x80000000 |
| 25 | /* Top 48MB reserved for secure world use */ |
| 26 | #define DRAM_SEC_SIZE 0x03000000 |
| 27 | #define PHYS_SDRAM_1_SIZE 0x80000000 - DRAM_SEC_SIZE |
| 28 | #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1 |
| 29 | |
Usama Arif | b20b16a | 2021-10-12 13:43:16 +0100 | [diff] [blame] | 30 | #define PHYS_SDRAM_2 0x8080000000 |
| 31 | #define PHYS_SDRAM_2_SIZE 0x180000000 |
| 32 | |
Usama Arif | 565add1 | 2020-08-12 16:12:53 +0100 | [diff] [blame] | 33 | #define CONFIG_SYS_MMC_MAX_BLK_COUNT 127 |
Usama Arif | 565add1 | 2020-08-12 16:12:53 +0100 | [diff] [blame] | 34 | |
| 35 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 36 | "bootm_size=0x20000000\0" \ |
| 37 | "load_addr=0xa0000000\0" \ |
| 38 | "kernel_addr_r=0x80080000\0" \ |
| 39 | "initrd_addr_r=0x88000000\0" \ |
| 40 | "fdt_addr_r=0x83000000\0" |
| 41 | /* |
| 42 | * If vbmeta partition is present, boot Android with verification using AVB. |
| 43 | * Else if system partition is present (no vbmeta partition), boot Android |
| 44 | * without verification (for development purposes). |
| 45 | * Else boot FIT image. |
| 46 | */ |
Usama Arif | 565add1 | 2020-08-12 16:12:53 +0100 | [diff] [blame] | 47 | |
Usama Arif | 565add1 | 2020-08-12 16:12:53 +0100 | [diff] [blame] | 48 | #define CONFIG_SYS_FLASH_BASE 0x0C000000 |
| 49 | /* 256 x 256KiB sectors */ |
| 50 | #define CONFIG_SYS_MAX_FLASH_SECT 256 |
| 51 | |
Usama Arif | 565add1 | 2020-08-12 16:12:53 +0100 | [diff] [blame] | 52 | #define CONFIG_SYS_FLASH_EMPTY_INFO /* flinfo indicates empty blocks */ |
| 53 | #define FLASH_MAX_SECTOR_SIZE 0x00040000 |
| 54 | |
| 55 | #endif /* __TOTAL_COMPUTE_H */ |