Patch Set 4:

Patch Set 4:

Patch Set 4:

Patch Set 4:

Patch Set 4:

Patch Set 4:

Patch Set 4:

Patch Set 4:

Patch Set 4: -Code-Review

Patch Set 4:

This can go into bootblock, not ramstage. We don't have any devices out in the field yet with locked R/O firmware.

make sense. may be finalize.c ?

Wouldn't it want to do this as soon as we come out of reset i.e. before any GPIOs are configured?

Something like bootblock_soc_early_init ?

We need to ensure that the early BARs are set up correctly before accessing these registers. I believe it gets set in bootblock_soc_early_init().

https://github.com/coreboot/coreboot/blob/7706a04c603474400234cc72a27a61070845eca2/src/soc/intel/cannonlake/bootblock/pch.c#L183 ?

I believe it's p2sb_enable_bar(), which is called from bootblock_soc_early_init(), so adding bootblock_mainboard_early_init() to hatch and moving this there probably makes sense

Yes that would work. But, in my opinion this change is required for all mainboards and would be good to keep in SoC code -- either in bootblock_soc_early_init() after bootblock_pch_early_init() or in bootblock_soc_init().

Ah yes good point.

Thanks all, this will go into bootblock(in bootblock_soc_init())

View Change

To view, visit change 34624. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I2185355d0095601e0778b6bf47ae137cc53e4051
Gerrit-Change-Number: 34624
Gerrit-PatchSet: 4
Gerrit-Owner: David Wu <david_wu@quanta.corp-partner.google.com>
Gerrit-Reviewer: David Wu <david_wu@quanta.corp-partner.google.com>
Gerrit-Reviewer: Furquan Shaikh <furquan@google.com>
Gerrit-Reviewer: Karthik Ramasubramanian <kramasub@google.com>
Gerrit-Reviewer: Patrick Rudolph <siro@das-labor.org>
Gerrit-Reviewer: Paul Fagerburg <pfagerburg@chromium.org>
Gerrit-Reviewer: Paul Menzel <paulepanter@users.sourceforge.net>
Gerrit-Reviewer: Shelley Chen <shchen@google.com>
Gerrit-Reviewer: Subrata Banik <subrata.banik@intel.com>
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak@chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-Comment-Date: Thu, 01 Aug 2019 02:09:49 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment