mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
ixp4xx_eth: Support the get_ts_info ethtool method.
Signed-off-by: Richard Cochran <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
a85bbddd08
commit
509a7c2572
3 changed files with 35 additions and 0 deletions
|
|
@ -284,6 +284,7 @@ static void __exit ptp_ixp_exit(void)
|
|||
{
|
||||
free_irq(MASTER_IRQ, &ixp_clock);
|
||||
free_irq(SLAVE_IRQ, &ixp_clock);
|
||||
ixp46x_phc_clock = -1;
|
||||
ptp_clock_unregister(ixp_clock.ptp_clock);
|
||||
}
|
||||
|
||||
|
|
@ -302,6 +303,8 @@ static int __init ptp_ixp_init(void)
|
|||
if (IS_ERR(ixp_clock.ptp_clock))
|
||||
return PTR_ERR(ixp_clock.ptp_clock);
|
||||
|
||||
ixp46x_phc_clock = ptp_clock_index(ixp_clock.ptp_clock);
|
||||
|
||||
__raw_writel(DEFAULT_ADDEND, &ixp_clock.regs->addend);
|
||||
__raw_writel(1, &ixp_clock.regs->trgt_lo);
|
||||
__raw_writel(0, &ixp_clock.regs->trgt_hi);
|
||||
|
|
|
|||
Loading…
Reference in a new issue