]> git.sur5r.net Git - u-boot/blob - drivers/mmc/uniphier-sd.c
mmc: uniphier: Drop useless check
[u-boot] / drivers / mmc / uniphier-sd.c
1 /*
2  * Copyright (C) 2016 Socionext Inc.
3  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
4  *
5  * SPDX-License-Identifier:     GPL-2.0+
6  */
7
8 #include <common.h>
9 #include <clk.h>
10 #include <fdtdec.h>
11 #include <mmc.h>
12 #include <dm.h>
13 #include <linux/compat.h>
14 #include <linux/dma-direction.h>
15 #include <linux/io.h>
16 #include <linux/sizes.h>
17 #include <power/regulator.h>
18 #include <asm/unaligned.h>
19
20 #include "matsushita-common.h"
21
22 static const struct dm_mmc_ops uniphier_sd_ops = {
23         .send_cmd = matsu_sd_send_cmd,
24         .set_ios = matsu_sd_set_ios,
25         .get_cd = matsu_sd_get_cd,
26 };
27
28 static const struct udevice_id uniphier_sd_match[] = {
29         { .compatible = "socionext,uniphier-sdhc", .data = 0 },
30         { /* sentinel */ }
31 };
32
33 U_BOOT_DRIVER(uniphier_mmc) = {
34         .name = "uniphier-mmc",
35         .id = UCLASS_MMC,
36         .of_match = uniphier_sd_match,
37         .bind = matsu_sd_bind,
38         .probe = matsu_sd_probe,
39         .priv_auto_alloc_size = sizeof(struct matsu_sd_priv),
40         .platdata_auto_alloc_size = sizeof(struct matsu_sd_plat),
41         .ops = &uniphier_sd_ops,
42 };