tpm_stm_st33_i2c.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * STMicroelectronics TPM I2C Linux driver for TPM ST33ZP24
  3. * Copyright (C) 2009, 2010 STMicroelectronics
  4. * Christophe RICARD tpmsupport@st.com
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License along
  16. * with this program; if not, write to the Free Software Foundation, Inc.,
  17. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  18. *
  19. * STMicroelectronics version 1.2.0, Copyright (C) 2010
  20. * STMicroelectronics comes with ABSOLUTELY NO WARRANTY.
  21. * This is free software, and you are welcome to redistribute it
  22. * under certain conditions.
  23. *
  24. * @File: stm_st33_tpm_i2c.h
  25. *
  26. * @Date: 06/15/2008
  27. */
  28. #ifndef __STM_ST33_TPM_I2C_H__
  29. #define __STM_ST33_TPM_I2C_H__
  30. #include <linux/i2c.h>
  31. #define TPM_ST33_I2C "st33zp24_i2c"
  32. #define TPM_I2C_ST33_ADDR_WR_LOC0 (0x26 >> 1)
  33. struct st33zp24_platform_data {
  34. int io_serirq;
  35. int io_lpcpd;
  36. struct i2c_client *client;
  37. bool bChipF;
  38. u8 *tpm_i2c_buffer[2]; /* 0 Request 1 Response */
  39. struct completion irq_detection;
  40. struct mutex lock;
  41. };
  42. #endif /* __STM_ST33_TPM_I2C_H__ */