ctrl.c (e558017b558d2a477b68961b0da792d4346a01b4) ctrl.c (6c3af955935223217f23ef0ae672d3842418ec50)
1/* * CAAM control-plane driver backend
2 * Controller-level driver, kernel property detection, initialization
3 *
4 * Copyright 2008-2012 Freescale Semiconductor, Inc.
5 */
6
7#include <linux/device.h>
8#include <linux/of_address.h>
9#include <linux/of_irq.h>
10
11#include "compat.h"
12#include "regs.h"
13#include "intern.h"
14#include "jr.h"
15#include "desc_constr.h"
16#include "error.h"
17
18/*
1/* * CAAM control-plane driver backend
2 * Controller-level driver, kernel property detection, initialization
3 *
4 * Copyright 2008-2012 Freescale Semiconductor, Inc.
5 */
6
7#include <linux/device.h>
8#include <linux/of_address.h>
9#include <linux/of_irq.h>
10
11#include "compat.h"
12#include "regs.h"
13#include "intern.h"
14#include "jr.h"
15#include "desc_constr.h"
16#include "error.h"
17
18/*
19 * ARM targets tend to have clock control subsystems that can
19 * i.MX targets tend to have clock control subsystems that can
20 * enable/disable clocking to our device.
21 */
20 * enable/disable clocking to our device.
21 */
22#ifdef CONFIG_ARM
22#ifdef CONFIG_CRYPTO_DEV_FSL_CAAM_IMX
23static inline struct clk *caam_drv_identify_clk(struct device *dev,
24 char *clk_name)
25{
26 return devm_clk_get(dev, clk_name);
27}
28#else
29static inline struct clk *caam_drv_identify_clk(struct device *dev,
30 char *clk_name)

--- 789 unchanged lines hidden ---
23static inline struct clk *caam_drv_identify_clk(struct device *dev,
24 char *clk_name)
25{
26 return devm_clk_get(dev, clk_name);
27}
28#else
29static inline struct clk *caam_drv_identify_clk(struct device *dev,
30 char *clk_name)

--- 789 unchanged lines hidden ---