blob: 703229464786fecb732c6b4342e2dfc626c9cdd8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// SPDX-License-Identifier: GPL-2.0-only
// Copyright (c) 2020 Ahmad Fatoum, Pengutronix
#ifndef ATMEL_SDHCI_H_
#define ATMEL_SDHCI_H_
#include <linux/types.h>
#include <mci.h>
#include "sdhci.h"
struct at91_sdhci {
struct sdhci sdhci;
struct device_d *dev;
void __iomem *base;
u32 caps_max_clock;
};
int at91_sdhci_init(struct at91_sdhci *host, u32 maxclk,
bool force_cd, bool cal_always_on);
void at91_sdhci_mmio_init(struct at91_sdhci *host, void __iomem *base);
int at91_sdhci_send_command(struct at91_sdhci *host, struct mci_cmd *sd_cmd,
struct mci_data *data);
bool at91_sdhci_is_card_inserted(struct at91_sdhci *host);
void at91_sdhci_host_capability(struct at91_sdhci *host,
unsigned int *voltages);
int at91_sdhci_set_ios(struct at91_sdhci *host, struct mci_ios *ios);
#endif
|