gfch100: add sysmgr stub for chimera
* note to self, this is silly code. It should be a 1-line
change to add a new platform
Change-Id: Ic5d13a6d6612ab13675dd2b6ea4c02a920d5dd50
diff --git a/sysmgr/peripheral/fancontrol.cc b/sysmgr/peripheral/fancontrol.cc
index 8e81fe1..950f9dc 100644
--- a/sysmgr/peripheral/fancontrol.cc
+++ b/sysmgr/peripheral/fancontrol.cc
@@ -236,6 +236,16 @@
temp_overheat : 97,
};
+const FanControlParams FanControl::kGFCH100FanCtrlSocDefaults = {
+ temp_setpt : 0, /* No fan */
+ temp_max : 0,
+ temp_step : 0,
+ duty_cycle_min: 0,
+ duty_cycle_max: 0,
+ pwm_step : 0,
+ temp_overheat : 97,
+ };
+
FanControl::~FanControl() {
Terminate();
}
@@ -323,6 +333,9 @@
case BRUNO_GFLT300:
pfan_ctrl_params_[BRUNO_SOC] = kGFLT300FanCtrlSocDefaults;
break;
+ case BRUNO_GFCH100:
+ pfan_ctrl_params_[BRUNO_SOC] = kGFCH100FanCtrlSocDefaults;
+ break;
case BRUNO_UNKNOWN:
LOG(LS_ERROR) << "Invalid platform type, ignore ... " << platform_;
break;
diff --git a/sysmgr/peripheral/fancontrol.h b/sysmgr/peripheral/fancontrol.h
index 06e8499..a648cef 100644
--- a/sysmgr/peripheral/fancontrol.h
+++ b/sysmgr/peripheral/fancontrol.h
@@ -83,6 +83,8 @@
static const FanControlParams kGFLT110FanCtrlSocDefaults;
static const FanControlParams kGFLT300FanCtrlSocDefaults;
+ static const FanControlParams kGFCH100FanCtrlSocDefaults;
+
explicit FanControl(Platform *platform)
: state_(OFF),
auto_mode_(true),
diff --git a/sysmgr/peripheral/platform.cc b/sysmgr/peripheral/platform.cc
index ba239fd..d120dff 100644
--- a/sysmgr/peripheral/platform.cc
+++ b/sysmgr/peripheral/platform.cc
@@ -21,6 +21,7 @@
Platform("GFLT120", BRUNO_GFLT110, false, false, false),
Platform("GFHD254", BRUNO_GFHD254, false, true, true),
Platform("GFLT300", BRUNO_GFLT300, false, false, false),
+ Platform("GFCH100", BRUNO_GFCH100, false, false, false),
Platform("UNKNOWN PLATFORM", BRUNO_UNKNOWN, false, false, false),
};
diff --git a/sysmgr/peripheral/platform.h b/sysmgr/peripheral/platform.h
index 91a5925..01ea3e8 100644
--- a/sysmgr/peripheral/platform.h
+++ b/sysmgr/peripheral/platform.h
@@ -27,6 +27,7 @@
BRUNO_GFLT110, /* Fiber Jack */
BRUNO_GFHD254, /* Lockdown */
BRUNO_GFLT300, /* Go-Long FiberJack */
+ BRUNO_GFCH100, /* Chimera mm-wave */
BRUNO_UNKNOWN
};