Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
3ds_debugboard.c File Reference
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/irqdomain.h>
#include <linux/io.h>
#include <linux/platform_device.h>
#include <linux/gpio.h>
#include <linux/module.h>
#include <linux/smsc911x.h>
#include <linux/regulator/machine.h>
#include <linux/regulator/fixed.h>
#include <mach/hardware.h>

Go to the source code of this file.

Macros

#define LAN9217_BASE_ADDR(n)   (n + 0x0)
 
#define UARTA_BASE_ADDR(n)   (n + 0x8000)
 
#define UARTB_BASE_ADDR(n)   (n + 0x10000)
 
#define BOARD_IO_ADDR(n)   (n + 0x20000)
 
#define LED_SWITCH_REG   0x00
 
#define SWITCH_BUTTONS_REG   0x08
 
#define INTR_STATUS_REG   0x10
 
#define INTR_MASK_REG   0x38
 
#define INTR_RESET_REG   0x20
 
#define MAGIC_NUMBER1_REG   0x40
 
#define MAGIC_NUMBER2_REG   0x48
 
#define CPLD_CODE_VER_REG   0x50
 
#define MAGIC_NUMBER3_REG   0x58
 
#define MODULE_RESET_REG   0x60
 
#define MCU_BOARD_ID_REG   0x68
 
#define MXC_MAX_EXP_IO_LINES   16
 
#define EXPIO_INT_ENET   0
 
#define EXPIO_INT_XUART_A   1
 
#define EXPIO_INT_XUART_B   2
 
#define EXPIO_INT_BUTTON_A   3
 
#define EXPIO_INT_BUTTON_B   4
 

Functions

int __init mxc_expio_init (u32 base, u32 intr_gpio)
 

Macro Definition Documentation

#define BOARD_IO_ADDR (   n)    (n + 0x20000)

Definition at line 32 of file 3ds_debugboard.c.

#define CPLD_CODE_VER_REG   0x50

Definition at line 45 of file 3ds_debugboard.c.

#define EXPIO_INT_BUTTON_A   3

Definition at line 59 of file 3ds_debugboard.c.

#define EXPIO_INT_BUTTON_B   4

Definition at line 60 of file 3ds_debugboard.c.

#define EXPIO_INT_ENET   0

Definition at line 56 of file 3ds_debugboard.c.

#define EXPIO_INT_XUART_A   1

Definition at line 57 of file 3ds_debugboard.c.

#define EXPIO_INT_XUART_B   2

Definition at line 58 of file 3ds_debugboard.c.

#define INTR_MASK_REG   0x38

Definition at line 39 of file 3ds_debugboard.c.

#define INTR_RESET_REG   0x20

Definition at line 40 of file 3ds_debugboard.c.

#define INTR_STATUS_REG   0x10

Definition at line 38 of file 3ds_debugboard.c.

#define LAN9217_BASE_ADDR (   n)    (n + 0x0)

Definition at line 27 of file 3ds_debugboard.c.

#define LED_SWITCH_REG   0x00

Definition at line 34 of file 3ds_debugboard.c.

#define MAGIC_NUMBER1_REG   0x40

Definition at line 42 of file 3ds_debugboard.c.

#define MAGIC_NUMBER2_REG   0x48

Definition at line 43 of file 3ds_debugboard.c.

#define MAGIC_NUMBER3_REG   0x58

Definition at line 47 of file 3ds_debugboard.c.

#define MCU_BOARD_ID_REG   0x68

Definition at line 51 of file 3ds_debugboard.c.

#define MODULE_RESET_REG   0x60

Definition at line 49 of file 3ds_debugboard.c.

#define MXC_MAX_EXP_IO_LINES   16

Definition at line 53 of file 3ds_debugboard.c.

#define SWITCH_BUTTONS_REG   0x08

Definition at line 36 of file 3ds_debugboard.c.

#define UARTA_BASE_ADDR (   n)    (n + 0x8000)

Definition at line 29 of file 3ds_debugboard.c.

#define UARTB_BASE_ADDR (   n)    (n + 0x10000)

Definition at line 30 of file 3ds_debugboard.c.

Function Documentation

int __init mxc_expio_init ( u32  base,
u32  intr_gpio 
)

Definition at line 155 of file 3ds_debugboard.c.