Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Issue 6683023: Add Infineon v05 TPM driver (Closed)

Created:
9 years, 9 months ago by rongchang
Modified:
9 years, 6 months ago
CC:
chromium-os-reviews_chromium.org, dneiss, Olof Johansson, robotboy, chromeboy, amoljadi
Visibility:
Public.

Description

This is the preliminary v05 TPM driver from Infineon. With a wrapper layer added to auto detect v03 and v05 chips. This is a version that just work. Cleanup will start after the initial push. BUG=chromium-os:10497 TEST=Manual Build 1. build a compatible lib first emerge-tegra2_seaboard vboot_reference-firmware 2. use MAKEALL script to check all cfg CROSS_COMPILE=armv7a-cros-linux-gnueabi- VBOOT=/build/tegra2_seaboard/usr ./MAKEALL chromeos 3. check result. 25 passed, no warning, no error u-boot command 1. build a compatible version USE-debug VBOOT_DEBUG=1 emerge-tegra2_seaboard -av vboot_reference-firmware chromeos-u-boot-next 2. flash it using proper tools [board specific] 3. reset system and boot into command prompt 4. test with cros_tpm_test command sets: cros_tpm_test enable cros_tpm_test fast_enable cros_tpm_test startup cros_tpm_test timing Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=10a6dde

Patch Set 1 #

Total comments: 20

Patch Set 2 : Merge Infineon's new driver release #

Total comments: 4

Patch Set 3 : Fix nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1707 lines, -53 lines) Patch
M Makefile View 1 chunk +1 line, -0 lines 0 comments Download
M common/cmd_vboot.c View 1 2 5 chunks +16 lines, -9 lines 0 comments Download
M drivers/misc/Makefile View 1 chunk +0 lines, -1 line 0 comments Download
A drivers/tpm/Makefile View 1 1 chunk +42 lines, -0 lines 0 comments Download
A drivers/tpm/slb9635_i2c.c View 1 chunk +71 lines, -0 lines 0 comments Download
A drivers/tpm/slb9635_i2c/compatibility.h View 1 1 chunk +52 lines, -0 lines 0 comments Download
A drivers/tpm/slb9635_i2c/ifx_auto.h View 1 1 chunk +21 lines, -0 lines 0 comments Download
A drivers/tpm/slb9635_i2c/ifx_v03.c View 1 chunk +15 lines, -0 lines 0 comments Download
A drivers/tpm/slb9635_i2c/ifx_v05.c View 1 1 chunk +46 lines, -0 lines 0 comments Download
A drivers/tpm/slb9635_i2c/tddl.h View 1 1 chunk +31 lines, -0 lines 0 comments Download
A drivers/tpm/slb9635_i2c/tddl.c View 1 1 chunk +100 lines, -0 lines 0 comments Download
A drivers/tpm/slb9635_i2c/tpm.h View 1 1 chunk +159 lines, -0 lines 0 comments Download
A drivers/tpm/slb9635_i2c/tpm.c View 1 1 chunk +469 lines, -0 lines 0 comments Download
A + drivers/tpm/slb9635_i2c/tpm_proto.c View 1 8 chunks +37 lines, -26 lines 0 comments Download
A drivers/tpm/slb9635_i2c/tpm_tis_i2c.c View 1 1 chunk +568 lines, -0 lines 0 comments Download
M include/configs/chromeos/tegra2/aebl/common.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M include/configs/chromeos/tegra2/aebl/developer.h View 1 chunk +2 lines, -0 lines 0 comments Download
A include/configs/chromeos/tegra2/aebl/parts/tpm.h View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
M include/configs/chromeos/tegra2/kaen/common.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M include/configs/chromeos/tegra2/kaen/developer.h View 1 chunk +2 lines, -0 lines 0 comments Download
A include/configs/chromeos/tegra2/kaen/parts/tpm.h View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
M include/configs/chromeos/tegra2/seaboard/parts/tpm.h View 1 2 1 chunk +7 lines, -2 lines 0 comments Download
M include/tpm.h View 1 1 chunk +5 lines, -3 lines 0 comments Download
M lib/chromeos/tlcl_stub.c View 1 2 chunks +23 lines, -12 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
rongchang
9 years, 9 months ago (2011-03-12 03:34:43 UTC) #1
Che-Liang Chiou
Hi Rong, LGTM with nits, but please wait Luigi's LGTM. It is a pretty big ...
9 years, 9 months ago (2011-03-14 06:29:46 UTC) #2
Che-Liang Chiou
Hi Rong, I forgot to publish my comments. Please see below. http://codereview.chromium.org/6683023/diff/1/common/cmd_vboot.c File common/cmd_vboot.c (right): ...
9 years, 9 months ago (2011-03-14 08:49:54 UTC) #3
rongchang
Merged with Infineon's new U-Boot driver release. Next time I will try to divide it ...
9 years, 9 months ago (2011-03-23 11:44:57 UTC) #4
rongchang
Infineon will send the driver to upstream. But before that, we need it in current ...
9 years, 9 months ago (2011-03-23 11:53:13 UTC) #5
Che-Liang Chiou
LGTM. Assuming that infineon's upstreamed codes are the same as they are here. On 2011/03/23 ...
9 years, 9 months ago (2011-03-24 07:41:49 UTC) #6
Luigi Semenzato
LGTM Rong, this is good (with a couple of nits below). If Infineon has succeeded ...
9 years, 9 months ago (2011-03-24 22:17:44 UTC) #7
rongchang
Thanks a lot for the review. http://codereview.chromium.org/6683023/diff/7001/common/cmd_vboot.c File common/cmd_vboot.c (right): http://codereview.chromium.org/6683023/diff/7001/common/cmd_vboot.c#newcode33 common/cmd_vboot.c:33: On 2011/03/24 22:17:44, ...
9 years, 9 months ago (2011-03-29 07:08:03 UTC) #8
rongchang
9 years, 9 months ago (2011-03-29 07:13:57 UTC) #9
Hi Luigi,
We still need to patch Infineon's driver (5 lines) to make it work. We will sort
it out ASAP.

On 2011/03/24 22:17:44, Luigi Semenzato wrote:
> LGTM
> 
> Rong, this is good (with a couple of nits below).  If Infineon has succeeded
in
> upstreaming their driver, can you make sure that this is consistent with their
> version?  If not, just go ahead and commit it, with the understanding that we
> will have to re-merge our changes when they upstream.  In any case it's good
to
> support both v03 and v05 because we still have a lot of the former around, and
> we will for a while.
> 
> Sorry for the delay.
> 
> http://codereview.chromium.org/6683023/diff/7001/common/cmd_vboot.c
> File common/cmd_vboot.c (right):
> 
> http://codereview.chromium.org/6683023/diff/7001/common/cmd_vboot.c#newcode33
> common/cmd_vboot.c:33: 
> Why did you change the semantics here?  If we get other kinds of errors, we
may
> want to propagate them.
> 
>
http://codereview.chromium.org/6683023/diff/7001/include/configs/chromeos/teg...
> File include/configs/chromeos/tegra2/aebl/parts/tpm.h (right):
> 
>
http://codereview.chromium.org/6683023/diff/7001/include/configs/chromeos/teg...
> include/configs/chromeos/tegra2/aebl/parts/tpm.h:12: #define
> CONFIG_INFINEON_TPM_I2C_BUS		(2)
> I wouldn't use parentheses here (and below).
> They don't hurt, but they don't help either.

Powered by Google App Engine
This is Rietveld 408576698