mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 23:22:37 +02:00
jedec.c: Tidy up whitespace and line wraps
Change-Id: I3f18609709e59cdfc5a853c6e1ae5f53aecacc1a Signed-off-by: Edward O'Callaghan <quasisec@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/73284 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-by: Thomas Heijligen <src@posteo.de>
This commit is contained in:
parent
15d348feff
commit
439f096049
9
jedec.c
9
jedec.c
@ -309,7 +309,7 @@ int erase_sector_jedec(struct flashctx *flash, unsigned int page, unsigned int s
|
|||||||
issuecmd(flash, 0x80, 0);
|
issuecmd(flash, 0x80, 0);
|
||||||
issuecmd(flash, 0x30, page);
|
issuecmd(flash, 0x30, page);
|
||||||
|
|
||||||
/* wait for Toggle bit ready */
|
/* Wait for Toggle bit ready */
|
||||||
toggle_ready_jedec_slow(flash);
|
toggle_ready_jedec_slow(flash);
|
||||||
|
|
||||||
/* FIXME: Check the status register for errors. */
|
/* FIXME: Check the status register for errors. */
|
||||||
@ -318,11 +318,11 @@ int erase_sector_jedec(struct flashctx *flash, unsigned int page, unsigned int s
|
|||||||
|
|
||||||
int erase_block_jedec(struct flashctx *flash, unsigned int block, unsigned int size)
|
int erase_block_jedec(struct flashctx *flash, unsigned int block, unsigned int size)
|
||||||
{
|
{
|
||||||
/* Issue the Sector Erase command */
|
/* Issue the Block Erase command */
|
||||||
issuecmd(flash, 0x80, 0);
|
issuecmd(flash, 0x80, 0);
|
||||||
issuecmd(flash, 0x50, block);
|
issuecmd(flash, 0x50, block);
|
||||||
|
|
||||||
/* wait for Toggle bit ready */
|
/* Wait for Toggle bit ready */
|
||||||
toggle_ready_jedec_slow(flash);
|
toggle_ready_jedec_slow(flash);
|
||||||
|
|
||||||
/* FIXME: Check the status register for errors. */
|
/* FIXME: Check the status register for errors. */
|
||||||
@ -333,8 +333,7 @@ int erase_block_jedec(struct flashctx *flash, unsigned int block, unsigned int s
|
|||||||
int erase_chip_block_jedec(struct flashctx *flash, unsigned int addr, unsigned int blocksize)
|
int erase_chip_block_jedec(struct flashctx *flash, unsigned int addr, unsigned int blocksize)
|
||||||
{
|
{
|
||||||
if ((addr != 0) || (blocksize != flash->chip->total_size * 1024)) {
|
if ((addr != 0) || (blocksize != flash->chip->total_size * 1024)) {
|
||||||
msg_cerr("%s called with incorrect arguments\n",
|
msg_cerr("%s called with incorrect arguments\n", __func__);
|
||||||
__func__);
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user