mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-21 09:42:09 +00:00
vlynq: probe for an external clock first, needed to enable acx on the Leonardo board
SVN-Revision: 10707
This commit is contained in:
parent
62240465c4
commit
9b93a436c7
@ -369,6 +369,14 @@ static int __vlynq_enable_device(struct vlynq_device *dev)
|
|||||||
if (result)
|
if (result)
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
|
vlynq_reg_write(dev->local->control, 0);
|
||||||
|
vlynq_reg_write(dev->remote->control, 0);
|
||||||
|
if (vlynq_linked(dev)) {
|
||||||
|
printk(KERN_DEBUG "%s: using external clock\n",
|
||||||
|
dev->dev.bus_id);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
switch (dev->divisor) {
|
switch (dev->divisor) {
|
||||||
case vlynq_div_auto:
|
case vlynq_div_auto:
|
||||||
/* Only try locally supplied clock, others cause problems */
|
/* Only try locally supplied clock, others cause problems */
|
||||||
@ -413,15 +421,6 @@ static int __vlynq_enable_device(struct vlynq_device *dev)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case vlynq_div_external:
|
|
||||||
vlynq_reg_write(dev->local->control, 0);
|
|
||||||
vlynq_reg_write(dev->remote->control, 0);
|
|
||||||
if (vlynq_linked(dev)) {
|
|
||||||
printk(KERN_DEBUG "%s: using external clock\n",
|
|
||||||
dev->dev.bus_id);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ops->off(dev);
|
ops->off(dev);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user