From 59c68bac8bd57054c6ac28e5d207d9538a31414b Mon Sep 17 00:00:00 2001
From: Joerg Wunsch <j@uriah.heep.sax.de>
Date: Thu, 7 Jan 2010 16:34:58 +0000
Subject: [PATCH] Submitted by Eric Trein: bug #27596: AT90s2333 is not
 correctly supported in avrdude.conf * avrdude.conf.in (at90s2333): add
 various STK500v2 parameters.

git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@889 81a1dc3b-b13d-400b-aceb-764788c761c2
---
 ChangeLog       |  8 ++++++++
 avrdude.conf.in | 43 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 51 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 37f9ae8b..748d43b9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,11 +1,19 @@
 2010-01-07  Joerg Wunsch <j.gnu@uriah.heep.sax.de>
 
+	Submitted by Eric Trein:
+	bug #27596: AT90s2333 is not correctly supported in avrdude.conf
+	* avrdude.conf.in (at90s2333): add various STK500v2 parameters.
+
+2010-01-07  Joerg Wunsch <j.gnu@uriah.heep.sax.de>
+
+	Submitted by Gyorgy Szekely:
 	bug #28458: Buffer line is incorrectly released for PP programmers
 	* par.c (par_close): use par_setmany() rather than par_setpin()
 	for PPI_AVR_BUFF.
 
 2010-01-07  Joerg Wunsch <j.gnu@uriah.heep.sax.de>
 
+	Submitted by Lukasz Goralczyk:
 	bug #27507: SIGSEGV when using avrdragon (avrdude 5.8)
 	* stk500v2.c (stk500v2_dragon_isp_initpgm): Use
 	stk500v2_jtagmkII_setup/stk500v2_jtagmkII_rather than their
diff --git a/avrdude.conf.in b/avrdude.conf.in
index f0bf109c..c69df82d 100644
--- a/avrdude.conf.in
+++ b/avrdude.conf.in
@@ -1725,6 +1725,37 @@ part
     chip_erase       = "1 0 1 0  1 1 0 0    1 0 0 0  0 0 0 0",
                        "x x x x  x x x x    x x x x  x x x x";
 
+    timeout		= 200;
+    stabdelay		= 100;
+    cmdexedelay		= 25;
+    synchloops		= 32;
+    bytedelay		= 0;
+    pollindex		= 3;
+    pollvalue		= 0x53;
+    predelay		= 1;
+    postdelay		= 1;
+    pollmethod		= 0;
+
+    pp_controlstack     =
+        0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
+        0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
+        0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
+        0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
+    hventerstabdelay    = 100;
+    progmodedelay       = 0;
+    latchcycles         = 0;
+    togglevtg           = 0;
+    poweroffdelay       = 0;
+    resetdelayms        = 0;
+    resetdelayus        = 0;
+    hvleavestabdelay    = 15;
+    chiperasepulsewidth = 15;
+    chiperasepolltimeout = 0;
+    programfusepulsewidth = 2;
+    programfusepolltimeout = 0;
+    programlockpulsewidth = 0;
+    programlockpolltimeout = 1;
+
     memory "eeprom"
         size            = 128;
         min_write_delay = 9000;
@@ -1736,7 +1767,13 @@ part
 
         write           = "1  1  0  0   0  0  0  0   x x x x  x x x x",
                           "x a6 a5 a4  a3 a2 a1 a0   i i i i  i i i i";
+
+	mode		= 0x04;
+	delay		= 12;
+	blocksize	= 128;
+	readsize	= 256;
       ;
+
     memory "flash"
         size            = 2048;
         min_write_delay = 9000;
@@ -1762,7 +1799,13 @@ part
                           "  x   x   x   x    x   x  a9  a8",
                           " a7  a6  a5  a4   a3  a2  a1  a0",
                           "  i   i   i   i    i   i   i   i";
+
+	mode		= 0x04;
+	delay		= 12;
+	blocksize	= 128;
+	readsize	= 256;
       ;
+
     memory "signature"
         size            = 3;
         read            = "0  0  1  1   0  0  0  0   x  x  x  x   x  x  x  x",