Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
addr-map.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/mbus.h>
#include <linux/io.h>
#include <plat/addr-map.h>

Go to the source code of this file.

Macros

#define TARGET_DDR   0
 
#define DDR_BASE_CS_OFF(n)   (0x0000 + ((n) << 3))
 
#define DDR_SIZE_CS_OFF(n)   (0x0004 + ((n) << 3))
 
#define WIN_CTRL_OFF   0x0000
 
#define WIN_BASE_OFF   0x0004
 
#define WIN_REMAP_LO_OFF   0x0008
 
#define WIN_REMAP_HI_OFF   0x000c
 

Functions

struct mbus_dram_target_infomv_mbus_dram_info (void)
 
 EXPORT_SYMBOL_GPL (mv_mbus_dram_info)
 
void __init orion_setup_cpu_win (const struct orion_addr_map_cfg *cfg, const int win, const u32 base, const u32 size, const u8 target, const u8 attr, const int remap)
 
void __init orion_config_wins (struct orion_addr_map_cfg *cfg, const struct orion_addr_map_info *info)
 
void __init orion_setup_cpu_mbus_target (const struct orion_addr_map_cfg *cfg, const void __iomem *ddr_window_cpu_base)
 

Variables

struct mbus_dram_target_info orion_mbus_dram_info
 

Macro Definition Documentation

#define DDR_BASE_CS_OFF (   n)    (0x0000 + ((n) << 3))

Definition at line 34 of file addr-map.c.

#define DDR_SIZE_CS_OFF (   n)    (0x0004 + ((n) << 3))

Definition at line 35 of file addr-map.c.

#define TARGET_DDR   0

Definition at line 29 of file addr-map.c.

#define WIN_BASE_OFF   0x0004

Definition at line 41 of file addr-map.c.

#define WIN_CTRL_OFF   0x0000

Definition at line 40 of file addr-map.c.

#define WIN_REMAP_HI_OFF   0x000c

Definition at line 43 of file addr-map.c.

#define WIN_REMAP_LO_OFF   0x0008

Definition at line 42 of file addr-map.c.

Function Documentation

EXPORT_SYMBOL_GPL ( mv_mbus_dram_info  )
struct mbus_dram_target_info* mv_mbus_dram_info ( void  )
read

Definition at line 20 of file addr-map.c.

void __init orion_config_wins ( struct orion_addr_map_cfg cfg,
const struct orion_addr_map_info info 
)

Definition at line 127 of file addr-map.c.

void __init orion_setup_cpu_mbus_target ( const struct orion_addr_map_cfg cfg,
const void __iomem ddr_window_cpu_base 
)

Definition at line 145 of file addr-map.c.

void __init orion_setup_cpu_win ( const struct orion_addr_map_cfg cfg,
const int  win,
const u32  base,
const u32  size,
const u8  target,
const u8  attr,
const int  remap 
)

Definition at line 66 of file addr-map.c.

Variable Documentation

struct mbus_dram_target_info orion_mbus_dram_info

Definition at line 18 of file addr-map.c.