From d28318cdd2873758ad3f8d3f3580ef0c02174ea1 Mon Sep 17 00:00:00 2001 From: Marcel Telka Date: Wed, 13 Aug 2003 15:11:04 +0000 Subject: [PATCH] 2003-08-13 Marcel Telka * src/bus/sa1110.c (sa1110_bus_width): Removed bus width printing. * src/bus/sh7751r.c (sh7751r_bus_printinfo): New function. git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@509 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/ChangeLog | 5 +++++ jtag/src/bus/sa1110.c | 8 +------- jtag/src/bus/sh7751r.c | 13 +++++++++++++ 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/jtag/ChangeLog b/jtag/ChangeLog index 3fcd4b02..2947b992 100644 --- a/jtag/ChangeLog +++ b/jtag/ChangeLog @@ -1,3 +1,8 @@ +2003-08-13 Marcel Telka + + * src/bus/sa1110.c (sa1110_bus_width): Removed bus width printing. + * src/bus/sh7751r.c (sh7751r_bus_printinfo): New function. + 2003-08-13 Marcel Telka * include/bus.h (new_sh7751r_bus): New function declaration (patch 773533, Matan Ziv-Av). diff --git a/jtag/src/bus/sa1110.c b/jtag/src/bus/sa1110.c index 44f8ef90..63cc9482 100644 --- a/jtag/src/bus/sa1110.c +++ b/jtag/src/bus/sa1110.c @@ -214,13 +214,7 @@ sa1110_bus_write( bus_t *bus, uint32_t adr, uint32_t data ) static unsigned int sa1110_bus_width( bus_t *bus, uint32_t adr ) { - if (part_get_signal( PART, part_find_signal( PART, "ROM_SEL" ) )) { - printf( "ROM_SEL: 32 bits\n" ); - return 32; - } else { - printf( "ROM_SEL: 16 bits\n" ); - return 16; - } + return part_get_signal( PART, part_find_signal( PART, "ROM_SEL" ) ) ? 32 : 16; } static void diff --git a/jtag/src/bus/sh7751r.c b/jtag/src/bus/sh7751r.c index 03b2e80a..1b6c612a 100644 --- a/jtag/src/bus/sh7751r.c +++ b/jtag/src/bus/sh7751r.c @@ -86,6 +86,18 @@ setup_data( bus_t *bus, uint32_t d ) part_set_signal( p, D[i], 1, (d >> i) & 1 ); } +static void +sh7751r_bus_printinfo( void ) +{ + int i; + + for (i = 0; i < CHAIN->parts->len; i++) + if (PART == CHAIN->parts->parts[i]) + break; + printf( _("Hitachi SH7751R compatibile bus driver via BSR (JTAG part No. %d)\n"), i ); +} + + static void sh7751r_bus_prepare( bus_t *bus ) { @@ -235,6 +247,7 @@ sh7751r_bus_free( bus_t *bus ) static const bus_t sh7751r_bus = { NULL, + sh7751r_bus_printinfo, sh7751r_bus_prepare, sh7751r_bus_width, sh7751r_bus_read_start,