blob: fcba106bc61b91d6e3cdff23fffc8083508c09dc [file] [log] [blame]
Uwe Hermannc70e9fc2010-02-15 23:10:19 +00001##
2## This file is part of the coreboot project.
3##
4## Copyright (C) 2007-2009 coresystems GmbH
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##
Ronald G. Minnich07b8c2d2009-08-28 14:46:59 +000015
16config NORTHBRIDGE_AMD_GX2
17 bool
Stefan Reinauerf94a97b2010-04-21 20:55:38 +000018 select GEODE_VSA
Kyösti Mälkki3bf38542014-12-18 22:22:04 +020019 select LATE_CBMEM_INIT
Ronald G. Minnich07b8c2d2009-08-28 14:46:59 +000020
Kyösti Mälkki59d0d152013-06-11 16:30:48 +030021if NORTHBRIDGE_AMD_GX2
22
Nils Jacobsc29675f2011-01-19 07:25:26 +000023choice
24 prompt "Framebuffer size"
25 default GX2_VIDEO_MB_8MB
Nils Jacobsc29675f2011-01-19 07:25:26 +000026
27config GX2_VIDEO_MB_4MB
28 bool "4MB"
29config GX2_VIDEO_MB_8MB
30 bool "8MB"
31config GX2_VIDEO_MB_16MB
32 bool "16MB"
33config GX2_VIDEO_MB_32MB
34 bool "32MB"
35config GX2_VIDEO_MB_64MB
36 bool "64MB"
37config GX2_VIDEO_MB_128MB
38 bool "128MB"
39config GX2_VIDEO_MB_256MB
40 bool "256MB"
41config GX2_VIDEO_MB_CMOS
42 bool "Use CMOS option"
43
44endchoice
45
Nils Jacobs19d69e32010-12-26 05:24:50 +000046config VIDEO_MB
47 int
Nils Jacobsc29675f2011-01-19 07:25:26 +000048 default 4 if GX2_VIDEO_MB_4MB
49 default 8 if GX2_VIDEO_MB_8MB
50 default 16 if GX2_VIDEO_MB_16MB
51 default 32 if GX2_VIDEO_MB_32MB
52 default 64 if GX2_VIDEO_MB_64MB
53 default 128 if GX2_VIDEO_MB_128MB
54 default 256 if GX2_VIDEO_MB_256MB
55 default -1 if GX2_VIDEO_MB_CMOS
Nils Jacobs19d69e32010-12-26 05:24:50 +000056
Nils Jacobseca32802010-11-05 00:23:11 +000057# The GX2_PROCESSOR_MHZ options let you chose the correct GX2 processor
58# speed in the mainboard's Kconfig file.
59config GX2_PROCESSOR_MHZ_300
60 bool
61config GX2_PROCESSOR_MHZ_366
62 bool
63config GX2_PROCESSOR_MHZ_400
64 bool
65
66# Map the config names to an integer (MHz).
67config GX2_PROCESSOR_MHZ
Nils Jacobs76890dd2010-11-01 15:20:27 +000068 int
Nils Jacobseca32802010-11-05 00:23:11 +000069 default 300 if GX2_PROCESSOR_MHZ_300
70 default 366 if GX2_PROCESSOR_MHZ_366
71 default 400 if GX2_PROCESSOR_MHZ_400
Nils Jacobs76890dd2010-11-01 15:20:27 +000072
Kyösti Mälkki59d0d152013-06-11 16:30:48 +030073endif # NORTHBRIDGE_AMD_GX2