forked from Cozmonat/HWSensors
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed installer. Initial GP100 support
- Loading branch information
Showing
264 changed files
with
9,152 additions
and
5,046 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
// | ||
// gp100.cpp | ||
// HWSensors | ||
// | ||
// Created by Natan Zalkin on 17/12/2016. | ||
// | ||
// | ||
|
||
#include "gp100.h" | ||
|
||
#include "nouveau.h" | ||
#include "nv50.h" | ||
#include "nva3.h" | ||
#include "nv84.h" | ||
#include "nvd0.h" | ||
#include "nve0.h" | ||
#include "nouveau_therm.h" | ||
|
||
bool gp100_identify(struct nouveau_device *device) | ||
{ | ||
switch (device->chipset) { | ||
case 0x130: | ||
device->cname = "GP100"; | ||
break; | ||
|
||
case 0x132: | ||
device->cname = "GP102"; | ||
break; | ||
|
||
case 0x134: | ||
device->cname = "GP104"; | ||
break; | ||
|
||
case 0x136: | ||
device->cname = "GP106"; | ||
break; | ||
|
||
default: | ||
nv_fatal(device, "unknown Pascal chipset 0x%x\n", device->chipset); | ||
return false; | ||
} | ||
|
||
return true; | ||
} | ||
|
||
void gp100_init(struct nouveau_device *device) | ||
{ | ||
nvd0_therm_init(device); | ||
|
||
// device->gpio_find = nouveau_gpio_find; | ||
// device->gpio_get = nouveau_gpio_get; | ||
// device->gpio_sense = nvd0_gpio_sense; | ||
device->temp_get = nv84_temp_get; | ||
// device->clocks_get = nve0_clock_read; | ||
// //device->voltage_get = nouveau_voltage_get; | ||
// device->pwm_get = gm107_fan_pwm_get; | ||
// device->fan_pwm_get = nouveau_therm_fan_pwm_get; | ||
// device->fan_rpm_get = nva3_therm_fan_sense; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// gp100.h | ||
// HWSensors | ||
// | ||
// Created by Natan Zalkin on 17/12/2016. | ||
// | ||
// | ||
|
||
#ifndef HWSensors_gp100_hpp | ||
#define HWSensors_gp100_hpp | ||
|
||
bool gp100_identify(struct nouveau_device *device); | ||
void gp100_init(struct nouveau_device *device); | ||
|
||
#endif /* HWSensors_gp100_hpp */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.