ram: move aspeed ram driver into drivers/ directory
authorDylan Hung <dylan_hung@aspeedtech.com>
Mon, 7 Sep 2020 08:25:06 +0000 (16:25 +0800)
committerTom Rini <trini@konsulko.com>
Thu, 8 Oct 2020 14:58:33 +0000 (10:58 -0400)
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>
arch/arm/mach-aspeed/ast2500/Makefile
drivers/ram/Makefile
drivers/ram/aspeed/Makefile [new file with mode: 0644]
drivers/ram/aspeed/sdram_ast2500.c [moved from arch/arm/mach-aspeed/ast2500/sdram_ast2500.c with 100% similarity]

index 4c27c8f..db70432 100644 (file)
@@ -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
index d685a57..209a78c 100644 (file)
@@ -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 (file)
index 0000000..af604f8
--- /dev/null
@@ -0,0 +1,3 @@
+# SPDX-License-Identifier: GPL-2.0+
+#
+obj-$(CONFIG_ASPEED_AST2500) += sdram_ast2500.o
\ No newline at end of file