Tianrui Wei | 8a44fe6 | 2021-07-01 12:54:19 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Copyright (c) 2019 Western Digital Corporation or its affiliates. |
| 4 | * Copyright (c) 2021 Tianrui Wei |
| 5 | * |
| 6 | * Authors: |
| 7 | * Anup Patel <anup.patel@wdc.com> |
| 8 | * Tianrui Wei <tianrui-wei@outlook.com> |
| 9 | */ |
| 10 | |
| 11 | #ifndef __OPENPITON_RISCV64_CONFIG_H |
| 12 | #define __OPENPITON_RISCV64_CONFIG_H |
| 13 | |
| 14 | #include <linux/sizes.h> |
| 15 | |
| 16 | /* Environment options */ |
| 17 | #define CONFIG_SYS_SDRAM_BASE 0x80000000 |
Tianrui Wei | 8a44fe6 | 2021-07-01 12:54:19 +0800 | [diff] [blame] | 18 | #define CONFIG_SYS_BOOTM_LEN SZ_256M |
| 19 | |
| 20 | #ifdef CONFIG_SPL |
Tianrui Wei | 8a44fe6 | 2021-07-01 12:54:19 +0800 | [diff] [blame] | 21 | #define CONFIG_SYS_SPL_MALLOC_START (CONFIG_SPL_BSS_START_ADDR + \ |
| 22 | CONFIG_SPL_BSS_MAX_SIZE) |
| 23 | #define CONFIG_SYS_SPL_MALLOC_SIZE 0x0100000 |
Tianrui Wei | 8a44fe6 | 2021-07-01 12:54:19 +0800 | [diff] [blame] | 24 | |
Tianrui Wei | 8a44fe6 | 2021-07-01 12:54:19 +0800 | [diff] [blame] | 25 | #define CONFIG_SPL_GD_ADDR 0x85000000 |
| 26 | #endif |
| 27 | |
Tianrui Wei | 8a44fe6 | 2021-07-01 12:54:19 +0800 | [diff] [blame] | 28 | /* --------------------------------------------------------------------- |
| 29 | * Board boot configuration |
| 30 | */ |
| 31 | |
| 32 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 33 | "fdt_addr_r=0x86000000\0" \ |
| 34 | "kernel_addr_r=0x80200000\0" \ |
| 35 | "image=boot/Image\0" \ |
| 36 | "mmcdev=0\0" \ |
| 37 | "mmcpart=1\0" |
| 38 | |
Tianrui Wei | 8a44fe6 | 2021-07-01 12:54:19 +0800 | [diff] [blame] | 39 | #endif/* __CONFIG_H */ |