[LinuxBIOS] Use Linux MTD framework for SPI flash?

Stefan Reinauer stepan at coresystems.de
Wed Aug 1 17:04:05 CEST 2007


* Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net> [070801 16:17]:
> >> * Nvidia CK804
> >> * AMD 76X
> >> * Intel ICHx
> > 
> > The code in mtd is completely useless. It just enables mapping the flash
> > to memory.
> 
> Not really. At least for ck804, it also enables flashing. Just look for
> pci_read_config_byte in ck804xrom.c and notice the similarities with
> chipset_enable.c from flashrom.
 
Correct. Unfortunately SPI is a completely different kettle of fish.

> > have pretty bad side effects. 
> 
> probe_jedec is called for every supported chip in the list with
> probe_jedec as probe function. Calling probe_jedec only once for every
> possible/reasonable chip size would be a lot more efficient.

Ok. But how do you go for the other probing functions then?

We could build an array of probe addresses/probe functions and do a
"sort unique" ;-) 

Stefan

-- 
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
      Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: info at coresystems.dehttp://www.coresystems.de/




More information about the coreboot mailing list