diff options
author | Jean Delvare <jdelvare@suse.de> | 2012-01-28 10:07:09 (GMT) |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-02-03 09:34:03 (GMT) |
commit | 1849ecb22fb3b5d57b65e7369a3957adf9f26f39 (patch) | |
tree | a325a93dabc97cfa2bc1fe192a69150e5a845c89 /drivers/gpu/drm/i915 | |
parent | 6d75e83ee31c146c8a3d56c762d3e15c483dc40e (diff) | |
download | linux-fsl-qoriq-1849ecb22fb3b5d57b65e7369a3957adf9f26f39.tar.xz |
drm/kms: Make i2c buses faster
A udelay value of 20 leads to an I2C bus running at only 25 kbps. I2C
devices can typically operate faster than this, 50 kbps should be fine
for all devices (and compliant devices can always stretch the clock if
needed.)
FWIW, the vast majority of framebuffer drivers set udelay to 10
already. So set it to 10 in DRM drivers too, this will make EDID block
reads faster. We might even lower the udelay value later if no problem
is reported.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Acked-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
Cc: Keith Packard <keithp@keithp.com>
Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/i915')
-rw-r--r-- | drivers/gpu/drm/i915/intel_i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_i2c.c b/drivers/gpu/drm/i915/intel_i2c.c index d30cccc..7fa4f64 100644 --- a/drivers/gpu/drm/i915/intel_i2c.c +++ b/drivers/gpu/drm/i915/intel_i2c.c @@ -37,7 +37,7 @@ /* Intel GPIO access functions */ -#define I2C_RISEFALL_TIME 20 +#define I2C_RISEFALL_TIME 10 static inline struct intel_gmbus * to_intel_gmbus(struct i2c_adapter *i2c) |