Wim Vervoorn has uploaded this change for review. ( https://review.coreboot.org/c/flashrom/+/38481 )
Change subject: chipset_enable: Add Kaby Lake U Prem. to known and tested systems
......................................................................
chipset_enable: Add Kaby Lake U Prem. to known and tested systems
Intel Kaby Lake U (with the 9d4e device id) is available but marked not
tested.
This device was tested on the Facebook Monolith system with the Intel i3
7100U SoC.
Signed-off-by: Wim Vervoorn <wvervoorn(a)eltan.com>
Change-Id: Ie35cc896e29baffa63fe9e37c14770001b54e7ec
---
M chipset_enable.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/81/38481/1
diff --git a/chipset_enable.c b/chipset_enable.c
index e826d90..3b44d93 100644
--- a/chipset_enable.c
+++ b/chipset_enable.c
@@ -1989,7 +1989,7 @@
{0x8086, 0x9d46, B_S, NT, "Intel", "Skylake Y Premium", enable_flash_pch100},
{0x8086, 0x9d48, B_S, NT, "Intel", "Skylake U Premium", enable_flash_pch100},
{0x8086, 0x9d4b, B_S, NT, "Intel", "Kaby Lake Y w/ iHDCP2.2 Prem.", enable_flash_pch100},
- {0x8086, 0x9d4e, B_S, NT, "Intel", "Kaby Lake U w/ iHDCP2.2 Prem.", enable_flash_pch100},
+ {0x8086, 0x9d4e, B_S, DEP, "Intel", "Kaby Lake U w/ iHDCP2.2 Prem.", enable_flash_pch100},
{0x8086, 0x9d50, B_S, NT, "Intel", "Kaby Lake U w/ iHDCP2.2 Base", enable_flash_pch100},
{0x8086, 0x9d51, B_S, NT, "Intel", "Kabe Lake w/ iHDCP2.2 Sample", enable_flash_pch100},
{0x8086, 0x9d53, B_S, NT, "Intel", "Kaby Lake U Base", enable_flash_pch100},
--
To view, visit https://review.coreboot.org/c/flashrom/+/38481
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Ie35cc896e29baffa63fe9e37c14770001b54e7ec
Gerrit-Change-Number: 38481
Gerrit-PatchSet: 1
Gerrit-Owner: Wim Vervoorn <wvervoorn(a)eltan.com>
Gerrit-MessageType: newchange
Carl-Daniel Hailfinger has uploaded this change for review. ( https://review.coreboot.org/c/flashrom/+/38477 )
Change subject: Fix typos
......................................................................
Fix typos
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006(a)gmx.net>
Change-Id: Ia5ed00c488b0719b2bdd6c8f304900511684f445
---
M atavia.c
M flashchips.h
2 files changed, 2 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/77/38477/1
diff --git a/atavia.c b/atavia.c
index fdaaa74..b407a30 100644
--- a/atavia.c
+++ b/atavia.c
@@ -142,7 +142,7 @@
if (rget_io_perms())
return 1;
- dev = pcidev_init(ata_via, PCI_ROM_ADDRESS); /* Acutally no BAR setup needed at all. */
+ dev = pcidev_init(ata_via, PCI_ROM_ADDRESS); /* Actually no BAR setup needed at all. */
if (!dev)
return 1;
diff --git a/flashchips.h b/flashchips.h
index f02958c..14ab6de 100644
--- a/flashchips.h
+++ b/flashchips.h
@@ -602,7 +602,7 @@
#define PMC_PM49FL004 0x6E
/*
- * The Sanyo chip found so far uses SPI, first byte is manufacture code,
+ * The Sanyo chip found so far uses SPI, first byte is manufacturer code,
* second byte is the device code,
* third byte is a dummy byte.
*/
--
To view, visit https://review.coreboot.org/c/flashrom/+/38477
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Ia5ed00c488b0719b2bdd6c8f304900511684f445
Gerrit-Change-Number: 38477
Gerrit-PatchSet: 1
Gerrit-Owner: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006(a)gmx.net>
Gerrit-MessageType: newchange
Hello Edward O'Callaghan, Arthur Heymans, build bot (Jenkins), Patrick Georgi,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/flashrom/+/38319
to review the following change.
Change subject: Revert "pcidev.c: Factor out pcidev_validate() into pure fn"
......................................................................
Revert "pcidev.c: Factor out pcidev_validate() into pure fn"
This reverts commit e28d75ed7204d7fac2c0fac13978098530b0574e.
This is broken in multiple ways, e.g. pcidev_init() can only return
NULL.
Change-Id: I06242147ba9d3a062d442f645eb0800ef51af19f
Signed-off-by: Nico Huber <nico.h(a)gmx.de>
---
M pcidev.c
1 file changed, 24 insertions(+), 29 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/19/38319/1
diff --git a/pcidev.c b/pcidev.c
index 4012840..54c1fd3 100644
--- a/pcidev.c
+++ b/pcidev.c
@@ -148,33 +148,6 @@
return (uintptr_t)addr;
}
-static uintptr_t pcidev_validate(struct pci_dev *dev, int bar, const struct dev_entry *devs)
-{
- unsigned i;
-
- /* Check against list of supported devices. */
- for (i = 0; devs[i].device_name != NULL; i++) {
- if (dev->device_id != devs[i].device_id)
- continue;
-
- msg_pinfo("Found \"%s %s\" (%04x:%04x, BDF %02x:%02x.%x).\n",
- devs[i].vendor_name, devs[i].device_name,
- dev->vendor_id, dev->device_id, dev->bus, dev->dev,
- dev->func);
-
- if (devs[i].status == NT)
- msg_pinfo("===\nThis PCI device is UNTESTED. Please report the 'flashrom -p "
- "xxxx' output\n"
- "to flashrom(a)flashrom.org if it works for you. Please add the name "
- "of your\n"
- "PCI device to the subject. Thank you for your help!\n===\n");
-
-
- return pcidev_readbar(dev, bar);
- }
- return 0;
-}
-
static int pcidev_shutdown(void *data)
{
if (pacc == NULL) {
@@ -210,10 +183,12 @@
struct pci_dev *pcidev_init(const struct dev_entry *devs, int bar)
{
struct pci_dev *dev;
+ struct pci_dev *found_dev = NULL;
struct pci_filter filter;
char *pcidev_bdf;
char *msg = NULL;
int found = 0;
+ int i;
uintptr_t addr = 0;
if (pci_init_common() != 0)
@@ -232,10 +207,30 @@
for (dev = pacc->devices; dev; dev = dev->next) {
if (pci_filter_match(&filter, dev)) {
+ /* Check against list of supported devices. */
+ for (i = 0; devs[i].device_name != NULL; i++)
+ if ((dev->vendor_id == devs[i].vendor_id) &&
+ (dev->device_id == devs[i].device_id))
+ break;
+ /* Not supported, try the next one. */
+ if (devs[i].device_name == NULL)
+ continue;
+
+ msg_pdbg("Found \"%s %s\" (%04x:%04x, BDF %02x:%02x.%x).\n", devs[i].vendor_name,
+ devs[i].device_name, dev->vendor_id, dev->device_id, dev->bus, dev->dev,
+ dev->func);
+ if (devs[i].status == NT)
+ msg_pinfo("===\nThis PCI device is UNTESTED. Please report the 'flashrom -p "
+ "xxxx' output\n"
+ "to flashrom(a)flashrom.org if it works for you. Please add the name "
+ "of your\n"
+ "PCI device to the subject. Thank you for your help!\n===\n");
+
/* FIXME: We should count all matching devices, not
* just those with a valid BAR.
*/
- if ((addr = pcidev_validate(dev, bar, devs)) != 0) {
+ if ((addr = pcidev_readbar(dev, bar)) != 0) {
+ found_dev = dev;
found++;
}
}
@@ -251,7 +246,7 @@
return NULL;
}
- return dev;
+ return found_dev;
}
enum pci_write_type {
--
To view, visit https://review.coreboot.org/c/flashrom/+/38319
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I06242147ba9d3a062d442f645eb0800ef51af19f
Gerrit-Change-Number: 38319
Gerrit-PatchSet: 1
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-MessageType: newchange
Hello Angel Pons, Miklós Márton, David Hendricks,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/flashrom/+/38034
to review the following change.
Change subject: stlinkv3_spi: Move a declaration out of for-loop head
......................................................................
stlinkv3_spi: Move a declaration out of for-loop head
GCC 4.8 wants an explicit `-std=c99` or something for this to work. It
seems easier to keep the common declaration style.
Change-Id: Ic0819f82169df4d66cc949494229b0749c06e8f6
Signed-off-by: Nico Huber <nico.h(a)gmx.de>
---
M stlinkv3_spi.c
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/34/38034/1
diff --git a/stlinkv3_spi.c b/stlinkv3_spi.c
index 02e87bc..7338911 100644
--- a/stlinkv3_spi.c
+++ b/stlinkv3_spi.c
@@ -333,6 +333,7 @@
int rc = 0;
int actual_length = 0;
uint32_t rw_status = 0;
+ unsigned int i;
if (stlinkv3_spi_set_SPI_NSS(SPI_NSS_LOW)) {
msg_perr("Failed to set the NSS pin to low\n");
@@ -346,7 +347,7 @@
command[2] = (uint8_t)write_cnt;
command[3] = (uint8_t)(write_cnt >> 8);
- for (unsigned int i = 0; (i < 8) && (i < write_cnt); i++)
+ for (i = 0; (i < 8) && (i < write_cnt); i++)
command[4+i] = write_arr[i];
rc = libusb_bulk_transfer(stlinkv3_handle, STLINK_EP_OUT,
--
To view, visit https://review.coreboot.org/c/flashrom/+/38034
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Ic0819f82169df4d66cc949494229b0749c06e8f6
Gerrit-Change-Number: 38034
Gerrit-PatchSet: 1
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Reviewer: Miklós Márton <martonmiklosqdev(a)gmail.com>
Gerrit-MessageType: newchange