soc/intel/denverton_ns: Use common SMBus support code
Change-Id: I233d198b894f10fbf0042a5023ae8a9c14136513 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/59469 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
parent
ccc27d2cca
commit
fd13fb54ac
|
@ -91,6 +91,7 @@ static const unsigned short pci_device_ids[] = {
|
|||
PCI_DEVICE_ID_INTEL_ADP_P_SMBUS,
|
||||
PCI_DEVICE_ID_INTEL_ADP_S_SMBUS,
|
||||
PCI_DEVICE_ID_INTEL_ADP_M_SMBUS,
|
||||
PCI_DEVICE_ID_INTEL_DENVERTON_SMBUS_LEGACY,
|
||||
0
|
||||
};
|
||||
|
||||
|
|
|
@ -34,6 +34,8 @@ config CPU_SPECIFIC_OPTIONS
|
|||
select SOC_INTEL_COMMON_BLOCK_FAST_SPI
|
||||
select SOC_INTEL_COMMON_BLOCK_GPIO
|
||||
select SOC_INTEL_COMMON_BLOCK_PCR
|
||||
select SOC_INTEL_COMMON_BLOCK_SMBUS
|
||||
select SOUTHBRIDGE_INTEL_COMMON_SMBUS
|
||||
select TSC_MONOTONIC_TIMER
|
||||
select TSC_SYNC_MFENCE
|
||||
select UDELAY_TSC
|
||||
|
|
|
@ -139,9 +139,11 @@
|
|||
#define PCH_DEV_SLOT_LPC 0x1f
|
||||
#define PCH_DEVFN_LPC _PCH_DEVFN(LPC, 0)
|
||||
#define PCH_DEVFN_PMC _PCH_DEVFN(LPC, 2)
|
||||
#define PCH_DEVFN_SMBUS _PCH_DEVFN(LPC, 4)
|
||||
#define PCH_DEVFN_SPI _PCH_DEVFN(LPC, 5)
|
||||
#define PCH_DEV_LPC _PCH_DEV(LPC, 0)
|
||||
#define PCH_DEV_SPI _PCH_DEV(LPC, 5)
|
||||
#define PCH_DEV_SMBUS _PCH_DEV(LPC, 4)
|
||||
|
||||
/* VT-d support value to match FSP settings */
|
||||
/* "PCH IOAPIC Config" */
|
||||
|
|
|
@ -17,29 +17,7 @@
|
|||
#define TCOBASE_EN (1 << 8)
|
||||
#define TCOBASE_LOCK (1 << 0)
|
||||
|
||||
/* SMBus I/O bits. */
|
||||
#define SMBHSTSTAT 0x0
|
||||
#define HST_HBSY (1 << 0)
|
||||
#define HST_INTR (1 << 1)
|
||||
#define HST_DERR (1 << 2)
|
||||
#define HST_BERR (1 << 3)
|
||||
#define HST_BYTE_DONE_STS (1 << 7)
|
||||
#define HST_HSTS_ALL 0xFF
|
||||
#define SMBHSTCTL 0x2
|
||||
#define HST_LAST_BYTE (1 << 5)
|
||||
#define HST_START (1 << 6)
|
||||
#define HST_CMD_IIC_READ 0x18
|
||||
#define HST_READ 0x01 // RW
|
||||
#define SMBHSTCMD 0x3
|
||||
#define SMBXMITADD 0x4
|
||||
#define SMBHSTDAT0 0x5
|
||||
#define SMBHSTDAT1 0x6
|
||||
#define SMBBLKDAT 0x7
|
||||
#define SMBTRNSADD 0x9
|
||||
#define SMBSLVDATA 0xa
|
||||
#define SMBHSTAUXC 0xd
|
||||
#define SMLINK_PIN_CTL 0xe
|
||||
#define SMBUS_PIN_CTL 0xf
|
||||
#define SMBUS_SLAVE_ADDR 0x44
|
||||
|
||||
/*
|
||||
* SMBus Private Config Registers (PID:SMB)
|
||||
|
|
Loading…
Reference in New Issue