omap3530/shared/serialkeyb/serialkeyboard.cpp
branchBeagle_BSP_dev
changeset 116 e7f4b52d2c87
parent 84 09e266454dcf
parent 115 0a9dcad6d856
equal deleted inserted replaced
112:fdfa12d9a47a 116:e7f4b52d2c87
   358 		{
   358 		{
   359 #ifdef USE_SYMBIAN_PRM
   359 #ifdef USE_SYMBIAN_PRM
   360 		// Register with the power resource manager
   360 		// Register with the power resource manager
   361 		_LIT( KName, "serkey" );
   361 		_LIT( KName, "serkey" );
   362 		r = PowerResourceManager::RegisterClient( iPrmClientId, KName );
   362 		r = PowerResourceManager::RegisterClient( iPrmClientId, KName );
   363 		__KTRACE_OPT(KBOOT,Kern::Printf("+TSerialKeyboardl::Create:PRM client ID=%x, err=%d", iPrmClientId, r));
   363 		__KTRACE_OPT(KEXTENSION,Kern::Printf("+TSerialKeyboardl::Create:PRM client ID=%x, err=%d", iPrmClientId, r));
   364 		if( r != KErrNone )
   364 		if( r != KErrNone )
   365 			{
   365 			{
   366 			return r;
   366 			return r;
   367 			}
   367 			}
   368 #endif
   368 #endif
   371 		Prcm::SetClockState(iUart.PrcmFunctionClk(), Prcm::EClkOn);
   371 		Prcm::SetClockState(iUart.PrcmFunctionClk(), Prcm::EClkOn);
   372 
   372 
   373  		r = Interrupt::Bind( iUart.InterruptId(), UartIsr, this );
   373  		r = Interrupt::Bind( iUart.InterruptId(), UartIsr, this );
   374 		if ( r < 0 )
   374 		if ( r < 0 )
   375  			{
   375  			{
   376  			Kern::Printf("TSerialKeyboard Bind r=%d", r);
   376  			__KTRACE_OPT(KBOOT,Kern::Printf("TSerialKeyboard Bind r=%d", r));
   377 			return r;
   377 			return r;
   378  			}
   378  			}
   379 
   379 
       
   380 		__KTRACE_OPT(KEXTENSION,Kern::Printf("+TSerialKeyboard::Create bound to interrupt" ));
   380 #ifdef USE_SYMBIAN_PRM
   381 #ifdef USE_SYMBIAN_PRM
   381 		// Ask power resource manager to turn on clocks to the UART
   382 		// Ask power resource manager to turn on clocks to the UART
   382 		// (this could take some time but we're not in any hurry)
   383 		// (this could take some time but we're not in any hurry)
   383 		r = PowerResourceManager::ChangeResourceState( iPrmClientId, iUart.PrmFunctionClk(), Prcm::EClkOn );
   384 		r = PowerResourceManager::ChangeResourceState( iPrmClientId, iUart.PrmFunctionClk(), Prcm::EClkOn );
   384 		if( r == KErrNone )
   385 		if( r == KErrNone )