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 _ASPEED_PLATFORM_H_
9 #define _ASPEED_PLATFORM_H_
10 
11 #define AST_PLL_25MHZ			25000000
12 #define AST_PLL_24MHZ			24000000
13 #define AST_PLL_12MHZ			12000000
14 
15 /*********************************************************************************/
16 #if defined(CONFIG_ASPEED_AST2400)
17 #define ASPEED_MAC_COUNT	2
18 #define ASPEED_HW_STRAP1	0x1e6e2070
19 #define ASPEED_REVISION_ID	0x1e6e207C
20 #define ASPEED_SYS_RESET_CTRL	0x1e6e203C
21 #define ASPEED_VGA_HANDSHAKE0	0x1e6e2040		/*	VGA fuction handshake register */
22 #define ASPEED_DRAM_BASE		0x40000000
23 #define ASPEED_SRAM_BASE		0x1E720000
24 #elif defined(CONFIG_ASPEED_AST2500)
25 #include "ast2500_platform.h"
26 #define ASPEED_MAC_COUNT	2
27 #define ASPEED_HW_STRAP1	0x1e6e2070
28 #define ASPEED_HW_STRAP2	0x1e6e20D0
29 #define ASPEED_REVISION_ID	0x1e6e207C
30 #define ASPEED_SYS_RESET_CTRL	0x1e6e203C
31 #define ASPEED_VGA_HANDSHAKE0	0x1e6e2040		/*	VGA fuction handshake register */
32 #define ASPEED_MAC_COUNT	2
33 #define ASPEED_DRAM_BASE		0x80000000
34 #define ASPEED_SRAM_BASE		0x1E720000
35 #elif defined(CONFIG_ASPEED_AST2600)
36 #define ASPEED_HW_STRAP1	0x1e6e2500
37 #define ASPEED_HW_STRAP2	0x1e6e2510
38 #define ASPEED_REVISION_ID	0x1e6e2004
39 #define ASPEED_SYS_RESET_CTRL	0x1e6e2064
40 #define ASPEED_VGA_HANDSHAKE0	0x1e6e2100		/*	VGA fuction handshake register */
41 #define ASPEED_MAC_COUNT	4
42 #define ASPEED_DRAM_BASE		0x80000000
43 #define ASPEED_SRAM_BASE		0x10000000
44 #else
45 #err "No define for platform.h"
46 #endif
47 
48 #endif
49