1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-10 14:43:07 +02:00
openwrt-xburst/target/linux/s3c24xx/files-2.6.31/drivers/mfd/glamo/glamo-mmc.c
lars e2813918b9 [s3c24xx] Add 2.6.31 patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17665 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-21 18:29:46 +00:00

39 lines
642 B
C

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;
}