Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

Mux instructions

88 bytes added, 19:30, 13 February 2013
Overview
= Notes Overview =
This wiki page has more detailed information about mux on IGEPv2. <br> Read general [[Mux configuration|this 'Mux configuration' page]] before use this wikiit.This article contains: <br>  = Overview =
This wiki explained more detailed how*How-to configure mux<br> disable some external peripherals to avoid interferences *Some detailed examples.
= Disable Peripherals =
Power down (active low). In the powerdown state, only the digital I/O buffers and I2C interface remain active. A high level selects the normal operating mode. A low level selects the powerdown mode.<br>
It was tested using alternate peripherals like UARTs and GPIOs. Caution, in powerdown mode, pads aren't in safe mode (high impedance).
{| cellspacing="1" cellpadding="1" border="1" align="center" width="200"
Configure kernel sources. Configuration will be permanent. There are many ways to edit source code, this method is focused for igep0020 RC without igep0022 support. <br> 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=db3cb47adf10504d3847d54927de50b2fa94c008 $(kernel path)/arch/arm/mach-omap2/board-igep0020.c] and search next line: <br>
<pre> static inline void igep0020_display_init(void)
static int igep0020_enable_dvi(struct omap_dss_device *dssdev)
{
if ((gpio_request(GPIO_DVI_PUP, "DVI PUP") == 0) &amp;&amp; (gpio_direction_output(GPIO_DVI_PUP, 1) == 0)) gpio_export(GPIO_DVI_PUP, 0); else pr_err("IGEP: Could not obtain gpio DVI PUP\n");  igep00x0_dvi_device.platform_enable = igep0020_enable_dvi; igep00x0_dvi_device.platform_disable = igep0020_disable_dvi;
platform_device_register(&amp;igep0020_dss_device)return 0;
}
</pre>
"static inline void igep0020_display_init(void)int igep0020_enable_dvi" initialize displayDVI. Edit to disable it: <pre>static inline void igep0020_display_initint igep0020_enable_dvi(voidstruct omap_dss_device *dssdev)
{
if ((gpio_request(GPIO_DVI_PUP, "DVI PUP") == 0) &amp;&amp; (gpio_direction_output(GPIO_DVI_PUP, 0) == 0)) gpio_export(GPIO_DVI_PUP, 0); else pr_err("IGEP: Could not obtain gpio DVI PUP\n");
igep00x0_dvi_device.platform_enable = igep0020_enable_dvi; igep00x0_dvi_device.platform_disable = igep0020_disable_dvi;  platform_device_register(&amp;igep0020_dss_device)return 0;
}
</pre>
'''Compile kernel source code'''
Use this [[Linux Kernel 2.6.35.y|tutorial]] (Kernel) and this [http://labs.igep.es/index.php/The_IGEP_X-loader other] (IGEPxloader) to install Linaro Headless (or Poky) with your custom kernel in SD card.&nbsp; You can compile the IGEPxloader, but is not necessary.<br>
= Edit mux =
 
Here you can found some detailed examples to configure mux. You can add more.
=== UART1 in J960 ===
=== UART3 in J960 ===
Edit igep.ini to disable serial debug, comment next linelines:
<pre>; Setup the Kernel console params
;console=ttyO2,115200n8;console=ttyS2,115200n8 ; Enable early printk;earlyprintk=serial,tty02,115200;earlyprintk=serial,ttyS2,115200 </pre>  Poky linux starts an user terminal at UART3, You must disable it to avoid interferences. Comment next lines in /etc/inittab: <pre># Normally not reached, but fallthrough in case of emergency.#z6:6:respawn:/sbin/sulogin#S:2345:respawn:/sbin/getty 115200 ttyO2# /sbin/getty invocations for the runlevels.</pre>  You can test new configuration using [[How to use UARTs|this tutorial]]<br>
=== GPIO in J990 ===
Edit&nbsp; [http://git.igep.es/?p=pub/scm/linux-omap-2.6.git;a=blob_plain;f=arch/arm/mach-omap2/board-igep00x0.c;hb=e620ef8e577d73681f16ab80471332286c1b9fd5 $(kernel path)/arch/arm/mach-omap2/board-igep00x0.c]&nbsp; or [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] to configure GPIO via Kernel source, example [[How to set up UART2 in J990#Third_way|here]].<br>
'''Under construction'''  [[Category:CommunicationsPeripherals]]
0
edits