Skip to content

Commit d3369a4

Browse files
claudiubezneakrzk
authored andcommitted
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 68b3b6f ("clk: at91: mark ddr clocks as critical")). With this, there is no need to have a separate driver that only does clock request + enable. Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> Link: https://lore.kernel.org/r/20230516072405.2696225-1-claudiu.beznea@microchip.com Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
1 parent 1d9e93f commit d3369a4

4 files changed

Lines changed: 0 additions & 90 deletions

File tree

arch/arm/mach-at91/Kconfig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ config SOC_AT91SAM9
9797
depends on ARCH_MULTI_V5
9898
select ATMEL_AIC_IRQ
9999
select ATMEL_PM if PM
100-
select ATMEL_SDRAMC
101100
select CPU_ARM926T
102101
select HAVE_AT91_SMD
103102
select HAVE_AT91_USB_CLK
@@ -131,7 +130,6 @@ config SOC_SAM9X60
131130
depends on ARCH_MULTI_V5
132131
select ATMEL_AIC5_IRQ
133132
select ATMEL_PM if PM
134-
select ATMEL_SDRAMC
135133
select CPU_ARM926T
136134
select HAVE_AT91_USB_CLK
137135
select HAVE_AT91_GENERATED_CLK
@@ -213,7 +211,6 @@ config SOC_SAMA5
213211
bool
214212
select ATMEL_AIC5_IRQ
215213
select ATMEL_PM if PM
216-
select ATMEL_SDRAMC
217214
select MEMORY
218215
select SOC_SAM_V7
219216
select SRAM if PM
@@ -234,7 +231,6 @@ config SOC_SAMA7
234231
bool
235232
select ARM_GIC
236233
select ATMEL_PM if PM
237-
select ATMEL_SDRAMC
238234
select MEMORY
239235
select SOC_SAM_V7
240236
select SRAM if PM

drivers/memory/Kconfig

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,6 @@ config ARM_PL172_MPMC
3030
If you have an embedded system with an AMBA bus and a PL172
3131
controller, say Y or M here.
3232

33-
config ATMEL_SDRAMC
34-
bool "Atmel (Multi-port DDR-)SDRAM Controller"
35-
default y if ARCH_AT91
36-
depends on ARCH_AT91 || COMPILE_TEST
37-
depends on OF
38-
help
39-
This driver is for Atmel SDRAM Controller or Atmel Multi-port
40-
DDR-SDRAM Controller available on Atmel AT91SAM9 and SAMA5 SoCs.
41-
Starting with the at91sam9g45, this controller supports SDR, DDR and
42-
LP-DDR memories.
43-
4433
config ATMEL_EBI
4534
bool "Atmel EBI driver"
4635
default y if ARCH_AT91

drivers/memory/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ ifeq ($(CONFIG_DDR),y)
88
obj-$(CONFIG_OF) += of_memory.o
99
endif
1010
obj-$(CONFIG_ARM_PL172_MPMC) += pl172.o
11-
obj-$(CONFIG_ATMEL_SDRAMC) += atmel-sdramc.o
1211
obj-$(CONFIG_ATMEL_EBI) += atmel-ebi.o
1312
obj-$(CONFIG_BRCMSTB_DPFE) += brcmstb_dpfe.o
1413
obj-$(CONFIG_BRCMSTB_MEMC) += brcmstb_memc.o

drivers/memory/atmel-sdramc.c

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

0 commit comments

Comments
 (0)