summaryrefslogtreecommitdiff
path: root/src/ch7xxx
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2006-12-18 14:49:01 -0800
committerEric Anholt <eric@anholt.net>2006-12-18 14:49:01 -0800
commit0305298405bd7018e5c520bdd5ea46a75be09f37 (patch)
tree4d68cbef78947f665ec437e11448af5978bd172f /src/ch7xxx
parent23114fbccad849249b4b7200e3d085a9ac0e2e99 (diff)
Limit modes to 165Mhz on CH7009, according to spec.
Diffstat (limited to 'src/ch7xxx')
-rw-r--r--src/ch7xxx/ch7xxx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ch7xxx/ch7xxx.c b/src/ch7xxx/ch7xxx.c
index e4b21f28..d31a38c6 100644
--- a/src/ch7xxx/ch7xxx.c
+++ b/src/ch7xxx/ch7xxx.c
@@ -157,6 +157,9 @@ ch7xxx_init(I2CDevPtr d)
static ModeStatus
ch7xxx_mode_valid(I2CDevPtr d, DisplayModePtr mode)
{
+ if (mode->Clock > 165000)
+ return MODE_CLOCK_HIGH;
+
return MODE_OK;
}