|
@@ -1836,3 +1836,89 @@ static struct omap_hwmod am33xx_tptc0_hwmod = {
|
|
|
/* tptc1 */
|
|
|
static struct omap_hwmod_irq_info am33xx_tptc1_irqs[] = {
|
|
|
{ .irq = 113 + OMAP_INTC_START, },
|
|
|
+ { .irq = -1 },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod am33xx_tptc1_hwmod = {
|
|
|
+ .name = "tptc1",
|
|
|
+ .class = &am33xx_tptc_hwmod_class,
|
|
|
+ .clkdm_name = "l3_clkdm",
|
|
|
+ .mpu_irqs = am33xx_tptc1_irqs,
|
|
|
+ .flags = (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),
|
|
|
+ .main_clk = "l3_gclk",
|
|
|
+ .prcm = {
|
|
|
+ .omap4 = {
|
|
|
+ .clkctrl_offs = AM33XX_CM_PER_TPTC1_CLKCTRL_OFFSET,
|
|
|
+ .modulemode = MODULEMODE_SWCTRL,
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+/* tptc2 */
|
|
|
+static struct omap_hwmod_irq_info am33xx_tptc2_irqs[] = {
|
|
|
+ { .irq = 114 + OMAP_INTC_START, },
|
|
|
+ { .irq = -1 },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod am33xx_tptc2_hwmod = {
|
|
|
+ .name = "tptc2",
|
|
|
+ .class = &am33xx_tptc_hwmod_class,
|
|
|
+ .clkdm_name = "l3_clkdm",
|
|
|
+ .mpu_irqs = am33xx_tptc2_irqs,
|
|
|
+ .flags = (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),
|
|
|
+ .main_clk = "l3_gclk",
|
|
|
+ .prcm = {
|
|
|
+ .omap4 = {
|
|
|
+ .clkctrl_offs = AM33XX_CM_PER_TPTC2_CLKCTRL_OFFSET,
|
|
|
+ .modulemode = MODULEMODE_SWCTRL,
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+/* 'uart' class */
|
|
|
+static struct omap_hwmod_class_sysconfig uart_sysc = {
|
|
|
+ .rev_offs = 0x50,
|
|
|
+ .sysc_offs = 0x54,
|
|
|
+ .syss_offs = 0x58,
|
|
|
+ .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_ENAWAKEUP |
|
|
|
+ SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
|
|
|
+ .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
|
|
|
+ SIDLE_SMART_WKUP),
|
|
|
+ .sysc_fields = &omap_hwmod_sysc_type1,
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_class uart_class = {
|
|
|
+ .name = "uart",
|
|
|
+ .sysc = &uart_sysc,
|
|
|
+};
|
|
|
+
|
|
|
+/* uart1 */
|
|
|
+static struct omap_hwmod_dma_info uart1_edma_reqs[] = {
|
|
|
+ { .name = "tx", .dma_req = 26, },
|
|
|
+ { .name = "rx", .dma_req = 27, },
|
|
|
+ { .dma_req = -1 }
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_irq_info am33xx_uart1_irqs[] = {
|
|
|
+ { .irq = 72 + OMAP_INTC_START, },
|
|
|
+ { .irq = -1 },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod am33xx_uart1_hwmod = {
|
|
|
+ .name = "uart1",
|
|
|
+ .class = &uart_class,
|
|
|
+ .clkdm_name = "l4_wkup_clkdm",
|
|
|
+ .mpu_irqs = am33xx_uart1_irqs,
|
|
|
+ .sdma_reqs = uart1_edma_reqs,
|
|
|
+ .main_clk = "dpll_per_m2_div4_wkupdm_ck",
|
|
|
+ .prcm = {
|
|
|
+ .omap4 = {
|
|
|
+ .clkctrl_offs = AM33XX_CM_WKUP_UART0_CLKCTRL_OFFSET,
|
|
|
+ .modulemode = MODULEMODE_SWCTRL,
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_irq_info am33xx_uart2_irqs[] = {
|
|
|
+ { .irq = 73 + OMAP_INTC_START, },
|
|
|
+ { .irq = -1 },
|