Port-amd64 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Intel ICH GPIO



On Sun, Oct 06, 2024 at 08:44:21AM -0500, Jonathan A. Kollasch wrote:
> On Sun, Oct 06, 2024 at 01:30:53PM +0800, Rui-Xiang Guo wrote:
> > Hi,
> > I note that there is the igpio(4) in 10.0, but no further documentation.
> > Would like to know if it is possible to get it work on ICH7-M(Calistoga)?
> 
> ichlpcib(4) has a gpio(4) driver that supports that generation of
> hardware.

Thanks for the answer. ichlpcib and gpio are included in the GENERIC, but
I have to reverse ichlpcib_gpio_disable to enable it:
Index: sys/arch/x86/pci/ichlpcib.c
===================================================================
RCS file: /cvsroot/src/sys/arch/x86/pci/ichlpcib.c,v
retrieving revision 1.58.4.1
diff -u -p -r1.58.4.1 ichlpcib.c
--- sys/arch/x86/pci/ichlpcib.c 1 Aug 2023 14:06:36 -0000       1.58.4.1
+++ sys/arch/x86/pci/ichlpcib.c 8 Oct 2024 02:27:29 -0000
@@ -287,7 +287,7 @@ static const struct lpcib_device {
  * kernel or user.  In at least one instance the gpio_resume() handler
  * on ICH GPIO was found to sabotage S3 suspend/resume.
  */
-int    ichlpcib_gpio_disable = 1;
+int    ichlpcib_gpio_disable = 0;

# dmesg | grep ichlpcib                                                         [     1.053423] ichlpcib0 at pci0 dev 31 function 0: Intel 82801GHM LPC Interface Bridge (rev. 0x02)
[     1.053423] timecounter: Timecounter "ichlpcib0" frequency 3579545 Hz quality 1000
[     1.053423] ichlpcib0: 24-bit timer
[     1.053423] tco0 at ichlpcib0: TCO (watchdog) timer configured.
[     1.053423] gpio0 at ichlpcib0: 64 pins
[     1.053423] isa0 at ichlpcib0

I can use gpioctl to set out for pins but it is unable to light up the led.
Not sure if it's a hardware issue.

-rxg



Home | Main Index | Thread Index | Old Index