blob: 959912eff9d870f2ceb186cbb3deeec468874f61 [file] [log] [blame]
Kyösti Mälkki595ef3d2015-05-27 12:44:16 +03001#
2# This file is part of the coreboot project.
3#
4# Copyright (C) 2013 Advanced Micro Devices, Inc.
5#
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; version 2 of the License.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
Fabian Kunkel7558dba2015-05-25 17:08:17 +020012# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Kyösti Mälkki595ef3d2015-05-27 12:44:16 +030013# GNU General Public License for more details.
14#
Kyösti Mälkki595ef3d2015-05-27 12:44:16 +030015chip northbridge/amd/agesa/family16kb/root_complex
16 device cpu_cluster 0 on
17 chip cpu/amd/agesa/family16kb
18 device lapic 0 on end
19 end
20 end
21
22 device domain 0 on
23 subsystemid 0x1022 0x1410 inherit
24 chip northbridge/amd/agesa/family16kb # CPU side of HT root complex
25
26 chip northbridge/amd/agesa/family16kb # PCI side of HT root complex
27 device pci 0.0 on end # Root Complex
28 device pci 1.0 on end # Internal Graphics P2P bridge 0x9835
29 device pci 1.1 on end # Internal Multimedia
30 device pci 2.0 on end # PCIe Host Bridge
Fabian Kunkel7558dba2015-05-25 17:08:17 +020031 device pci 2.1 on end # x4 PCIe Slot
32 device pci 2.2 on end # PCIe Q7 Realtek GBit LAN
33 device pci 2.3 on end # PCIe CB Realtek GBit LAN
Fabian Kunkel1f9c07f2016-07-26 22:11:07 +020034 device pci 2.4 on end # x2 PCIe Microsemi FPGA
Kyösti Mälkki595ef3d2015-05-27 12:44:16 +030035 end #chip northbridge/amd/agesa/family16kb
36
37 chip southbridge/amd/agesa/hudson # it is under NB/SB Link, but on the same pci bus
38 device pci 10.0 on end # XHCI HC0
39 device pci 11.0 on end # SATA
40 device pci 12.0 on end # USB
41 device pci 12.2 on end # USB
42 device pci 13.0 on end # USB
43 device pci 13.2 on end # USB
44 device pci 14.0 on end # SM
45 device pci 14.2 on end # HDA 0x4383
Fabian Kunkel7558dba2015-05-25 17:08:17 +020046 device pci 14.3 on # LPC 0x439d
47 chip superio/fintek/f81866d
48 register "hwm_amd_tsi_addr" = "0x98" # Set to AMD
49 register "hwm_amd_tsi_control" = "0x02" # Set to AMD
50 register "hwm_fan_select" = "0xC0" # Sets Fan2 to PWM
51 register "hwm_fan_mode" = "0xD5" # Sets FAN1-3 to Auto RPM mode
52 register "hwm_fan3_control" = "0x00" # Fan control 23kHz
53 register "hwm_fan2_temp_map_select" = "0x1E" # Fan control 23kHz
54 register "hwm_fan2_bound1" = "0x3C" # 60°C
55 register "hwm_fan2_bound2" = "0x32" # 50°C
56 register "hwm_fan2_bound3" = "0x28" # 40°C
57 register "hwm_fan2_bound4" = "0x1E" # 30°C
58 register "hwm_fan2_seg1_speed" = "0xFF" # 100%
59 register "hwm_fan2_seg2_speed" = "0xD9" # 85%
60 register "hwm_fan2_seg3_speed" = "0xB2" # 70%
61 register "hwm_fan2_seg4_speed" = "0x99" # 60%
62 register "hwm_fan2_seg5_speed" = "0x80" # 50%
63 register "hwm_temp_sens_type" = "0x04" # Sets temp sensor 1 type to to thermistor
64 device pnp 4e.0 off # Floppy
65 io 0x60 = 0x3f0
66 irq 0x70 = 6
67 drq 0x74 = 2
68 end
69 device pnp 4e.3 off end # Parallel Port
70 device pnp 4e.4 on # Hardware Monitor
71 io 0x60 = 0x295
72 irq 0x70 = 0
73 end
74 device pnp 4e.5 off # Keyboard
75 io 0x60 = 0x60
76 io 0x62 = 0x64
77 irq 0x70 = 1
78 end
79 device pnp 4e.6 off end # GPIO
80 device pnp 4e.7 on end # WDT
81 device pnp 4e.a off end # PME
82 device pnp 4e.10 on # COM1
83 io 0x60 = 0x3f8
84 irq 0x70 = 4
85 end
86 device pnp 4e.11 on # COM2
87 io 0x60 = 0x2f8
88 irq 0x70 = 3
89 end
Fabian Kunkel41b31962016-07-12 11:32:37 +020090 device pnp 4e.12 on # COM3
91 io 0x60 = 0x3e8
92 irq 0x70 = 4
Fabian Kunkel7558dba2015-05-25 17:08:17 +020093 end
Fabian Kunkel41b31962016-07-12 11:32:37 +020094 device pnp 4e.13 on # COM4
95 io 0x60 = 0x2e8
96 irq 0x70 = 3
Fabian Kunkel7558dba2015-05-25 17:08:17 +020097 end
98 device pnp 4e.14 off # COM5
99 end
100 device pnp 4e.15 off # COM6
101 end
102 end # f81866d
103 end #LPC
Kyösti Mälkki595ef3d2015-05-27 12:44:16 +0300104 device pci 14.7 on end # SD
Marshall Dawsonf5d9d142016-12-16 12:53:53 -0500105 end #chip southbridge/amd/agesa/hudson
Kyösti Mälkki595ef3d2015-05-27 12:44:16 +0300106
107 device pci 18.0 on end
108 device pci 18.1 on end
109 device pci 18.2 on end
110 device pci 18.3 on end
111 device pci 18.4 on end
112 device pci 18.5 on end
113
114 end #chip northbridge/amd/agesa/family16kb # CPU side of HT root complex
115 end #domain
116end #northbridge/amd/agesa/family16kb/root_complex