From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964891Ab3DHODJ (ORCPT ); Mon, 8 Apr 2013 10:03:09 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:49964 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936165Ab3DHODF (ORCPT ); Mon, 8 Apr 2013 10:03:05 -0400 From: Mathias 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, 8 Apr 2013 16:02:39 +0200 Message-Id: <1365429759-2058-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 * 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: Mathias Leblanc --- 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