| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |