2004-08-16 Marcel Telka <marcel@telka.sk>

* src/bus/pxa2x0.c (bus_params_t): Added new member: inited.
	(INITED): New macro.
	(pxa2x0_bus_new): Removed BOOT_DEF initialization.
	(pxa250_bus_prepare): Added BOOT_DEF initialization.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@605 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Marcel Telka 21 years ago
parent fb1b33970e
commit a72f52c785

@ -1,3 +1,10 @@
2004-08-16 Marcel Telka <marcel@telka.sk>
* src/bus/pxa2x0.c (bus_params_t): Added new member: inited.
(INITED): New macro.
(pxa2x0_bus_new): Removed BOOT_DEF initialization.
(pxa250_bus_prepare): Added BOOT_DEF initialization.
2004-08-15 Marcel Telka <marcel@telka.sk>
* include/jtag.h (detect_parts): Changed return type.

@ -54,6 +54,7 @@ typedef struct {
signal_t *noe;
signal_t *nsdcas;
MC_registers_t MC_registers;
int inited;
} bus_params_t;
#define CHAIN ((bus_params_t *) bus->params)->chain
@ -70,6 +71,8 @@ typedef struct {
#define MC_pointer (&((bus_params_t *) bus->params)->MC_registers)
#define INITED ((bus_params_t *) bus->params)->inited
static void
setup_address( bus_t *bus, uint32_t a )
{
@ -121,7 +124,19 @@ pxa2x0_bus_printinfo( bus_t *bus )
static void
pxa250_bus_prepare( bus_t *bus )
{
{
if (INITED == 0) {
part_set_instruction( PART, "SAMPLE/PRELOAD" );
chain_shift_instructions( chain );
chain_shift_data_registers( chain, 1 );
BOOT_DEF = BOOT_DEF_PKG_TYPE | BOOT_DEF_BOOT_SEL(part_get_signal( PART, part_find_signal( PART, "BOOT_SEL[2]" ) ) << 2
| part_get_signal( PART, part_find_signal( PART, "BOOT_SEL[1]" ) ) << 1
| part_get_signal( PART, part_find_signal( PART, "BOOT_SEL[0]" ) ));
INITED = 1;
}
part_set_instruction( PART, "EXTEST" );
chain_shift_instructions( CHAIN );
}
@ -442,13 +457,7 @@ pxa2x0_bus_new( void )
return NULL;
}
part_set_instruction( PART, "SAMPLE/PRELOAD" );
chain_shift_instructions( chain );
chain_shift_data_registers( chain, 1 );
BOOT_DEF = BOOT_DEF_PKG_TYPE | BOOT_DEF_BOOT_SEL(part_get_signal( PART, part_find_signal( PART, "BOOT_SEL[2]" ) ) << 2
| part_get_signal( PART, part_find_signal( PART, "BOOT_SEL[1]" ) ) << 1
| part_get_signal( PART, part_find_signal( PART, "BOOT_SEL[0]" ) ));
INITED = 0;
return bus;
}

Loading…
Cancel
Save