Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
core.c File Reference
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/dma-mapping.h>
#include <linux/device.h>
#include <linux/interrupt.h>
#include <linux/amba/bus.h>
#include <linux/amba/clcd.h>
#include <linux/io.h>
#include <linux/smsc911x.h>
#include <linux/ata_platform.h>
#include <linux/amba/mmci.h>
#include <linux/gfp.h>
#include <linux/mtd/physmap.h>
#include <mach/hardware.h>
#include <asm/irq.h>
#include <asm/mach-types.h>
#include <asm/hardware/arm_timer.h>
#include <asm/hardware/icst.h>
#include <asm/mach/arch.h>
#include <asm/mach/irq.h>
#include <asm/mach/map.h>
#include <asm/hardware/gic.h>
#include <mach/platform.h>
#include <mach/irqs.h>
#include <asm/hardware/timer-sp.h>
#include <plat/clcd.h>
#include <plat/sched_clock.h>
#include "core.h"

Go to the source code of this file.

Macros

#define REALVIEW_FLASHCTRL   (__io_address(REALVIEW_SYS_BASE) + REALVIEW_SYS_FLASH_OFFSET)
 
#define REALVIEW_SYSMCI   (__io_address(REALVIEW_SYS_BASE) + REALVIEW_SYS_MCI_OFFSET)
 
#define SYS_CLCD_NLCDIOON   (1 << 2)
 
#define SYS_CLCD_VDDPOSSWITCH   (1 << 3)
 
#define SYS_CLCD_PWR3V5SWITCH   (1 << 4)
 
#define SYS_CLCD_ID_MASK   (0x1f << 8)
 
#define SYS_CLCD_ID_SANYO_3_8   (0x00 << 8)
 
#define SYS_CLCD_ID_UNKNOWN_8_4   (0x01 << 8)
 
#define SYS_CLCD_ID_EPSON_2_2   (0x02 << 8)
 
#define SYS_CLCD_ID_SANYO_2_5   (0x07 << 8)
 
#define SYS_CLCD_ID_VGA   (0x1f << 8)
 

Functions

int realview_flash_register (struct resource *res, u32 num)
 
int realview_eth_register (const char *name, struct resource *res)
 
int realview_usb_register (struct resource *res)
 
 arch_initcall (realview_i2c_init)
 
void __init realview_init_early (void)
 
void __init realview_timer_init (unsigned int timer_irq)
 
void realview_fixup (struct tag *tags, char **from, struct meminfo *meminfo)
 

Variables

struct platform_device realview_flash_device
 
struct platform_device realview_usb_device
 
struct platform_device realview_cf_device
 
struct platform_device realview_i2c_device
 
struct mmci_platform_data realview_mmc0_plat_data
 
struct mmci_platform_data realview_mmc1_plat_data
 
struct clcd_board clcd_plat_data
 
void __iomemtimer0_va_base
 
void __iomemtimer1_va_base
 
void __iomemtimer2_va_base
 
void __iomemtimer3_va_base
 

Macro Definition Documentation

#define REALVIEW_FLASHCTRL   (__io_address(REALVIEW_SYS_BASE) + REALVIEW_SYS_FLASH_OFFSET)

Definition at line 56 of file core.c.

#define REALVIEW_SYSMCI   (__io_address(REALVIEW_SYS_BASE) + REALVIEW_SYS_MCI_OFFSET)

Definition at line 178 of file core.c.

#define SYS_CLCD_ID_EPSON_2_2   (0x02 << 8)

Definition at line 243 of file core.c.

#define SYS_CLCD_ID_MASK   (0x1f << 8)

Definition at line 240 of file core.c.

#define SYS_CLCD_ID_SANYO_2_5   (0x07 << 8)

Definition at line 244 of file core.c.

#define SYS_CLCD_ID_SANYO_3_8   (0x00 << 8)

Definition at line 241 of file core.c.

#define SYS_CLCD_ID_UNKNOWN_8_4   (0x01 << 8)

Definition at line 242 of file core.c.

#define SYS_CLCD_ID_VGA   (0x1f << 8)

Definition at line 245 of file core.c.

#define SYS_CLCD_NLCDIOON   (1 << 2)

Definition at line 237 of file core.c.

#define SYS_CLCD_PWR3V5SWITCH   (1 << 4)

Definition at line 239 of file core.c.

#define SYS_CLCD_VDDPOSSWITCH   (1 << 3)

Definition at line 238 of file core.c.

Function Documentation

arch_initcall ( realview_i2c_init  )
int realview_eth_register ( const char name,
struct resource res 
)

Definition at line 103 of file core.c.

void realview_fixup ( struct tag tags,
char **  from,
struct meminfo meminfo 
)

Definition at line 374 of file core.c.

int realview_flash_register ( struct resource res,
u32  num 
)

Definition at line 83 of file core.c.

void __init realview_init_early ( void  )

Definition at line 227 of file core.c.

void __init realview_timer_init ( unsigned int  timer_irq)

Definition at line 343 of file core.c.

int realview_usb_register ( struct resource res)

Definition at line 119 of file core.c.

Variable Documentation

struct clcd_board clcd_plat_data
Initial value:
= {
.name = "RealView",
.caps = CLCD_CAP_ALL,
.check = clcdfb_check,
.decode = clcdfb_decode,
.disable = realview_clcd_disable,
.enable = realview_clcd_enable,
.setup = realview_clcd_setup,
}

Definition at line 320 of file core.c.

struct platform_device realview_cf_device
Initial value:
= {
.name = "pata_platform",
.id = -1,
.num_resources = ARRAY_SIZE(pata_resources),
.resource = pata_resources,
.dev = {
.platform_data = &pata_platform_data,
},
}

Definition at line 142 of file core.c.

struct platform_device realview_flash_device
Initial value:
= {
.name = "physmap-flash",
.id = 0,
.dev = {
.platform_data = &realview_flash_data,
},
}

Definition at line 75 of file core.c.

struct platform_device realview_i2c_device
Initial value:
= {
.name = "versatile-i2c",
.id = 0,
.num_resources = 1,
.resource = &realview_i2c_resource,
}

Definition at line 158 of file core.c.

struct mmci_platform_data realview_mmc0_plat_data
Initial value:
= {
.status = realview_mmc_status,
.gpio_wp = 17,
.gpio_cd = 16,
.cd_invert = true,
}

Definition at line 211 of file core.c.

struct mmci_platform_data realview_mmc1_plat_data
Initial value:
= {
.status = realview_mmc_status,
.gpio_wp = 19,
.gpio_cd = 18,
.cd_invert = true,
}

Definition at line 219 of file core.c.

struct platform_device realview_usb_device
Initial value:
= {
.name = "isp1760",
.num_resources = 2,
}

Definition at line 114 of file core.c.

void __iomem* timer0_va_base

Definition at line 335 of file core.c.

void __iomem* timer1_va_base

Definition at line 336 of file core.c.

void __iomem* timer2_va_base

Definition at line 337 of file core.c.

void __iomem* timer3_va_base

Definition at line 338 of file core.c.