Uwe Hermann | c70e9fc | 2010-02-15 23:10:19 +0000 | [diff] [blame] | 1 | ## |
| 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. Minnich | 07b8c2d | 2009-08-28 14:46:59 +0000 | [diff] [blame] | 15 | |
| 16 | config NORTHBRIDGE_AMD_GX2 |
| 17 | bool |
Stefan Reinauer | f94a97b | 2010-04-21 20:55:38 +0000 | [diff] [blame] | 18 | select GEODE_VSA |
Kyösti Mälkki | 3bf3854 | 2014-12-18 22:22:04 +0200 | [diff] [blame] | 19 | select LATE_CBMEM_INIT |
Ronald G. Minnich | 07b8c2d | 2009-08-28 14:46:59 +0000 | [diff] [blame] | 20 | |
Kyösti Mälkki | 59d0d15 | 2013-06-11 16:30:48 +0300 | [diff] [blame] | 21 | if NORTHBRIDGE_AMD_GX2 |
| 22 | |
Nils Jacobs | c29675f | 2011-01-19 07:25:26 +0000 | [diff] [blame] | 23 | choice |
| 24 | prompt "Framebuffer size" |
| 25 | default GX2_VIDEO_MB_8MB |
Nils Jacobs | c29675f | 2011-01-19 07:25:26 +0000 | [diff] [blame] | 26 | |
| 27 | config GX2_VIDEO_MB_4MB |
| 28 | bool "4MB" |
| 29 | config GX2_VIDEO_MB_8MB |
| 30 | bool "8MB" |
| 31 | config GX2_VIDEO_MB_16MB |
| 32 | bool "16MB" |
| 33 | config GX2_VIDEO_MB_32MB |
| 34 | bool "32MB" |
| 35 | config GX2_VIDEO_MB_64MB |
| 36 | bool "64MB" |
| 37 | config GX2_VIDEO_MB_128MB |
| 38 | bool "128MB" |
| 39 | config GX2_VIDEO_MB_256MB |
| 40 | bool "256MB" |
| 41 | config GX2_VIDEO_MB_CMOS |
| 42 | bool "Use CMOS option" |
| 43 | |
| 44 | endchoice |
| 45 | |
Nils Jacobs | 19d69e3 | 2010-12-26 05:24:50 +0000 | [diff] [blame] | 46 | config VIDEO_MB |
| 47 | int |
Nils Jacobs | c29675f | 2011-01-19 07:25:26 +0000 | [diff] [blame] | 48 | 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 Jacobs | 19d69e3 | 2010-12-26 05:24:50 +0000 | [diff] [blame] | 56 | |
Nils Jacobs | eca3280 | 2010-11-05 00:23:11 +0000 | [diff] [blame] | 57 | # The GX2_PROCESSOR_MHZ options let you chose the correct GX2 processor |
| 58 | # speed in the mainboard's Kconfig file. |
| 59 | config GX2_PROCESSOR_MHZ_300 |
| 60 | bool |
| 61 | config GX2_PROCESSOR_MHZ_366 |
| 62 | bool |
| 63 | config GX2_PROCESSOR_MHZ_400 |
| 64 | bool |
| 65 | |
| 66 | # Map the config names to an integer (MHz). |
| 67 | config GX2_PROCESSOR_MHZ |
Nils Jacobs | 76890dd | 2010-11-01 15:20:27 +0000 | [diff] [blame] | 68 | int |
Nils Jacobs | eca3280 | 2010-11-05 00:23:11 +0000 | [diff] [blame] | 69 | default 300 if GX2_PROCESSOR_MHZ_300 |
| 70 | default 366 if GX2_PROCESSOR_MHZ_366 |
| 71 | default 400 if GX2_PROCESSOR_MHZ_400 |
Nils Jacobs | 76890dd | 2010-11-01 15:20:27 +0000 | [diff] [blame] | 72 | |
Kyösti Mälkki | 59d0d15 | 2013-06-11 16:30:48 +0300 | [diff] [blame] | 73 | endif # NORTHBRIDGE_AMD_GX2 |