omap3530/omap3530_drivers/spi/omap3530_spi.inl
branchBeagle_BSP_dev
changeset 85 d93b485c1325
parent 84 09e266454dcf
child 112 fdfa12d9a47a
--- a/omap3530/omap3530_drivers/spi/omap3530_spi.inl	Tue Sep 28 02:37:35 2010 +0100
+++ b/omap3530/omap3530_drivers/spi/omap3530_spi.inl	Thu Oct 07 00:37:22 2010 +0100
@@ -26,7 +26,7 @@
 	__ASSERT_DEBUG( aModule != 2 ? !aPinSetId : ETrue, Kern::Fault("omap3530_spi.inl, line: ", __LINE__)); // only channel 3 supports other pin configurations
 
 	// set the pin to the opposite to the currently active CS mode..
-	const TPinConfig& csConf = ModulePinConfig[aModule].iCs[aChannel];
+	const TPinConfig& csConf = ModulePinConfig[aModule + aPinSetId].iCs[aChannel];
 	__ASSERT_DEBUG(csConf.iAddress, Kern::Fault("omap3530_spi.inl, line: ", __LINE__)); // don't try to use non-existing CS!
 
 	// now switch the pin mode..(making sure it is at the proper level before that)