2 * clock2xxx.c - OMAP2xxx-specific clock integration code
4 * Copyright (C) 2005-2008 Texas Instruments, Inc.
5 * Copyright (C) 2004-2010 Nokia Corporation
8 * Richard Woodruff <r-woodruff2@ti.com>
11 * Based on earlier work by Tuukka Tikkanen, Tony Lindgren,
12 * Gordon McNutt and RidgeRun, Inc.
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License version 2 as
16 * published by the Free Software Foundation.
20 #include <linux/kernel.h>
21 #include <linux/errno.h>
22 #include <linux/clk.h>
27 #include "clock2xxx.h"
29 #include "cm-regbits-24xx.h"
31 struct clk_hw
*dclk_hw
;
33 * Omap24xx specific clock functions
37 * Switch the MPU rate if specified on cmdline. We cannot do this
38 * early until cmdline is parsed. XXX This should be removed from the
39 * clock code and handled by the OPP layer code in the near future.
41 static int __init
omap2xxx_clk_arch_init(void)
45 if (!cpu_is_omap24xx())
48 ret
= omap2_clk_switch_mpurate_at_boot("virt_prcm_set");
50 omap2_clk_print_new_rates("sys_ck", "dpll_ck", "mpu_ck");
55 arch_initcall(omap2xxx_clk_arch_init
);