lxdream.org :: Issues
lxdream 0.9.1
released Jun 29
Download Now

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000001lxdreamSH4 Periphpublic2006-07-01 23:132006-07-02 02:10
Assigned Tonkeynes 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000001: PCTRA/PDTRA buginess
DescriptionLow 4 bits of PDTRA should generally be returned as 0 regardless of setting of PCTRA, except during the video init sequence. Currently it's returning odd values at times.
Rough pseudo-code of the init sequence is below. (prior to this it resets the PVR2, need to test whether the below is sufficient, or it only works following the reset. The wait is quite short (just under 70 instructions max)

    unsigned int *pctra = 0xff80002c
    unsigned int *pdtra = pctra+1
    unsigned int old_pctra = *pctra;

    *pctra |= 0x08;
    *pdtra |= 0x03;
    wait_gpio( pdtra, 0x03 );
    *pctra |= 0x03;
    wait_gpio( pdtra, 0x03 );

    *pdtra &= 0xFE;
    wait_gpio( pdtra, 0x00 );

    *pctra = old_pctra | 0x08;
    wait_gpio( pdtra, 0x03 );

    *pctra |= 0x04;
    wait_gpio( pdtra, 0x03 );

    *pdtra &= 0xFD;
    wait_gpio( pdtra, 0x00 );

    *pctra = old_pctra;
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2006-07-01 23:13 nkeynes New Issue
2006-07-02 02:10 nkeynes Status new => assigned
2006-07-02 02:10 nkeynes Assigned To => nkeynes