@@ -69,6 +69,13 @@ static void nxp_mcimx7_gpio_config(void)
69
69
CCM_ControlGate (CCM , ccmCcgrGateGpio2 , ccmClockNeededRunWait );
70
70
#endif /* CONFIG_GPIO_IMX_PORT_2 */
71
71
72
+
73
+ #ifdef CONFIG_GPIO_IMX_PORT_7
74
+ RDC_SetPdapAccess (RDC , rdcPdapGpio7 , GPIO_7_RDC , false, false);
75
+ /* Enable gpio clock gate */
76
+ CCM_ControlGate (CCM , ccmCcgrGateGpio7 , ccmClockNeededRunWait );
77
+ #endif /* CONFIG_GPIO_IMX_PORT_2 */
78
+
72
79
}
73
80
#endif /* CONFIG_GPIO_IMX */
74
81
@@ -91,6 +98,20 @@ static void nxp_mcimx7_uart_config(void)
91
98
CCM_ControlGate (CCM , ccmCcgrGateUart2 , ccmClockNeededAll );
92
99
#endif /* #ifdef CONFIG_UART_IMX_UART_2 */
93
100
101
+ #ifdef CONFIG_UART_IMX_UART_6
102
+ /* We need to grasp board uart exclusively */
103
+ RDC_SetPdapAccess (RDC , rdcPdapUart6 , UART_6_RDC , false, false);
104
+ /* Select clock derived from OSC clock(24M) */
105
+ CCM_UpdateRoot (CCM , ccmRootUart6 , ccmRootmuxUartOsc24m , 0 , 0 );
106
+ /* Enable uart clock */
107
+ CCM_EnableRoot (CCM , ccmRootUart6 );
108
+ /*
109
+ * IC Limitation
110
+ * M4 stop will cause A7 UART lose functionality
111
+ * So we need UART clock all the time
112
+ */
113
+ CCM_ControlGate (CCM , ccmCcgrGateUart6 , ccmClockNeededAll );
114
+ #endif /* #ifdef CONFIG_UART_IMX_UART_6 */
94
115
}
95
116
#endif /* CONFIG_UART_IMX */
96
117
0 commit comments