mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-18 19:30:54 +00:00
(mds) Fix eeprom size reporting. 'sensors' previously assumed
4 banks per memory chip. Add banks entry to libsensors and
use # of banks in calculation.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@839 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
8233fa6c7b
commit
a708ca6bf5
4 files changed
+18
-7
No files matched your search
@@ -1758,6 +1758,7 @@ static sensors_chip_feature eeprom_features[] =
|
||||
{ SENSORS_EEPROM_TYPE, "Memory type",
|
||||
SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
||||
SENSORS_MODE_R, EEPROM_SYSCTL1, VALUE(3), 0 },
|
||||
/* cheat and use the row-address-bits label for the total size in sensors */
|
||||
{ SENSORS_EEPROM_ROWADDR, "SDRAM Size (MB)",
|
||||
SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
||||
SENSORS_MODE_R, EEPROM_SYSCTL1, VALUE(4), 0 },
|
||||
@@ -1767,6 +1768,9 @@ static sensors_chip_feature eeprom_features[] =
|
||||
{ SENSORS_EEPROM_NUMROWS, "num rows",
|
||||
SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
||||
SENSORS_MODE_R, EEPROM_SYSCTL1, VALUE(6), 0 },
|
||||
{ SENSORS_EEPROM_BANKS, "banks",
|
||||
SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
||||
SENSORS_MODE_R, EEPROM_SYSCTL2, VALUE(2), 0 },
|
||||
{ 0 }
|
||||
};
|
||||
|
||||
|
||||
@@ -815,5 +815,6 @@
|
||||
#define SENSORS_EEPROM_ROWADDR 12
|
||||
#define SENSORS_EEPROM_COLADDR 13
|
||||
#define SENSORS_EEPROM_NUMROWS 14
|
||||
#define SENSORS_EEPROM_BANKS 15
|
||||
|
||||
#endif /* def LIB_SENSORS_CHIPS_H */
|
||||
Reference in new issue
Block a user