blob: 92b2270236f1226041e0e9c9ba3e80f31ea46f9c [file] [log] [blame]
Tony Dinh63eba132023-02-01 15:13:05 -08001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright (C) 2023 Tony Dinh <mibodhi@gmail.com>
4 *
5 */
6
7#ifndef _CONFIG_N2350_H
8#define _CONFIG_N2350_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
23/* Include the common distro boot environment */
24#ifndef CONFIG_SPL_BUILD
25
26#define BOOT_TARGET_DEVICES(func) \
27 func(SCSI, scsi, 0) \
28 func(USB, usb, 0) \
29 func(PXE, pxe, na) \
30 func(DHCP, dhcp, na)
31
32#define KERNEL_ADDR_R __stringify(0x1000000)
33#define FDT_ADDR_R __stringify(0x2000000)
34#define RAMDISK_ADDR_R __stringify(0x2200000)
35#define SCRIPT_ADDR_R __stringify(0x1800000)
36#define PXEFILE_ADDR_R __stringify(0x1900000)
37
38#define LOAD_ADDRESS_ENV_SETTINGS \
39 "kernel_addr_r=" KERNEL_ADDR_R "\0" \
40 "fdt_addr_r=" FDT_ADDR_R "\0" \
41 "ramdisk_addr_r=" RAMDISK_ADDR_R "\0" \
42 "scriptaddr=" SCRIPT_ADDR_R "\0" \
43 "pxefile_addr_r=" PXEFILE_ADDR_R "\0"
44
45#include <config_distro_bootcmd.h>
46
47#define CFG_EXTRA_ENV_SETTINGS \
48 RELOCATION_LIMITS_ENV_SETTINGS \
49 LOAD_ADDRESS_ENV_SETTINGS \
50 "fdtfile=" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \
51 "console=ttyS0,115200\0" \
52 BOOTENV
53
54#endif /* CONFIG_SPL_BUILD */
55
56#endif /* _CONFIG_N2350_H */