Jagan Teki | 8967dea | 2023-01-30 20:27:45 +0530 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * (C) Copyright 2021 Rockchip Electronics Co., Ltd |
| 4 | * Copyright (c) 2023 Edgeble AI Technologies Pvt. Ltd. |
| 5 | */ |
| 6 | |
| 7 | #ifndef __CONFIG_RK3588_COMMON_H |
| 8 | #define __CONFIG_RK3588_COMMON_H |
| 9 | |
| 10 | #include "rockchip-common.h" |
| 11 | |
| 12 | #define CFG_IRAM_BASE 0xff000000 |
| 13 | |
| 14 | #define CFG_SYS_SDRAM_BASE 0 |
| 15 | #define SDRAM_MAX_SIZE 0xf0000000 |
| 16 | |
| 17 | #define ENV_MEM_LAYOUT_SETTINGS \ |
| 18 | "scriptaddr=0x00c00000\0" \ |
Jonas Karlman | f4d27e9 | 2023-04-17 19:07:17 +0000 | [diff] [blame^] | 19 | "script_offset_f=0xffe000\0" \ |
| 20 | "script_size_f=0x2000\0" \ |
Jagan Teki | 8967dea | 2023-01-30 20:27:45 +0530 | [diff] [blame] | 21 | "pxefile_addr_r=0x00e00000\0" \ |
| 22 | "fdt_addr_r=0x0a100000\0" \ |
Jonas Karlman | f4d27e9 | 2023-04-17 19:07:17 +0000 | [diff] [blame^] | 23 | "fdtoverlay_addr_r=0x02000000\0" \ |
Jagan Teki | 8967dea | 2023-01-30 20:27:45 +0530 | [diff] [blame] | 24 | "kernel_addr_r=0x02080000\0" \ |
Jonas Karlman | f4d27e9 | 2023-04-17 19:07:17 +0000 | [diff] [blame^] | 25 | "ramdisk_addr_r=0x0a200000\0" \ |
| 26 | "kernel_comp_addr_r=0x08000000\0" \ |
| 27 | "kernel_comp_size=0x2000000\0" |
Jagan Teki | 8967dea | 2023-01-30 20:27:45 +0530 | [diff] [blame] | 28 | |
| 29 | #include <config_distro_bootcmd.h> |
| 30 | #define CFG_EXTRA_ENV_SETTINGS \ |
| 31 | "fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \ |
| 32 | "partitions=" PARTS_DEFAULT \ |
| 33 | ENV_MEM_LAYOUT_SETTINGS \ |
| 34 | ROCKCHIP_DEVICE_SETTINGS \ |
| 35 | BOOTENV |
| 36 | |
| 37 | #endif /* __CONFIG_RK3588_COMMON_H */ |