Tony Lindgren | b824efa | 2006-04-02 17:46:20 +0100 | [diff] [blame] | 1 | /* |
| 2 | * linux/arch/arm/mach-omap2/prcm.c |
| 3 | * |
| 4 | * OMAP 24xx Power Reset and Clock Management (PRCM) functions |
| 5 | * |
| 6 | * Copyright (C) 2005 Nokia Corporation |
| 7 | * |
| 8 | * Written by Tony Lindgren <tony.lindgren@nokia.com> |
| 9 | * |
Rajendra Nayak | c171a25 | 2008-09-26 17:48:31 +0530 | [diff] [blame] | 10 | * Copyright (C) 2007 Texas Instruments, Inc. |
| 11 | * Rajendra Nayak <rnayak@ti.com> |
| 12 | * |
Tony Lindgren | b824efa | 2006-04-02 17:46:20 +0100 | [diff] [blame] | 13 | * Some pieces of code Copyright (C) 2005 Texas Instruments, Inc. |
Abhijit Pagare | 3790300 | 2010-01-26 20:12:51 -0700 | [diff] [blame] | 14 | * Upgraded with OMAP4 support by Abhijit Pagare <abhijitpagare@ti.com> |
Tony Lindgren | b824efa | 2006-04-02 17:46:20 +0100 | [diff] [blame] | 15 | * |
| 16 | * This program is free software; you can redistribute it and/or modify |
| 17 | * it under the terms of the GNU General Public License version 2 as |
| 18 | * published by the Free Software Foundation. |
| 19 | */ |
Paul Walmsley | c4d7e58 | 2010-12-21 21:05:14 -0700 | [diff] [blame] | 20 | |
| 21 | #include <linux/kernel.h> |
Tony Lindgren | b824efa | 2006-04-02 17:46:20 +0100 | [diff] [blame] | 22 | #include <linux/init.h> |
| 23 | #include <linux/clk.h> |
Tony Lindgren | a58caad | 2008-07-03 12:24:44 +0300 | [diff] [blame] | 24 | #include <linux/io.h> |
Paul Walmsley | 72350b2 | 2009-07-24 19:44:03 -0600 | [diff] [blame] | 25 | #include <linux/delay.h> |
Paul Gortmaker | dc28094 | 2011-07-31 16:17:29 -0400 | [diff] [blame] | 26 | #include <linux/export.h> |
Tony Lindgren | b824efa | 2006-04-02 17:46:20 +0100 | [diff] [blame] | 27 | |
Tony Lindgren | 4e65331 | 2011-11-10 22:45:17 +0100 | [diff] [blame] | 28 | #include "common.h" |
Tony Lindgren | ce491cf | 2009-10-20 09:40:47 -0700 | [diff] [blame] | 29 | #include <plat/prcm.h> |
Paul Walmsley | 4459598 | 2008-03-18 10:04:51 +0200 | [diff] [blame] | 30 | |
Tony Lindgren | e4c060d | 2012-10-05 13:25:59 -0700 | [diff] [blame] | 31 | #include "soc.h" |
Tony Lindgren | a58caad | 2008-07-03 12:24:44 +0300 | [diff] [blame] | 32 | #include "clock.h" |
Paul Walmsley | feec127 | 2010-01-26 20:13:11 -0700 | [diff] [blame] | 33 | #include "clock2xxx.h" |
Paul Walmsley | 59fb659 | 2010-12-21 15:30:55 -0700 | [diff] [blame] | 34 | #include "cm2xxx_3xxx.h" |
Paul Walmsley | 59fb659 | 2010-12-21 15:30:55 -0700 | [diff] [blame] | 35 | #include "prm2xxx_3xxx.h" |
Paul Walmsley | d198b51 | 2010-12-21 15:30:54 -0700 | [diff] [blame] | 36 | #include "prm44xx.h" |
Paul Walmsley | c4d7e58 | 2010-12-21 21:05:14 -0700 | [diff] [blame] | 37 | #include "prminst44xx.h" |
R Sricharan | 3f4990f | 2012-07-04 05:04:00 -0600 | [diff] [blame] | 38 | #include "cminst44xx.h" |
Paul Walmsley | 4459598 | 2008-03-18 10:04:51 +0200 | [diff] [blame] | 39 | #include "prm-regbits-24xx.h" |
Rajeev Kulkarni | ff4d3e1 | 2010-09-21 10:34:09 -0600 | [diff] [blame] | 40 | #include "prm-regbits-44xx.h" |
Paul Walmsley | 4814ced | 2010-10-08 11:40:20 -0600 | [diff] [blame] | 41 | #include "control.h" |
Tony Lindgren | b824efa | 2006-04-02 17:46:20 +0100 | [diff] [blame] | 42 | |
R Sricharan | 3f4990f | 2012-07-04 05:04:00 -0600 | [diff] [blame] | 43 | |
| 44 | /* |
| 45 | * Stubbed functions so that common files continue to build when |
| 46 | * custom builds are used |
| 47 | * XXX These are temporary and should be removed at the earliest possible |
| 48 | * opportunity |
| 49 | */ |
| 50 | int __weak omap4_cminst_wait_module_idle(u8 part, u16 inst, s16 cdoffs, |
| 51 | u16 clkctrl_offs) |
| 52 | { |
| 53 | return 0; |
| 54 | } |
| 55 | |
| 56 | void __weak omap4_cminst_module_enable(u8 mode, u8 part, u16 inst, |
| 57 | s16 cdoffs, u16 clkctrl_offs) |
| 58 | { |
| 59 | } |
| 60 | |
| 61 | void __weak omap4_cminst_module_disable(u8 part, u16 inst, s16 cdoffs, |
| 62 | u16 clkctrl_offs) |
| 63 | { |
| 64 | } |