aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2023-02-23i2cdetect: only use "newer" I2C_FUNC_* flags if they existHEADmasterWolfram Sang1-0/+4
This allows i2cdetect to be compiled for older kernels. Reported-by: "Poeche, Uwe" <uwe.poeche@siemens.com> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Wolfram Sang <wsa@kernel.org>
2022-12-05i2cdetect: display more functionality bits with '-F'Wolfram Sang1-0/+6
Original motivation was to add I2C_FUNC_SLAVE, so users can easily find out if their hardware supports being a target. While here, add HostNotify and 10-bit addressing as well. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Wolfram Sang <wsa@kernel.org>
2022-05-24i2c-tools: Implement and document option -hJean Delvare10-15/+50
Add an option -h to display the help of the tools. This is a common practice so users may expect it to work. Based on a preliminary patch from David Kerns. Signed-off-by: Jean Delvare <jdelvare@suse.de> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
2022-05-24i2c-tools: Use getoptJean Delvare5-94/+76
Use the standard C getopt() function instead of parsing the options manually. The benefit of this move is that getopt() supports merged flags (for example -fy instead of -f -y) and does not require options to come first on the command line. As this is pretty standard by now, not supporting such possibilities can confuse and disappoint the user. Based on a preliminary patch from David Kerns. Signed-off-by: Jean Delvare <jdelvare@suse.de> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
2022-03-30i2cget: add mode character for SMBus block read to manpageWolfram Sang1-1/+1
The text was updated, but the mode character was forgotten. Fixes: 789af53 ("i2cget: Add support for SMBus block read") Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Wolfram Sang <wsa@kernel.org>
2022-01-19py-smbus: Use setuptools instead of distutilsRoss Burton1-1/+1
As per [1], distutils is deprecated in Python 3.10 and will be removed entirely in Python 3.12. As setuptools is essentially an enhanced version of distutils, it's trivial to port to that. [1] https://docs.python.org/3/whatsnew/3.10.html#distutils-deprecated Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Jean Delvare <jdelvare@suse.de>
2022-01-03i2cdetect: fix a typo argment -> argumentAurelien Jarno1-2/+2
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Wolfram Sang <wsa@kernel.org>
2021-10-04py-smbus/Module.mk: Install with PREFIX definedMorten Linderud1-1/+1
If we are building to a defined destdir py-smbus is going to ignore this and try install to the actual root. This breaks packaging setups as the install section would fail. Signed-off-by: Morten Linderud <morten@linderud.pw> Signed-off-by: Jean Delvare <jdelvare@suse.de>
2021-08-01Makefile: Drop KERNELVERSIONBaruch Siach1-2/+0
KERNELVERSION is unused since commit 4b89e48a1039f ("Delete the decode-xeon script..."). Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Jean Delvare <jdelvare@suse.de>
2021-07-22i2cdump: Remove support for SMBus block modeJean Delvare2-68/+20
Users can turn to i2cget for this feature. Signed-off-by: Jean Delvare <jdelvare@suse.de> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
2021-07-22Post-release version markerJean Delvare1-1/+1
2021-07-22Set version to 4.3v4.3Jean Delvare3-3/+3
2021-07-15CHANGES: Update for the upcoming releaseJean Delvare1-2/+6
Add all relevant information to the CHANGES file. Fix the leading case of some entries for consistency. Signed-off-by: Jean Delvare <jdelvare@suse.de>
2021-07-13i2cdump: Deprecate SMBus block modeJean Delvare2-10/+7
i2cget is a better fit for this mode. Having it in i2cdump requires special-casing in various places, which makes the code harder to read and maintain. Signed-off-by: Jean Delvare <jdelvare@suse.de> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
2021-07-13i2cdump: Add range support with mode i (I2C block)Jean Delvare2-8/+8
Implementing range support for I2C block read (mode i) isn't particularly difficult so let's just do that. Signed-off-by: Jean Delvare <jdelvare@suse.de> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
2021-07-13i2cdump: Remove dead codeJean Delvare1-3/+0
Considering that we exit immediately if an error happens during a block read, the code filling the remaining bytes with -1 (so that they will be displayed as "XX") is effectively dead code, so let's remove it. We might want to revisit the whole logic later, as there's in fact little reason why block read errors would be fatal when all other read errors are not. But I'd rather remove SMBus block support from the tool before attempting to clean up the code. Fixes: 7abc52d7792e ("Return the correct error code on I2C block read failure.") Signed-off-by: Jean Delvare <jdelvare@suse.de> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
2021-07-13i2cget: Add support for SMBus block readJean Delvare2-5/+19
Now that i2cget supports I2C block read, adding support for SMBus block read is trivial. This restores the symmetry between i2cset and i2cget, and paves the road for the removal of SMBus block read support from i2cdump. Signed-off-by: Jean Delvare <jdelvare@suse.de> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
2021-07-13i2cget: Document the support of I2C block readJean Delvare1-5/+19
Mention I2C block read support in the i2cget(8) manual page, together with an example. Signed-off-by: Jean Delvare <jdelvare@suse.de> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
2021-07-13i2cget: Add support for I2C block dataCrestez Dan Leonard1-10/+56
This adds mode 'i' for I2C_SMBUS_I2C_BLOCK_DATA. This is the same mode letter from i2cdump. Length is optional and defaults to 32 (maximum). The intended use is debugging i2c devices with shell commands. [JD: Fix the build (wrong variable name) Ensure PEC isn't used in I2C block mode Don't print the length (doesn't add value and could be mistaken as an offset Various cleanups] Signed-off-by: Crestez Dan Leonard <leonard.crestez@intel.com> Signed-off-by: Jean Delvare <jdelvare@suse.de> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
2021-06-02i2cdetect: Sort the bus list by numberJean Delvare2-0/+12
The bus list (option -l) will be easier to read once sorted, as typically this will group the buses by driver. Signed-off-by: Jean Delvare <jdelvare@suse.de>
2021-06-02decode-dimms: Actually decode LPDDR3 modulesJean Delvare2-0/+2
In commit 78ed68308b58 ("decode-dimms: Decode manufacturing data for LPDDR3") we said we would handle LPDDR3 the same as DDR3, however it was actually only done for the manufacturing data. Extend the idea to the rest of the script. Signed-off-by: Jean Delvare <jdelvare@suse.de>
2021-03-07Revert "tools: i2ctransfer: add check for returned length from driver"Wolfram Sang2-6/+2
This reverts commit 34806fc4e7090b34e32fa1110d546ab5ce01a6a0. It was developed against an experimental kernel. The regular kernel does not update the new message length to userspace, so the check is always false positive. We can't change the kernel behaviour because it would break the ABI. So revert this commit. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Wolfram Sang <wsa@kernel.org>
2021-03-07eeprom, eepromer: remove the toolsWolfram Sang11-1312/+4
These tools are deprecated for 6 years now because we have better alternatives. They are not built by default. I think it is time we can remove them. Signed-off-by: Wolfram Sang <wsa@kernel.org>
2020-09-22Post-release version markerJean Delvare1-1/+1
2020-09-22Set version to 4.2v4.2Jean Delvare3-3/+3
2020-09-11CHANGES: Update for the upcoming releaseJean Delvare1-4/+22
Add all relevant information to the CHANGES file. Fix the leading case of some entries for consistency, and remove one which wasn't worth mentioning. Signed-off-by: Jean Delvare <jdelvare@suse.de>
2020-09-10Manual pages: Mention the current maintainerJean Delvare9-9/+18
Add the current maintainer to the mailing list as the contact points for bug reports. This ensure that the reports will be read by the right person. Signed-off-by: Jean Delvare <jdelvare@suse.de>
2020-09-10decode-vaio: Scan more i2c busesJean Delvare1-1/+1
While the laptop I originally developed decode-vaio on, only had 5 i2c buses, there could be more on other models, and there are definitely more on the system I use to test the script (using i2c-stub) these days. So look for the VAIO EEPROM on up to 32 i2c buses to be on the safe side. Signed-off-by: Jean Delvare <jdelvare@suse.de>
2020-09-10decode-vaio: Add support for the at24 driverJean Delvare1-4/+37
We have just added support for the VAIO EEPROM to the at24 kernel driver, so let this script handle it. Signed-off-by: Jean Delvare <jdelvare@suse.de>
2020-09-10There are several eeprom driversJean Delvare2-3/+4
There used to be only 1 eeprom driver (named "eeprom") but now there are 3 and the legacy "eeprom" driver is not the preferred option. So list all 3 drivers in our documentation to prevent confusion. Signed-off-by: Jean Delvare <jdelvare@suse.de> Reviewed-by: Wolfram Sang <wsa@kernel.org>
2020-09-08libi2c: Add a manual page to document the APIJean Delvare3-2/+146
It is good practice for a library to come with a complete API description. Signed-off-by: Jean Delvare <jdelvare@suse.de>
2020-09-08i2cset: Fix short writes with maskJean Delvare1-12/+13
Short writes used "daddress" for the value, but the masking code did not expect that, and instead applied the mask to a variable that was never used. So change short writes to use "value" for the value, as all other commands do. Adjust all code paths accordingly. Reported by David Jedynak. Signed-off-by: Jean Delvare <jdelvare@suse.de> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
2020-08-29tools: i2ctransfer: add check for returned length from driverWolfram Sang1-1/+6
Emit a warning if the bus master driver in the kernel did not set the message length correctly with I2C_M_RECV_LEN. This can be determined from the returned value in the buffer. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
2020-08-27decode-dimms: Update the list of vendors to Jedec JEP106BBJean Delvare1-16/+95
Update the list of memory vendors as of June 2020, including 14 renames. I also added a runtime sanity check on the number of vendors per page, as it is very easy to get it wrong. Signed-off-by: Jean Delvare <jdelvare@suse.de>
2020-08-10i2ctransfer: add support for I2C_M_RECV_LENWolfram Sang3-12/+34
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Wolfram Sang <wsa@kernel.org>
2020-08-10add BUGS section to manpagesWolfram Sang9-0/+31
For all manpages installed on my Debian system, add a BUGS section, so people can easily find whom to contact. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Wolfram Sang <wsa@kernel.org>
2020-08-10allow to preset custom CFLAGS and LDFLAGSWolfram Sang4-7/+8
Sometimes I need to add some flags (like -static for the linker), so allow this for all CFLAGS and LDFLAGS used in this project. Signed-off-by: Wolfram Sang <wsa@kernel.org> Acked-by: Jean Delvare <jdelvare@suse.de>
2020-03-17i2c-stub-from-dump: Read dumps from hexdump -CJean Delvare1-2/+2
Make the parser more flexible so as to recognize the dump files generated by "hexdump -C" as a valid input. Signed-off-by: Jean Delvare <jdelvare@suse.de>
2019-10-02decode-dimms: Point the user to the right driversJean Delvare1-3/+6
The header comment only mentioned the legacy eeprom driver, while the at24 and ee1004 drivers should be used nowadays. Signed-off-by: Jean Delvare <jdelvare@suse.de>
2019-10-02decode-dimms: Fix the version stringJean Delvare1-6/+3
We moved away from Subversion long ago, so $Revision$ and $Date$ are no longer being resolved. Just use the version of i2c-tools itself. Signed-off-by: Jean Delvare <jdelvare@suse.de>
2019-10-02decode-dimms: Decode manufacturing data for LPDDR3Jean Delvare1-1/+2
I assume the manufacturing data format for LPDDR3 is the same as regular DDR3. Signed-off-by: Jean Delvare <jdelvare@suse.de>
2019-10-02decode-dimms: Add DDR5 memory types to the listJean Delvare1-0/+1
No information available yet about the contents of the DDR5 SPD EEPROMs but we can already report the basic memory type. Signed-off-by: Jean Delvare <jdelvare@suse.de>
2019-10-02decode-dimms: Print DDR memory speed in MT/s not MHzJean Delvare1-4/+4
Because it is DDR memory, transaction rate is twice the actual clock speed. What the user is interested in is MT/s, and that's the number we display, so use the right unit. Signed-off-by: Jean Delvare <jdelvare@suse.de>
2019-10-02decode-dimms: Print kernel driver usedJean Delvare1-7/+17
When not reading from dump files, print which kernel driver is being used. This will help spot setup mistakes where the legacy eeprom driver stole EEPROMs from the ee1004 driver for DDR4 memory. Signed-off-by: Jean Delvare <jdelvare@suse.de>
2019-10-02decode-dimms: Detect and report truncated input filesJean Delvare1-7/+21
If using the wrong driver, or if reading from a truncated dump file, make sure we don't attempt to use data bytes beyond what is available. Doing so would spit pages of cryptic warnings to the user, explicit error messages are much better. Signed-off-by: Jean Delvare <jdelvare@suse.de>
2019-09-03decode-dimms: Round DDR4 speed properlyJean Delvare1-9/+21
The cycle time of high-speed memory modules is stored rounded. We already have a heuristic to un-round it and display the expected speed for DDR3 modules. Use the same heuristic for DDR4. For example this will make PC4-17000 memory properly displayed as operating at 2133 MHz instead of 2132 MHz. As a side effect, this fixes a bug where the maximum speed wouldn't be listed in section "Timings at Standard Speeds" if it had been computed incorrectly due to the rounded cycle time. Signed-off-by: Jean Delvare <jdelvare@suse.de>
2019-06-19decode-dimms: Add MAC abbreviation for DDR4Jean Delvare1-1/+1
For consistency as we display "(MAC)" for DDR3.
2019-06-19decode-dimms: display MAC from DDR3 SPDFrancois Cartegnie1-0/+6
JEDEC Standard No. 21-C, Annex K, Release 6 Byte 41 is specified, the lower part containing the MAC value, identical as DDR4.
2019-04-23tools: restrict all addresses defined by the standardWolfram Sang11-14/+15
The I2C standard reserves addresses 0x03-0x07. Adapt our tools to that. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Acked-by: Jean Delvare <jdelvare@suse.de> Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
2019-04-23tools: i2ctransfer: consequently document -aWolfram Sang2-3/+6
The text describing the address to be used did not reflect the recent change where some of the functionality of '-f' has been seperated into '-a'. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
2019-04-16decode-dimms: List ee1004 as a candidate driverJean Delvare1-2/+2
2019-04-05decode-dimms: Print primary bus width for DDR3 and DDR4Joakim Tjernlund1-1/+3
Also make bus width extension conditional for DDR3, as was already done for DDR4.
2019-01-09Consistently use snprintf instead of sprintfJean Delvare2-4/+12
There was a last instance of sprintf which somehow was not converted. I know it can't fail, but for consistency, let's use snprintf and check for truncation as we already do in gather_i2c_busses(). Signed-off-by: Jean Delvare <jdelvare@suse.de>
2019-01-09decode-dimms: Move SDR-specific codeJean Delvare2-8/+5
SDR-specific code should go to its type-specific decoding function. Signed-off-by: Jean Delvare <jdelvare@suse.de>
2019-01-09decode-dimms: Print SPD revision for DDR3 tooJean Delvare2-1/+8
Print the SPD revision of DDR3 modules as we do for all other modules. Signed-off-by: Jean Delvare <jdelvare@suse.de>
2018-12-03Post-release version markerJean Delvare1-1/+1
2018-11-30Set version to 4.1v4.1Jean Delvare3-3/+3
2018-11-30CHANGES: Add missing entries since v4.0Jean Delvare1-0/+8
2018-11-23i2c-tools: decode-dimms: New manufacturer names from JEP106AXVincent Palatin2-2/+81
Add all the JEDEC-registered manufacturer names added since JEP106AQ. Signed-off-by: Vincent Palatin <vpalatin@upmem.com> Signed-off-by: Jean Delvare <jdelvare@suse.de>
2018-11-23py-smbus: Fix i2c_smbus_* error propagationGeorgii Staroselskii2-7/+8
The Python bindings haven't been updated after commit 330bba29f3d02432e2dca6f85082763b248887ff ("libi2c: Properly propagate real error codes on read errors"). This led to erronenous behavior every time an error other than -1 is returned by i2c_smbus_* functions. [JD: Edited description.] Signed-off-by: Georgii Staroselskii <georgii.staroselskii@emlid.com> Signed-off-by: Jean Delvare <jdelvare@suse.de>
2018-11-09Make PREFIX overridableJean Delvare2-9/+9
Allow the user to define the installation prefix as an alternative to "/usr/local". Suggested by Per Olav Kroka. Signed-off-by: Jean Delvare <jdelvare@suse.de>
2018-11-09Make DESTDIR overridableJean Delvare1-1/+1
Allow the user to set the installation root as an alternative to "/". Contributed by Per Olav Kroka. Signed-off-by: Jean Delvare <jdelvare@suse.de>
2018-11-09Make STRIP overridableJean Delvare4-3/+4
Allow the user select a different strip tool for the build (same as done with the CC and AR variables). Contributed by Per Olav Kroka. Signed-off-by: Jean Delvare <jdelvare@suse.de>
2018-08-03libi2c: Mention the correct license in source filesJean Delvare2-28/+9
The libi2c library is released under the LGPL, not GPL, as explained in the README file and documented in lib/Module.mk. Thanks to Aurelien Jarno for pointing out the inconsistency. A little bit of history: The code started its life two decades ago as part of the lm-sensors project, which was released as a whole under the GPL originally, including the library part (libsensors). In 2007, I decided to split the i2c tools, which are not specific to sensor devices, to a separate package. In 2009, as I was working on lm-sensors v3, I contacted all the original authors to get their approval to release the upcoming and all future versions of libsensors as LGPL instead, to allow wider adoption. The proposal was accepted by all original authors. In 2012, I decided to turn the inlined i2c_smbus_* helper functions into a proper library, with the intent to release it under the LGPL, as is the common practice for libraries. As the authors of this code is a subset of the authors of libsensors, I assumed their agreement for libsensors could be extended to libi2c as well. This is the reason why LGPL is mentioned in README and lib/Module.mk. Unfortunately, when working on the library code itself, I forgot to update the comments in the source files. Let's fix them now. Signed-off-by: Jean Delvare <jdelvare@suse.de>
2018-04-12eeprog: Fix ambiguous parenthesesJean Delvare2-2/+5
Better separate the function call and the result test, to make the code clearer and unambiguous. Reported by David Binderman.
2018-04-04CHANGES: mention the new -a flag for the toolsWolfram Sang1-0/+1
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
2018-04-04i2ctransfer: '-f' shouldn't allow all addresses, '-a' does thatWolfram Sang2-17/+8
We now have the flag '-a' for all i2c-tools to allow access for all addresses. This was tied in i2ctransfer to the '-f' flag. Remove it and keep that feature to '-a' only. This is also more in sync with the other i2c-tools which use '-f' only to access already busy devices. Signed-off-by: Wolfram Sang <wsa@the-dreams.de> Reviewed-by: Peter Rosin <peda@axentia.se>
2018-03-24tools: add all_addrs option for i2c toolsRomain Porte10-19/+47
If the user is sure that the reserved 0x00 - 0x02 and 0x77 - 0x7f ranges are not needed by its devices, then the "-a" option can be passed for allowing all theorical addresses to be used. It is then possible to access devices in this address range. Signed-off-by: Romain Porte <romain.porte@nokia.com> Reviewed-by: Peter Rosin <peda@axentia.se> [wsa: imonr fixes to commit message] Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
2018-01-24CHANGES: add i2ctransferWolfram Sang1-0/+1
So people know from CHANGES when it has been added. Acked-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
2018-01-23Delete duplicate i2c-dev.hJean Delvare1-72/+0
The <linux/i2c-dev.h> header file is provided by the kernel, so drop our own copy of this file. Signed-off-by: Jean Delvare <jdelvare@suse.de> Acked-by: Wolfram Sang <wsa@the-dreams.de>
2018-01-09lib/Module.mk: Don't install dynamic library when disabledBaruch Siach1-0/+2
Do not attempt to install the dynamic library when build of that library is disabled. Fixes the following installation error: install -m 755 lib/libi2c.so.0.1.0 .../target/usr/lib install: cannot stat 'lib/libi2c.so.0.1.0': No such file or directory lib/Module.mk:90: recipe for target 'install-lib' failed Cc: Angelo Compagnucci <angelo@amarulasolutions.com> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Jean Delvare <jdelvare@suse.de> Fixes: 9906b2ecb6ae ("Makefile: Add flag to disable dynamic library")
2017-12-19eeprog/Module.mk: Add missing dependencyMaxin B. John1-1/+1
Absence of this dependency caused parallel build to run into a race and break. Signed-off-by: Maxin B. John <maxin.john@intel.com> Signed-off-by: Jean Delvare <jdelvare@suse.de>
2017-12-14Makefile: Allow to really disable the dynamic libraryJean Delvare1-0/+2
If the user disables the build of the dynamic library, we have to link the tools with the static library. If we don't, the dependencies will cause the dynamic library to be built regardless of the user's request. Signed-off-by: Jean Delvare <jdelvare@suse.de> Fixes: 9906b2ecb6ae ("Makefile: Add flag to disable dynamic library")
2017-12-14lib/Module.mk: Fix LIB_LINKS dependencyAngelo Compagnucci1-2/+1
LIB_LINKS should be added as a dependency only when BUILD_DYNAMIC_LIB is enabled. Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com> Signed-off-by: Jean Delvare <jdelvare@suse.de> Fixes: 9906b2ecb6ae ("Makefile: Add flag to disable dynamic library"
2017-12-14tools/Module.mk: Add missing dependenciesJean Delvare2-5/+12
Better build the library before building the tools which link against it, otherwise parallel builds could run into a race and break. Signed-off-by: Jean Delvare <jdelvare@suse.de> Tested-by: Angelo Compagnucci <angelo@amarulasolutions.com> Acked-by: Angelo Compagnucci <angelo@amarulasolutions.com>
2017-12-06lib/Module.mk: Drop unused variable LIB_OBJECTSJean Delvare1-2/+0
2017-12-06README: Add documentation for BUILD_DYNAMIC_LIBAngelo Compagnucci1-2/+12
Document the newly introduced BUILD_DYNAMIC_LIB flag and clarify the use of the other variables USE_STATIC_LIB and BUILD_STATIC_LIB. [JD: Edit] Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com> Signed-off-by: Jean Delvare <jdelvare@suse.de>
2017-12-06Makefile: Add flag to disable dynamic libraryAngelo Compagnucci2-2/+14
In such cases where you need to disable entirely the dynamic library compilation, now you can use the BUILD_DYNAMIC_LIB=0 flag. Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com> Signed-off-by: Jean Delvare <jdelvare@suse.de>
2017-12-06lib/Module.mk: Add missing dependenciesJean Delvare1-2/+2
The lib symlinks lacked a dependency to the actual library file, so parallel builds could run into a race and break.
2017-12-05decode-dimms: Verify the CRC of DDR4 data block 1Jean Delvare2-7/+26
On DDR4 modules there is a separate CRC for the second block of 128 bytes. Check it.
2017-12-05decode-dimms: Documentation update for DDR4Jean Delvare3-6/+12
The EEPROMs used to store SPD data on DDR4 SDRAM modules have their own kernel driver: ee1004.
2017-12-05decode-dimms: Decode physical characteristics of DDR4Jean Delvare2-1/+22
Print the physical characteristics of unbuffered, registered and load-reduced DDR4 SDRAM modules.
2017-12-05decode-dimms: Decode misc parameters of DDR4Jean Delvare2-0/+30
Print some additional information for DDR4 SDRAM memory modules.
2017-12-05decode-dimms: Decode size and timings of DDR4Jean Delvare2-1/+177
Decode the memory module size and timings of DDR4 memory.
2017-12-05decode-dimms: Add preliminary DDR4 supportJean Delvare2-2/+63
Recognize DDR4 memory as such, and print manufacturer information.
2017-11-24py-smbus: Fix FSF address in smbusmodule.cOndřej Lysoněk1-1/+2
The Free Software Foundation address was outdated. Discovered by Fedora's rpmlint. The current address can be found at: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html#SEC4 Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2017-11-08tools: i2cbusses: Check the return value of snprintfJean Delvare1-6/+28
It's very unlikely that these paths will ever be truncated, but better safe than sorry. Suggested by Uwe Kleine-König.
2017-11-02i2c-tools: i2cbusses: Avoid buffer overflows in sysfs pathsJean Delvare2-5/+8
sprintf isn't safe, use snprintf instead.
2017-10-30Post-release version markerJean Delvare1-1/+1
2017-10-30Define an API version, migt be useful laterv4.0Jean Delvare1-0/+2
2017-10-30Set version to 4.0Jean Delvare2-2/+3
2017-10-30i2c-tools: Add examples to manual pagesJean Delvare4-4/+154
As suggested by rpjday back in August. I tried to follow the same style Wolfram used for the i2ctransfer examples, for consistency.
2017-08-10eeprog: Increase sleep between byte writesStefan Agner2-3/+11
Increese sleep time between writes to accomodate typical write cycle times. An Atmel AT24C02 as well as an ON Semiconductor CAT24C02 EEPROM specify 5ms. This resolves errors such as: ... Bus: /dev/i2c-1, Address: 0x50, Mode: 8bit Writing stdin starting at address 0x0 ..Error i2c_write_2b: Input/output error Error at line 162: write error [JD] Define a single constant and add a note that this could be revisited.
2017-08-03Add new tool i2ctransfer to the ignore listJean Delvare1-0/+1
2017-07-26Add missing man page cross-referencesJean Delvare4-4/+4
2017-07-26Drop stray references to lm-sensors.orgJean Delvare2-2/+2
lm-sensors.org is no more, point to the I2C Tools wiki page instead.
2017-04-07i2ctransfer: grammar fixes in manpageWolfram Sang1-2/+2
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
2017-04-07i2ctransfer: replace broken "force" handlingWolfram Sang1-12/+16
Probably because of a bad rebase, the old and bogus handling (v1) of "force" slipped into the latest version of the patch (v3). Apply the better version from v2 which does the error handling correct and makes the code a lot easier to understand. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
2017-03-15i2c-tools: add new tool 'i2ctransfer'Wolfram Sang3-1/+504
This tool allows to construct and concat multiple I2C messages into one single transfer. Its aim is to test I2C master controllers, and so there is no SMBus fallback. I've been missing such a tool a number of times now, so I finally got around to writing it myself. As with all I2C tools, it can be dangerous, but it can also be very useful when developing. It has been tested with various Renesas I2C IP cores as well as Tegra, i.MX and AT91. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> [wsa: fixed two more typos and ugly linebreak] Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
2016-08-12i2c-tools: add .gitignoreWolfram Sang4-0/+15
Don't display generated files, so 'git status' becomes useful again. Reviewed-by: Jean Delvare <jdelvare@suse.de> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
2016-08-12i2c-tools: fix feature test macros for glibc >= 2.20Wolfram Sang1-1/+2
Since glibc 2.20, the usage of _BSD_SOURCE is deprecated. Fix it like described here: https://sourceware.org/glibc/wiki/Release/2.20#Deprecation_of__BSD_SOURCE_and__SVID_SOURCE_feature_macros Reviewed-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
2016-07-04Drop obsolete SVN keywordsJean Delvare3-6/+0
2015-07-07eeprog: Drop duplicate CFLAGSJean Delvare1-1/+1
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6311 7894878c-1315-0410-8ee3-d5d059ff63e0
2015-07-07White space cleanupJean Delvare1-1/+1
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6310 7894878c-1315-0410-8ee3-d5d059ff63e0
2015-07-07Update the package overview to reflect the move of eeprog.Jean Delvare1-2/+2
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6309 7894878c-1315-0410-8ee3-d5d059ff63e0
2015-07-07Drop man page references to deprecated eeprom and eepromer.Jean Delvare1-3/+0
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6308 7894878c-1315-0410-8ee3-d5d059ff63e0
2015-07-07Mark eepromer and eeprom as deprecated.Jean Delvare6-5/+25
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6307 7894878c-1315-0410-8ee3-d5d059ff63e0
2015-07-07Update svn:updateJean Delvare0-0/+0
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6306 7894878c-1315-0410-8ee3-d5d059ff63e0
2015-07-07Move eeprog to separate subdir and implement Module.mk for it.Jean Delvare7-4/+69
Contributed by Matwey V. Kornilov. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6305 7894878c-1315-0410-8ee3-d5d059ff63e0
2015-06-29decode-dimms: New manufacturer names from JEP106AQJean Delvare1-1/+36
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6299 7894878c-1315-0410-8ee3-d5d059ff63e0
2015-06-29decode-dimms: Manufacturer name changes from JEP106AQJean Delvare2-5/+6
5 manufacturer names were updated from JEP106AK to JEP106AQ. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6298 7894878c-1315-0410-8ee3-d5d059ff63e0
2015-06-29decode-dimms: Refactor manufacturer decodingJean Delvare1-11/+17
Instead of reencoding pre-DDR3 manufacturer codes to DDR3 manufacturer codes, move the common decoding to a separate function. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6297 7894878c-1315-0410-8ee3-d5d059ff63e0
2015-06-29decode-dimms: Complete check for out-of-bounds vendor IDJean Delvare1-2/+6
We also need to discard vendor ID 0 and to report "Unknown" if the vendor is in a page we don't support yet. Additionally, check that data is present at all for DDR3 modules as we already do for pre-DDR3 modules. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6296 7894878c-1315-0410-8ee3-d5d059ff63e0
2015-06-29decode-dimms: Correctly check for out-of-bounds vendor IDJean Delvare2-1/+2
Contributed by Lubomir Rintel. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6295 7894878c-1315-0410-8ee3-d5d059ff63e0
2015-06-17Don't hard-code lib directory nameJean Delvare1-1/+1
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6290 7894878c-1315-0410-8ee3-d5d059ff63e0
2015-06-17Enable static use of libi2cJean Delvare2-0/+8
When debugging embedded systems, it is often nice to simply TFTP the desired i2ctool to the target without the hazzle of dealing with shared libs. Using -static is overkill, too, so let's add a switch which will only link functions from libi2c statically. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6289 7894878c-1315-0410-8ee3-d5d059ff63e0
2015-03-18py-smbus: Linkage fixJean Delvare2-2/+8
Contributed by Michael Göhler. My original attempt to fix it just shows how little I know about python. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6278 7894878c-1315-0410-8ee3-d5d059ff63e0
2015-01-26py-smbus: Add support for python 3Jean Delvare2-2/+46
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6267 7894878c-1315-0410-8ee3-d5d059ff63e0
2015-01-22py-smbus: Link with libi2cJean Delvare1-1/+1
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6262 7894878c-1315-0410-8ee3-d5d059ff63e0
2015-01-19Mention the current maintainer. Original patch from Wolfram Sang.Jean Delvare2-0/+3
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6261 7894878c-1315-0410-8ee3-d5d059ff63e0
2014-06-19decode-dimms: Fix DDR3 extended temp range refresh rate decodingJean Delvare2-2/+4
Based on a patch from Peter Missel. The meaning of byte 31, bit 1, was inverted. Also, this bit is only meaningful if the extended temperature range is supported (bit 0 is set.) git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6249 7894878c-1315-0410-8ee3-d5d059ff63e0
2014-02-19ddcmon: Merge copyright informationJean Delvare1-4/+2
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6226 7894878c-1315-0410-8ee3-d5d059ff63e0
2014-02-19Update my e-mail address and copyright years.Jean Delvare20-36/+26
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6224 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-10-16Manual pages for eeprog, eeprom and eepromer, contributed by JaromirJean Delvare4-0/+231
Capik. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6204 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-10-05Add missing option -r to usage summaryJean Delvare1-1/+1
Reported by Jaromir Capik. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6201 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-10-05Add manual pages for decode-dimms and decode-vaioJean Delvare4-1/+110
Contributed by Jaromir Capik. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6200 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-06-07decode-dimms: Generate XHTML 1.1 compliant markupJean Delvare2-12/+14
In HTML output mode, generate XHTML 1.1 compliant markup. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6183 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-06-07decode-dimms: Generate HTML 4.01 compliant markupJean Delvare2-6/+8
In HTML output mode, generate HTML 4.01 compliant markup. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6182 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-05-22py-smbus: fix module level docsJean Delvare2-1/+2
When you do `pydoc smbus`, you just get the high level description. There is no automatic display of the classes (like SMBus). This is due to the name not being specified quite right in the type. Contributed by Mike Frysinger. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6171 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-04-19decode-dimms: Encode "degrees" to HTML degree symbolJean Delvare2-1/+3
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6161 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-04-16decode-dimms: For HTML output, merge adjacent cells even if the whole line ↵Jean Delvare1-2/+13
cannot be merged Original patch from Paul Goyette. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6159 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-04-15Doh. I've proofread these names twice and even that was not enough :(Jean Delvare1-1/+1
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6158 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-04-15Add manufacturer names from Jedec document JEP106AK.Jean Delvare1-1/+6
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6155 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-04-15decode-dimms: Fix typo in vendor nameJean Delvare1-1/+1
Contributed by Paul Goyette. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6150 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-04-15DDR3: Fully decode the SDRAM Device Type field.Jean Delvare2-3/+28
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6149 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-04-15DDR3: Cleanup the decoding of the Module Thermal Sensor field.Jean Delvare1-3/+2
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6148 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-04-15DDR3: Add support for Load Reduced DIMM (LRDIMM).Jean Delvare2-1/+19
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6147 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-04-15DDR3: Don't print raw SSTE32882 register values. Undecoded, they haveJean Delvare2-6/+1
no value for the user. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6146 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-04-15DDR3: Simplify decoding of the heat spreader byte. This is basically aJean Delvare1-3/+1
boolean, no need to make it more complex until the specification is extended to encode details. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6145 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-04-15DDR3: Decode the register revision byte as suggested by JedecJean Delvare1-1/+13
documentation. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6144 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-04-15DDR3: Fix --side-by-side when some modules lack manufacturerJean Delvare1-12/+9
information that others have. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6143 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-04-14DDR3: Print rank 1 mapping of unbuffered DIMM.Jean Delvare1-0/+3
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6142 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-04-14DDR3: Print physical characteristics and registered DIMM informationJean Delvare2-17/+29
for all module types which support it. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6141 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-04-14DDR3: Move "mm" in physical dimensions from label to values, forJean Delvare1-15/+15
consistency. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6140 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-04-14DDR3: Print width of all known module types.Jean Delvare2-8/+20
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6139 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-04-14DDR3: Decode and print reference card revision.Jean Delvare2-4/+7
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6138 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-04-14DDR3: Move decoding of the reference card to a dedicated function.Jean Delvare1-20/+26
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6137 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-04-14DDR3: Print timings at standard speeds. This makes it easier to figureJean Delvare2-1/+20
out which memory modules will work well together. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6136 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-04-13DDR3: Repeat tCK, tAA, tRCD, tRP and tRAS values, so that they show upJean Delvare1-0/+5
no only as cycle counts but also absolute time values. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6135 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-04-13DDR3: Fix speed and PC3 number of high-speed modules.Jean Delvare2-1/+12
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6134 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-04-13DDR3: Decode the FTB fields of tCk, tAA, tRCD, tRP and tRC.Jean Delvare2-7/+19
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6133 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-04-13DDR3: Don't print the medium and fine time bases, they aren't directlyJean Delvare2-9/+10
useful to the user. Simply store them for later use. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6132 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-04-13DDR3: Round down PC3 numbers to comply with Jedec.Jean Delvare2-0/+3
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6131 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-04-13DDR3: Round core timings up, not down.Jean Delvare2-4/+5
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6130 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-04-13DDR3: Use the right nibble from byte 21 as the MSB of tRAS.Jean Delvare2-1/+2
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6129 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-03-02Fix build error (NULL undefined) caused by missing include fileGuenter Roeck2-0/+2
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6124 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-02-13Decode more DDR3 module typesJean Delvare2-1/+5
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6120 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-02-13Prevent hang on reserved DDR3 module typeJean Delvare2-1/+2
Function sprint doesn't exist, sprintf was intended. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6119 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-12-21Update CHANGES to reflect tools build fixGuenter Roeck1-0/+1
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6105 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-12-21Build fails with recent versions of gcc/ld.Guenter Roeck1-4/+4
Fix by specifying library after .o files. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6104 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-12-20i2cdetect: Clarify the SMBus commands used for probing by default.Jean Delvare2-4/+9
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6103 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-12-20Print timings at standard PC speeds. The minimum cycle times for theJean Delvare2-2/+25
3 supported CAS latency values do not necessarily match standard speeds, and even if they do, they may not cover all standard speeds. Display the timings at all standard supported speeds. This makes it easier to figure out which memory modules will work well together without tinkering with BIOS options. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6102 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-12-20Fix decoding of SDR SPD revision. The encoding changed with revisionJean Delvare2-1/+4
1.2. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6101 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-12-20Add section headers for SDR modules, to make the output easier to read.Jean Delvare2-2/+4
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6100 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-12-20Remove duplicate "ns" in SDR timings.Jean Delvare2-5/+2
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6099 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-12-20Strip former manufacturer name in side-by-side output mode, to avoidJean Delvare2-0/+2
overly large columns. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6098 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-12-20If DDR3 manufacturer page count parity is wrong, still print theJean Delvare2-3/+7
manufacturer name (if valid) but add a question mark. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6097 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-12-20Add manufacturer names from Jedec document JEP106AJ.Jean Delvare2-2/+7
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6096 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-12-20Introduce helper function as_ddr(), hopefully this makes the code aJean Delvare1-8/+16
little more readable. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6095 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-12-20ddr2_core_timings is now the exact same function as ddr_core_timingsJean Delvare1-13/+5
so delete the former and user the latter everywhere. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6094 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-12-20Print timings at standard DDR speeds. The minimum cycle times for theJean Delvare2-13/+35
3 supported CAS latency values do not necessarily match standard speeds, and even if they do, they may not cover all standard speeds. Display the timings at all standard supported speeds. This makes it easier to figure out which memory modules will work well together without tinkering with BIOS options. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6093 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-12-20Print timings at standard DDR2 speeds. The minimum cycle times for theJean Delvare2-15/+37
3 supported CAS latency values do not necessarily match standard speeds, and even if they do, they may not cover all standard speeds. Display the timings at all standard supported speeds. This makes it easier to figure out which memory modules will work well together. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6092 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-10-25Missed update.Jean Delvare1-1/+1
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6083 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-10-25decode-dimms: Print DDR2 core timings for all supported CAS values, asJean Delvare1-9/+23
we do for DDR modules. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6082 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-10-25decode-dimms: Print only the DDR2 timings which were properly defined.Jean Delvare2-21/+44
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6081 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-10-25decode-dimms: Print DDR2 equivalent speed of tCK max.Jean Delvare2-3/+6
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6080 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-10-25decode-dimms: Print DDR core timings for all supported CAS values.Jean Delvare2-14/+26
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6079 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-10-25decode-dimms: Print extra timing values for DDR memory modules as we doJean Delvare2-1/+47
for DDR2 memory modules. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6078 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-10-25decode-dimms: Default to merging cells in side-by-side output mode.Jean Delvare2-0/+10
Add an option to revert to no cell merging. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6077 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-10-22Don't let missing DDR2 SPD revision or PLL relock time break side-by-side ↵Jean Delvare2-6/+4
output. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6075 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-10-22Print a space before "MHz" to improve readability.Jean Delvare1-7/+7
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6074 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-10-21Print the number of banks, rows, columns and ranks for DDR modules asJean Delvare2-0/+5
we do for DDR2 modules. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6073 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-10-21Don't let missing DDR module height break side-by-side output.Jean Delvare2-7/+6
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6072 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-09-10Update vendor list based on Jedec document JEP106AG. Contributed byJean Delvare1-13/+56
Thomas Gibson. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6069 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-09-07Move the code to a function, it's cleaner.Jean Delvare1-4/+12
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6068 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-09-07Optimize the code which computes the column width.Jean Delvare1-8/+10
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6067 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-09-07In side-by-side merged cells mode, don't make columns larger than theyJean Delvare2-3/+19
need to be. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6066 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-09-07Consistently use "SMBus receive byte" for the short byte read we useJean Delvare2-4/+4
for chip detection. "SMBus read byte" is a different SMBus transaction. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6065 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-09-07If either SMBus Quick Write or SMBus Receive Byte command is missing,Jean Delvare2-15/+42
still proceed and do a best-effort detection. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6064 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-07-19Don't choke when no SPD EEPROM is found while the eeprom or at24 driver isJean Delvare2-5/+7
loaded. This can happen, handle the case gracefully. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6062 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-07-19Read EEPROM contents before printing headers.Jean Delvare1-14/+14
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6061 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-07-10Ignore .ao files.Jean Delvare0-0/+0
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6060 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-07-10libi2c: Use I2C_SMBUS_BLOCK_MAX instead of hard-coding 32Jean Delvare2-8/+9
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6059 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-07-10libi2c: Properly propagate real error codes on read errorsJean Delvare2-43/+64
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6058 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-05-21Add a copy of the LGPL v2.1, and clarify licenses.Jean Delvare3-0/+512
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6055 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-05-21New library for I2C device access under Linux. As a first step, theJean Delvare8-191/+379
library will host the i2c_smbus_*() inline functions which were previously in the user-space flavor of <linux/i2c-dev.h>. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6054 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-05-21Add header file missed from a previous commit.Jean Delvare1-0/+212
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6053 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-05-21Tools depends on header file version.h. Add the missing dependency toJean Delvare1-4/+4
the build system. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6049 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-04-26i2c-dev: Move SMBus helper functions to include/i2c/smbus.hJean Delvare15-273/+41
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6048 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-04-26i2c-dev.h: Minimize differences with kernel flavorJean Delvare2-34/+29
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6047 7894878c-1315-0410-8ee3-d5d059ff63e0