Tony Dinh | 6aebc1a | 2023-02-09 14:00:03 -0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Copyright (C) 2023 Tony Dinh <mibodhi@gmail.com> |
| 4 | * |
| 5 | */ |
| 6 | |
| 7 | #ifndef _CONFIG_DS116_H |
| 8 | #define _CONFIG_DS116_H |
| 9 | |
Tony Dinh | 6aebc1a | 2023-02-09 14:00:03 -0800 | [diff] [blame] | 10 | /* Keep device tree and initrd in lower memory so the kernel can access them */ |
| 11 | #define RELOCATION_LIMITS_ENV_SETTINGS \ |
| 12 | "fdt_high=0x10000000\0" \ |
| 13 | "initrd_high=0x10000000\0" |
| 14 | |
| 15 | /* |
| 16 | * mv-common.h should be defined after CMD configs since it used them |
| 17 | * to enable certain macros |
| 18 | */ |
| 19 | #include "mv-common.h" |
| 20 | |
Tony Dinh | 6aebc1a | 2023-02-09 14:00:03 -0800 | [diff] [blame] | 21 | #ifndef CONFIG_SPL_BUILD |
| 22 | |
Tony Dinh | 6aebc1a | 2023-02-09 14:00:03 -0800 | [diff] [blame] | 23 | #define KERNEL_ADDR_R __stringify(0x1000000) |
| 24 | #define FDT_ADDR_R __stringify(0x2000000) |
| 25 | #define RAMDISK_ADDR_R __stringify(0x2200000) |
| 26 | #define SCRIPT_ADDR_R __stringify(0x1800000) |
| 27 | #define PXEFILE_ADDR_R __stringify(0x1900000) |
| 28 | |
| 29 | #define LOAD_ADDRESS_ENV_SETTINGS \ |
| 30 | "kernel_addr_r=" KERNEL_ADDR_R "\0" \ |
| 31 | "fdt_addr_r=" FDT_ADDR_R "\0" \ |
| 32 | "ramdisk_addr_r=" RAMDISK_ADDR_R "\0" \ |
| 33 | "scriptaddr=" SCRIPT_ADDR_R "\0" \ |
| 34 | "pxefile_addr_r=" PXEFILE_ADDR_R "\0" |
| 35 | |
Tony Dinh | 6aebc1a | 2023-02-09 14:00:03 -0800 | [diff] [blame] | 36 | #define CFG_EXTRA_ENV_SETTINGS \ |
| 37 | RELOCATION_LIMITS_ENV_SETTINGS \ |
| 38 | LOAD_ADDRESS_ENV_SETTINGS \ |
| 39 | "fdtfile=" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \ |
Tony Dinh | c66cee9 | 2023-10-07 14:35:47 -0700 | [diff] [blame] | 40 | "console=ttyS0,115200\0" |
Tony Dinh | 6aebc1a | 2023-02-09 14:00:03 -0800 | [diff] [blame] | 41 | |
| 42 | #endif /* CONFIG_SPL_BUILD */ |
| 43 | |
| 44 | #endif /* _CONFIG_DS116_H */ |