blob: 1cc2992c804565d8407d47090003e22071831226 [file] [log] [blame]
Sean Andersona7c81fc2020-06-24 06:41:25 -04001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright (C) 2019-20 Sean Anderson <seanga2@gmail.com>
4 */
5
6#ifndef CONFIGS_SIPEED_MAIX_H
7#define CONFIGS_SIPEED_MAIX_H
8
9#include <linux/sizes.h>
10
Sean Andersona7c81fc2020-06-24 06:41:25 -040011/* Start just below the second bank so we don't clobber it during reloc */
12#define CONFIG_SYS_INIT_SP_ADDR 0x803FFFFF
Sean Andersona7c81fc2020-06-24 06:41:25 -040013
14#define CONFIG_SYS_SDRAM_BASE 0x80000000
Sean Anderson23058052021-04-08 22:13:10 -040015#define CONFIG_SYS_SDRAM_SIZE SZ_8M
Sean Andersona7c81fc2020-06-24 06:41:25 -040016
Heinrich Schuchardta4bda5e2020-07-29 12:49:24 +020017#ifndef CONFIG_EXTRA_ENV_SETTINGS
18#define CONFIG_EXTRA_ENV_SETTINGS \
19 "loadaddr=0x80060000\0" \
Sean Anderson8f78e522020-12-22 18:57:18 -050020 "fdt_addr_r=0x80400000\0" \
Heinrich Schuchardta4bda5e2020-07-29 12:49:24 +020021 "scriptaddr=0x80020000\0" \
22 "kernel_addr_r=0x80060000\0" \
Damien Le Moalfd426b32022-03-01 10:35:39 +000023 "fdtfile=k210/" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \
Sean Anderson8f78e522020-12-22 18:57:18 -050024 "k210_bootcmd=load mmc 0:1 $loadaddr /uImage && " \
25 "load mmc 0:1 $fdt_addr_r /k210.dtb && " \
26 "bootm $loadaddr - $fdt_addr_r\0"
Heinrich Schuchardta4bda5e2020-07-29 12:49:24 +020027#endif
28
Sean Andersona7c81fc2020-06-24 06:41:25 -040029#endif /* CONFIGS_SIPEED_MAIX_H */