Tom Rini | 299f8f8 | 2021-07-07 22:55:41 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
Tony Dinh | 35fd9af | 2023-10-25 15:38:37 -0700 | [diff] [blame] | 3 | * Copyright (C) 2015, 2021-2023 Tony Dinh <mibodhi@gmail.com> |
Tom Rini | 299f8f8 | 2021-07-07 22:55:41 -0400 | [diff] [blame] | 4 | * Copyright (C) 2015 |
| 5 | * Gerald Kerma <dreagle@doukki.net> |
Tom Rini | 299f8f8 | 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 | c35331c | 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 | 299f8f8 | 2021-07-07 22:55:41 -0400 | [diff] [blame] | 16 | #include "mv-common.h" |
| 17 | |
Tony Dinh | c35331c | 2022-08-11 16:40:25 -0700 | [diff] [blame] | 18 | #define KERNEL_ADDR_R __stringify(0x800000) |
| 19 | #define FDT_ADDR_R __stringify(0x2c00000) |
| 20 | #define RAMDISK_ADDR_R __stringify(0x01100000) |
| 21 | #define SCRIPT_ADDR_R __stringify(0x200000) |
| 22 | |
| 23 | #define LOAD_ADDRESS_ENV_SETTINGS \ |
| 24 | "kernel_addr_r=" KERNEL_ADDR_R "\0" \ |
| 25 | "fdt_addr_r=" FDT_ADDR_R "\0" \ |
| 26 | "ramdisk_addr_r=" RAMDISK_ADDR_R "\0" \ |
| 27 | "scriptaddr=" SCRIPT_ADDR_R "\0" |
| 28 | |
Tom Rini | c9edebe | 2022-12-04 10:03:50 -0500 | [diff] [blame] | 29 | #define CFG_EXTRA_ENV_SETTINGS \ |
Tom Rini | 299f8f8 | 2021-07-07 22:55:41 -0400 | [diff] [blame] | 30 | "console=console=ttyS0,115200\0" \ |
Tom Rini | 299f8f8 | 2021-07-07 22:55:41 -0400 | [diff] [blame] | 31 | "kernel=/boot/zImage\0" \ |
| 32 | "fdt=/boot/nsa310s.dtb\0" \ |
Tony Dinh | c35331c | 2022-08-11 16:40:25 -0700 | [diff] [blame] | 33 | "bootargs_root=ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs rw\0" \ |
Tony Dinh | 35fd9af | 2023-10-25 15:38:37 -0700 | [diff] [blame] | 34 | LOAD_ADDRESS_ENV_SETTINGS |
Tom Rini | 299f8f8 | 2021-07-07 22:55:41 -0400 | [diff] [blame] | 35 | |
Tom Rini | 299f8f8 | 2021-07-07 22:55:41 -0400 | [diff] [blame] | 36 | #endif /* _CONFIG_NSA310S_H */ |