1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Configuration for Pumpkin board
5 * Copyright (C) 2019 BayLibre, SAS
6 * Author: Fabien Parent <fparent@baylibre.com
12 #include <linux/sizes.h>
14 #define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_TEXT_BASE
15 #define CONFIG_SYS_MALLOC_LEN SZ_4M
17 #define CONFIG_CPU_ARMV8
18 #define COUNTER_FREQUENCY 13000000
20 #define CONFIG_SYS_NS16550_SERIAL
21 #define CONFIG_SYS_NS16550_REG_SIZE -4
22 #define CONFIG_SYS_NS16550_MEM32
23 #define CONFIG_SYS_NS16550_COM1 0x11005000
24 #define CONFIG_SYS_NS16550_CLK 26000000
26 #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_TEXT_BASE + SZ_2M - \
27 GENERATED_GBL_DATA_SIZE)
29 #define CONFIG_SYS_BOOTM_LEN SZ_64M
31 /* Environment settings */
32 #include <config_distro_bootcmd.h>
36 "kernel_partition=2\0" \
37 "rootfs_partition=3\0" \
38 "mmc_discover_partition=" \
39 "part start mmc ${mmcdev} ${kernel_partition} kernel_part_addr;" \
40 "part size mmc ${mmcdev} ${kernel_partition} kernel_part_size;\0" \
42 "mmc dev ${mmcdev};" \
43 "run mmc_discover_partition;" \
44 "mmc read ${kerneladdr} ${kernel_part_addr} ${kernel_part_size};" \
45 "setenv bootargs ${bootargs} root=/dev/mmcblk${mmcdev}p${rootfs_partition} rootwait; " \
46 "bootm ${kerneladdr}; \0"
48 #define CONFIG_EXTRA_ENV_SETTINGS \
49 "kerneladdr=0x4A000000\0" \
51 "bootcmd=run mmcboot;\0"