Use spelling LENOVO troughout instead of using Lenovo sometimes
[coreboot.git] / src / mainboard / asrock / e350m1 / devicetree.cb
1 #
2 # This file is part of the coreboot project.
3 #
4 # Copyright (C) 2011 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
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 #
19 chip northbridge/amd/agesa/family14/root_complex
20         device cpu_cluster 0 on
21                 chip cpu/amd/agesa/family14
22                   device lapic 0 on end
23                 end
24         end
25         device domain 0 on
26                 subsystemid 0x1022 0x1510 inherit
27                 chip northbridge/amd/agesa/family14 # CPU side of HT root complex
28 #                       device pci 18.0 on #  northbridge
29                                 chip northbridge/amd/agesa/family14 # PCI side of HT root complex
30                                         device pci 0.0 on end # Root Complex
31                                         device pci 1.0 on end # Internal Graphics P2P bridge 0x9804
32                                         device pci 1.1 on end # Internal HDMI Audio
33                                         device pci 4.0 on end # PCIE P2P bridge 0x9604
34                                         device pci 5.0 off end # PCIE P2P bridge 0x9605
35                                         device pci 6.0 off end # PCIE P2P bridge 0x9606
36                                         device pci 7.0 off end # PCIE P2P bridge 0x9607
37                                         device pci 8.0 off end # NB/SB Link P2P bridge
38                                 end # agesa northbridge
39
40                                 chip southbridge/amd/cimx/sb800 # it is under NB/SB Link, but on the same pri bus
41                                         device pci 11.0 on end # SATA
42                                         device pci 12.0 on end # USB
43                                         device pci 12.2 on end # USB
44                                         device pci 13.0 on end # USB
45                                         device pci 13.2 on end # USB
46                                         device pci 14.0 on # SM
47                                                 chip drivers/generic/generic #dimm 0-0-0
48                                                         device i2c 50 on end
49                                                 end
50                                                 chip drivers/generic/generic #dimm 0-0-1
51                                                         device i2c 51 on end
52                                                 end
53                                         end # SM
54                                         device pci 14.1 on end # IDE    0x439c
55                                         device pci 14.2 on end # HDA    0x4383
56                                         device pci 14.3 on # LPC        0x439d
57                                                 chip superio/winbond/w83627hf
58                                                         device pnp 2e.0 off #  Floppy
59                                                                 io 0x60 = 0x3f0
60                                                                 irq 0x70 = 6
61                                                                 drq 0x74 = 2
62                                                         end
63                                                         device pnp 2e.1 off #  Parallel Port
64                                                                 io 0x60 = 0x378
65                                                                 irq 0x70 = 7
66                                                         end
67                                                         device pnp 2e.2 on #  Com1
68                                                                 io 0x60 = 0x3f8
69                                                                 irq 0x70 = 4
70                                                         end
71                                                         device pnp 2e.3 off #  Com2
72                                                                 io 0x60 = 0x2f8
73                                                                 irq 0x70 = 3
74                                                         end
75                                                         device pnp 2e.5 on #  Keyboard
76                                                                 io 0x60 = 0x60
77                                                                 io 0x62 = 0x64
78                                                                 irq 0x70 = 1
79                                                                 irq 0x72 = 12
80                                                         end
81                                                         device pnp 2e.6 off #  CIR
82                                                                 io 0x60 = 0x100
83                                                         end
84                                                         device pnp 2e.7 off #  GAME_MIDI_GIPO1
85                                                                 io 0x60 = 0x220
86                                                                 io 0x62 = 0x300
87                                                                 irq 0x70 = 9
88                                                         end
89                                                         device pnp 2e.8 off end #  GPIO2
90                                                         device pnp 2e.9 off end #  GPIO3
91                                                         device pnp 2e.a on end #  ACPI
92                                                         device pnp 2e.b on #  HW Monitor
93                                                                 io 0x60 = 0x290
94                                                                 irq 0x70 = 5
95                                                         end
96                                                 end
97                                         end #LPC
98                                         device pci 14.4 on end # PCIB 0x4384, NOTE: PCI interface pins shared with GPIO {GPIO 35:0}
99                                         device pci 14.5 on end # USB 2
100                                         device pci 15.0 on  end # PCIe PortA
101                                         device pci 15.1 on  end # PCIe PortB: NIC
102                                         device pci 15.2 on  end # PCIe PortC: USB3
103                                         device pci 15.3 off end # PCIe PortD
104                                         device pci 16.0 off end # OHCI USB3
105                                         device pci 16.2 off end # EHCI USB3
106
107                                         # gpp_configuration options
108                                         #0000: PortA lanes[3:0]
109                                         #0001: N/A
110                                         #0010: PortA lanes[1:0], PortB lanes[3:2]
111                                         #0011: PortA lanes[1:0], PortB lane2, PortC lane3
112                                         #0100: PortA lane0, PortB lane1, PortC lane2, PortD lane3.
113                                         register "gpp_configuration" = "4"
114
115                                         register "boot_switch_sata_ide" = "0"   # 0: boot from SATA. 1: IDE
116                                 end     #southbridge/amd/cimx/sb800
117 #                       end #  device pci 18.0
118 # These seem unnecessary
119                         device pci 18.0 on end
120                         #device pci 18.0 on end
121                         device pci 18.1 on end
122                         device pci 18.2 on end
123                         device pci 18.3 on end
124                         device pci 18.4 on end
125                         device pci 18.5 on end
126                         device pci 18.6 on end
127                         device pci 18.7 on end
128
129                         register "spdAddrLookup" = "
130                         {
131                                 { {0xA0, 0xA4}, {0x00, 0x00}, }, // socket 0 - Channel 0 & 1 - 8-bit SPD addresses
132                                 { {0x00, 0x00}, {0x00, 0x00}, }, // socket 1 - Channel 0 & 1 - 8-bit SPD addresses
133                         }"
134
135                 end #chip northbridge/amd/agesa/family14 # CPU side of HT root complex
136         end #domain
137 end #northbridge/amd/agesa/family14/root_complex
138