aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/s3c24xx/files-2.6.31/drivers/mfd/glamo/glamo-mmc.c
blob: 74352aa963802a92f42d0f7ee55a9401d35a446e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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;
}