summaryrefslogtreecommitdiff
path: root/sys/dev/i2c
AgeCommit message (Collapse)Author
2010-03-20Fix the dbcool_{get,set}_limits() routines to properly deal with min/maxpgoyette
values on temp limits. The actual ranges for temp limits varies if the chip is running in "extended temperature" mode, so we need to handle this difference, too. Verified on my home machine which runs in extended-temp mode and by njoly@ on a machine which does runs in the older 2s-complement mode.
2010-03-14Remove setting of edata->monitor since that member no longer exists.pgoyette
2010-03-11various aprint_* fixes.mrg
2010-03-01Do initialise i2c_attach_args new members, for indirect configurationnjoly
too.
2010-03-01Now that sysmon_envsys(8) has learned how to retrieve and update sensorpgoyette
limit values from the device driver, remove the high_limit and low_limit entries from the hw.dbcool<#>.<sensor> sysctl(8) tree. These limits are now directly accessible via envstat(8). Simplify the remaining code somewhat. No objections raised on either tech-kern@ or current-users@ XXX The fan controllers's parameters (including those that are tied to XXX temperature sensors) are still in sysctl, since there isn't any clean XXX way to implement the fan controllers in sysmon_envsys yet. It is on XXX my To-Do list...
2010-02-28Spelling police.snj
2010-02-28Add direct config support for a few devicesmartin
2010-02-28Generic (device property based) framework for optional direct configurationmartin
of i2c devices, as discussed on tech-kern.
2010-02-26Disable DBCOOL_DEBUG by default, and make it compile that way.pgoyette
2010-02-24Fix handling of 6bit VID register (6th bit takes place of 12VIn sensor).pgoyette
Move VID out of sysctl tree - make it a separate sensor of type INTEGER. Clean-up some of the chip-descriptors.
2010-02-24A pointer typedef entails trading too much flexibility to declare constdyoung
and non-const types, and the kernel uses both const and non-const PMF qualifiers and device suspensors, so change the pmf_qual_t and device_suspensor_t typedefs from "pointers to const" to non-pointer, non-const types.
2010-02-23Correct calculation and display of SDR DRAM speed. From OpenBSD.pgoyette
Fixes PR kern/42736
2010-02-22Import smcsmon(4) driver for SMSC LPC47M192 hardware monitorpgoyette
From Takahiro HAYASHI in PR kern/40420
2010-02-14Adapt to changes in sysmon's limit structurepgoyette
2010-01-08Expand PMF_FN_* macros.dyoung
2010-01-01Explicitly inform envsys that the driver is capable of doing its ownpgoyette
limit checking at initialization time. Later on, if user specifics any unsupported limits, the driver will relinquish this task.
2009-12-12Remove `volatile' qualifier from argument types oftsutsui
struct timeval passed to todr_gettime(9) and todr_settime(9). We no longer have an ancient and volatile struct timeval `time' global since we have switched to MI timercounter(9) on all port. XXX1: some of these RTC drivers still assume 32bit time_t XXX2: some of these should be rewritten to use todr_[gs]ettime_ymdhms() XXX3: todr(9) man page doesn't mention todr_[gs]ettime_ymdhms()
2009-11-02don't pull a 1.5K softc on the stack to do a chip ident. Idea from mrg.christos
2009-07-10Correct usage of PROP_DRIVER_LIMITS flagpgoyette
2009-06-14Update {get,set}_limits() routines.pgoyette
2009-06-13No need to set flag=I2C_F_POLL when releasing the bus. Pointed outpgoyette
in private Email from njoly@
2009-06-13Update sdtemp driver to use sysmon_envsys(9) for setting temp sensorpgoyette
limits. Remove sysctl(9) interface to the limit registers since it's no longer needed.
2009-06-05From the specs: address 0xff gives the die revisionhubertf
2009-06-01Since we no longer have individual events for each sensor value limit,pgoyette
we don't need individual flag bits. Clean up extra bit definitions. Bump kernel version - welcome to 5.99.13
2009-05-19When displaying boot-time trip-register settings, shift to excludepgoyette
fractional bits. Otherwise, a setting of 52C reports 832 during boot, and that's way too hot for any memory!
2009-05-14Ooops - sdtemp(4) driver requires sysmon.pgoyette
2009-05-12struct device * -> device_t, no functional changes intended.cegger
2009-05-09Minor white-space KNF nit. No functional change.pgoyette
2009-05-09Initial implementation of sdtemp(4) driver for on-DIMM temp sensor.pgoyette
(These optional sensors are specified by JEDEC Standard No. 21-C Section 4-7 and implemented by multiple vendors. Tested on my amd64 machine with Kingston KVR1066D3E7S/2G memory which includes a STMicro STTS424E02 sensor.)
2009-02-221. Reorganize code into memory-type-specific routines instead of multiplepgoyette
monstrous if-then-else-if constructs. 2. Display module capacity in GB if it is at least 1GB. 3. Indicate if a memory module is "registered". 4. For DDR3, indicate if a temp-sensor is present. Inspired by similar changes in OpenBSD's spdmem(4).
2009-02-09Previous check for ADM1027 caused a kernel panic, since the read routinepgoyette
can be called _before_ we've identified the chip. Ensure that sc_chip is initialized to NULL before chip is identified, and if it is NULL or ADM1027, use the less-efficient send_byte/receive_byte. While here, don't attempt to release the i2c bus if we failed to acquire it. This would cause a panic on a LOCKDEBUG kernel. Thanks to Nicholas Joly for pointing out both of these bugs.
2009-02-08The ADM1027 chip doesn't support i2c read_byte protocol, so in thispgoyette
case we use send_byte followed by receive_byte.
2009-02-08Use pre-scripted i2c protocols rather than re-inventing our own. Nopgoyette
functional change intended. While here, change some indentation to use tabs vs spaces.
2009-02-03Change the i2c bus scan routine to use the write_quick protocol for mostpgoyette
addresses, rather than trying to read a byte of data from the device. Some devices don't like to be read from (certain clock devices are, I'm told, write-only!), while others expect to be asked only for words (or pairs of bytes). While here, skip a bunch of i2c addresses that can't (or at the very least, shouldn't) have any slave devices. This is the only use in NetBSD of the quick_read/quick_write protocol, and it remains disabled by default. I've updated all the generic i2c drivers to handle the quick_* protocols, but several port-specific drivers have not been updated since I'm in no position to verify that the changes work. Assistance from sandpoint, arm/xscale, evbarm/gumstix, mips/alchemy, and macppc would be greatly appreciated.
2009-02-03Handle i2c quick_read/quick_write bus protocol in the generic i2c_exec()pgoyette
routine, since we have already have the iic_smbus_* interfaces. NOTE: i2c controllers that provide their own i2c_exec() routine also need to be modified. I'll be committing most of these shortly.
2009-01-14Include ADT7460 in chip table (it's identical to the ADT7463, except forpgoyette
physical packaging).
2009-01-09According to the datasheet, temperatures on the LM75 are kept inbriggs
0.5 degC-precision the most-significant 9 bits of a 16-bit register. Interpret them as such and simplify the conversion.
2009-01-09Provide a utility routine to configure/write the watchdog.briggs
XXX This watchdog should eventually be integrated into the generic watchdog framework.
2008-12-18Add i2c bus address checking for these chips. All supported chips livepgoyette
at predefined addresses 0x2c, 0x2d, or 0x2e.
2008-11-22Ouch - too many bits to fit in a byte.pgoyette
2008-11-22JEDEC has published the DDR3 SPD standard; update driver to match.pgoyette
Verified on my single DDR3 machine to still produce correct data.
2008-11-18PR/39947 - Juan RP -- dbcool_detach implicitly calledjnemeth
sysmon_envsys_destroy() twice
2008-11-16For DDR3, the number of physical banks stored in the EEPROM needs to bepgoyette
incremented by 1.
2008-10-30Add dependency on sysmon_envsys to admtemp.nakayama
2008-10-29Ported alipm(4) and admtemp(4) from OpenBSD.jkunz
2008-10-13Remove duplicated copy of the file - no idea where it came from.pgoyette
2008-10-12Add an i2c attachment for the LM78 family of temp sensor/fan controlpgoyette
Tested by Martin Husemann
2008-10-12Move the {read,write}reg() routine addresses into the dbcool_softc sopgoyette
that we can use different routines for macppc's ki2c attachment. Fixes problems reported by Robert Fritzsche on current-users@ list.
2008-10-10sysctl doesn't like names that start with digits, nor does it like namespgoyette
with embedded '.' so change the names to be better-conforming. Reported by njoly
2008-10-09It's not necessary to #include "sysmon_envsys.h" any more.pgoyette