Lines Matching full:density

429 static void dramc_set_autorefresh_cycle(u32 clk, u32 density)  in dramc_set_autorefresh_cycle()  argument
434 tRFC = (tRFC_DDR3_table[density] * clk + 999) / 1000; in dramc_set_autorefresh_cycle()
565 u32 density; in dramc_init_helper() local
598 if (para->density == 256) in dramc_init_helper()
599 density = DRAM_DCR_CHIP_DENSITY_256M; in dramc_init_helper()
600 else if (para->density == 512) in dramc_init_helper()
601 density = DRAM_DCR_CHIP_DENSITY_512M; in dramc_init_helper()
602 else if (para->density == 1024) in dramc_init_helper()
603 density = DRAM_DCR_CHIP_DENSITY_1024M; in dramc_init_helper()
604 else if (para->density == 2048) in dramc_init_helper()
605 density = DRAM_DCR_CHIP_DENSITY_2048M; in dramc_init_helper()
606 else if (para->density == 4096) in dramc_init_helper()
607 density = DRAM_DCR_CHIP_DENSITY_4096M; in dramc_init_helper()
608 else if (para->density == 8192) in dramc_init_helper()
609 density = DRAM_DCR_CHIP_DENSITY_8192M; in dramc_init_helper()
611 density = DRAM_DCR_CHIP_DENSITY_256M; in dramc_init_helper()
613 reg_val |= DRAM_DCR_CHIP_DENSITY(density); in dramc_init_helper()
635 dramc_set_autorefresh_cycle(para->clock, density); in dramc_init_helper()
701 if (para->io_width && para->bus_width && para->density) in dramc_init()
704 /* try to autodetect the DRAM bus width and density */ in dramc_init()
708 /* only A0-A14 address lines on A10/A13, limiting max density to 4096 */ in dramc_init()
709 para->density = 4096; in dramc_init()
711 /* all A0-A15 address lines on A20, which allow density 8192 */ in dramc_init()
712 para->density = 8192; in dramc_init()
726 /* check if we need to adjust the density */ in dramc_init()
729 if (actual_density != para->density) { in dramc_init()
730 /* update the density and re-initialize DRAM again */ in dramc_init()
731 para->density = actual_density; in dramc_init()