Re: [Openocd-development] [PATCH 3/5] CortexA8: Implement debug base autodetection

2010-10-31 Thread Marek Vasut
On Sunday 31 October 2010 10:49:54 David Brownell wrote: > > #define swjdp_memoryap 0 > > #define swjdp_debugap 1 > > For Cortex-A8 it's likely not SWJ-DP but > instead JTAG-DP ... regardless it's best > not to try exposing irrelevant details > like that in naming conventions here... > > > +sta

Re: [Openocd-development] [PATCH 3/5] CortexA8: Implement debug base autodetection

2010-10-31 Thread David Brownell
> #define swjdp_memoryap 0 > #define swjdp_debugap 1 For Cortex-A8 it's likely not SWJ-DP but instead JTAG-DP ... regardless it's best not to try exposing irrelevant details like that in naming conventions here... > > +static const char *variant = NULL; "variant" is never changed but ... > .

[Openocd-development] [PATCH 3/5] CortexA8: Implement debug base autodetection

2010-10-30 Thread Marek Vasut
Implement autodetection of debug base. Also, implement a function solving various hardware quirks (like iMX51 ROM Table location bug). Signed-off-by: Marek Vasut --- src/target/cortex_a8.c | 28 +--- 1 files changed, 21 insertions(+), 7 deletions(-) diff --git a/src/ta