4 * Copyright (C) 2017 Horms Solutions Ltd., Simon Horman
5 * Copyright (C) 2017 Renesas Electronics Corporation
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
12 #ifndef RENESAS_SDHI_H
13 #define RENESAS_SDHI_H
15 #include <linux/platform_device.h>
18 struct renesas_sdhi_scc {
19 unsigned long clk_rate; /* clock rate for SDR104 */
20 u32 tap; /* sampling clock position for SDR104 */
23 struct renesas_sdhi_of_data {
24 unsigned long tmio_flags;
26 unsigned long capabilities;
27 unsigned long capabilities2;
28 enum dma_slave_buswidth dma_buswidth;
29 dma_addr_t dma_rx_offset;
30 unsigned int bus_shift;
32 struct renesas_sdhi_scc *taps;
36 int renesas_sdhi_probe(struct platform_device *pdev,
37 const struct tmio_mmc_dma_ops *dma_ops);
38 int renesas_sdhi_remove(struct platform_device *pdev);