arm:lpc32xx:Fix I2C communication to ISP1301 master
authorRyanBryngelson <RyanBryngelson@xxx.com>
Mon, 26 Mar 2012 11:12:59 +0000 (11:12 +0000)
committerBangaragiri G <bangaragiri.g@nxp.com>
Mon, 26 Mar 2012 11:12:59 +0000 (11:12 +0000)
commit3efb93fe0c5af5983bed0580ac570395b59ce086
treedf0958c862c4700e7280eabca5670836b947bc9c
parentbfdee4358e20240c5d0f4a8272b22ac6cf1713c4
arm:lpc32xx:Fix I2C communication to ISP1301

When transmitting a byte via I2C? bits 8 and 9 issue start and stop
conditions respectively. The function that writes to configuration
registers in the ISP1301 OTG PHY doesn't mask off invalid data bits
(bits 8 through 31) so start/stop conditions are being mistakenly
issued. Although the ISP1301 seemingly tolerated this behavior the
"functionally equivalent" STOTG04E did not.

The fix is simply to mask off the invalid data from register and
data values

Signed-off-by: Bangaragiri G <bangaragiri.g@nxp.com>
board/nxp/ea3250/ea3250.c