ASUS M2N-E: Enable PCI-E x16 slot.
[coreboot.git] / src / mainboard / asus / m2n-e / devicetree.cb
1 ##
2 ## This file is part of the coreboot project.
3 ##
4 ## Copyright (C) 2010 Uwe Hermann <uwe@hermann-uwe.de>
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; either version 2 of the License, or
9 ## (at your option) any later version.
10 ##
11 ## This program is distributed in the hope that it will be useful,
12 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 ## GNU General Public License for more details.
15 ##
16 ## You should have received a copy of the GNU General Public License
17 ## along with this program; if not, write to the Free Software
18 ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
19 ##
20
21 chip northbridge/amd/amdk8/root_complex         # Root complex
22   device lapic_cluster 0 on                     # (L)APIC cluster
23     chip cpu/amd/socket_AM2                     # CPU socket
24       device lapic 0 on end                     # Local APIC of the CPU
25     end
26   end
27   device pci_domain 0 on                        # PCI domain
28     chip northbridge/amd/amdk8                  # Northbridge / RAM controller
29       device pci 18.0 on                        # Link 0 == LDT 0
30         chip southbridge/nvidia/mcp55           # Southbridge
31           device pci 0.0 on end                 # HT
32           device pci 1.0 on                     # LPC
33             chip superio/ite/it8716f            # Super I/O
34               device pnp 2e.0 on                # Floppy
35                 io 0x60 = 0x3f0
36                 irq 0x70 = 6
37                 drq 0x74 = 2
38               end
39               device pnp 2e.1 on                # Com1
40                 io 0x60 = 0x3f8
41                 irq 0x70 = 4
42               end
43               device pnp 2e.2 off               # Com2 (N/A)
44               end
45               device pnp 2e.3 on                # Parallel port
46                 io 0x60 = 0x378
47                 io 0x62 = 0x000
48                 irq 0x70 = 7
49                 drq 0x74 = 4
50               end
51               device pnp 2e.4 on                # Environment controller
52                 io 0x60 = 0x290
53                 io 0x62 = 0x000
54                 irq 0x70 = 0
55               end
56               device pnp 2e.5 on                # PS/2 keyboard
57                 io 0x60 = 0x60
58                 io 0x62 = 0x64
59                 irq 0x70 = 1                    # PS/2 keyboard IRQ
60               end
61               device pnp 2e.6 on                # PS/2 mouse
62                 irq 0x70 = 12                   # PS/2 mouse IRQ
63               end
64               device pnp 2e.7 off               # GPIO
65                 io 0x60 = 0x0000                # SMI# Normal Run Access
66                 io 0x62 = 0x800                 # Simple I/O
67                 io 0x64 = 0x0000                # Serial Flash I/F
68               end
69               device pnp 2e.8 off               # MIDI (N/A)
70               end
71               device pnp 2e.9 off               # Game port (N/A)
72               end
73               device pnp 2e.a off               # Consumer IR (N/A)
74               end
75             end
76           end
77           device pci 1.1 on                     # SM 0
78             chip drivers/generic/generic        # DIMM 0-0-0
79               device i2c 50 on end
80             end
81             chip drivers/generic/generic        # DIMM 0-0-1
82               device i2c 51 on end
83             end
84             chip drivers/generic/generic        # DIMM 0-1-0
85               device i2c 52 on end
86             end
87             chip drivers/generic/generic        # DIMM 0-1-1
88               device i2c 53 on end
89             end
90           end
91           device pci 2.0 on end                 # USB 1.1
92           device pci 2.1 on end                 # USB 2
93           device pci 4.0 on end                 # IDE
94           device pci 5.0 on end                 # SATA 0
95           device pci 5.1 on end                 # SATA 1
96           device pci 5.2 on end                 # SATA 2
97           device pci 6.0 on end                 # PCI
98           device pci 6.1 on end                 # Azalia (HD Audio)
99           device pci 8.0 on end                 # NIC
100           device pci 9.0 off end                # NIC (N/A)
101           device pci a.0 on end                 # PCI E 5 (PCIEX4)
102           device pci b.0 off end                # PCI E 4
103           device pci c.0 on end                 # PCI E 3 (PCIEX1_2)
104           device pci d.0 on end                 # PCI E 2 (PCIEX1_1)
105           device pci e.0 off end                # PCI E 1
106           device pci f.0 on end                 # PCI E 0 (PCIEX16_1)
107           register "ide0_enable" = "1"          # Primary IDE
108           register "ide1_enable" = "0"          # Secondary IDE (N/A)
109           register "sata0_enable" = "1"
110           register "sata1_enable" = "1"
111         end
112       end
113       device pci 18.0 on end                    # Link 1
114       device pci 18.0 on end
115       device pci 18.1 on end
116       device pci 18.2 on end
117       device pci 18.3 on end
118     end
119   end
120 end