Skip to content

Commit 89d6ede

Browse files
committed
board: photonicat2: rebase photonicat power manager driver
1 parent aae135b commit 89d6ede

File tree

1 file changed

+41
-5
lines changed

1 file changed

+41
-5
lines changed

patch/kernel/archive/rockchip64-6.17/board-photonicat2-add-photonicat-pm-driver.patch

Lines changed: 41 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,48 @@
1+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2+
From: HackingGate <[email protected]>
3+
Date: Sat, 4 Oct 2025 12:37:18 +0900
4+
Subject: [PATCH] feat: add photonicat power management driver
5+
6+
---
7+
drivers/staging/Kconfig | 2 +
8+
drivers/staging/Makefile | 1 +
9+
drivers/staging/photonicat-pm/Kconfig | 13 +
10+
drivers/staging/photonicat-pm/Makefile | 1 +
11+
drivers/staging/photonicat-pm/photonicat-pm.c | 1526 +++++++++++++++++
12+
5 files changed, 1543 insertions(+)
13+
create mode 100644 drivers/staging/photonicat-pm/Kconfig
14+
create mode 100644 drivers/staging/photonicat-pm/Makefile
15+
create mode 100644 drivers/staging/photonicat-pm/photonicat-pm.c
16+
17+
diff --git a/drivers/staging/Kconfig b/drivers/staging/Kconfig
18+
index 075e775d3868..72901a0be577 100644
119
--- a/drivers/staging/Kconfig
220
+++ b/drivers/staging/Kconfig
3-
@@ -64,4 +64,6 @@ source "drivers/staging/fieldbus/Kconfig"
21+
@@ -48,6 +48,8 @@ source "drivers/staging/axis-fifo/Kconfig"
422

523
source "drivers/staging/vme_user/Kconfig"
624

725
+source "drivers/staging/photonicat-pm/Kconfig"
826
+
27+
source "drivers/staging/gpib/Kconfig"
28+
929
endif # STAGING
30+
diff --git a/drivers/staging/Makefile b/drivers/staging/Makefile
31+
index e681e403509c..93c86d551601 100644
1032
--- a/drivers/staging/Makefile
1133
+++ b/drivers/staging/Makefile
12-
@@ -21,3 +21,4 @@ obj-$(CONFIG_GREYBUS) += greybus/
34+
@@ -13,4 +13,5 @@ obj-$(CONFIG_MOST) += most/
35+
obj-$(CONFIG_GREYBUS) += greybus/
1336
obj-$(CONFIG_BCM2835_VCHIQ) += vc04_services/
1437
obj-$(CONFIG_XIL_AXIS_FIFO) += axis-fifo/
15-
obj-$(CONFIG_FIELDBUS_DEV) += fieldbus/
1638
+obj-$(CONFIG_PHOTONICAT_PM) += photonicat-pm/
39+
obj-$(CONFIG_GPIB) += gpib/
40+
diff --git a/drivers/staging/photonicat-pm/Kconfig b/drivers/staging/photonicat-pm/Kconfig
41+
new file mode 100644
42+
index 000000000000..0563a2e0c7d5
1743
--- /dev/null
1844
+++ b/drivers/staging/photonicat-pm/Kconfig
19-
@@ -0,0 +1,14 @@
45+
@@ -0,0 +1,13 @@
2046
+# SPDX-License-Identifier: GPL-2.0
2147
+config PHOTONICAT_PM
2248
+ tristate "photonicat power manager"
@@ -30,11 +56,18 @@
3056
+ help
3157
+ Power manager for photonicat board. Unless you have the platform,
3258
+ you will want to say 'N'.
33-
+
59+
\ No newline at end of file
60+
diff --git a/drivers/staging/photonicat-pm/Makefile b/drivers/staging/photonicat-pm/Makefile
61+
new file mode 100644
62+
index 000000000000..9e432423428b
3463
--- /dev/null
3564
+++ b/drivers/staging/photonicat-pm/Makefile
3665
@@ -0,0 +1 @@
3766
+obj-$(CONFIG_PHOTONICAT_PM) += photonicat-pm.o
67+
\ No newline at end of file
68+
diff --git a/drivers/staging/photonicat-pm/photonicat-pm.c b/drivers/staging/photonicat-pm/photonicat-pm.c
69+
new file mode 100644
70+
index 000000000000..b6cffa81aaf9
3871
--- /dev/null
3972
+++ b/drivers/staging/photonicat-pm/photonicat-pm.c
4073
@@ -0,0 +1,1526 @@
@@ -1564,3 +1597,6 @@
15641597
+MODULE_AUTHOR("Kyosuke Nekoyashiki <[email protected]>");
15651598
+MODULE_LICENSE("GPL v2");
15661599
+MODULE_ALIAS("platform:photonicat-pm");
1600+
--
1601+
2.47.3
1602+

0 commit comments

Comments
 (0)