SGX-KM (hack): Workaround for kernel panic due to invalid sync objects

This fixes a problem when invalid syncobjects are accessed after the
swap chain has been destroyed. Should be reverted when final fix
is in place.

Change-Id: Iff4c23534e16f6a2ff86bfdf3a9c5dd33320e5cb
Author:    Kostiantyn Luzan <kostiantyn.luzan@ti.com>
Signed-off-by: Hemant Hariyani <hemanthariyani@ti.com>
Signed-off-by: Tate Hornbeck <tate.hornbeck@ti.com>
OMAP4: ion: Calculate carveout addresses based on sizes

Calculate carveout addresses somewhat dynamically.

- calculate the carveout addresses based on starting or ending
address and size.

- get the tiler2D and nonsecure tiler2D sizes from a separate
platform config variable

- lay out nonsecure tiler2D carveout before tiler2D carvout.
This allows only aligning the sum of these two carveout to
2MB, instead of the size of each.

Change-Id: I38c12459e6229ab9ef2deb89c0bce712e424a2a9
Signed-off-by: Lajos Molnar <lajos@ti.com>
Signed-off-by: Dima Svetlov <svetlov@ti.com>

Conflicts:
	arch/arm/mach-omap2/include/mach/omap4_ion.h
omap4_ion.h configurable OMAP4_ION_HEAP_TILER_SIZE