firmware/br-ext-chip-allwinner/board/v83x/kernel/patches/00000-drivers_mmc_host_sunx...

54 lines
1.8 KiB
Diff

diff -drupN a/drivers/mmc/host/sunxi-mmc-debug.h b/drivers/mmc/host/sunxi-mmc-debug.h
--- a/drivers/mmc/host/sunxi-mmc-debug.h 1970-01-01 03:00:00.000000000 +0300
+++ b/drivers/mmc/host/sunxi-mmc-debug.h 2022-06-12 05:28:14.000000000 +0300
@@ -0,0 +1,49 @@
+/*
+ * Sunxi SD/MMC host driver
+ *
+ * Copyright (C) 2015 AllWinnertech Ltd.
+ * Author: lixiang <lixiang@allwinnertech>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed "as is" WITHOUT ANY WARRANTY of any
+ * kind, whether express or implied; without even the implied warranty
+ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef __SUNXI_MMC_DEBUG_H__
+#define __SUNXI_MMC_DEBUG_H__
+#include <linux/clk.h>
+#include <linux/clk/sunxi.h>
+
+#include <linux/gpio.h>
+#include <linux/platform_device.h>
+#include <linux/spinlock.h>
+#include <linux/scatterlist.h>
+#include <linux/dma-mapping.h>
+#include <linux/slab.h>
+#include <linux/reset.h>
+
+#include <linux/of_address.h>
+#include <linux/of_gpio.h>
+#include <linux/of_platform.h>
+
+void sunxi_mmc_dumphex32(struct sunxi_mmc_host *host, char *name, char *base,
+ int len);
+void sunxi_mmc_dump_des(struct sunxi_mmc_host *host, char *base, int len);
+
+int sunxi_mmc_uperf_stat(struct sunxi_mmc_host *host,
+ struct mmc_data *data,
+ struct mmc_request *mrq_busy,
+ bool bhalf);
+
+int mmc_create_sys_fs(struct sunxi_mmc_host *host,
+ struct platform_device *pdev);
+void mmc_remove_sys_fs(struct sunxi_mmc_host *host,
+ struct platform_device *pdev);
+void sunxi_dump_reg(struct mmc_host *mmc);
+
+#endif