11 #include <baseboard/variants.h>
15 #include <soc/pci_devs.h>
16 #include <soc/southbridge.h>
18 #include <variant/ec.h>
19 #include <variant/thermal.h>
34 [0x00] = 0x03, 0x04, 0x05, 0x07, 0x0B, 0x1F, 0x1F, 0x1F,
35 [0x08] = 0xFA, 0xF1, 0x00, 0x00, 0x1F, 0x1F, 0x1F, 0x1F,
36 [0x10] = 0x09, 0x1F, 0x1F, 0x03, 0x1F, 0x1F, 0x1F, 0x03,
37 [0x18] = 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
38 [0x20] = 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x00, 0x00,
39 [0x28] = 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
40 [0x30] = 0x05, 0x04, 0x05, 0x04, 0x04, 0x05, 0x04, 0x05,
41 [0x38] = 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
42 [0x40] = 0x04, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
43 [0x48] = 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
44 [0x50] = 0x03, 0x04, 0x05, 0x07, 0x1F, 0x1F, 0x1F, 0x1F,
45 [0x58] = 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F,
46 [0x60] = 0x1F, 0x1F, 0x07, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F,
47 [0x68] = 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F,
48 [0x70] = 0x03, 0x0F, 0x06, 0x0E, 0x0A, 0x0B, 0x1F, 0x1F,
49 [0x78] = 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F,
53 [0x00] = 0x10, 0x11, 0x12, 0x13, 0x14, 0x1F, 0x16, 0x17,
54 [0x08] = 0x00, 0x00, 0x00, 0x00, 0x1F, 0x1F, 0x1F, 0x1F,
55 [0x10] = 0x09, 0x1F, 0x1F, 0x10, 0x1F, 0x1F, 0x1F, 0x10,
56 [0x18] = 0x1F, 0x1F, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00,
57 [0x20] = 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x00, 0x00,
58 [0x28] = 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
59 [0x30] = 0x12, 0x11, 0x12, 0x11, 0x12, 0x11, 0x12, 0x00,
60 [0x38] = 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
61 [0x40] = 0x11, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
62 [0x48] = 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
63 [0x50] = 0x1F, 0x1F, 0x1F, 0x1F, 0x00, 0x00, 0x00, 0x00,
64 [0x58] = 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
65 [0x60] = 0x1F, 0x1F, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00,
66 [0x68] = 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
67 [0x70] = 0x03, 0x0F, 0x06, 0x0E, 0x0A, 0x0B, 0x1F, 0x1F,
68 [0x78] = 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
183 static char sku_str[7];
struct chip_operations mainboard_ops
static uint8_t pm_read8(uint8_t reg)
uint8_t *MAYBE_CONST acpimmio_misc
static void pm_write8(uint8_t reg, uint8_t value)
#define printk(level,...)
void mainboard_ec_init(void)
uint32_t board_id(void)
board_id() - Get the board version
void mainboard_suspend_resume(void)
void __weak variant_devtree_update(void)
const char * smbios_system_sku(void)
int mainboard_get_ehci_oc_map(uint16_t *map)
uint8_t __weak variant_board_sku(void)
int mainboard_get_xhci_oc_map(uint16_t *map)
static void mainboard_init(void *chip_info)
static const struct pirq_struct mainboard_pirq_data[]
static const u8 mainboard_intr_data[]
static const u8 mainboard_picr_data[]
static void mainboard_enable(struct device *dev)
static void pirq_setup(void)
void __weak variant_mainboard_suspend_resume(void)
#define clrsetbits32(addr, clear, set)
#define BIOS_INFO
BIOS_INFO - Expected events.
const struct pad_config *__weak variant_gpio_table(size_t *num)
int __weak variant_get_ehci_oc_map(uint16_t *map)
int __weak variant_get_xhci_oc_map(uint16_t *map)
const struct smm_save_state_ops *legacy_ops __weak
void gpio_configure_pads(const struct soc_amd_gpio *gpio_list_ptr, size_t size)
program a particular set of GPIO
const struct pirq_struct * pirq_data_ptr
#define GPP_CLK0_REQ_MAP_SHIFT
#define PM_GENINT_DISABLE
#define GPP_CLK2_REQ_MAP_MASK
#define GPP_CLK0_REQ_MAP_CLK_REQ0
#define GPP_CLK2_REQ_MAP_CLK_REQ2
#define GPP_CLK2_REQ_MAP_SHIFT
#define GPP_CLK0_REQ_MAP_MASK
void(* init)(void *chip_info)
int snprintf(char *buf, size_t size, const char *fmt,...)
Note: This file is only for POSIX compatibility, and is meant to be chain-included via string....