mainboard/google/reef: declare mainboard_ec_init() in each C file

There's no common EC header file in the code base, and I didn't
want to use a header file for single declaration. Therefore,
just move the declaration to each file that uses that symbol.

BUG=chrome-os-partner:56677

Change-Id: Ibaebb0ea6a07029aec02d5185cf05ffb8593b117
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/16420
Tested-by: build bot (Jenkins)
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
This commit is contained in:
Aaron Durbin 2016-09-02 17:25:35 -05:00
parent 10d67cbad5
commit b64389d840
4 changed files with 6 additions and 4 deletions

View File

@ -19,6 +19,8 @@
#include <soc/gpio.h>
#include <variant/ec.h>
void mainboard_ec_init(void);
void bootblock_mainboard_init(void)
{
const struct pad_config *pads;

View File

@ -20,6 +20,8 @@
#include <soc/lpc.h>
#include <variant/ec.h>
void mainboard_ec_init(void);
static void ramstage_ec_init(void)
{
printk(BIOS_ERR, "mainboard: EC init\n");

View File

@ -25,6 +25,8 @@
#include <variant/ec.h>
#include <variant/gpio.h>
void mainboard_ec_init(void);
static void mainboard_init(void *chip_info)
{
int boardid;

View File

@ -70,8 +70,4 @@
EC_HOST_EVENT_MASK(EC_HOST_EVENT_BATTERY_SHUTDOWN)|\
EC_HOST_EVENT_MASK(EC_HOST_EVENT_PANIC))
#ifndef __ACPI__
extern void mainboard_ec_init(void);
#endif
#endif