summaryrefslogtreecommitdiff
path: root/src/northbridge/amd/gx2/Kconfig
blob: fcba106bc61b91d6e3cdff23fffc8083508c09dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
##
## This file is part of the coreboot project.
##
## Copyright (C) 2007-2009 coresystems GmbH
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; version 2 of the License.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
##

config NORTHBRIDGE_AMD_GX2
	bool
	select GEODE_VSA
	select LATE_CBMEM_INIT

if NORTHBRIDGE_AMD_GX2

choice
	prompt "Framebuffer size"
	default GX2_VIDEO_MB_8MB

config GX2_VIDEO_MB_4MB
	bool "4MB"
config GX2_VIDEO_MB_8MB
	bool "8MB"
config GX2_VIDEO_MB_16MB
	bool "16MB"
config GX2_VIDEO_MB_32MB
	bool "32MB"
config GX2_VIDEO_MB_64MB
	bool "64MB"
config GX2_VIDEO_MB_128MB
	bool "128MB"
config GX2_VIDEO_MB_256MB
	bool "256MB"
config GX2_VIDEO_MB_CMOS
	bool "Use CMOS option"

endchoice

config VIDEO_MB
	int
	default 4 if GX2_VIDEO_MB_4MB
	default 8 if GX2_VIDEO_MB_8MB
	default 16 if GX2_VIDEO_MB_16MB
	default 32 if GX2_VIDEO_MB_32MB
	default 64 if GX2_VIDEO_MB_64MB
	default 128 if GX2_VIDEO_MB_128MB
	default 256 if GX2_VIDEO_MB_256MB
	default -1  if GX2_VIDEO_MB_CMOS

# The GX2_PROCESSOR_MHZ options let you chose the correct GX2 processor
# speed in the mainboard's Kconfig file.
config GX2_PROCESSOR_MHZ_300
	bool
config GX2_PROCESSOR_MHZ_366
	bool
config GX2_PROCESSOR_MHZ_400
	bool

# Map the config names to an integer (MHz).
config GX2_PROCESSOR_MHZ
	int
	default 300 if GX2_PROCESSOR_MHZ_300
	default 366 if GX2_PROCESSOR_MHZ_366
	default 400 if GX2_PROCESSOR_MHZ_400

endif # NORTHBRIDGE_AMD_GX2