Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Variables
spear310.c File Reference
#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)   "SPEAr310: " fmt
 
#define SPEAR310_UART1_BASE   UL(0xB2000000)
 
#define SPEAR310_UART2_BASE   UL(0xB2080000)
 
#define SPEAR310_UART3_BASE   UL(0xB2100000)
 
#define SPEAR310_UART4_BASE   UL(0xB2180000)
 
#define SPEAR310_UART5_BASE   UL(0xB2200000)
 
#define SPEAR310_SOC_CONFIG_BASE   UL(0xB4000000)
 
#define SPEAR310_INT_STS_MASK_REG   0x04
 
#define SPEAR310_SMII0_IRQ_MASK   (1 << 0)
 
#define SPEAR310_SMII1_IRQ_MASK   (1 << 1)
 
#define SPEAR310_SMII2_IRQ_MASK   (1 << 2)
 
#define SPEAR310_SMII3_IRQ_MASK   (1 << 3)
 
#define SPEAR310_WAKEUP_SMII0_IRQ_MASK   (1 << 4)
 
#define SPEAR310_WAKEUP_SMII1_IRQ_MASK   (1 << 5)
 
#define SPEAR310_WAKEUP_SMII2_IRQ_MASK   (1 << 6)
 
#define SPEAR310_WAKEUP_SMII3_IRQ_MASK   (1 << 7)
 
#define SPEAR310_UART1_IRQ_MASK   (1 << 8)
 
#define SPEAR310_UART2_IRQ_MASK   (1 << 9)
 
#define SPEAR310_UART3_IRQ_MASK   (1 << 10)
 
#define SPEAR310_UART4_IRQ_MASK   (1 << 11)
 
#define SPEAR310_UART5_IRQ_MASK   (1 << 12)
 
#define SPEAR310_EMI_IRQ_MASK   (1 << 13)
 
#define SPEAR310_TDM_HDLC_IRQ_MASK   (1 << 14)
 
#define SPEAR310_RS485_0_IRQ_MASK   (1 << 15)
 
#define SPEAR310_RS485_1_IRQ_MASK   (1 << 16)
 
#define SPEAR310_SHIRQ_RAS1_MASK   0x000FF
 
#define SPEAR310_SHIRQ_RAS2_MASK   0x01F00
 
#define SPEAR310_SHIRQ_RAS3_MASK   0x02000
 
#define SPEAR310_SHIRQ_INTRCOMM_RAS_MASK   0x1C000
 
#define SPEAR310_VIRQ_SMII0   (SPEAR3XX_VIRQ_START + 0)
 
#define SPEAR310_VIRQ_SMII1   (SPEAR3XX_VIRQ_START + 1)
 
#define SPEAR310_VIRQ_SMII2   (SPEAR3XX_VIRQ_START + 2)
 
#define SPEAR310_VIRQ_SMII3   (SPEAR3XX_VIRQ_START + 3)
 
#define SPEAR310_VIRQ_WAKEUP_SMII0   (SPEAR3XX_VIRQ_START + 4)
 
#define SPEAR310_VIRQ_WAKEUP_SMII1   (SPEAR3XX_VIRQ_START + 5)
 
#define SPEAR310_VIRQ_WAKEUP_SMII2   (SPEAR3XX_VIRQ_START + 6)
 
#define SPEAR310_VIRQ_WAKEUP_SMII3   (SPEAR3XX_VIRQ_START + 7)
 
#define SPEAR310_VIRQ_UART1   (SPEAR3XX_VIRQ_START + 8)
 
#define SPEAR310_VIRQ_UART2   (SPEAR3XX_VIRQ_START + 9)
 
#define SPEAR310_VIRQ_UART3   (SPEAR3XX_VIRQ_START + 10)
 
#define SPEAR310_VIRQ_UART4   (SPEAR3XX_VIRQ_START + 11)
 
#define SPEAR310_VIRQ_UART5   (SPEAR3XX_VIRQ_START + 12)
 
#define SPEAR310_VIRQ_EMI   (SPEAR3XX_VIRQ_START + 13)
 
#define SPEAR310_VIRQ_PLGPIO   (SPEAR3XX_VIRQ_START + 14)
 
#define SPEAR310_VIRQ_TDM_HDLC   (SPEAR3XX_VIRQ_START + 15)
 
#define SPEAR310_VIRQ_RS485_0   (SPEAR3XX_VIRQ_START + 16)
 
#define SPEAR310_VIRQ_RS485_1   (SPEAR3XX_VIRQ_START + 17)
 

Variables

struct pl08x_channel_data spear310_dma_info []
 
 map_io = spear310_map_io
 
 init_irq = spear3xx_dt_init_irq
 
 handle_irq = vic_handle_irq
 
 timer = &spear3xx_timer
 
 init_machine = spear310_dt_init
 
 restart = spear_restart
 
 dt_compat = spear310_dt_board_compat
 

Macro Definition Documentation

#define pr_fmt (   fmt)    "SPEAr310: " fmt

Definition at line 14 of file spear310.c.

#define SPEAR310_EMI_IRQ_MASK   (1 << 13)

Definition at line 47 of file spear310.c.

#define SPEAR310_INT_STS_MASK_REG   0x04

Definition at line 33 of file spear310.c.

#define SPEAR310_RS485_0_IRQ_MASK   (1 << 15)

Definition at line 49 of file spear310.c.

#define SPEAR310_RS485_1_IRQ_MASK   (1 << 16)

Definition at line 50 of file spear310.c.

#define SPEAR310_SHIRQ_INTRCOMM_RAS_MASK   0x1C000

Definition at line 55 of file spear310.c.

#define SPEAR310_SHIRQ_RAS1_MASK   0x000FF

Definition at line 52 of file spear310.c.

#define SPEAR310_SHIRQ_RAS2_MASK   0x01F00

Definition at line 53 of file spear310.c.

#define SPEAR310_SHIRQ_RAS3_MASK   0x02000

Definition at line 54 of file spear310.c.

#define SPEAR310_SMII0_IRQ_MASK   (1 << 0)

Definition at line 34 of file spear310.c.

#define SPEAR310_SMII1_IRQ_MASK   (1 << 1)

Definition at line 35 of file spear310.c.

#define SPEAR310_SMII2_IRQ_MASK   (1 << 2)

Definition at line 36 of file spear310.c.

#define SPEAR310_SMII3_IRQ_MASK   (1 << 3)

Definition at line 37 of file spear310.c.

#define SPEAR310_SOC_CONFIG_BASE   UL(0xB4000000)

Definition at line 30 of file spear310.c.

#define SPEAR310_TDM_HDLC_IRQ_MASK   (1 << 14)

Definition at line 48 of file spear310.c.

#define SPEAR310_UART1_BASE   UL(0xB2000000)

Definition at line 25 of file spear310.c.

#define SPEAR310_UART1_IRQ_MASK   (1 << 8)

Definition at line 42 of file spear310.c.

#define SPEAR310_UART2_BASE   UL(0xB2080000)

Definition at line 26 of file spear310.c.

#define SPEAR310_UART2_IRQ_MASK   (1 << 9)

Definition at line 43 of file spear310.c.

#define SPEAR310_UART3_BASE   UL(0xB2100000)

Definition at line 27 of file spear310.c.

#define SPEAR310_UART3_IRQ_MASK   (1 << 10)

Definition at line 44 of file spear310.c.

#define SPEAR310_UART4_BASE   UL(0xB2180000)

Definition at line 28 of file spear310.c.

#define SPEAR310_UART4_IRQ_MASK   (1 << 11)

Definition at line 45 of file spear310.c.

#define SPEAR310_UART5_BASE   UL(0xB2200000)

Definition at line 29 of file spear310.c.

#define SPEAR310_UART5_IRQ_MASK   (1 << 12)

Definition at line 46 of file spear310.c.

#define SPEAR310_VIRQ_EMI   (SPEAR3XX_VIRQ_START + 13)

Definition at line 76 of file spear310.c.

#define SPEAR310_VIRQ_PLGPIO   (SPEAR3XX_VIRQ_START + 14)

Definition at line 77 of file spear310.c.

#define SPEAR310_VIRQ_RS485_0   (SPEAR3XX_VIRQ_START + 16)

Definition at line 81 of file spear310.c.

#define SPEAR310_VIRQ_RS485_1   (SPEAR3XX_VIRQ_START + 17)

Definition at line 82 of file spear310.c.

#define SPEAR310_VIRQ_SMII0   (SPEAR3XX_VIRQ_START + 0)

Definition at line 59 of file spear310.c.

#define SPEAR310_VIRQ_SMII1   (SPEAR3XX_VIRQ_START + 1)

Definition at line 60 of file spear310.c.

#define SPEAR310_VIRQ_SMII2   (SPEAR3XX_VIRQ_START + 2)

Definition at line 61 of file spear310.c.

#define SPEAR310_VIRQ_SMII3   (SPEAR3XX_VIRQ_START + 3)

Definition at line 62 of file spear310.c.

#define SPEAR310_VIRQ_TDM_HDLC   (SPEAR3XX_VIRQ_START + 15)

Definition at line 80 of file spear310.c.

#define SPEAR310_VIRQ_UART1   (SPEAR3XX_VIRQ_START + 8)

Definition at line 69 of file spear310.c.

#define SPEAR310_VIRQ_UART2   (SPEAR3XX_VIRQ_START + 9)

Definition at line 70 of file spear310.c.

#define SPEAR310_VIRQ_UART3   (SPEAR3XX_VIRQ_START + 10)

Definition at line 71 of file spear310.c.

#define SPEAR310_VIRQ_UART4   (SPEAR3XX_VIRQ_START + 11)

Definition at line 72 of file spear310.c.

#define SPEAR310_VIRQ_UART5   (SPEAR3XX_VIRQ_START + 12)

Definition at line 73 of file spear310.c.

#define SPEAR310_VIRQ_WAKEUP_SMII0   (SPEAR3XX_VIRQ_START + 4)

Definition at line 63 of file spear310.c.

#define SPEAR310_VIRQ_WAKEUP_SMII1   (SPEAR3XX_VIRQ_START + 5)

Definition at line 64 of file spear310.c.

#define SPEAR310_VIRQ_WAKEUP_SMII2   (SPEAR3XX_VIRQ_START + 6)

Definition at line 65 of file spear310.c.

#define SPEAR310_VIRQ_WAKEUP_SMII3   (SPEAR3XX_VIRQ_START + 7)

Definition at line 66 of file spear310.c.

#define SPEAR310_WAKEUP_SMII0_IRQ_MASK   (1 << 4)

Definition at line 38 of file spear310.c.

#define SPEAR310_WAKEUP_SMII1_IRQ_MASK   (1 << 5)

Definition at line 39 of file spear310.c.

#define SPEAR310_WAKEUP_SMII2_IRQ_MASK   (1 << 6)

Definition at line 40 of file spear310.c.

#define SPEAR310_WAKEUP_SMII3_IRQ_MASK   (1 << 7)

Definition at line 41 of file spear310.c.

Variable Documentation

dt_compat = spear310_dt_board_compat

Definition at line 464 of file spear310.c.

handle_irq = vic_handle_irq

Definition at line 460 of file spear310.c.

Definition at line 459 of file spear310.c.

init_machine = spear310_dt_init

Definition at line 462 of file spear310.c.

map_io = spear310_map_io

Definition at line 458 of file spear310.c.

restart = spear_restart

Definition at line 463 of file spear310.c.

struct pl08x_channel_data spear310_dma_info[]

Definition at line 202 of file spear310.c.

Definition at line 461 of file spear310.c.