Hi,
when i try to use "ARM boot DSP" mode to boot my system, i got some problem.
the platform i used is Davinci DVM6446
fisrt, i
check the switch "s3" on board and be sure the s3-4's (COUT3) status is off.
then i write some code to turn on the DSP's power domain and setting the
DSPBOOTADDR
to starting address which sequence are refer to "sprue14a.pdf" section
13.5.2.1.
the power on DSP's codes snip :
int
power_on_enable_dsp()
{
/* wait for previous initial finish */
while( PSC_PTSTAT & GOSTAT_DSP_MASK )
;
/* set DSP power domain on */
PSC_PDCTL1 |= 0x1;
/* set DSP module enable */
PSC_MDCTL39 |= 0x3;
/* start to transit to next state */
PSC_PTCMD |= 0x2;
/* wait for power applying to DSP */
while( !PSC_EPCPR & EPC_DSP_MASK ) <--- always loop in here
;
/* short the power rails of the AlwaysOn
and DSP power domains. */
SCM_CHP_SHRTSW |= 0x1;
/* indicate power has been applied */
PSC_PDCTL1 |= 0x100;
/* wait for transition finish */
while( PSC_PTSTAT & GOSTAT_DSP_MASK )
;
return 1;
}
it seems the EPC bit in EPCCPR register of PSC doesn't be set to 1 which
means the power hasn't been applied.
i wonder if the sequence in code is wrong? or are there any thing i should
take care?
thanks in advance~
best,
kashin lin
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source