diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/init.c | 1 | ||||
-rw-r--r-- | core/sensor.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/core/init.c b/core/init.c index 02bd30c..466a426 100644 --- a/core/init.c +++ b/core/init.c @@ -507,6 +507,7 @@ void __noreturn load_and_boot_kernel(bool is_reboot) * as possible to avoid delay. */ occ_pstates_init(); + occ_sensors_init(); /* Use nvram bootargs over device tree */ cmdline = nvram_query("bootargs"); diff --git a/core/sensor.c b/core/sensor.c index cc5341c..b0d3c5e 100644 --- a/core/sensor.c +++ b/core/sensor.c @@ -29,6 +29,10 @@ static int64_t opal_sensor_read(uint32_t sensor_hndl, int token, switch (sensor_get_family(sensor_hndl)) { case SENSOR_DTS: return dts_sensor_read(sensor_hndl, sensor_data); + case SENSOR_OCC: + return occ_sensor_read(sensor_hndl, sensor_data); + default: + break; } if (platform.sensor_read) |