/*
 * =====================================================================================
 *
 *       Filename:  qseeSecureState.h
 *
 *    Description:  Check BSP secure state in QC.
 *
 *        Version:  1.0
 *        Created:  03/22/2018 17:29:16 PM
 *       Compiler:  armcc
 *
 *         Author:  Taehoon Kim (), th0228.kim@samsung.com
 *        Company:  Samsung Electronics
 *
 *        Copyright (c) 2018 by Samsung Electronics, All rights reserved. 
 *
 * =====================================================================================
 */
#ifndef __QSEE_SECURE_STATE_H__
#define __QSEE_SECURE_STATE_H__

#include <stdbool.h>

#define SECUREBOOT_CHECK_BIT (1<<0)

/**
 * Function : checkBspSecureState()
 *
 * Description : Check security status on the device.
 *               Status from "qsee_get_secure_state()" is like below.
 *                           Bit 0: secboot enabling check failed // 0 => Secureboot enabled, 1 => Secureboot disabled
 *                           Bit 1: Sec HW key is not programmed
 *                           Bit 2: debug disable check failed
 *                           Bit 3: Anti-rollback check failed
 *                           Bit 4: fuse config check failed
 *                           Bit 5: rpmb provision check failed
 *               This API checks "Bit 0".
 *
 * Return value : true is returned if secureboot is enabled.
 *                false is returned if secureboot is disabled or error occured on "qsee_get_secure_state()".
 */

bool checkBspSecureState(void);
#endif	// End of __QSEE_SECURE_STATE_H__
