2020-04-03 01:21:01 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2012-07-19 10:39:01 +02:00
|
|
|
|
2021-02-15 12:18:14 +01:00
|
|
|
#include <console/console.h>
|
2012-07-19 10:39:01 +02:00
|
|
|
#include <device/device.h>
|
2021-02-15 12:18:14 +01:00
|
|
|
#include <southbridge/amd/common/amd_pci_util.h>
|
|
|
|
|
|
|
|
static const u8 mainboard_picr_data[0x54] = {
|
|
|
|
0x1F, 0x1f, 0x1f, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x0A, 0xF1, 0x00, 0x00, 0x1F, 0x1F, 0x1F, 0x1F,
|
|
|
|
0x09, 0x1F, 0x1F, 0x0B, 0x1F, 0x0B, 0x1F, 0x1F, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
|
|
0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
|
|
0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
|
|
0x1F, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
|
|
0x1F, 0x1F, 0x1F, 0x1F
|
|
|
|
};
|
|
|
|
static const u8 mainboard_intr_data[0x54] = {
|
|
|
|
0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x00, 0x00, 0x00, 0x00, 0x1F, 0x1F, 0x1F, 0x1F,
|
|
|
|
0x09, 0x1F, 0x1F, 0x10, 0x1F, 0x10, 0x1F, 0x10, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
|
|
0x05, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
|
|
0x12, 0x11, 0x12, 0x11, 0x12, 0x11, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
|
|
0x11, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
|
|
0x10, 0x11, 0x12, 0x13
|
|
|
|
};
|
|
|
|
|
|
|
|
/* PIRQ Setup */
|
|
|
|
static void pirq_setup(void)
|
|
|
|
{
|
|
|
|
intr_data_ptr = mainboard_intr_data;
|
|
|
|
picr_data_ptr = mainboard_picr_data;
|
|
|
|
}
|
2012-07-19 10:39:01 +02:00
|
|
|
|
|
|
|
/*************************************************
|
|
|
|
* enable the dedicated function in parmer board.
|
|
|
|
*************************************************/
|
2018-05-04 19:42:25 +02:00
|
|
|
static void mainboard_enable(struct device *dev)
|
2012-07-19 10:39:01 +02:00
|
|
|
{
|
2021-02-15 12:18:14 +01:00
|
|
|
pirq_setup();
|
2012-07-19 10:39:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
struct chip_operations mainboard_ops = {
|
2013-02-23 21:31:23 +01:00
|
|
|
.enable_dev = mainboard_enable,
|
2012-07-19 10:39:01 +02:00
|
|
|
};
|