From 3e4e712c6ebd9dc06e30992a0a401aa09c04eb97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnim=20L=C3=A4uger?= Date: Tue, 26 May 2009 20:52:21 +0000 Subject: [PATCH] [ 2793104 ] git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1628 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/ChangeLog | 5 +++++ jtag/src/bus/bf533_stamp.c | 8 +++++++- urjtag/ChangeLog | 4 ++++ urjtag/src/bus/bf533_stamp.c | 2 +- 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/jtag/ChangeLog b/jtag/ChangeLog index 1dd3258b..bef3cbf5 100644 --- a/jtag/ChangeLog +++ b/jtag/ChangeLog @@ -1,3 +1,8 @@ +2009-05-26 Arnim Laeuger + + * src/bus/bf533_stamp.c: [ 2793104 ] hidden bug? in bf533-stamp.c + (MURANAKA Masaki) + 2009-05-11 Arnim Laeuger * src/bus/ejtag_dma.c (ejtag_dma_bus_init): invert abort condition for break diff --git a/jtag/src/bus/bf533_stamp.c b/jtag/src/bus/bf533_stamp.c index cf5b24fe..59e8905f 100644 --- a/jtag/src/bus/bf533_stamp.c +++ b/jtag/src/bus/bf533_stamp.c @@ -43,6 +43,7 @@ typedef struct { signal_t *data[16]; signal_t *pf[2]; signal_t *awe; + signal_t *are; signal_t *aoe; signal_t *sras; signal_t *scas; @@ -55,6 +56,7 @@ typedef struct { #define DATA ((bus_params_t *) bus->params)->data #define PF ((bus_params_t *) bus->params)->pf #define AWE ((bus_params_t *) bus->params)->awe +#define ARE ((bus_params_t *) bus->params)->are #define AOE ((bus_params_t *) bus->params)->aoe #define SRAS ((bus_params_t *) bus->params)->sras #define SCAS ((bus_params_t *) bus->params)->scas @@ -110,6 +112,8 @@ bf533_stamp_bus_new( chain_t *chain, const bus_driver_t *driver, char *cmd_param failed |= generic_bus_attach_sig( part, &(AWE), "AWE_B" ); + failed |= generic_bus_attach_sig( part, &(ARE), "ARE_B" ); + failed |= generic_bus_attach_sig( part, &(AOE), "AOE_B" ); failed |= generic_bus_attach_sig( part, &(SRAS), "SRAS_B" ); @@ -240,6 +244,7 @@ bf533_stamp_bus_read_start( bus_t *bus, uint32_t adr ) select_flash( bus ); part_set_signal( p, AOE, 1, 0 ); + part_set_signal( p, ARE, 1, 0 ); part_set_signal( p, AWE, 1, 1 ); setup_address( bus, adr ); @@ -283,6 +288,7 @@ bf533_stamp_bus_read_end( bus_t *bus ) unselect_flash( bus ); part_set_signal( p, AOE, 1, 1 ); + part_set_signal( p, ARE, 1, 1 ); part_set_signal( p, AWE, 1, 1 ); chain_shift_data_registers( chain, 1 ); @@ -306,7 +312,7 @@ bf533_stamp_bus_write( bus_t *bus, uint32_t adr, uint32_t data ) // printf("Writing %04X to %08X...\n", data, adr); select_flash( bus ); - part_set_signal( p, AOE, 1, 1 ); + part_set_signal( p, ARE, 1, 1 ); setup_address( bus, adr ); setup_data( bus, data ); diff --git a/urjtag/ChangeLog b/urjtag/ChangeLog index 280c5d6b..836854d2 100644 --- a/urjtag/ChangeLog +++ b/urjtag/ChangeLog @@ -1,3 +1,7 @@ +2009-05-26 Arnim Laeuger + + * src/bus/bf533_stamp.c: manual fix of [ 2793104 ] + 2009-05-25 Arnim Laeuger * src/bus/bf533_stamp.c: [ 2793104 ] hidden bug? in bf533-stamp.c diff --git a/urjtag/src/bus/bf533_stamp.c b/urjtag/src/bus/bf533_stamp.c index 8304d3b7..6e84723f 100644 --- a/urjtag/src/bus/bf533_stamp.c +++ b/urjtag/src/bus/bf533_stamp.c @@ -125,7 +125,7 @@ bf533_stamp_bus_new (urj_chain_t *chain, const urj_bus_driver_t *driver, failed |= urj_bus_generic_attach_sig (part, &(AWE), "AWE_B"); - failed |= urj_bus_generic_attach_sig (part, &(AWE), "ARE_B"); + failed |= urj_bus_generic_attach_sig (part, &(ARE), "ARE_B"); failed |= urj_bus_generic_attach_sig (part, &(AOE), "AOE_B");