[LinuxBIOS] [PATCH] improved SPI flash support (restructured)

Stefan Reinauer stepan at coresystems.de
Sat Sep 29 15:59:25 CEST 2007


* Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net> [070929 04:08]:
> +#define ITE_SUPERIO_PORT1	0x2e
> +#define ITE_SUPERIO_PORT2	0x4e

This has nothing to do with the IDE. All PC SuperIOs are on 2e or 4e.

> +int probe_spi(struct flashchip *flash)
> +{
> +	unsigned char readarr[3];

This should be a struct imho

typedef struct spi_id {
        unsigned char vendor_id;
        unsigned short device_id;
} spi_id_t;

The driver does only probe so far, right?

what about the other SPI commands?

-- 
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/
Registergericht: Amtsgericht Freiburg • HRB 7656
Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866




More information about the coreboot mailing list