Skip to content

Instantly share code, notes, and snippets.

@justinweiss
justinweiss / 0001-oxp-sensors-hwmon-Add-GPD-Win-Mini.patch
Created March 22, 2024 03:58
0001-oxp-sensors-hwmon-Add-GPD-Win-Mini.patch
From 48433f6b5b56fdee0f3c8172e7edba331235d999 Mon Sep 17 00:00:00 2001
From: Justin Weiss <justin@justinweiss.com>
Date: Thu, 21 Mar 2024 20:50:56 -0700
Subject: [PATCH] oxp-sensors: hwmon: Add GPD Win Mini
Adds the GPD Win Mini handheld to PWM fan control. The Win Mini
has a register for reading fan speed and a register for reading and
writing the PWM. It does not have a separate enable register, but
treats writing 0 to the PWM as fan auto mode. Values from 1-244 set a
manual fan speed, and 245-255 have undetermined behavior.