diff options
author | lars <lars@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-09-21 18:29:46 +0000 |
---|---|---|
committer | lars <lars@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-09-21 18:29:46 +0000 |
commit | e2813918b96b7e6d5f5a37811e507246e604747f (patch) | |
tree | c656b15f93b7b083730061833ec95619662ce47a /target/linux/s3c24xx/files-2.6.31/drivers/mfd/glamo/glamo-mmc.c | |
parent | dac1d868d3131c0a9b579ccc07833faa208d2d08 (diff) |
[s3c24xx] Add 2.6.31 patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17665 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/s3c24xx/files-2.6.31/drivers/mfd/glamo/glamo-mmc.c')
-rw-r--r-- | target/linux/s3c24xx/files-2.6.31/drivers/mfd/glamo/glamo-mmc.c | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/files-2.6.31/drivers/mfd/glamo/glamo-mmc.c b/target/linux/s3c24xx/files-2.6.31/drivers/mfd/glamo/glamo-mmc.c new file mode 100644 index 000000000..74352aa96 --- /dev/null +++ b/target/linux/s3c24xx/files-2.6.31/drivers/mfd/glamo/glamo-mmc.c @@ -0,0 +1,38 @@ + + + + +static int __init glamo_mmc_probe(struct platform_device *pdev) { + + struct mmc_host *mmc; + struct glamo_host *host; + struct resource *res; + int irq; + + res = platform_get_resource(pdev, IO_RESOURCE_MEM, 0); + irq = platform_get_irq(pdev, 0); + + + res = request_mem_region(res->start, res->end - res->start + 1, pdev->name); + + mmc = mmc_alloc_host(sizeof(struct glamo_host), &pdev->dev); + + mmc->ops = &glamo_mmc_ops; + + mmc->f_min = 0; + mmc->f_max = 100; + mmc->ocr_avail; + + mmc->caps = MMC_CAP_4_BIT_DATA; + + mmc->max_hw_segs; + mmc->max_phys_segs; + mmc->max_req_size; + mmc->max_blk_size; + mmc->max_blk_count; + + + mmc_add_host(mmc); + + return 0; +} |