|
@@ -95,6 +95,54 @@ extern struct omap_hwmod_sysc_fields omap_hwmod_sysc_type3;
|
|
|
#define MODULEMODE_HWCTRL 1
|
|
|
#define MODULEMODE_SWCTRL 2
|
|
|
|
|
|
+#define DEBUG_OMAP2UART1_FLAGS 0
|
|
|
+#define DEBUG_OMAP2UART2_FLAGS 0
|
|
|
+#define DEBUG_OMAP2UART3_FLAGS 0
|
|
|
+#define DEBUG_OMAP3UART3_FLAGS 0
|
|
|
+#define DEBUG_OMAP3UART4_FLAGS 0
|
|
|
+#define DEBUG_OMAP4UART3_FLAGS 0
|
|
|
+#define DEBUG_OMAP4UART4_FLAGS 0
|
|
|
+#define DEBUG_TI81XXUART1_FLAGS 0
|
|
|
+#define DEBUG_TI81XXUART2_FLAGS 0
|
|
|
+#define DEBUG_TI81XXUART3_FLAGS 0
|
|
|
+#define DEBUG_AM33XXUART1_FLAGS 0
|
|
|
+
|
|
|
+#define DEBUG_OMAPUART_FLAGS (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET)
|
|
|
+
|
|
|
+#if defined(CONFIG_DEBUG_OMAP2UART1)
|
|
|
+#undef DEBUG_OMAP2UART1_FLAGS
|
|
|
+#define DEBUG_OMAP2UART1_FLAGS DEBUG_OMAPUART_FLAGS
|
|
|
+#elif defined(CONFIG_DEBUG_OMAP2UART2)
|
|
|
+#undef DEBUG_OMAP2UART2_FLAGS
|
|
|
+#define DEBUG_OMAP2UART2_FLAGS DEBUG_OMAPUART_FLAGS
|
|
|
+#elif defined(CONFIG_DEBUG_OMAP2UART3)
|
|
|
+#undef DEBUG_OMAP2UART3_FLAGS
|
|
|
+#define DEBUG_OMAP2UART3_FLAGS DEBUG_OMAPUART_FLAGS
|
|
|
+#elif defined(CONFIG_DEBUG_OMAP3UART3)
|
|
|
+#undef DEBUG_OMAP3UART3_FLAGS
|
|
|
+#define DEBUG_OMAP3UART3_FLAGS DEBUG_OMAPUART_FLAGS
|
|
|
+#elif defined(CONFIG_DEBUG_OMAP3UART4)
|
|
|
+#undef DEBUG_OMAP3UART4_FLAGS
|
|
|
+#define DEBUG_OMAP3UART4_FLAGS DEBUG_OMAPUART_FLAGS
|
|
|
+#elif defined(CONFIG_DEBUG_OMAP4UART3)
|
|
|
+#undef DEBUG_OMAP4UART3_FLAGS
|
|
|
+#define DEBUG_OMAP4UART3_FLAGS DEBUG_OMAPUART_FLAGS
|
|
|
+#elif defined(CONFIG_DEBUG_OMAP4UART4)
|
|
|
+#undef DEBUG_OMAP4UART4_FLAGS
|
|
|
+#define DEBUG_OMAP4UART4_FLAGS DEBUG_OMAPUART_FLAGS
|
|
|
+#elif defined(CONFIG_DEBUG_TI81XXUART1)
|
|
|
+#undef DEBUG_TI81XXUART1_FLAGS
|
|
|
+#define DEBUG_TI81XXUART1_FLAGS DEBUG_OMAPUART_FLAGS
|
|
|
+#elif defined(CONFIG_DEBUG_TI81XXUART2)
|
|
|
+#undef DEBUG_TI81XXUART2_FLAGS
|
|
|
+#define DEBUG_TI81XXUART2_FLAGS DEBUG_OMAPUART_FLAGS
|
|
|
+#elif defined(CONFIG_DEBUG_TI81XXUART3)
|
|
|
+#undef DEBUG_TI81XXUART3_FLAGS
|
|
|
+#define DEBUG_TI81XXUART3_FLAGS DEBUG_OMAPUART_FLAGS
|
|
|
+#elif defined(CONFIG_DEBUG_AM33XXUART1)
|
|
|
+#undef DEBUG_AM33XXUART1_FLAGS
|
|
|
+#define DEBUG_AM33XXUART1_FLAGS DEBUG_OMAPUART_FLAGS
|
|
|
+#endif
|
|
|
|
|
|
/**
|
|
|
* struct omap_hwmod_mux_info - hwmod specific mux configuration
|