Home
last modified time | relevance | path

Searched full:emc_cfg (Results 1 – 9 of 9) sorted by relevance

/linux/drivers/memory/tegra/
H A Dtegra30-emc.c44 #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 Dtegra210-emc-cc-r21021.c245 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 Dtegra124-emc.c39 #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 Dtegra20-emc.c595 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 Dtegra210-emc.h26 #define EMC_CFG 0xc macro
H A Dtegra210-emc-core.c245 EMC_CFG,
/linux/arch/arm/mach-tegra/
H A Dsleep-tegra30.S18 #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 Dsleep-tegra20.S23 #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 Dnvidia,tegra124-emc.yaml104 value of the EMC_CFG register for this set of timings