Skip to content

Commit c7091fd

Browse files
committed
Merge tag 'memory-controller-drv-7.1' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux-mem-ctrl into soc/drivers
Memory controller drivers for v7.1 1. TegraMC: - Few fixes for older issues - missing clock on Tegra264, missing enabling of DLL for Tegra30 and Tegra124. - Simplify the code in a few places. - Rework handling interrupts on different variants and add support for error logging on Tegra 264. 2. Drop Baikal SoC bt1-l2-ctl driver, because SoC support is being removed tree-wide. * tag 'memory-controller-drv-7.1' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux-mem-ctrl: memory: tegra: Add MC error logging support for Tegra264 memory: tegra: Prepare for supporting multiple intmask registers memory: tegra: Group SoC specific fields memory: tegra: Add support for multiple IRQs memory: tegra: Group register and fields memory: tegra: Group error handling related registers memory: tegra-mc: Use %pe format memory: tegra-mc: Simplify printing PTR_ERR with dev_err_probe memory: tegra-mc: Drop tegra_mc_setup_latency_allowance() return value memory: renesas-rpc-if: Simplify printing PTR_ERR with dev_err_probe memory: brcmstb_memc: Expand LPDDR4 check to cover for LPDDR5 dt-bindings: cache: bt1-l2-ctl: Remove unused bindings memory: bt1-l2-ctl: Remove not-going-to-be-supported code for Baikal SoC memory: tegra30-emc: Fix dll_change check memory: tegra124-emc: Fix dll_change check memory: tegra: Add support for DBB clock on Tegra264 Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents fb5fee1 + 8216906 commit c7091fd

21 files changed

Lines changed: 808 additions & 564 deletions

File tree

Documentation/devicetree/bindings/cache/baikal,bt1-l2-ctl.yaml

Lines changed: 0 additions & 63 deletions
This file was deleted.

drivers/memory/Kconfig

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,6 @@ config BRCMSTB_MEMC
6464
controller and specifically control the Self Refresh Power Down
6565
(SRPD) inactivity timeout.
6666

67-
config BT1_L2_CTL
68-
bool "Baikal-T1 CM2 L2-RAM Cache Control Block"
69-
depends on MIPS_BAIKAL_T1 || COMPILE_TEST
70-
select MFD_SYSCON
71-
help
72-
Baikal-T1 CPU is based on the MIPS P5600 Warrior IP-core. The CPU
73-
resides Coherency Manager v2 with embedded 1MB L2-cache. It's
74-
possible to tune the L2 cache performance up by setting the data,
75-
tags and way-select latencies of RAM access. This driver provides a
76-
dt properties-based and sysfs interface for it.
77-
7867
config TI_AEMIF
7968
tristate "Texas Instruments AEMIF driver"
8069
depends on ARCH_DAVINCI || ARCH_KEYSTONE || COMPILE_TEST

drivers/memory/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ obj-$(CONFIG_ARM_PL172_MPMC) += pl172.o
1111
obj-$(CONFIG_ATMEL_EBI) += atmel-ebi.o
1212
obj-$(CONFIG_BRCMSTB_DPFE) += brcmstb_dpfe.o
1313
obj-$(CONFIG_BRCMSTB_MEMC) += brcmstb_memc.o
14-
obj-$(CONFIG_BT1_L2_CTL) += bt1-l2-ctl.o
1514
obj-$(CONFIG_TI_AEMIF) += ti-aemif.o
1615
obj-$(CONFIG_TI_EMIF) += emif.o
1716
obj-$(CONFIG_OMAP_GPMC) += omap-gpmc.o

drivers/memory/brcmstb_memc.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
#define REG_MEMC_CNTRLR_CONFIG 0x00
1616
#define CNTRLR_CONFIG_LPDDR4_SHIFT 5
17+
#define CNTRLR_CONFIG_LPDDR5_SHIFT 6
1718
#define CNTRLR_CONFIG_MASK 0xf
1819
#define REG_MEMC_SRPD_CFG_21 0x20
1920
#define REG_MEMC_SRPD_CFG_20 0x34
@@ -34,14 +35,15 @@ struct brcmstb_memc {
3435
u32 srpd_offset;
3536
};
3637

37-
static int brcmstb_memc_uses_lpddr4(struct brcmstb_memc *memc)
38+
static int brcmstb_memc_uses_lpddr45(struct brcmstb_memc *memc)
3839
{
3940
void __iomem *config = memc->ddr_ctrl + REG_MEMC_CNTRLR_CONFIG;
4041
u32 reg;
4142

4243
reg = readl_relaxed(config) & CNTRLR_CONFIG_MASK;
4344

44-
return reg == CNTRLR_CONFIG_LPDDR4_SHIFT;
45+
return reg == CNTRLR_CONFIG_LPDDR4_SHIFT ||
46+
reg == CNTRLR_CONFIG_LPDDR5_SHIFT;
4547
}
4648

4749
static int brcmstb_memc_srpd_config(struct brcmstb_memc *memc,
@@ -95,7 +97,7 @@ static ssize_t srpd_store(struct device *dev, struct device_attribute *attr,
9597
* dynamic tuning process will also get affected by the inactivity
9698
* timeout, thus making it non functional.
9799
*/
98-
if (brcmstb_memc_uses_lpddr4(memc))
100+
if (brcmstb_memc_uses_lpddr45(memc))
99101
return -EOPNOTSUPP;
100102

101103
ret = kstrtouint(buf, 10, &val);

0 commit comments

Comments
 (0)