summaryrefslogtreecommitdiff
path: root/src/mainboard/asus/p2b/mainboard.c
blob: 87838b44c341f309994c92cd73c8e4e35171ca87 (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
27
28
29
/* SPDX-License-Identifier: GPL-2.0-only */

#include <device/pci_ops.h>
#include <southbridge/intel/i82371eb/i82371eb.h>

/**
 * Mainboard specific enables.
 *
 * @param chip_info Ignored
 */
static void mainboard_init(void *chip_info)
{
	const pci_devfn_t px43 = PCI_DEV(0, 4, 3);
	u32 reg;
	/*
	 * Set up an 8-byte generic I/O decode block at device 9.
	 * This will be for W83781D hardware monitor.
	 * Port 0x290 mask 0x007
	 *
	 * This should enable access to W83781D over the ISA bus.
	 */
	reg = pci_s_read_config32(px43, DEVRESB);
	reg |= (0x290 | (0xe7 << 16));
	pci_s_write_config32(px43, DEVRESB, reg);
}

struct chip_operations mainboard_ops = {
	.init = mainboard_init
};