Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
dsp-clock.c File Reference
#include <linux/types.h>
#include <dspbridge/host_os.h>
#include <plat/dmtimer.h>
#include <linux/platform_data/asoc-ti-mcbsp.h>
#include <dspbridge/dbdefs.h>
#include <dspbridge/drv.h>
#include <dspbridge/dev.h>
#include "_tiomap.h"
#include <dspbridge/clk.h>

Go to the source code of this file.

Data Structures

struct  dsp_ssi


#define L4_34XX_BASE   0x48000000
#define OMAP_SSI_OFFSET   0x58000
#define OMAP_SSI_SIZE   0x1000
#define SSI_AUTOIDLE   (1 << 0)
#define SSI_SIDLE_SMARTIDLE   (2 << 3)
#define SSI_MIDLE_NOIDLE   (1 << 12)
#define IVA2_CLK   0
#define GPT_CLK   1
#define WDT_CLK   2
#define MCBSP_CLK   3
#define SSI_CLK   4
#define DMT_ID(id)   ((id) + 4)
#define DM_TIMER_CLOCKS   4
#define MCBSP_ID(id)   ((id) - 6)


void dsp_clk_exit (void)
void dsp_clk_init (void)
void dsp_gpt_wait_overflow (short int clk_id, unsigned int load)
int dsp_clk_enable (enum dsp_clk_id clk_id)
u32 dsp_clock_enable_all (u32 dsp_per_clocks)
int dsp_clk_disable (enum dsp_clk_id clk_id)
u32 dsp_clock_disable_all (u32 dsp_per_clocks)
u32 dsp_clk_get_iva2_rate (void)
void ssi_clk_prepare (bool FLAG)


struct clkiva2_clk

Macro Definition Documentation

#define DM_TIMER_CLOCKS   4

Definition at line 56 of file dsp-clock.c.

#define DMT_ID (   id)    ((id) + 4)

Definition at line 55 of file dsp-clock.c.

#define GPT_CLK   1

Definition at line 49 of file dsp-clock.c.

#define IVA2_CLK   0

Definition at line 48 of file dsp-clock.c.

#define L4_34XX_BASE   0x48000000

Definition at line 19 of file dsp-clock.c.

#define MCBSP_CLK   3

Definition at line 51 of file dsp-clock.c.

#define MCBSP_ID (   id)    ((id) - 6)

Definition at line 59 of file dsp-clock.c.

#define OMAP_SSI_OFFSET   0x58000

Definition at line 39 of file dsp-clock.c.

#define OMAP_SSI_SIZE   0x1000

Definition at line 40 of file dsp-clock.c.


Definition at line 41 of file dsp-clock.c.

#define SSI_AUTOIDLE   (1 << 0)

Definition at line 43 of file dsp-clock.c.

#define SSI_CLK   4

Definition at line 52 of file dsp-clock.c.

#define SSI_MIDLE_NOIDLE   (1 << 12)

Definition at line 45 of file dsp-clock.c.

#define SSI_SIDLE_SMARTIDLE   (2 << 3)

Definition at line 44 of file dsp-clock.c.

#define WDT_CLK   2

Definition at line 50 of file dsp-clock.c.

Function Documentation

int dsp_clk_disable ( enum dsp_clk_id  clk_id)

Definition at line 278 of file dsp-clock.c.

int dsp_clk_enable ( enum dsp_clk_id  clk_id)

Definition at line 202 of file dsp-clock.c.

void dsp_clk_exit ( void  )

Definition at line 115 of file dsp-clock.c.

u32 dsp_clk_get_iva2_rate ( void  )

Definition at line 343 of file dsp-clock.c.

void dsp_clk_init ( void  )

Definition at line 135 of file dsp-clock.c.

u32 dsp_clock_disable_all ( u32  dsp_per_clocks)

dsp_clock_disable_all - Disable all active clocks Driver's device context structure

This function disables all the peripheral clocks that were enabled by DSP. It is meant to be called only when DSP is entering hibernation or when DSP is in error state.

Definition at line 330 of file dsp-clock.c.

u32 dsp_clock_enable_all ( u32  dsp_per_clocks)

dsp_clock_enable_all - Enable clocks used by the DSP Driver's device context strucure

This function enables all the peripheral clocks that were requested by DSP.

Definition at line 259 of file dsp-clock.c.

void dsp_gpt_wait_overflow ( short int  clk_id,
unsigned int  load 

dsp_gpt_wait_overflow - set gpt overflow and wait for fixed timeout : GP Timer clock id. : Overflow value.

Sets an overflow interrupt for the desired GPT waiting for a timeout of 5 msecs for the interrupt to occur.

Definition at line 166 of file dsp-clock.c.

void ssi_clk_prepare ( bool  FLAG)

Definition at line 354 of file dsp-clock.c.

Variable Documentation

struct clk* iva2_clk

Definition at line 63 of file dsp-clock.c.