Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
prcm.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/clk.h>
#include <linux/io.h>
#include <linux/delay.h>
#include <linux/export.h>
#include "common.h"
#include <plat/prcm.h>
#include "clock.h"
#include "clock2xxx.h"
#include "cm2xxx_3xxx.h"
#include "prm2xxx_3xxx.h"
#include "prm44xx.h"
#include "prminst44xx.h"
#include "cminst44xx.h"
#include "prm-regbits-24xx.h"
#include "prm-regbits-44xx.h"
#include "control.h"

Go to the source code of this file.

Macros

#define MAX_MODULE_ENABLE_WAIT   100000
 

Functions

u32 omap_prcm_get_reset_sources (void)
 
 EXPORT_SYMBOL (omap_prcm_get_reset_sources)
 
void omap_prcm_restart (char mode, const char *cmd)
 
: name of the clock (for printk)

omap2_cm_wait_idlest - wait for IDLEST bit to indicate module readiness : physical address of module IDLEST register : value to mask against to determine if the module is active : idle state indicator (0 or 1) for the clock

Returns 1 if the module indicated readiness in time, or 0 if it failed to enable in roughly MAX_MODULE_ENABLE_WAIT microseconds.

XXX This function is deprecated. It should be removed once the hwmod conversion is complete.

int omap2_cm_wait_idlest (void __iomem *reg, u32 mask, u8 idlest, const char *name)
 
void __init omap2_set_globals_prcm (struct omap_globals *omap2_globals)
 
int __weak omap4_cminst_wait_module_idle (u8 part, u16 inst, s16 cdoffs, u16 clkctrl_offs)
 
void __weak omap4_cminst_module_enable (u8 mode, u8 part, u16 inst, s16 cdoffs, u16 clkctrl_offs)
 
void __weak omap4_cminst_module_disable (u8 part, u16 inst, s16 cdoffs, u16 clkctrl_offs)
 

Variables

void __iomemprm_base
 
void __iomemcm_base
 
void __iomemcm2_base
 
void __iomemprcm_mpu_base
 

Macro Definition Documentation

#define MAX_MODULE_ENABLE_WAIT   100000

Definition at line 47 of file prcm.c.

Function Documentation

EXPORT_SYMBOL ( omap_prcm_get_reset_sources  )
int omap2_cm_wait_idlest ( void __iomem reg,
u32  mask,
u8  idlest,
const char name 
)

Definition at line 126 of file prcm.c.

void __init omap2_set_globals_prcm ( struct omap_globals omap2_globals)

Definition at line 151 of file prcm.c.

void __weak omap4_cminst_module_disable ( u8  part,
u16  inst,
s16  cdoffs,
u16  clkctrl_offs 
)

omap4_cminst_module_disable - Disable the module inside CLKCTRL : PRCM partition ID that the CM_CLKCTRL register exists in : CM instance register offset (*_INST macro) : Clockdomain register offset (*_CDOFFS macro) : Module clock control register offset (*_CLKCTRL macro)

No return value.

Definition at line 185 of file prcm.c.

void __weak omap4_cminst_module_enable ( u8  mode,
u8  part,
u16  inst,
s16  cdoffs,
u16  clkctrl_offs 
)

omap4_cminst_module_enable - Enable the modulemode inside CLKCTRL : Module mode (SW or HW) : PRCM partition ID that the CM_CLKCTRL register exists in : CM instance register offset (*_INST macro) : Clockdomain register offset (*_CDOFFS macro) : Module clock control register offset (*_CLKCTRL macro)

No return value.

Definition at line 180 of file prcm.c.

int __weak omap4_cminst_wait_module_idle ( u8  part,
u16  inst,
s16  cdoffs,
u16  clkctrl_offs 
)

omap4_cminst_wait_module_idle - wait for a module to be in 'disabled' state : PRCM partition ID that the CM_CLKCTRL register exists in : CM instance register offset (*_INST macro) : Clockdomain register offset (*_CDOFFS macro) : Module clock control register offset (*_CLKCTRL macro)

Wait for the module IDLEST to be disabled. Some PRCM transition, like reset assertion or parent clock de-activation must wait the module to be fully disabled.

Definition at line 174 of file prcm.c.

u32 omap_prcm_get_reset_sources ( void  )

Definition at line 49 of file prcm.c.

void omap_prcm_restart ( char  mode,
const char cmd 
)

Definition at line 62 of file prcm.c.

Variable Documentation

void __iomem* cm2_base

Definition at line 44 of file prcm.c.

void __iomem* cm_base

Definition at line 43 of file prcm.c.

void __iomem* prcm_mpu_base

Definition at line 45 of file prcm.c.

void __iomem* prm_base

Definition at line 42 of file prcm.c.