Skip to contentSkip to conversation

move: rockchip: move clock drivers into a subdirectory

PATCH New Heiko Stuebner 2 participants 4 messages Jul 29, 2016 – Aug 4, 2016

Subsystems (2)
lore
Share & tools
lore

Heiko Stuebner

author maintainer
#0 lore raw

PATCH 1/1 move: rockchip: move clock drivers into a subdirectory

With the number of Rockchip clock drivers increasing, don't clutter up the core drivers/clk directory with them and instead move them out of the way into a separate subdirectory.

---
 drivers/clk/Makefile                    | 3 +--
 drivers/clk/rockchip/Makefile           | 8 ++++++++
 drivers/clk/{ => rockchip}/clk_rk3036.c | 0
 drivers/clk/{ => rockchip}/clk_rk3288.c | 0
 4 files changed, 9 insertions(+), 2 deletions(-)
 create mode 100644 drivers/clk/rockchip/Makefile
 rename drivers/clk/{ => rockchip}/clk_rk3036.c (100%)
 rename drivers/clk/{ => rockchip}/clk_rk3288.c (100%)
drivers/clk/Makefile +1 -2
index f7a8891..3cbdd54 100644
@@ -6,8 +6,7 @@
 #
 
 obj-$(CONFIG_CLK) += clk-uclass.o clk_fixed_rate.o
-obj-$(CONFIG_ROCKCHIP_RK3036) += clk_rk3036.o
-obj-$(CONFIG_ROCKCHIP_RK3288) += clk_rk3288.o
+obj-$(CONFIG_ARCH_ROCKCHIP) += rockchip/
 obj-$(CONFIG_SANDBOX) += clk_sandbox.o
 obj-$(CONFIG_SANDBOX) += clk_sandbox_test.o
 obj-$(CONFIG_MACH_PIC32) += clk_pic32.o
drivers/clk/rockchip/Makefile new file +8 -0
new file mode 100644
index 0000000..acfd858
@@ -0,0 +1,8 @@
+#
+# Copyright (c) 2016 Google, Inc
+#
+# SPDX-License-Identifier:      GPL-2.0+
+#
+
+obj-$(CONFIG_ROCKCHIP_RK3036) += clk_rk3036.o
+obj-$(CONFIG_ROCKCHIP_RK3288) += clk_rk3288.o
drivers/clk/rockchip/clk_rk3036.c renamed from drivers/clk/clk_rk3036.c +0 -0
similarity index 100%
rename from drivers/clk/clk_rk3036.c
rename to drivers/clk/rockchip/clk_rk3036.c
drivers/clk/rockchip/clk_rk3288.c renamed from drivers/clk/clk_rk3288.c +0 -0
similarity index 100%
rename from drivers/clk/clk_rk3288.c
rename to drivers/clk/rockchip/clk_rk3288.c
Signature · 1 line
2.6.4
#1 lore raw

PATCH 1/1 move: rockchip: move clock drivers into a subdirectory

Quoted 7 lines · Heiko Stuebner

With the number of Rockchip clock drivers increasing, don't clutter up the core drivers/clk directory with them and instead move them out of the way into a separate subdirectory.

Quoted 9 lines
---
 drivers/clk/Makefile                    | 3 +--
 drivers/clk/rockchip/Makefile           | 8 ++++++++
 drivers/clk/{ => rockchip}/clk_rk3036.c | 0
 drivers/clk/{ => rockchip}/clk_rk3288.c | 0
 4 files changed, 9 insertions(+), 2 deletions(-)
 create mode 100644 drivers/clk/rockchip/Makefile
 rename drivers/clk/{ => rockchip}/clk_rk3036.c (100%)
 rename drivers/clk/{ => rockchip}/clk_rk3288.c (100%)

Isn't this a v2 patch? Anyway:

author maintainer
#2 lore raw

PATCH 1/1 move: rockchip: move clock drivers into a subdirectory

Am Freitag, 29. Juli 2016, 07:51:14 schrieb Simon Glass:

Quoted 18 lines · Heiko Stuebner
Quoted 8 lines

With the number of Rockchip clock drivers increasing, don't clutter up the core drivers/clk directory with them and instead move them out of the way into a separate subdirectory.

---

Quoted 8 lines
 drivers/clk/Makefile                    | 3 +--
 drivers/clk/rockchip/Makefile           | 8 ++++++++
 drivers/clk/{ => rockchip}/clk_rk3036.c | 0
 drivers/clk/{ => rockchip}/clk_rk3288.c | 0
 4 files changed, 9 insertions(+), 2 deletions(-)
 create mode 100644 drivers/clk/rockchip/Makefile
 rename drivers/clk/{ => rockchip}/clk_rk3036.c (100%)
 rename drivers/clk/{ => rockchip}/clk_rk3288.c (100%)
Quoted 1 line

Isn't this a v2 patch? Anyway:

it seems I was in a bit of a rush, so yeah, this could also be labeled v2, although the only change is the "-M" for git format-patch. When rebasing on top of your rockchip-master, no changes were needed

Quoted 1 line
#3 lore raw

PATCH 1/1 move: rockchip: move clock drivers into a subdirectory

Quoted 19 lines · Heiko Stuebner

Am Freitag, 29. Juli 2016, 07:51:14 schrieb Simon Glass:

Quoted 18 lines · Heiko Stuebner
Quoted 16 lines

With the number of Rockchip clock drivers increasing, don't clutter up the core drivers/clk directory with them and instead move them out of the way into a separate subdirectory.

---

 drivers/clk/Makefile                    | 3 +--
 drivers/clk/rockchip/Makefile           | 8 ++++++++
 drivers/clk/{ => rockchip}/clk_rk3036.c | 0
 drivers/clk/{ => rockchip}/clk_rk3288.c | 0
 4 files changed, 9 insertions(+), 2 deletions(-)
 create mode 100644 drivers/clk/rockchip/Makefile
 rename drivers/clk/{ => rockchip}/clk_rk3036.c (100%)
 rename drivers/clk/{ => rockchip}/clk_rk3288.c (100%)
Quoted 9 lines
Quoted 1 line

Isn't this a v2 patch? Anyway:

it seems I was in a bit of a rush, so yeah, this could also be labeled v2, although the only change is the "-M" for git format-patch. When rebasing on top of your rockchip-master, no changes were needed

Quoted 1 line

Fixed up for rk3399 support, and:
Applied to u-boot-rockchip, thanks!