Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
devices-da8xx.c File Reference
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/dma-mapping.h>
#include <linux/serial_8250.h>
#include <linux/ahci_platform.h>
#include <linux/clk.h>
#include <mach/cputype.h>
#include <mach/common.h>
#include <mach/time.h>
#include <mach/da8xx.h>
#include <mach/cpuidle.h>
#include "clock.h"
#include "asp.h"

Go to the source code of this file.

Macros

#define DA8XX_TPCC_BASE   0x01c00000
 
#define DA8XX_TPTC0_BASE   0x01c08000
 
#define DA8XX_TPTC1_BASE   0x01c08400
 
#define DA8XX_WDOG_BASE   0x01c21000 /* DA8XX_TIMER64P1_BASE */
 
#define DA8XX_I2C0_BASE   0x01c22000
 
#define DA8XX_RTC_BASE   0x01c23000
 
#define DA8XX_MMCSD0_BASE   0x01c40000
 
#define DA8XX_SPI0_BASE   0x01c41000
 
#define DA830_SPI1_BASE   0x01e12000
 
#define DA8XX_LCD_CNTRL_BASE   0x01e13000
 
#define DA850_SATA_BASE   0x01e18000
 
#define DA850_MMCSD1_BASE   0x01e1b000
 
#define DA8XX_EMAC_CPPI_PORT_BASE   0x01e20000
 
#define DA8XX_EMAC_CPGMACSS_BASE   0x01e22000
 
#define DA8XX_EMAC_CPGMAC_BASE   0x01e23000
 
#define DA8XX_EMAC_MDIO_BASE   0x01e24000
 
#define DA8XX_I2C1_BASE   0x01e28000
 
#define DA850_TPCC1_BASE   0x01e30000
 
#define DA850_TPTC2_BASE   0x01e38000
 
#define DA850_SPI1_BASE   0x01f0e000
 
#define DA8XX_DDR2_CTL_BASE   0xb0000000
 
#define DA8XX_EMAC_CTRL_REG_OFFSET   0x3000
 
#define DA8XX_EMAC_MOD_REG_OFFSET   0x2000
 
#define DA8XX_EMAC_RAM_OFFSET   0x0000
 
#define DA8XX_EMAC_CTRL_RAM_SIZE   SZ_8K
 
#define DA8XX_DMA_SPI0_RX   EDMA_CTLR_CHAN(0, 14)
 
#define DA8XX_DMA_SPI0_TX   EDMA_CTLR_CHAN(0, 15)
 
#define DA8XX_DMA_MMCSD0_RX   EDMA_CTLR_CHAN(0, 16)
 
#define DA8XX_DMA_MMCSD0_TX   EDMA_CTLR_CHAN(0, 17)
 
#define DA8XX_DMA_SPI1_RX   EDMA_CTLR_CHAN(0, 18)
 
#define DA8XX_DMA_SPI1_TX   EDMA_CTLR_CHAN(0, 19)
 
#define DA850_DMA_MMCSD1_RX   EDMA_CTLR_CHAN(1, 28)
 
#define DA850_DMA_MMCSD1_TX   EDMA_CTLR_CHAN(1, 29)
 

Functions

int __init da830_register_edma (struct edma_rsv_info *rsv)
 
int __init da850_register_edma (struct edma_rsv_info *rsv[2])
 
int __init da8xx_register_i2c (int instance, struct davinci_i2c_platform_data *pdata)
 
void da8xx_restart (char mode, const char *cmd)
 
int __init da8xx_register_watchdog (void)
 
int __init da8xx_register_emac (void)
 
void __init da8xx_register_mcasp (int id, struct snd_platform_data *pdata)
 
int __init da8xx_register_lcdc (struct da8xx_lcdc_platform_data *pdata)
 
int __init da8xx_register_mmcsd0 (struct davinci_mmc_config *config)
 
int da8xx_register_rtc (void)
 
void __iomem *__init da8xx_get_mem_ctlr (void)
 
int __init da8xx_register_cpuidle (void)
 
int __init da8xx_register_spi (int instance, const struct spi_board_info *info, unsigned len)
 

Variables

void __iomemda8xx_syscfg0_base
 
void __iomemda8xx_syscfg1_base
 
struct platform_device da8xx_serial_device
 
struct platform_device da8xx_wdt_device
 
struct emac_platform_data da8xx_emac_pdata
 
struct da8xx_lcdc_platform_data sharp_lcd035q3dg01_pdata
 
struct da8xx_lcdc_platform_data sharp_lk043t1dg01_pdata
 
struct davinci_spi_platform_data da8xx_spi_pdata []
 

Macro Definition Documentation

#define DA830_SPI1_BASE   0x01e12000

Definition at line 37 of file devices-da8xx.c.

#define DA850_DMA_MMCSD1_RX   EDMA_CTLR_CHAN(1, 28)

Definition at line 62 of file devices-da8xx.c.

#define DA850_DMA_MMCSD1_TX   EDMA_CTLR_CHAN(1, 29)

Definition at line 63 of file devices-da8xx.c.

#define DA850_MMCSD1_BASE   0x01e1b000

Definition at line 40 of file devices-da8xx.c.

#define DA850_SATA_BASE   0x01e18000

Definition at line 39 of file devices-da8xx.c.

#define DA850_SPI1_BASE   0x01f0e000

Definition at line 48 of file devices-da8xx.c.

#define DA850_TPCC1_BASE   0x01e30000

Definition at line 46 of file devices-da8xx.c.

#define DA850_TPTC2_BASE   0x01e38000

Definition at line 47 of file devices-da8xx.c.

#define DA8XX_DDR2_CTL_BASE   0xb0000000

Definition at line 49 of file devices-da8xx.c.

#define DA8XX_DMA_MMCSD0_RX   EDMA_CTLR_CHAN(0, 16)

Definition at line 58 of file devices-da8xx.c.

#define DA8XX_DMA_MMCSD0_TX   EDMA_CTLR_CHAN(0, 17)

Definition at line 59 of file devices-da8xx.c.

#define DA8XX_DMA_SPI0_RX   EDMA_CTLR_CHAN(0, 14)

Definition at line 56 of file devices-da8xx.c.

#define DA8XX_DMA_SPI0_TX   EDMA_CTLR_CHAN(0, 15)

Definition at line 57 of file devices-da8xx.c.

#define DA8XX_DMA_SPI1_RX   EDMA_CTLR_CHAN(0, 18)

Definition at line 60 of file devices-da8xx.c.

#define DA8XX_DMA_SPI1_TX   EDMA_CTLR_CHAN(0, 19)

Definition at line 61 of file devices-da8xx.c.

#define DA8XX_EMAC_CPGMAC_BASE   0x01e23000

Definition at line 43 of file devices-da8xx.c.

#define DA8XX_EMAC_CPGMACSS_BASE   0x01e22000

Definition at line 42 of file devices-da8xx.c.

#define DA8XX_EMAC_CPPI_PORT_BASE   0x01e20000

Definition at line 41 of file devices-da8xx.c.

#define DA8XX_EMAC_CTRL_RAM_SIZE   SZ_8K

Definition at line 54 of file devices-da8xx.c.

#define DA8XX_EMAC_CTRL_REG_OFFSET   0x3000

Definition at line 51 of file devices-da8xx.c.

#define DA8XX_EMAC_MDIO_BASE   0x01e24000

Definition at line 44 of file devices-da8xx.c.

#define DA8XX_EMAC_MOD_REG_OFFSET   0x2000

Definition at line 52 of file devices-da8xx.c.

#define DA8XX_EMAC_RAM_OFFSET   0x0000

Definition at line 53 of file devices-da8xx.c.

#define DA8XX_I2C0_BASE   0x01c22000

Definition at line 33 of file devices-da8xx.c.

#define DA8XX_I2C1_BASE   0x01e28000

Definition at line 45 of file devices-da8xx.c.

#define DA8XX_LCD_CNTRL_BASE   0x01e13000

Definition at line 38 of file devices-da8xx.c.

#define DA8XX_MMCSD0_BASE   0x01c40000

Definition at line 35 of file devices-da8xx.c.

#define DA8XX_RTC_BASE   0x01c23000

Definition at line 34 of file devices-da8xx.c.

#define DA8XX_SPI0_BASE   0x01c41000

Definition at line 36 of file devices-da8xx.c.

#define DA8XX_TPCC_BASE   0x01c00000

Definition at line 29 of file devices-da8xx.c.

#define DA8XX_TPTC0_BASE   0x01c08000

Definition at line 30 of file devices-da8xx.c.

#define DA8XX_TPTC1_BASE   0x01c08400

Definition at line 31 of file devices-da8xx.c.

#define DA8XX_WDOG_BASE   0x01c21000 /* DA8XX_TIMER64P1_BASE */

Definition at line 32 of file devices-da8xx.c.

Function Documentation

int __init da830_register_edma ( struct edma_rsv_info rsv)

Definition at line 279 of file devices-da8xx.c.

int __init da850_register_edma ( struct edma_rsv_info rsv[2])

Definition at line 286 of file devices-da8xx.c.

void __iomem* __init da8xx_get_mem_ctlr ( void  )

Definition at line 707 of file devices-da8xx.c.

int __init da8xx_register_cpuidle ( void  )

Definition at line 742 of file devices-da8xx.c.

int __init da8xx_register_emac ( void  )

Definition at line 438 of file devices-da8xx.c.

int __init da8xx_register_i2c ( int  instance,
struct davinci_i2c_platform_data pdata 
)

Definition at line 336 of file devices-da8xx.c.

int __init da8xx_register_lcdc ( struct da8xx_lcdc_platform_data pdata)

Definition at line 578 of file devices-da8xx.c.

void __init da8xx_register_mcasp ( int  id,
struct snd_platform_data pdata 
)

Definition at line 509 of file devices-da8xx.c.

int __init da8xx_register_mmcsd0 ( struct davinci_mmc_config config)

Definition at line 614 of file devices-da8xx.c.

int da8xx_register_rtc ( void  )

Definition at line 683 of file devices-da8xx.c.

int __init da8xx_register_spi ( int  instance,
const struct spi_board_info info,
unsigned  len 
)

Definition at line 829 of file devices-da8xx.c.

int __init da8xx_register_watchdog ( void  )

Definition at line 372 of file devices-da8xx.c.

void da8xx_restart ( char  mode,
const char cmd 
)

Definition at line 367 of file devices-da8xx.c.

Variable Documentation

struct emac_platform_data da8xx_emac_pdata
Initial value:
= {
.ctrl_reg_offset = DA8XX_EMAC_CTRL_REG_OFFSET,
.ctrl_mod_reg_offset = DA8XX_EMAC_MOD_REG_OFFSET,
.ctrl_ram_offset = DA8XX_EMAC_RAM_OFFSET,
.ctrl_ram_size = DA8XX_EMAC_CTRL_RAM_SIZE,
.version = EMAC_VERSION_2,
}

Definition at line 405 of file devices-da8xx.c.

struct platform_device da8xx_serial_device
Initial value:
= {
.name = "serial8250",
.dev = {
.platform_data = da8xx_serial_pdata,
},
}

Definition at line 98 of file devices-da8xx.c.

struct davinci_spi_platform_data da8xx_spi_pdata[]
Initial value:
= {
[0] = {
.version = SPI_VERSION_2,
.intr_line = 1,
.dma_event_q = EVENTQ_0,
},
[1] = {
.version = SPI_VERSION_2,
.intr_line = 1,
.dma_event_q = EVENTQ_0,
},
}

Definition at line 795 of file devices-da8xx.c.

void __iomem* da8xx_syscfg0_base

Definition at line 65 of file devices-da8xx.c.

void __iomem* da8xx_syscfg1_base

Definition at line 66 of file devices-da8xx.c.

struct platform_device da8xx_wdt_device
Initial value:
= {
.name = "watchdog",
.id = -1,
.num_resources = ARRAY_SIZE(da8xx_watchdog_resources),
.resource = da8xx_watchdog_resources,
}

Definition at line 360 of file devices-da8xx.c.

struct da8xx_lcdc_platform_data sharp_lcd035q3dg01_pdata
Initial value:
= {
.manu_name = "sharp",
.controller_data = &lcd_cfg,
.type = "Sharp_LCD035Q3DG01",
}

Definition at line 546 of file devices-da8xx.c.

struct da8xx_lcdc_platform_data sharp_lk043t1dg01_pdata
Initial value:
= {
.manu_name = "sharp",
.controller_data = &lcd_cfg,
.type = "Sharp_LK043T1DG01",
}

Definition at line 552 of file devices-da8xx.c.