text: /* Copyright Statement:
  *
  * This software/firmware and related documentation ("MediaTek Software") are
  * protected under relevant copyright laws. The information contained herein
  * is confidential and proprietary to MediaTek Inc. and/or its licensors.
  * Without the prior written permission of MediaTek inc. and/or its licensors,
  * any reproduction, modification, use or disclosure of MediaTek Software,
  * and information contained herein, in whole or in part, shall be strictly prohibited.
  */
  /* MediaTek Inc. (C) 2015. All rights reserved.
  *
  * BY OPENING THIS FILE, RECEIVER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
  * THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
  * RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO RECEIVER ON
  * AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
  * NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
  * SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
  * SUPPLIED WITH THE MEDIATEK SOFTWARE, AND RECEIVER AGREES TO LOOK ONLY TO SUCH
  * THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. RECEIVER EXPRESSLY ACKNOWLEDGES
  * THAT IT IS RECEIVER'S SOLE RESPONSIBILITY TO OBTAIN FROM ANY THIRD PARTY ALL PROPER LICENSES
  * CONTAINED IN MEDIATEK SOFTWARE. MEDIATEK SHALL ALSO NOT BE RESPONSIBLE FOR ANY MEDIATEK
  * SOFTWARE RELEASES MADE TO RECEIVER'S SPECIFICATION OR TO CONFORM TO A PARTICULAR
  * STANDARD OR OPEN FORUM. RECEIVER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND
  * CUMULATIVE LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
  * AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
  * OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY RECEIVER TO
  * MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
  */
  #include <platform/partition.h>
  #include <part_interface.h>
  
  #ifdef MTK_USERIMAGES_USE_F2FS
  #define USERDATA_FS_TYPE "f2fs"
  #else
  #define USERDATA_FS_TYPE "ext4"
  #endif
  
  struct part_name_map g_part_name_map[PART_MAX_COUNT] = {
  	{"preloader", "preloader", "raw data", 0, 0, 0},
  	{"preloader2", "preloader2", "raw data", 1, 0, 0},
  	{"boot_para", "boot_para", "raw data", 2, 0, 0},
  	{"recovery", "recovery", "raw data", 3, 1, 1},
  	{"para", "para", "raw data", 4, 0, 0},
  	{"expdb", "expdb", "raw data", 5, 0, 0},
  	{"frp", "frp", "raw data", 6, 0, 0},
  	{"nvcfg", "nvcfg", "ext4", 7, 0, 0},
  	{"nvdata", "nvdata", "ext4", 8, 0, 0},
  	{"metadata", "metadata", "raw data", 9, 0, 0},
  	{"protect1", "protect1", "ext4", 10, 0, 0},
  	{"protect2", "protect2", "ext4", 11, 0, 0},
  	{"seccfg", "seccfg", "raw data", 12, 0, 0},
  	{"persist", "persist", "ext4", 13, 0, 0},
  	{"sec1", "sec1", "raw data", 14, 0, 0},
  	{"proinfo", "proinfo", "raw data", 15, 0, 0},
  	{"efuse", "efuse", "raw data", 16, 0, 0},
  	{"md1img", "md1img", "raw data", 17, 0, 0},
  	{"md1dsp", "md1dsp", "raw data", 18, 0, 0},
  	{"spmfw", "spmfw", "raw data", 19, 0, 0},
  	{"mcupmfw", "mcupmfw", "raw data", 20, 0, 0},
  	{"scp", "scp", "raw data", 21, 1, 1},
  	{"scp1", "scp1", "raw data", 22, 1, 1},
  	{"scp2", "scp2", "raw data", 23, 1, 1},
  	{"sspm", "sspm", "raw data", 24, 0, 0},
  	{"sspm_1", "sspm_1", "raw data", 25, 0, 0},
  	{"sspm_2", "sspm_2", "raw data", 26, 0, 0},
  	{"cam_vpu1", "cam_vpu1", "raw data", 27, 0, 0},
  	{"cam_vpu2", "cam_vpu2", "raw data", 28, 0, 0},
  	{"cam_vpu3", "cam_vpu3", "raw data", 29, 0, 0},
  	{"gz", "gz", "raw data", 30, 0, 0},
  	{"gz1", "gz1", "raw data", 31, 0, 0},
  	{"gz2", "gz2", "raw data", 32, 0, 0},
  	{"nvram", "nvram", "raw data", 33, 0, 0},
  	{"lk", "lk", "raw data", 34, 0, 0},
  	{"lk2", "lk2", "raw data", 35, 0, 0},
  	{"boot", "boot", "raw data", 36, 1, 1},
  	{"logo", "logo", "raw data", 37, 0, 0},
  	{"odmdtbo", "odmdtbo", "raw data", 38, 1, 1},
  	{"tee", "tee", "raw data", 39, 0, 0},
  	{"tee1", "tee1", "raw data", 40, 0, 0},
  	{"tee2", "tee2", "raw data", 41, 0, 0},
  	{"odm", "odm", "ext4", 42, 1, 1},
  	{"vendor", "vendor", "ext4", 43, 1, 1},
  	{"system", "system", "ext4", 44, 1, 1},
  	{"cache", "cache", "ext4", 45, 1, 1},
  	{"userdata", "userdata", USERDATA_FS_TYPE, 46, 1, 1},
  	{"intsd", "intsd", "fat", 47, 0, 0},
  	{"otp", "otp", "raw data", 48, 0, 0},
  	{"flashinfo", "flashinfo", "raw data", 49, 0, 0},
  	{"", "", "", 50, 0, 0},
  };
  
  