diff options
author | Lee Leahy <leroy.p.leahy@intel.com> | 2015-05-01 10:34:54 -0700 |
---|---|---|
committer | Leroy P Leahy <leroy.p.leahy@intel.com> | 2015-07-17 20:18:34 +0200 |
commit | 5cb9ddad3e8d487945c4a1e4b82575369b08be52 (patch) | |
tree | fb75b15795c3b6608f6131de31600cc6b0da24a9 /src/mainboard/intel/strago/mainboard.c | |
parent | b18f522bced85deda8a339cdf9aa310478db3a71 (diff) | |
download | coreboot-5cb9ddad3e8d487945c4a1e4b82575369b08be52.tar.xz |
mainboard/intel: Add Braswell based Strago board
Add the initial files to support the Intel RVP for Braswell.
Matches chromium tree at 927026db
This board uses the Braswell FSP 1.1 image and does not build without
the FspUpdVpd.h file.
BRANCH=none
BUG=None
TEST=Build and run ChromeOS on strago
Change-Id: I5cb2efe3d8adf919165c62b25e08c544b316a05a
Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com>
Reviewed-on: http://review.coreboot.org/10052
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/mainboard/intel/strago/mainboard.c')
-rwxr-xr-x | src/mainboard/intel/strago/mainboard.c | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/mainboard/intel/strago/mainboard.c b/src/mainboard/intel/strago/mainboard.c new file mode 100755 index 0000000000..60165e0c85 --- /dev/null +++ b/src/mainboard/intel/strago/mainboard.c @@ -0,0 +1,44 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 2007-2009 coresystems GmbH + * Copyright (C) 2011 Google Inc. + * Copyright (C) 2015 Intel Corp. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc. + */ + +#include <bootstate.h> +#include <device/device.h> +#include <soc/gpio.h> +#include "ec.h" + +static void mainboard_init(device_t dev) +{ + mainboard_ec_init(); +} + +/* + * mainboard_enable is executed as first thing after + * enumerate_buses(). + */ +static void mainboard_enable(device_t dev) +{ + dev->ops->init = mainboard_init; +} + + +struct chip_operations mainboard_ops = { + .enable_dev = mainboard_enable, +}; |