mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-31 06:15:15 +00:00
Add detection of more Fintek chips:
* F75373S/SG * F75383S/M * F75384S/M * custom power control chip at SMBus 0x2f git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3282 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -1511,6 +1511,12 @@ use subs qw(mtp008_detect lm78_detect lm78_isa_detect lm78_alias_detect
|
||||
i2c_addrs => [0x4e], # 0x37 not probed
|
||||
i2c_detect => sub { fintek_detect 2, @_ },
|
||||
},
|
||||
{
|
||||
name => "Fintek F75373S/SG",
|
||||
driver => "to-be-written",
|
||||
i2c_addrs => [0x2d..0x2e],
|
||||
i2c_detect => sub { fintek_detect 3, @_ },
|
||||
},
|
||||
{
|
||||
name => "Fintek F75375S/SP",
|
||||
driver => "to-be-written",
|
||||
@@ -1523,6 +1529,24 @@ use subs qw(mtp008_detect lm78_detect lm78_isa_detect lm78_alias_detect
|
||||
i2c_addrs => [0x2d..0x2e],
|
||||
i2c_detect => sub { fintek_detect 5, @_ },
|
||||
},
|
||||
{
|
||||
name => "Fintek F75383S/M",
|
||||
driver => "to-be-written",
|
||||
i2c_addrs => [0x4c],
|
||||
i2c_detect => sub { fintek_detect 6, @_ },
|
||||
},
|
||||
{
|
||||
name => "Fintek F75384S/M",
|
||||
driver => "to-be-written",
|
||||
i2c_addrs => [0x4d],
|
||||
i2c_detect => sub { fintek_detect 6, @_ },
|
||||
},
|
||||
{
|
||||
name => "Fintek custom power control IC",
|
||||
driver => "to-be-written",
|
||||
i2c_addrs => [0x2f],
|
||||
i2c_detect => sub { fintek_detect 7, @_ },
|
||||
},
|
||||
{
|
||||
name => "Philips Semiconductors SAA1064",
|
||||
driver => "saa1064",
|
||||
@@ -4524,8 +4548,9 @@ sub smsc47m192_detect
|
||||
}
|
||||
|
||||
# $_[0]: Chip to detect
|
||||
# (1 = F75111R/RG/N, 2 = F75121R/F75122R/RG, 4 = F75375S/SG,
|
||||
# 5 = F75387SG/RG)
|
||||
# (1 = F75111R/RG/N, 2 = F75121R/F75122R/RG, 3 = F75373S/SG,
|
||||
# 4 = F75375S/SP, 5 = F75387SG/RG, 6 = F75383M/S/F75384M/S,
|
||||
# 7 = custom power control IC)
|
||||
# $_[1]: A reference to the file descriptor to access this chip.
|
||||
# We assume an i2c_set_slave_addr was already done.
|
||||
# $_[2]: Address (unused)
|
||||
@@ -4547,10 +4572,17 @@ sub fintek_detect
|
||||
return unless $chipid == 0x0300;
|
||||
} elsif ($chip == 2) { # F75121R/F75122R/RG
|
||||
return unless $chipid == 0x0301;
|
||||
} elsif ($chip == 4) { # F75375S/SG
|
||||
} elsif ($chip == 3) { # F75373S/SG
|
||||
return unless $chipid == 0x0204;
|
||||
} elsif ($chip == 4) { # F75375S/SP
|
||||
return unless $chipid == 0x0306;
|
||||
} elsif ($chip == 5) { # F75387SG/RG
|
||||
return unless $chipid == 0x0410;
|
||||
} elsif ($chip == 6) { # F75383M/S/F75384M/S
|
||||
# The datasheet has 0x0303, but Fintek say 0x0413 is also possible
|
||||
return unless $chipid == 0x0303 || $chipid == 0x0413;
|
||||
} elsif ($chip == 7) { # custom power control IC
|
||||
return unless $chipid == 0x0302;
|
||||
}
|
||||
|
||||
return 7;
|
||||
|
Reference in New Issue
Block a user