/**
 * @file   fcHDCP.h
 * @brief  Contains common definitions for HDCP control
 *
 * Copyright (c) 2013 Samsung Electronics Co., Ltd.
 */

#ifndef __FCHDCP_H__
#define __FCHDCP_H__

#include "fcTIMA.h"

/* Macro for HDMI */
#define HDMI_DISCONNECTED		0x0
#define HDMI_CONNECTED			0x1

#define SCM_CP_HDCP_START		0x1
#define SCM_CP_HDCP_SUCCESS		0x2
#define SCM_CP_HDCP_FAIL		0x4
#define SCM_CP_HDCP_END			0x8

#define FN_HDCP_NOTHING			0x0
#define FN_HDCP_SUCCESS			0x1
#define FN_HDCP_FAIL			0x2

/* Special Virtual address for HDCP check */
#define HDMI_SFR_VA		((uint32_t)0x40000) /* HDMI */
#define PMU_MEDIA_SFR_VA	((uint32_t)0x41000) /* PMU */
#if defined(CONFIG_EXYNOS5433)
#define CMU_DISP_SFR_VA		((uint32_t)0x42000) /* DISP */
#else
#define CMU_TOP_SFR_VA		((uint32_t)0x42000) /* CMU */
#endif

/* Special Virtual/Physical address for HDCP authentication */
#define HDCP_AUTH_OFFSET	(0x400)			/* Offset of HDCP Authentication */
#define HDCP_AUTH_PA		(SRAM_HASH_TABLE_PA + HDCP_AUTH_OFFSET)	/* HDCP Authentication */
#define HDCP_AUTH_MAP_OFFSET	(HDCP_AUTH_PA & (SIZE_4KB - 1))
#define HDCP_AUTH_VA		(SRAM_HASH_TABLE_VA + HDCP_AUTH_MAP_OFFSET)  /* HDCP Authentication */

#endif /* __FCHDCP_H__ */
