Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: chipset_enable.c

Issue 6877037: Revert MMIO space writes on shutdown as needed. (Closed) Base URL: ssh://gitrw.chromium.org:9222/flashrom.git@master
Patch Set: remove meaningless comments Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | hwaccess.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of the flashrom project. 2 * This file is part of the flashrom project.
3 * 3 *
4 * Copyright (C) 2000 Silicon Integrated System Corporation 4 * Copyright (C) 2000 Silicon Integrated System Corporation
5 * Copyright (C) 2005-2009 coresystems GmbH 5 * Copyright (C) 2005-2009 coresystems GmbH
6 * Copyright (C) 2006 Uwe Hermann <uwe@hermann-uwe.de> 6 * Copyright (C) 2006 Uwe Hermann <uwe@hermann-uwe.de>
7 * Copyright (C) 2007,2008,2009 Carl-Daniel Hailfinger 7 * Copyright (C) 2007,2008,2009 Carl-Daniel Hailfinger
8 * Copyright (C) 2009 Kontron Modular Computers GmbH 8 * Copyright (C) 2009 Kontron Modular Computers GmbH
9 * 9 *
10 * This program is free software; you can redistribute it and/or modify 10 * This program is free software; you can redistribute it and/or modify
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 msg_pdbg("\nRoot Complex Register Block address = 0x%x\n", tmp); 440 msg_pdbg("\nRoot Complex Register Block address = 0x%x\n", tmp);
441 441
442 /* Map RCBA to virtual memory */ 442 /* Map RCBA to virtual memory */
443 rcrb = physmap("ICH RCRB", tmp, 0x4000); 443 rcrb = physmap("ICH RCRB", tmp, 0x4000);
444 444
445 /* Set BBS (Boot BIOS Straps) field of GCS register. */ 445 /* Set BBS (Boot BIOS Straps) field of GCS register. */
446 gcs = mmio_readl(rcrb + 0x3410); 446 gcs = mmio_readl(rcrb + 0x3410);
447 if (target_bus == CHIP_BUSTYPE_LPC) { 447 if (target_bus == CHIP_BUSTYPE_LPC) {
448 msg_pdbg("Setting BBS to LPC\n"); 448 msg_pdbg("Setting BBS to LPC\n");
449 gcs = (gcs & ~0xc00) | (0x3 << 10); 449 gcs = (gcs & ~0xc00) | (0x3 << 10);
450 » » mmio_writel(gcs, rcrb + 0x3410); 450 » » rmmio_writel(gcs, rcrb + 0x3410);
451 } else if (target_bus == CHIP_BUSTYPE_SPI) { 451 } else if (target_bus == CHIP_BUSTYPE_SPI) {
452 msg_pdbg("Setting BBS to SPI\n"); 452 msg_pdbg("Setting BBS to SPI\n");
453 gcs = (gcs & ~0xc00) | (0x1 << 10); 453 gcs = (gcs & ~0xc00) | (0x1 << 10);
454 » » mmio_writel(gcs, rcrb + 0x3410); 454 » » rmmio_writel(gcs, rcrb + 0x3410);
455 } 455 }
456 456
457 msg_pdbg("GCS = 0x%x: ", gcs); 457 msg_pdbg("GCS = 0x%x: ", gcs);
458 msg_pdbg("BIOS Interface Lock-Down: %sabled, ", 458 msg_pdbg("BIOS Interface Lock-Down: %sabled, ",
459 (gcs & 0x1) ? "en" : "dis"); 459 (gcs & 0x1) ? "en" : "dis");
460 bbs = (gcs >> 10) & 0x3; 460 bbs = (gcs >> 10) & 0x3;
461 msg_pdbg("BOOT BIOS Straps: 0x%x (%s)\n", bbs, straps_names[bbs]); 461 msg_pdbg("BOOT BIOS Straps: 0x%x (%s)\n", bbs, straps_names[bbs]);
462 462
463 buc = mmio_readb(rcrb + 0x3414); 463 buc = mmio_readb(rcrb + 0x3414);
464 msg_pdbg("Top Swap : %s\n", 464 msg_pdbg("Top Swap : %s\n",
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after
1268 } 1268 }
1269 1269
1270 ret = 0; 1270 ret = 0;
1271 break; 1271 break;
1272 /* For unexpected second device, the chipset_flash_enable() 1272 /* For unexpected second device, the chipset_flash_enable()
1273 has shown the warning message. */ 1273 has shown the warning message. */
1274 } 1274 }
1275 1275
1276 return ret; 1276 return ret;
1277 } 1277 }
OLDNEW
« no previous file with comments | « no previous file | hwaccess.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698