diff options
author | Ronald G. Minnich <rminnich@gmail.com> | 2009-10-09 20:07:48 +0000 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2009-10-09 20:07:48 +0000 |
commit | 42584096c30440ecef1c50322f2f39ccbc9e5230 (patch) | |
tree | a0299ad6741f27a22af19adad4978aae4bca8df5 /src/mainboard/dell/s1850/auto.c | |
parent | 517bb208dcb2739108d07357c79e78ecd474523f (diff) | |
download | coreboot-42584096c30440ecef1c50322f2f39ccbc9e5230.tar.xz |
This change allows us to see the spd on the s850, finally.
There is an i2c mux out there. We found it using a user level program
that, as usual, began by inverting all gpios until we found out
what we needed to know. In the end, we just set up the GPIOs as
the factory bios does.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4755 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/mainboard/dell/s1850/auto.c')
-rw-r--r-- | src/mainboard/dell/s1850/auto.c | 31 |
1 files changed, 9 insertions, 22 deletions
diff --git a/src/mainboard/dell/s1850/auto.c b/src/mainboard/dell/s1850/auto.c index f1d2c65592..4f61a45500 100644 --- a/src/mainboard/dell/s1850/auto.c +++ b/src/mainboard/dell/s1850/auto.c @@ -65,25 +65,6 @@ static inline void activate_spd_rom(const struct mem_controller *ctrl) } static inline int spd_read_byte(unsigned device, unsigned address) { - /* fake it out for this board */ - switch(device) { - case 0x52: - case 0x53: - print_debug("FAKE"); - device = 0x50; - break; - case 0x50: - case 0x51: - case 0x54: - case 0x55: - case 0x56: - case 0x57: - print_debug("57"); - device = 0x57; - break; - default: - die("BAD DEV IN spd_read_byte"); - } return smbus_read_byte(device, address); } @@ -278,12 +259,17 @@ static void main(unsigned long bist) w = inw(0x866); outw(w|2, 0x866); +#if 0 + /*seriaice shows + dell does this so leave it here so I don't forget + */ /* SMBUS */ pci_write_config16(PCI_DEV(0, 0x1f, 3), 0x20, 0x08c0); /* unknown */ b = inb(0x8c2); outb(0xdf, 0x8c2); +#endif /* another device enable? */ b = pci_read_config8(PCI_DEV(0, 0, 0), 0xf4); @@ -314,11 +300,12 @@ static void main(unsigned long bist) uart_init(); console_init(); + /* stuff we seem to need */ - pc8374_enable_dev(PC8374_KBCK, 0); + pc8374_enable_dev(PNP_DEV(0x2e, PC8374_KBCK), 0); /* GPIOs */ - pc8374_enable_dev(PC8374_GPIO, 0xc20); + pc8374_enable_dev(PNP_DEV(0x2e, PC8374_GPIO), 0xc20); /* keep this in mind. SerialICE-hlp: outb 002e <= 23 @@ -351,7 +338,7 @@ static void main(unsigned long bist) #if 1 enable_smbus(); #endif -#if 0 +#if 1 // dump_spd_registers(&cpu[0]); int i; for(i = 0; i < 1; i++) { |