blob: bd0db6dd92151b26b38aff51b20919a22b5168e9 [file] [log] [blame]
Patrick Georgi0588d192009-08-12 15:00:51 +00001chip northbridge/intel/i945
Vladimir Serbinenkodd2bc3f2014-10-31 09:16:31 +01002 # IGD Displays
Nico Huberb0b25c82020-03-21 20:35:12 +01003 register "gfx" = "GMA_STATIC_DISPLAYS(0)"
Patrick Georgi0588d192009-08-12 15:00:51 +00004
Elyes HAOUAS117fd8d2016-09-29 20:29:54 +02005 device cpu_cluster 0 on
Nico Huber4829af12019-02-27 14:23:18 +01006 chip cpu/intel/socket_m
Elyes HAOUAS117fd8d2016-09-29 20:29:54 +02007 device lapic 0 on end
8 end
9 end
Patrick Georgi0588d192009-08-12 15:00:51 +000010
Arthur Heymans885c2892016-10-03 17:16:48 +020011 register "pci_mmio_size" = "768"
12
Elyes HAOUAS117fd8d2016-09-29 20:29:54 +020013 device domain 0 on
14 device pci 00.0 on end # host bridge
Petr Cvek6090d4e2022-04-24 07:37:55 +020015 device pci 01.0 off end # i945 PCIe x16 bridge
16 device pci 02.0 on end # GMA950 iGPU + VGA
Patrick Georgi0588d192009-08-12 15:00:51 +000017 device pci 02.1 on end # display controller
18
Elyes HAOUAS117fd8d2016-09-29 20:29:54 +020019 chip southbridge/intel/i82801gx
Vladimir Serbinenkoc746dcb2014-11-15 20:40:04 +010020 register "pirqa_routing" = "0x0b"
21 register "pirqb_routing" = "0x0b"
22 register "pirqc_routing" = "0x0b"
23 register "pirqd_routing" = "0x0b"
24 register "pirqe_routing" = "0x0b"
25 register "pirqf_routing" = "0x0b"
26 register "pirqg_routing" = "0x0b"
27 register "pirqh_routing" = "0x0b"
Patrick Georgi0588d192009-08-12 15:00:51 +000028
29 # GPI routing
30 # 0 No effect (default)
31 # 1 SMI# (if corresponding ALT_GPI_SMI_EN bit is also set)
32 # 2 SCI (if corresponding GPIO_EN bit is also set)
33 register "gpi13_routing" = "1"
34
Nico Huberae317692019-07-20 17:03:56 +020035 register "sata_mode" = "SATA_MODE_IDE_LEGACY_COMBINED"
Elyes HAOUAS117fd8d2016-09-29 20:29:54 +020036 register "ide_enable_primary" = "0x1"
37 register "ide_enable_secondary" = "0x1"
Vladimir Serbinenkoab83ef02014-10-25 15:18:25 +020038 register "c3_latency" = "85"
39 register "p_cnt_throttling_supported" = "0"
Patrick Georgi0588d192009-08-12 15:00:51 +000040
Petr Cvek6090d4e2022-04-24 07:37:55 +020041 # ICH-7 generic decode IO ports range for LPC
Arthur Heymansfecf7772019-11-09 14:19:04 +010042 register "gen1_dec" = "0x00fc0a01" # HWM
43 register "gen2_dec" = "0x000403e9" # COM3
44 register "gen3_dec" = "0x000402e9" # COM4
45 register "gen4_dec" = "0x00000301" # ??
46
Elyes HAOUAS117fd8d2016-09-29 20:29:54 +020047 device pci 1b.0 on end # High Definition Audio
Petr Cvek6090d4e2022-04-24 07:37:55 +020048 device pci 1c.0 on end # Ethernet 1
49 device pci 1c.1 on end # Ethernet 2
50 device pci 1c.2 on end # Ethernet 3
51 device pci 1c.3 off end # MiniPCIe
52 device pci 1c.4 off end # PCIe port 5 (not connected)
53 device pci 1c.5 off end # PCIe port 6 (not connected)
Elyes HAOUAS117fd8d2016-09-29 20:29:54 +020054 device pci 1d.0 on end # USB UHCI
55 device pci 1d.1 on end # USB UHCI
56 device pci 1d.2 on end # USB UHCI
57 device pci 1d.3 on end # USB UHCI
58 device pci 1d.7 on end # USB2 EHCI
Petr Cvekde053752022-04-24 07:46:19 +020059 device pci 1e.0 on # PCI slot + Firewire
60 device pci 00.0 on end # Firewire TSB43AB22A
61 end
Arthur Heymansb9d25892018-06-15 22:02:28 +020062 device pci 1e.2 off end # AC'97 Audio
63 device pci 1e.3 off end # AC'97 Modem
Elyes HAOUAS117fd8d2016-09-29 20:29:54 +020064 device pci 1f.0 on # LPC bridge
65 chip superio/winbond/w83627thg
Patrick Georgi0588d192009-08-12 15:00:51 +000066 device pnp 2e.0 off # Floppy
67 end
Patrick Georgia4700192011-01-27 07:39:38 +000068 device pnp 2e.1 on # Parallel port
69 io 0x60 = 0x378
70 irq 0x70 = 5
Patrick Georgi0588d192009-08-12 15:00:51 +000071 end
Elyes HAOUAS117fd8d2016-09-29 20:29:54 +020072 device pnp 2e.2 on
73 io 0x60 = 0x3f8
74 irq 0x70 = 4
75 end
76 device pnp 2e.3 on
77 io 0x60 = 0x2f8
78 irq 0x70 = 3
Patrick Georgi0588d192009-08-12 15:00:51 +000079 irq 0xf1 = 4 # set IRMODE 0 # XXX not an irq
Elyes HAOUAS117fd8d2016-09-29 20:29:54 +020080 end
Patrick Georgi0588d192009-08-12 15:00:51 +000081 device pnp 2e.5 on # Keyboard+Mouse
82 io 0x60 = 0x60
83 io 0x62 = 0x64
84 irq 0x70 = 1
85 irq 0x72 = 12
86 irq 0xf0 = 0x82 # HW accel A20.
87 end
Petr Cvek6090d4e2022-04-24 07:37:55 +020088 device pnp 2e.7 on # GPIO1/5, GAME, MIDI
Petr Cvek5adbc762019-09-29 01:26:12 +020089 io 0x60 = 0x220 # allocator workaround
Patrick Georgi0588d192009-08-12 15:00:51 +000090 io 0x62 = 0x330
91 irq 0x70 = 9
92 end
93 device pnp 2e.8 on # GPIO2
94 # all default
95 end
96 device pnp 2e.9 on # GPIO3/4
97 irq 0x30 = 0x03 # does this work?
98 irq 0xf0 = 0xfb # set inputs/outputs
99 irq 0xf1 = 0x66
100 end
101 device pnp 2e.a off # ACPI
102 end
103 device pnp 2e.b on # HWM
104 io 0x60 = 0xa00
105 irq 0x70 = 0
106 end
107
Elyes HAOUAS117fd8d2016-09-29 20:29:54 +0200108 end
109 chip superio/winbond/w83627thg
110 device pnp 4e.0 off # Floppy
Patrick Georgi0588d192009-08-12 15:00:51 +0000111 end
112 device pnp 4e.1 off # Parport
113 end
Elyes HAOUAS117fd8d2016-09-29 20:29:54 +0200114 device pnp 4e.2 on # COM3
115 io 0x60 = 0x3e8
116 irq 0x70 = 6
117 end
118 device pnp 4e.3 on # COM4
119 io 0x60 = 0x2e8
120 irq 0x70 = 6
Stefan Reinauerde3206a2010-02-22 06:09:43 +0000121 irq 0xf1 = 4 # set IRMODE 0 # XXX not an irq
Elyes HAOUAS117fd8d2016-09-29 20:29:54 +0200122 end
Patrick Georgi0588d192009-08-12 15:00:51 +0000123 device pnp 4e.5 off # Keyboard
124 end
Petr Cvek6090d4e2022-04-24 07:37:55 +0200125 device pnp 4e.7 off # GPIO1/5, GAME, MIDI
Patrick Georgi0588d192009-08-12 15:00:51 +0000126 end
127 device pnp 4e.8 off # GPIO2
128 end
129 device pnp 4e.9 off # GPIO3/4
130 end
131 device pnp 4e.a off # ACPI
132 end
133 device pnp 4e.b off # HWM
134 end
Elyes HAOUAS117fd8d2016-09-29 20:29:54 +0200135 end
Patrick Georgi0588d192009-08-12 15:00:51 +0000136
Elyes HAOUAS117fd8d2016-09-29 20:29:54 +0200137 end
Arthur Heymansb9d25892018-06-15 22:02:28 +0200138 device pci 1f.1 off end # IDE
Elyes HAOUAS117fd8d2016-09-29 20:29:54 +0200139 device pci 1f.2 on end # SATA
140 device pci 1f.3 on end # SMBus
Elyes HAOUAS117fd8d2016-09-29 20:29:54 +0200141 end
142 end
Patrick Georgi0588d192009-08-12 15:00:51 +0000143end