Merge pull request #781 from profi200/master
Revert 9273a88d
and make it not freeze the GPU/LCD hardware.
This commit is contained in:
commit
d2e911a58e
@ -70,10 +70,14 @@ static void initScreens(u32 brightnessLevel)
|
|||||||
*(vu32 *)0x1040045C = 0x00f00190;
|
*(vu32 *)0x1040045C = 0x00f00190;
|
||||||
*(vu32 *)0x10400460 = 0x01c100d1;
|
*(vu32 *)0x10400460 = 0x01c100d1;
|
||||||
*(vu32 *)0x10400464 = 0x01920002;
|
*(vu32 *)0x10400464 = 0x01920002;
|
||||||
|
*(vu32 *)0x10400468 = 0x18300000;
|
||||||
|
*(vu32 *)0x1040046C = 0x18400000;
|
||||||
*(vu32 *)0x10400470 = 0x80341;
|
*(vu32 *)0x10400470 = 0x80341;
|
||||||
*(vu32 *)0x10400474 = 0x00010501;
|
*(vu32 *)0x10400474 = 0x00010501;
|
||||||
*(vu32 *)0x10400478 = 0;
|
*(vu32 *)0x10400478 = 0;
|
||||||
*(vu32 *)0x10400490 = 0x000002D0;
|
*(vu32 *)0x10400490 = 0x000002D0;
|
||||||
|
*(vu32 *)0x10400494 = 0x18300000;
|
||||||
|
*(vu32 *)0x10400498 = 0x18400000;
|
||||||
*(vu32 *)0x1040049C = 0x00000000;
|
*(vu32 *)0x1040049C = 0x00000000;
|
||||||
|
|
||||||
//Disco register
|
//Disco register
|
||||||
@ -103,6 +107,8 @@ static void initScreens(u32 brightnessLevel)
|
|||||||
*(vu32 *)0x1040055C = 0x00f00140;
|
*(vu32 *)0x1040055C = 0x00f00140;
|
||||||
*(vu32 *)0x10400560 = 0x01c100d1;
|
*(vu32 *)0x10400560 = 0x01c100d1;
|
||||||
*(vu32 *)0x10400564 = 0x01920052;
|
*(vu32 *)0x10400564 = 0x01920052;
|
||||||
|
*(vu32 *)0x10400568 = 0x18346500;
|
||||||
|
*(vu32 *)0x1040056c = 0x18446500;
|
||||||
*(vu32 *)0x10400570 = 0x80301;
|
*(vu32 *)0x10400570 = 0x80301;
|
||||||
*(vu32 *)0x10400574 = 0x00010501;
|
*(vu32 *)0x10400574 = 0x00010501;
|
||||||
*(vu32 *)0x10400578 = 0;
|
*(vu32 *)0x10400578 = 0;
|
||||||
|
@ -96,9 +96,6 @@ void initScreens(void)
|
|||||||
|
|
||||||
if(needToSetup)
|
if(needToSetup)
|
||||||
{
|
{
|
||||||
memcpy((void *)ARM11_PARAMETERS_ADDRESS, fbs, sizeof(fbs));
|
|
||||||
invokeArm11Function(SETUP_FRAMEBUFFERS);
|
|
||||||
|
|
||||||
if(!ARESCREENSINITIALIZED)
|
if(!ARESCREENSINITIALIZED)
|
||||||
{
|
{
|
||||||
*(vu32 *)ARM11_PARAMETERS_ADDRESS = brightness[MULTICONFIG(BRIGHTNESS)];
|
*(vu32 *)ARM11_PARAMETERS_ADDRESS = brightness[MULTICONFIG(BRIGHTNESS)];
|
||||||
@ -109,6 +106,8 @@ void initScreens(void)
|
|||||||
}
|
}
|
||||||
else updateBrightness(MULTICONFIG(BRIGHTNESS));
|
else updateBrightness(MULTICONFIG(BRIGHTNESS));
|
||||||
|
|
||||||
|
memcpy((void *)ARM11_PARAMETERS_ADDRESS, fbs, sizeof(fbs));
|
||||||
|
invokeArm11Function(SETUP_FRAMEBUFFERS);
|
||||||
clearScreens(true);
|
clearScreens(true);
|
||||||
needToSetup = false;
|
needToSetup = false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user