omap3530/omap3530_drivers/spi/psl_init.cpp
branchBeagle_BSP_dev
changeset 84 09e266454dcf
parent 77 e5fd00cbb70a
--- a/omap3530/omap3530_drivers/spi/psl_init.cpp	Wed Sep 22 23:37:20 2010 +0100
+++ b/omap3530/omap3530_drivers/spi/psl_init.cpp	Tue Sep 28 02:37:35 2010 +0100
@@ -50,8 +50,8 @@
 		// The first argument repesents the PSL-assigned channel number
 		// The second argument, DIicBusChannel::ESpi, should be replaced with the relevant bus type for the PSL
 //		chan = DSpiMasterBeagle::New(i, DIicBusChannel::ESpi, DIicBusChannel::EFullDuplex);
-		if((TInt)KIicPslNumOfChannels == 1)// TODO: hack - only for the time being - enable channel 3
-			chan = DSpiMasterBeagle::New(2, DIicBusChannel::ESpi, DIicBusChannel::EFullDuplex);
+		if((TInt)KIicPslNumOfChannels == 2)// TODO: hack - only for the time being - enable channel 3
+			chan = DSpiMasterBeagle::New(i+2, DIicBusChannel::ESpi, DIicBusChannel::EFullDuplex);
 		else
 			{
 			Kern::Printf("remove hack from here: %s,line %d", __FILE__, __LINE__);