Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

How to set up UART2 in J990

58 bytes added, 15:55, 26 January 2012
no edit summary
= Third way =
Third way: configure kernel sources. Configuration will be permanent. There are many ways to edit source code, for but this tutorial is focused for igep0020 RC. Don't use the next params in igep.ini file:<br>
buddy=igep0022
'''Disable TWL4030 PCM voice interface:'''
Default kernel&nbsp; has disabled TWL4030 PCM voice interface output pins to high impedance, otherwise this module forces the level of mcbsp3_fsx(uart2_rx) and mcbsp3_clkx(uart2_tx) pins. To make sure, go to [http://git.igep.es/?p=pub/scm/linux-omap-2.6.git;a=blob_plain;f=sound/soc/codecs/twl4030.c;hb=linux-2.6.35.y $(kernel path)/sound/soc/codecs/twl4030.c] file already read: <br>
<pre> 0x04, /* REG_VOICE_IF (0xF) */
</pre>
'''Disable bluetooth:'''
Go to[http://git.igep.es/?p=pub/scm/linux-omap-2.6.git;a=blob_plain;f=arch/arm/mach-omap2/board-igep0020.c;hb=refs/heads/linux-2.6.35.y $(kernel path)/arch/arm/mach-omap2/board-igep0020.c] and search next line:
<pre> else if (hwrev == IGEP2_BOARD_HWREV_C)
igep00x0_wifi_bt_init(IGEP2_RC_GPIO_WIFI_NPD,
IGEP2_RC_GPIO_WIFI_NRESET, IGEP2_RC_GPIO_BT_NRESET,
!opt); </pre>
"igep00x0_wifi_bt_init" function initializes WIFI and Bluetooth peripherals. "opt" variable is used for disable Bluetooth in some cases: enabled (opt!=0) or not disabled (opt==0). For example you can disable permanently it replacing "opt" by 1:
<pre> else if (hwrev == IGEP2_BOARD_HWREV_C)
igep00x0_wifi_bt_init(IGEP2_RC_GPIO_WIFI_NPD,
'''Disable UART2 default configuration:'''
Go to[http://git.igep.es/?p=pub/scm/linux-omap-2.6.git;a=blob_plain;f=arch/arm/mach-omap2/board-igep0020.c;hb=refs/heads/linux-2.6.35.y $(kernel path)/arch/arm/mach-omap2/board-igep0020.c] and search "static struct omap_board_mux board_mux[] __initdata". Remove the following linesfields:
<pre> OMAP3_MUX(UART2_TX, OMAP_MUX_MODE0 | OMAP_PIN_OUTPUT),
OMAP3_MUX(UART2_RX, OMAP_MUX_MODE0 | OMAP_PIN_INPUT), </pre>
Add the following lines fields at the same position:
<pre> OMAP3_MUX(UART2_TX, OMAP_MUX_MODE7 | OMAP_PIN_INPUT),
OMAP3_MUX(UART2_RX, OMAP_MUX_MODE7 | OMAP_PIN_INPUT),
'''Enable UART2 in J990:'''
Go to[http://git.igep.es/?p=pub/scm/linux-omap-2.6.git;a=blob_plain;f=arch/arm/mach-omap2/board-igep0020.c;hb=refs/heads/linux-2.6.35.y $(kernel path)/arch/arm/mach-omap2/board-igep0020.c]. Add the following lines to and search "static struct omap_board_mux board_mux[] __initdata" . Remove the following fields below <br> "OMAP3_MUX(UART2_CTS, OMAP_MUX_MODE7 | OMAP_PIN_INPUT), " :&nbsp;
<pre> OMAP3_MUX(MCBSP3_DR, OMAP_MUX_MODE1 | OMAP_PIN_INPUT),
OMAP3_MUX(MCBSP3_DX, OMAP_MUX_MODE1 | OMAP_PIN_INPUT),
4,199
edits