summaryrefslogtreecommitdiff
path: root/drivers/ddr/marvell/a38x/ddr3_training_ip_pbs.h
blob: c6be67c40a3bcf79eba07982ff93a05014b75388 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
 * Copyright (C) Marvell International Ltd. and its affiliates
 *
 * SPDX-License-Identifier:	GPL-2.0
 */

#ifndef _DDR3_TRAINING_IP_PBS_H_
#define _DDR3_TRAINING_IP_PBS_H_

enum {
	EBA_CONFIG,
	EEBA_CONFIG,
	SBA_CONFIG
};

enum hws_training_load_op {
	TRAINING_LOAD_OPERATION_UNLOAD,
	TRAINING_LOAD_OPERATION_LOAD
};

enum hws_edge {
	TRAINING_EDGE_1,
	TRAINING_EDGE_2
};

enum hws_edge_search {
	TRAINING_EDGE_MAX,
	TRAINING_EDGE_MIN
};

enum pbs_dir {
	PBS_TX_MODE = 0,
	PBS_RX_MODE,
	NUM_OF_PBS_MODES
};

int ddr3_tip_pbs_rx(u32 dev_num);
int ddr3_tip_print_all_pbs_result(u32 dev_num);
int ddr3_tip_pbs_tx(u32 dev_num);

#endif /* _DDR3_TRAINING_IP_PBS_H_ */