soc/amd/stoneyridge: Disable SATA based on devicetree setting
commitbb18b43065f678b8c9987c75075adb9ed25900b3
authorRichard Spiegel <richard.spiegel@amd.corp-partner.google.com>
Fri, 3 Aug 2018 17:37:28 +0000 (3 10:37 -0700)
committerMartin Roth <martinroth@google.com>
Mon, 6 Aug 2018 01:09:04 +0000 (6 01:09 +0000)
tree3ac88a84967948b54686372d30f4587e82e17d32
parentcea849328599c98219ff78cfb83083573aa80f77
soc/amd/stoneyridge: Disable SATA based on devicetree setting

Grunt boards don't use SATA, so it should be disabled to save power.
Check if SATA is enabled in devicetree, and enable/disable the device
based on that setting.

BUG=b:112139043
TEST=Buil and boot grunt, checked the absence of SATA PCI.

Change-Id: I4a3b5f65e612e8da5bedff0c557a0850f350dfa8
Signed-off-by: Richard Spiegel <richard.spiegel@silverbackltd.com>
Reviewed-on: https://review.coreboot.org/27845
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
src/soc/amd/stoneyridge/BiosCallOuts.c
src/soc/amd/stoneyridge/southbridge.c