mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-12 01:44:54 +00:00
parent
8ee968e682
commit
71fb2a6b6e
@ -299,21 +299,20 @@ int vlynq_device_enable(struct vlynq_device *dev)
|
|||||||
|
|
||||||
dev->local->control = 0;
|
dev->local->control = 0;
|
||||||
dev->remote->control = 0;
|
dev->remote->control = 0;
|
||||||
|
dev->local->control = VLYNQ_CTRL_CLOCK_INT;
|
||||||
|
|
||||||
div = ar7_dsp_freq() / 62500000;
|
div = ar7_dsp_freq() / 62500000;
|
||||||
if(ar7_dsp_freq() / div != 62500000)
|
if (div != 0 ) {
|
||||||
{
|
if (ar7_dsp_freq() / div != 62500000) {
|
||||||
printk(KERN_WARNING
|
printk(KERN_WARNING
|
||||||
"VLYNQ: Adjusted requested frequency %d to %d\n",
|
"VLYNQ: Adjusted requested frequency %d to %d\n",
|
||||||
62500000, ar7_dsp_freq() / div);
|
62500000, ar7_dsp_freq() / div);
|
||||||
}
|
}
|
||||||
|
|
||||||
printk("VLYNQ: Setting clock to %d (clock divider %u)\n", ar7_dsp_freq() / div, div);
|
printk("VLYNQ: Setting clock to %d (clock divider %u)\n",
|
||||||
dev->local->control = VLYNQ_CTRL_CLOCK_DIV((div - 1)) |
|
ar7_dsp_freq() / div, div);
|
||||||
VLYNQ_CTRL_CLOCK_INT;
|
dev->local->control |= VLYNQ_CTRL_CLOCK_DIV((div - 1));
|
||||||
/*
|
}
|
||||||
dev->local->control = VLYNQ_CTRL_CLOCK_INT;
|
|
||||||
*/
|
|
||||||
if (vlynq_linked(dev))
|
if (vlynq_linked(dev))
|
||||||
return vlynq_setup_irq(dev);
|
return vlynq_setup_irq(dev);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user