summaryrefslogtreecommitdiff
blob: 730078bb9845493e38e33abe9d393942bab36e94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
diff -Nura uisp-20050207/src/Avr.C uisp-20050207-mega-48-88-168/src/Avr.C
--- uisp-20050207/src/Avr.C	2005-02-07 19:55:08.000000000 -0300
+++ uisp-20050207-mega-48-88-168/src/Avr.C	2005-06-28 16:37:58.000000000 -0300
@@ -77,7 +77,7 @@
   /* no longer in production? -> use 8515, 8535 instead */
   { "AT90S4414",    0x92, 0x01,   4096,   0,  256,  4000, 4000, AVR_2313 },
   { "AT90S4434",    0x92, 0x02,   4096,   0,  256,  4000, 4000, AVR_8535 },
-  { "ATmega48",     0x92, 0x05,   4096,   0,  256,  4000, 4000, AVR_M163 },
+  { "ATmega48",     0x92, 0x05,   4096,   32,  256,  2000, 1500, AVR_M48 },
 
   { "AT90S8515",    0x93, 0x01,   8192,   0,  512,  4000, 4000, AVR_2313 },
   { "AT90S8535",    0x93, 0x03,   8192,   0,  512,  4000, 4000, AVR_8535 },
@@ -90,7 +90,7 @@
   { "ATmega8515",   0x93, 0x06,   8192,  64,  512,  4500, 9000, AVR_M163 },
   { "ATmega8",      0x93, 0x07,   8192,  64,  512,  4500, 9000, AVR_M163 },
   { "ATmega8535",   0x93, 0x08,   8192,  64,  512,  4500, 9000, AVR_M163 },
-  { "ATmega88",     0x93, 0x0a,   8192,  64,  512,  4000, 4000, AVR_M163 },
+  { "ATmega88",     0x93, 0x0a,   8192,  64,  512,  2000, 1500, AVR_M163 },
 
 #if 0
   /* 12V parallel programming only; here just for the evidence */
@@ -101,6 +101,7 @@
   { "ATmega163",    0x94, 0x02,  16384, 128,  512, 15000, 3800, AVR_M163 },
   { "ATmega16",     0x94, 0x03,  16384, 128,  512,  4500, 9000, AVR_M163 },
   { "ATmega162",    0x94, 0x04,  16384, 128,  512,  4500, 9000, AVR_M128 },
+  { "ATmega168",    0x94, 0x06,  16384, 128,  512,  2000, 1500, AVR_M163 },
   { "ATmega169",    0x94, 0x05,  16384, 128,  512,  4500, 9000, AVR_M128 },
 
   { "ATmega323",    0x95, 0x01,  32768, 128, 1024, 15000, 3800, AVR_M163 },
diff -Nura uisp-20050207/src/Avr.h uisp-20050207-mega-48-88-168/src/Avr.h
--- uisp-20050207/src/Avr.h	2004-03-30 23:25:44.000000000 -0300
+++ uisp-20050207-mega-48-88-168/src/Avr.h	2005-06-28 16:41:24.000000000 -0300
@@ -121,6 +121,8 @@
 		  | AVR_FUSE_NEWWR | AVR_CAL_RD | AVR_FUSE_HIGH)
 #define AVR_M128 (AVR_BYTE_POLL | AVR_PAGE_POLL | AVR_LOCK_BOOT | AVR_FUSE_RD \
 		  | AVR_FUSE_NEWWR | AVR_CAL_RD | AVR_FUSE_HIGH | AVR_FUSE_EXT)
+#define AVR_M48 (AVR_BYTE_POLL | AVR_PAGE_POLL | AVR_FUSE_RD | AVR_FUSE_NEWWR \
+		| AVR_CAL_RD | AVR_FUSE_HIGH)
 
 /* XXX no boot lock bits, but ordinary lock bits are in bits 1 and 0.
    XXX has 4 calibration bytes for 1/2/4/8 MHz, can only read one for now.  */