]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00180943-9: Include referenced for clock control
authorSteve Cornelius <steve.cornelius@freescale.com>
Wed, 18 Apr 2012 20:50:46 +0000 (13:50 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:34:31 +0000 (08:34 +0200)
Include referenced for clock control,
and define "empty" IRQ function that's not provided on ARM platforms.

Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
drivers/crypto/caam/intern.h

index a34be01b0b293941b3e5cae998664d615dee92ef..19e4f25c25a847648445fb50415d6ffa5746fe82 100644 (file)
@@ -2,7 +2,7 @@
  * CAAM/SEC 4.x driver backend
  * Private/internal definitions between modules
  *
- * Copyright 2008-2011 Freescale Semiconductor, Inc.
+ * Copyright (C) 2008-2012 Freescale Semiconductor, Inc.
  *
  */
 
 #define JOBR_INTC_COUNT_THLD 0
 #endif
 
+#ifndef CONFIG_OF
+#define JR_IRQRES_NAME_ROOT "irq_jr"
+#define JR_MEMRES_NAME_ROOT "offset_jr"
+#endif
+
+#ifdef CONFIG_ARM
+/*
+ * FIXME: ARM tree doesn't seem to provide this, ergo it seems to be
+ * in "platform limbo". Find a better place, perhaps.
+ */
+static inline void irq_dispose_mapping(unsigned int virq)
+{
+       return;
+}
+#endif
+
+
 /*
  * Storage for tracking each in-process entry moving across a ring
  * Each entry on an output ring needs one of these
@@ -91,6 +108,10 @@ struct caam_drv_private {
        /* list of registered crypto algorithms (mk generic context handle?) */
        struct list_head alg_list;
 
+#ifdef CONFIG_ARM
+       struct clk *caam_clk;
+#endif
+
        /*
         * debugfs entries for developer view into driver/device
         * variables at runtime.
@@ -108,6 +129,7 @@ struct caam_drv_private {
 #endif
 };
 
-void caam_jr_algapi_init(struct device *dev);
-void caam_jr_algapi_remove(struct device *dev);
+void caam_algapi_shutdown(struct platform_device *pdev);
+int caam_algapi_startup(struct platform_device *pdev);
+
 #endif /* INTERN_H */