remove delays that have been unnecessary since 2002... The iicbb driver
has the proper delays...
This commit is contained in:
parent
bb3d40ed84
commit
5afbb3a8b1
@ -50,7 +50,6 @@ __FBSDID("$FreeBSD$");
|
||||
#endif
|
||||
|
||||
#if (__FreeBSD_version < 500000)
|
||||
#include <machine/clock.h> /* for DELAY */
|
||||
#include <pci/pcivar.h>
|
||||
#include <pci/pcireg.h>
|
||||
#else
|
||||
@ -69,8 +68,6 @@ __FBSDID("$FreeBSD$");
|
||||
#include <dev/smbus/smbconf.h>
|
||||
#include <dev/iicbus/iiconf.h>
|
||||
|
||||
#define I2C_DELAY 40
|
||||
|
||||
/* Compilation is void if BKTR_USE_FREEBSD_SMBUS is not
|
||||
* defined. This allows bktr owners to have smbus active for there
|
||||
* motherboard and still use their bktr without smbus.
|
||||
@ -205,8 +202,6 @@ void bti2c_iic_setsda(device_t dev, int val)
|
||||
else
|
||||
OUTL(sc, BKTR_I2C_DATA_CTL, clock);
|
||||
|
||||
DELAY(I2C_DELAY);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@ -222,8 +217,6 @@ void bti2c_iic_setscl(device_t dev, int val)
|
||||
else
|
||||
OUTL(sc, BKTR_I2C_DATA_CTL, data);
|
||||
|
||||
DELAY(I2C_DELAY);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user