Tom Rini | 4ee73b0 | 2021-07-07 22:55:41 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
Tony Dinh | dbd2a38 | 2022-04-17 13:42:42 -0700 | [diff] [blame] | 3 | * Copyright (C) 2015, 2021-2022 Tony Dinh <mibodhi@gmail.com> |
Tom Rini | 4ee73b0 | 2021-07-07 22:55:41 -0400 | [diff] [blame] | 4 | * Copyright (C) 2015 |
| 5 | * Gerald Kerma <dreagle@doukki.net> |
Tom Rini | 4ee73b0 | 2021-07-07 22:55:41 -0400 | [diff] [blame] | 6 | * Luka Perkov <luka.perkov@sartura.hr> |
| 7 | */ |
| 8 | |
| 9 | #ifndef _CONFIG_NSA310S_H |
| 10 | #define _CONFIG_NSA310S_H |
| 11 | |
Tony Dinh | 7875f80 | 2022-08-11 16:40:25 -0700 | [diff] [blame] | 12 | /* |
| 13 | * mv-common.h should be defined after CMD configs since it used them |
| 14 | * to enable certain macros |
| 15 | */ |
Tom Rini | 4ee73b0 | 2021-07-07 22:55:41 -0400 | [diff] [blame] | 16 | #include "mv-common.h" |
| 17 | |
Tony Dinh | 7875f80 | 2022-08-11 16:40:25 -0700 | [diff] [blame] | 18 | /* Include the common distro boot environment */ |
| 19 | #ifndef CONFIG_SPL_BUILD |
| 20 | |
| 21 | #define BOOT_TARGET_DEVICES(func) \ |
| 22 | func(USB, usb, 0) \ |
| 23 | func(SATA, sata, 0) \ |
| 24 | func(DHCP, dhcp, na) |
| 25 | |
| 26 | #define KERNEL_ADDR_R __stringify(0x800000) |
| 27 | #define FDT_ADDR_R __stringify(0x2c00000) |
| 28 | #define RAMDISK_ADDR_R __stringify(0x01100000) |
| 29 | #define SCRIPT_ADDR_R __stringify(0x200000) |
| 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 | |
| 37 | #include <config_distro_bootcmd.h> |
Tom Rini | 4ee73b0 | 2021-07-07 22:55:41 -0400 | [diff] [blame] | 38 | |
Tom Rini | 0613c36 | 2022-12-04 10:03:50 -0500 | [diff] [blame] | 39 | #define CFG_EXTRA_ENV_SETTINGS \ |
Tom Rini | 4ee73b0 | 2021-07-07 22:55:41 -0400 | [diff] [blame] | 40 | "console=console=ttyS0,115200\0" \ |
Tom Rini | 4ee73b0 | 2021-07-07 22:55:41 -0400 | [diff] [blame] | 41 | "kernel=/boot/zImage\0" \ |
| 42 | "fdt=/boot/nsa310s.dtb\0" \ |
Tony Dinh | 7875f80 | 2022-08-11 16:40:25 -0700 | [diff] [blame] | 43 | "bootargs_root=ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs rw\0" \ |
| 44 | LOAD_ADDRESS_ENV_SETTINGS \ |
| 45 | BOOTENV |
| 46 | |
| 47 | #endif /* CONFIG_SPL_BUILD */ |
Tom Rini | 4ee73b0 | 2021-07-07 22:55:41 -0400 | [diff] [blame] | 48 | |
Tom Rini | 4ee73b0 | 2021-07-07 22:55:41 -0400 | [diff] [blame] | 49 | #endif /* _CONFIG_NSA310S_H */ |