Commit 14ba6682 authored by Sean Nelson's avatar Sean Nelson
Browse files

Split spi.c into programmer and chip code Remove chipdriver.h include from flash.h


Some of the spi programmer drivers required chipdrivers.h, needs fixing later:
  it87spi.c
  ichspi.c
  sb600spi.c
  wbsio_spi.c
  buspirate_spi.c
  ft2232spi.c
  bitbang_spi.c
  dediprog.c

Corresponding to flashrom svn r914.
Signed-off-by: default avatarSean Nelson <audiohacked@gmail.com>
Acked-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
parent cfa674fd
......@@ -29,6 +29,7 @@
#include <string.h>
#include <stdlib.h>
#include "flash.h"
#include "chipdrivers.h"
// I need that Berkeley bit-map printer
void print_82802ab_status(uint8_t status)
......
......@@ -43,7 +43,7 @@ endif
CHIP_OBJS = jedec.o stm50flw0x0x.o w39v040c.o w39v080fa.o sharplhf00l04.o w29ee011.o \
sst28sf040.o m29f400bt.o 82802ab.o pm49fl00x.o \
sst49lfxxxc.o sst_fwhub.o flashchips.o spi.o
sst49lfxxxc.o sst_fwhub.o flashchips.o spi.o spi25.o
LIB_OBJS = layout.o
......
......@@ -23,6 +23,7 @@
#include <stdlib.h>
#include <ctype.h>
#include "flash.h"
#include "chipdrivers.h"
#include "spi.h"
/* Length of half a clock period in usecs */
......
......@@ -23,6 +23,7 @@
#include <stdlib.h>
#include <ctype.h>
#include "flash.h"
#include "chipdrivers.h"
#include "spi.h"
/* Change this to #define if you want to test without a serial implementation */
......
......@@ -23,6 +23,7 @@
#include <sys/types.h>
#include <usb.h>
#include "flash.h"
#include "chipdrivers.h"
#include "spi.h"
#define DEFAULT_TIMEOUT 3000
......
......@@ -681,6 +681,4 @@ int serialport_shutdown(void);
int serialport_write(unsigned char *buf, unsigned int writecnt);
int serialport_read(unsigned char *buf, unsigned int readcnt);
#include "chipdrivers.h"
#endif /* !__FLASH_H__ */
......@@ -24,6 +24,7 @@
#include "flash.h"
#include "flashchips.h"
#include "chipdrivers.h"
/**
* List of supported flash chips.
......
......@@ -26,6 +26,7 @@
#include <stdlib.h>
#include <ctype.h>
#include "flash.h"
#include "chipdrivers.h"
#include "spi.h"
#include <ftdi.h>
......
......@@ -35,6 +35,7 @@
#include <string.h>
#include "flash.h"
#include "chipdrivers.h"
#include "spi.h"
/* Change this to #define if you want lowlevel debugging of commands
......
......@@ -26,6 +26,7 @@
#include <string.h>
#include <stdlib.h>
#include "flash.h"
#include "chipdrivers.h"
#include "spi.h"
#define ITE_SUPERIO_PORT1 0x2e
......
......@@ -23,6 +23,7 @@
*/
#include "flash.h"
#include "chipdrivers.h"
#define MAX_REFLASH_TRIES 0x10
#define MASK_FULL 0xffff
......
......@@ -19,6 +19,7 @@
*/
#include "flash.h"
#include "chipdrivers.h"
/* WARNING!
This chip uses the standard JEDEC Addresses in 16-bit mode as word
......
......@@ -21,6 +21,7 @@
*/
#include "flash.h"
#include "chipdrivers.h"
void write_lockbits_49fl00x(chipaddr bios, int size,
unsigned char bits, int block_size)
......
......@@ -22,6 +22,7 @@
#include <string.h>
#include "flash.h"
#include "chipdrivers.h"
#include "spi.h"
/* This struct is unused, but helps visualize the SB600 SPI BAR layout.
......
......@@ -20,6 +20,7 @@
#include <stdlib.h>
#include "flash.h"
#include "chipdrivers.h"
// I need that Berkeley bit-map printer
void print_lhf00l04_status(uint8_t status)
......
This diff is collapsed.
This diff is collapsed.
......@@ -21,6 +21,7 @@
*/
#include "flash.h"
#include "chipdrivers.h"
#define AUTO_PG_ERASE1 0x20
#define AUTO_PG_ERASE2 0xD0
......
......@@ -22,6 +22,7 @@
#include <stdlib.h>
#include "flash.h"
#include "chipdrivers.h"
#define SECTOR_ERASE 0x30
#define BLOCK_ERASE 0x20
......
......@@ -25,6 +25,7 @@
#include <stdlib.h>
#include <string.h>
#include "flash.h"
#include "chipdrivers.h"
// I need that Berkeley bit-map printer
void print_sst_fwhub_status(uint8_t status)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment