Lines Matching refs:sys_reg
934 u32 sys_reg = 0; in dram_all_config() local
937 sys_reg |= sdram_params->base.dramtype << SYS_REG_DDRTYPE_SHIFT; in dram_all_config()
938 sys_reg |= (sdram_params->base.num_channels - 1) in dram_all_config()
951 sys_reg |= info->row_3_4 << SYS_REG_ROW_3_4_SHIFT(channel); in dram_all_config()
952 sys_reg |= 1 << SYS_REG_CHINFO_SHIFT(channel); in dram_all_config()
953 sys_reg |= (info->rank - 1) << SYS_REG_RANK_SHIFT(channel); in dram_all_config()
954 sys_reg |= (info->col - 9) << SYS_REG_COL_SHIFT(channel); in dram_all_config()
955 sys_reg |= info->bk == 3 ? 0 : 1 << SYS_REG_BK_SHIFT(channel); in dram_all_config()
956 sys_reg |= (info->cs0_row - 13) << SYS_REG_CS0_ROW_SHIFT(channel); in dram_all_config()
957 sys_reg |= (info->cs1_row - 13) << SYS_REG_CS1_ROW_SHIFT(channel); in dram_all_config()
958 sys_reg |= (2 >> info->bw) << SYS_REG_BW_SHIFT(channel); in dram_all_config()
959 sys_reg |= (2 >> info->dbw) << SYS_REG_DBW_SHIFT(channel); in dram_all_config()
980 writel(sys_reg, &dram->pmugrf->os_reg2); in dram_all_config()