summaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorNicolin Chen <b42378@freescale.com>2013-11-05 19:23:58 +0800
committerNitin Garg <nitin.garg@nxp.com>2016-01-14 10:59:57 -0600
commit78fc326f5b2dd015479193e103d88dabacc72ddb (patch)
treed18aec091386c948a34a862b2da2d85eeb537b0c /drivers/misc
parentcf0079f6b145b0e8ea95983ddb835b2995b260cf (diff)
MLK-11418 misc: sram: Set default alignment to 4Kbytes
cherry-pick below patch from v3.14.y: ENGR00286273-2 misc: sram: Set default alignment to 4Kbytes As Kernel 3.0.35 does, we set the default iram alignment to 4Kbytes, although it would waste few memory space. We here try to do this as an expediency because currently we couldn't find a perfect solution for 4Kbytes alignment requirement from SDMA. Signed-off-by: Nicolin Chen <b42378@freescale.com> (cherry picked from commit cc35bf5bd3472efca29a0858c0ad468a63c60950)
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/sram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/sram.c b/drivers/misc/sram.c
index eeaaf5fca105..e2f713f5d005 100644
--- a/drivers/misc/sram.c
+++ b/drivers/misc/sram.c
@@ -32,7 +32,7 @@
#include <linux/spinlock.h>
#include <linux/genalloc.h>
-#define SRAM_GRANULARITY 32
+#define SRAM_GRANULARITY 4096
struct sram_dev {
struct gen_pool *pool;