Tony Dinh | b21f87a5 | 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 | |
| 10 | #define PHY_ANEG_TIMEOUT 8000 /* PHY needs a longer aneg time */ |
| 11 | |
| 12 | /* Keep device tree and initrd in lower memory so the kernel can access them */ |
| 13 | #define RELOCATION_LIMITS_ENV_SETTINGS \ |
| 14 | "fdt_high=0x10000000\0" \ |
| 15 | "initrd_high=0x10000000\0" |
| 16 | |
| 17 | /* |
| 18 | * mv-common.h should be defined after CMD configs since it used them |
| 19 | * to enable certain macros |
| 20 | */ |
| 21 | #include "mv-common.h" |
| 22 | |
Tony Dinh | b21f87a5 | 2023-02-09 14:00:03 -0800 | [diff] [blame] | 23 | #ifndef CONFIG_SPL_BUILD |
| 24 | |
Tony Dinh | b21f87a5 | 2023-02-09 14:00:03 -0800 | [diff] [blame] | 25 | #define KERNEL_ADDR_R __stringify(0x1000000) |
| 26 | #define FDT_ADDR_R __stringify(0x2000000) |
| 27 | #define RAMDISK_ADDR_R __stringify(0x2200000) |
| 28 | #define SCRIPT_ADDR_R __stringify(0x1800000) |
| 29 | #define PXEFILE_ADDR_R __stringify(0x1900000) |
| 30 | |
| 31 | #define LOAD_ADDRESS_ENV_SETTINGS \ |
| 32 | "kernel_addr_r=" KERNEL_ADDR_R "\0" \ |
| 33 | "fdt_addr_r=" FDT_ADDR_R "\0" \ |
| 34 | "ramdisk_addr_r=" RAMDISK_ADDR_R "\0" \ |
| 35 | "scriptaddr=" SCRIPT_ADDR_R "\0" \ |
| 36 | "pxefile_addr_r=" PXEFILE_ADDR_R "\0" |
| 37 | |
Tony Dinh | b21f87a5 | 2023-02-09 14:00:03 -0800 | [diff] [blame] | 38 | #define CFG_EXTRA_ENV_SETTINGS \ |
| 39 | RELOCATION_LIMITS_ENV_SETTINGS \ |
| 40 | LOAD_ADDRESS_ENV_SETTINGS \ |
| 41 | "fdtfile=" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \ |
Tony Dinh | 1c954fe | 2023-10-07 14:35:47 -0700 | [diff] [blame] | 42 | "console=ttyS0,115200\0" |
Tony Dinh | b21f87a5 | 2023-02-09 14:00:03 -0800 | [diff] [blame] | 43 | |
| 44 | #endif /* CONFIG_SPL_BUILD */ |
| 45 | |
| 46 | #endif /* _CONFIG_DS116_H */ |