diff options
author | Santeri Salko <santeri.salko@gmail.com> | 2011-01-13 15:21:06 +0200 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2011-01-14 14:55:24 +0100 |
commit | 5b1efd0176c2e32a5f6766175e518ccfc45239a6 (patch) | |
tree | 9fa4cc67baa6077bc050ddd144f5883066d3571b /src/jtag/core.c | |
parent | 11193c040cf0db5c64e7db808b10184aa8915aa3 (diff) |
str9xpec: Find flash controller from the chain.
Find the flash controller by position since it is before the core,
not after it.
This fixes the problem that str9xpec enable_turbo (or any other
str9xpec command) did not work. (See my post in
http://forum.sparkfun.com/viewtopic.php?f=18&t=25542)
Signed-off-by: Santeri Salko <santeri.salko@gmail.com>
Diffstat (limited to 'src/jtag/core.c')
-rw-r--r-- | src/jtag/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jtag/core.c b/src/jtag/core.c index 0c222db9..d7e1ccec 100644 --- a/src/jtag/core.c +++ b/src/jtag/core.c @@ -216,7 +216,7 @@ void jtag_tap_add(struct jtag_tap *t) } /* returns a pointer to the n-th device in the scan chain */ -static inline struct jtag_tap *jtag_tap_by_position(unsigned n) +struct jtag_tap *jtag_tap_by_position(unsigned n) { struct jtag_tap *t = jtag_all_taps(); |