Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions | Variables
board-da850-evm.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/console.h>
#include <linux/i2c.h>
#include <linux/i2c/at24.h>
#include <linux/i2c/pca953x.h>
#include <linux/input.h>
#include <linux/mfd/tps6507x.h>
#include <linux/gpio.h>
#include <linux/gpio_keys.h>
#include <linux/platform_device.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/nand.h>
#include <linux/mtd/partitions.h>
#include <linux/mtd/physmap.h>
#include <linux/regulator/machine.h>
#include <linux/regulator/tps6507x.h>
#include <linux/input/tps6507x-ts.h>
#include <linux/spi/spi.h>
#include <linux/spi/flash.h>
#include <linux/delay.h>
#include <linux/wl12xx.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
#include <asm/system_info.h>
#include <mach/cp_intc.h>
#include <mach/da8xx.h>
#include <linux/platform_data/mtd-davinci.h>
#include <mach/mux.h>
#include <linux/platform_data/mtd-davinci-aemif.h>
#include <linux/platform_data/spi-davinci.h>
#include <media/tvp514x.h>
#include <media/adv7343.h>

Go to the source code of this file.

Macros

#define DA850_EVM_PHY_ID   "davinci_mdio-0:00"
 
#define DA850_LCD_PWR_PIN   GPIO_TO_PIN(2, 8)
 
#define DA850_LCD_BL_PIN   GPIO_TO_PIN(2, 15)
 
#define DA850_MMCSD_CD_PIN   GPIO_TO_PIN(4, 0)
 
#define DA850_MMCSD_WP_PIN   GPIO_TO_PIN(4, 1)
 
#define DA850_WLAN_EN   GPIO_TO_PIN(6, 9)
 
#define DA850_WLAN_IRQ   GPIO_TO_PIN(6, 10)
 
#define DA850_MII_MDIO_CLKEN_PIN   GPIO_TO_PIN(2, 6)
 
#define DA8XX_AEMIF_CE2CFG_OFFSET   0x10
 
#define DA8XX_AEMIF_ASIZE_16BIT   0x1
 
#define HAS_MMC   0
 
#define DA850_KEYS_DEBOUNCE_MS   10
 
#define DA850_GPIO_KEYS_POLL_MS   200
 
#define DA850_N_UI_PB   8
 
#define DA850_UI_EXPANDER_N_GPIOS   ARRAY_SIZE(da850_evm_ui_exp)
 
#define DA850_BB_EXPANDER_GPIO_BASE   (DAVINCI_N_GPIO + DA850_UI_EXPANDER_N_GPIOS)
 
#define DA850_N_BB_USER_SW   8
 
#define DA850_N_BB_USER_LED   2
 
#define DA850EVM_SATA_REFCLKPN_RATE   (100 * 1000 * 1000)
 

Enumerations

enum  da850_evm_ui_exp_pins {
  DA850_EVM_UI_EXP_SEL_C = 5, DA850_EVM_UI_EXP_SEL_B, DA850_EVM_UI_EXP_SEL_A, DA850_EVM_UI_EXP_PB8,
  DA850_EVM_UI_EXP_PB7, DA850_EVM_UI_EXP_PB6, DA850_EVM_UI_EXP_PB5, DA850_EVM_UI_EXP_PB4,
  DA850_EVM_UI_EXP_PB3, DA850_EVM_UI_EXP_PB2, DA850_EVM_UI_EXP_PB1
}
 
enum  da850_evm_bb_exp_pins {
  DA850_EVM_BB_EXP_DEEP_SLEEP_EN = 0, DA850_EVM_BB_EXP_SW_RST, DA850_EVM_BB_EXP_TP_23, DA850_EVM_BB_EXP_TP_22,
  DA850_EVM_BB_EXP_TP_21, DA850_EVM_BB_EXP_USER_PB1, DA850_EVM_BB_EXP_USER_LED2, DA850_EVM_BB_EXP_USER_LED1,
  DA850_EVM_BB_EXP_USER_SW1, DA850_EVM_BB_EXP_USER_SW2, DA850_EVM_BB_EXP_USER_SW3, DA850_EVM_BB_EXP_USER_SW4,
  DA850_EVM_BB_EXP_USER_SW5, DA850_EVM_BB_EXP_USER_SW6, DA850_EVM_BB_EXP_USER_SW7, DA850_EVM_BB_EXP_USER_SW8
}
 

Functions

 device_initcall (da850_evm_config_emac)
 

Variables

 atag_offset = 0x100
 
 map_io = da850_evm_map_io
 
 init_irq = cp_intc_init
 
 timer = &davinci_timer
 
 init_machine = da850_evm_init
 
 init_late = davinci_init_late
 
 dma_zone_size = SZ_128M
 
 restart = da8xx_restart
 

Macro Definition Documentation

#define DA850_BB_EXPANDER_GPIO_BASE   (DAVINCI_N_GPIO + DA850_UI_EXPANDER_N_GPIOS)

Definition at line 545 of file board-da850-evm.c.

#define DA850_EVM_PHY_ID   "davinci_mdio-0:00"

Definition at line 51 of file board-da850-evm.c.

#define DA850_GPIO_KEYS_POLL_MS   200

Definition at line 386 of file board-da850-evm.c.

#define DA850_KEYS_DEBOUNCE_MS   10

Definition at line 378 of file board-da850-evm.c.

#define DA850_LCD_BL_PIN   GPIO_TO_PIN(2, 15)

Definition at line 53 of file board-da850-evm.c.

#define DA850_LCD_PWR_PIN   GPIO_TO_PIN(2, 8)

Definition at line 52 of file board-da850-evm.c.

#define DA850_MII_MDIO_CLKEN_PIN   GPIO_TO_PIN(2, 6)

Definition at line 61 of file board-da850-evm.c.

#define DA850_MMCSD_CD_PIN   GPIO_TO_PIN(4, 0)

Definition at line 55 of file board-da850-evm.c.

#define DA850_MMCSD_WP_PIN   GPIO_TO_PIN(4, 1)

Definition at line 56 of file board-da850-evm.c.

#define DA850_N_BB_USER_LED   2

Definition at line 641 of file board-da850-evm.c.

#define DA850_N_BB_USER_SW   8

Definition at line 585 of file board-da850-evm.c.

#define DA850_N_UI_PB   8

Definition at line 416 of file board-da850-evm.c.

#define DA850_UI_EXPANDER_N_GPIOS   ARRAY_SIZE(da850_evm_ui_exp)

Definition at line 544 of file board-da850-evm.c.

#define DA850_WLAN_EN   GPIO_TO_PIN(6, 9)

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

#define DA850_WLAN_IRQ   GPIO_TO_PIN(6, 10)

Definition at line 59 of file board-da850-evm.c.

#define DA850EVM_SATA_REFCLKPN_RATE   (100 * 1000 * 1000)

Definition at line 1433 of file board-da850-evm.c.

#define DA8XX_AEMIF_ASIZE_16BIT   0x1

Definition at line 296 of file board-da850-evm.c.

#define DA8XX_AEMIF_CE2CFG_OFFSET   0x10

Definition at line 295 of file board-da850-evm.c.

#define HAS_MMC   0

Definition at line 340 of file board-da850-evm.c.

Enumeration Type Documentation

Enumerator:
DA850_EVM_BB_EXP_DEEP_SLEEP_EN 
DA850_EVM_BB_EXP_SW_RST 
DA850_EVM_BB_EXP_TP_23 
DA850_EVM_BB_EXP_TP_22 
DA850_EVM_BB_EXP_TP_21 
DA850_EVM_BB_EXP_USER_PB1 
DA850_EVM_BB_EXP_USER_LED2 
DA850_EVM_BB_EXP_USER_LED1 
DA850_EVM_BB_EXP_USER_SW1 
DA850_EVM_BB_EXP_USER_SW2 
DA850_EVM_BB_EXP_USER_SW3 
DA850_EVM_BB_EXP_USER_SW4 
DA850_EVM_BB_EXP_USER_SW5 
DA850_EVM_BB_EXP_USER_SW6 
DA850_EVM_BB_EXP_USER_SW7 
DA850_EVM_BB_EXP_USER_SW8 

Definition at line 547 of file board-da850-evm.c.

Enumerator:
DA850_EVM_UI_EXP_SEL_C 
DA850_EVM_UI_EXP_SEL_B 
DA850_EVM_UI_EXP_SEL_A 
DA850_EVM_UI_EXP_PB8 
DA850_EVM_UI_EXP_PB7 
DA850_EVM_UI_EXP_PB6 
DA850_EVM_UI_EXP_PB5 
DA850_EVM_UI_EXP_PB4 
DA850_EVM_UI_EXP_PB3 
DA850_EVM_UI_EXP_PB2 
DA850_EVM_UI_EXP_PB1 

Definition at line 388 of file board-da850-evm.c.

Function Documentation

device_initcall ( da850_evm_config_emac  )

Variable Documentation

atag_offset = 0x100

Definition at line 1588 of file board-da850-evm.c.

dma_zone_size = SZ_128M

Definition at line 1594 of file board-da850-evm.c.

init_irq = cp_intc_init

Definition at line 1590 of file board-da850-evm.c.

init_late = davinci_init_late

Definition at line 1593 of file board-da850-evm.c.

init_machine = da850_evm_init

Definition at line 1592 of file board-da850-evm.c.

map_io = da850_evm_map_io

Definition at line 1589 of file board-da850-evm.c.

restart = da8xx_restart

Definition at line 1595 of file board-da850-evm.c.

Definition at line 1591 of file board-da850-evm.c.