Chia-Wei, Wang | 17cacab | 2020-08-03 17:36:08 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Copyright (C) ASPEED Technology Inc. |
| 4 | * Ryan Chen <ryan_chen@aspeedtech.com> |
| 5 | * |
| 6 | */ |
| 7 | |
| 8 | #ifndef _ASM_ARCH_PLATFORM_H |
| 9 | #define _ASM_ARCH_PLATFORM_H |
| 10 | |
| 11 | #if defined(CONFIG_ASPEED_AST2500) |
| 12 | #define ASPEED_MAC_COUNT 2 |
| 13 | #define ASPEED_DRAM_BASE 0x80000000 |
| 14 | #define ASPEED_SRAM_BASE 0x1e720000 |
| 15 | #define ASPEED_SRAM_SIZE 0x9000 |
Chia-Wei, Wang | 8f7f490 | 2020-12-14 13:54:28 +0800 | [diff] [blame] | 16 | #elif defined(CONFIG_ASPEED_AST2600) |
| 17 | #define ASPEED_MAC_COUNT 4 |
| 18 | #define ASPEED_DRAM_BASE 0x80000000 |
| 19 | #define ASPEED_SRAM_BASE 0x10000000 |
Chia-Wei Wang | 809b5fc | 2021-10-27 14:17:25 +0800 | [diff] [blame^] | 20 | #define ASPEED_SRAM_SIZE 0x16000 |
Chia-Wei, Wang | 17cacab | 2020-08-03 17:36:08 +0800 | [diff] [blame] | 21 | #else |
| 22 | #err "Unrecognized Aspeed platform." |
| 23 | #endif |
| 24 | |
| 25 | #endif |