Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Variables
spear320.c File Reference
#include <linux/amba/pl022.h>
#include <linux/amba/pl08x.h>
#include <linux/amba/serial.h>
#include <linux/of_platform.h>
#include <asm/hardware/vic.h>
#include <asm/mach/arch.h>
#include <plat/shirq.h>
#include <mach/generic.h>
#include <mach/spear.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   "SPEAr320: " fmt
 
#define SPEAR320_UART1_BASE   UL(0xA3000000)
 
#define SPEAR320_UART2_BASE   UL(0xA4000000)
 
#define SPEAR320_SSP0_BASE   UL(0xA5000000)
 
#define SPEAR320_SSP1_BASE   UL(0xA6000000)
 
#define SPEAR320_INT_STS_MASK_REG   0x04
 
#define SPEAR320_INT_CLR_MASK_REG   0x04
 
#define SPEAR320_INT_ENB_MASK_REG   0x08
 
#define SPEAR320_GPIO_IRQ_MASK   (1 << 0)
 
#define SPEAR320_I2S_PLAY_IRQ_MASK   (1 << 1)
 
#define SPEAR320_I2S_REC_IRQ_MASK   (1 << 2)
 
#define SPEAR320_EMI_IRQ_MASK   (1 << 7)
 
#define SPEAR320_CLCD_IRQ_MASK   (1 << 8)
 
#define SPEAR320_SPP_IRQ_MASK   (1 << 9)
 
#define SPEAR320_SDHCI_IRQ_MASK   (1 << 10)
 
#define SPEAR320_CAN_U_IRQ_MASK   (1 << 11)
 
#define SPEAR320_CAN_L_IRQ_MASK   (1 << 12)
 
#define SPEAR320_UART1_IRQ_MASK   (1 << 13)
 
#define SPEAR320_UART2_IRQ_MASK   (1 << 14)
 
#define SPEAR320_SSP1_IRQ_MASK   (1 << 15)
 
#define SPEAR320_SSP2_IRQ_MASK   (1 << 16)
 
#define SPEAR320_SMII0_IRQ_MASK   (1 << 17)
 
#define SPEAR320_MII1_SMII1_IRQ_MASK   (1 << 18)
 
#define SPEAR320_WAKEUP_SMII0_IRQ_MASK   (1 << 19)
 
#define SPEAR320_WAKEUP_MII1_SMII1_IRQ_MASK   (1 << 20)
 
#define SPEAR320_I2C1_IRQ_MASK   (1 << 21)
 
#define SPEAR320_SHIRQ_RAS1_MASK   0x000380
 
#define SPEAR320_SHIRQ_RAS3_MASK   0x000007
 
#define SPEAR320_SHIRQ_INTRCOMM_RAS_MASK   0x3FF800
 
#define SPEAR320_VIRQ_EMI   (SPEAR3XX_VIRQ_START + 0)
 
#define SPEAR320_VIRQ_CLCD   (SPEAR3XX_VIRQ_START + 1)
 
#define SPEAR320_VIRQ_SPP   (SPEAR3XX_VIRQ_START + 2)
 
#define SPEAR320_IRQ_SDHCI   SPEAR3XX_IRQ_GEN_RAS_2
 
#define SPEAR320_VIRQ_PLGPIO   (SPEAR3XX_VIRQ_START + 3)
 
#define SPEAR320_VIRQ_I2S_PLAY   (SPEAR3XX_VIRQ_START + 4)
 
#define SPEAR320_VIRQ_I2S_REC   (SPEAR3XX_VIRQ_START + 5)
 
#define SPEAR320_VIRQ_CANU   (SPEAR3XX_VIRQ_START + 6)
 
#define SPEAR320_VIRQ_CANL   (SPEAR3XX_VIRQ_START + 7)
 
#define SPEAR320_VIRQ_UART1   (SPEAR3XX_VIRQ_START + 8)
 
#define SPEAR320_VIRQ_UART2   (SPEAR3XX_VIRQ_START + 9)
 
#define SPEAR320_VIRQ_SSP1   (SPEAR3XX_VIRQ_START + 10)
 
#define SPEAR320_VIRQ_SSP2   (SPEAR3XX_VIRQ_START + 11)
 
#define SPEAR320_VIRQ_SMII0   (SPEAR3XX_VIRQ_START + 12)
 
#define SPEAR320_VIRQ_MII1_SMII1   (SPEAR3XX_VIRQ_START + 13)
 
#define SPEAR320_VIRQ_WAKEUP_SMII0   (SPEAR3XX_VIRQ_START + 14)
 
#define SPEAR320_VIRQ_WAKEUP_MII1_SMII1   (SPEAR3XX_VIRQ_START + 15)
 
#define SPEAR320_VIRQ_I2C1   (SPEAR3XX_VIRQ_START + 16)
 

Variables

struct pl08x_channel_data spear320_dma_info []
 
 map_io = spear320_map_io
 
 init_irq = spear3xx_dt_init_irq
 
 handle_irq = vic_handle_irq
 
 timer = &spear3xx_timer
 
 init_machine = spear320_dt_init
 
 restart = spear_restart
 
 dt_compat = spear320_dt_board_compat
 

Macro Definition Documentation

#define pr_fmt (   fmt)    "SPEAr320: " fmt

Definition at line 14 of file spear320.c.

#define SPEAR320_CAN_L_IRQ_MASK   (1 << 12)

Definition at line 43 of file spear320.c.

#define SPEAR320_CAN_U_IRQ_MASK   (1 << 11)

Definition at line 42 of file spear320.c.

#define SPEAR320_CLCD_IRQ_MASK   (1 << 8)

Definition at line 39 of file spear320.c.

#define SPEAR320_EMI_IRQ_MASK   (1 << 7)

Definition at line 38 of file spear320.c.

#define SPEAR320_GPIO_IRQ_MASK   (1 << 0)

Definition at line 35 of file spear320.c.

#define SPEAR320_I2C1_IRQ_MASK   (1 << 21)

Definition at line 52 of file spear320.c.

#define SPEAR320_I2S_PLAY_IRQ_MASK   (1 << 1)

Definition at line 36 of file spear320.c.

#define SPEAR320_I2S_REC_IRQ_MASK   (1 << 2)

Definition at line 37 of file spear320.c.

#define SPEAR320_INT_CLR_MASK_REG   0x04

Definition at line 33 of file spear320.c.

#define SPEAR320_INT_ENB_MASK_REG   0x08

Definition at line 34 of file spear320.c.

#define SPEAR320_INT_STS_MASK_REG   0x04

Definition at line 32 of file spear320.c.

#define SPEAR320_IRQ_SDHCI   SPEAR3XX_IRQ_GEN_RAS_2

Definition at line 65 of file spear320.c.

#define SPEAR320_MII1_SMII1_IRQ_MASK   (1 << 18)

Definition at line 49 of file spear320.c.

#define SPEAR320_SDHCI_IRQ_MASK   (1 << 10)

Definition at line 41 of file spear320.c.

#define SPEAR320_SHIRQ_INTRCOMM_RAS_MASK   0x3FF800

Definition at line 56 of file spear320.c.

#define SPEAR320_SHIRQ_RAS1_MASK   0x000380

Definition at line 54 of file spear320.c.

#define SPEAR320_SHIRQ_RAS3_MASK   0x000007

Definition at line 55 of file spear320.c.

#define SPEAR320_SMII0_IRQ_MASK   (1 << 17)

Definition at line 48 of file spear320.c.

#define SPEAR320_SPP_IRQ_MASK   (1 << 9)

Definition at line 40 of file spear320.c.

#define SPEAR320_SSP0_BASE   UL(0xA5000000)

Definition at line 28 of file spear320.c.

#define SPEAR320_SSP1_BASE   UL(0xA6000000)

Definition at line 29 of file spear320.c.

#define SPEAR320_SSP1_IRQ_MASK   (1 << 15)

Definition at line 46 of file spear320.c.

#define SPEAR320_SSP2_IRQ_MASK   (1 << 16)

Definition at line 47 of file spear320.c.

#define SPEAR320_UART1_BASE   UL(0xA3000000)

Definition at line 26 of file spear320.c.

#define SPEAR320_UART1_IRQ_MASK   (1 << 13)

Definition at line 44 of file spear320.c.

#define SPEAR320_UART2_BASE   UL(0xA4000000)

Definition at line 27 of file spear320.c.

#define SPEAR320_UART2_IRQ_MASK   (1 << 14)

Definition at line 45 of file spear320.c.

#define SPEAR320_VIRQ_CANL   (SPEAR3XX_VIRQ_START + 7)

Definition at line 74 of file spear320.c.

#define SPEAR320_VIRQ_CANU   (SPEAR3XX_VIRQ_START + 6)

Definition at line 73 of file spear320.c.

#define SPEAR320_VIRQ_CLCD   (SPEAR3XX_VIRQ_START + 1)

Definition at line 61 of file spear320.c.

#define SPEAR320_VIRQ_EMI   (SPEAR3XX_VIRQ_START + 0)

Definition at line 60 of file spear320.c.

#define SPEAR320_VIRQ_I2C1   (SPEAR3XX_VIRQ_START + 16)

Definition at line 83 of file spear320.c.

#define SPEAR320_VIRQ_I2S_PLAY   (SPEAR3XX_VIRQ_START + 4)

Definition at line 69 of file spear320.c.

#define SPEAR320_VIRQ_I2S_REC   (SPEAR3XX_VIRQ_START + 5)

Definition at line 70 of file spear320.c.

#define SPEAR320_VIRQ_MII1_SMII1   (SPEAR3XX_VIRQ_START + 13)

Definition at line 80 of file spear320.c.

#define SPEAR320_VIRQ_PLGPIO   (SPEAR3XX_VIRQ_START + 3)

Definition at line 68 of file spear320.c.

#define SPEAR320_VIRQ_SMII0   (SPEAR3XX_VIRQ_START + 12)

Definition at line 79 of file spear320.c.

#define SPEAR320_VIRQ_SPP   (SPEAR3XX_VIRQ_START + 2)

Definition at line 62 of file spear320.c.

#define SPEAR320_VIRQ_SSP1   (SPEAR3XX_VIRQ_START + 10)

Definition at line 77 of file spear320.c.

#define SPEAR320_VIRQ_SSP2   (SPEAR3XX_VIRQ_START + 11)

Definition at line 78 of file spear320.c.

#define SPEAR320_VIRQ_UART1   (SPEAR3XX_VIRQ_START + 8)

Definition at line 75 of file spear320.c.

#define SPEAR320_VIRQ_UART2   (SPEAR3XX_VIRQ_START + 9)

Definition at line 76 of file spear320.c.

#define SPEAR320_VIRQ_WAKEUP_MII1_SMII1   (SPEAR3XX_VIRQ_START + 15)

Definition at line 82 of file spear320.c.

#define SPEAR320_VIRQ_WAKEUP_SMII0   (SPEAR3XX_VIRQ_START + 14)

Definition at line 81 of file spear320.c.

#define SPEAR320_WAKEUP_MII1_SMII1_IRQ_MASK   (1 << 20)

Definition at line 51 of file spear320.c.

#define SPEAR320_WAKEUP_SMII0_IRQ_MASK   (1 << 19)

Definition at line 50 of file spear320.c.

Variable Documentation

dt_compat = spear320_dt_board_compat

Definition at line 479 of file spear320.c.

handle_irq = vic_handle_irq

Definition at line 475 of file spear320.c.

Definition at line 474 of file spear320.c.

init_machine = spear320_dt_init

Definition at line 477 of file spear320.c.

map_io = spear320_map_io

Definition at line 473 of file spear320.c.

restart = spear_restart

Definition at line 478 of file spear320.c.

struct pl08x_channel_data spear320_dma_info[]

Definition at line 210 of file spear320.c.

Definition at line 476 of file spear320.c.