aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Hung2020-09-07 16:25:06 +0800
committerTom Rini2020-10-08 10:58:33 -0400
commit5d457f8057962fbd2ae90826fe80b4039f2dba71 (patch)
tree51c8de183f30ef5681fb3e6e178b178e9a4518f7
parenta58d86db46456c4e14d4d140e419c4c5999fb2f8 (diff)
ram: move aspeed ram driver into drivers/ directory
to improve the maintainability. It is more easier to modify and add configurations of the driver in the centralized ram driver directory. Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com> Reviewed-by: Ryan Chen <ryan_chen@aspeedtech.com>
-rw-r--r--arch/arm/mach-aspeed/ast2500/Makefile2
-rw-r--r--drivers/ram/Makefile1
-rw-r--r--drivers/ram/aspeed/Makefile3
-rw-r--r--drivers/ram/aspeed/sdram_ast2500.c (renamed from arch/arm/mach-aspeed/ast2500/sdram_ast2500.c)0
4 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm/mach-aspeed/ast2500/Makefile b/arch/arm/mach-aspeed/ast2500/Makefile
index 4c27c8fc465..db70432ad0d 100644
--- a/arch/arm/mach-aspeed/ast2500/Makefile
+++ b/arch/arm/mach-aspeed/ast2500/Makefile
@@ -1,3 +1,3 @@
obj-y += lowlevel_init.o
obj-y += board_common.o
-obj-y += clk_ast2500.o sdram_ast2500.o
+obj-y += clk_ast2500.o
diff --git a/drivers/ram/Makefile b/drivers/ram/Makefile
index d685a579a0f..209a78c06f5 100644
--- a/drivers/ram/Makefile
+++ b/drivers/ram/Makefile
@@ -14,6 +14,7 @@ obj-$(CONFIG_ARCH_ROCKCHIP) += rockchip/
obj-$(CONFIG_K3_AM654_DDRSS) += k3-am654-ddrss.o
obj-$(CONFIG_ARCH_MEDIATEK) += mediatek/
+obj-$(CONFIG_ARCH_ASPEED) += aspeed/
obj-$(CONFIG_K3_J721E_DDRSS) += k3-j721e/
obj-$(CONFIG_IMXRT_SDRAM) += imxrt_sdram.o
diff --git a/drivers/ram/aspeed/Makefile b/drivers/ram/aspeed/Makefile
new file mode 100644
index 00000000000..af604f8a4b0
--- /dev/null
+++ b/drivers/ram/aspeed/Makefile
@@ -0,0 +1,3 @@
+# SPDX-License-Identifier: GPL-2.0+
+#
+obj-$(CONFIG_ASPEED_AST2500) += sdram_ast2500.o \ No newline at end of file
diff --git a/arch/arm/mach-aspeed/ast2500/sdram_ast2500.c b/drivers/ram/aspeed/sdram_ast2500.c
index 8536a70a19d..8536a70a19d 100644
--- a/arch/arm/mach-aspeed/ast2500/sdram_ast2500.c
+++ b/drivers/ram/aspeed/sdram_ast2500.c