summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mmp/brownstone.c
diff options
context:
space:
mode:
authorLeo Yan <leoy@marvell.com>2011-08-15 11:09:53 +0800
committerEric Miao <eric.y.miao@gmail.com>2011-10-25 20:29:20 +0800
commit101bf4c19672b519f6d50a7b11e1e03b25a929b6 (patch)
tree886d455140f1504b9d8876059d7047394883a2aa /arch/arm/mach-mmp/brownstone.c
parent3c7241bd36e2a618fe20c91f6c69cc20f2d981f2 (diff)
downloadlinux-101bf4c19672b519f6d50a7b11e1e03b25a929b6.tar.gz
linux-101bf4c19672b519f6d50a7b11e1e03b25a929b6.tar.bz2
linux-101bf4c19672b519f6d50a7b11e1e03b25a929b6.zip
ARM: mmp: register audio sram bank
MMP platform has sram for the audio island; Add the device structure for the audio sram, and register the audio sram device at init phase. 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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-mmp/brownstone.c b/arch/arm/mach-mmp/brownstone.c
index c79162a50f28..db4b5fd4e9d2 100644
--- a/arch/arm/mach-mmp/brownstone.c
+++ b/arch/arm/mach-mmp/brownstone.c
@@ -186,6 +186,10 @@ static struct sdhci_pxa_platdata mmp2_sdh_platdata_mmc2 = {
| PXA_FLAG_SD_8_BIT_CAPABLE_SLOT,
};
+static struct sram_platdata mmp2_asram_platdata = {
+ .pool_name = "asram",
+ .granularity = SRAM_GRANULARITY,
+};
static void __init brownstone_init(void)
{
@@ -197,6 +201,7 @@ static void __init brownstone_init(void)
mmp2_add_twsi(1, NULL, ARRAY_AND_SIZE(brownstone_twsi1_info));
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);
/* enable 5v regulator */
platform_device_register(&brownstone_v_5vp_device);