Here is what i have so far.
In the s3c6410_disp.cpp there is a section where the backlight spouse to be controlled
Code: Select all
S3C6410Disp::DevPowerOn(void)
{
DWORD dwBytes;
//DISPDRV_INF((_T("[DISPDRV] ++S3C6410Disp::DevPowerOn()\n")));
DISPDRV_INF((_T("[DISPDRV] S3C6410Disp::DevPowerOn()\n")));
EnterCriticalSection(&m_csDevice);
//-------------------------------------------------------------
// Power On Video Driver
// All of HW State is restored by Video Driver
if ( !DeviceIoControl(m_hVideoDrv, IOCTL_SVE_PM_SET_POWER_ON, NULL, 0, NULL, 0, &dwBytes, NULL) )
{
DISPDRV_ERR((_T("[DISPDRV:ERR] DevPowerOn() : IOCTL_SVE_PM_SET_POWER_ON Failed\n\r")));
}
if (m_eOutputInterface == OUTPUT_IF_RGB)
{
//-------------------------------------------------------------
// Backlight On
// TODO: To be Replaced with Backlight Driver
// This 2 line spose to turn the backligh on and off, our backlight controll connected to GPF[14] ?!?
// I have tried to uncomment and change it to (1<<14); & (3<<28)) | (1<<28);
// by not knowing a lot about C/C++ I'm only assume that is how should be ?!
// regardless its not working.
m_pGPIOReg->GPFDAT |= (1<<15); // set GPF[15] to High
m_pGPIOReg->GPFCON = (m_pGPIOReg->GPFCON & ~(3<<30)) | (1<<30); // set GPF[15] as Output
}
LeaveCriticalSection(&m_csDevice);
//DISPDRV_INF((_T("[DISPDRV] --S3C6410Disp::DevPowerOn()\n")));
return TRUE;
}