From 44d5afb3a38e120c28d50e2cbb5ffc1a7469b189 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 30 Jun 2011 03:50:07 +0000 Subject: [PATCH] bfin: revert chain_system_reset update as this wasnt supposed to be part of the token commit, and this isnt quite done yet git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1935 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- urjtag/src/bfin/bfin.c | 33 ++------------------------------- 1 file changed, 2 insertions(+), 31 deletions(-) diff --git a/urjtag/src/bfin/bfin.c b/urjtag/src/bfin/bfin.c index 194658a7..87b9bfef 100644 --- a/urjtag/src/bfin/bfin.c +++ b/urjtag/src/bfin/bfin.c @@ -23,7 +23,6 @@ #include #include #include -#include #include #include @@ -1538,41 +1537,13 @@ chain_system_reset (urj_chain_t *chain) p0 = part_get_p0 (chain, chain->main_part); r0 = part_get_r0 (chain, chain->main_part); - /* - * Flush all system events like cache line fills. Otherwise, - * when we reset the system side, any events that the core was - * waiting on no longer exist, and the core hangs. - */ - part_emuir_set (chain, chain->main_part, INSN_SSYNC, URJ_CHAIN_EXITMODE_IDLE); - - /* Write 0x7 to SWRST to start system reset. */ part_set_p0 (chain, chain->main_part, SWRST); part_set_r0 (chain, chain->main_part, 0x7); part_emuir_set (chain, chain->main_part, gen_store16_offset (REG_P0, 0, REG_R0), URJ_CHAIN_EXITMODE_IDLE); - - /* - * Delay at least 10 SCLKs instead of doing an SSYNC insn. - * Since the system is being reset, the sync signal might - * not be asserted, and so the core hangs waiting for it. - * The magic "10" number was given to us by ADI designers - * who looked at the schematic and ran some simulations. - */ - usleep (100); - - /* Write 0x0 to SWRST to stop system reset. */ + part_emuir_set (chain, chain->main_part, INSN_SSYNC, URJ_CHAIN_EXITMODE_IDLE); part_set_r0 (chain, chain->main_part, 0); part_emuir_set (chain, chain->main_part, gen_store16_offset (REG_P0, 0, REG_R0), URJ_CHAIN_EXITMODE_IDLE); - - /* Delay at least 1 SCLK; see comment above for more info. */ - usleep (100); - - /* - * Clear software reset status bit to workaround some bootrom - * bugs. Specifically, the BF526-0.0 will crash when starting - * up if this is set. Should be harmless to everyone else other - * than the bit in SWRST is always cleared ... - */ -// part_set_p0 (chain, chain->main_part, SWRST + 4); /* SYSCR */ + part_emuir_set (chain, chain->main_part, INSN_SSYNC, URJ_CHAIN_EXITMODE_IDLE); part_set_p0 (chain, chain->main_part, p0); part_set_r0 (chain, chain->main_part, r0);