Stefan Roese | a6f2ea4 | 2020-06-30 12:08:58 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Copyright (C) 2019-2020 |
| 4 | * Marvell <www.marvell.com> |
| 5 | */ |
| 6 | |
| 7 | #ifndef __OCTEON_COMMON_H__ |
| 8 | #define __OCTEON_COMMON_H__ |
| 9 | |
Stefan Roese | 82ba278 | 2020-09-02 08:29:10 +0200 | [diff] [blame] | 10 | #if defined(CONFIG_RAM_OCTEON) |
Stefan Roese | ef20245 | 2022-04-07 09:11:48 +0200 | [diff] [blame] | 11 | #define CONFIG_SYS_INIT_SP_OFFSET 0x20180000 |
Stefan Roese | 82ba278 | 2020-09-02 08:29:10 +0200 | [diff] [blame] | 12 | #else |
| 13 | /* No DDR init -> run in L2 cache with limited resources */ |
Stefan Roese | 82ba278 | 2020-09-02 08:29:10 +0200 | [diff] [blame] | 14 | #define CONFIG_SYS_INIT_SP_OFFSET 0x00180000 |
| 15 | #endif |
| 16 | |
Stefan Roese | a6f2ea4 | 2020-06-30 12:08:58 +0200 | [diff] [blame] | 17 | #define CONFIG_SYS_SDRAM_BASE 0xffffffff80000000 |
Stefan Roese | a6f2ea4 | 2020-06-30 12:08:58 +0200 | [diff] [blame] | 18 | |
Stefan Roese | f70df7f | 2020-08-20 07:22:04 +0200 | [diff] [blame] | 19 | #define CONFIG_SYS_BOOTM_LEN (64 << 20) /* 64M */ |
| 20 | |
Stefan Roese | a6f2ea4 | 2020-06-30 12:08:58 +0200 | [diff] [blame] | 21 | #endif /* __OCTEON_COMMON_H__ */ |