cb11096c26ae027def7cd4f2022273e933bfceeb
[platform/kernel/u-boot.git] / include / configs / mt8183.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Configuration for MT8183 based boards
4  *
5  * Copyright (C) 2021 BayLibre, SAS
6  * Author: Fabien Parent <fparent@baylibre.com
7  */
8
9 #ifndef __MT8183_H
10 #define __MT8183_H
11
12 #include <linux/sizes.h>
13
14 #define CONFIG_SYS_MALLOC_LEN           SZ_4M
15
16 #define CONFIG_CPU_ARMV8
17 #define COUNTER_FREQUENCY               13000000
18
19 #define CONFIG_SYS_NS16550_SERIAL
20 #define CONFIG_SYS_NS16550_REG_SIZE     -4
21 #define CONFIG_SYS_NS16550_MEM32
22 #define CONFIG_SYS_NS16550_COM1         0x11005200
23 #define CONFIG_SYS_NS16550_CLK          26000000
24
25 #define CONFIG_SYS_INIT_SP_ADDR         (CONFIG_SYS_TEXT_BASE + SZ_2M - \
26                                                  GENERATED_GBL_DATA_SIZE)
27
28 #define CONFIG_SYS_BOOTM_LEN            SZ_64M
29
30 /* Environment settings */
31 #include <config_distro_bootcmd.h>
32
33 #define BOOT_TARGET_DEVICES(func) \
34         func(MMC, mmc, 0)
35
36 #define CONFIG_EXTRA_ENV_SETTINGS \
37         "scriptaddr=0x40000000\0" \
38         BOOTENV
39
40 #endif