Merge tag 'tpm-030822' of https://source.denx.de/u-boot/custodians/u-boot-tpm
[platform/kernel/u-boot.git] / include / configs / mt7621.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright (C) 2022 MediaTek Inc. All rights reserved.
4  *
5  * Author: Weijie Gao <weijie.gao@mediatek.com>
6  */
7
8 #ifndef __CONFIG_MT7621_H
9 #define __CONFIG_MT7621_H
10
11 #define CONFIG_SYS_MIPS_TIMER_FREQ      440000000
12
13 #define CONFIG_SYS_SDRAM_BASE           0x80000000
14
15 #define CONFIG_VERY_BIG_RAM
16 #define CONFIG_MAX_MEM_MAPPED           0x1c000000
17
18 #define CONFIG_SYS_INIT_SP_OFFSET       0x800000
19
20 #define CONFIG_SYS_NONCACHED_MEMORY     0x100000
21
22 /* MMC */
23 #define MMC_SUPPORTS_TUNING
24
25 /* NAND */
26 #define CONFIG_SYS_MAX_NAND_DEVICE      1
27
28 /* Serial SPL */
29 #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_SERIAL)
30 #define CONFIG_SYS_NS16550_MEM32
31 #define CONFIG_SYS_NS16550_CLK          50000000
32 #define CONFIG_SYS_NS16550_REG_SIZE     -4
33 #define CONFIG_SYS_NS16550_COM1         0xbe000c00
34 #endif
35
36 /* Serial common */
37 #define CONFIG_SYS_BAUDRATE_TABLE       { 9600, 19200, 38400, 57600, 115200, \
38                                           230400, 460800, 921600 }
39
40 /* Dummy value */
41 #define CONFIG_SYS_UBOOT_BASE           0
42
43 #endif /* __CONFIG_MT7621_H */