| 1 |
|
| 2 |
|
| 3 |
#ifndef SOUTHBRIDGE_INTEL_I82371EB_I82371EB_H |
| 4 |
#define SOUTHBRIDGE_INTEL_I82371EB_I82371EB_H |
| 5 |
|
| 6 |
#if !defined(__ACPI__) |
| 7 |
|
| 8 |
void enable_pm(void); |
| 9 |
void i82371eb_early_init(void); |
| 10 |
|
| 11 |
#endif |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
#define ONOFF(cond,reg,bits) ((cond) ? ((reg) | (bits)) : ((reg) & ~(bits))) |
| 22 |
|
| 23 |
#define XBCS 0x4e |
| 24 |
#define GENCFG 0xb0 |
| 25 |
#define GPO2223 (1<<28) |
| 26 |
#define RTCCFG 0xcb |
| 27 |
#define RTC_POS_DECODE (1<<5) |
| 28 |
#define UPPER_RAM_EN (1<<2) |
| 29 |
#define RTC_ENABLE (1<<0) |
| 30 |
|
| 31 |
|
| 32 |
#define IDETIM_PRI 0x40 |
| 33 |
#define IDETIM_SEC 0x42 |
| 34 |
#define UDMACTL 0x48 |
| 35 |
#define UDMATIM 0x4a |
| 36 |
|
| 37 |
|
| 38 |
#define SMBBA 0x90 |
| 39 |
#define SMBUS_IO_BASE 0x0f00 |
| 40 |
#define SMBHSTCFG 0xd2 |
| 41 |
|
| 42 |
|
| 43 |
#define PMSTS 0x00 |
| 44 |
#define PMEN 0x02 |
| 45 |
#define PWRBTN_EN (1<<8) |
| 46 |
#define GBL_EN (1<<5) |
| 47 |
#define PMCNTRL 0x04 |
| 48 |
#define SUS_EN (1<<13) |
| 49 |
#define SUS_TYP_MSK (7<<10) |
| 50 |
#define SUS_TYP_S0 (5<<10) |
| 51 |
#define SUS_TYP_S1 (4<<10) |
| 52 |
#define SUS_TYP_S2 (3<<10) |
| 53 |
#define SUS_TYP_S3 (1<<10) |
| 54 |
#define SUS_TYP_S5 (0<<10) |
| 55 |
#define SCI_EN (1<<0) |
| 56 |
#define PMTMR 0x08 |
| 57 |
#define GPSTS 0x0c |
| 58 |
#define GPEN 0x0e |
| 59 |
#define THRM_EN (1<<0) |
| 60 |
#define PCNTRL 0x10 |
| 61 |
#define GLBSTS 0x18 |
| 62 |
#define IRQ_RSM_STS (1<<11) |
| 63 |
#define EXTSMI_STS (1<<10) |
| 64 |
#define GSTBY_STS (1<<8) |
| 65 |
#define GP_STS (1<<7) |
| 66 |
#define PM1_STS (1<<6) |
| 67 |
#define APM_STS (1<<5) |
| 68 |
#define DEV_STS (1<<4) |
| 69 |
#define LEGACY_USB_STS (1<<1) |
| 70 |
#define BIOS_STS (1<<0) |
| 71 |
#define DEVSTS 0x1c |
| 72 |
#define GLBEN 0x20 |
| 73 |
#define EXTSMI_EN (1<<10) |
| 74 |
#define GSTBY_EN (1<<8) |
| 75 |
#define BM_TRP_EN (1<<1) |
| 76 |
#define BIOS_EN (1<<1) |
| 77 |
#define LEGACY_USB_EN (1<<0) |
| 78 |
#define GLBCTL 0x28 |
| 79 |
#define EOS (1<<16) |
| 80 |
#define SMI_EN (1<<0) |
| 81 |
#define DEVCTL 0x2c |
| 82 |
#define TRP_EN_DEV12 (1<<24) |
| 83 |
#define GPO0 0x34 |
| 84 |
#define GPO1 0x35 |
| 85 |
#define GPO2 0x36 |
| 86 |
#define GPO3 0x37 |
| 87 |
|
| 88 |
|
| 89 |
#define PMBA 0x40 |
| 90 |
#define DEFAULT_PMBASE 0xe400 |
| 91 |
#define PM_IO_BASE DEFAULT_PMBASE |
| 92 |
#define DEVRESA 0x5c |
| 93 |
#define DEVRESB 0x60 |
| 94 |
#define DEVRESC 0x64 |
| 95 |
#define DEVRESD 0x52 |
| 96 |
#define DEVRESE 0x68 |
| 97 |
#define DEVRESF 0x6c |
| 98 |
#define DEVRESG 0x70 |
| 99 |
#define DEVRESH 0x74 |
| 100 |
#define DEVRESI 0x78 |
| 101 |
#define DEVRESJ 0x7c |
| 102 |
#define PMREGMISC 0x80 |
| 103 |
#define PMIOSE (1 << 0) |
| 104 |
|
| 105 |
|
| 106 |
#define EXT_BIOS_ENABLE_1MB (1 << 9) |
| 107 |
#define EXT_BIOS_ENABLE (1 << 7) |
| 108 |
#define LOWER_BIOS_ENABLE (1 << 6) |
| 109 |
#define WRITE_PROTECT_ENABLE (1 << 2) |
| 110 |
#define SMB_HST_EN (1 << 0) |
| 111 |
#define IDE_DECODE_ENABLE (1 << 15) |
| 112 |
#define DTE0 (1 << 3) |
| 113 |
#define DTE1 (1 << 7) |
| 114 |
#define PSDE0 (1 << 0) |
| 115 |
#define PSDE1 (1 << 1) |
| 116 |
#define SSDE0 (1 << 2) |
| 117 |
#define SSDE1 (1 << 3) |
| 118 |
#define ISA (1 << 0) |
| 119 |
|
| 120 |
#endif |