Searched refs:ALI15X3_dev (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/i2c/busses/
H A Di2c-ali15x3.c129 static int ali15x3_setup(struct pci_dev *ALI15X3_dev) ali15x3_setup() argument
145 pci_read_config_byte(ALI15X3_dev, SMBATPC, &temp); ali15x3_setup()
148 pci_write_config_byte(ALI15X3_dev, SMBATPC, temp); ali15x3_setup()
152 pci_read_config_word(ALI15X3_dev, SMBBA, &ali15x3_smba); ali15x3_setup()
155 dev_err(&ALI15X3_dev->dev, "ALI15X3_smb region uninitialized " ali15x3_setup()
169 dev_err(&ALI15X3_dev->dev, ali15x3_setup()
176 dev_info(&ALI15X3_dev->dev, "forcing ISA address 0x%04X\n", ali15x3_setup()
178 if (PCIBIOS_SUCCESSFUL != pci_write_config_word(ALI15X3_dev, ali15x3_setup()
182 if (PCIBIOS_SUCCESSFUL != pci_read_config_word(ALI15X3_dev, ali15x3_setup()
187 dev_err(&ALI15X3_dev->dev, ali15x3_setup()
193 pci_read_config_byte(ALI15X3_dev, SMBCOM, &temp); ali15x3_setup()
195 dev_info(&ALI15X3_dev->dev, "enabling SMBus device\n"); ali15x3_setup()
196 pci_write_config_byte(ALI15X3_dev, SMBCOM, temp | 0x01); ali15x3_setup()
200 pci_read_config_byte(ALI15X3_dev, SMBHSTCFG, &temp); ali15x3_setup()
202 dev_info(&ALI15X3_dev->dev, "enabling SMBus controller\n"); ali15x3_setup()
203 pci_write_config_byte(ALI15X3_dev, SMBHSTCFG, temp | 0x01); ali15x3_setup()
207 pci_write_config_byte(ALI15X3_dev, SMBCLK, 0x20); ali15x3_setup()
214 dev_dbg(&ALI15X3_dev->dev, "ALI15X3 using Interrupt 9 for SMBus.\n"); ali15x3_setup()
216 pci_read_config_byte(ALI15X3_dev, SMBREV, &temp); ali15x3_setup()
217 dev_dbg(&ALI15X3_dev->dev, "SMBREV = 0x%X\n", temp); ali15x3_setup()
218 dev_dbg(&ALI15X3_dev->dev, "iALI15X3_smba = 0x%X\n", ali15x3_smba); ali15x3_setup()

Completed in 154 milliseconds