2 * linux/arch/arm/mach-omap2/prcm.c
4 * OMAP 24xx Power Reset and Clock Management (PRCM) functions
6 * Copyright (C) 2005 Nokia Corporation
8 * Written by Tony Lindgren <tony.lindgren@nokia.com>
10 * Some pieces of code Copyright (C) 2005 Texas Instruments, Inc.
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License version 2 as
14 * published by the Free Software Foundation.
16 #include <linux/config.h>
17 #include <linux/module.h>
18 #include <linux/init.h>
19 #include <linux/clk.h>
21 #include "prcm-regs.h"
23 u32 omap_prcm_get_reset_sources(void)
25 return RM_RSTST_WKUP & 0x7f;
27 EXPORT_SYMBOL(omap_prcm_get_reset_sources);
29 /* Resets clock rates and reboots the system. Only called from system.h */
30 void omap_prcm_arch_reset(char mode)
33 struct clk *vclk, *sclk;
35 vclk = clk_get(NULL, "virt_prcm_set");
36 sclk = clk_get(NULL, "sys_ck");
37 rate = clk_get_rate(sclk);
38 clk_set_rate(vclk, rate); /* go to bypass for OMAP limitation */