mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 07:02:34 +02:00
Fix typos
Change-Id: I20745d5f30f9577622e27abf2f45220f026f65ac Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/28206 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
parent
5bd11dc847
commit
e2c90c45f7
@ -144,7 +144,7 @@ int atapromise_init(void)
|
||||
|
||||
msg_pwarn("Do not use this device as a generic programmer. It will leave anything outside\n"
|
||||
"the first %zu kB of the flash chip in an undefined state. It works fine for the\n"
|
||||
"purpose of updating the firmware of this device (padding may neccessary).\n",
|
||||
"purpose of updating the firmware of this device (padding may necessary).\n",
|
||||
rom_size / 1024);
|
||||
|
||||
return 0;
|
||||
|
@ -252,7 +252,7 @@ int buspirate_spi_init(void)
|
||||
}
|
||||
free(tmp);
|
||||
|
||||
/* Extract serialspeed paramater */
|
||||
/* Extract serialspeed parameter */
|
||||
tmp = extract_programmer_param("serialspeed");
|
||||
if (tmp) {
|
||||
for (i = 0; serialspeeds[i].name; i++) {
|
||||
|
@ -315,7 +315,7 @@ static int32_t enable_pins(bool enable)
|
||||
/* De-assert and assert CS in one operation. */
|
||||
static void pluck_cs(uint8_t *ptr)
|
||||
{
|
||||
/* This was measured to give a minumum deassertion time of 2.25 us,
|
||||
/* This was measured to give a minimum deassertion time of 2.25 us,
|
||||
* >20x more than needed for most SPI chips (100ns). */
|
||||
int delay_cnt = 2;
|
||||
if (stored_delay_us) {
|
||||
|
@ -5533,7 +5533,7 @@ const struct flashchip flashchips[] = {
|
||||
.model_id = EXCEL_ES25P40,
|
||||
.total_size = 512,
|
||||
.page_size = 256,
|
||||
/* 256-byte paramter page separate from memory array:
|
||||
/* 256-byte parameter page separate from memory array:
|
||||
* supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
|
||||
.feature_bits = FEATURE_WRSR_WREN,
|
||||
.tested = TEST_UNTESTED,
|
||||
@ -5564,7 +5564,7 @@ const struct flashchip flashchips[] = {
|
||||
.model_id = EXCEL_ES25P80,
|
||||
.total_size = 1024,
|
||||
.page_size = 256,
|
||||
/* 256-byte paramter page separate from memory array:
|
||||
/* 256-byte parameter page separate from memory array:
|
||||
* supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
|
||||
.feature_bits = FEATURE_WRSR_WREN,
|
||||
.tested = TEST_UNTESTED,
|
||||
@ -5595,7 +5595,7 @@ const struct flashchip flashchips[] = {
|
||||
.model_id = EXCEL_ES25P16,
|
||||
.total_size = 2 * 1024,
|
||||
.page_size = 256,
|
||||
/* 256-byte paramter page separate from memory array:
|
||||
/* 256-byte parameter page separate from memory array:
|
||||
* supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
|
||||
.feature_bits = FEATURE_WRSR_WREN,
|
||||
.tested = TEST_UNTESTED,
|
||||
|
@ -57,7 +57,7 @@ static int mstarddc_spi_shutdown(void *data)
|
||||
} else {
|
||||
msg_pinfo("Info: Reset command was not sent. "
|
||||
"Either the noreset=1 option was used, "
|
||||
"or an error occured.\n");
|
||||
"or an error occurred.\n");
|
||||
}
|
||||
|
||||
if (close(mstarddc_fd) < 0) {
|
||||
|
@ -364,7 +364,7 @@ void *physmap_ro_unaligned(const char *descr, uintptr_t phys_addr, size_t len)
|
||||
}
|
||||
|
||||
/* MSR abstraction implementations for Linux, OpenBSD, FreeBSD/Dragonfly, OSX, libpayload
|
||||
* and a non-working default implemenation on the bottom. See also hwaccess.h for some (re)declarations. */
|
||||
* and a non-working default implementation on the bottom. See also hwaccess.h for some (re)declarations. */
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
|
||||
#ifdef __linux__
|
||||
|
@ -80,7 +80,7 @@
|
||||
#error Unknown architecture
|
||||
#endif
|
||||
|
||||
/* The next big hunk tries to guess endianess from various preprocessor macros */
|
||||
/* The next big hunk tries to guess endianness from various preprocessor macros */
|
||||
/* First some error checking in case some weird header has defined both.
|
||||
* NB: OpenBSD always defines _BIG_ENDIAN and _LITTLE_ENDIAN. */
|
||||
#if defined (__LITTLE_ENDIAN__) && defined (__BIG_ENDIAN__)
|
||||
|
2
serial.c
2
serial.c
@ -194,7 +194,7 @@ int serialport_config(fdtype fd, int baud)
|
||||
return 1;
|
||||
}
|
||||
/* We want whatever the termios looks like now, so the rest of the
|
||||
setup doesnt mess up the custom rate. */
|
||||
setup doesn't mess up the custom rate. */
|
||||
if (tcgetattr(fd, &wanted) != 0) {
|
||||
/* This should pretty much never happen (see above), but.. */
|
||||
msg_perr_strerror("Could not fetch serial port configuration: ");
|
||||
|
Loading…
x
Reference in New Issue
Block a user