From: Dylan Hung <dylan_hung@aspeedtech.com>
To: u-boot@lists.denx.de
Subject: [PATCH 1/2] ram: move aspeed ram driver into drivers/ directory
Date: Mon, 7 Sep 2020 16:25:06 +0800 [thread overview]
Message-ID: <20200907082507.22290-2-dylan_hung@aspeedtech.com> (raw)
In-Reply-To: <20200907082507.22290-1-dylan_hung@aspeedtech.com>
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>
---
arch/arm/mach-aspeed/ast2500/Makefile | 2 +-
drivers/ram/Makefile | 1 +
drivers/ram/aspeed/Makefile | 3 +++
.../mach-aspeed/ast2500 => drivers/ram/aspeed}/sdram_ast2500.c | 0
4 files changed, 5 insertions(+), 1 deletion(-)
create mode 100644 drivers/ram/aspeed/Makefile
rename {arch/arm/mach-aspeed/ast2500 => drivers/ram/aspeed}/sdram_ast2500.c (100%)
diff --git a/arch/arm/mach-aspeed/ast2500/Makefile b/arch/arm/mach-aspeed/ast2500/Makefile
index 4c27c8fc46..db70432ad0 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 769c9d6218..a57d506752 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 0000000000..af604f8a4b
--- /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
similarity index 100%
rename from arch/arm/mach-aspeed/ast2500/sdram_ast2500.c
rename to drivers/ram/aspeed/sdram_ast2500.c
--
2.17.1
next prev parent reply other threads:[~2020-09-07 8:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-07 8:25 [PATCH 0/2] Refactor ASPEED AST2500 DDR SDRAM driver structure Dylan Hung
2020-09-07 8:25 ` Dylan Hung [this message]
2020-09-21 2:42 ` [PATCH 1/2] ram: move aspeed ram driver into drivers/ directory Ryan Chen
2020-10-09 13:00 ` Tom Rini
2020-09-07 8:25 ` [PATCH 2/2] ram: add ddr4 dual x8 configuration Dylan Hung
2020-09-21 2:42 ` Ryan Chen
2020-10-09 13:00 ` Tom Rini
-- strict thread matches above, loose matches on Subject: below --
2020-09-07 5:23 [PATCH 0/2] Refactor ASPEED AST2500 DDR SDRAM driver structure Dylan Hung
2020-09-07 5:23 ` [PATCH 1/2] ram: move aspeed ram driver into drivers/ directory Dylan Hung
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200907082507.22290-2-dylan_hung@aspeedtech.com \
--to=dylan_hung@aspeedtech.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox