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>
diff --git a/src/drivers/maxim/max77686/max77686.h b/src/drivers/maxim/max77686/max77686.h
index 0769a74..f5b85c0 100644
--- a/src/drivers/maxim/max77686/max77686.h
+++ b/src/drivers/maxim/max77686/max77686.h
@@ -77,8 +77,8 @@
 };
 
 enum {
-	MAX77686_MV = 0,	/* mili volt */
-	MAX77686_UV		/* micro volt */
+	MAX77686_MV = 0,	/* millivolt */
+	MAX77686_UV		/* microvolt */
 };
 
 /**
diff --git a/src/drivers/maxim/max77802/max77802.h b/src/drivers/maxim/max77802/max77802.h
index 5823269..f880cb4 100644
--- a/src/drivers/maxim/max77802/max77802.h
+++ b/src/drivers/maxim/max77802/max77802.h
@@ -199,7 +199,7 @@
 #define MAX77802_BUCK_TYPE2_ON	(1 << 4)
 #define MAX77802_BUCK_TYPE2_IGNORE_PWRREQ (1 << 5)
 
-/* LDO35 1.2 volt value for bridge ic */
+/* LDO35 1.2 volt value for bridge IC */
 #define MAX77802_LDO35CTRL1_1_2V (1 << 4)
 #define MAX77802_LOD35CTRL1_ON	 (1 << 6)
 
diff --git a/src/drivers/mipi/panel-CMN_P097PFG_SSD2858.c b/src/drivers/mipi/panel-CMN_P097PFG_SSD2858.c
index 637533e..0336b63 100644
--- a/src/drivers/mipi/panel-CMN_P097PFG_SSD2858.c
+++ b/src/drivers/mipi/panel-CMN_P097PFG_SSD2858.c
@@ -21,7 +21,7 @@
 	.init = {
 		PANEL_GENERIC(0xff, 0x00),
 		/* LOCKCNT=0x1f4, MRX=0, POSTDIV=1 (/2} }, MULT=0x49
-		 * 27 Mhz => 985.5 Mhz */
+		 * 27 MHz => 985.5 MHz */
 		PANEL_GENERIC(0x00, 0x08, 0x01, 0xf4, 0x01, 0x49),
 		/* MTXDIV=1, SYSDIV=3 (=> 4) */
 		PANEL_GENERIC(0x00, 0x0c, 0x00, 0x00, 0x00, 0x03),
@@ -34,7 +34,7 @@
 		PANEL_GENERIC(0x10, 0x08, 0x01, 0x20, 0x08, 0x45),
 		PANEL_GENERIC(0x10, 0x1c, 0x00, 0x00, 0x00, 0x00),
 		PANEL_GENERIC(0x20, 0x0c, 0x00, 0x00, 0x00, 0x04),
-		/* Pixel clock 985.5 Mhz * 0x49/0x4b = 959 Mhz */
+		/* Pixel clock 985.5 MHz * 0x49/0x4b = 959 MHz */
 		PANEL_GENERIC(0x20, 0x10, 0x00, 0x4b, 0x00, 0x49),
 		PANEL_GENERIC(0x20, 0xa0, 0x00, 0x00, 0x00, 0x00),
 		/* EOT=1, LPE = 0, LSOUT=4 lanes, LPD=25 */
diff --git a/src/drivers/mrc_cache/mrc_cache.c b/src/drivers/mrc_cache/mrc_cache.c
index bb560c8..17f5fee 100644
--- a/src/drivers/mrc_cache/mrc_cache.c
+++ b/src/drivers/mrc_cache/mrc_cache.c
@@ -431,7 +431,7 @@
 /* During ramstage this code purposefully uses incoherent transactions between
  * read and write. The read assumes a memory-mapped boot device that can be used
  * to quickly locate and compare the up-to-date data. However, when an update
- * is required it uses the writeable region access to perform the update. */
+ * is required it uses the writable region access to perform the update. */
 static void update_mrc_cache_by_type(int type,
 				     struct mrc_metadata *new_md,
 				     const void *new_data,
diff --git a/src/drivers/net/atl1e.c b/src/drivers/net/atl1e.c
index 191a9c5..fb9bcde 100644
--- a/src/drivers/net/atl1e.c
+++ b/src/drivers/net/atl1e.c
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
 
 /*
- * This driver sets the macaddress of a Atheros AR8121/AR8113/AR8114
+ * This driver sets the MAC address of an Atheros AR8121/AR8113/AR8114
  */
 
 #include <device/mmio.h>
diff --git a/src/drivers/ocp/include/vpd.h b/src/drivers/ocp/include/vpd.h
index 60299e3..8ed6a56 100644
--- a/src/drivers/ocp/include/vpd.h
+++ b/src/drivers/ocp/include/vpd.h
@@ -64,7 +64,7 @@
 #define DISABLE_BOOTDRIVE "disable_bootdrive"
 #define DISABLE_BOOTDRIVE_DEFAULT 0 /* By default don't disable */
 
-/* Skip Global reset so that information in Previous Boot Error Hob won't be cleared */
+/* Skip Global reset so that information in Previous Boot Error HOB won't be cleared */
 #define SKIP_GLOBAL_RESET "skip_global_reset"
 #define SKIP_GLOBAL_RESET_DEFAULT 1
 
diff --git a/src/drivers/smmstore/store.c b/src/drivers/smmstore/store.c
index e0f0f57..bc3dcdc 100644
--- a/src/drivers/smmstore/store.c
+++ b/src/drivers/smmstore/store.c
@@ -185,7 +185,7 @@
 
 	if (k_sz != 0xffffffff) {
 		printk(BIOS_WARNING,
-			"eof of data marker looks invalid: 0x%x\n", k_sz);
+			"EOF of data marker looks invalid: 0x%x\n", k_sz);
 		return CB_ERR;
 	}
 
diff --git a/src/drivers/spi/spi-generic.c b/src/drivers/spi/spi-generic.c
index ef7438e..f45ec25 100644
--- a/src/drivers/spi/spi-generic.c
+++ b/src/drivers/spi/spi-generic.c
@@ -101,7 +101,7 @@
 	/* Subtract command length from usable buffer size. If
 	   deduct_opcode_len is set, only subtract the number command bytes
 	   after the opcode. If the adjusted cmd_len is larger than ctrlr_max
-	   return 0 to inidicate an error. */
+	   return 0 to indicate an error. */
 	if (deduct_cmd_len) {
 		if (ctrlr_max >= cmd_len) {
 			ctrlr_max -= cmd_len;
diff --git a/src/drivers/spi/spi_flash_internal.h b/src/drivers/spi/spi_flash_internal.h
index 1927111..6111374 100644
--- a/src/drivers/spi/spi_flash_internal.h
+++ b/src/drivers/spi/spi_flash_internal.h
@@ -112,7 +112,7 @@
 extern const struct spi_flash_vendor_info spi_flash_eon_vi;
 extern const struct spi_flash_vendor_info spi_flash_gigadevice_vi;
 extern const struct spi_flash_vendor_info spi_flash_macronix_vi;
-/* Probing order matters between the spansion sequence. */
+/* Probing order matters between the Spansion sequence. */
 extern const struct spi_flash_vendor_info spi_flash_spansion_ext1_vi;
 extern const struct spi_flash_vendor_info spi_flash_spansion_ext2_vi;
 extern const struct spi_flash_vendor_info spi_flash_spansion_vi;
diff --git a/src/drivers/spi/spi_sdcard.c b/src/drivers/spi/spi_sdcard.c
index 36d882d..6a7fbf9 100644
--- a/src/drivers/spi/spi_sdcard.c
+++ b/src/drivers/spi/spi_sdcard.c
@@ -207,7 +207,7 @@
 {
 	__maybe_unused static const char * const sd_err[] = {
 		"Card is locked",
-		"wp erase skip | lock/unlok cmd failed",
+		"wp erase skip | lock/unlock cmd failed",
 		"error",
 		"CC error",
 		"card err failed",
@@ -302,7 +302,7 @@
 	/* send crc */
 	spi_sdcard_sendbyte(card, crc);
 
-	/* waitting for response */
+	/* waiting for response */
 	wait = 0xffff;
 	while (((c = spi_sdcard_recvbyte(card)) & 0x80) && --wait)
 		;
@@ -318,7 +318,7 @@
 	}
 
 	if (type == RSP_R1b) {
-		/* waitting done */
+		/* waiting done */
 		wait = 0xffffff;
 		while (c == 0 && --wait)
 			c = spi_sdcard_recvbyte(card);
@@ -368,7 +368,7 @@
 	/* enable CS */
 	spi_sdcard_enable_cs(card);
 
-	/* waitting start block token */
+	/* waiting start block token */
 	wait = 0xffff;
 	while ((spi_sdcard_recvbyte(card) != CT_BLOCK_START) && --wait)
 		;
@@ -505,7 +505,7 @@
 	/* enable cs */
 	spi_sdcard_enable_cs(card);
 
-	/* waitting start block token */
+	/* waiting start block token */
 	wait = 0xffff;
 	while ((spi_sdcard_recvbyte(card) != CT_BLOCK_START) && --wait)
 		;
@@ -558,7 +558,7 @@
 	for (int i = 0; i < block_num; i++) {
 		uint16_t c = 0;
 
-		/* waitting start block token */
+		/* waiting start block token */
 		wait = 0xffff;
 		while ((spi_sdcard_recvbyte(card) != CT_BLOCK_START) && --wait)
 			;
@@ -662,7 +662,7 @@
 	if (spi_sdcard_do_command(card, WRITE_BLOCK, block_address, NULL))
 		return -1;
 
-	/* eanbele cs */
+	/* enable cs */
 	spi_sdcard_enable_cs(card);
 
 	/* send start block token */
diff --git a/src/drivers/spi/tpm/tpm.c b/src/drivers/spi/tpm/tpm.c
index 13f44f9..d9c3a6d 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 @@
 	 * 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 @@
 
 		/*
 		 * 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 @@
 	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 da15a73..0d238e8 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 @@
  * 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.
diff --git a/src/drivers/tpm/ppi.c b/src/drivers/tpm/ppi.c
index 3e74314..6f12b41 100644
--- a/src/drivers/tpm/ppi.c
+++ b/src/drivers/tpm/ppi.c
@@ -647,7 +647,7 @@
 
 	/*
 	 * Returns One if the PPI spec supports this functions.
-	 * That doesn't necessarily mean that the firmware implemtents it, or the
+	 * That doesn't necessarily mean that the firmware implements it, or the
 	 * TPM can execute the function.
 	 *
 	 * Arg0: Integer PPI function
diff --git a/src/drivers/wifi/generic/acpi.c b/src/drivers/wifi/generic/acpi.c
index 3996739..f55fca7 100644
--- a/src/drivers/wifi/generic/acpi.c
+++ b/src/drivers/wifi/generic/acpi.c
@@ -471,7 +471,7 @@
 	if (dev->path.type == DEVICE_PATH_PCI && dev->vendor != PCI_VID_INTEL)
 		return;
 
-	/* Retrieve the sar limits data */
+	/* Retrieve the SAR limits data */
 	if (get_wifi_sar_limits(&sar_limits) < 0) {
 		printk(BIOS_ERR, "failed getting SAR limits!\n");
 		return;
@@ -549,7 +549,7 @@
 	struct dsm_profile dsm = {0};
 	uint8_t dsm_count = 0;
 
-	/* Fill Wifi sar related ACPI structures */
+	/* Fill Wifi SAR related ACPI structures */
 	if (CONFIG(USE_SAR)) {
 		emit_sar_acpi_structures(dev, &dsm);