]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ENGR00286273-2 misc: sram: Set default alignment to 4Kbytes
authorNicolin Chen <b42378@freescale.com>
Tue, 5 Nov 2013 11:23:58 +0000 (19:23 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 20 Aug 2014 08:06:40 +0000 (10:06 +0200)
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>
drivers/misc/sram.c

index 21181fa243dfd8705f10e113f4293c990b231c37..b2ce321737d4a54c8785e2a6a30be837bff2439d 100644 (file)
@@ -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;