|
@@ -0,0 +1,124 @@
|
|
|
|
+/*
|
|
|
|
+ * omap_hwmod_33xx_data.c: Hardware modules present on the AM33XX chips
|
|
|
|
+ *
|
|
|
|
+ * Copyright (C) {2012} Texas Instruments Incorporated - http://www.ti.com/
|
|
|
|
+ *
|
|
|
|
+ * This file is automatically generated from the AM33XX hardware databases.
|
|
|
|
+ * This program is free software; you can redistribute it and/or
|
|
|
|
+ * modify it under the terms of the GNU General Public License as
|
|
|
|
+ * published by the Free Software Foundation version 2.
|
|
|
|
+ *
|
|
|
|
+ * This program is distributed "as is" WITHOUT ANY WARRANTY of any
|
|
|
|
+ * kind, whether express or implied; without even the implied warranty
|
|
|
|
+ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
+ * GNU General Public License for more details.
|
|
|
|
+ */
|
|
|
|
+
|
|
|
|
+#include <linux/i2c-omap.h>
|
|
|
|
+
|
|
|
|
+#include "omap_hwmod.h"
|
|
|
|
+#include <linux/platform_data/gpio-omap.h>
|
|
|
|
+#include <linux/platform_data/spi-omap2-mcspi.h>
|
|
|
|
+
|
|
|
|
+#include "omap_hwmod_common_data.h"
|
|
|
|
+
|
|
|
|
+#include "control.h"
|
|
|
|
+#include "cm33xx.h"
|
|
|
|
+#include "prm33xx.h"
|
|
|
|
+#include "prm-regbits-33xx.h"
|
|
|
|
+#include "i2c.h"
|
|
|
|
+#include "mmc.h"
|
|
|
|
+
|
|
|
|
+/*
|
|
|
|
+ * IP blocks
|
|
|
|
+ */
|
|
|
|
+
|
|
|
|
+/*
|
|
|
|
+ * 'emif_fw' class
|
|
|
|
+ * instance(s): emif_fw
|
|
|
|
+ */
|
|
|
|
+static struct omap_hwmod_class am33xx_emif_fw_hwmod_class = {
|
|
|
|
+ .name = "emif_fw",
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+/* emif_fw */
|
|
|
|
+static struct omap_hwmod am33xx_emif_fw_hwmod = {
|
|
|
|
+ .name = "emif_fw",
|
|
|
|
+ .class = &am33xx_emif_fw_hwmod_class,
|
|
|
|
+ .clkdm_name = "l4fw_clkdm",
|
|
|
|
+ .main_clk = "l4fw_gclk",
|
|
|
|
+ .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
|
|
|
|
+ .prcm = {
|
|
|
|
+ .omap4 = {
|
|
|
|
+ .clkctrl_offs = AM33XX_CM_PER_EMIF_FW_CLKCTRL_OFFSET,
|
|
|
|
+ .modulemode = MODULEMODE_SWCTRL,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+/*
|
|
|
|
+ * 'emif' class
|
|
|
|
+ * instance(s): emif
|
|
|
|
+ */
|
|
|
|
+static struct omap_hwmod_class_sysconfig am33xx_emif_sysc = {
|
|
|
|
+ .rev_offs = 0x0000,
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct omap_hwmod_class am33xx_emif_hwmod_class = {
|
|
|
|
+ .name = "emif",
|
|
|
|
+ .sysc = &am33xx_emif_sysc,
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct omap_hwmod_irq_info am33xx_emif_irqs[] = {
|
|
|
|
+ { .name = "ddrerr0", .irq = 101 + OMAP_INTC_START, },
|
|
|
|
+ { .irq = -1 },
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+/* emif */
|
|
|
|
+static struct omap_hwmod am33xx_emif_hwmod = {
|
|
|
|
+ .name = "emif",
|
|
|
|
+ .class = &am33xx_emif_hwmod_class,
|
|
|
|
+ .clkdm_name = "l3_clkdm",
|
|
|
|
+ .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
|
|
|
|
+ .mpu_irqs = am33xx_emif_irqs,
|
|
|
|
+ .main_clk = "dpll_ddr_m2_div2_ck",
|
|
|
|
+ .prcm = {
|
|
|
|
+ .omap4 = {
|
|
|
|
+ .clkctrl_offs = AM33XX_CM_PER_EMIF_CLKCTRL_OFFSET,
|
|
|
|
+ .modulemode = MODULEMODE_SWCTRL,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+/*
|
|
|
|
+ * 'l3' class
|
|
|
|
+ * instance(s): l3_main, l3_s, l3_instr
|
|
|
|
+ */
|
|
|
|
+static struct omap_hwmod_class am33xx_l3_hwmod_class = {
|
|
|
|
+ .name = "l3",
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+/* l3_main (l3_fast) */
|
|
|
|
+static struct omap_hwmod_irq_info am33xx_l3_main_irqs[] = {
|
|
|
|
+ { .name = "l3debug", .irq = 9 + OMAP_INTC_START, },
|
|
|
|
+ { .name = "l3appint", .irq = 10 + OMAP_INTC_START, },
|
|
|
|
+ { .irq = -1 },
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct omap_hwmod am33xx_l3_main_hwmod = {
|
|
|
|
+ .name = "l3_main",
|
|
|
|
+ .class = &am33xx_l3_hwmod_class,
|
|
|
|
+ .clkdm_name = "l3_clkdm",
|
|
|
|
+ .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
|
|
|
|
+ .mpu_irqs = am33xx_l3_main_irqs,
|
|
|
|
+ .main_clk = "l3_gclk",
|
|
|
|
+ .prcm = {
|
|
|
|
+ .omap4 = {
|
|
|
|
+ .clkctrl_offs = AM33XX_CM_PER_L3_CLKCTRL_OFFSET,
|
|
|
|
+ .modulemode = MODULEMODE_SWCTRL,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+/* l3_s */
|
|
|
|
+static struct omap_hwmod am33xx_l3_s_hwmod = {
|