blob: 9b1ba3655e820662d2fa364a23e5d900f0dc8ed3 [file] [log] [blame]
developer2fddd722022-05-20 11:22:21 +08001/* 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
developer2fddd722022-05-20 11:22:21 +080011#define CONFIG_SYS_SDRAM_BASE 0x80000000
12
13#define CONFIG_VERY_BIG_RAM
14#define CONFIG_MAX_MEM_MAPPED 0x1c000000
15
16#define CONFIG_SYS_INIT_SP_OFFSET 0x800000
17
developer2fddd722022-05-20 11:22:21 +080018/* MMC */
19#define MMC_SUPPORTS_TUNING
20
21/* NAND */
developer2fddd722022-05-20 11:22:21 +080022
23/* Serial SPL */
24#if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_SERIAL)
25#define CONFIG_SYS_NS16550_MEM32
26#define CONFIG_SYS_NS16550_CLK 50000000
27#define CONFIG_SYS_NS16550_REG_SIZE -4
28#define CONFIG_SYS_NS16550_COM1 0xbe000c00
29#endif
30
31/* Serial common */
32#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200, \
33 230400, 460800, 921600 }
34
35/* Dummy value */
36#define CONFIG_SYS_UBOOT_BASE 0
37
38#endif /* __CONFIG_MT7621_H */