summaryrefslogtreecommitdiff
path: root/src/mainboard/asus
diff options
context:
space:
mode:
authorLuc Verhaegen <libv@skynet.be>2009-07-23 16:04:58 +0000
committerLuc Verhaegen <libv@skynet.be>2009-07-23 16:04:58 +0000
commitaeb6c9870f0b1af8c0b55b2034f881da6757c4a4 (patch)
tree6f9087fe2504975d35b81c2e298189065b58daee /src/mainboard/asus
parentb2bd9963a5ceb4fc6751f2303dab5bfea43d4293 (diff)
downloadcoreboot-aeb6c9870f0b1af8c0b55b2034f881da6757c4a4.tar.xz
sb/via/k8t890: add vga textmode code for k8m890 chrome igp.
Add initialisation for the VIA Chrome 9 IGP on the k8m890 through native code and through the general vga infrastructure i committed a month or two ago. Add videoram_size option for k8m890 and the Asus M2V-MX SE. Now the Asus M2V-MX SE will magically come up with a working standard VGA 80x25 textmode. Many thanks to the people who worked hard on the Asus M2V-MX SE, and all of its components; this vga bringup was a breeze thanks to your hard work for this excellently supported board. And separate thanks to Rudolf Marek for spurring me on and for providing a register dump. Signed-off-by: Luc Verhaegen <libv@skynet.be> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4465 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/mainboard/asus')
-rw-r--r--src/mainboard/asus/m2v-mx_se/Options.lb7
-rw-r--r--src/mainboard/asus/m2v-mx_se/cmos.layout8
2 files changed, 13 insertions, 2 deletions
diff --git a/src/mainboard/asus/m2v-mx_se/Options.lb b/src/mainboard/asus/m2v-mx_se/Options.lb
index 75925ea885..203f770bf9 100644
--- a/src/mainboard/asus/m2v-mx_se/Options.lb
+++ b/src/mainboard/asus/m2v-mx_se/Options.lb
@@ -44,7 +44,7 @@ uses CONFIG_XIP_ROM_SIZE
uses CONFIG_XIP_ROM_BASE
uses CONFIG_STACK_SIZE
uses CONFIG_HEAP_SIZE
-# uses CONFIG_USE_OPTION_TABLE
+uses CONFIG_USE_OPTION_TABLE
uses CONFIG_LB_MEM_TOPK
uses CONFIG_HAVE_ACPI_TABLES
uses CONFIG_HAVE_MAINBOARD_RESOURCES
@@ -74,6 +74,7 @@ uses CONFIG_MAINBOARD_POWER_ON_AFTER_POWER_FAIL
uses CONFIG_CONSOLE_SERIAL8250
uses CONFIG_HAVE_INIT_TIMER
uses CONFIG_GDB_STUB
+uses CONFIG_VGA
uses CONFIG_CONSOLE_VGA
uses CONFIG_PCI_ROM_RUN
# bx_b001- uses K8_HW_MEM_HOLE_SIZEK
@@ -101,7 +102,7 @@ default CONFIG_HAVE_HARD_RESET = 1
default CONFIG_HAVE_PIRQ_TABLE = 0
default CONFIG_IRQ_SLOT_COUNT = 11 # FIXME?
default CONFIG_HAVE_MP_TABLE = 0
-default CONFIG_HAVE_OPTION_TABLE = 0 # FIXME
+default CONFIG_HAVE_OPTION_TABLE = 1 # FIXME
# Move the default coreboot CMOS range off of AMD RTC registers.
default CONFIG_LB_CKS_RANGE_START = 49
default CONFIG_LB_CKS_RANGE_END = 122
@@ -136,6 +137,7 @@ default CONFIG_SB_HT_CHAIN_ON_BUS0 = 1
# Only offset for SB chain?, default is yes(1).
default CONFIG_SB_HT_CHAIN_UNITID_OFFSET_ONLY = 0
+default CONFIG_VGA = 1
default CONFIG_CONSOLE_VGA = 1 # Needed for VGA.
default CONFIG_PCI_ROM_RUN = 0 # Needed for VGA.
default CONFIG_USE_DCACHE_RAM = 1
@@ -157,6 +159,7 @@ default CONFIG_HEAP_SIZE = 256 * 1024
default CONFIG_LB_MEM_TOPK = 32768
# to 1MB
default CONFIG_RAMBASE = 0x1F00000
+default CONFIG_USE_OPTION_TABLE = 0
# default CONFIG_USE_OPTION_TABLE = !CONFIG_USE_FALLBACK_IMAGE
default CONFIG_ROM_PAYLOAD = 1
default CC = "$(CONFIG_CROSS_COMPILE)gcc -m32"
diff --git a/src/mainboard/asus/m2v-mx_se/cmos.layout b/src/mainboard/asus/m2v-mx_se/cmos.layout
index 758c8dc4ee..827637608d 100644
--- a/src/mainboard/asus/m2v-mx_se/cmos.layout
+++ b/src/mainboard/asus/m2v-mx_se/cmos.layout
@@ -43,6 +43,7 @@ entries
440 4 e 9 slow_cpu
444 1 e 1 nmi
445 1 e 1 iommu
+448 3 e 10 videoram_size
728 256 h 0 user_data
984 16 h 0 check_sum
# Reserve the extended AMD configuration registers
@@ -90,6 +91,13 @@ enumerations
9 5 37.5%
9 6 25.0%
9 7 12.5%
+# videoram_size: mimics the bits in the ramcontroller.
+10 1 8MB
+10 2 16MB
+10 3 32MB
+10 4 64MB
+10 5 128MB
+10 6 256MB
checksums