Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
board-dm365-evm.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/err.h>
#include <linux/i2c.h>
#include <linux/io.h>
#include <linux/clk.h>
#include <linux/i2c/at24.h>
#include <linux/leds.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h>
#include <linux/slab.h>
#include <linux/mtd/nand.h>
#include <linux/input.h>
#include <linux/spi/spi.h>
#include <linux/spi/eeprom.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
#include <mach/mux.h>
#include <mach/common.h>
#include <linux/platform_data/i2c-davinci.h>
#include <mach/serial.h>
#include <linux/platform_data/mmc-davinci.h>
#include <linux/platform_data/mtd-davinci.h>
#include <linux/platform_data/keyscan-davinci.h>
#include <media/tvp514x.h>
#include "davinci.h"

Go to the source code of this file.

Data Structures

struct  cpld_led
 

Macros

#define DM365_EVM_PHY_ID   "davinci_mdio-0:01"
 
#define CPLD_OFFSET(a13a8, a2a1)   (((a13a8) << 10) + ((a2a1) << 3))
 
#define CPLD_VERSION   CPLD_OFFSET(0,0) /* r/o */
 
#define CPLD_TEST   CPLD_OFFSET(0,1)
 
#define CPLD_LEDS   CPLD_OFFSET(0,2)
 
#define CPLD_MUX   CPLD_OFFSET(0,3)
 
#define CPLD_SWITCH   CPLD_OFFSET(1,0) /* r/o */
 
#define CPLD_POWER   CPLD_OFFSET(1,1)
 
#define CPLD_VIDEO   CPLD_OFFSET(1,2)
 
#define CPLD_CARDSTAT   CPLD_OFFSET(1,3) /* r/o */
 
#define CPLD_DILC_OUT   CPLD_OFFSET(2,0)
 
#define CPLD_DILC_IN   CPLD_OFFSET(2,1) /* r/o */
 
#define CPLD_IMG_DIR0   CPLD_OFFSET(2,2)
 
#define CPLD_IMG_MUX0   CPLD_OFFSET(2,3)
 
#define CPLD_IMG_MUX1   CPLD_OFFSET(3,0)
 
#define CPLD_IMG_DIR1   CPLD_OFFSET(3,1)
 
#define CPLD_IMG_MUX2   CPLD_OFFSET(3,2)
 
#define CPLD_IMG_MUX3   CPLD_OFFSET(3,3)
 
#define CPLD_IMG_DIR2   CPLD_OFFSET(4,0)
 
#define CPLD_IMG_MUX4   CPLD_OFFSET(4,1)
 
#define CPLD_IMG_MUX5   CPLD_OFFSET(4,2)
 
#define CPLD_RESETS   CPLD_OFFSET(4,3)
 
#define CPLD_CCD_DIR1   CPLD_OFFSET(0x3e,0)
 
#define CPLD_CCD_IO1   CPLD_OFFSET(0x3e,1)
 
#define CPLD_CCD_DIR2   CPLD_OFFSET(0x3e,2)
 
#define CPLD_CCD_IO2   CPLD_OFFSET(0x3e,3)
 
#define CPLD_CCD_DIR3   CPLD_OFFSET(0x3f,0)
 
#define CPLD_CCD_IO3   CPLD_OFFSET(0x3f,1)
 
#define NAND_BLOCK_SIZE   SZ_128K
 
#define TVP514X_STD_ALL   (V4L2_STD_NTSC | V4L2_STD_PAL)
 

Functions

 fs_initcall (cpld_leds_init)
 

Variables

 atag_offset = 0x100
 
 map_io = dm365_evm_map_io
 
 init_irq = davinci_irq_init
 
 timer = &davinci_timer
 
 init_machine = dm365_evm_init
 
 init_late = davinci_init_late
 
 dma_zone_size = SZ_128M
 
 restart = davinci_restart
 

Macro Definition Documentation

#define CPLD_CARDSTAT   CPLD_OFFSET(1,3) /* r/o */

Definition at line 71 of file board-dm365-evm.c.

#define CPLD_CCD_DIR1   CPLD_OFFSET(0x3e,0)

Definition at line 88 of file board-dm365-evm.c.

#define CPLD_CCD_DIR2   CPLD_OFFSET(0x3e,2)

Definition at line 90 of file board-dm365-evm.c.

#define CPLD_CCD_DIR3   CPLD_OFFSET(0x3f,0)

Definition at line 92 of file board-dm365-evm.c.

#define CPLD_CCD_IO1   CPLD_OFFSET(0x3e,1)

Definition at line 89 of file board-dm365-evm.c.

#define CPLD_CCD_IO2   CPLD_OFFSET(0x3e,3)

Definition at line 91 of file board-dm365-evm.c.

#define CPLD_CCD_IO3   CPLD_OFFSET(0x3f,1)

Definition at line 93 of file board-dm365-evm.c.

#define CPLD_DILC_IN   CPLD_OFFSET(2,1) /* r/o */

Definition at line 74 of file board-dm365-evm.c.

#define CPLD_DILC_OUT   CPLD_OFFSET(2,0)

Definition at line 73 of file board-dm365-evm.c.

#define CPLD_IMG_DIR0   CPLD_OFFSET(2,2)

Definition at line 76 of file board-dm365-evm.c.

#define CPLD_IMG_DIR1   CPLD_OFFSET(3,1)

Definition at line 79 of file board-dm365-evm.c.

#define CPLD_IMG_DIR2   CPLD_OFFSET(4,0)

Definition at line 82 of file board-dm365-evm.c.

#define CPLD_IMG_MUX0   CPLD_OFFSET(2,3)

Definition at line 77 of file board-dm365-evm.c.

#define CPLD_IMG_MUX1   CPLD_OFFSET(3,0)

Definition at line 78 of file board-dm365-evm.c.

#define CPLD_IMG_MUX2   CPLD_OFFSET(3,2)

Definition at line 80 of file board-dm365-evm.c.

#define CPLD_IMG_MUX3   CPLD_OFFSET(3,3)

Definition at line 81 of file board-dm365-evm.c.

#define CPLD_IMG_MUX4   CPLD_OFFSET(4,1)

Definition at line 83 of file board-dm365-evm.c.

#define CPLD_IMG_MUX5   CPLD_OFFSET(4,2)

Definition at line 84 of file board-dm365-evm.c.

#define CPLD_LEDS   CPLD_OFFSET(0,2)

Definition at line 66 of file board-dm365-evm.c.

#define CPLD_MUX   CPLD_OFFSET(0,3)

Definition at line 67 of file board-dm365-evm.c.

#define CPLD_OFFSET (   a13a8,
  a2a1 
)    (((a13a8) << 10) + ((a2a1) << 3))

Definition at line 62 of file board-dm365-evm.c.

#define CPLD_POWER   CPLD_OFFSET(1,1)

Definition at line 69 of file board-dm365-evm.c.

#define CPLD_RESETS   CPLD_OFFSET(4,3)

Definition at line 86 of file board-dm365-evm.c.

#define CPLD_SWITCH   CPLD_OFFSET(1,0) /* r/o */

Definition at line 68 of file board-dm365-evm.c.

#define CPLD_TEST   CPLD_OFFSET(0,1)

Definition at line 65 of file board-dm365-evm.c.

#define CPLD_VERSION   CPLD_OFFSET(0,0) /* r/o */

Definition at line 64 of file board-dm365-evm.c.

#define CPLD_VIDEO   CPLD_OFFSET(1,2)

Definition at line 70 of file board-dm365-evm.c.

#define DM365_EVM_PHY_ID   "davinci_mdio-0:01"

Definition at line 58 of file board-dm365-evm.c.

#define NAND_BLOCK_SIZE   SZ_128K

Definition at line 104 of file board-dm365-evm.c.

#define TVP514X_STD_ALL   (V4L2_STD_NTSC | V4L2_STD_PAL)

Definition at line 316 of file board-dm365-evm.c.

Function Documentation

fs_initcall ( cpld_leds_init  )

Variable Documentation

atag_offset = 0x100

Definition at line 616 of file board-dm365-evm.c.

dma_zone_size = SZ_128M

Definition at line 622 of file board-dm365-evm.c.

init_irq = davinci_irq_init

Definition at line 618 of file board-dm365-evm.c.

init_late = davinci_init_late

Definition at line 621 of file board-dm365-evm.c.

init_machine = dm365_evm_init

Definition at line 620 of file board-dm365-evm.c.

map_io = dm365_evm_map_io

Definition at line 617 of file board-dm365-evm.c.

const char* name

Definition at line 402 of file board-dm365-evm.c.

restart = davinci_restart

Definition at line 623 of file board-dm365-evm.c.

Definition at line 619 of file board-dm365-evm.c.

:the function to trigger

attribute_container_trigger - trigger a function for each matching container

: The generic device to activate the trigger for

This routine triggers a function that only needs to know the matching containers (not the classdev) associated with a device. It is more lightweight than attribute_container_device_trigger, so should be used in preference unless the triggering function actually needs to know the classdev.

Definition at line 403 of file board-dm365-evm.c.