summaryrefslogtreecommitdiff
path: root/src/northbridge/via/cn400/Kconfig
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2009-10-26 21:42:13 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2009-10-26 21:42:13 +0000
commit63a8f2a7c29bb41191be085ca328c3938e774902 (patch)
tree3ab9985c3273fb171562ace222101908fc75af39 /src/northbridge/via/cn400/Kconfig
parent123a684ce6341e870fc1a73101e23b000c45b479 (diff)
Add kconfig menus for most chipset VIDEO_MB values.
VIDEO_MB is a variable that defines how many MB of RAM will be used for onboard graphics frame buffer. It's northbridge-dependent which values for CONFIG_MB are valid (but not board-dependent). This patch adds choices for menuconfig to select the VIDEO_MB value for: - Intel 82810 - Intel 82830 - VIA CN400 - VIA CN700 Note: CN400 and CN700 are based on the CX700 datasheet, not sure if they're correct. If somebody has CN400 and CN700 datasheets, please verify. We drop all per-board VIDEO_MB variables in per-board Kconfig files as there's a northbridge-specific option/default now (plus the user can override the value if needed in menuconfig). As CONFIG_MB is chipset-specific but not board-specific (and never was), filter it in util/compareboard/compareboard, we don't need to match those values. Finally, put "CPU", "Northbridge", "Southbridge", "Super I/O", and "Devices" sections into the "Chipset" menu, where NB-specific options will appear if you select a board using a certain NB, SB-specific options would appear in the "Southbridge" section etc. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Myles Watson <mylesgw@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4866 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/northbridge/via/cn400/Kconfig')
-rw-r--r--src/northbridge/via/cn400/Kconfig33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/northbridge/via/cn400/Kconfig b/src/northbridge/via/cn400/Kconfig
index c210d934a1..67703c9ebe 100644
--- a/src/northbridge/via/cn400/Kconfig
+++ b/src/northbridge/via/cn400/Kconfig
@@ -17,3 +17,36 @@ config PCI_ROM_RUN
default n
depends on NORTHBRIDGE_VIA_CN400
+# TODO: Values are from the CX700 datasheet, not sure if this matches CN400.
+# TODO: What should be the per-chipset default value here?
+choice
+ prompt "Onboard graphics"
+ default CN400_VIDEO_MB_32MB
+ depends on NORTHBRIDGE_VIA_CN400
+
+# TODO: Disabling onboard graphics is not yet supported in the source code.
+config CN400_VIDEO_MB_OFF
+ bool "Disabled, 0KB"
+config CN400_VIDEO_MB_8MB
+ bool "Enabled, 8MB"
+config CN400_VIDEO_MB_16MB
+ bool "Enabled, 16MB"
+config CN400_VIDEO_MB_32MB
+ bool "Enabled, 32MB"
+config CN400_VIDEO_MB_64MB
+ bool "Enabled, 64MB"
+config CN400_VIDEO_MB_128MB
+ bool "Enabled, 128MB"
+
+endchoice
+
+config VIDEO_MB
+ int
+ default 0 if CN400_VIDEO_MB_OFF
+ default 8 if CN400_VIDEO_MB_8MB
+ default 16 if CN400_VIDEO_MB_16MB
+ default 32 if CN400_VIDEO_MB_32MB
+ default 64 if CN400_VIDEO_MB_64MB
+ default 128 if CN400_VIDEO_MB_128MB
+ depends on NORTHBRIDGE_VIA_CN400
+