From: Nicolin Chen Date: Tue, 5 Nov 2013 11:23:58 +0000 (+0800) Subject: ENGR00286273-2 misc: sram: Set default alignment to 4Kbytes X-Git-Tag: KARO-TX6-2014-08-21~1^2~166 X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-linux.git;a=commitdiff_plain;h=f6ae1bc6fac2c76f3ad6427284d54fdbfffe1c92 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 --- diff --git a/drivers/misc/sram.c b/drivers/misc/sram.c index 21181fa243df..b2ce321737d4 100644 --- a/drivers/misc/sram.c +++ b/drivers/misc/sram.c @@ -32,7 +32,7 @@ #include #include -#define SRAM_GRANULARITY 32 +#define SRAM_GRANULARITY 4096 struct sram_dev { struct gen_pool *pool;