예제 #1
0
파일: tis_i2c.c 프로젝트: jpl888/coreboot
int tis_open(void)
{
	opened = 1;
	if (tpm_open(bus, CONFIG_DRIVER_TPM_I2C_ADDR)) {
		opened = 0;
		return -1;
	}
	return 0;
}
예제 #2
0
int tis_open(void)
{
	int rc;

	if (!tpm.inited)
		return -1;

	if (tpm_select())
		return -1;

	rc = tpm_open(tpm.slave_addr);

	tpm_deselect();

	return rc;
}