]> git.sur5r.net Git - openocd/commitdiff
lpc2900.c: Add support for new device LPC2926
authorRolf Meeser <rolfm_9dq@yahoo.de>
Wed, 1 Dec 2010 07:22:29 +0000 (08:22 +0100)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Wed, 1 Dec 2010 07:47:57 +0000 (08:47 +0100)
src/flash/nor/lpc2900.c

index 99d6d1dc1b6bff614355aaf5a56351e3c0fedc59..590c393bb77bf61b90f7860031f56f0c006bd45f 100644 (file)
@@ -1638,7 +1638,11 @@ static int lpc2900_probe(struct flash_bank *bank)
                else if ( package_code == 4 )
                {
                        /* 144-pin package */
-                       if ( (bank->size == 512*KiB) && (feat3 == 0xFFFFFCF0) )
+                       if ( (bank->size == 256*KiB) && (feat3 == 0xFFFFFFE9) )
+                       {
+                               lpc2900_info->target_name = "LPC2926";
+                       }
+                       else if ( (bank->size == 512*KiB) && (feat3 == 0xFFFFFCF0) )
                        {
                                lpc2900_info->target_name = "LPC2917/01";
                        }