Re: [Openocd-development] [PATCH] flash/nor/cfi: fix TopBottom for atmel chips

2011-08-09 Thread Øyvind Harboe
Merged. Thanks! -- Øyvind Harboe - Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 87 40 27 http://www.zylin.com/ ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.be

Re: [Openocd-development] [PATCH] flash/nor/cfi: fix TopBottom for atmel chips

2011-07-12 Thread Øyvind Harboe
Nice :-) I don't have a problem with this patch. I don't know precisely what changes Jean-Christophe wants to go in after rc2 though... Perhaps the code could be simplified by the below, but then again perhaps not: int amd_two = 2, amd_three = 3; if (swapped) { ... } -- Øyvind Harboe -

[Openocd-development] [PATCH] flash/nor/cfi: fix TopBottom for atmel chips

2011-07-12 Thread Andreas Bießmann
There are some older atmel nor chips which have negated logic for TopBottom detection. This patch adds a special handling for the old chips. This is the same mechanism as implemented in linux kernel. Signed-off-by: Andreas Bießmann --- src/flash/nor/cfi.c | 21 + 1 files ch