945c3965446de75d9356afa979737b745132993b
[coreboot.git] / src / mainboard / asrock / 939a785gmh / devicetree.cb
1 #Define gppsb_configuration,    A=0, B=1, C=2, D=3, E=4(default)
2 #Define gpp_configuration -> device 9 1x and device a 1x is 3 and device 9 2x is 2
3 #Define port_enable, (bit map): GFX(2,3), GPP(4,5,6,7)
4 #Define gfx_dev2_dev3, 0: a link will never be established on Dev2 or Dev3,
5 #                       1: the system allows a PCIE link to be established on Dev2 or Dev3.
6 #Define gfx_dual_slot, 0: single slot, 1: dual slot (means if GFX slot are two 2 8x slots)
7 #Define gfx_lane_reversal, 0: disable lane reversal, 1: enable
8 #Define gfx_tmds, 0: didn't support TMDS, 1: support
9 #Define gfx_compliance, 0: didn't support compliance, 1: support
10 #Define gfx_reconfiguration, 0: short reconfiguration, 1(default): long reconfiguration
11 #Define gfx_link_width, 0: x16, 1: x1, 2: x2, 3: x4, 4: x8, 5: x12 (not supported), 6: x16
12 chip northbridge/amd/amdk8/root_complex
13         device lapic_cluster 0 on
14                 chip cpu/amd/socket_939
15                 device lapic 0 on end
16                 end
17         end
18         device pci_domain 0 on
19                 chip northbridge/amd/amdk8
20                         device pci 18.0 on #  southbridge
21                                 chip southbridge/amd/rs780
22                                         device pci 0.0 on end # HT      0x9600
23                                         device pci 1.0 on end # Internal Graphics P2P bridge 0x9602
24                                         device pci 2.0 on end # PCIE P2P bridge 16x slot
25                                         device pci 3.0 off end # used in dual slot config
26                                         device pci 4.0 off end # GPPSB
27                                         device pci 5.0 off end # GPPSB
28                                         device pci 6.0 off end # GPPSB
29                                         device pci 7.0 off end # GPPSB
30                                         device pci 8.0 off end # NB/SB Link P2P bridge
31                                         device pci 9.0 on end # GPP for x1 slot
32                                         device pci a.0 on end # GPP for internal network adapter
33                                         register "gppsb_configuration" = "4"   # Configuration ?
34                                         register "gpp_configuration" = "3"   # Configuration D default
35                                         register "port_enable" = "0x60c"
36                                         register "gfx_dev2_dev3" = "1"
37                                         register "gfx_dual_slot" = "0"
38                                         register "gfx_lane_reversal" = "0"
39                                         register "gfx_tmds" = "0"
40                                         register "gfx_compliance" = "0"
41                                         register "gfx_reconfiguration" = "1"
42                                         register "gfx_link_width" = "0"
43                                 end
44                                 chip southbridge/amd/sb700 # it is under NB/SB Link, but on the same pri bus
45                                         device pci 11.0 on end # SATA
46                                         device pci 12.0 on end # USB
47                                         device pci 12.1 on end # USB
48                                         device pci 12.2 on end # USB
49                                         device pci 13.0 on end # USB
50                                         device pci 13.1 on end # USB
51                                         device pci 13.2 on end # USB
52                                         device pci 14.0 on # SM
53                                                 chip drivers/generic/generic #dimm 0-0-0
54                                                         device i2c 50 on end
55                                                 end
56                                                 chip drivers/generic/generic #dimm 0-0-1
57                                                         device i2c 51 on end
58                                                 end
59                                                 chip drivers/generic/generic #dimm 0-1-0
60                                                         device i2c 52 on end
61                                                 end
62                                                 chip drivers/generic/generic #dimm 0-1-1
63                                                         device i2c 53 on end
64                                                 end
65                                         end # SM
66                                         device pci 14.1 on end # IDE    0x439c
67                                         device pci 14.2 on end # HDA    0x4383
68                                         device pci 14.3 on # LPC        0x439d
69
70                                                 chip superio/winbond/w83627dhg
71                                                         device pnp 2e.0 off #  Floppy
72                                                                 io 0x60 = 0x3f0
73                                                                 irq 0x70 = 6
74                                                                 drq 0x74 = 2
75                                                         end
76                                                         device pnp 2e.1 off #  Parallel Port
77                                                                 io 0x60 = 0x378
78                                                                 irq 0x70 = 7
79                                                         end
80                                                         device pnp 2e.2 on #  Com1
81                                                                 io 0x60 = 0x3f8
82                                                                 irq 0x70 = 4
83                                                         end
84                                                         device pnp 2e.3 on #  Com2
85                                                                 io 0x60 = 0x2f8
86                                                                 irq 0x70 = 3
87                                                         end
88                                                         device pnp 2e.5 on #  Keyboard
89                                                                 io 0x60 = 0x60
90                                                                 io 0x62 = 0x64
91                                                                 irq 0x70 = 1
92                                                         end
93                                                         #device pnp 2e.6 off #  SPI
94                                                         #end
95                                                         device pnp 2e.307 off #  GPIO6
96                                                         end
97                                                         device pnp 2e.8 on #  WDTO#, PLED
98                                                         end
99                                                         device pnp 2e.009 on #  GPIO2
100                                                         end
101                                                         device pnp 2e.109 on #  GPIO3
102                                                         end
103                                                         device pnp 2e.209 on #  GPIO4
104                                                         end
105                                                         device pnp 2e.309 off #  GPIO5
106                                                         end
107                                                         device pnp 2e.a off #  ACPI
108                                                         end
109                                                         device pnp 2e.b on # HWM
110                                                                 io 0x60 = 0x290
111                                                         end
112                                                         device pnp 2e.c off # PECI, SST
113                                                         end
114                                                 end     #superio/winbond/w8362
115
116                                         end             #LPC
117                                         device pci 14.4 on end # PCI 0x4384
118                                         device pci 14.5 on end # USB 2
119                                         register "boot_switch_sata_ide" = "0"   # 0: boot from SATA. 1: IDE
120                                 end     #southbridge/amd/sb700
121                         end #  device pci 18.0
122
123                         device pci 18.0 on end
124                         device pci 18.0 on end
125                         device pci 18.1 on end
126                         device pci 18.2 on end
127                         device pci 18.3 on end
128                 end             #northbridge/amd/amdk8
129         end #pci_domain
130 end             #northbridge/amd/amdk8/root_complex
131