Change-Id: I30e69b7bfd377d1dd2b0b458dd00ee411b060285
#ifdef USE_INTR
static int hook_id = 1;
+#ifdef DM37XX
#define OMAP3_MMC1_IRQ 83 /* MMC/SD module 1 */
#endif
+#ifdef AM335X
+#define OMAP3_MMC1_IRQ 64 /* MMC/SD module 1 */
+#endif
+#endif
#define SANE_TIMEOUT 500000 /* 500 MS */
/*
if (base_address == (uint32_t) MAP_FAILED)
panic("Unable to map MMC memory");
+#ifdef DM37XX
base_address = (unsigned long) base_address - 0x100;
+#endif
/* Soft reset of the controller. This section is documented in the TRM
*/
///* TODO: Rename to MMCH_0_REG_BASE and add the base address for the other items */
-//#define MMCHS1_REG_BASE 0x48060000
+#ifdef AM335X
+#define MMCHS1_REG_BASE 0x48060000
+#endif
//#ifdef AM_DM37x_Multimedia_Device
+
+#ifdef DM37XX
#define MMCHS1_REG_BASE 0x4809C000
+#endif
//#define MMCHS2_REG_BASE 0x480B4000
//#define MMCHS3_REG_BASE 0x480AD000
//#endif
PRIVCTL # 4
IRQCTL # 19
;
- irq 83; # IRQ 83 allowed
+ # Interrupts allowed
+ irq
+ 64
+ 83
+ ; # IRQs allowed
};
service fb