Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
setup.c File Reference
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/interrupt.h>
#include <linux/string.h>
#include <linux/module.h>
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/gpio.h>
#include <linux/platform_device.h>
#include <linux/serial_core.h>
#include <linux/mtd/physmap.h>
#include <linux/leds.h>
#include <linux/device.h>
#include <linux/slab.h>
#include <linux/irq.h>
#include <asm/bootinfo.h>
#include <asm/time.h>
#include <asm/reboot.h>
#include <asm/r4kcache.h>
#include <asm/sections.h>
#include <asm/txx9/generic.h>
#include <asm/txx9/pci.h>
#include <asm/txx9tmr.h>
#include <asm/txx9/ndfmc.h>
#include <asm/txx9/dmac.h>
#include <asm/txx9/boards.h>

Go to the source code of this file.

Data Structures

struct  txx9_sramc_dev
 

Macros

#define BOARD_VEC(board)   extern struct txx9_board_vec board;
 
#define BOARD_VEC(board)   &board,
 

Functions

void __init txx9_reg_res_init (unsigned int pcode, unsigned long base, unsigned long size)
 
struct clkclk_get (struct device *dev, const char *id)
 
 EXPORT_SYMBOL (clk_get)
 
int clk_enable (struct clk *clk)
 
 EXPORT_SYMBOL (clk_enable)
 
void clk_disable (struct clk *clk)
 
 EXPORT_SYMBOL (clk_disable)
 
unsigned long clk_get_rate (struct clk *clk)
 
 EXPORT_SYMBOL (clk_get_rate)
 
void clk_put (struct clk *clk)
 
 EXPORT_SYMBOL (clk_put)
 
void __init prom_init (void)
 
void __init prom_free_prom_memory (void)
 
const charget_system_type (void)
 
const char *__init prom_getenv (const char *name)
 
void __init txx9_wdt_init (unsigned long base)
 
void txx9_wdt_now (unsigned long base)
 
void __init txx9_spi_init (int busid, unsigned long base, int irq)
 
void __init txx9_ethaddr_init (unsigned int id, unsigned char *ethaddr)
 
void __init txx9_sio_init (unsigned long baseaddr, int irq, unsigned int line, unsigned int sclk, int nocts)
 
void __init plat_mem_setup (void)
 
void __init arch_init_irq (void)
 
void __init plat_time_init (void)
 
 arch_initcall (_txx9_arch_init)
 
 device_initcall (_txx9_device_init)
 
asmlinkage void plat_irq_dispatch (void)
 
void __init txx9_physmap_flash_init (int no, unsigned long addr, unsigned long size, const struct physmap_flash_data *pdata)
 
void __init txx9_ndfmc_init (unsigned long baseaddr, const struct txx9ndfmc_platform_data *pdata)
 
void __init txx9_iocled_init (unsigned long baseaddr, int basenum, unsigned int num, int lowactive, const char *color, char **deftriggers)
 
void __init txx9_dmac_init (int id, unsigned long baseaddr, int irq, const struct txx9dmac_platform_data *pdata)
 
void __init txx9_aclc_init (unsigned long baseaddr, int irq, unsigned int dmac_id, unsigned int dma_chan_out, unsigned int dma_chan_in)
 
void __init txx9_sramc_init (struct resource *r)
 

Variables

struct resource txx9_ce_res [8]
 
unsigned int txx9_pcode
 
char txx9_pcode_str [8]
 
unsigned int txx9_master_clock
 
unsigned int txx9_cpu_clock
 
unsigned int txx9_gbus_clock
 
int txx9_ccfg_toeon __initdata = 1
 
int(* txx9_irq_dispatch )(int pending)
 

Macro Definition Documentation

#define BOARD_VEC (   board)    extern struct txx9_board_vec board;

Definition at line 135 of file setup.c.

#define BOARD_VEC (   board)    &board,

Definition at line 135 of file setup.c.

Function Documentation

void __init arch_init_irq ( void  )

Definition at line 565 of file setup.c.

arch_initcall ( _txx9_arch_init  )
void clk_disable ( struct clk clk)

Definition at line 103 of file setup.c.

int clk_enable ( struct clk clk)

Definition at line 97 of file setup.c.

struct clk* clk_get ( struct device dev,
const char id 
)
read

Definition at line 87 of file setup.c.

unsigned long clk_get_rate ( struct clk clk)

Definition at line 108 of file setup.c.

void clk_put ( struct clk clk)

Definition at line 114 of file setup.c.

device_initcall ( _txx9_device_init  )
EXPORT_SYMBOL ( clk_get  )
EXPORT_SYMBOL ( clk_enable  )
EXPORT_SYMBOL ( clk_disable  )
EXPORT_SYMBOL ( clk_get_rate  )
EXPORT_SYMBOL ( clk_put  )
const char* get_system_type ( void  )

Definition at line 399 of file setup.c.

asmlinkage void plat_irq_dispatch ( void  )

Definition at line 595 of file setup.c.

void __init plat_mem_setup ( void  )

Definition at line 547 of file setup.c.

void __init plat_time_init ( void  )

Definition at line 570 of file setup.c.

void __init prom_free_prom_memory ( void  )

Definition at line 390 of file setup.c.

const char* __init prom_getenv ( const char name)

Definition at line 404 of file setup.c.

void __init prom_init ( void  )

Early entry point for arch setup

Definition at line 379 of file setup.c.

void __init txx9_aclc_init ( unsigned long  baseaddr,
int  irq,
unsigned int  dmac_id,
unsigned int  dma_chan_out,
unsigned int  dma_chan_in 
)

Definition at line 863 of file setup.c.

void __init txx9_dmac_init ( int  id,
unsigned long  baseaddr,
int  irq,
const struct txx9dmac_platform_data pdata 
)

Definition at line 809 of file setup.c.

void __init txx9_ethaddr_init ( unsigned int  id,
unsigned char ethaddr 
)

Definition at line 482 of file setup.c.

void __init txx9_iocled_init ( unsigned long  baseaddr,
int  basenum,
unsigned int  num,
int  lowactive,
const char color,
char **  deftriggers 
)

Definition at line 802 of file setup.c.

void __init txx9_ndfmc_init ( unsigned long  baseaddr,
const struct txx9ndfmc_platform_data pdata 
)

Definition at line 670 of file setup.c.

void __init txx9_physmap_flash_init ( int  no,
unsigned long  addr,
unsigned long  size,
const struct physmap_flash_data pdata 
)

Definition at line 631 of file setup.c.

void __init txx9_reg_res_init ( unsigned int  pcode,
unsigned long  base,
unsigned long  size 
)

Definition at line 54 of file setup.c.

void __init txx9_sio_init ( unsigned long  baseaddr,
int  irq,
unsigned int  line,
unsigned int  sclk,
int  nocts 
)

Definition at line 492 of file setup.c.

void __init txx9_spi_init ( int  busid,
unsigned long  base,
int  irq 
)

Definition at line 466 of file setup.c.

void __init txx9_sramc_init ( struct resource r)

Definition at line 939 of file setup.c.

void __init txx9_wdt_init ( unsigned long  base)

Definition at line 441 of file setup.c.

void txx9_wdt_now ( unsigned long  base)

Definition at line 451 of file setup.c.

Variable Documentation

int txx9_dc_disable __initdata = 1

Definition at line 82 of file setup.c.

struct resource txx9_ce_res[8]

Definition at line 43 of file setup.c.

unsigned int txx9_cpu_clock

Definition at line 75 of file setup.c.

unsigned int txx9_gbus_clock

Definition at line 76 of file setup.c.

int(* txx9_irq_dispatch)(int pending)

Definition at line 594 of file setup.c.

unsigned int txx9_master_clock

Definition at line 74 of file setup.c.

unsigned int txx9_pcode

Definition at line 47 of file setup.c.

char txx9_pcode_str[8]

Definition at line 48 of file setup.c.