a few new items and mods for ollie
authorRonald G. Minnich <rminnich@gmail.com>
Wed, 1 Mar 2006 16:11:05 +0000 (16:11 +0000)
committerRonald G. Minnich <rminnich@gmail.com>
Wed, 1 Mar 2006 16:11:05 +0000 (16:11 +0000)
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2189 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

src/mainboard/amd/rumba/auto.c
src/mainboard/dell/s1850/Config.lb
targets/dell/s1850/Config.lb
util/flashrom/flashchips.c
util/probe_superio/probe_superio.c

index 82776281e5d9f8370e2a39cc4e03d42961eec492..160fddc72f77285de8188d8e440988031dfa5c7f 100644 (file)
@@ -25,7 +25,16 @@ static void msr_init(void)
 {
 
        __builtin_wrmsr(0x1808,  0x10f3bf00, 0x22fffc02);
-       
+/* Ollie: here are some registers I think you should also set. */
+#if 0
+       /* FIX THIS FOR RUMBA -- this is LIPPERT SETTING */
+       __builtin_wrmsr(0x10000018, 0, 0x10076013);
+       __builtin_wrmsr(0x10000019, 0x696332a3, 0x18000008);
+       __builtin_wrmsr(0x1000001a, 0x101, 0);
+       __builtin_wrmsr(0x1000001c, 0xff00ff, 0);
+       __builtin_wrmsr(0x1000001d, 0x300, 0);
+       __builtin_wrmsr(0x1000001f, 0, 0);
+#endif 
        __builtin_wrmsr(0x10000020, 0xfff80, 0x20000000);
         __builtin_wrmsr(0x10000021, 0x80fffe0, 0x20000000);
         __builtin_wrmsr(0x10000026, 0x400fffc0, 0x2cfbc040);
index 57e6b0a1f7e1bdf9ffaa51f31d16ddec87e31158..407dedd9dc725ce100a8686c4914413303c7d47f 100644 (file)
@@ -147,7 +147,7 @@ chip northbridge/intel/E7520 # mch
                
                        # -> ISA
                        device pci 1f.0 on 
-                               chip superio/NSC/pc8734
+                               chip superio/NSC/pc8374
                                        device pnp 2e.0 off end
                                        device pnp 2e.1 off end
                                        device pnp 2e.2 off end
index b19054eeaa0a3b5a6f2661efbe52ef702e88f781..0330eef6e2241cbbb9be899508e701fa9c481dad 100644 (file)
@@ -1,15 +1,16 @@
 target s1850
 mainboard dell/s1850
 
-option ROM_SIZE=487424
+option ROM_SIZE=0x100000
+option MAXIMUM_CONSOLE_LOGLEVEL=10
+option DEFAULT_CONSOLE_LOGLEVEL=10
 
-# Arima hdama
 romimage "normal"
        option USE_FALLBACK_IMAGE=0
        option ROM_IMAGE_SIZE=0x16000
        option LINUXBIOS_EXTRA_VERSION=".0Normal"
 #      payload ../../../payloads/filo.elf
-       payload /etc/hosts
+       payload /tmp/filo.elf
 end
 
 romimage "fallback" 
@@ -17,7 +18,7 @@ romimage "fallback"
        option ROM_IMAGE_SIZE=0x16000
        option LINUXBIOS_EXTRA_VERSION=".0Fallback"
 #      payload ../../../payloads/filo.elf
-       payload /etc/hosts
+       payload /tmp/filo.elf
 end
 
 buildrom ./linuxbios.rom ROM_SIZE "normal" "fallback"
index f718e7b1404d6d5832b6e2ccbfcf5b783ce9bdf8..08eb00cdd1e9c7a884c87df96f399712cb50bac5 100644 (file)
@@ -89,7 +89,7 @@ struct flashchip flashchips[] = {
         probe_md2802, erase_md2802, write_md2802, read_md2802},
 #endif
        {"LHF00L04",    SHARP_ID,               SHARP_LHF00L04,         NULL, 1024, 64 * 1024,
-        probe_lhf00l04, erase_lhf00l04,        write_lhf00l04, NULL},
+        probe_82802ab, erase_82802ab,  write_82802ab,  NULL},
        {NULL,}
 };
 
index 6bb1347e15d2d1ee1a5ed2d064b5095826a82397..47c28d1ab2476adf090fe7df183c212ff0f758d0 100644 (file)
@@ -20,6 +20,7 @@ dump_ns8374(unsigned short port) {
        printf("Enables: 21=%02x, 22=%02x, 23=%02x, 24=%02x, 26=%02x\n", 
                        regval(port,0x21), regval(port,0x22), 
                        regval(port,0x23), regval(port,0x24), regval(port,0x26));
+       printf("SMBUS at %02x\n", regval(port, 0x2a));
        /* check COM1. This is all we care about at present. */
        printf("COM 1 is Globally %s\n", regval(port,0x26)&8 ? "disabled" : "enabled");
        /* select com1 */
@@ -29,6 +30,13 @@ dump_ns8374(unsigned short port) {
        printf("COM1 60=%02x, 61=%02x, 70=%02x, 71=%02x, 74=%02x, 75=%02x, f0=%02x\n", 
                regval(port, 0x60), regval(port, 0x61), regval(port, 0x70), regval(port, 0x71),
                regval(port, 0x74), regval(port, 0x75), regval(port, 0xf0));
+       /* select gpio */
+       outb(0x7, port);
+       outb(7, port+1);
+       printf("GPIO is %s\n", regval(port, 0x30) & 1 ? "enabled" : "disabled");
+       printf("GPIO 60=%02x, 61=%02x, 70=%02x, 71=%02x, 74=%02x, 75=%02x, f0=%02x\n", 
+               regval(port, 0x60), regval(port, 0x61), regval(port, 0x70), regval(port, 0x71),
+               regval(port, 0x74), regval(port, 0x75), regval(port, 0xf0));
 
 }