soc/amd/stoneyridge: clean up southbridge.c
commita0ff6fc860b8738920366e4f4e328134ffd982d0
authorGarrett Kirkendall <garrett.kirkendall@amd.corp-partner.google.com>
Tue, 6 Mar 2018 15:23:47 +0000 (6 09:23 -0600)
committerMartin Roth <martinroth@google.com>
Wed, 7 Mar 2018 17:55:12 +0000 (7 17:55 +0000)
tree6b9a51f41bddaa1a63767c1dfd76e6ca04510b0e
parentd2558304183e3f79e2dfbfdab4c1b78f8f222217
soc/amd/stoneyridge: clean up southbridge.c

* Limit dependency on vendorcode header files and use defines from
  iomap.h and southbridge.h
* Factor out to functions, device power-on code for AMBA and UART.

BUG=b:69220826
BRANCH=master
TEST=abuild, build Gardenia, build and boot Grunt

Change-Id: Ibcf4d617e2a0a520a6d7e8d0d758d7a9705a84ea
Signed-off-by: Garrett Kirkendall <garrett.kirkendall@amd.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/25010
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
Reviewed-by: Richard Spiegel <richard.spiegel@silverbackltd.com>
src/soc/amd/stoneyridge/southbridge.c