|
| 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 |
1 | 19 | --- a/drivers/staging/Kconfig |
2 | 20 | +++ 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" |
4 | 22 |
|
5 | 23 | source "drivers/staging/vme_user/Kconfig" |
6 | 24 |
|
7 | 25 | +source "drivers/staging/photonicat-pm/Kconfig" |
8 | 26 | + |
| 27 | + source "drivers/staging/gpib/Kconfig" |
| 28 | + |
9 | 29 | endif # STAGING |
| 30 | +diff --git a/drivers/staging/Makefile b/drivers/staging/Makefile |
| 31 | +index e681e403509c..93c86d551601 100644 |
10 | 32 | --- a/drivers/staging/Makefile |
11 | 33 | +++ 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/ |
13 | 36 | obj-$(CONFIG_BCM2835_VCHIQ) += vc04_services/ |
14 | 37 | obj-$(CONFIG_XIL_AXIS_FIFO) += axis-fifo/ |
15 | | - obj-$(CONFIG_FIELDBUS_DEV) += fieldbus/ |
16 | 38 | +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 |
17 | 43 | --- /dev/null |
18 | 44 | +++ b/drivers/staging/photonicat-pm/Kconfig |
19 | | -@@ -0,0 +1,14 @@ |
| 45 | +@@ -0,0 +1,13 @@ |
20 | 46 | +# SPDX-License-Identifier: GPL-2.0 |
21 | 47 | +config PHOTONICAT_PM |
22 | 48 | + tristate "photonicat power manager" |
|
30 | 56 | + help |
31 | 57 | + Power manager for photonicat board. Unless you have the platform, |
32 | 58 | + 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 |
34 | 63 | --- /dev/null |
35 | 64 | +++ b/drivers/staging/photonicat-pm/Makefile |
36 | 65 | @@ -0,0 +1 @@ |
37 | 66 | +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 |
38 | 71 | --- /dev/null |
39 | 72 | +++ b/drivers/staging/photonicat-pm/photonicat-pm.c |
40 | 73 | @@ -0,0 +1,1526 @@ |
|
1564 | 1597 | +MODULE_AUTHOR("Kyosuke Nekoyashiki <[email protected]>"); |
1565 | 1598 | +MODULE_LICENSE("GPL v2"); |
1566 | 1599 | +MODULE_ALIAS("platform:photonicat-pm"); |
| 1600 | +-- |
| 1601 | +2.47.3 |
| 1602 | + |
0 commit comments