]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/commitdiff
Add Govind's changes to pdk platform lib for new HSR4/interconnect boards
authorFrank Livingston <frank-livingston@ti.com>
Fri, 9 Sep 2016 17:02:34 +0000 (12:02 -0500)
committerFrank Livingston <frank-livingston@ti.com>
Fri, 9 Sep 2016 17:02:34 +0000 (12:02 -0500)
pdk_k2g_1_0_1/packages/ti/platform/evmk2g/platform_lib/include/platform_audio.h
pdk_k2g_1_0_1/packages/ti/platform/evmk2g/platform_lib/src/platform.c
pdk_k2g_1_0_1/packages/ti/platform/evmk2g/platform_lib/src/platform_audio.c

index fdd3914935845204dd633be2fd2e82ddfd27221b..f339a0f3314e9121b1d37a283847558ff348997a 100644 (file)
 /** GPIO number for I2S Header HSR4's ~HMINT pin - GPIO port 0 */
 #define PLATFORM_AUDIO_HSR_HMINTz_GPIO      (105)
 
 /** GPIO number for I2S Header HSR4's ~HMINT pin - GPIO port 0 */
 #define PLATFORM_AUDIO_HSR_HMINTz_GPIO      (105)
 
+/** GPIO number for I2S Header HSR4's ~RESET pin - GPIO port 0 */
+#define PLATFORM_AUDIO_HSR_RESETz_GPIO      (104)
+
 /*@}*/  /* defgroup */
 
 /**
 /*@}*/  /* defgroup */
 
 /**
index 55ebcb9f69679d7e32016f564075cc48721b9b13..96a6cf0cf3478debf4c611f545b46df42f542357 100644 (file)
@@ -700,6 +700,10 @@ Platform_STATUS platform_init(platform_init_flags  * p_flags,
        //status = i2cProbe (0x0, 0x5C, 0x0000, pData, 0x2 );
 #endif
 
        //status = i2cProbe (0x0, 0x5C, 0x0000, pData, 0x2 );
 #endif
 
+    pinMuxSetMode(113, PADCONFIG_MUX_MODE_QUATERNARY);
+    gpioSetDirection(GPIO_PORT_0, PLATFORM_AUDIO_HSR_RESETz_GPIO, GPIO_OUT);
+    gpioSetOutput(GPIO_PORT_0, PLATFORM_AUDIO_HSR_RESETz_GPIO);
+
 #if (PLATFORM_I2C_IO_EXP_IN)
     /* Initialize IO expander */
     i2cIoExpanderInit();
 #if (PLATFORM_I2C_IO_EXP_IN)
     /* Initialize IO expander */
     i2cIoExpanderInit();
index 988ba84435ac2af4d2146d352e7b27c4940b8dda..2fa9737f6b988e237cc76fceb61abb48131cf465 100644 (file)
@@ -145,10 +145,14 @@ Platform_STATUS platformAudioInit(void)
        platform_delay(1000);
        gpioSetOutput(GPIO_PORT_1, PLATFORM_AUDIO_PCM1690_RST_GPIO);
 
        platform_delay(1000);
        gpioSetOutput(GPIO_PORT_1, PLATFORM_AUDIO_PCM1690_RST_GPIO);
 
-       /* Configure GPIO for McASP_CLK_SEL# - GPIO0 101 & PADCONFIG 110 */
+    /* Configure GPIO for HSR HDMI Signaling - GPIO0 104 (~RESET) & 105 (~HMINT) */
        pinMuxSetMode(114, PADCONFIG_MUX_MODE_QUATERNARY);
        gpioSetDirection(GPIO_PORT_0, PLATFORM_AUDIO_HSR_HMINTz_GPIO, GPIO_IN);
 
        pinMuxSetMode(114, PADCONFIG_MUX_MODE_QUATERNARY);
        gpioSetDirection(GPIO_PORT_0, PLATFORM_AUDIO_HSR_HMINTz_GPIO, GPIO_IN);
 
+    pinMuxSetMode(113, PADCONFIG_MUX_MODE_QUATERNARY);
+    gpioSetDirection(GPIO_PORT_0, PLATFORM_AUDIO_HSR_RESETz_GPIO, GPIO_OUT);
+    gpioSetOutput(GPIO_PORT_0, PLATFORM_AUDIO_HSR_RESETz_GPIO);
+
        /* Configure McASP AUXCLK source as AUDIO_OSCCLK  */
        hBootCfg->SERIALPORT_CLKCTL = 0;
        hBootCfg->OSC_CTL = 0x200;      //SW2:SW1 = 01 (15 - 30 MHz)
        /* Configure McASP AUXCLK source as AUDIO_OSCCLK  */
        hBootCfg->SERIALPORT_CLKCTL = 0;
        hBootCfg->OSC_CTL = 0x200;      //SW2:SW1 = 01 (15 - 30 MHz)