diff options
author | Leo Yan <leoy@marvell.com> | 2011-08-15 11:09:54 +0800 |
---|---|---|
committer | Eric Miao <eric.y.miao@gmail.com> | 2011-10-25 20:29:20 +0800 |
commit | bca7ab316edd819edd0e3d59f9ccb26c6b2173f5 (patch) | |
tree | cee77ea94d3305dcbd1ca0c96fbc70c9042209ee /arch/arm/mach-mmp/brownstone.c | |
parent | 101bf4c19672b519f6d50a7b11e1e03b25a929b6 (diff) | |
download | lwn-bca7ab316edd819edd0e3d59f9ccb26c6b2173f5.tar.gz lwn-bca7ab316edd819edd0e3d59f9ccb26c6b2173f5.zip |
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/brownstone.c')
-rw-r--r-- | arch/arm/mach-mmp/brownstone.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-mmp/brownstone.c b/arch/arm/mach-mmp/brownstone.c index db4b5fd4e9d2..59dcf9df1537 100644 --- a/arch/arm/mach-mmp/brownstone.c +++ b/arch/arm/mach-mmp/brownstone.c @@ -191,6 +191,11 @@ static struct sram_platdata mmp2_asram_platdata = { .granularity = SRAM_GRANULARITY, }; +static struct sram_platdata mmp2_isram_platdata = { + .pool_name = "isram", + .granularity = SRAM_GRANULARITY, +}; + static void __init brownstone_init(void) { mfp_config(ARRAY_AND_SIZE(brownstone_pin_config)); @@ -202,6 +207,7 @@ static void __init brownstone_init(void) mmp2_add_sdhost(0, &mmp2_sdh_platdata_mmc0); /* SD/MMC */ mmp2_add_sdhost(2, &mmp2_sdh_platdata_mmc2); /* eMMC */ mmp2_add_asram(&mmp2_asram_platdata); + mmp2_add_isram(&mmp2_isram_platdata); /* enable 5v regulator */ platform_device_register(&brownstone_v_5vp_device); |