Skip to content

Commit

Permalink
pbkit: Set default PTIMER values without killing the system
Browse files Browse the repository at this point in the history
  • Loading branch information
GXTX committed Jan 11, 2023
1 parent 22565f6 commit c9c5e0e
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions lib/pbkit/pbkit.c
Original file line number Diff line number Diff line change
Expand Up @@ -2806,18 +2806,7 @@ int pb_init(void)
odiv=1;
pdiv=(VIDEOREG(NV_PRAMDAC_NVPLL_COEFF)&NV_PRAMDAC_NVPLL_COEFF_PDIV)>>16;

if (mdiv)
{
//Xtal in Xbox is at 16.666 Mhz but we want 31.25Mhz for GPU...
if (((DW_XTAL_16MHZ*ndiv)/(odiv<<pdiv))/mdiv!=233333324)
{
//This PLL configuration doesn't create a 233.33 Mhz freq from Xtal
//Have this issure reported so we can update source for that case
debugPrint("PLL=%lu\n",((DW_XTAL_16MHZ*ndiv)/(odiv<<pdiv))/mdiv);
return -5;
}
}
else
if (!mdiv)
{
pb_kill();
return -5; //invalid GPU internal PLL (Phase Locked Loop=GPU freq generator)
Expand All @@ -2829,7 +2818,6 @@ int pb_init(void)

VIDEOREG(NV_PTIMER_ALARM_0)=0xFFFFFFFF;


//The Gpu instance memory is a special place in PRAMIN area (VRAM attached to RAM?)
//Essential Gpu data will be stored there, for, I guess, top speed access.

Expand Down

0 comments on commit c9c5e0e

Please sign in to comment.