Sean Anderson | edc32ab | 2020-06-24 06:41:25 -0400 | [diff] [blame] | 1 | /* 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 | |
Tom Rini | bb4dd96 | 2022-11-16 13:10:37 -0500 | [diff] [blame] | 11 | #define CFG_SYS_SDRAM_BASE 0x80000000 |
| 12 | #define CFG_SYS_SDRAM_SIZE SZ_8M |
Sean Anderson | edc32ab | 2020-06-24 06:41:25 -0400 | [diff] [blame] | 13 | |
Heinrich Schuchardt | a831f05 | 2020-07-29 12:49:24 +0200 | [diff] [blame] | 14 | #ifndef CONFIG_EXTRA_ENV_SETTINGS |
| 15 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 16 | "loadaddr=0x80060000\0" \ |
Sean Anderson | c37341e | 2020-12-22 18:57:18 -0500 | [diff] [blame] | 17 | "fdt_addr_r=0x80400000\0" \ |
Heinrich Schuchardt | a831f05 | 2020-07-29 12:49:24 +0200 | [diff] [blame] | 18 | "scriptaddr=0x80020000\0" \ |
| 19 | "kernel_addr_r=0x80060000\0" \ |
Damien Le Moal | 6e5a8b7 | 2022-03-01 10:35:39 +0000 | [diff] [blame] | 20 | "fdtfile=k210/" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \ |
Sean Anderson | c37341e | 2020-12-22 18:57:18 -0500 | [diff] [blame] | 21 | "k210_bootcmd=load mmc 0:1 $loadaddr /uImage && " \ |
| 22 | "load mmc 0:1 $fdt_addr_r /k210.dtb && " \ |
| 23 | "bootm $loadaddr - $fdt_addr_r\0" |
Heinrich Schuchardt | a831f05 | 2020-07-29 12:49:24 +0200 | [diff] [blame] | 24 | #endif |
| 25 | |
Sean Anderson | edc32ab | 2020-06-24 06:41:25 -0400 | [diff] [blame] | 26 | #endif /* CONFIGS_SIPEED_MAIX_H */ |