blob: 6565cd11f003e85b9e83e96f197c2332ed3fb02e [file] [log] [blame]
Angel Pons182dbde2020-04-02 23:49:05 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Vladimir Serbinenko888d5592013-11-13 17:53:38 +01002
3#ifndef SOUTHBRIDGE_INTEL_BD82X6X_PCH_H
4#define SOUTHBRIDGE_INTEL_BD82X6X_PCH_H
5
Furquan Shaikh76cedd22020-05-02 10:24:23 -07006#include <acpi/acpi.h>
Aaron Durbin78c68432016-07-13 23:23:54 -05007
Vladimir Serbinenko888d5592013-11-13 17:53:38 +01008/* PCH types */
9#define PCH_TYPE_CPT 0x1c /* CougarPoint */
10#define PCH_TYPE_PPT 0x1e /* IvyBridge */
11#define PCH_TYPE_MOBILE5 0x3b
12
13/* PCH stepping values for LPC device */
14#define PCH_STEP_A0 0
15#define PCH_STEP_A1 1
16#define PCH_STEP_B0 2
17#define PCH_STEP_B1 3
18#define PCH_STEP_B2 4
19#define PCH_STEP_B3 5
20
Vladimir Serbinenko888d5592013-11-13 17:53:38 +010021#define SMBUS_SLAVE_ADDR 0x24
22/* TODO Make sure these don't get changed by stage2 */
23#define DEFAULT_GPIOBASE 0x0480
24#define DEFAULT_PMBASE 0x0500
25
Arthur Heymans1f2ae912018-06-12 23:48:30 +020026#include <southbridge/intel/common/rcba.h>
Arthur Heymans58a89532018-06-12 22:58:19 +020027
28#ifndef __ACPI__
Vladimir Serbinenko888d5592013-11-13 17:53:38 +010029
Vladimir Serbinenko888d5592013-11-13 17:53:38 +010030void pch_iobp_update(u32 address, u32 andvalue, u32 orvalue);
Vladimir Serbinenko888d5592013-11-13 17:53:38 +010031void enable_usb_bar(void);
Kyösti Mälkki12b121c2019-08-18 16:33:39 +030032
Angel Ponse4c05552020-07-22 00:40:21 +020033void ibexpeak_setup_bars(void);
Arthur Heymans3b452e02019-10-03 09:16:10 +020034void early_pch_init(void);
35
Vladimir Serbinenko1cd937b2014-01-09 23:41:48 +010036void early_thermal_init(void);
Vladimir Serbinenko33b535f2014-10-19 10:13:14 +020037void southbridge_configure_default_intmap(void);
Arthur Heymansf503b602019-09-16 21:00:22 +020038void pch_setup_cir(int chipset_type);
Kyösti Mälkki12b121c2019-08-18 16:33:39 +030039
Arthur Heymans39f8a1a2019-10-02 17:13:02 +020040enum current_lookup_idx {
41 IF1_F57 = 0,
42 IF1_F5F,
43 IF1_753,
44 IF1_75F,
45 IF1_14B,
46 IF1_74B,
47 IF1_557,
48 IF1_757,
49 IF1_55F,
50 IF1_54B,
51};
52
53struct southbridge_usb_port {
54 int enabled;
55 enum current_lookup_idx current;
56 int oc_pin;
57};
Arthur Heymanscea4fd92019-10-03 08:54:35 +020058
Arthur Heymans39f8a1a2019-10-02 17:13:02 +020059void early_usb_init(const struct southbridge_usb_port *portmap);
60
Arthur Heymanscea4fd92019-10-03 08:54:35 +020061extern const struct southbridge_usb_port mainboard_usb_ports[14];
Kyösti Mälkki12b121c2019-08-18 16:33:39 +030062#include <device/device.h>
63void pch_enable(struct device *dev);
Vladimir Serbinenko888d5592013-11-13 17:53:38 +010064
65#define MAINBOARD_POWER_OFF 0
66#define MAINBOARD_POWER_ON 1
67#define MAINBOARD_POWER_KEEP 2
68
Arthur Heymans39f8a1a2019-10-02 17:13:02 +020069/* PM I/O Space */
70#define UPRWC 0x3c
71#define UPRWC_WR_EN (1 << 1) /* USB Per-Port Registers Write Enable */
72
Vladimir Serbinenko888d5592013-11-13 17:53:38 +010073/* PCI Configuration Space (D30:F0): PCI2PCI */
74#define PSTS 0x06
75#define SMLT 0x1b
76#define SECSTS 0x1e
77#define INTR 0x3c
Vladimir Serbinenko888d5592013-11-13 17:53:38 +010078
79#define PCH_EHCI1_DEV PCI_DEV(0, 0x1d, 0)
80#define PCH_EHCI2_DEV PCI_DEV(0, 0x1a, 0)
81#define PCH_XHCI_DEV PCI_DEV(0, 0x14, 0)
82#define PCH_ME_DEV PCI_DEV(0, 0x16, 0)
83#define PCH_PCIE_DEV_SLOT 28
84
85/* PCI Configuration Space (D31:F0): LPC */
86#define PCH_LPC_DEV PCI_DEV(0, 0x1f, 0)
87#define SERIRQ_CNTL 0x64
88
89#define GEN_PMCON_1 0xa0
90#define GEN_PMCON_2 0xa2
91#define GEN_PMCON_3 0xa4
92#define ETR3 0xac
93#define ETR3_CWORWRE (1 << 18)
94#define ETR3_CF9GR (1 << 20)
95
Arthur Heymansf503b602019-09-16 21:00:22 +020096#define CIR4 0xa9
97#define PMIR 0xac
98
Vladimir Serbinenko888d5592013-11-13 17:53:38 +010099/* GEN_PMCON_3 bits */
100#define RTC_BATTERY_DEAD (1 << 2)
101#define RTC_POWER_FAILED (1 << 1)
102#define SLEEP_AFTER_POWER_FAIL (1 << 0)
103
104#define PMBASE 0x40
105#define ACPI_CNTL 0x44
106#define ACPI_EN (1 << 7)
107#define BIOS_CNTL 0xDC
108#define GPIO_BASE 0x48 /* LPC GPIO Base Address Register */
109#define GPIO_CNTL 0x4C /* LPC GPIO Control Register */
Kyösti Mälkkib85a87b2014-12-29 11:32:27 +0200110
Vladimir Serbinenko888d5592013-11-13 17:53:38 +0100111#define GPIO_ROUT 0xb8
Kyösti Mälkkib85a87b2014-12-29 11:32:27 +0200112#define GPI_DISABLE 0x00
113#define GPI_IS_SMI 0x01
114#define GPI_IS_SCI 0x02
115#define GPI_IS_NMI 0x03
Vladimir Serbinenko888d5592013-11-13 17:53:38 +0100116
117#define PIRQA_ROUT 0x60
118#define PIRQB_ROUT 0x61
119#define PIRQC_ROUT 0x62
120#define PIRQD_ROUT 0x63
121#define PIRQE_ROUT 0x68
122#define PIRQF_ROUT 0x69
123#define PIRQG_ROUT 0x6A
124#define PIRQH_ROUT 0x6B
125
126#define LPC_IO_DEC 0x80 /* IO Decode Ranges Register */
127#define LPC_EN 0x82 /* LPC IF Enables Register */
128#define CNF2_LPC_EN (1 << 13) /* 0x4e/0x4f */
129#define CNF1_LPC_EN (1 << 12) /* 0x2e/0x2f */
130#define MC_LPC_EN (1 << 11) /* 0x62/0x66 */
131#define KBC_LPC_EN (1 << 10) /* 0x60/0x64 */
132#define GAMEH_LPC_EN (1 << 9) /* 0x208/0x20f */
133#define GAMEL_LPC_EN (1 << 8) /* 0x200/0x207 */
134#define FDD_LPC_EN (1 << 3) /* LPC_IO_DEC[12] */
135#define LPT_LPC_EN (1 << 2) /* LPC_IO_DEC[9:8] */
136#define COMB_LPC_EN (1 << 1) /* LPC_IO_DEC[6:4] */
137#define COMA_LPC_EN (1 << 0) /* LPC_IO_DEC[3:2] */
138#define LPC_GEN1_DEC 0x84 /* LPC IF Generic Decode Range 1 */
139#define LPC_GEN2_DEC 0x88 /* LPC IF Generic Decode Range 2 */
140#define LPC_GEN3_DEC 0x8c /* LPC IF Generic Decode Range 3 */
141#define LPC_GEN4_DEC 0x90 /* LPC IF Generic Decode Range 4 */
142
Angel Pons0b3512b2020-08-10 13:02:20 +0200143/* PCI Configuration Space (D31:F2): SATA */
Vladimir Serbinenko888d5592013-11-13 17:53:38 +0100144#define PCH_SATA_DEV PCI_DEV(0, 0x1f, 2)
145#define PCH_SATA2_DEV PCI_DEV(0, 0x1f, 5)
146#define INTR_LN 0x3c
147#define IDE_TIM_PRI 0x40 /* IDE timings, primary */
148#define IDE_DECODE_ENABLE (1 << 15)
Vladimir Serbinenko888d5592013-11-13 17:53:38 +0100149#define IDE_TIM_SEC 0x42 /* IDE timings, secondary */
150
Vladimir Serbinenko888d5592013-11-13 17:53:38 +0100151#define SATA_SIRI 0xa0 /* SATA Indexed Register Index */
152#define SATA_SIRD 0xa4 /* SATA Indexed Register Data */
153#define SATA_SP 0xd0 /* Scratchpad */
154
155/* SATA IOBP Registers */
156#define SATA_IOBP_SP0G3IR 0xea000151
157#define SATA_IOBP_SP1G3IR 0xea000051
158
159/* PCI Configuration Space (D31:F3): SMBus */
160#define PCH_SMBUS_DEV PCI_DEV(0, 0x1f, 3)
161#define SMB_BASE 0x20
162#define HOSTC 0x40
Vladimir Serbinenko888d5592013-11-13 17:53:38 +0100163
164/* HOSTC bits */
165#define I2C_EN (1 << 2)
166#define SMB_SMI_EN (1 << 1)
167#define HST_EN (1 << 0)
168
Vladimir Serbinenko888d5592013-11-13 17:53:38 +0100169/* Southbridge IO BARs */
170
171#define GPIOBASE 0x48
172
173#define PMBASE 0x40
174
Arthur Heymans58a89532018-06-12 22:58:19 +0200175#define VCH 0x0000 /* 32bit */
176#define VCAP1 0x0004 /* 32bit */
177#define VCAP2 0x0008 /* 32bit */
178#define PVC 0x000c /* 16bit */
179#define PVS 0x000e /* 16bit */
180
181#define V0CAP 0x0010 /* 32bit */
182#define V0CTL 0x0014 /* 32bit */
183#define V0STS 0x001a /* 16bit */
184
185#define V1CAP 0x001c /* 32bit */
186#define V1CTL 0x0020 /* 32bit */
187#define V1STS 0x0026 /* 16bit */
188
189#define RCTCL 0x0100 /* 32bit */
190#define ESD 0x0104 /* 32bit */
191#define ULD 0x0110 /* 32bit */
192#define ULBA 0x0118 /* 64bit */
193
194#define RP1D 0x0120 /* 32bit */
195#define RP1BA 0x0128 /* 64bit */
196#define RP2D 0x0130 /* 32bit */
197#define RP2BA 0x0138 /* 64bit */
198#define RP3D 0x0140 /* 32bit */
199#define RP3BA 0x0148 /* 64bit */
200#define RP4D 0x0150 /* 32bit */
201#define RP4BA 0x0158 /* 64bit */
202#define HDD 0x0160 /* 32bit */
203#define HDBA 0x0168 /* 64bit */
204#define RP5D 0x0170 /* 32bit */
205#define RP5BA 0x0178 /* 64bit */
206#define RP6D 0x0180 /* 32bit */
207#define RP6BA 0x0188 /* 64bit */
208
209#define RPC 0x0400 /* 32bit */
210#define RPFN 0x0404 /* 32bit */
211
212/* Root Port configuratinon space hide */
213#define RPFN_HIDE(port) (1 << (((port) * 4) + 3))
214/* Get the function number assigned to a Root Port */
215#define RPFN_FNGET(reg,port) (((reg) >> ((port) * 4)) & 7)
216/* Set the function number for a Root Port */
217#define RPFN_FNSET(port,func) (((func) & 7) << ((port) * 4))
218/* Root Port function number mask */
219#define RPFN_FNMASK(port) (7 << ((port) * 4))
220
221#define TRSR 0x1e00 /* 8bit */
222#define TRCR 0x1e10 /* 64bit */
223#define TWDR 0x1e18 /* 64bit */
224
225#define IOTR0 0x1e80 /* 64bit */
226#define IOTR1 0x1e88 /* 64bit */
227#define IOTR2 0x1e90 /* 64bit */
228#define IOTR3 0x1e98 /* 64bit */
229
230#define TCTL 0x3000 /* 8bit */
231
Vladimir Serbinenko888d5592013-11-13 17:53:38 +0100232#define NOINT 0
233#define INTA 1
234#define INTB 2
235#define INTC 3
236#define INTD 4
237
238#define DIR_IDR 12 /* Interrupt D Pin Offset */
239#define DIR_ICR 8 /* Interrupt C Pin Offset */
240#define DIR_IBR 4 /* Interrupt B Pin Offset */
241#define DIR_IAR 0 /* Interrupt A Pin Offset */
242
243#define PIRQA 0
244#define PIRQB 1
245#define PIRQC 2
246#define PIRQD 3
247#define PIRQE 4
248#define PIRQF 5
249#define PIRQG 6
250#define PIRQH 7
251
252/* IO Buffer Programming */
253#define IOBPIRI 0x2330
254#define IOBPD 0x2334
255#define IOBPS 0x2338
256#define IOBPS_RW_BX ((1 << 9)|(1 << 10))
257#define IOBPS_WRITE_AX ((1 << 9)|(1 << 10))
258#define IOBPS_READ_AX ((1 << 8)|(1 << 9)|(1 << 10))
259
Arthur Heymans58a89532018-06-12 22:58:19 +0200260#define D31IP 0x3100 /* 32bit */
261#define D31IP_TTIP 24 /* Thermal Throttle Pin */
262#define D31IP_SIP2 20 /* SATA Pin 2 */
263#define D31IP_UNKIP 16
264#define D31IP_SMIP 12 /* SMBUS Pin */
265#define D31IP_SIP 8 /* SATA Pin */
266#define D30IP 0x3104 /* 32bit */
267#define D30IP_PIP 0 /* PCI Bridge Pin */
268#define D29IP 0x3108 /* 32bit */
269#define D29IP_E1P 0 /* EHCI #1 Pin */
270#define D28IP 0x310c /* 32bit */
271#define D28IP_P8IP 28 /* PCI Express Port 8 */
272#define D28IP_P7IP 24 /* PCI Express Port 7 */
273#define D28IP_P6IP 20 /* PCI Express Port 6 */
274#define D28IP_P5IP 16 /* PCI Express Port 5 */
275#define D28IP_P4IP 12 /* PCI Express Port 4 */
276#define D28IP_P3IP 8 /* PCI Express Port 3 */
277#define D28IP_P2IP 4 /* PCI Express Port 2 */
278#define D28IP_P1IP 0 /* PCI Express Port 1 */
279#define D27IP 0x3110 /* 32bit */
280#define D27IP_ZIP 0 /* HD Audio Pin */
281#define D26IP 0x3114 /* 32bit */
282#define D26IP_E2P 0 /* EHCI #2 Pin */
283#define D25IP 0x3118 /* 32bit */
284#define D25IP_LIP 0 /* GbE LAN Pin */
285#define D22IP 0x3124 /* 32bit */
286#define D22IP_KTIP 12 /* KT Pin */
287#define D22IP_IDERIP 8 /* IDE-R Pin */
288#define D22IP_MEI2IP 4 /* MEI #2 Pin */
289#define D22IP_MEI1IP 0 /* MEI #1 Pin */
290#define D20IP 0x3128 /* 32bit */
291#define D20IP_XHCIIP 0
292#define D31IR 0x3140 /* 16bit */
293#define D30IR 0x3142 /* 16bit */
294#define D29IR 0x3144 /* 16bit */
295#define D28IR 0x3146 /* 16bit */
296#define D27IR 0x3148 /* 16bit */
297#define D26IR 0x314c /* 16bit */
298#define D25IR 0x3150 /* 16bit */
299#define D22IR 0x315c /* 16bit */
300#define D20IR 0x3160 /* 16bit */
301#define OIC 0x31fe /* 16bit */
Vladimir Serbinenko888d5592013-11-13 17:53:38 +0100302#define SOFT_RESET_CTRL 0x38f4
303#define SOFT_RESET_DATA 0x38f8
304
Angel Pons42b4e4e2019-09-18 10:58:53 +0200305#define PRSTS 0x3310
Arthur Heymansf503b602019-09-16 21:00:22 +0200306#define CIR6 0x2024
307#define CIR7 0x3314
308#define CIR8 0x3324
309#define CIR9 0x3330
310#define CIR10 0x3340
311#define CIR13 0x3350
312#define CIR14 0x3368
313#define CIR15 0x3378
314#define CIR16 0x3388
315#define CIR17 0x33a0
316#define CIR18 0x33a8
317#define CIR19 0x33c0
318#define CIR20 0x33cc
319#define CIR21 0x33d0
320#define CIR22 0x33d4
Angel Pons42b4e4e2019-09-18 10:58:53 +0200321
Arthur Heymans58a89532018-06-12 22:58:19 +0200322#define DIR_ROUTE(x,a,b,c,d) \
323 RCBA32(x) = (((d) << DIR_IDR) | ((c) << DIR_ICR) | \
324 ((b) << DIR_IBR) | ((a) << DIR_IAR))
325
326#define RC 0x3400 /* 32bit */
327#define HPTC 0x3404 /* 32bit */
328#define GCS 0x3410 /* 32bit */
329#define BUC 0x3414 /* 32bit */
330#define PCH_DISABLE_GBE (1 << 5)
331#define FD 0x3418 /* 32bit */
332#define DISPBDF 0x3424 /* 16bit */
333#define FD2 0x3428 /* 32bit */
334#define CG 0x341c /* 32bit */
335
336/* Function Disable 1 RCBA 0x3418 */
337#define PCH_DISABLE_ALWAYS ((1 << 0)|(1 << 26))
338#define PCH_DISABLE_P2P (1 << 1)
339#define PCH_DISABLE_SATA1 (1 << 2)
340#define PCH_DISABLE_SMBUS (1 << 3)
341#define PCH_DISABLE_HD_AUDIO (1 << 4)
342#define PCH_DISABLE_EHCI2 (1 << 13)
343#define PCH_DISABLE_LPC (1 << 14)
344#define PCH_DISABLE_EHCI1 (1 << 15)
345#define PCH_DISABLE_PCIE(x) (1 << (16 + x))
346#define PCH_DISABLE_THERMAL (1 << 24)
347#define PCH_DISABLE_SATA2 (1 << 25)
348#define PCH_DISABLE_XHCI (1 << 27)
349
350/* Function Disable 2 RCBA 0x3428 */
351#define PCH_DISABLE_KT (1 << 4)
352#define PCH_DISABLE_IDER (1 << 3)
353#define PCH_DISABLE_MEI2 (1 << 2)
354#define PCH_DISABLE_MEI1 (1 << 1)
355#define PCH_ENABLE_DBDF (1 << 0)
356
Arthur Heymans39f8a1a2019-10-02 17:13:02 +0200357/* USB Initialization Registers[13:0] */
358#define USBIR0 0x3500 /* 32bit */
359#define USBIR1 0x3504 /* 32bit */
360#define USBIR2 0x3508 /* 32bit */
361#define USBIR3 0x350c /* 32bit */
362#define USBIR4 0x3510 /* 32bit */
363#define USBIR5 0x3514 /* 32bit */
364#define USBIR6 0x3518 /* 32bit */
365#define USBIR7 0x351c /* 32bit */
366#define USBIR8 0x3520 /* 32bit */
367#define USBIR9 0x3524 /* 32bit */
368#define USBIR10 0x3528 /* 32bit */
369#define USBIR11 0x352c /* 32bit */
370#define USBIR12 0x3530 /* 32bit */
371#define USBIR13 0x3534 /* 32bit */
372
373#define USBIRC 0x3564 /* 32bit */
374#define USBIRA 0x3570 /* 32bit */
375#define USBIRB 0x357c /* 32bit */
376
377/* Miscellaneous Control Register */
378#define MISCCTL 0x3590 /* 32bit */
379/* USB Port Disable Override */
380#define USBPDO 0x359c /* 32bit */
381/* USB Overcurrent MAP Register */
382#define USBOCM1 0x35a0 /* 32bit */
383#define USBOCM2 0x35a4 /* 32bit */
384/* Rate Matching Hub Wake Control Register */
385#define RMHWKCTL 0x35b0 /* 32bit */
386
Vladimir Serbinenko888d5592013-11-13 17:53:38 +0100387/* ICH7 PMBASE */
388#define PM1_STS 0x00
389#define WAK_STS (1 << 15)
390#define PCIEXPWAK_STS (1 << 14)
391#define PRBTNOR_STS (1 << 11)
392#define RTC_STS (1 << 10)
393#define PWRBTN_STS (1 << 8)
394#define GBL_STS (1 << 5)
395#define BM_STS (1 << 4)
396#define TMROF_STS (1 << 0)
397#define PM1_EN 0x02
398#define PCIEXPWAK_DIS (1 << 14)
399#define RTC_EN (1 << 10)
400#define PWRBTN_EN (1 << 8)
401#define GBL_EN (1 << 5)
402#define TMROF_EN (1 << 0)
403#define PM1_CNT 0x04
Vladimir Serbinenko888d5592013-11-13 17:53:38 +0100404#define GBL_RLS (1 << 2)
405#define BM_RLD (1 << 1)
406#define SCI_EN (1 << 0)
407#define PM1_TMR 0x08
408#define PROC_CNT 0x10
409#define LV2 0x14
410#define LV3 0x15
411#define LV4 0x16
412#define PM2_CNT 0x50 // mobile only
413#define GPE0_STS 0x20
414#define PME_B0_STS (1 << 13)
415#define PME_STS (1 << 11)
416#define BATLOW_STS (1 << 10)
417#define PCI_EXP_STS (1 << 9)
418#define RI_STS (1 << 8)
419#define SMB_WAK_STS (1 << 7)
420#define TCOSCI_STS (1 << 6)
421#define SWGPE_STS (1 << 2)
422#define HOT_PLUG_STS (1 << 1)
423#define GPE0_EN 0x28
424#define PME_B0_EN (1 << 13)
425#define PME_EN (1 << 11)
426#define TCOSCI_EN (1 << 6)
427#define SMI_EN 0x30
428#define INTEL_USB2_EN (1 << 18) // Intel-Specific USB2 SMI logic
429#define LEGACY_USB2_EN (1 << 17) // Legacy USB2 SMI logic
430#define PERIODIC_EN (1 << 14) // SMI on PERIODIC_STS in SMI_STS
431#define TCO_EN (1 << 13) // Enable TCO Logic (BIOSWE et al)
432#define MCSMI_EN (1 << 11) // Trap microcontroller range access
433#define BIOS_RLS (1 << 7) // asserts SCI on bit set
434#define SWSMI_TMR_EN (1 << 6) // start software smi timer on bit set
435#define APMC_EN (1 << 5) // Writes to APM_CNT cause SMI#
436#define SLP_SMI_EN (1 << 4) // Write to SLP_EN in PM1_CNT asserts SMI#
437#define LEGACY_USB_EN (1 << 3) // Legacy USB circuit SMI logic
438#define BIOS_EN (1 << 2) // Assert SMI# on setting GBL_RLS bit
439#define EOS (1 << 1) // End of SMI (deassert SMI#)
440#define GBL_SMI_EN (1 << 0) // SMI# generation at all?
441#define SMI_STS 0x34
442#define ALT_GP_SMI_EN 0x38
443#define ALT_GP_SMI_STS 0x3a
444#define GPE_CNTL 0x42
445#define DEVACT_STS 0x44
446#define SS_CNT 0x50
447#define C3_RES 0x54
448#define TCO1_STS 0x64
449#define DMISCI_STS (1 << 9)
450#define TCO2_STS 0x66
451
Vladimir Serbinenko888d5592013-11-13 17:53:38 +0100452#define SPIBAR_HSFS 0x3804 /* SPI hardware sequence status */
453#define SPIBAR_HSFS_SCIP (1 << 5) /* SPI Cycle In Progress */
454#define SPIBAR_HSFS_AEL (1 << 2) /* SPI Access Error Log */
455#define SPIBAR_HSFS_FCERR (1 << 1) /* SPI Flash Cycle Error */
456#define SPIBAR_HSFS_FDONE (1 << 0) /* SPI Flash Cycle Done */
457#define SPIBAR_HSFC 0x3806 /* SPI hardware sequence control */
458#define SPIBAR_HSFC_BYTE_COUNT(c) (((c - 1) & 0x3f) << 8)
459#define SPIBAR_HSFC_CYCLE_READ (0 << 1) /* Read cycle */
460#define SPIBAR_HSFC_CYCLE_WRITE (2 << 1) /* Write cycle */
461#define SPIBAR_HSFC_CYCLE_ERASE (3 << 1) /* Erase cycle */
462#define SPIBAR_HSFC_GO (1 << 0) /* GO: start SPI transaction */
463#define SPIBAR_FADDR 0x3808 /* SPI flash address */
464#define SPIBAR_FDATA(n) (0x3810 + (4 * n)) /* SPI flash data */
465
466#endif /* __ACPI__ */
467#endif /* SOUTHBRIDGE_INTEL_BD82X6X_PCH_H */