Initial AMD Barcelona support for rev Bx.
[coreboot.git] / src / northbridge / amd / amdfam10 / Config.lb
1 #
2 # This file is part of the LinuxBIOS project.
3 #
4 # Copyright (C) 2007 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
20 uses CONFIG_CHIP_NAME
21 uses AGP_APERTURE_SIZE
22 uses HAVE_ACPI_TABLES
23
24 default AGP_APERTURE_SIZE=0x4000000
25
26 if CONFIG_CHIP_NAME
27         config chip.h
28 end
29
30 object northbridge.o
31 driver misc_control.o
32
33 if HAVE_ACPI_TABLES
34         object amdfam10_acpi.o
35         makerule ssdt.c
36                 depends "$(TOP)/src/northbridge/amd/amdfam10/ssdt.dsl"
37                 action   "iasl -tc $(TOP)/src/northbridge/amd/amdfam10/ssdt.dsl"
38                 action   "perl -pi -e 's/AmlCode/AmlCode_ssdt/g' ssdt.hex"
39                 action   "mv ssdt.hex ssdt.c"
40         end
41         object ./ssdt.o
42         makerule sspr1.c
43                 depends "$(TOP)/src/northbridge/amd/amdfam10/sspr1.dsl"
44                 action   "iasl -tc $(TOP)/src/northbridge/amd/amdfam10/sspr1.dsl"
45                 action   "perl -pi -e 's/AmlCode/AmlCode_sspr1/g' sspr1.hex"
46                 action   "mv sspr1.hex sspr1.c"
47         end
48         object ./sspr1.o
49         makerule sspr2.c
50                 depends "$(TOP)/src/northbridge/amd/amdfam10/sspr2.dsl"
51                 action   "iasl -tc $(TOP)/src/northbridge/amd/amdfam10/sspr2.dsl"
52                 action   "perl -pi -e 's/AmlCode/AmlCode_sspr2/g' sspr2.hex"
53                 action   "mv sspr2.hex sspr2.c"
54         end
55         object ./sspr2.o
56         makerule sspr3.c
57                 depends "$(TOP)/src/northbridge/amd/amdfam10/sspr3.dsl"
58                 action   "iasl -tc $(TOP)/src/northbridge/amd/amdfam10/sspr3.dsl"
59                 action   "perl -pi -e 's/AmlCode/AmlCode_sspr3/g' sspr3.hex"
60                 action   "mv sspr3.hex sspr3.c"
61         end
62         object ./sspr3.o
63         makerule sspr4.c
64                 depends "$(TOP)/src/northbridge/amd/amdfam10/sspr4.dsl"
65                 action   "iasl -tc $(TOP)/src/northbridge/amd/amdfam10/sspr4.dsl"
66                 action   "perl -pi -e 's/AmlCode/AmlCode_sspr4/g' sspr4.hex"
67                 action   "mv sspr4.hex sspr4.c"
68         end
69         object ./sspr4.o
70         makerule sspr5.c
71                 depends "$(TOP)/src/northbridge/amd/amdfam10/sspr5.dsl"
72                 action   "iasl -tc $(TOP)/src/northbridge/amd/amdfam10/sspr5.dsl"
73                 action   "perl -pi -e 's/AmlCode/AmlCode_sspr5/g' sspr5.hex"
74                 action   "mv sspr5.hex sspr5.c"
75         end
76         object ./sspr5.o
77 end
78
79 object get_pci1234.o