Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757769Ab3CYPIi (ORCPT ); Mon, 25 Mar 2013 11:08:38 -0400 Received: from mail-wg0-f51.google.com ([74.125.82.51]:36752 "EHLO mail-wg0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756682Ab3CYPIf (ORCPT ); Mon, 25 Mar 2013 11:08:35 -0400 From: Matthias Leblanc To: Kent Yoder , Rajiv Andrade , Marcel Selhorst , Sirrix AG , tpmdd-devel@lists.sourceforge.net Cc: linux-kernel@vger.kernel.org, Jean-Luc Blanc , Mathias Leblanc Subject: [PATCH 1/1] TPM: STMicroelectronics st33 driver SPI Date: Mon, 25 Mar 2013 16:08:04 +0100 Message-Id: <1364224084-3133-1-git-send-email-mathias.leblanc@st.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 38621 Lines: 1386 From: admin01 * STMicroelectronics version 1.2.0, Copyright (C) 2010 * STMicroelectronics comes with ABSOLUTELY NO WARRANTY. * This is free software, and you are welcome to redistribute it * under certain conditions. This is the driver for TPM chip from ST Microelectronics. If you have a TPM security chip from STMicroelectronics working with an I2C/SPI, in menuconfig or .config choose the tpm driver on device --> tpm and activate the protocol of your choice before compiling the kernel. The driver will be accessible from within Linux. Tested on linux x86/x64 and beagleboard REV B & XM REV C Signed-off-by: admin01 --- arch/arm/mach-omap2/board-omap3beagle.c | 40 ++ drivers/char/tpm/Kconfig | 10 + drivers/char/tpm/Makefile | 1 + drivers/char/tpm/tpm_spi_stm_st33.c | 1116 +++++++++++++++++++++++++++++++ drivers/char/tpm/tpm_spi_stm_st33.h | 75 ++ include/linux/spi/tpm_spi_stm_st33.h | 46 ++ 6 files changed, 1287 insertions(+), 0 deletions(-) create mode 100644 drivers/char/tpm/tpm_spi_stm_st33.c create mode 100644 drivers/char/tpm/tpm_spi_stm_st33.h create mode 100644 include/linux/spi/tpm_spi_stm_st33.h diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index c3558f9..72e6513 100644 --- a/arch/arm/mach-omap2/board-omap3beagle.c +++ b/arch/arm/mach-omap2/board-omap3beagle.c @@ -46,6 +46,11 @@ #include