- Timestamp:
- 08/15/11 21:54:20 (9 months ago)
- Location:
- trunk
- Files:
-
- 11 edited
-
board_enable.c (modified) (3 diffs)
-
buspirate_spi.c (modified) (1 diff)
-
chipset_enable.c (modified) (2 diffs)
-
cli_classic.c (modified) (1 diff)
-
dediprog.c (modified) (2 diffs)
-
dmi.c (modified) (1 diff)
-
flashrom.c (modified) (7 diffs)
-
ft2232_spi.c (modified) (2 diffs)
-
it85spi.c (modified) (2 diffs)
-
it87spi.c (modified) (1 diff)
-
physmap.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/board_enable.c
r1411 r1413 861 861 } 862 862 863 /* First, check the ISA bridge*/863 /* Check for the ISA bridge first. */ 864 864 dev = pci_dev_find_vendorclass(0x10DE, 0x0601); 865 865 switch (dev->device_id) { … … 1130 1130 uint32_t tmp, base; 1131 1131 1132 /* GP PO {0,8,27,28,30} are always available*/1133 static const uint32_t nonmuxed_gpos = 0x58000101;1132 /* GPO{0,8,27,28,30} are always available. */ 1133 static const uint32_t nonmuxed_gpos = 0x58000101; 1134 1134 1135 1135 static const struct {unsigned int reg, mask, value; } piix4_gpo[] = { … … 1180 1180 1181 1181 if ((((1 << gpo) & nonmuxed_gpos) == 0) && 1182 (pci_read_word(dev, piix4_gpo[gpo].reg) 1183 & piix4_gpo[gpo].mask) != piix4_gpo[gpo].value) { 1184 msg_perr("\nERROR: PIIX4 GPO%d not programmed for output.\n", 1185 gpo); 1182 ((pci_read_word(dev, piix4_gpo[gpo].reg) & piix4_gpo[gpo].mask) != 1183 piix4_gpo[gpo].value)) { 1184 msg_perr("\nERROR: PIIX4 GPO%d not programmed for output.\n", gpo); 1186 1185 return -1; 1187 1186 } -
trunk/buspirate_spi.c
r1397 r1413 151 151 { 152 152 unsigned char buf[512]; 153 int ret = 0, i, spispeed = 0x7;154 153 char *dev = NULL; 155 154 char *speed = NULL; 155 int spispeed = 0x7; 156 int ret = 0; 157 int i; 156 158 157 159 dev = extract_programmer_param("dev"); -
trunk/chipset_enable.c
r1408 r1413 310 310 { 311 311 uint32_t fwh_conf; 312 int i, tmp; 312 313 char *idsel = NULL; 313 int i, tmp,max_decode_fwh_idsel = 0, max_decode_fwh_decode = 0;314 int max_decode_fwh_idsel = 0, max_decode_fwh_decode = 0; 314 315 int contiguous = 1; 315 316 … … 1036 1037 } else { 1037 1038 msg_pinfo("AMD Elan SC520 detected, but no BOOTCS. " 1038 "Assuming flash at 4G \n");1039 "Assuming flash at 4G.\n"); 1039 1040 } 1040 1041 -
trunk/cli_classic.c
r1397 r1413 105 105 struct flashchip *fill_flash; 106 106 const char *name; 107 int startchip = 0, chipcount = 0, namelen, opt, option_index = 0; 107 int namelen, opt, i; 108 int startchip = 0, chipcount = 0, option_index = 0, force = 0; 109 #if CONFIG_PRINT_WIKI == 1 110 int list_supported_wiki = 0; 111 #endif 108 112 int read_it = 0, write_it = 0, erase_it = 0, verify_it = 0; 109 int dont_verify_it = 0, list_supported = 0, force = 0; 110 #if CONFIG_PRINT_WIKI == 1 111 int list_supported_wiki = 0; 112 #endif 113 int operation_specified = 0, i, ret = 0; 113 int dont_verify_it = 0, list_supported = 0, operation_specified = 0; 114 int ret = 0; 114 115 115 116 static const char optstring[] = "r:Rw:v:nVEfc:m:l:i:p:Lzh"; -
trunk/dediprog.c
r1397 r1413 497 497 { 498 498 char *tmp = NULL; 499 int i, millivolt, fraction = 0; 499 int i; 500 int millivolt = 0, fraction = 0; 500 501 501 502 if (!voltage || !strlen(voltage)) { … … 575 576 struct usb_device *dev; 576 577 char *voltage; 577 int millivolt = 3500, ret; 578 int millivolt = 3500; 579 int ret; 578 580 579 581 msg_pspew("%s\n", __func__); -
trunk/dmi.c
r1397 r1413 197 197 static int dmi_compare(const char *value, const char *pattern) 198 198 { 199 int anchored = 0, patternlen; 199 int anchored = 0; 200 int patternlen; 200 201 201 202 msg_pspew("matching %s against %s\n", value, pattern); -
trunk/flashrom.c
r1397 r1413 601 601 /* Flash registers live 4 MByte below the flash. */ 602 602 /* FIXME: This is incorrect for nonstandard flashbase. */ 603 flash->virtual_registers = (chipaddr)programmer_map_flash_region( 604 "flash chip registers", (0xFFFFFFFF - 0x400000 - size + 1), size); 603 flash->virtual_registers = (chipaddr)programmer_map_flash_region("flash chip registers", (0xFFFFFFFF - 0x400000 - size + 1), size); 605 604 } 606 605 … … 754 753 const char *message) 755 754 { 756 int i , ret = 0, failcount = 0;755 int i; 757 756 uint8_t *readbuf = malloc(len); 757 int ret = 0, failcount = 0; 758 758 759 759 if (!len) … … 833 833 int need_erase(uint8_t *have, uint8_t *want, int len, enum write_granularity gran) 834 834 { 835 int result = 0, i, j, limit; 835 int result = 0; 836 int i, j, limit; 836 837 837 838 switch (gran) { … … 899 900 int *first_start, enum write_granularity gran) 900 901 { 901 int need_write = 0, rel_start = 0, first_len = 0, i, limit, stride; 902 int need_write = 0, rel_start = 0, first_len = 0; 903 int i, limit, stride; 902 904 903 905 switch (gran) { … … 1327 1329 static int selfcheck_eraseblocks(const struct flashchip *flash) 1328 1330 { 1329 int i, j, k, ret = 0; 1331 int i, j, k; 1332 int ret = 0; 1330 1333 1331 1334 for (k = 0; k < NUM_ERASEFUNCTIONS; k++) { … … 1452 1455 { 1453 1456 int i, j; 1454 unsigned int start = 0, len; 1457 unsigned int start = 0; 1458 unsigned int len; 1455 1459 struct block_eraser eraser = flash->block_erasers[erasefunction]; 1456 1460 … … 1604 1608 { 1605 1609 const char *pname; 1606 int pnamelen, remaining = 0, firstline = 1, i; 1610 int pnamelen; 1611 int remaining = 0, firstline = 1; 1607 1612 enum programmer p; 1613 int i; 1608 1614 1609 1615 for (p = 0; p < PROGRAMMER_INVALID; p++) { -
trunk/ft2232_spi.c
r1412 r1413 253 253 } 254 254 255 if (ftdi_usb_reset(ftdic) < 0) 255 if (ftdi_usb_reset(ftdic) < 0) { 256 256 msg_perr("Unable to reset FTDI device\n"); 257 258 if (ftdi_set_latency_timer(ftdic, 2) < 0) 257 } 258 259 if (ftdi_set_latency_timer(ftdic, 2) < 0) { 259 260 msg_perr("Unable to set latency timer\n"); 260 261 if (ftdi_write_data_set_chunksize(ftdic, 256)) 261 } 262 263 if (ftdi_write_data_set_chunksize(ftdic, 256)) { 262 264 msg_perr("Unable to set chunk size\n"); 263 264 if (ftdi_set_bitmode(ftdic, 0x00, BITMODE_BITBANG_SPI) < 0) 265 } 266 267 if (ftdi_set_bitmode(ftdic, 0x00, BITMODE_BITBANG_SPI) < 0) { 265 268 msg_perr("Unable to set bitmode to SPI\n"); 269 } 266 270 267 271 if (clock_5x) { … … 330 334 static unsigned char *buf = NULL; 331 335 /* failed is special. We use bitwise ops, but it is essentially bool. */ 332 int i = 0, ret = 0, failed = 0, bufsize; 336 int i = 0, ret = 0, failed = 0; 337 int bufsize; 333 338 static int oldbufsize = 0; 334 339 -
trunk/it85spi.c
r1401 r1413 85 85 86 86 /* This function will poll the keyboard status register until either 87 * an expected value shows up, or88 * timeout reaches.89 * 90 * Returns: 0 -- the expected value has shown.91 * 1 -- timeout reached.87 * an expected value shows up, or the timeout is reached. 88 * timeout is in usec. 89 * 90 * Returns: 0 -- the expected value showed up. 91 * 1 -- timeout. 92 92 */ 93 93 static int wait_for(const unsigned int mask, const unsigned int expected_value, 94 const int timeout /* in usec */, const char *error_message,95 const char *function_name, const int lineno)94 const int timeout, const char * error_message, 95 const char * function_name, const int lineno) 96 96 { 97 97 int time_passed; … … 318 318 319 319 it85xx_enter_scratch_rom(); 320 /* exit scratch ROM ONLY when programmer shuts down. Otherwise, the 321 * temporary flash state may halt EC. */ 320 /* Exit scratch ROM ONLY when programmer shuts down. Otherwise, the 321 * temporary flash state may halt the EC. 322 */ 322 323 323 324 #ifdef LPC_IO -
trunk/it87spi.c
r1397 r1413 204 204 int init_superio_ite(void) 205 205 { 206 int i, ret = 0; 206 int i; 207 int ret = 0; 207 208 208 209 for (i = 0; i < superio_count; i++) { -
trunk/physmap.c
r1397 r1413 77 77 mi.address = phys_addr; 78 78 mi.size = len; 79 ret = __dpmi_physical_address_mapping (&mi);79 ret = __dpmi_physical_address_mapping(&mi); 80 80 81 81 if (ret != 0)
Note: See TracChangeset
for help on using the changeset viewer.
