summaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorNicolin Chen <b42378@freescale.com>2013-11-05 19:23:58 +0800
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-23 16:57:44 +0300
commitf352656c6468f2fb7bfe34ea63134f5f7fea963e (patch)
tree966a176babb239811f9c8caa2bfeaa4ed4e743f0 /drivers/misc
parent3275cc8a94b67c587021183378a16c61e05ec0d7 (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 f84b53d6ce50..6c02b3dba583 100644
--- a/drivers/misc/sram.c
+++ b/drivers/misc/sram.c
@@ -26,7 +26,7 @@
#include <linux/platform_device.h>
#include <linux/slab.h>
-#define SRAM_GRANULARITY 32
+#define SRAM_GRANULARITY 4096
struct sram_partition {
void __iomem *base;