blob: 8c4d03553d3da2153b8f0ab2be83871a9d26c970 [file] [log] [blame]
Tom Rini4ee73b02021-07-07 22:55:41 -04001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
Tony Dinhb6014f22023-10-25 15:38:37 -07003 * Copyright (C) 2015, 2021-2023 Tony Dinh <mibodhi@gmail.com>
Tom Rini4ee73b02021-07-07 22:55:41 -04004 * Copyright (C) 2015
5 * Gerald Kerma <dreagle@doukki.net>
Tom Rini4ee73b02021-07-07 22:55:41 -04006 * Luka Perkov <luka.perkov@sartura.hr>
7 */
8
9#ifndef _CONFIG_NSA310S_H
10#define _CONFIG_NSA310S_H
11
Tony Dinh7875f802022-08-11 16:40:25 -070012/*
13 * mv-common.h should be defined after CMD configs since it used them
14 * to enable certain macros
15 */
Tom Rini4ee73b02021-07-07 22:55:41 -040016#include "mv-common.h"
17
Tony Dinh7875f802022-08-11 16:40:25 -070018#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 Rini0613c362022-12-04 10:03:50 -050029#define CFG_EXTRA_ENV_SETTINGS \
Tom Rini4ee73b02021-07-07 22:55:41 -040030 "console=console=ttyS0,115200\0" \
Tom Rini4ee73b02021-07-07 22:55:41 -040031 "kernel=/boot/zImage\0" \
32 "fdt=/boot/nsa310s.dtb\0" \
Tony Dinh7875f802022-08-11 16:40:25 -070033 "bootargs_root=ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs rw\0" \
Tony Dinhb6014f22023-10-25 15:38:37 -070034 LOAD_ADDRESS_ENV_SETTINGS
Tom Rini4ee73b02021-07-07 22:55:41 -040035
Tom Rini4ee73b02021-07-07 22:55:41 -040036#endif /* _CONFIG_NSA310S_H */