Searched refs:sys_reg (Results 1 – 15 of 15) sorted by relevance
21 u32 sys_reg = readl(reg); in rockchip_sdram_size() local22 u32 ch_num = 1 + ((sys_reg >> SYS_REG_NUM_CH_SHIFT) in rockchip_sdram_size()25 debug("%s %x %x\n", __func__, (u32)reg, sys_reg); in rockchip_sdram_size()27 rank = 1 + (sys_reg >> SYS_REG_RANK_SHIFT(ch) & in rockchip_sdram_size()29 col = 9 + (sys_reg >> SYS_REG_COL_SHIFT(ch) & SYS_REG_COL_MASK); in rockchip_sdram_size()30 bk = 3 - ((sys_reg >> SYS_REG_BK_SHIFT(ch)) & SYS_REG_BK_MASK); in rockchip_sdram_size()31 cs0_row = 13 + (sys_reg >> SYS_REG_CS0_ROW_SHIFT(ch) & in rockchip_sdram_size()33 cs1_row = 13 + (sys_reg >> SYS_REG_CS1_ROW_SHIFT(ch) & in rockchip_sdram_size()35 bw = (2 >> ((sys_reg >> SYS_REG_BW_SHIFT(ch)) & in rockchip_sdram_size()37 row_3_4 = sys_reg >> SYS_REG_ROW_3_4_SHIFT(ch) & in rockchip_sdram_size()
296 size_t size = rockchip_sdram_size((phys_addr_t)&pmu->sys_reg[2]); in dram_init_banksize()
536 u32 sys_reg = 0; in dram_all_config() local538 sys_reg |= sdram_params->base.dramtype << SYS_REG_DDRTYPE_SHIFT; in dram_all_config()539 sys_reg |= (sdram_params->num_channels - 1) << SYS_REG_NUM_CH_SHIFT; in dram_all_config()544 sys_reg |= info->row_3_4 << SYS_REG_ROW_3_4_SHIFT(chan); in dram_all_config()545 sys_reg |= 1 << SYS_REG_CHINFO_SHIFT(chan); in dram_all_config()546 sys_reg |= (info->rank - 1) << SYS_REG_RANK_SHIFT(chan); in dram_all_config()547 sys_reg |= (info->col - 9) << SYS_REG_COL_SHIFT(chan); in dram_all_config()548 sys_reg |= info->bk == 3 ? 0 : 1 << SYS_REG_BK_SHIFT(chan); in dram_all_config()549 sys_reg |= (info->cs0_row - 13) << SYS_REG_CS0_ROW_SHIFT(chan); in dram_all_config()550 sys_reg |= (info->cs1_row - 13) << SYS_REG_CS1_ROW_SHIFT(chan); in dram_all_config()[all …]
581 u32 sys_reg = 0; in dram_all_config() local583 sys_reg |= sdram_params->base.dramtype << SYS_REG_DDRTYPE_SHIFT; in dram_all_config()584 sys_reg |= (1 - 1) << SYS_REG_NUM_CH_SHIFT; in dram_all_config()585 sys_reg |= info->row_3_4 << SYS_REG_ROW_3_4_SHIFT(0); in dram_all_config()586 sys_reg |= 1 << SYS_REG_CHINFO_SHIFT(0); in dram_all_config()587 sys_reg |= (info->rank - 1) << SYS_REG_RANK_SHIFT(0); in dram_all_config()588 sys_reg |= (info->col - 9) << SYS_REG_COL_SHIFT(0); in dram_all_config()589 sys_reg |= info->bk == 3 ? 0 : 1 << SYS_REG_BK_SHIFT(0); in dram_all_config()590 sys_reg |= (info->cs0_row - 13) << SYS_REG_CS0_ROW_SHIFT(0); in dram_all_config()591 sys_reg |= (info->cs1_row - 13) << SYS_REG_CS1_ROW_SHIFT(0); in dram_all_config()[all …]
774 u32 sys_reg = 0; in dram_all_config() local777 sys_reg |= DDR3 << SYS_REG_DDRTYPE_SHIFT; in dram_all_config()778 sys_reg |= 0 << SYS_REG_NUM_CH_SHIFT; in dram_all_config()780 sys_reg |= info->row_3_4 << SYS_REG_ROW_3_4_SHIFT(chan); in dram_all_config()781 sys_reg |= 1 << SYS_REG_CHINFO_SHIFT(chan); in dram_all_config()782 sys_reg |= (info->rank - 1) << SYS_REG_RANK_SHIFT(chan); in dram_all_config()783 sys_reg |= (info->col - 9) << SYS_REG_COL_SHIFT(chan); in dram_all_config()784 sys_reg |= info->bk == 3 ? 0 : 1 << SYS_REG_BK_SHIFT(chan); in dram_all_config()785 sys_reg |= (info->cs0_row - 13) << SYS_REG_CS0_ROW_SHIFT(chan); in dram_all_config()786 sys_reg |= (info->cs1_row - 13) << SYS_REG_CS1_ROW_SHIFT(chan); in dram_all_config()[all …]
593 u32 sys_reg = 0; in dram_all_config() local595 sys_reg |= sdram_params->base.dramtype << SYS_REG_DDRTYPE_SHIFT; in dram_all_config()596 sys_reg |= (sdram_params->num_channels - 1) << SYS_REG_NUM_CH_SHIFT; in dram_all_config()601 sys_reg |= info->row_3_4 << SYS_REG_ROW_3_4_SHIFT(chan); in dram_all_config()602 sys_reg |= 1 << SYS_REG_CHINFO_SHIFT(chan); in dram_all_config()603 sys_reg |= (info->rank - 1) << SYS_REG_RANK_SHIFT(chan); in dram_all_config()604 sys_reg |= (info->col - 9) << SYS_REG_COL_SHIFT(chan); in dram_all_config()605 sys_reg |= info->bk == 3 ? 0 : 1 << SYS_REG_BK_SHIFT(chan); in dram_all_config()606 sys_reg |= (info->cs0_row - 13) << SYS_REG_CS0_ROW_SHIFT(chan); in dram_all_config()607 sys_reg |= (info->cs1_row - 13) << SYS_REG_CS1_ROW_SHIFT(chan); in dram_all_config()[all …]
934 u32 sys_reg = 0; in dram_all_config() local937 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()[all …]
49 u32 sys_reg[4]; member51 check_member(rk3288_pmu, sys_reg[3], 0x00a0);
28 u32 sys_reg[4]; member
94 unsigned int sys_reg[4]; member
344 vin-sm0-supply = <&sys_reg>;345 vin-sm1-supply = <&sys_reg>;346 vin-sm2-supply = <&sys_reg>;354 sys_reg: sys { label
347 vin-sm0-supply = <&sys_reg>;348 vin-sm1-supply = <&sys_reg>;349 vin-sm2-supply = <&sys_reg>;357 sys_reg: sys { label
429 vin-sm0-supply = <&sys_reg>;430 vin-sm1-supply = <&sys_reg>;431 vin-sm2-supply = <&sys_reg>;439 sys_reg: sys { label
359 vin-sm0-supply = <&sys_reg>;360 vin-sm1-supply = <&sys_reg>;361 vin-sm2-supply = <&sys_reg>;369 sys_reg: sys { label
474 vin-sm0-supply = <&sys_reg>;475 vin-sm1-supply = <&sys_reg>;476 vin-sm2-supply = <&sys_reg>;484 sys_reg: sys { label