arm: exynos: skip area by kernel start offset
authorChanho Park <chanho61.park@samsung.com>
Mon, 27 Jul 2015 02:33:15 +0000 (11:33 +0900)
committerChanho Park <chanho61.park@samsung.com>
Tue, 28 Jul 2015 08:49:32 +0000 (17:49 +0900)
This patch allows same kernel offset even we use different tzsw offset.
We could start same location for kernel start offset.

Signed-off-by: Chanho Park <chanho61.park@samsung.com>
arch/arm/cpu/armv7/exynos/movi_partition.c

index 6d1bc00df504ca4b77c23f304788af2de321b941..136b30d4cd1b6251a2a4f1e40ddda285cb8fe3ea 100644 (file)
@@ -88,7 +88,11 @@ int init_raw_area_table(block_dev_desc_t * dev_desc, int location)
        part_num++;
 
        /* image 5 should be kernel */
+#ifdef CONFIG_KERNEL_OFFSET
+       image[part_num].start_blk = CONFIG_KERNEL_OFFSET * 2048;
+#else
        image[part_num].start_blk = image[part_num - 1].start_blk + MOVI_ENV_BLKCNT;
+#endif
        image[part_num].used_blk = MOVI_ZIMAGE_BLKCNT;
        image[part_num].size = PART_SIZE_KERNEL;
        image[part_num].attribute = 0x5;