Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Variables
mach-mx21ads.c File Reference
#include <linux/platform_device.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/physmap.h>
#include <linux/gpio.h>
#include <mach/common.h>
#include <mach/hardware.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
#include <asm/mach/time.h>
#include <asm/mach/map.h>
#include <mach/iomux-mx21.h>
#include "devices-imx21.h"

Go to the source code of this file.

Macros

#define MX21ADS_MMIO_BASE_ADDR   0xf5000000
 
#define MX21ADS_MMIO_SIZE   0xc00000
 
#define MX21ADS_REG_ADDR(offset)
 
#define MX21ADS_CS8900A_MMIO_SIZE   0x200000
 
#define MX21ADS_CS8900A_IRQ_GPIO   IMX_GPIO_NR(5, 11)
 
#define MX21ADS_ST16C255_IOBASE_REG   MX21ADS_REG_ADDR(0x200000)
 
#define MX21ADS_VERSION_REG   MX21ADS_REG_ADDR(0x400000)
 
#define MX21ADS_IO_REG   MX21ADS_REG_ADDR(0x800000)
 
#define MX21ADS_IO_SD_WP   0x0001 /* read */
 
#define MX21ADS_IO_TP6   0x0001 /* write */
 
#define MX21ADS_IO_SW_SEL   0x0002 /* read */
 
#define MX21ADS_IO_TP7   0x0002 /* write */
 
#define MX21ADS_IO_RESET_E_UART   0x0004
 
#define MX21ADS_IO_RESET_BASE   0x0008
 
#define MX21ADS_IO_CSI_CTL2   0x0010
 
#define MX21ADS_IO_CSI_CTL1   0x0020
 
#define MX21ADS_IO_CSI_CTL0   0x0040
 
#define MX21ADS_IO_UART1_EN   0x0080
 
#define MX21ADS_IO_UART4_EN   0x0100
 
#define MX21ADS_IO_LCDON   0x0200
 
#define MX21ADS_IO_IRDA_EN   0x0400
 
#define MX21ADS_IO_IRDA_FIR_SEL   0x0800
 
#define MX21ADS_IO_IRDA_MD0_B   0x1000
 
#define MX21ADS_IO_IRDA_MD1   0x2000
 
#define MX21ADS_IO_LED4_ON   0x4000
 
#define MX21ADS_IO_LED3_ON   0x8000
 

Variables

 atag_offset = 0x100
 
 map_io = mx21ads_map_io
 
 init_early = imx21_init_early
 
 init_irq = mx21_init_irq
 
 handle_irq = imx21_handle_irq
 
 timer = &mx21ads_timer
 
 init_machine = mx21ads_board_init
 
 restart = mxc_restart
 

Macro Definition Documentation

#define MX21ADS_CS8900A_IRQ_GPIO   IMX_GPIO_NR(5, 11)

Definition at line 41 of file mach-mx21ads.c.

#define MX21ADS_CS8900A_MMIO_SIZE   0x200000

Definition at line 40 of file mach-mx21ads.c.

#define MX21ADS_IO_CSI_CTL0   0x0040

Definition at line 55 of file mach-mx21ads.c.

#define MX21ADS_IO_CSI_CTL1   0x0020

Definition at line 54 of file mach-mx21ads.c.

#define MX21ADS_IO_CSI_CTL2   0x0010

Definition at line 53 of file mach-mx21ads.c.

#define MX21ADS_IO_IRDA_EN   0x0400

Definition at line 59 of file mach-mx21ads.c.

#define MX21ADS_IO_IRDA_FIR_SEL   0x0800

Definition at line 60 of file mach-mx21ads.c.

#define MX21ADS_IO_IRDA_MD0_B   0x1000

Definition at line 61 of file mach-mx21ads.c.

#define MX21ADS_IO_IRDA_MD1   0x2000

Definition at line 62 of file mach-mx21ads.c.

#define MX21ADS_IO_LCDON   0x0200

Definition at line 58 of file mach-mx21ads.c.

#define MX21ADS_IO_LED3_ON   0x8000

Definition at line 64 of file mach-mx21ads.c.

#define MX21ADS_IO_LED4_ON   0x4000

Definition at line 63 of file mach-mx21ads.c.

#define MX21ADS_IO_REG   MX21ADS_REG_ADDR(0x800000)

Definition at line 44 of file mach-mx21ads.c.

#define MX21ADS_IO_RESET_BASE   0x0008

Definition at line 52 of file mach-mx21ads.c.

#define MX21ADS_IO_RESET_E_UART   0x0004

Definition at line 51 of file mach-mx21ads.c.

#define MX21ADS_IO_SD_WP   0x0001 /* read */

Definition at line 47 of file mach-mx21ads.c.

#define MX21ADS_IO_SW_SEL   0x0002 /* read */

Definition at line 49 of file mach-mx21ads.c.

#define MX21ADS_IO_TP6   0x0001 /* write */

Definition at line 48 of file mach-mx21ads.c.

#define MX21ADS_IO_TP7   0x0002 /* write */

Definition at line 50 of file mach-mx21ads.c.

#define MX21ADS_IO_UART1_EN   0x0080

Definition at line 56 of file mach-mx21ads.c.

#define MX21ADS_IO_UART4_EN   0x0100

Definition at line 57 of file mach-mx21ads.c.

#define MX21ADS_MMIO_BASE_ADDR   0xf5000000

Definition at line 34 of file mach-mx21ads.c.

#define MX21ADS_MMIO_SIZE   0xc00000

Definition at line 35 of file mach-mx21ads.c.

#define MX21ADS_REG_ADDR (   offset)
Value:

Definition at line 37 of file mach-mx21ads.c.

#define MX21ADS_ST16C255_IOBASE_REG   MX21ADS_REG_ADDR(0x200000)

Definition at line 42 of file mach-mx21ads.c.

#define MX21ADS_VERSION_REG   MX21ADS_REG_ADDR(0x400000)

Definition at line 43 of file mach-mx21ads.c.

Variable Documentation

atag_offset = 0x100

Definition at line 327 of file mach-mx21ads.c.

handle_irq = imx21_handle_irq

Definition at line 331 of file mach-mx21ads.c.

init_early = imx21_init_early

Definition at line 329 of file mach-mx21ads.c.

init_irq = mx21_init_irq

Definition at line 330 of file mach-mx21ads.c.

init_machine = mx21ads_board_init

Definition at line 333 of file mach-mx21ads.c.

map_io = mx21ads_map_io

Definition at line 328 of file mach-mx21ads.c.

restart = mxc_restart

Definition at line 334 of file mach-mx21ads.c.

timer = &mx21ads_timer

Definition at line 332 of file mach-mx21ads.c.