diff options
Diffstat (limited to 'drivers/tpm')
-rw-r--r-- | drivers/tpm/Makefile | 2 | ||||
-rw-r--r-- | drivers/tpm/dummy_tpm.c | 31 |
2 files changed, 33 insertions, 0 deletions
diff --git a/drivers/tpm/Makefile b/drivers/tpm/Makefile index d53c7911ab6..3c8c01bb203 100644 --- a/drivers/tpm/Makefile +++ b/drivers/tpm/Makefile @@ -19,6 +19,8 @@ COBJS-$(CONFIG_INFINEON_TPM_I2C) = slb9635_i2c.o \ $(IFXDIR)/ifx_v05.o \ $(IFXDIR)/ifx_v03.o +COBJS-$(CONFIG_DUMMY_TPM) = dummy_tpm.o + COBJS := $(COBJS-y) SRCS := $(COBJS:.o=.c) OBJS := $(addprefix $(obj),$(COBJS)) diff --git a/drivers/tpm/dummy_tpm.c b/drivers/tpm/dummy_tpm.c new file mode 100644 index 00000000000..685968c5eff --- /dev/null +++ b/drivers/tpm/dummy_tpm.c @@ -0,0 +1,31 @@ +/* Copyright (c) 2011 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#include <tpm.h> + +int tis_init(void) +{ + printf("tis_init called but not implemented.\n"); + return 1; +} + +int tis_open(void) +{ + printf("tis_open called but not implemented.\n"); + return 1; +} + +int tis_close(void) +{ + printf("tis_close called but not implemented.\n"); + return 1; +} + +int tis_sendrecv(const uint8_t *sendbuf, size_t send_size, uint8_t *recvbuf, + size_t *recv_len) +{ + printf("tis_sendrecv called but not implemented.\n"); + return 1; +} |