forked from KolibriOS/kolibrios
kms: power on crtc
git-svn-id: svn://kolibrios.org@1222 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
d950628941
commit
f26bbf105c
@ -164,30 +164,26 @@ extern inline void usleep(u32_t delay)
|
||||
{
|
||||
if( !delay )
|
||||
delay++;
|
||||
delay*= 128;
|
||||
delay*= 256;
|
||||
|
||||
while(delay--)
|
||||
{
|
||||
__asm__ __volatile__(
|
||||
"xorl %%eax, %%eax \n\t"
|
||||
"cpuid \n\t"
|
||||
"xorl %%eax, %%eax"
|
||||
:::"ebx","ecx","edx");
|
||||
};
|
||||
:::"eax","ebx","ecx","edx");
|
||||
};
|
||||
|
||||
static inline void udelay(u32_t delay)
|
||||
{
|
||||
if(!delay) delay++;
|
||||
delay*= 128;
|
||||
delay*= 256;
|
||||
|
||||
while(delay--)
|
||||
{
|
||||
__asm__ __volatile__(
|
||||
"xorl %%eax, %%eax \n\t"
|
||||
"cpuid \n\t"
|
||||
"xorl %%eax, %%eax"
|
||||
:::"ebx","ecx","edx" );
|
||||
"cpuid"
|
||||
:::"eax","ebx","ecx","edx" );
|
||||
}
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ int radeon_agpmode = -1;
|
||||
int radeon_gart_size = 512; /* default gart size */
|
||||
int radeon_benchmarking = 0;
|
||||
int radeon_connector_table = 0;
|
||||
int radeon_tv = 1;
|
||||
int radeon_tv = 0;
|
||||
|
||||
|
||||
/*
|
||||
|
@ -532,6 +532,7 @@ bool set_mode(struct drm_device *dev, int width, int height)
|
||||
fb->pitch = radeon_align_pitch(dev->dev_private, width, 32, false) * ((32 + 1) / 8);
|
||||
|
||||
crtc->fb = fb;
|
||||
crtc->enabled = true;
|
||||
|
||||
ret = drm_crtc_helper_set_mode(crtc, mode, 0, 0, fb);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user