|
@@ -532,3 +532,142 @@ static struct omap_hwmod_irq_info am33xx_aes0_irqs[] = {
|
|
|
|
|
|
static struct omap_hwmod am33xx_aes0_hwmod = {
|
|
|
.name = "aes0",
|
|
|
+ .class = &am33xx_aes_hwmod_class,
|
|
|
+ .clkdm_name = "l3_clkdm",
|
|
|
+ .mpu_irqs = am33xx_aes0_irqs,
|
|
|
+ .main_clk = "l3_gclk",
|
|
|
+ .prcm = {
|
|
|
+ .omap4 = {
|
|
|
+ .clkctrl_offs = AM33XX_CM_PER_AES0_CLKCTRL_OFFSET,
|
|
|
+ .modulemode = MODULEMODE_SWCTRL,
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+/* sha0 */
|
|
|
+static struct omap_hwmod_class am33xx_sha0_hwmod_class = {
|
|
|
+ .name = "sha0",
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_irq_info am33xx_sha0_irqs[] = {
|
|
|
+ { .irq = 108 + OMAP_INTC_START, },
|
|
|
+ { .irq = -1 },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod am33xx_sha0_hwmod = {
|
|
|
+ .name = "sha0",
|
|
|
+ .class = &am33xx_sha0_hwmod_class,
|
|
|
+ .clkdm_name = "l3_clkdm",
|
|
|
+ .mpu_irqs = am33xx_sha0_irqs,
|
|
|
+ .main_clk = "l3_gclk",
|
|
|
+ .prcm = {
|
|
|
+ .omap4 = {
|
|
|
+ .clkctrl_offs = AM33XX_CM_PER_SHA0_CLKCTRL_OFFSET,
|
|
|
+ .modulemode = MODULEMODE_SWCTRL,
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+#endif
|
|
|
+
|
|
|
+/* 'smartreflex' class */
|
|
|
+static struct omap_hwmod_class am33xx_smartreflex_hwmod_class = {
|
|
|
+ .name = "smartreflex",
|
|
|
+};
|
|
|
+
|
|
|
+/* smartreflex0 */
|
|
|
+static struct omap_hwmod_irq_info am33xx_smartreflex0_irqs[] = {
|
|
|
+ { .irq = 120 + OMAP_INTC_START, },
|
|
|
+ { .irq = -1 },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod am33xx_smartreflex0_hwmod = {
|
|
|
+ .name = "smartreflex0",
|
|
|
+ .class = &am33xx_smartreflex_hwmod_class,
|
|
|
+ .clkdm_name = "l4_wkup_clkdm",
|
|
|
+ .mpu_irqs = am33xx_smartreflex0_irqs,
|
|
|
+ .main_clk = "smartreflex0_fck",
|
|
|
+ .prcm = {
|
|
|
+ .omap4 = {
|
|
|
+ .clkctrl_offs = AM33XX_CM_WKUP_SMARTREFLEX0_CLKCTRL_OFFSET,
|
|
|
+ .modulemode = MODULEMODE_SWCTRL,
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+/* smartreflex1 */
|
|
|
+static struct omap_hwmod_irq_info am33xx_smartreflex1_irqs[] = {
|
|
|
+ { .irq = 121 + OMAP_INTC_START, },
|
|
|
+ { .irq = -1 },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod am33xx_smartreflex1_hwmod = {
|
|
|
+ .name = "smartreflex1",
|
|
|
+ .class = &am33xx_smartreflex_hwmod_class,
|
|
|
+ .clkdm_name = "l4_wkup_clkdm",
|
|
|
+ .mpu_irqs = am33xx_smartreflex1_irqs,
|
|
|
+ .main_clk = "smartreflex1_fck",
|
|
|
+ .prcm = {
|
|
|
+ .omap4 = {
|
|
|
+ .clkctrl_offs = AM33XX_CM_WKUP_SMARTREFLEX1_CLKCTRL_OFFSET,
|
|
|
+ .modulemode = MODULEMODE_SWCTRL,
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+/*
|
|
|
+ * 'control' module class
|
|
|
+ */
|
|
|
+static struct omap_hwmod_class am33xx_control_hwmod_class = {
|
|
|
+ .name = "control",
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_irq_info am33xx_control_irqs[] = {
|
|
|
+ { .irq = 8 + OMAP_INTC_START, },
|
|
|
+ { .irq = -1 },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod am33xx_control_hwmod = {
|
|
|
+ .name = "control",
|
|
|
+ .class = &am33xx_control_hwmod_class,
|
|
|
+ .clkdm_name = "l4_wkup_clkdm",
|
|
|
+ .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
|
|
|
+ .mpu_irqs = am33xx_control_irqs,
|
|
|
+ .main_clk = "dpll_core_m4_div2_ck",
|
|
|
+ .prcm = {
|
|
|
+ .omap4 = {
|
|
|
+ .clkctrl_offs = AM33XX_CM_WKUP_CONTROL_CLKCTRL_OFFSET,
|
|
|
+ .modulemode = MODULEMODE_SWCTRL,
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+/*
|
|
|
+ * 'cpgmac' class
|
|
|
+ * cpsw/cpgmac sub system
|
|
|
+ */
|
|
|
+static struct omap_hwmod_class_sysconfig am33xx_cpgmac_sysc = {
|
|
|
+ .rev_offs = 0x0,
|
|
|
+ .sysc_offs = 0x8,
|
|
|
+ .syss_offs = 0x4,
|
|
|
+ .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE |
|
|
|
+ SYSS_HAS_RESET_STATUS),
|
|
|
+ .idlemodes = (SIDLE_FORCE | SIDLE_NO | MSTANDBY_FORCE |
|
|
|
+ MSTANDBY_NO),
|
|
|
+ .sysc_fields = &omap_hwmod_sysc_type3,
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_class am33xx_cpgmac0_hwmod_class = {
|
|
|
+ .name = "cpgmac0",
|
|
|
+ .sysc = &am33xx_cpgmac_sysc,
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_irq_info am33xx_cpgmac0_irqs[] = {
|
|
|
+ { .name = "c0_rx_thresh_pend", .irq = 40 + OMAP_INTC_START, },
|
|
|
+ { .name = "c0_rx_pend", .irq = 41 + OMAP_INTC_START, },
|
|
|
+ { .name = "c0_tx_pend", .irq = 42 + OMAP_INTC_START, },
|
|
|
+ { .name = "c0_misc_pend", .irq = 43 + OMAP_INTC_START, },
|
|
|
+ { .irq = -1 },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod am33xx_cpgmac0_hwmod = {
|