|
@@ -671,3 +671,106 @@ static struct omap_hwmod_irq_info am33xx_cpgmac0_irqs[] = {
|
|
};
|
|
};
|
|
|
|
|
|
static struct omap_hwmod am33xx_cpgmac0_hwmod = {
|
|
static struct omap_hwmod am33xx_cpgmac0_hwmod = {
|
|
|
|
+ .name = "cpgmac0",
|
|
|
|
+ .class = &am33xx_cpgmac0_hwmod_class,
|
|
|
|
+ .clkdm_name = "cpsw_125mhz_clkdm",
|
|
|
|
+ .flags = (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),
|
|
|
|
+ .mpu_irqs = am33xx_cpgmac0_irqs,
|
|
|
|
+ .main_clk = "cpsw_125mhz_gclk",
|
|
|
|
+ .prcm = {
|
|
|
|
+ .omap4 = {
|
|
|
|
+ .clkctrl_offs = AM33XX_CM_PER_CPGMAC0_CLKCTRL_OFFSET,
|
|
|
|
+ .modulemode = MODULEMODE_SWCTRL,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+/*
|
|
|
|
+ * mdio class
|
|
|
|
+ */
|
|
|
|
+static struct omap_hwmod_class am33xx_mdio_hwmod_class = {
|
|
|
|
+ .name = "davinci_mdio",
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct omap_hwmod am33xx_mdio_hwmod = {
|
|
|
|
+ .name = "davinci_mdio",
|
|
|
|
+ .class = &am33xx_mdio_hwmod_class,
|
|
|
|
+ .clkdm_name = "cpsw_125mhz_clkdm",
|
|
|
|
+ .main_clk = "cpsw_125mhz_gclk",
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+/*
|
|
|
|
+ * dcan class
|
|
|
|
+ */
|
|
|
|
+static struct omap_hwmod_class am33xx_dcan_hwmod_class = {
|
|
|
|
+ .name = "d_can",
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+/* dcan0 */
|
|
|
|
+static struct omap_hwmod_irq_info am33xx_dcan0_irqs[] = {
|
|
|
|
+ { .name = "d_can_ms", .irq = 52 + OMAP_INTC_START, },
|
|
|
|
+ { .name = "d_can_mo", .irq = 53 + OMAP_INTC_START, },
|
|
|
|
+ { .irq = -1 },
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct omap_hwmod am33xx_dcan0_hwmod = {
|
|
|
|
+ .name = "d_can0",
|
|
|
|
+ .class = &am33xx_dcan_hwmod_class,
|
|
|
|
+ .clkdm_name = "l4ls_clkdm",
|
|
|
|
+ .mpu_irqs = am33xx_dcan0_irqs,
|
|
|
|
+ .main_clk = "dcan0_fck",
|
|
|
|
+ .prcm = {
|
|
|
|
+ .omap4 = {
|
|
|
|
+ .clkctrl_offs = AM33XX_CM_PER_DCAN0_CLKCTRL_OFFSET,
|
|
|
|
+ .modulemode = MODULEMODE_SWCTRL,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+/* dcan1 */
|
|
|
|
+static struct omap_hwmod_irq_info am33xx_dcan1_irqs[] = {
|
|
|
|
+ { .name = "d_can_ms", .irq = 55 + OMAP_INTC_START, },
|
|
|
|
+ { .name = "d_can_mo", .irq = 56 + OMAP_INTC_START, },
|
|
|
|
+ { .irq = -1 },
|
|
|
|
+};
|
|
|
|
+static struct omap_hwmod am33xx_dcan1_hwmod = {
|
|
|
|
+ .name = "d_can1",
|
|
|
|
+ .class = &am33xx_dcan_hwmod_class,
|
|
|
|
+ .clkdm_name = "l4ls_clkdm",
|
|
|
|
+ .mpu_irqs = am33xx_dcan1_irqs,
|
|
|
|
+ .main_clk = "dcan1_fck",
|
|
|
|
+ .prcm = {
|
|
|
|
+ .omap4 = {
|
|
|
|
+ .clkctrl_offs = AM33XX_CM_PER_DCAN1_CLKCTRL_OFFSET,
|
|
|
|
+ .modulemode = MODULEMODE_SWCTRL,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+/* elm */
|
|
|
|
+static struct omap_hwmod_class_sysconfig am33xx_elm_sysc = {
|
|
|
|
+ .rev_offs = 0x0000,
|
|
|
|
+ .sysc_offs = 0x0010,
|
|
|
|
+ .syss_offs = 0x0014,
|
|
|
|
+ .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
|
|
|
|
+ SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
|
|
|
|
+ SYSS_HAS_RESET_STATUS),
|
|
|
|
+ .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
|
|
|
|
+ .sysc_fields = &omap_hwmod_sysc_type1,
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct omap_hwmod_class am33xx_elm_hwmod_class = {
|
|
|
|
+ .name = "elm",
|
|
|
|
+ .sysc = &am33xx_elm_sysc,
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct omap_hwmod_irq_info am33xx_elm_irqs[] = {
|
|
|
|
+ { .irq = 4 + OMAP_INTC_START, },
|
|
|
|
+ { .irq = -1 },
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct omap_hwmod am33xx_elm_hwmod = {
|
|
|
|
+ .name = "elm",
|
|
|
|
+ .class = &am33xx_elm_hwmod_class,
|
|
|
|
+ .clkdm_name = "l4ls_clkdm",
|
|
|
|
+ .mpu_irqs = am33xx_elm_irqs,
|