| 1 | /* SPDX-License-Identifier: BSD-3-Clause */ |
| 2 | |
| 3 | #ifndef MT6516_MEMORY_H |
| 4 | #define MT6516_MEMORY_H |
| 5 | |
| 6 | #include <stdint.h> |
| 7 | |
| 8 | /************************************************************************** |
| 9 | * DEBUG CONTROL |
| 10 | **************************************************************************/ |
| 11 | #define MEM_TEST (1) |
| 12 | |
| 13 | // do not change the test size !!!! |
| 14 | #define MEM_TEST_SIZE (0x2000) |
| 15 | |
| 16 | /************************************************************************** |
| 17 | * DRAM SIZE |
| 18 | **************************************************************************/ |
| 19 | #define E1_DRAM_SIZE (0x10000000) |
| 20 | #define E2_DRAM_SIZE (0x08000000) |
| 21 | |
| 22 | /************************************************************************** |
| 23 | * EXPOSED API |
| 24 | **************************************************************************/ |
| 25 | extern u32 mt6516_get_hardware_ver (void); |
| 26 | extern void mt6516_mem_init (void); |
| 27 | |
| 28 | #if MEM_TEST |
| 29 | extern int complex_mem_test (unsigned int start, unsigned int len); |
| 30 | #endif |
| 31 | |
| 32 | #endif |