[coreboot] [PATCH] Enable maximum decoded range for VT8237*

Rudolf Marek r.marek at assembler.cz
Tue Apr 20 23:47:25 CEST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

Attached patch adds support for tinybootblock on VT8237* to decode whole flash
independent of strapping, making larger flashes work again (as it was in
pre-tiny bootblock era)

Signed-off-by: Rudolf Marek <r.marek at assembler.cz>

I had a strange problem:

#include <arch/io.h>
#include <arch/romcc_io.h>
#include <device/pci_ids.h>

static void bootblock_southbridge_init(void) {

device_t dev;

/* Power management controller */
dev = pci_locate_device(PCI_ID(PCI_VENDOR_ID_VIA,
				      PCI_DEVICE_ID_VIA_VT8237R_LPC), 0);

if (dev == PCI_DEV_INVALID) {
/* Power management controller */
	dev = pci_locate_device(PCI_ID(PCI_VENDOR_ID_VIA, 		
					PCI_DEVICE_ID_VIA_VT8237S_LPC), 0);

	if (dev == PCI_DEV_INVALID)
	return;
}
	pci_write_config8(dev, 0x41, 0x7f);
}

did not reach the pci write for some reason. This code is a copy from
enable_rom_decode() so it should work.

Thanks,
Rudolf
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkvOIO0ACgkQ3J9wPJqZRNVqFwCgz6+rJ6QmDVoFLHjZ3MS668jY
uW4An2kWok6aukzhZGC1Fue5yJkN0Eef
=LGC8
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add_vt8237r_bootblock_decode_roms.patch
Type: text/x-diff
Size: 1917 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20100420/74c0e703/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add_vt8237r_bootblock_decode_roms.patch.sig
Type: application/octet-stream
Size: 72 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20100420/74c0e703/attachment.obj>


More information about the coreboot mailing list