X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fflash%2Fnand%2Fat91sam9.c;h=92ab047f623a3e9972c3dcc79066d3b48c14805a;hb=0eb7fb59a0afe9c82f1f3d3f88fb88e3f04d706a;hp=7cfd763a8b157d350fbe047b8d55c56e2a1f48a6;hpb=3ac2a440419a52752a5e11eba8ab2722a1fe73bf;p=openocd.git diff --git a/src/flash/nand/at91sam9.c b/src/flash/nand/at91sam9.c index 7cfd763a8b..92ab047f62 100644 --- a/src/flash/nand/at91sam9.c +++ b/src/flash/nand/at91sam9.c @@ -414,12 +414,16 @@ static int at91sam9_read_page(struct nand_device *nand, uint32_t page, // attempt recovery uint32_t parity; - target_read_u32(target, info->ecc + AT91C_ECCx_PR, &parity); + target_read_u32(target, + info->ecc + AT91C_ECCx_PR, + &parity); uint32_t word = (parity & 0x0000FFF0) >> 4; uint32_t bit = parity & 0x0F; data[word] ^= (0x1) << bit; - LOG_INFO("Data word %d, bit %d corrected.", word, bit); + LOG_INFO("Data word %d, bit %d corrected.", + (unsigned) word, + (unsigned) bit); } } @@ -693,28 +697,30 @@ static const struct command_registration at91sam9_sub_command_handlers[] = { .handler = handle_at91sam9_cle_command, .mode = COMMAND_CONFIG, .help = "set command latch enable address line (default is 22)", - .usage = " ", + .usage = "bank_id address_line", }, { .name = "ale", .handler = handle_at91sam9_ale_command, .mode = COMMAND_CONFIG, .help = "set address latch enable address line (default is 21)", - .usage = " ", + .usage = "bank_id address_line", }, { .name = "rdy_busy", .handler = handle_at91sam9_rdy_busy_command, .mode = COMMAND_CONFIG, - .help = "set the input pin connected to RDY/~BUSY signal (no default)", - .usage = " ", + .help = "set the GPIO input pin connected to " + "the RDY/~BUSY signal (no default)", + .usage = "bank_id pio_base_addr pin_num", }, { .name = "ce", .handler = handle_at91sam9_ce_command, .mode = COMMAND_CONFIG, - .help = "set the output pin connected to chip enable signal (no default)", - .usage = " ", + .help = "set the GPIO output pin connected to " + "the chip enable signal (no default)", + .usage = "bank_id pio_base_addr pin_num", }, COMMAND_REGISTRATION_DONE };