blob: 542061b73d1ba5251fac9c71e0344ef747561763 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/* SPDX-License-Identifier: GPL-2.0-only */
/* This file is part of the coreboot project. */
#include <console/console.h>
#include <bootblock_common.h>
#include "dock.h"
static int dock_err;
void bootblock_mainboard_early_init(void)
{
/* Minimal setup to detect dock */
dock_err = pc87382_early();
if (dock_err == 0)
dock_connect();
}
void bootblock_mainboard_init(void)
{
/* Console is not yet initialized in bootblock_mainboard_early_init,
so we print the dock information here */
if (dock_err)
printk(BIOS_ERR, "DOCK: Failed to init pc87382\n");
else
dock_info();
}
|