blob: 6a55e7a32757e22a30baa337fcfa1e2b6878770e [file] [log] [blame]
Weijie Gao4bc01042022-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
Weijie Gao4bc01042022-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
18#define CONFIG_SYS_NONCACHED_MEMORY 0x100000
19
20/* MMC */
21#define MMC_SUPPORTS_TUNING
22
23/* NAND */
Weijie Gao4bc01042022-05-20 11:22:21 +080024
25/* Serial SPL */
26#if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_SERIAL)
27#define CONFIG_SYS_NS16550_MEM32
28#define CONFIG_SYS_NS16550_CLK 50000000
29#define CONFIG_SYS_NS16550_REG_SIZE -4
30#define CONFIG_SYS_NS16550_COM1 0xbe000c00
31#endif
32
33/* Serial common */
34#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200, \
35 230400, 460800, 921600 }
36
37/* Dummy value */
38#define CONFIG_SYS_UBOOT_BASE 0
39
40#endif /* __CONFIG_MT7621_H */