Raymond Mao 9d2bc92ba7 tpm: add TPM2_PCR_Allocate command
TPM2_PCR_Allocate command is required to reconfigure a TPM device
to enable or disable algorithms in run-time, thus this patch introduces
the implementation of PCR allocate APIs and adds related cmd functions
for testing.

To test the feature, ensure that TPM is started up.
Run pcr_allocate command to turn on/off an algorithm, multiple calls
are supported and all changes will be cached:
`tpm2 pcr_allocate <algorithm_name> <on|off>`
Run startup command with argument 'off' to shutdown the TPM.
`tpm2 startup TPM2_SU_CLEAR off`
Reboot the board via `reset` to activate the changes.

Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
2025-01-28 08:58:41 +02:00
..
2024-10-28 16:11:33 +08:00
2024-02-15 10:38:34 +01:00
2024-12-30 13:21:55 -06:00
2024-07-15 12:12:17 -06:00
2024-12-30 13:21:55 -06:00
2024-07-15 12:12:17 -06:00
2024-10-09 22:04:56 -06:00
2024-07-15 12:12:17 -06:00
2024-08-02 15:16:51 -03:00
2024-07-15 12:12:17 -06:00
2024-08-13 06:12:40 +02:00
2024-09-12 17:35:37 +02:00
2024-09-12 17:35:37 +02:00
2022-03-15 16:19:29 -04:00
2024-10-29 16:17:47 -06:00
2024-09-12 17:35:37 +02:00
2024-10-18 14:10:21 -06:00
2024-09-12 17:35:37 +02:00
2024-08-13 06:23:05 +02:00
2024-06-30 10:59:42 -06:00
2024-12-30 13:21:55 -06:00
2025-01-26 11:06:56 +01:00
2025-01-20 08:32:48 -06:00
2024-03-07 09:23:10 -05:00
2024-10-25 14:22:24 -06:00
2024-09-18 13:07:19 -06:00
2024-07-15 12:12:17 -06:00
2024-12-17 13:17:41 -06:00
2024-07-15 12:12:17 -06:00
2024-12-17 13:17:41 -06:00
2024-11-14 18:14:05 -06:00
2024-11-22 14:40:53 -06:00
2024-09-12 17:35:37 +02:00
2025-01-02 11:07:54 -06:00
2024-05-22 08:55:29 -06:00
2022-09-02 13:40:42 -04:00
2024-12-24 17:02:23 +01:00
2024-12-02 07:40:39 -06:00
2025-01-14 14:29:29 -06:00
2024-06-24 13:34:52 -06:00
2024-07-15 12:12:17 -06:00
2020-08-07 22:31:32 -04:00
2024-10-17 03:12:47 +02:00
2024-07-15 12:12:17 -06:00
2024-07-15 12:12:17 -06:00
2025-01-28 08:58:41 +02:00
2024-12-31 19:00:46 -06:00
2024-10-10 16:02:20 -06:00
2024-07-15 12:12:17 -06:00
2024-07-15 12:12:17 -06:00
2024-11-14 18:14:05 -06:00
2024-09-18 13:00:59 -06:00
2024-07-15 12:12:17 -06:00