/*
 * Copyright (C) 2016 MediaTek Inc.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See http://www.gnu.org/licenses/gpl-2.0.html for more details.
 */
/*! \file
*    \brief  Declaration of library functions
*
*    Any definitions in this file will be shared among GLUE Layer and internal Driver Stack.
*/

#ifndef _PLATFORM_MT7981_H_
#define _PLATFORM_MT7981_H_

enum 
{
	ADIE_TYPE_NONE = 0,
	ADIE_TYPE_ONE,
	ADIE_TYPE_TWO,
	ADIE_TYPE_NUM_MAX
};

enum conn_semaphore_type
{
	CONN_SEMA_CHIP_POWER_ON_INDEX = 0,
	CONN_SEMA_CALIBRATION_INDEX = 1,
	CONN_SEMA_FW_DL_INDEX = 2,
	CONN_SEMA_CLOCK_SWITCH_INDEX = 3,
	CONN_SEMA_CCIF_INDEX = 4,
	CONN_SEMA_COEX_INDEX = 5,
	CONN_SEMA_USB_EP0_INDEX = 6,
	CONN_SEMA_USB_SHARED_INFO_INDEX = 7,
	CONN_SEMA_USB_SUSPEND_INDEX = 8,
	CONN_SEMA_USB_RESUME_INDEX = 9,
	CONN_SEMA_PCIE_INDEX = 10,
	CONN_SEMA_RFSPI_INDEX = 11,
	CONN_SEMA_EFUSE_INDEX = 12,
	CONN_SEMA_THERMAL_INDEX = 13,
	CONN_SEMA_FLASH_INDEX = 14,
	CONN_SEMA_DEBUG_INDEX = 15,
	CONN_SEMA_WIFI_LP_INDEX = 16,
	CONN_SEMA_PATCH_DL_INDEX = 17,
	CONN_SEMA_SHARED_VAR_INDEX = 18,
	CONN_SEMA_CONN_INFRA_COMMON_SYSRAM_INDEX = 19,
	CONN_SEMA_NUM_MAX = 32 /* can't be omitted */
};

unsigned int consys_soc_chipid_get(void);
unsigned int consys_get_hw_ver(void);


#endif /* _PLATFORM_MT7981_H_ */
