2003-08-13 Marcel Telka <marcel@telka.sk>

* 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
master
Marcel Telka 22 years ago
parent 4cb7962bdc
commit d28318cdd2

@ -1,3 +1,8 @@
2003-08-13 Marcel Telka <marcel@telka.sk>
* 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 <marcel@telka.sk>
* include/bus.h (new_sh7751r_bus): New function declaration (patch 773533, Matan Ziv-Av).

@ -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

@ -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,

Loading…
Cancel
Save