mainboard/google/reef: apply EVT board changes
Based on the board revision apply the correct GPIO changes. The only differences are the addition of 2 peripheral wake signals and a dedicated peripheral reset line. BUG=chrome-os-partner:54959,chrome-os-partner:54960,chrome-os-partner:54961 BRANCH=None TEST=Built and tested on reef. Change-Id: I9cac82158e70e0af1b454ec4581c2e4622b95b4b Signed-off-by: Aaron Durbin <adurbin@chromuim.org> Reviewed-on: https://review.coreboot.org/15562 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Furquan Shaikh <furquan@google.com>
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
*/
|
||||
|
||||
#include <arch/acpi.h>
|
||||
#include <boardid.h>
|
||||
#include <console/console.h>
|
||||
#include <device/device.h>
|
||||
#include <nhlt.h>
|
||||
@@ -24,7 +25,21 @@
|
||||
|
||||
static void mainboard_init(void *chip_info)
|
||||
{
|
||||
int boardid;
|
||||
|
||||
boardid = board_id();
|
||||
printk(BIOS_INFO, "Board ID: %d\n", boardid);
|
||||
|
||||
gpio_configure_pads(gpio_table, ARRAY_SIZE(gpio_table));
|
||||
|
||||
/* Apply proto board settings if board matches. */
|
||||
if (boardid == 0)
|
||||
gpio_configure_pads(proto_diff_table,
|
||||
ARRAY_SIZE(proto_diff_table));
|
||||
else
|
||||
gpio_configure_pads(nonproto_diff_table,
|
||||
ARRAY_SIZE(nonproto_diff_table));
|
||||
|
||||
mainboard_ec_init();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user