[s3c24xx] glamo: Use mfd_cell for child resource handling instead of some ugly custom...
[openwrt.git] / target / linux / s3c24xx / files-2.6.30 / drivers / mfd / glamo / glamo-mci.h
1 /*
2  *  linux/drivers/mmc/host/glamo-mmc.h - GLAMO MCI driver
3  *
4  *  Copyright (C) 2007-2008 Openmoko, Inc, Andy Green <andy@openmoko.com>
5  *   based on S3C MMC driver -->
6  *  Copyright (C) 2004-2006 Thomas Kleffel, All Rights Reserved.
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License version 2 as
10  * published by the Free Software Foundation.
11  */
12
13 #include <linux/regulator/consumer.h>
14
15 struct glamo_mci_host {
16         struct platform_device *pdev;
17         struct glamo_mci_pdata *pdata;
18         struct mmc_host        *mmc;
19         struct resource        *mmio_mem;
20         struct resource        *data_mem;
21         void __iomem           *mmio_base;
22         u16 __iomem            *data_base;
23
24         int suspending;
25
26         int          power_mode_current;
27         unsigned int vdd_current;
28
29         unsigned long clk_rate;
30         unsigned long clk_div;
31         unsigned long real_rate;
32
33         int force_slow_during_powerup;
34
35         struct mmc_request *mrq;
36         struct work_struct  irq_work;
37
38         spinlock_t lock;
39
40         unsigned int request_counter;
41
42         struct regulator *regulator;
43 };