Searched full:emc_cfg (Results 1 – 9 of 9) sorted by relevance
/linux/drivers/memory/tegra/ |
H A D | tegra30-emc.c | 44 #define EMC_CFG 0x00c macro 370 u32 emc_cfg; member 554 emc->emc_cfg = readl_relaxed(emc->regs + EMC_CFG); in emc_prepare_timing_change() 577 if (emc->emc_cfg & EMC_CFG_DYN_SREF_ENABLE) { in emc_prepare_timing_change() 578 emc->emc_cfg &= ~EMC_CFG_DYN_SREF_ENABLE; in emc_prepare_timing_change() 579 writel_relaxed(emc->emc_cfg, emc->regs + EMC_CFG); in emc_prepare_timing_change() 691 writel_relaxed(emc->emc_cfg | EMC_CFG_PERIODIC_QRST, in emc_prepare_timing_change() 692 emc->regs + EMC_CFG); in emc_prepare_timing_change() 719 val = !!(emc->emc_cfg & EMC_CFG_PERIODIC_QRST); in emc_prepare_timing_change() 722 emc->emc_cfg |= EMC_CFG_PERIODIC_QRST; in emc_prepare_timing_change() [all …]
|
H A D | tegra210-emc-cc-r21021.c | 245 u32 emc_cfg, emc_cfg_o, emc_cfg_update, value; in tegra210_emc_r21021_periodic_compensation() local 265 emc_cfg_o = emc_readl(emc, EMC_CFG); in tegra210_emc_r21021_periodic_compensation() 266 emc_cfg = emc_cfg_o & ~(EMC_CFG_DYN_SELF_REF | in tegra210_emc_r21021_periodic_compensation() 274 emc_writel(emc, emc_cfg, EMC_CFG); in tegra210_emc_r21021_periodic_compensation() 317 emc_writel(emc, emc_cfg_o, EMC_CFG); in tegra210_emc_r21021_periodic_compensation() 363 u32 emc_auto_cal_config, auto_cal_en, emc_cfg, emc_sel_dpd_ctrl; in tegra210_emc_r21021_set_clock() local 400 emc_readl(emc, EMC_CFG); in tegra210_emc_r21021_set_clock() 417 emc_cfg = next->burst_regs[EMC_CFG_INDEX]; in tegra210_emc_r21021_set_clock() 418 emc_cfg &= ~(EMC_CFG_DYN_SELF_REF | EMC_CFG_DRAM_ACPD | in tegra210_emc_r21021_set_clock() 472 emc_writel(emc, emc_cfg, EMC_CFG); in tegra210_emc_r21021_set_clock() [all …]
|
H A D | tegra124-emc.c | 39 #define EMC_CFG 0xc macro 456 u32 emc_cfg; member 620 val = readl(emc->regs + EMC_CFG); in tegra_emc_prepare_timing_change() 623 writel(val, emc->regs + EMC_CFG); in tegra_emc_prepare_timing_change() 705 val = timing->emc_cfg & ~EMC_CFG_POWER_FEATURES_MASK; in tegra_emc_prepare_timing_change() 706 emc_ccfifo_writel(emc, val, EMC_CFG); in tegra_emc_prepare_timing_change() 842 if (timing->emc_cfg & EMC_CFG_PWR_MASK) in tegra_emc_complete_timing_change() 843 writel(timing->emc_cfg, emc->regs + EMC_CFG); in tegra_emc_complete_timing_change() 889 timing->emc_cfg = readl(emc->regs + EMC_CFG); in emc_read_current_timing() 960 EMC_READ_PROP(emc_cfg, "nvidia,emc-cfg") in load_one_timing_from_dt()
|
H A D | tegra20-emc.c | 595 u32 emc_cfg, emc_dbg, emc_fbio, emc_adr_cfg; in emc_setup_hw() local 602 emc_cfg = readl_relaxed(emc->regs + EMC_CFG_2); in emc_setup_hw() 608 if (!(emc_cfg & EMC_CLKCHANGE_PD_ENABLE) && in emc_setup_hw() 609 !(emc_cfg & EMC_CLKCHANGE_SR_ENABLE)) { in emc_setup_hw() 616 emc_cfg |= EMC_CLKCHANGE_REQ_ENABLE; in emc_setup_hw() 617 writel_relaxed(emc_cfg, emc->regs + EMC_CFG_2); in emc_setup_hw()
|
H A D | tegra210-emc.h | 26 #define EMC_CFG 0xc macro
|
H A D | tegra210-emc-core.c | 245 EMC_CFG,
|
/linux/arch/arm/mach-tegra/ |
H A D | sleep-tegra30.S | 18 #define EMC_CFG 0xc macro 502 ldr r1, [r0, #EMC_CFG] 504 str r1, [r0, #EMC_CFG] 570 ldr r1, [r5, #0x0] @ restore EMC_CFG 571 str r1, [r0, #EMC_CFG] 592 .word TEGRA_EMC_BASE + EMC_CFG @0x0 603 .word TEGRA_EMC0_BASE + EMC_CFG @0x0 611 .word TEGRA_EMC1_BASE + EMC_CFG @0x20 619 .word TEGRA124_EMC_BASE + EMC_CFG @0x0 831 ldr r1, [r0, #EMC_CFG] [all …]
|
H A D | sleep-tegra20.S | 23 #define EMC_CFG 0xc macro 238 ldr r1, [r0, #EMC_CFG] 240 str r1, [r0, #EMC_CFG]
|
/linux/Documentation/devicetree/bindings/memory-controllers/ |
H A D | nvidia,tegra124-emc.yaml | 104 value of the EMC_CFG register for this set of timings
|