diff options
author | Leo Yan <leoy@marvell.com> | 2011-08-14 23:09:54 -0400 |
---|---|---|
committer | Eric Miao <eric.y.miao@gmail.com> | 2011-10-25 08:29:20 -0400 |
commit | bca7ab316edd819edd0e3d59f9ccb26c6b2173f5 (patch) | |
tree | cee77ea94d3305dcbd1ca0c96fbc70c9042209ee /arch/arm/mach-mmp/include/mach/mmp2.h | |
parent | 101bf4c19672b519f6d50a7b11e1e03b25a929b6 (diff) |
ARM: mmp: register internal sram bank
MMP2 have the internal sram, this sram can be allocated
for video, power management and secure processor.
Now the sram usage is:
0xd1000000 ~ 0xd101ffff (128KB) : reserved for secure processor
0xd1020000 ~ 0xd1037fff (96KB) : for video and PM
Register the internal sram's second half 96KB buffer,
so that video and PM can dynamically alloc/free from it.
Signed-off-by: Leo Yan <leoy@marvell.com>
Acked-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Diffstat (limited to 'arch/arm/mach-mmp/include/mach/mmp2.h')
-rw-r--r-- | arch/arm/mach-mmp/include/mach/mmp2.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-mmp/include/mach/mmp2.h b/arch/arm/mach-mmp/include/mach/mmp2.h index c2273287eda4..2f7b2d3c2b18 100644 --- a/arch/arm/mach-mmp/include/mach/mmp2.h +++ b/arch/arm/mach-mmp/include/mach/mmp2.h | |||
@@ -30,6 +30,7 @@ extern struct pxa_device_desc mmp2_device_sdh1; | |||
30 | extern struct pxa_device_desc mmp2_device_sdh2; | 30 | extern struct pxa_device_desc mmp2_device_sdh2; |
31 | extern struct pxa_device_desc mmp2_device_sdh3; | 31 | extern struct pxa_device_desc mmp2_device_sdh3; |
32 | extern struct pxa_device_desc mmp2_device_asram; | 32 | extern struct pxa_device_desc mmp2_device_asram; |
33 | extern struct pxa_device_desc mmp2_device_isram; | ||
33 | 34 | ||
34 | static inline int mmp2_add_uart(int id) | 35 | static inline int mmp2_add_uart(int id) |
35 | { | 36 | { |
@@ -92,5 +93,10 @@ static inline int mmp2_add_asram(struct sram_platdata *data) | |||
92 | return pxa_register_device(&mmp2_device_asram, data, sizeof(*data)); | 93 | return pxa_register_device(&mmp2_device_asram, data, sizeof(*data)); |
93 | } | 94 | } |
94 | 95 | ||
96 | static inline int mmp2_add_isram(struct sram_platdata *data) | ||
97 | { | ||
98 | return pxa_register_device(&mmp2_device_isram, data, sizeof(*data)); | ||
99 | } | ||
100 | |||
95 | #endif /* __ASM_MACH_MMP2_H */ | 101 | #endif /* __ASM_MACH_MMP2_H */ |
96 | 102 | ||