Sheetal Tigadoli | ad0943e | 2019-12-18 19:44:43 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2016 - 2020, Broadcom |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef DDR_INIT_H |
| 8 | #define DDR_INIT_H |
| 9 | |
| 10 | #include <fru.h> |
| 11 | |
| 12 | #pragma weak ddr_initialize |
| 13 | #pragma weak ddr_secure_region_config |
| 14 | #pragma weak ddr_info_save |
| 15 | #pragma weak get_active_ddr_channel |
| 16 | #pragma weak is_warmboot |
| 17 | |
| 18 | void ddr_initialize(struct ddr_info *ddr) |
| 19 | { |
| 20 | } |
| 21 | |
| 22 | void ddr_secure_region_config(uint64_t start, uint64_t end) |
| 23 | { |
| 24 | } |
| 25 | |
| 26 | void ddr_info_save(void) |
| 27 | { |
| 28 | } |
| 29 | |
| 30 | unsigned char get_active_ddr_channel(void) |
| 31 | { |
| 32 | return 0; |
| 33 | } |
| 34 | |
| 35 | static inline unsigned int is_warmboot(void) |
| 36 | { |
| 37 | return 0; |
| 38 | } |
| 39 | #endif |