Skip to content

Commit 7b5ee8d

Browse files
qzedjwrdegoede
authored andcommitted
platform/surface: aggregator_registry: Add platform profile device
Add the SSAM platform profile device to the SSAM device registry. This device is accessible under the thermal subsystem (TC=0x03) and needs to be registered for all Surface models. Signed-off-by: Maximilian Luz <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Hans de Goede <[email protected]>
1 parent 1759092 commit 7b5ee8d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

drivers/platform/surface/surface_aggregator_registry.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,16 @@ static const struct software_node ssam_node_bat_sb3base = {
6565
.parent = &ssam_node_hub_base,
6666
};
6767

68+
/* Platform profile / performance-mode device. */
69+
static const struct software_node ssam_node_tmp_pprof = {
70+
.name = "ssam:01:03:01:00:01",
71+
.parent = &ssam_node_root,
72+
};
73+
6874
/* Devices for Surface Book 2. */
6975
static const struct software_node *ssam_node_group_sb2[] = {
7076
&ssam_node_root,
77+
&ssam_node_tmp_pprof,
7178
NULL,
7279
};
7380

@@ -78,18 +85,21 @@ static const struct software_node *ssam_node_group_sb3[] = {
7885
&ssam_node_bat_ac,
7986
&ssam_node_bat_main,
8087
&ssam_node_bat_sb3base,
88+
&ssam_node_tmp_pprof,
8189
NULL,
8290
};
8391

8492
/* Devices for Surface Laptop 1. */
8593
static const struct software_node *ssam_node_group_sl1[] = {
8694
&ssam_node_root,
95+
&ssam_node_tmp_pprof,
8796
NULL,
8897
};
8998

9099
/* Devices for Surface Laptop 2. */
91100
static const struct software_node *ssam_node_group_sl2[] = {
92101
&ssam_node_root,
102+
&ssam_node_tmp_pprof,
93103
NULL,
94104
};
95105

@@ -98,6 +108,7 @@ static const struct software_node *ssam_node_group_sl3[] = {
98108
&ssam_node_root,
99109
&ssam_node_bat_ac,
100110
&ssam_node_bat_main,
111+
&ssam_node_tmp_pprof,
101112
NULL,
102113
};
103114

@@ -106,18 +117,21 @@ static const struct software_node *ssam_node_group_slg1[] = {
106117
&ssam_node_root,
107118
&ssam_node_bat_ac,
108119
&ssam_node_bat_main,
120+
&ssam_node_tmp_pprof,
109121
NULL,
110122
};
111123

112124
/* Devices for Surface Pro 5. */
113125
static const struct software_node *ssam_node_group_sp5[] = {
114126
&ssam_node_root,
127+
&ssam_node_tmp_pprof,
115128
NULL,
116129
};
117130

118131
/* Devices for Surface Pro 6. */
119132
static const struct software_node *ssam_node_group_sp6[] = {
120133
&ssam_node_root,
134+
&ssam_node_tmp_pprof,
121135
NULL,
122136
};
123137

@@ -126,6 +140,7 @@ static const struct software_node *ssam_node_group_sp7[] = {
126140
&ssam_node_root,
127141
&ssam_node_bat_ac,
128142
&ssam_node_bat_main,
143+
&ssam_node_tmp_pprof,
129144
NULL,
130145
};
131146

0 commit comments

Comments
 (0)