From 2657f7765fc5dd26149b955108e01bccf363b98a Mon Sep 17 00:00:00 2001 From: Chanho Park Date: Mon, 27 Jul 2015 11:33:15 +0900 Subject: [PATCH] arm: exynos: skip area by kernel start offset 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 --- arch/arm/cpu/armv7/exynos/movi_partition.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/cpu/armv7/exynos/movi_partition.c b/arch/arm/cpu/armv7/exynos/movi_partition.c index 6d1bc00df..136b30d4c 100644 --- a/arch/arm/cpu/armv7/exynos/movi_partition.c +++ b/arch/arm/cpu/armv7/exynos/movi_partition.c @@ -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; -- 2.34.1