Tony Dinh | 7301ed9 | 2022-01-23 22:17:12 -0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
Tony Dinh | 81d2c54 | 2023-10-24 16:17:08 -0700 | [diff] [blame] | 3 | * Copyright (C) 2014-2023 Tony Dinh <mibodhi@gmail.com> |
Tony Dinh | 7301ed9 | 2022-01-23 22:17:12 -0800 | [diff] [blame] | 4 | * |
| 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 Dinh | 5a86d67 | 2022-08-08 20:01:34 -0700 | [diff] [blame] | 24 | #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 Rini | 0613c36 | 2022-12-04 10:03:50 -0500 | [diff] [blame] | 35 | #define CFG_EXTRA_ENV_SETTINGS \ |
Tony Dinh | 5a86d67 | 2022-08-08 20:01:34 -0700 | [diff] [blame] | 36 | LOAD_ADDRESS_ENV_SETTINGS \ |
| 37 | "fdtfile=" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \ |
| 38 | "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \ |
Tony Dinh | 81d2c54 | 2023-10-24 16:17:08 -0700 | [diff] [blame] | 39 | "console=ttyS0,115200\0" |
Tony Dinh | 7301ed9 | 2022-01-23 22:17:12 -0800 | [diff] [blame] | 40 | |
Tony Dinh | 7301ed9 | 2022-01-23 22:17:12 -0800 | [diff] [blame] | 41 | #endif /* _CONFIG_POGO_V4_H */ |