Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
_tiomap.h File Reference
#include <mach-omap2/powerdomain.h>
#include <mach-omap2/clockdomain.h>
#include <mach-omap2/cm2xxx_3xxx.h>
#include <mach-omap2/prm-regbits-34xx.h>
#include <mach-omap2/cm-regbits-34xx.h>
#include <dspbridge/devdefs.h>
#include <hw_defs.h>
#include <dspbridge/dspioctl.h>
#include <dspbridge/sync.h>
#include <dspbridge/clk.h>

Go to the source code of this file.

Data Structures

struct  map_l4_peripheral
 
struct  bpwr_clk_t
 
struct  bridge_dev_context
 

Macros

#define ARM_MAILBOX_START   0xfffcf000
 
#define ARM_MAILBOX_LENGTH   0x800
 
#define TESTBLOCK_ID_START   0xfffed400
 
#define TESTBLOCK_ID_LENGTH   0xff
 
#define TBC_ID_VALUE   0xB47002F
 
#define SPACE_LENGTH   0x2000
 
#define API_CLKM_DPLL_DMA   0xfffec000
 
#define ARM_INTERRUPT_OFFSET   0xb00
 
#define BIOS24XX
 
#define L4_PERIPHERAL_NULL   0x0
 
#define DSPVA_PERIPHERAL_NULL   0x0
 
#define MAX_LOCK_TLB_ENTRIES   15
 
#define L4_PERIPHERAL_PRM   0x48306000 /*PRM L4 Peripheral */
 
#define DSPVA_PERIPHERAL_PRM   0x1181e000
 
#define L4_PERIPHERAL_SCM   0x48002000 /*SCM L4 Peripheral */
 
#define DSPVA_PERIPHERAL_SCM   0x1181f000
 
#define L4_PERIPHERAL_MMU   0x5D000000 /*MMU L4 Peripheral */
 
#define DSPVA_PERIPHERAL_MMU   0x11820000
 
#define L4_PERIPHERAL_CM   0x48004000 /* Core L4, Clock Management */
 
#define DSPVA_PERIPHERAL_CM   0x1181c000
 
#define L4_PERIPHERAL_PER   0x48005000 /* PER */
 
#define DSPVA_PERIPHERAL_PER   0x1181d000
 
#define L4_PERIPHERAL_GPIO1   0x48310000
 
#define DSPVA_PERIPHERAL_GPIO1   0x11809000
 
#define L4_PERIPHERAL_GPIO2   0x49050000
 
#define DSPVA_PERIPHERAL_GPIO2   0x1180a000
 
#define L4_PERIPHERAL_GPIO3   0x49052000
 
#define DSPVA_PERIPHERAL_GPIO3   0x1180b000
 
#define L4_PERIPHERAL_GPIO4   0x49054000
 
#define DSPVA_PERIPHERAL_GPIO4   0x1180c000
 
#define L4_PERIPHERAL_GPIO5   0x49056000
 
#define DSPVA_PERIPHERAL_GPIO5   0x1180d000
 
#define L4_PERIPHERAL_IVA2WDT   0x49030000
 
#define DSPVA_PERIPHERAL_IVA2WDT   0x1180e000
 
#define L4_PERIPHERAL_DISPLAY   0x48050000
 
#define DSPVA_PERIPHERAL_DISPLAY   0x1180f000
 
#define L4_PERIPHERAL_SSI   0x48058000
 
#define DSPVA_PERIPHERAL_SSI   0x11804000
 
#define L4_PERIPHERAL_GDD   0x48059000
 
#define DSPVA_PERIPHERAL_GDD   0x11805000
 
#define L4_PERIPHERAL_SS1   0x4805a000
 
#define DSPVA_PERIPHERAL_SS1   0x11806000
 
#define L4_PERIPHERAL_SS2   0x4805b000
 
#define DSPVA_PERIPHERAL_SS2   0x11807000
 
#define L4_PERIPHERAL_CAMERA   0x480BC000
 
#define DSPVA_PERIPHERAL_CAMERA   0x11819000
 
#define L4_PERIPHERAL_SDMA   0x48056000
 
#define DSPVA_PERIPHERAL_SDMA   0x11810000 /* 0x1181d000 conflict w/ PER */
 
#define L4_PERIPHERAL_UART1   0x4806a000
 
#define DSPVA_PERIPHERAL_UART1   0x11811000
 
#define L4_PERIPHERAL_UART2   0x4806c000
 
#define DSPVA_PERIPHERAL_UART2   0x11812000
 
#define L4_PERIPHERAL_UART3   0x49020000
 
#define DSPVA_PERIPHERAL_UART3   0x11813000
 
#define L4_PERIPHERAL_MCBSP1   0x48074000
 
#define DSPVA_PERIPHERAL_MCBSP1   0x11814000
 
#define L4_PERIPHERAL_MCBSP2   0x49022000
 
#define DSPVA_PERIPHERAL_MCBSP2   0x11815000
 
#define L4_PERIPHERAL_MCBSP3   0x49024000
 
#define DSPVA_PERIPHERAL_MCBSP3   0x11816000
 
#define L4_PERIPHERAL_MCBSP4   0x49026000
 
#define DSPVA_PERIPHERAL_MCBSP4   0x11817000
 
#define L4_PERIPHERAL_MCBSP5   0x48096000
 
#define DSPVA_PERIPHERAL_MCBSP5   0x11818000
 
#define L4_PERIPHERAL_GPTIMER5   0x49038000
 
#define DSPVA_PERIPHERAL_GPTIMER5   0x11800000
 
#define L4_PERIPHERAL_GPTIMER6   0x4903a000
 
#define DSPVA_PERIPHERAL_GPTIMER6   0x11801000
 
#define L4_PERIPHERAL_GPTIMER7   0x4903c000
 
#define DSPVA_PERIPHERAL_GPTIMER7   0x11802000
 
#define L4_PERIPHERAL_GPTIMER8   0x4903e000
 
#define DSPVA_PERIPHERAL_GPTIMER8   0x11803000
 
#define L4_PERIPHERAL_SPI1   0x48098000
 
#define DSPVA_PERIPHERAL_SPI1   0x1181a000
 
#define L4_PERIPHERAL_SPI2   0x4809a000
 
#define DSPVA_PERIPHERAL_SPI2   0x1181b000
 
#define L4_PERIPHERAL_MBOX   0x48094000
 
#define DSPVA_PERIPHERAL_MBOX   0x11808000
 
#define PM_GRPSEL_BASE   0x48307000
 
#define DSPVA_GRPSEL_BASE   0x11821000
 
#define L4_PERIPHERAL_SIDETONE_MCBSP2   0x49028000
 
#define DSPVA_PERIPHERAL_SIDETONE_MCBSP2   0x11824000
 
#define L4_PERIPHERAL_SIDETONE_MCBSP3   0x4902a000
 
#define DSPVA_PERIPHERAL_SIDETONE_MCBSP3   0x11825000
 
#define MBX_PM_CLK_IDMASK   0x7F
 
#define MBX_PM_CLK_CMDSHIFT   7
 
#define MBX_PM_CLK_CMDMASK   7
 
#define MBX_CORE1_RESOURCES   7
 
#define MBX_CORE2_RESOURCES   1
 
#define MBX_PM_MAX_RESOURCES   11
 
#define BPWR_DISABLE_CLOCK   0
 
#define BPWR_ENABLE_CLOCK   1
 
#define INTH_IT_REG_OFFSET   0x00 /* Interrupt register offset */
 
#define INTH_MASK_IT_REG_OFFSET   0x04 /* Mask Interrupt reg offset */
 
#define DSP_MAILBOX1_INT   10
 
#define MB_ARM2DSP1_REG_OFFSET   0x00
 
#define MB_ARM2DSP1B_REG_OFFSET   0x04
 
#define MB_DSP2ARM1B_REG_OFFSET   0x0C
 
#define MB_ARM2DSP1_FLAG_REG_OFFSET   0x18
 
#define MB_ARM2DSP_FLAG   0x0001
 
#define MBOX_ARM2DSP   HW_MBOX_ID0
 
#define MBOX_DSP2ARM   HW_MBOX_ID1
 
#define MBOX_ARM   HW_MBOX_U0_ARM
 
#define MBOX_DSP   HW_MBOX_U1_DSP1
 
#define ENABLE   true
 
#define DISABLE   false
 
#define HIGH_LEVEL   true
 
#define LOW_LEVEL   false
 
#define CLEAR_BIT(reg, mask)   (reg &= ~mask)
 
#define SET_BIT(reg, mask)   (reg |= mask)
 
#define SET_GROUP_BITS16(reg, position, width, value)
 
#define CLEAR_BIT_INDEX(reg, index)   (reg &= ~(1 << (index)))
 

Enumerations

enum  bpwr_ext_clock_id {
  BPWR_GP_TIMER5 = 0x10, BPWR_GP_TIMER6, BPWR_GP_TIMER7, BPWR_GP_TIMER8,
  BPWR_WD_TIMER3, BPWR_MCBSP1, BPWR_MCBSP2, BPWR_MCBSP3,
  BPWR_MCBSP4, BPWR_MCBSP5, BPWR_SSI = 0x20
}
 

Functions

int sm_interrupt_dsp (struct bridge_dev_context *dev_context, u16 mb_val)
 

Variables

s32 dsp_debug
 

Macro Definition Documentation

#define API_CLKM_DPLL_DMA   0xfffec000

Definition at line 60 of file _tiomap.h.

#define ARM_INTERRUPT_OFFSET   0xb00

Definition at line 61 of file _tiomap.h.

#define ARM_MAILBOX_LENGTH   0x800

Definition at line 49 of file _tiomap.h.

#define ARM_MAILBOX_START   0xfffcf000

Definition at line 48 of file _tiomap.h.

#define BIOS24XX

Definition at line 63 of file _tiomap.h.

#define BPWR_DISABLE_CLOCK   0

Definition at line 226 of file _tiomap.h.

#define BPWR_ENABLE_CLOCK   1

Definition at line 227 of file _tiomap.h.

#define CLEAR_BIT (   reg,
  mask 
)    (reg &= ~mask)

Definition at line 309 of file _tiomap.h.

#define CLEAR_BIT_INDEX (   reg,
  index 
)    (reg &= ~(1 << (index)))

Definition at line 318 of file _tiomap.h.

#define DISABLE   false

Definition at line 303 of file _tiomap.h.

#define DSP_MAILBOX1_INT   10

Definition at line 281 of file _tiomap.h.

#define DSPVA_GRPSEL_BASE   0x11821000

Definition at line 149 of file _tiomap.h.

#define DSPVA_PERIPHERAL_CAMERA   0x11819000

Definition at line 108 of file _tiomap.h.

#define DSPVA_PERIPHERAL_CM   0x1181c000

Definition at line 77 of file _tiomap.h.

#define DSPVA_PERIPHERAL_DISPLAY   0x1180f000

Definition at line 96 of file _tiomap.h.

#define DSPVA_PERIPHERAL_GDD   0x11805000

Definition at line 101 of file _tiomap.h.

#define DSPVA_PERIPHERAL_GPIO1   0x11809000

Definition at line 82 of file _tiomap.h.

#define DSPVA_PERIPHERAL_GPIO2   0x1180a000

Definition at line 84 of file _tiomap.h.

#define DSPVA_PERIPHERAL_GPIO3   0x1180b000

Definition at line 86 of file _tiomap.h.

#define DSPVA_PERIPHERAL_GPIO4   0x1180c000

Definition at line 88 of file _tiomap.h.

#define DSPVA_PERIPHERAL_GPIO5   0x1180d000

Definition at line 90 of file _tiomap.h.

#define DSPVA_PERIPHERAL_GPTIMER5   0x11800000

Definition at line 132 of file _tiomap.h.

#define DSPVA_PERIPHERAL_GPTIMER6   0x11801000

Definition at line 134 of file _tiomap.h.

#define DSPVA_PERIPHERAL_GPTIMER7   0x11802000

Definition at line 136 of file _tiomap.h.

#define DSPVA_PERIPHERAL_GPTIMER8   0x11803000

Definition at line 138 of file _tiomap.h.

#define DSPVA_PERIPHERAL_IVA2WDT   0x1180e000

Definition at line 93 of file _tiomap.h.

#define DSPVA_PERIPHERAL_MBOX   0x11808000

Definition at line 146 of file _tiomap.h.

#define DSPVA_PERIPHERAL_MCBSP1   0x11814000

Definition at line 121 of file _tiomap.h.

#define DSPVA_PERIPHERAL_MCBSP2   0x11815000

Definition at line 123 of file _tiomap.h.

#define DSPVA_PERIPHERAL_MCBSP3   0x11816000

Definition at line 125 of file _tiomap.h.

#define DSPVA_PERIPHERAL_MCBSP4   0x11817000

Definition at line 127 of file _tiomap.h.

#define DSPVA_PERIPHERAL_MCBSP5   0x11818000

Definition at line 129 of file _tiomap.h.

#define DSPVA_PERIPHERAL_MMU   0x11820000

Definition at line 75 of file _tiomap.h.

#define DSPVA_PERIPHERAL_NULL   0x0

Definition at line 66 of file _tiomap.h.

#define DSPVA_PERIPHERAL_PER   0x1181d000

Definition at line 79 of file _tiomap.h.

#define DSPVA_PERIPHERAL_PRM   0x1181e000

Definition at line 71 of file _tiomap.h.

#define DSPVA_PERIPHERAL_SCM   0x1181f000

Definition at line 73 of file _tiomap.h.

#define DSPVA_PERIPHERAL_SDMA   0x11810000 /* 0x1181d000 conflict w/ PER */

Definition at line 111 of file _tiomap.h.

#define DSPVA_PERIPHERAL_SIDETONE_MCBSP2   0x11824000

Definition at line 152 of file _tiomap.h.

#define DSPVA_PERIPHERAL_SIDETONE_MCBSP3   0x11825000

Definition at line 154 of file _tiomap.h.

#define DSPVA_PERIPHERAL_SPI1   0x1181a000

Definition at line 141 of file _tiomap.h.

#define DSPVA_PERIPHERAL_SPI2   0x1181b000

Definition at line 143 of file _tiomap.h.

#define DSPVA_PERIPHERAL_SS1   0x11806000

Definition at line 103 of file _tiomap.h.

#define DSPVA_PERIPHERAL_SS2   0x11807000

Definition at line 105 of file _tiomap.h.

#define DSPVA_PERIPHERAL_SSI   0x11804000

Definition at line 99 of file _tiomap.h.

#define DSPVA_PERIPHERAL_UART1   0x11811000

Definition at line 114 of file _tiomap.h.

#define DSPVA_PERIPHERAL_UART2   0x11812000

Definition at line 116 of file _tiomap.h.

#define DSPVA_PERIPHERAL_UART3   0x11813000

Definition at line 118 of file _tiomap.h.

#define ENABLE   true

Definition at line 302 of file _tiomap.h.

#define HIGH_LEVEL   true

Definition at line 305 of file _tiomap.h.

#define INTH_IT_REG_OFFSET   0x00 /* Interrupt register offset */

Definition at line 278 of file _tiomap.h.

#define INTH_MASK_IT_REG_OFFSET   0x04 /* Mask Interrupt reg offset */

Definition at line 279 of file _tiomap.h.

#define L4_PERIPHERAL_CAMERA   0x480BC000

Definition at line 107 of file _tiomap.h.

#define L4_PERIPHERAL_CM   0x48004000 /* Core L4, Clock Management */

Definition at line 76 of file _tiomap.h.

#define L4_PERIPHERAL_DISPLAY   0x48050000

Definition at line 95 of file _tiomap.h.

#define L4_PERIPHERAL_GDD   0x48059000

Definition at line 100 of file _tiomap.h.

#define L4_PERIPHERAL_GPIO1   0x48310000

Definition at line 81 of file _tiomap.h.

#define L4_PERIPHERAL_GPIO2   0x49050000

Definition at line 83 of file _tiomap.h.

#define L4_PERIPHERAL_GPIO3   0x49052000

Definition at line 85 of file _tiomap.h.

#define L4_PERIPHERAL_GPIO4   0x49054000

Definition at line 87 of file _tiomap.h.

#define L4_PERIPHERAL_GPIO5   0x49056000

Definition at line 89 of file _tiomap.h.

#define L4_PERIPHERAL_GPTIMER5   0x49038000

Definition at line 131 of file _tiomap.h.

#define L4_PERIPHERAL_GPTIMER6   0x4903a000

Definition at line 133 of file _tiomap.h.

#define L4_PERIPHERAL_GPTIMER7   0x4903c000

Definition at line 135 of file _tiomap.h.

#define L4_PERIPHERAL_GPTIMER8   0x4903e000

Definition at line 137 of file _tiomap.h.

#define L4_PERIPHERAL_IVA2WDT   0x49030000

Definition at line 92 of file _tiomap.h.

#define L4_PERIPHERAL_MBOX   0x48094000

Definition at line 145 of file _tiomap.h.

#define L4_PERIPHERAL_MCBSP1   0x48074000

Definition at line 120 of file _tiomap.h.

#define L4_PERIPHERAL_MCBSP2   0x49022000

Definition at line 122 of file _tiomap.h.

#define L4_PERIPHERAL_MCBSP3   0x49024000

Definition at line 124 of file _tiomap.h.

#define L4_PERIPHERAL_MCBSP4   0x49026000

Definition at line 126 of file _tiomap.h.

#define L4_PERIPHERAL_MCBSP5   0x48096000

Definition at line 128 of file _tiomap.h.

#define L4_PERIPHERAL_MMU   0x5D000000 /*MMU L4 Peripheral */

Definition at line 74 of file _tiomap.h.

#define L4_PERIPHERAL_NULL   0x0

Definition at line 65 of file _tiomap.h.

#define L4_PERIPHERAL_PER   0x48005000 /* PER */

Definition at line 78 of file _tiomap.h.

#define L4_PERIPHERAL_PRM   0x48306000 /*PRM L4 Peripheral */

Definition at line 70 of file _tiomap.h.

#define L4_PERIPHERAL_SCM   0x48002000 /*SCM L4 Peripheral */

Definition at line 72 of file _tiomap.h.

#define L4_PERIPHERAL_SDMA   0x48056000

Definition at line 110 of file _tiomap.h.

#define L4_PERIPHERAL_SIDETONE_MCBSP2   0x49028000

Definition at line 151 of file _tiomap.h.

#define L4_PERIPHERAL_SIDETONE_MCBSP3   0x4902a000

Definition at line 153 of file _tiomap.h.

#define L4_PERIPHERAL_SPI1   0x48098000

Definition at line 140 of file _tiomap.h.

#define L4_PERIPHERAL_SPI2   0x4809a000

Definition at line 142 of file _tiomap.h.

#define L4_PERIPHERAL_SS1   0x4805a000

Definition at line 102 of file _tiomap.h.

#define L4_PERIPHERAL_SS2   0x4805b000

Definition at line 104 of file _tiomap.h.

#define L4_PERIPHERAL_SSI   0x48058000

Definition at line 98 of file _tiomap.h.

#define L4_PERIPHERAL_UART1   0x4806a000

Definition at line 113 of file _tiomap.h.

#define L4_PERIPHERAL_UART2   0x4806c000

Definition at line 115 of file _tiomap.h.

#define L4_PERIPHERAL_UART3   0x49020000

Definition at line 117 of file _tiomap.h.

#define LOW_LEVEL   false

Definition at line 306 of file _tiomap.h.

#define MAX_LOCK_TLB_ENTRIES   15

Definition at line 68 of file _tiomap.h.

#define MB_ARM2DSP1_FLAG_REG_OFFSET   0x18

Definition at line 293 of file _tiomap.h.

#define MB_ARM2DSP1_REG_OFFSET   0x00

Definition at line 287 of file _tiomap.h.

#define MB_ARM2DSP1B_REG_OFFSET   0x04

Definition at line 289 of file _tiomap.h.

#define MB_ARM2DSP_FLAG   0x0001

Definition at line 295 of file _tiomap.h.

#define MB_DSP2ARM1B_REG_OFFSET   0x0C

Definition at line 291 of file _tiomap.h.

#define MBOX_ARM   HW_MBOX_U0_ARM

Definition at line 299 of file _tiomap.h.

#define MBOX_ARM2DSP   HW_MBOX_ID0

Definition at line 297 of file _tiomap.h.

#define MBOX_DSP   HW_MBOX_U1_DSP1

Definition at line 300 of file _tiomap.h.

#define MBOX_DSP2ARM   HW_MBOX_ID1

Definition at line 298 of file _tiomap.h.

#define MBX_CORE1_RESOURCES   7

Definition at line 217 of file _tiomap.h.

#define MBX_CORE2_RESOURCES   1

Definition at line 220 of file _tiomap.h.

#define MBX_PM_CLK_CMDMASK   7

Definition at line 214 of file _tiomap.h.

#define MBX_PM_CLK_CMDSHIFT   7

Definition at line 211 of file _tiomap.h.

#define MBX_PM_CLK_IDMASK   0x7F

Definition at line 208 of file _tiomap.h.

#define MBX_PM_MAX_RESOURCES   11

Definition at line 223 of file _tiomap.h.

#define PM_GRPSEL_BASE   0x48307000

Definition at line 148 of file _tiomap.h.

#define SET_BIT (   reg,
  mask 
)    (reg |= mask)

Definition at line 310 of file _tiomap.h.

#define SET_GROUP_BITS16 (   reg,
  position,
  width,
  value 
)
Value:
do {\
reg &= ~((0xFFFF >> (16 - (width))) << (position)) ; \
reg |= ((value & (0xFFFF >> (16 - (width)))) << (position)); \
} while (0);

Definition at line 312 of file _tiomap.h.

#define SPACE_LENGTH   0x2000

Definition at line 59 of file _tiomap.h.

#define TBC_ID_VALUE   0xB47002F

Definition at line 57 of file _tiomap.h.

#define TESTBLOCK_ID_LENGTH   0xff

Definition at line 54 of file _tiomap.h.

#define TESTBLOCK_ID_START   0xfffed400

Definition at line 53 of file _tiomap.h.

Enumeration Type Documentation

Enumerator:
BPWR_GP_TIMER5 
BPWR_GP_TIMER6 
BPWR_GP_TIMER7 
BPWR_GP_TIMER8 
BPWR_WD_TIMER3 
BPWR_MCBSP1 
BPWR_MCBSP2 
BPWR_MCBSP3 
BPWR_MCBSP4 
BPWR_MCBSP5 
BPWR_SSI 

Definition at line 230 of file _tiomap.h.

Function Documentation

int sm_interrupt_dsp ( struct bridge_dev_context dev_context,
u16  mb_val 
)

Definition at line 369 of file tiomap_io.c.

Variable Documentation

s32 dsp_debug

Definition at line 184 of file dsp_core.c.