summaryrefslogtreecommitdiffstats
path: root/sys/dev/i2c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Acquire/release the i2c bus before/after reading the temperature register.kettenis2015-05-301-3/+4
| | | | | | | Prevents concurrent access to the smu(4) microcontroller on Apple G5 machines, which would result in errors reading the RTC. ok deraadt@, mpi@
* Revert unrelated changes in previous.uebayasi2015-05-291-3/+1
|
* Initial addition of ``Patrol Read'' support in bio(4), biocto(8), anduebayasi2015-05-291-1/+3
| | | | | | mfi(4). Based on FreeBSD, but done without mfiutil(8). OK deraadt@
* Remove some includes include-what-you-use claims don'tjsg2015-03-144-9/+4
| | | | | | | have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
* add some more sdtemp devicesjsg2014-11-142-2/+12
|
* Do not compile sensor code if option SMALL_KERNELmiod2014-10-121-1/+9
|
* add some more sdtemp devicesjsg2014-09-272-3/+63
| | | | ok deraadt@
* Don't mask off revision bits for tests against a fulljsg2014-09-261-3/+3
| | | | | | | device id/revision id value. Makes it possible for se98 and stts424 sensors to match. ok deraadt@
* Provide a forward declaration of struct device.kettenis2013-07-051-1/+3
| | | | ok deraadt@
* Implement support for "clock stretching" where a slave device pulls down SCLkettenis2013-04-201-1/+32
| | | | | | to slow down the master device. This makes the i2c bit-banging code work with slow slave device such as SDVO chips and DDC eeproms found on various graphics hardware supported by inteldrm(4). Mostly from NetBSD.
* Unbreak the build on amd64 by making sure that inteldrm pulls in the generickettenis2013-03-311-2/+2
| | | | | | | | i2c bit-banging code. Requires us to move around the i2c_bitbang define. Also move the onewire_bitbang define to be close to i2c_bitbang since they are similar. ok jsing@
* Detect the ts3000b3 and stts2002, and weaken the cat34ts02 model checkderaadt2011-10-072-10/+19
| | | | | since a similar device (not yet named as far as I can see) has showed up on the market. cat34ts02 tested by weerd.
* Calling a detach function from an attach function is no longer legal (deraadt2011-07-261-12/+2
| | | | | | | see a recent subr_autoconf.c commit). To resolve this problem, mark the other attachment dead, and clean it up when the first servicing timeout gets run. ok kettenis
* Enter nvt(4), a driver for the W83795G and W83795ADG hardware monitor.kettenis2011-07-032-1/+303
| | | | ok deraadt@, miod@
* The check for the mcp98243 sdtemp(4) device was too strict. Relax it.deraadt2011-05-261-2/+2
| | | | Tested by Joe Gidi
* Add support for detecting the NXP SA56004X (we have not actuallyderaadt2011-03-102-2/+12
| | | | | | seen it in the wild yet, but the detection seems easy). Few bugs spotted by kettenis. ok kettenis
* 3 more JEDEC JC-42.4 sensors are the marketderaadt2010-07-092-8/+23
|
* Detect Nuvoton W83795G.kettenis2010-03-221-1/+11
| | | | ok deraadt@
* Split existing spdmem@i2c code into bus-agnostic spd record decoding code,miod2010-03-223-844/+126
| | | | | and an i2c attachment. No functional change; ok jsg@ deraadt@
* correct id for 2nd type of stts424e02; from cnstderaadt2009-12-281-2/+2
|
* match() function was leaving the i2c bus locked; ok kettenisderaadt2009-10-051-3/+6
|
* Don't try to check for ECC with fbdimm as the offset exceedsjsg2009-09-131-4/+1
| | | | | | the number of bytes currently read into the sm_data array. Problem found by recent version of gcc.
* only pull in the source file if it is needed, so that all the othersderaadt2009-08-121-2/+3
| | | | | we use compile brilliant cnst, please learn to test better
* Mark sensor as invalid if the i2c transaction to read its value fails.kettenis2009-08-121-2/+5
| | | | ok deraadt@
* New lisa(4) driver for ST LIS331DL accelerometer in HP 2133 Mini-Note PC; ok deraadtcnst2009-08-123-2/+156
|
* check 4 (instead of merely 2) addr bits for probing sdtemp(4) chips; ok deraadtcnst2009-07-101-8/+8
|
* fix the complement in the 2's complement patch from yesterday; ok deraadtcnst2009-07-101-2/+2
|
* support onsemi's cat34ts02 and cat6095; ok deraadtcnst2009-07-102-3/+8
|
* the temperature value is really a 13-bit 2's complement; ok deraadtcnst2009-07-101-5/+4
|
* fix the mask for the sign bit and some comment; ok deraadtcnst2009-07-101-3/+3
|
* Seems I confused Mb and MB and was in too much of a rush when Ijsg2009-05-231-5/+18
| | | | | | | | added the DDR3 bits. Take into account more of the spd data and compute DDR3 module size in a way similiar to NetBSD so it comes out correctly. Tested by Olivier Cherrier and Christian Stuermer.
* remove a meaningless sensor.desc; ok deraadtcnst2009-04-221-3/+1
|
* apologize (dlg and claudio, stop snickering)deraadt2009-03-141-2/+2
|
* Untested FB-DIMM decoding adapted from changes made to NetBSDjsg2009-02-221-1/+72
| | | | | by Paul Goyette. ok deraadt@
* Indicate if a thermal sensor is present on ddr3 modules.jsg2009-02-191-1/+6
|
* Move most of spdmem match logic into the driver and add crc16/ddr3jsg2009-02-192-18/+201
| | | | | | | | | support based on changes in NetBSD by Paul Goyette with goop like bitfields/single decode function mess removed and things like module type/simpler capacity calculations added. Tested by a bunch of people in particular krw who tested a few revs of the ddr3 bits.
* Unify error message.kettenis2009-01-262-4/+4
| | | | ok grange@, oga@, todd@
* Check for zero'd spd data even if we pass the checksumjsg2008-12-121-2/+4
| | | | | | | and don't offer a match in this case. Deals with the qemu "TODO: Populate SPD eeprom data." tested by todd@
* remove more logically irrelevant DDR code from the SDR function; ok jsgcnst2008-11-241-30/+18
|
* add support for ST's chip since documentation is now available atderaadt2008-11-132-3/+8
| | | | | http://www.st.com/stonline/products/literature/ds/13448/stts424e02.pdf as discovered by Gert-Jan Vons.
* remove some dead code and fix a comment; llvm/clang; ok jsgcnst2008-11-101-16/+4
|
* uninitialised value caused some lmenv(4) fans to never appear sometimes;cnst2008-11-101-2/+3
| | | | | the bug was reported long time ago by Simon Slaytor with adm9240; the eyes were cleared today by LLVM/Clang Static Analyser; ok deraadt
* support w83627dhg at i2c (as seen on Sun Ultra 24 via dmesg@) ok deraadt@cnst2008-11-032-2/+6
|
* add support for the PCA9555 device which has 16 instead of 8 pins.reyk2008-09-101-56/+131
| | | | ok deraadt@
* * fix the order of precedence in the divisor bits calculationcnst2008-06-091-10/+10
| | | | | * correct the constant in the fanrpm formula ok deraadt
* Print a specific message for non i2c attachments like macppcjsg2008-05-211-1/+5
| | | | | memc, in the situation where Apple cheaps out by having no SPD on integrated RAM.
* correct attach messagesderaadt2008-05-011-3/+3
|
* learn about the fansderaadt2008-04-231-21/+74
|
* * correct the names of the register definescnst2008-04-221-12/+15
| | | | | | | * describe the temperature sensors as 'Internal' / 'External' * no need for sensor description enumeration 'sure' deraadt
* unbreak the ignore_addrs logic (the 'continue' was obviously meant to affectcnst2008-04-221-2/+4
| | | | | | another preceding 'for' loop); reported by krw and kettenis; better diff from millert; 'get it in' deraadt