blob: c9ba041d03d8b42898d2c39d579609842c7948db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* SPDX-License-Identifier: GPL-2.0-only */
#include <amdblocks/acpimmio.h>
#include <arch/io.h>
#include <northbridge/amd/agesa/state_machine.h>
#include <southbridge/amd/agesa/hudson/smbus.h>
static void smbus_setup(void)
{
post_code(0x30);
/* turn on secondary smbus at b20 */
pm_write8(0x28, pm_read8(0x28) | 0x01);
}
void board_BeforeAgesa(struct sysinfo *cb)
{
smbus_setup();
}
|