Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
control.c File Reference
#include <linux/kernel.h>
#include <linux/io.h>
#include <plat/sdrc.h>
#include "soc.h"
#include "iomap.h"
#include "common.h"
#include "cm-regbits-34xx.h"
#include "prm-regbits-34xx.h"
#include "prm2xxx_3xxx.h"
#include "cm2xxx_3xxx.h"
#include "sdrc.h"
#include "pm.h"
#include "control.h"

Go to the source code of this file.

Macros

#define START_PADCONF_SAVE   0x2
 
#define PADCONF_SAVE_DONE   0x1
 
#define OMAP_CTRL_REGADDR(reg)   (omap2_ctrl_base + (reg))
 
#define OMAP4_CTRL_PAD_REGADDR(reg)   (omap4_ctrl_pad_base + (reg))
 

Functions

void __init omap2_set_globals_control (struct omap_globals *omap2_globals)
 
void __iomemomap_ctrl_base_get (void)
 
u8 omap_ctrl_readb (u16 offset)
 
u16 omap_ctrl_readw (u16 offset)
 
u32 omap_ctrl_readl (u16 offset)
 
void omap_ctrl_writeb (u8 val, u16 offset)
 
void omap_ctrl_writew (u16 val, u16 offset)
 
void omap_ctrl_writel (u32 val, u16 offset)
 
u32 omap4_ctrl_pad_readl (u16 offset)
 
void omap4_ctrl_pad_writel (u32 val, u16 offset)
 
void omap_ctrl_write_dsp_boot_addr (u32 bootaddr)
 
void omap_ctrl_write_dsp_boot_mode (u8 bootmode)
 

Macro Definition Documentation

#define OMAP4_CTRL_PAD_REGADDR (   reg)    (omap4_ctrl_pad_base + (reg))

Definition at line 150 of file control.c.

#define OMAP_CTRL_REGADDR (   reg)    (omap2_ctrl_base + (reg))

Definition at line 149 of file control.c.

#define PADCONF_SAVE_DONE   0x1

Definition at line 33 of file control.c.

#define START_PADCONF_SAVE   0x2

Definition at line 32 of file control.c.

Function Documentation

void __init omap2_set_globals_control ( struct omap_globals omap2_globals)

Definition at line 152 of file control.c.

u32 omap4_ctrl_pad_readl ( u16  offset)

Definition at line 203 of file control.c.

void omap4_ctrl_pad_writel ( u32  val,
u16  offset 
)

Definition at line 208 of file control.c.

void __iomem* omap_ctrl_base_get ( void  )

Definition at line 161 of file control.c.

u8 omap_ctrl_readb ( u16  offset)

Definition at line 166 of file control.c.

u32 omap_ctrl_readl ( u16  offset)

Definition at line 176 of file control.c.

u16 omap_ctrl_readw ( u16  offset)

Definition at line 171 of file control.c.

void omap_ctrl_write_dsp_boot_addr ( u32  bootaddr)

omap_ctrl_write_dsp_boot_addr - set boot address for a remote processor : physical address of the boot loader

Set boot address for the boot loader of a supported processor when a power ON sequence occurs.

Definition at line 251 of file control.c.

void omap_ctrl_write_dsp_boot_mode ( u8  bootmode)

omap_ctrl_write_dsp_boot_mode - set boot mode for a remote processor : 8-bit value to pass to some boot code

Sets boot mode for the boot loader of a supported processor when a power ON sequence occurs.

Definition at line 273 of file control.c.

void omap_ctrl_writeb ( u8  val,
u16  offset 
)

Definition at line 181 of file control.c.

void omap_ctrl_writel ( u32  val,
u16  offset 
)

Definition at line 191 of file control.c.

void omap_ctrl_writew ( u16  val,
u16  offset 
)

Definition at line 186 of file control.c.