<p>Renze Nicolai has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/22935">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">superio/f71869ad: Add temperature sensor type<br><br>This patch makes it possible to set the "Temperature Sensor Type Register"<br>at index 6Bh from the devicetree, allowing the use of thermistors instead of<br>BJT type sensors.<br><br>Register documentation (from page 60 of the F71869 datasheet):<br><br>6.6.25 Temperature Sensor Type Register - Index 6Bh<br>Bit 7-4: reserved<br>Bit 3: T3_MODE (0: thermistor, 1: BJT [default])<br>Bit 2: T2_MODE (0: thermistor, 1: BJT [default])<br>Bit 1: T1_MODE (0: thermistor, 1: BJT [default])<br>Bit 0: reserved<br><br>Change-Id: I6af0d93061ec49aec7a9181cdf7affd60fbdca73<br>Signed-off-by: Renze Nicolai <renze@rnplus.nl><br>---<br>M src/superio/fintek/f71869ad/chip.h<br>M src/superio/fintek/f71869ad/f71869ad_hwm.c<br>2 files changed, 4 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/35/22935/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/superio/fintek/f71869ad/chip.h b/src/superio/fintek/f71869ad/chip.h</span><br><span>index 4e4323e..42d451d 100644</span><br><span>--- a/src/superio/fintek/f71869ad/chip.h</span><br><span>+++ b/src/superio/fintek/f71869ad/chip.h</span><br><span>@@ -37,6 +37,7 @@</span><br><span>    uint8_t hwm_fan1_seg2_speed_count;</span><br><span>   uint8_t hwm_fan1_seg3_speed_count;</span><br><span>   uint8_t hwm_fan1_temp_map_sel;</span><br><span style="color: hsl(120, 100%, 40%);">+        uint8_t hwm_temp_sensor_type;</span><br><span> };</span><br><span> </span><br><span> #endif /* SUPERIO_FINTEK_F71869AD_CHIP_H */</span><br><span>diff --git a/src/superio/fintek/f71869ad/f71869ad_hwm.c b/src/superio/fintek/f71869ad/f71869ad_hwm.c</span><br><span>index d253e5f..b0b1a6b 100644</span><br><span>--- a/src/superio/fintek/f71869ad/f71869ad_hwm.c</span><br><span>+++ b/src/superio/fintek/f71869ad/f71869ad_hwm.c</span><br><span>@@ -50,6 +50,7 @@</span><br><span> #define HWM_FAN1_SEG2_SPEED_COUNT  0xAB</span><br><span> #define HWM_FAN1_SEG3_SPEED_COUNT  0xAC</span><br><span> #define HWM_FAN1_TEMP_MAP_SEL      0xAF</span><br><span style="color: hsl(120, 100%, 40%);">+#define HWM_TEMP_SENSOR_TYPE       0x6B</span><br><span> </span><br><span> /* note: multifunc registers need to be tweaked before here */</span><br><span> void f71869ad_hwm_init(struct device *dev)</span><br><span>@@ -97,6 +98,8 @@</span><br><span>    pnp_write_index(port, HWM_FAN1_SEG1_SPEED_COUNT, conf->hwm_fan1_seg1_speed_count);</span><br><span>        pnp_write_index(port, HWM_FAN1_SEG2_SPEED_COUNT, conf->hwm_fan1_seg2_speed_count);</span><br><span>        pnp_write_index(port, HWM_FAN1_SEG3_SPEED_COUNT, conf->hwm_fan1_seg3_speed_count);</span><br><span style="color: hsl(120, 100%, 40%);">+ /* Temperature sensor type */</span><br><span style="color: hsl(120, 100%, 40%);">+ pnp_write_index(port, HWM_TEMP_SENSOR_TYPE, conf->hwm_temp_sensor_type);</span><br><span> </span><br><span>      pnp_exit_conf_mode(dev);</span><br><span> }</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/22935">change 22935</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/22935"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I6af0d93061ec49aec7a9181cdf7affd60fbdca73 </div>
<div style="display:none"> Gerrit-Change-Number: 22935 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Renze Nicolai <renze@rnplus.nl> </div>