summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authormkarcher <mkarcher@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2012-04-30 23:11:06 +0000
committermkarcher <mkarcher@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2012-04-30 23:11:06 +0000
commitc48b25ed99dc1fe14a6b45176784b80a1093012a (patch)
tree08bfe3653a11370baf4c5e1ad51d83da0012d8fc /Makefile
parent2faecd72a9ad4a55c4675c715cfb088dc7688423 (diff)
downloadflashrom-c48b25ed99dc1fe14a6b45176784b80a1093012a.tar.gz
Add serial port bitbanging code
This adds the pony_spi driver which supports the SI_Prog adapter, which is commonly used for SPI chips with PonyProg 2000, and a custom adapter called "SERBANG" which differs in the logic of two pins. Signed-off-by: Virgil-Adrian Teaca <darkstarlinux@gmail.com> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1525 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 352ca29..d98a594 100644
--- a/Makefile
+++ b/Makefile
@@ -292,6 +292,9 @@ CONFIG_SERPROG ?= yes
# RayeR SPIPGM hardware support
CONFIG_RAYER_SPI ?= yes
+# PonyProg2000 SPI hardware support
+CONFIG_PONY_SPI ?= yes
+
# Always enable 3Com NICs for now.
CONFIG_NIC3COM ?= yes
@@ -348,6 +351,9 @@ CONFIG_PRINT_WIKI ?= no
ifeq ($(CONFIG_RAYER_SPI), yes)
override CONFIG_BITBANG_SPI = yes
else
+ifeq ($(CONFIG_PONY_SPI), yes)
+override CONFIG_BITBANG_SPI = yes
+else
ifeq ($(CONFIG_INTERNAL), yes)
override CONFIG_BITBANG_SPI = yes
else
@@ -362,6 +368,7 @@ endif
endif
endif
endif
+endif
ifeq ($(CONFIG_INTERNAL), yes)
FEATURE_CFLAGS += -D'CONFIG_INTERNAL=1'
@@ -388,6 +395,12 @@ PROGRAMMER_OBJS += rayer_spi.o
NEED_PCI := yes
endif
+ifeq ($(CONFIG_PONY_SPI), yes)
+FEATURE_CFLAGS += -D'CONFIG_PONY_SPI=1'
+PROGRAMMER_OBJS += pony_spi.o
+NEED_SERIAL := yes
+endif
+
ifeq ($(CONFIG_BITBANG_SPI), yes)
FEATURE_CFLAGS += -D'CONFIG_BITBANG_SPI=1'
PROGRAMMER_OBJS += bitbang_spi.o