From 0d9c0c5e9e5a96e2752c465dbea22e148c7bcf15 Mon Sep 17 00:00:00 2001
From: hweisbach <hweisbach@81a1dc3b-b13d-400b-aceb-764788c761c2>
Date: Thu, 2 May 2013 11:06:30 +0000
Subject: [PATCH] tpi.h: Adds definition of TPI Identification code

git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1147 81a1dc3b-b13d-400b-aceb-764788c761c2
---
 ChangeLog | 4 ++++
 tpi.h     | 9 ++++++---
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index a0426225..073a8097 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-04-30  Hannes Weisbach <hannes_weisbach@gmx.net>
+
+	* tpi.h: Add definition for TPI Identification Code
+
 2013-04-28  Hannes Weisbach <hannes_weisbach@gmx.net>
 
 	* avrftdic: Rework of textual output. Messages are divided by severity and
diff --git a/tpi.h b/tpi.h
index a76feb03..f6b9fd3b 100644
--- a/tpi.h
+++ b/tpi.h
@@ -28,9 +28,12 @@ extern "C" {
 static const unsigned char tpi_skey[] = { 0x12, 0x89, 0xAB, 0x45, 0xCD, 0xD8, 0x88, 0xFF };
 
 /* registers */
-#define TPI_REG_TPIIR	0x0F
-#define TPI_REG_TPIPCR	0x02
-#define TPI_REG_TPISR	0x00
+#define TPI_REG_TPIIR  0x0F
+
+#define TPI_IDENT_CODE 0x80
+
+#define TPI_REG_TPIPCR 0x02
+#define TPI_REG_TPISR  0x00
 
 #define TPI_REG_TPISR_NVMEN		(1 << 1)