Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

How to set up UART2 in J990

342 bytes removed, 20:36, 25 January 2012
no edit summary
= First way<br> =
Fast ModeFirst way: the problem of this mode is has a issue, when your system reboot or halt shutdown you will need to configure again, but you configure four UART wires in J990. Using user space to configure mux and disable bluetooth. Default kernel&nbsp; has disabled TWL4030 PCM voice interface output pins to high impedance, otherwise this module forces the level of mcbsp3_fsx and mcbsp3_clkx pins. To make sure, go to ~/sound/soc/codecs/twl4030.c file already read: <br> <pre> 0x04, /* REG_VOICE_IF (0xF) */</pre>
=== Configure IGEP ===
Make sure that If you use a IGEPv2 Expansion is disabledBoard, go to igep.ini file: don't use modem for this tutorial<pre>;buddy=igep0022 </prebr>  
'''Disable Bluetooth:'''
Log Logging with root user via SSH or Serial cable.<br>
Go to /sys/kernel/debug/omap_mux/<br>
Set sdmmc2_dat5 to gpio137 (mode 4):
<pre>echo 0x004 &gt; sdmmc2_dat5 </pre>
Check Revise that:
<pre>root@localhost:/sys/kernel/debug/omap_mux# cat sdmmc2_dat5
name: sdmmc2_dat5.gpio_137 (0x48002166/0x136 = 0x0004), b ah3, t NA
Set gpio137 to low value to disable bluetooth:
<pre>echo 0 &gt; /sys/class/gpio/gpio137/value</pre>
Check Revise that:
<pre>root@localhost:/sys/class/gpio# cat /sys/class/gpio/gpio137/value
0
echo 0x007 &gt; uart2_rx
echo 0x007 &gt; uart2_tx </pre>
Check Revise that:
<pre>root@localhost:/sys/kernel/debug/omap_mux# cat uart2_cts
name: uart2_cts.safe_mode (0x48002174/0x144 = 0x0007), b ab26, t NA
echo 0x101 &gt; mcbsp3_fsx
echo 0x101 &gt; mcbsp3_dr </pre>
Check Revise that:
<pre>root@localhost:/sys/kernel/debug/omap_mux# cat mcbsp3_dx
name: mcbsp3_dx.uart2_cts (0x4800216c/0x13c = 0x0101), b af6, t NA
root@localhost:/sys/kernel/debug/omap_mux#
</pre>
Mode will be 1 (uart mode)
= Second way<br> =
4,199
edits