comparison src/cs/drivers/drv_core/armio/armio.c @ 680:ee3ac8c617cb

armio.c: set GPIO2 output high initially On TI-canonical platforms GPIO2 is DCD modem control output. In TI's original code the AI_InitIOConfig() function called from Init_Target() would configure GPIO2 as an output and set the initial output value to low, but then the init code in uartfax.c called from Init_Serial_Flows() would immediately change it to high, corresponding to DCD not asserted. The result is a momentary asserted-state glitch on the DCD output. The present change eliminates this glitch, setting DCD output to not-asserted initially like it should be.
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 25 Jun 2020 03:17:43 +0000
parents 91d9f8506420
children 140a0d24a64c
comparison
equal deleted inserted replaced
679:52ee171ff5e4 680:ee3ac8c617cb
265 // On the FCDEV3B it also controls the audio amplifier. 265 // On the FCDEV3B it also controls the audio amplifier.
266 // On the GTM900 GPIOs 0 and 1 are RI and DSR outputs, respectively. 266 // On the GTM900 GPIOs 0 and 1 are RI and DSR outputs, respectively.
267 // For targets other than GTM900, we enable the audio amplifier 267 // For targets other than GTM900, we enable the audio amplifier
268 // if we are in an MMI!=0 build - for ACI builds use the AT@SPKR command. 268 // if we are in an MMI!=0 build - for ACI builds use the AT@SPKR command.
269 #ifdef CONFIG_TARGET_GTM900 269 #ifdef CONFIG_TARGET_GTM900
270 *((volatile SYS_UWORD16 *) ARMIO_OUT) = 0x3F01; 270 *((volatile SYS_UWORD16 *) ARMIO_OUT) = 0x3F05;
271 #elif (MMI != 0) || defined(CONFIG_GPIO1_HIGH) 271 #elif (MMI != 0) || defined(CONFIG_GPIO1_HIGH)
272 *((volatile SYS_UWORD16 *) ARMIO_OUT) = 0x3F02; 272 *((volatile SYS_UWORD16 *) ARMIO_OUT) = 0x3F06;
273 #else 273 #else
274 *((volatile SYS_UWORD16 *) ARMIO_OUT) = 0x3F00; 274 *((volatile SYS_UWORD16 *) ARMIO_OUT) = 0x3F04;
275 #endif 275 #endif
276 276
277 // ARMIO_CNTL_REG register configuration : 277 // ARMIO_CNTL_REG register configuration :
278 // set IOs 1,2,5,7,9,14 and 15 as ouputs. 278 // set IOs 1,2,5,7,9,14 and 15 as ouputs.
279 // all others are FreeCalypso additions 279 // all others are FreeCalypso additions