Source
x
static unsigned long sclk_get_rate(struct clk_hw *hw, unsigned long parent_rate)
/*
* Purna Chandra Mandal,<purna.mandal@microchip.com>
* Copyright (C) 2015 Microchip Technology Inc. All rights reserved.
*
* This program is free software; you can distribute it and/or modify it
* under the terms of the GNU General Public License (Version 2) as
* published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*/
/* OSCCON Reg fields */
/* SPLLCON Reg fields */
/* Peripheral Bus Clock Reg Fields */
/* Reference Oscillator Control Reg fields */
/* Reference Oscillator Trim Register Fields */
/* Mux Slew Control Register fields */
/* Clock Poll Timeout */
/* SoC specific clock needed during SPLL clock rate switch */
static struct clk_hw *pic32_sclk_hw;
/* add instruction pipeline delay while CPU clock is in-transition. */