memory: atmel-sdramc: remove the driver
Subsystems (4)
PATCH v2 1/1 memory: atmel-sdramc: remove the driver
Driver does only clock request + enable for DDR clocks. DDR clocks are enabled by bootloader and need to stay that way in Linux. To avoid having these clocks disabled by clock subsystem in case there are no Linux consumers for them the clocks were marked as critical in clock drivers (in commit 68b3b6f1773d ("clk: at91: mark ddr clocks as critical")). With this, there is no need to have a separate driver that only does clock request + enable.
---
Changes in v2:
- remove ATMEL_SDRAMC references in Kconfigs
- the patch was initially part of this series:
https://lore.kernel.org/all/[email protected]/
arch/arm/mach-at91/Kconfig | 4 -- drivers/memory/Kconfig | 11 ------ drivers/memory/Makefile | 1 - drivers/memory/atmel-sdramc.c | 74 ----------------------------------- 4 files changed, 90 deletions(-) delete mode 100644 drivers/memory/atmel-sdramc.c
arch/arm/mach-at91/Kconfig +0 -4
@@ -97,7 +97,6 @@ config SOC_AT91SAM9 depends on ARCH_MULTI_V5 select ATMEL_AIC_IRQ select ATMEL_PM if PM - select ATMEL_SDRAMC select CPU_ARM926T select HAVE_AT91_SMD select HAVE_AT91_USB_CLK
@@ -131,7 +130,6 @@ config SOC_SAM9X60 depends on ARCH_MULTI_V5 select ATMEL_AIC5_IRQ select ATMEL_PM if PM - select ATMEL_SDRAMC select CPU_ARM926T select HAVE_AT91_USB_CLK select HAVE_AT91_GENERATED_CLK
@@ -213,7 +211,6 @@ config SOC_SAMA5 bool select ATMEL_AIC5_IRQ select ATMEL_PM if PM - select ATMEL_SDRAMC select MEMORY select SOC_SAM_V7 select SRAM if PM
@@ -234,7 +231,6 @@ config SOC_SAMA7 bool select ARM_GIC select ATMEL_PM if PM - select ATMEL_SDRAMC select MEMORY select SOC_SAM_V7 select SRAM if PM
drivers/memory/Kconfig +0 -11
@@ -30,17 +30,6 @@ config ARM_PL172_MPMC If you have an embedded system with an AMBA bus and a PL172 controller, say Y or M here. -config ATMEL_SDRAMC - bool "Atmel (Multi-port DDR-)SDRAM Controller" - default y if ARCH_AT91 - depends on ARCH_AT91 || COMPILE_TEST - depends on OF - help - This driver is for Atmel SDRAM Controller or Atmel Multi-port - DDR-SDRAM Controller available on Atmel AT91SAM9 and SAMA5 SoCs. - Starting with the at91sam9g45, this controller supports SDR, DDR and - LP-DDR memories. - config ATMEL_EBI bool "Atmel EBI driver" default y if ARCH_AT91
drivers/memory/Makefile +0 -1
@@ -8,7 +8,6 @@ ifeq ($(CONFIG_DDR),y) obj-$(CONFIG_OF) += of_memory.o endif obj-$(CONFIG_ARM_PL172_MPMC) += pl172.o -obj-$(CONFIG_ATMEL_SDRAMC) += atmel-sdramc.o obj-$(CONFIG_ATMEL_EBI) += atmel-ebi.o obj-$(CONFIG_BRCMSTB_DPFE) += brcmstb_dpfe.o obj-$(CONFIG_BRCMSTB_MEMC) += brcmstb_memc.o
drivers/memory/atmel-sdramc.c deleted +0 -74
74 lines not on this page · raw message
Signature · 1 line
2.34.1
Krzysztof Kozlowski
AppliedQuoted 9 lines · Claudiu Beznea
Driver does only clock request + enable for DDR clocks. DDR clocks are enabled by bootloader and need to stay that way in Linux. To avoid having these clocks disabled by clock subsystem in case there are no Linux consumers for them the clocks were marked as critical in clock drivers (in commit
68b3b6f1773d("clk: at91: mark ddr clocks as critical")). With this, there is no need to have a separate driver that only does clock request + enable.[...]
Applied, thanks!
[1/1] memory: atmel-sdramc: remove the driver
https://git.kernel.org/krzk/linux-mem-ctrl/c/d3369a4b6f0164b8869a097547846ed4e5c9c47f
Best regards,
Signature · 1 line
Krzysztof Kozlowski <[email protected]>