Sean Anderson | a7c81fc | 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 | |
| 11 | #define CONFIG_SYS_LOAD_ADDR 0x80000000 |
| 12 | /* Start just below the second bank so we don't clobber it during reloc */ |
| 13 | #define CONFIG_SYS_INIT_SP_ADDR 0x803FFFFF |
| 14 | #define CONFIG_SYS_MALLOC_LEN SZ_128K |
| 15 | #define CONFIG_SYS_CACHELINE_SIZE 64 |
| 16 | |
| 17 | #define CONFIG_SYS_SDRAM_BASE 0x80000000 |
Sean Anderson | 2305805 | 2021-04-08 22:13:10 -0400 | [diff] [blame] | 18 | #define CONFIG_SYS_SDRAM_SIZE SZ_8M |
Sean Anderson | a7c81fc | 2020-06-24 06:41:25 -0400 | [diff] [blame] | 19 | |
Heinrich Schuchardt | a4bda5e | 2020-07-29 12:49:24 +0200 | [diff] [blame] | 20 | #ifndef CONFIG_EXTRA_ENV_SETTINGS |
| 21 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 22 | "loadaddr=0x80060000\0" \ |
Sean Anderson | 8f78e52 | 2020-12-22 18:57:18 -0500 | [diff] [blame] | 23 | "fdt_addr_r=0x80400000\0" \ |
Heinrich Schuchardt | a4bda5e | 2020-07-29 12:49:24 +0200 | [diff] [blame] | 24 | "scriptaddr=0x80020000\0" \ |
| 25 | "kernel_addr_r=0x80060000\0" \ |
Sean Anderson | 8f78e52 | 2020-12-22 18:57:18 -0500 | [diff] [blame] | 26 | "fdtfile=kendryte/" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \ |
| 27 | "k210_bootcmd=load mmc 0:1 $loadaddr /uImage && " \ |
| 28 | "load mmc 0:1 $fdt_addr_r /k210.dtb && " \ |
| 29 | "bootm $loadaddr - $fdt_addr_r\0" |
Heinrich Schuchardt | a4bda5e | 2020-07-29 12:49:24 +0200 | [diff] [blame] | 30 | #endif |
| 31 | |
Sean Anderson | a7c81fc | 2020-06-24 06:41:25 -0400 | [diff] [blame] | 32 | #endif /* CONFIGS_SIPEED_MAIX_H */ |