Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 May 2012 16:39:43 +0000 (UTC)
From:      Robert Noland <rnoland@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r236246 - head/sys/dev/wbwd
Message-ID:  <201205291639.q4TGdhqD090256@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rnoland
Date: Tue May 29 16:39:42 2012
New Revision: 236246
URL: http://svn.freebsd.org/changeset/base/236246

Log:
  Add device ids for the Winbond 83627DHG-P chip and set the registers to
  trigger the keyboard reset line on timeout.
  
  Reviewed by:	bz
  MFC after:	1 week

Modified:
  head/sys/dev/wbwd/wbwd.c

Modified: head/sys/dev/wbwd/wbwd.c
==============================================================================
--- head/sys/dev/wbwd/wbwd.c	Tue May 29 16:25:01 2012	(r236245)
+++ head/sys/dev/wbwd/wbwd.c	Tue May 29 16:39:42 2012	(r236246)
@@ -78,6 +78,7 @@ __FBSDID("$FreeBSD$");
 #define	WB_LDN8_CRF5		0xF5
 #define	WB_LDN8_CRF5_SCALE	0x08	/* 0: 1s, 1: 60s */
 #define	WB_LDN8_CRF5_KEYB_P20	0x04	/* 1: keyb P20 forces timeout */
+#define	WB_LDN8_CRF5_KBRST	0x02	/* 1: timeout causes pin60 kbd reset */
 
 /* CRF6: Watchdog Timeout (0 == off). Mapped to reg_timeout. */
 #define	WB_LDN8_CRF6		0xF6
@@ -180,6 +181,12 @@ struct winbond_vendor_device_id {
 		.device_rev	= 0x25,
 		.descr		= "Winbond 83627DHG IC ver. 5",   
 	},
+	{
+		.vendor_id	= 0x5ca3,
+		.device_id	= 0xb0,
+		.device_rev	= 0x73,
+		.descr		= "Winbond 83627DHG-P",   
+	},
 };
 
 /*
@@ -637,6 +644,7 @@ wb_attach(device_t dev)
 	 * Disable all all interrupt reset sources (defaults).
 	 */
 	sc->reg_1 &= ~(WB_LDN8_CRF5_KEYB_P20);
+	sc->reg_1 |= WB_LDN8_CRF5_KBRST;
 	write_efir_1(sc, WB_LDN8_CRF5);
 	write_efdr_1(sc, sc->reg_1);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205291639.q4TGdhqD090256>