perf tools: Don't clone maps from parent when synthesizing forks
[linux/fpc-iii.git] / drivers / mmc / host / renesas_sdhi.h
blobda1e49c45bec8eb2ea3027ff02eacb0b932176ce
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Renesas Mobile SDHI
5 * Copyright (C) 2017 Horms Solutions Ltd., Simon Horman
6 * Copyright (C) 2017 Renesas Electronics Corporation
7 */
9 #ifndef RENESAS_SDHI_H
10 #define RENESAS_SDHI_H
12 #include <linux/platform_device.h>
13 #include "tmio_mmc.h"
15 struct renesas_sdhi_scc {
16 unsigned long clk_rate; /* clock rate for SDR104 */
17 u32 tap; /* sampling clock position for SDR104 */
20 struct renesas_sdhi_of_data {
21 unsigned long tmio_flags;
22 u32 tmio_ocr_mask;
23 unsigned long capabilities;
24 unsigned long capabilities2;
25 enum dma_slave_buswidth dma_buswidth;
26 dma_addr_t dma_rx_offset;
27 unsigned int bus_shift;
28 int scc_offset;
29 struct renesas_sdhi_scc *taps;
30 int taps_num;
31 unsigned int max_blk_count;
32 unsigned short max_segs;
35 struct tmio_mmc_dma {
36 enum dma_slave_buswidth dma_buswidth;
37 bool (*filter)(struct dma_chan *chan, void *arg);
38 void (*enable)(struct tmio_mmc_host *host, bool enable);
39 struct completion dma_dataend;
40 struct tasklet_struct dma_complete;
43 struct renesas_sdhi {
44 struct clk *clk;
45 struct clk *clk_cd;
46 struct tmio_mmc_data mmc_data;
47 struct tmio_mmc_dma dma_priv;
48 struct pinctrl *pinctrl;
49 struct pinctrl_state *pins_default, *pins_uhs;
50 void __iomem *scc_ctl;
51 u32 scc_tappos;
54 #define host_to_priv(host) \
55 container_of((host)->pdata, struct renesas_sdhi, mmc_data)
57 int renesas_sdhi_probe(struct platform_device *pdev,
58 const struct tmio_mmc_dma_ops *dma_ops);
59 int renesas_sdhi_remove(struct platform_device *pdev);
60 #endif