blob: 084e7de555a6b5b591dfb3dd27f523a2054b473b [file] [log] [blame]
Peter Kaoda1e02a2015-07-31 17:11:14 +08001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright 2015 MediaTek Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
15
16#ifndef _DRAMC_COMMON_H_
17#define _DRAMC_COMMON_H_
18
19enum {
20 CHANNEL_A = 0,
21 CHANNEL_B,
22 CHANNEL_NUM
23};
24
25enum {
26 GW_PARAM_COARSE = 0,
27 GW_PARAM_FINE,
28 GW_PARAM_NUM
29};
30
31enum {
32 DUAL_RANKS = 2,
33 CATRAINING_NUM = 10
34};
35
36enum {
37 DQ_DATA_WIDTH = 32,
38 DQS_BIT_NUMBER = 8,
39 DQS_NUMBER = (DQ_DATA_WIDTH / DQS_BIT_NUMBER)
40};
41
42#endif /* _DRAMC_COMMON_H_ */