omap4_prcm_clks.c (261410) | omap4_prcm_clks.c (262870) |
---|---|
1/*- 2 * Copyright (c) 2011 3 * Ben Gray <ben.r.gray@gmail.com>. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 14 unchanged lines hidden (view full) --- 23 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 24 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 25 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 26 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 27 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2011 3 * Ben Gray <ben.r.gray@gmail.com>. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 14 unchanged lines hidden (view full) --- 23 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 24 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 25 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 26 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 27 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/arm/ti/omap4/omap4_prcm_clks.c 261410 2014-02-02 19:17:28Z ian $"); | 31__FBSDID("$FreeBSD: head/sys/arm/ti/omap4/omap4_prcm_clks.c 262870 2014-03-06 21:07:13Z cognet $"); |
32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/kernel.h> 36#include <sys/module.h> 37#include <sys/bus.h> 38#include <sys/resource.h> 39#include <sys/rman.h> --- 945 unchanged lines hidden (view full) --- 985 pll_div = (clksel & 0x7f) + 1; 986 987 988 /* Get the system clock freq */ 989 omap4_clk_get_sysclk_freq(NULL, &sysclk); 990 991 992 /* Calculate the MPU freq */ | 32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/kernel.h> 36#include <sys/module.h> 37#include <sys/bus.h> 38#include <sys/resource.h> 39#include <sys/rman.h> --- 945 unchanged lines hidden (view full) --- 985 pll_div = (clksel & 0x7f) + 1; 986 987 988 /* Get the system clock freq */ 989 omap4_clk_get_sysclk_freq(NULL, &sysclk); 990 991 992 /* Calculate the MPU freq */ |
993 mpuclk = (sysclk * pll_mult) / pll_div; | 993 mpuclk = ((uint64_t)sysclk * pll_mult) / pll_div; |
994 995 /* Return the value */ 996 if (freq) 997 *freq = mpuclk; 998 999 return (0); 1000} 1001 --- 426 unchanged lines hidden --- | 994 995 /* Return the value */ 996 if (freq) 997 *freq = mpuclk; 998 999 return (0); 1000} 1001 --- 426 unchanged lines hidden --- |