File tree Expand file tree Collapse file tree 10 files changed +1230
-0
lines changed Expand file tree Collapse file tree 10 files changed +1230
-0
lines changed Original file line number Diff line number Diff line change @@ -1936,6 +1936,37 @@ config DEBUG_SPI_INFO
1936
1936
1937
1937
endif # DEBUG_SPI
1938
1938
1939
+ config DEBUG_THERMAL
1940
+ bool "Thermal Debug Features"
1941
+ default n
1942
+ ---help---
1943
+ Enable thermal debug features.
1944
+
1945
+ if DEBUG_THERMAL
1946
+
1947
+ config DEBUG_THERMAL_ERROR
1948
+ bool "Thermal Error Output"
1949
+ default n
1950
+ depends on DEBUG_ERROR
1951
+ ---help---
1952
+ Enable thermal error output to SYSLOG.
1953
+
1954
+ config DEBUG_THERMAL_WARN
1955
+ bool "Thermal Warnings Output"
1956
+ default n
1957
+ depends on DEBUG_WARN
1958
+ ---help---
1959
+ Enable thermal warning output to SYSLOG.
1960
+
1961
+ config DEBUG_THERMAL_INFO
1962
+ bool "Thermal Informational Output"
1963
+ default n
1964
+ depends on DEBUG_INFO
1965
+ ---help---
1966
+ Enable thermal informational output to SYSLOG.
1967
+
1968
+ endif # DEBUG_THERMAL
1969
+
1939
1970
config DEBUG_TIMER
1940
1971
bool "Timer Debug Features"
1941
1972
default n
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ source "drivers/rpmsg/Kconfig"
42
42
source "drivers/rptun/Kconfig"
43
43
source "drivers/sensors/Kconfig"
44
44
source "drivers/serial/Kconfig"
45
+ source "drivers/thermal/Kconfig"
45
46
source "drivers/usbdev/Kconfig"
46
47
source "drivers/usbhost/Kconfig"
47
48
source "drivers/usbmisc/Kconfig"
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ include sensors/Make.defs
63
63
include serial/Make.defs
64
64
include spi/Make.defs
65
65
include syslog/Make.defs
66
+ include thermal/Make.defs
66
67
include timers/Make.defs
67
68
include usbdev/Make.defs
68
69
include usbhost/Make.defs
Original file line number Diff line number Diff line change 46
46
#include <nuttx/serial/uart_ram.h>
47
47
#include <nuttx/syslog/syslog.h>
48
48
#include <nuttx/syslog/syslog_console.h>
49
+ #include <nuttx/thermal.h>
49
50
#include <nuttx/trace.h>
50
51
#include <nuttx/usrsock/usrsock_rpmsg.h>
51
52
#include <nuttx/virtio/virtio.h>
@@ -271,5 +272,9 @@ void drivers_initialize(void)
271
272
optee_register ();
272
273
#endif
273
274
275
+ #ifdef CONFIG_THERMAL
276
+ thermal_init ();
277
+ #endif
278
+
274
279
drivers_trace_end ();
275
280
}
Original file line number Diff line number Diff line change
1
+ #
2
+ # For a description of the syntax of this configuration file,
3
+ # see the file kconfig-language.txt in the NuttX tools repository.
4
+ #
5
+
6
+ menuconfig THERMAL
7
+ bool "Thermal framework"
8
+ default n
9
+ ---help---
10
+ Enable thermal framework.
11
+
12
+ if THERMAL
13
+
14
+ config THERMAL_DEFAULT_GOVERNOR
15
+ string "Thermal default governor name"
16
+ default "step_wise"
17
+ ---help---
18
+ Default governor name.
19
+
20
+ endif # THERMAL
Original file line number Diff line number Diff line change
1
+ ############################################################################
2
+ # drivers/thermal/Make.defs
3
+ #
4
+ # Licensed to the Apache Software Foundation (ASF) under one or more
5
+ # contributor license agreements. See the NOTICE file distributed with
6
+ # this work for additional information regarding copyright ownership. The
7
+ # ASF licenses this file to you under the Apache License, Version 2.0 (the
8
+ # "License"); you may not use this file except in compliance with the
9
+ # License. You may obtain a copy of the License at
10
+ #
11
+ # http://www.apache.org/licenses/LICENSE-2.0
12
+ #
13
+ # Unless required by applicable law or agreed to in writing, software
14
+ # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15
+ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16
+ # License for the specific language governing permissions and limitations
17
+ # under the License.
18
+ #
19
+ ############################################################################
20
+
21
+ # Include thermal sources
22
+
23
+ ifeq ($(CONFIG_THERMAL),y)
24
+
25
+ CSRCS += thermal_core.c
26
+
27
+ DEPPATH += --dep-path thermal
28
+ VPATH += thermal
29
+
30
+ endif
You can’t perform that action at this time.
0 commit comments