Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
sram.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/io.h>
#include <asm/tlb.h>
#include <asm/cacheflush.h>
#include <asm/mach/map.h>
#include <plat/sram.h>
#include <plat/cpu.h>
#include "sram.h"
#include "../mach-omap2/iomap.h"
#include "../mach-omap2/prm2xxx_3xxx.h"
#include "../mach-omap2/sdrc.h"

Go to the source code of this file.

Macros

#define OMAP1_SRAM_PA   0x20000000
 
#define OMAP2_SRAM_PUB_PA   (OMAP2_SRAM_PA + 0xf800)
 
#define OMAP3_SRAM_PUB_PA   (OMAP3_SRAM_PA + 0x8000)
 
#define OMAP4_SRAM_PUB_PA   (OMAP4_SRAM_PA + 0x4000)
 
#define OMAP5_SRAM_PA   0x40300000
 
#define SRAM_BOOTLOADER_SZ   0x80
 
#define OMAP24XX_VA_REQINFOPERM0   OMAP2_L3_IO_ADDRESS(0x68005048)
 
#define OMAP24XX_VA_READPERM0   OMAP2_L3_IO_ADDRESS(0x68005050)
 
#define OMAP24XX_VA_WRITEPERM0   OMAP2_L3_IO_ADDRESS(0x68005058)
 
#define OMAP34XX_VA_REQINFOPERM0   OMAP2_L3_IO_ADDRESS(0x68012848)
 
#define OMAP34XX_VA_READPERM0   OMAP2_L3_IO_ADDRESS(0x68012850)
 
#define OMAP34XX_VA_WRITEPERM0   OMAP2_L3_IO_ADDRESS(0x68012858)
 
#define OMAP34XX_VA_ADDR_MATCH2   OMAP2_L3_IO_ADDRESS(0x68012880)
 
#define OMAP34XX_VA_SMS_RG_ATT0   OMAP2_L3_IO_ADDRESS(0x6C000048)
 
#define GP_DEVICE   0x300
 
#define ROUND_DOWN(value, boundary)   ((value) & (~((boundary)-1)))
 
#define omap1_sram_init()   do {} while (0)
 

Functions

voidomap_sram_push_address (unsigned long size)
 
int __init omap_sram_init (void)
 

Macro Definition Documentation

#define GP_DEVICE   0x300

Definition at line 64 of file sram.c.

#define omap1_sram_init ( )    do {} while (0)

Definition at line 262 of file sram.c.

#define OMAP1_SRAM_PA   0x20000000

Definition at line 38 of file sram.c.

#define OMAP24XX_VA_READPERM0   OMAP2_L3_IO_ADDRESS(0x68005050)

Definition at line 55 of file sram.c.

#define OMAP24XX_VA_REQINFOPERM0   OMAP2_L3_IO_ADDRESS(0x68005048)

Definition at line 54 of file sram.c.

#define OMAP24XX_VA_WRITEPERM0   OMAP2_L3_IO_ADDRESS(0x68005058)

Definition at line 56 of file sram.c.

#define OMAP2_SRAM_PUB_PA   (OMAP2_SRAM_PA + 0xf800)

Definition at line 39 of file sram.c.

#define OMAP34XX_VA_ADDR_MATCH2   OMAP2_L3_IO_ADDRESS(0x68012880)

Definition at line 61 of file sram.c.

#define OMAP34XX_VA_READPERM0   OMAP2_L3_IO_ADDRESS(0x68012850)

Definition at line 59 of file sram.c.

#define OMAP34XX_VA_REQINFOPERM0   OMAP2_L3_IO_ADDRESS(0x68012848)

Definition at line 58 of file sram.c.

#define OMAP34XX_VA_SMS_RG_ATT0   OMAP2_L3_IO_ADDRESS(0x6C000048)

Definition at line 62 of file sram.c.

#define OMAP34XX_VA_WRITEPERM0   OMAP2_L3_IO_ADDRESS(0x68012858)

Definition at line 60 of file sram.c.

#define OMAP3_SRAM_PUB_PA   (OMAP3_SRAM_PA + 0x8000)

Definition at line 40 of file sram.c.

#define OMAP4_SRAM_PUB_PA   (OMAP4_SRAM_PA + 0x4000)

Definition at line 44 of file sram.c.

#define OMAP5_SRAM_PA   0x40300000

Definition at line 46 of file sram.c.

#define ROUND_DOWN (   value,
  boundary 
)    ((value) & (~((boundary)-1)))

Definition at line 66 of file sram.c.

#define SRAM_BOOTLOADER_SZ   0x80

Definition at line 51 of file sram.c.

Function Documentation

int __init omap_sram_init ( void  )

Definition at line 389 of file sram.c.

void* omap_sram_push_address ( unsigned long  size)

Definition at line 221 of file sram.c.