blob: 12840b883decf091aae89126633dbc343bfdb698 [file] [log] [blame]
Fabien Parentbb4c5d62019-07-18 19:08:09 +02001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Configuration for Pumpkin board
4 *
5 * Copyright (C) 2019 BayLibre, SAS
6 * Author: Fabien Parent <fparent@baylibre.com
7 */
8
Fabien Parent86e07d52021-02-15 19:07:44 +01009#ifndef __MT8516_H
10#define __MT8516_H
Fabien Parentbb4c5d62019-07-18 19:08:09 +020011
12#include <linux/sizes.h>
13
Fabien Parentbb4c5d62019-07-18 19:08:09 +020014#define CONFIG_CPU_ARMV8
15#define COUNTER_FREQUENCY 13000000
16
17#define CONFIG_SYS_NS16550_SERIAL
18#define CONFIG_SYS_NS16550_REG_SIZE -4
19#define CONFIG_SYS_NS16550_MEM32
20#define CONFIG_SYS_NS16550_COM1 0x11005000
21#define CONFIG_SYS_NS16550_CLK 26000000
22
Fabien Parentbb4c5d62019-07-18 19:08:09 +020023#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_TEXT_BASE + SZ_2M - \
24 GENERATED_GBL_DATA_SIZE)
25
26#define CONFIG_SYS_BOOTM_LEN SZ_64M
27
28/* Environment settings */
29#include <config_distro_bootcmd.h>
30
Fabien Parent21f59322021-02-15 19:07:46 +010031#define BOOT_TARGET_DEVICES(func) \
32 func(MMC, mmc, 0)
Fabien Parentbb4c5d62019-07-18 19:08:09 +020033
34#define CONFIG_EXTRA_ENV_SETTINGS \
Fabien Parent21f59322021-02-15 19:07:46 +010035 "scriptaddr=0x40000000\0" \
36 BOOTENV
Fabien Parentbb4c5d62019-07-18 19:08:09 +020037
38#endif