2 * linux/drivers/mmc/host/glamo-mmc.h - GLAMO MCI driver
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.
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.
13 #include <linux/regulator/consumer.h>
15 struct glamo_mci_host
{
16 struct platform_device
*pdev
;
17 struct glamo_mmc_platform_data
*pdata
;
19 struct resource
*mmio_mem
;
20 struct resource
*data_mem
;
21 void __iomem
*mmio_base
;
22 u16 __iomem
*data_base
;
26 int power_mode_current
;
27 unsigned int vdd_current
;
29 unsigned long clk_rate
;
30 unsigned long clk_div
;
31 unsigned long real_rate
;
33 int force_slow_during_powerup
;
35 struct mmc_request
*mrq
;
36 struct work_struct irq_work
;
40 unsigned int request_counter
;
42 struct regulator
*regulator
;