oleavr-rgl-a500-mini-linux-.../drivers/soc/allwinner/pm/standby/dram/mctl_para-default.h
Ole André Vadla Ravnås 169c65d57e Initial commit
2022-05-07 01:01:45 +02:00

53 lines
1.6 KiB
C

/*
* Copyright (c) 2007-2017 Allwinnertech Co., Ltd.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#ifndef _MCTL_PARA_H
#define _MCTL_PARA_H
typedef struct __DRAM_PARA {
/*normal configuration */
unsigned int dram_clk;
unsigned int dram_type; /*dram_type DDR2: 2 DDR3: 3 LPDDR2: 6 LPDDR3: 7 DDR3L: 31 */
/*unsigned int lpddr2_type; //LPDDR2 type S4:0 S2:1 NVM:2 */
unsigned int dram_zq; /*do not need */
unsigned int dram_odt_en;
/*control configuration */
unsigned int dram_para1;
unsigned int dram_para2;
/*timing configuration */
unsigned int dram_mr0;
unsigned int dram_mr1;
unsigned int dram_mr2;
unsigned int dram_mr3;
unsigned int dram_tpr0; /*DRAMTMG0 */
unsigned int dram_tpr1; /*DRAMTMG1 */
unsigned int dram_tpr2; /*DRAMTMG2 */
unsigned int dram_tpr3; /*DRAMTMG3 */
unsigned int dram_tpr4; /*DRAMTMG4 */
unsigned int dram_tpr5; /*DRAMTMG5 */
unsigned int dram_tpr6; /*DRAMTMG8 */
/*reserved for future use */
unsigned int dram_tpr7;
unsigned int dram_tpr8;
unsigned int dram_tpr9;
unsigned int dram_tpr10;
unsigned int dram_tpr11;
unsigned int dram_tpr12;
unsigned int dram_tpr13;
} __dram_para_t;
#endif /*_MCTL_HAL_H*/