Author: mkarcher Date: Sun Jul 25 00:07:52 2010 New Revision: 1104 URL: http://flashrom.org/trac/coreboot/changeset/1104
Log: Fix compilation for CONFIG_INTERNAL=no
broken by r1098
Signed-off-by: Michael Karcher flashrom@mkarcher.dialup.fu-berlin.de Acked-by: Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net
Modified: trunk/flash.h
Modified: trunk/flash.h ============================================================================== --- trunk/flash.h Sat Jul 24 20:47:45 2010 (r1103) +++ trunk/flash.h Sun Jul 25 00:07:52 2010 (r1104) @@ -697,6 +697,7 @@ uint32_t spi_get_valid_read_addr(void);
/* ichspi.c */ +#if CONFIG_INTERNAL == 1 extern uint32_t ichspi_bbar; int ich_init_spi(struct pci_dev *dev, uint32_t base, void *rcrb, int ich_generation); @@ -706,6 +707,7 @@ int ich_spi_read(struct flashchip *flash, uint8_t *buf, int start, int len); int ich_spi_write_256(struct flashchip *flash, uint8_t * buf, int start, int len); int ich_spi_send_multicommand(struct spi_command *cmds); +#endif
/* it87spi.c */ void enter_conf_mode_ite(uint16_t port); @@ -719,17 +721,21 @@ int it8716f_spi_chip_write_256(struct flashchip *flash, uint8_t *buf, int start, int len);
/* sb600spi.c */ +#if CONFIG_INTERNAL == 1 int sb600_probe_spi(struct pci_dev *dev); int sb600_spi_send_command(unsigned int writecnt, unsigned int readcnt, const unsigned char *writearr, unsigned char *readarr); int sb600_spi_read(struct flashchip *flash, uint8_t *buf, int start, int len); int sb600_spi_write_256(struct flashchip *flash, uint8_t *buf, int start, int len); +#endif
/* wbsio_spi.c */ +#if CONFIG_INTERNAL == 1 int wbsio_check_for_spi(void); int wbsio_spi_send_command(unsigned int writecnt, unsigned int readcnt, const unsigned char *writearr, unsigned char *readarr); int wbsio_spi_read(struct flashchip *flash, uint8_t *buf, int start, int len); +#endif
/* serprog.c */ int serprog_init(void);