xref: /OK3568_Linux_fs/u-boot/cmd/ddr_tool/ddr_tool_common.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */
2 /*
3  * Copyright (C) 2019 Rockchip Electronics Co., Ltd.
4  */
5 
6 /* Function declaration. */
7 #ifndef __CMD_DDR_TOOL_DDR_TOOL_COMMON_H
8 #define __CMD_DDR_TOOL_DDR_TOOL_COMMON_H
9 
10 /* reserved 1MB for stack */
11 #define RESERVED_SP_SIZE		0x100000
12 
13 void write_buf_to_ddr(u32 *buf, u32 buf_len, ulong start_adr, ulong length);
14 ulong cmp_buf_data(u32 *buf, u32 buf_len, ulong start_adr,
15 		   ulong length, u32 prt_en);
16 void print_memory(void *addr, ulong size);
17 void get_print_available_addr(ulong *start_adr, ulong *length, int print_en);
18 int judge_test_addr(ulong *arg, ulong *start_adr, ulong *length);
19 int set_vdd_logic(u32 uv);
20 #endif /* __CMD_DDR_TOOL_DDR_TOOL_COMMON_H */
21