Release 4.7 drivers/mmc/host/sdhci-of-hlwd.c
  
  
/*
 * drivers/mmc/host/sdhci-of-hlwd.c
 *
 * Nintendo Wii Secure Digital Host Controller Interface.
 * Copyright (C) 2009 The GameCube Linux Team
 * Copyright (C) 2009 Albert Herranz
 *
 * Based on sdhci-of-esdhc.c
 *
 * Copyright (c) 2007 Freescale Semiconductor, Inc.
 * Copyright (c) 2009 MontaVista Software, Inc.
 *
 * Authors: Xiaobo Xie <X.Xie@freescale.com>
 *          Anton Vorontsov <avorontsov@ru.mvista.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or (at
 * your option) any later version.
 */
#include <linux/delay.h>
#include <linux/module.h>
#include <linux/mmc/host.h>
#include "sdhci-pltfm.h"
/*
 * Ops and quirks for the Nintendo Wii SDHCI controllers.
 */
/*
 * We need a small delay after each write, or things go horribly wrong.
 */
#define SDHCI_HLWD_WRITE_DELAY	5 
/* usecs */
static void sdhci_hlwd_writel(struct sdhci_host *host, u32 val, int reg)
{
	sdhci_be32bs_writel(host, val, reg);
	udelay(SDHCI_HLWD_WRITE_DELAY);
}
Contributors
 | Person | Tokens | Prop | Commits | CommitProp | 
| albert herranz | albert herranz | 31 | 100.00% | 1 | 100.00% | 
 | Total | 31 | 100.00% | 1 | 100.00% | 
static void sdhci_hlwd_writew(struct sdhci_host *host, u16 val, int reg)
{
	sdhci_be32bs_writew(host, val, reg);
	udelay(SDHCI_HLWD_WRITE_DELAY);
}
Contributors
 | Person | Tokens | Prop | Commits | CommitProp | 
| albert herranz | albert herranz | 31 | 100.00% | 1 | 100.00% | 
 | Total | 31 | 100.00% | 1 | 100.00% | 
static void sdhci_hlwd_writeb(struct sdhci_host *host, u8 val, int reg)
{
	sdhci_be32bs_writeb(host, val, reg);
	udelay(SDHCI_HLWD_WRITE_DELAY);
}
Contributors
 | Person | Tokens | Prop | Commits | CommitProp | 
| albert herranz | albert herranz | 31 | 100.00% | 1 | 100.00% | 
 | Total | 31 | 100.00% | 1 | 100.00% | 
static const struct sdhci_ops sdhci_hlwd_ops = {
	.read_l = sdhci_be32bs_readl,
	.read_w = sdhci_be32bs_readw,
	.read_b = sdhci_be32bs_readb,
	.write_l = sdhci_hlwd_writel,
	.write_w = sdhci_hlwd_writew,
	.write_b = sdhci_hlwd_writeb,
	.set_clock = sdhci_set_clock,
	.set_bus_width = sdhci_set_bus_width,
	.reset = sdhci_reset,
	.set_uhs_signaling = sdhci_set_uhs_signaling,
};
static const struct sdhci_pltfm_data sdhci_hlwd_pdata = {
	.quirks = SDHCI_QUIRK_32BIT_DMA_ADDR |
		  SDHCI_QUIRK_32BIT_DMA_SIZE,
	.ops = &sdhci_hlwd_ops,
};
static int sdhci_hlwd_probe(struct platform_device *pdev)
{
	return sdhci_pltfm_register(pdev, &sdhci_hlwd_pdata, 0);
}
Contributors
 | Person | Tokens | Prop | Commits | CommitProp | 
| shawn guo | shawn guo | 20 | 90.91% | 1 | 50.00% | 
| christian daudt | christian daudt | 2 | 9.09% | 1 | 50.00% | 
 | Total | 22 | 100.00% | 2 | 100.00% | 
static const struct of_device_id sdhci_hlwd_of_match[] = {
	{ .compatible = "nintendo,hollywood-sdhci" },
	{ }
};
MODULE_DEVICE_TABLE(of, sdhci_hlwd_of_match);
static struct platform_driver sdhci_hlwd_driver = {
	.driver = {
		.name = "sdhci-hlwd",
		.of_match_table = sdhci_hlwd_of_match,
		.pm = SDHCI_PLTFM_PMOPS,
        },
	.probe = sdhci_hlwd_probe,
	.remove = sdhci_pltfm_unregister,
};
module_platform_driver(sdhci_hlwd_driver);
MODULE_DESCRIPTION("Nintendo Wii SDHCI OF driver");
MODULE_AUTHOR("The GameCube Linux Team, Albert Herranz");
MODULE_LICENSE("GPL v2");
Overall Contributors
 | Person | Tokens | Prop | Commits | CommitProp | 
| albert herranz | albert herranz | 137 | 46.28% | 1 | 6.67% | 
| shawn guo | shawn guo | 118 | 39.86% | 2 | 13.33% | 
| russell king | russell king | 20 | 6.76% | 4 | 26.67% | 
| matt fleming | matt fleming | 6 | 2.03% | 1 | 6.67% | 
| manuel lauss | manuel lauss | 6 | 2.03% | 1 | 6.67% | 
| paul gortmaker | paul gortmaker | 3 | 1.01% | 1 | 6.67% | 
| lars-peter clausen | lars-peter clausen | 2 | 0.68% | 2 | 13.33% | 
| christian daudt | christian daudt | 2 | 0.68% | 1 | 6.67% | 
| kevin hao | kevin hao | 1 | 0.34% | 1 | 6.67% | 
| axel lin | axel lin | 1 | 0.34% | 1 | 6.67% | 
 | Total | 296 | 100.00% | 15 | 100.00% | 
  
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.