summaryrefslogtreecommitdiff
path: root/src/drivers/spi/tpm
diff options
context:
space:
mode:
authorMartin Roth <gaumless@gmail.com>2023-09-04 15:37:07 -0600
committerFelix Held <felix-coreboot@felixheld.de>2023-12-13 10:42:30 +0000
commit3e25f85d68d10249473d422c4c19dc30ea55e8b0 (patch)
tree0fb6767dfe8334c455ccd8d3dace51bf02664932 /src/drivers/spi/tpm
parent3933ed5e5a73898becc80dccc35a58a158f8899e (diff)
drivers/ipmi to lib: Fix misspellings & capitalization issues
Signed-off-by: Martin Roth <gaumless@gmail.com> Change-Id: I926ec4c1c00339209ef656995031026935e52558 Reviewed-on: https://review.coreboot.org/c/coreboot/+/77637 Reviewed-by: Eric Lai <ericllai@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/drivers/spi/tpm')
-rw-r--r--src/drivers/spi/tpm/tpm.c8
-rw-r--r--src/drivers/spi/tpm/tpm.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/src/drivers/spi/tpm/tpm.c b/src/drivers/spi/tpm/tpm.c
index 13f44f9448..d9c3a6dc1c 100644
--- a/src/drivers/spi/tpm/tpm.c
+++ b/src/drivers/spi/tpm/tpm.c
@@ -2,7 +2,7 @@
/* This is a driver for a SPI interfaced TPM2 device.
*
* It assumes that the required SPI interface has been initialized before the
- * driver is started. A 'sruct spi_slave' pointer passed at initialization is
+ * driver is started. A 'struct spi_slave' pointer passed at initialization is
* used to direct traffic to the correct SPI interface. This driver does not
* provide a way to instantiate multiple TPM devices. Also, to keep things
* simple, the driver unconditionally uses of TPM locality zero.
@@ -134,7 +134,7 @@ static enum cb_err start_transaction(int read_write, size_t bytes, unsigned int
* flow control (Section "6.4.5 Flow Control").
*
* Again, the slave (TPM device) expects each transaction to start
- * with a 4 byte header trasmitted by master. The header indicates if
+ * with a 4 byte header transmitted by master. The header indicates if
* the master needs to read or write a register, and the register
* address.
*
@@ -231,7 +231,7 @@ static void trace_dump(const char *prefix, uint32_t reg,
/*
* Data read from or written to FIFO or not in 4 byte
- * quantiites is printed byte at a time.
+ * quantities is printed byte at a time.
*/
for (i = 0; i < bytes; i++) {
if (current_char &&
@@ -697,7 +697,7 @@ size_t tpm2_process_command(const void *tpm2_command, size_t command_size,
if (debug_level_)
printk(BIOS_DEBUG, "\n");
- /* Verify that 'data available' is not asseretd any more. */
+ /* Verify that 'data available' is not asserted any more. */
read_tpm_sts(&status);
if ((status & expected_status_bits) != TPM_STS_VALID) {
printk(BIOS_ERR, "unexpected final status %#x\n", status);
diff --git a/src/drivers/spi/tpm/tpm.h b/src/drivers/spi/tpm/tpm.h
index da15a73bd8..0d238e8011 100644
--- a/src/drivers/spi/tpm/tpm.h
+++ b/src/drivers/spi/tpm/tpm.h
@@ -11,7 +11,7 @@
#define TPM_LOCALITY_0_SPI_BASE 0x00d40000
/*
- * A tpm device descriptor, values read from the appropriate device regisrers
+ * A TPM device descriptor, values read from the appropriate device registers
* are cached here.
*/
struct tpm2_info {
@@ -33,7 +33,7 @@ tpm_result_t tpm2_init(struct spi_slave *spi_if);
* Each command processing consists of sending the command to the TPM, by
* writing it into the FIFO register, then polling the status register until
* the TPM is ready to respond, then reading the response from the FIFO
- * regitster. The size of the response can be gleaned from the 6 byte header.
+ * register. The size of the response can be gleaned from the 6 byte header.
*
* This function places the response into the tpm2_response buffer and returns
* the size of the response.