blob: 218ef6a1f11e31a3b8b39fcd7d5d4679721631df [file] [log] [blame]
Paul Walmsley49815392012-10-21 01:01:10 -06001/*
2 * OMAP2xxx PRM module functions
3 *
4 * Copyright (C) 2010-2012 Texas Instruments, Inc.
5 * Copyright (C) 2010 Nokia Corporation
6 * BenoƮt Cousson
7 * Paul Walmsley
8 * Rajendra Nayak <rnayak@ti.com>
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
13 */
14
15#include <linux/kernel.h>
16#include <linux/errno.h>
17#include <linux/err.h>
18#include <linux/io.h>
19#include <linux/irq.h>
20
21#include "common.h"
22#include <plat/cpu.h>
23#include <plat/prcm.h>
24
25#include "vp.h"
26#include "powerdomain.h"
27#include "prm2xxx.h"
28#include "cm2xxx_3xxx.h"
29#include "prm-regbits-24xx.h"
30
31struct pwrdm_ops omap2_pwrdm_operations = {
32 .pwrdm_set_next_pwrst = omap2_pwrdm_set_next_pwrst,
33 .pwrdm_read_next_pwrst = omap2_pwrdm_read_next_pwrst,
34 .pwrdm_read_pwrst = omap2_pwrdm_read_pwrst,
35 .pwrdm_set_logic_retst = omap2_pwrdm_set_logic_retst,
36 .pwrdm_set_mem_onst = omap2_pwrdm_set_mem_onst,
37 .pwrdm_set_mem_retst = omap2_pwrdm_set_mem_retst,
38 .pwrdm_read_mem_pwrst = omap2_pwrdm_read_mem_pwrst,
39 .pwrdm_read_mem_retst = omap2_pwrdm_read_mem_retst,
40 .pwrdm_wait_transition = omap2_pwrdm_wait_transition,
41};