Fabien Parent | 2e50d82 | 2019-07-18 19:08:09 +0200 | [diff] [blame] | 1 | /* 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 Parent | 2bd14a8 | 2021-02-15 19:07:44 +0100 | [diff] [blame] | 9 | #ifndef __MT8516_H |
| 10 | #define __MT8516_H |
Fabien Parent | 2e50d82 | 2019-07-18 19:08:09 +0200 | [diff] [blame] | 11 | |
| 12 | #include <linux/sizes.h> |
| 13 | |
Fabien Parent | 2e50d82 | 2019-07-18 19:08:09 +0200 | [diff] [blame] | 14 | #define COUNTER_FREQUENCY 13000000 |
| 15 | |
| 16 | #define CONFIG_SYS_NS16550_SERIAL |
| 17 | #define CONFIG_SYS_NS16550_REG_SIZE -4 |
| 18 | #define CONFIG_SYS_NS16550_MEM32 |
| 19 | #define CONFIG_SYS_NS16550_COM1 0x11005000 |
| 20 | #define CONFIG_SYS_NS16550_CLK 26000000 |
| 21 | |
Fabien Parent | 2e50d82 | 2019-07-18 19:08:09 +0200 | [diff] [blame] | 22 | #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_TEXT_BASE + SZ_2M - \ |
| 23 | GENERATED_GBL_DATA_SIZE) |
| 24 | |
| 25 | #define CONFIG_SYS_BOOTM_LEN SZ_64M |
| 26 | |
| 27 | /* Environment settings */ |
| 28 | #include <config_distro_bootcmd.h> |
| 29 | |
Fabien Parent | 00763af | 2021-02-15 19:07:46 +0100 | [diff] [blame] | 30 | #define BOOT_TARGET_DEVICES(func) \ |
| 31 | func(MMC, mmc, 0) |
Fabien Parent | 2e50d82 | 2019-07-18 19:08:09 +0200 | [diff] [blame] | 32 | |
| 33 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
Fabien Parent | 00763af | 2021-02-15 19:07:46 +0100 | [diff] [blame] | 34 | "scriptaddr=0x40000000\0" \ |
| 35 | BOOTENV |
Fabien Parent | 2e50d82 | 2019-07-18 19:08:09 +0200 | [diff] [blame] | 36 | |
| 37 | #endif |