/*
 * Copyright (c) 2020, MediaTek Inc. All rights reserved.
 *
 * 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.
 * Except as otherwise provided in the applicable licensing terms with
 * 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.
*/

#ifndef _ECINFO_DEBUG_H_
#define _ECINFO_DEBUG_H_

#include <ecinfo.h>


char EC_VERSION[5];
char PCODE[9];
char EC_PATH[128];
map_str_t EC_MAP;

/*
 * EC Uboot main functions list:
 * 1. Get EC version in /vendor/tvconfig/ec/version.txt.
 * 2. Read Product Code and store in productcode[].
 * 3. Implement Map function in Uboot. 
 * 4. Parse base and optional json file into Memory and delete duplicated item,
 *     transfer them to Map struct.
 * 6. Implement get_ec_value and get_ec_version.
 */
int do_ec_uboot_debug(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
int get_ec_value(const char* key, char* value, int length);
int get_ec_version(char* version, int length);
#endif
