blob: d5003538da31fca348208c83e469d6293db1185a [file] [log] [blame]
Tony Dinh7301ed92022-01-23 22:17:12 -08001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
Tony Dinh81d2c542023-10-24 16:17:08 -07003 * Copyright (C) 2014-2023 Tony Dinh <mibodhi@gmail.com>
Tony Dinh7301ed92022-01-23 22:17:12 -08004 *
5 * Based on
6 * Copyright (C) 2012
7 * David Purdy <david.c.purdy@gmail.com>
8 *
9 * Based on Kirkwood support:
10 * (C) Copyright 2009
11 * Marvell Semiconductor <www.marvell.com>
12 * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
13 */
14
15#ifndef _CONFIG_POGO_V4_H
16#define _CONFIG_POGO_V4_H
17
18/*
19 * mv-common.h should be defined after CMD configs since it used them
20 * to enable certain macros
21 */
22#include "mv-common.h"
23
Tony Dinh5a86d672022-08-08 20:01:34 -070024#define KERNEL_ADDR_R __stringify(0x800000)
25#define FDT_ADDR_R __stringify(0x2c00000)
26#define RAMDISK_ADDR_R __stringify(0x01100000)
27#define SCRIPT_ADDR_R __stringify(0x200000)
28
29#define LOAD_ADDRESS_ENV_SETTINGS \
30 "kernel_addr_r=" KERNEL_ADDR_R "\0" \
31 "fdt_addr_r=" FDT_ADDR_R "\0" \
32 "ramdisk_addr_r=" RAMDISK_ADDR_R "\0" \
33 "scriptaddr=" SCRIPT_ADDR_R "\0"
34
Tom Rini0613c362022-12-04 10:03:50 -050035#define CFG_EXTRA_ENV_SETTINGS \
Tony Dinh5a86d672022-08-08 20:01:34 -070036 LOAD_ADDRESS_ENV_SETTINGS \
37 "fdtfile=" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \
38 "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
Tony Dinh81d2c542023-10-24 16:17:08 -070039 "console=ttyS0,115200\0"
Tony Dinh7301ed92022-01-23 22:17:12 -080040
Tony Dinh7301ed92022-01-23 22:17:12 -080041#endif /* _CONFIG_POGO_V4_H */