2009-05-18 17:55:41 +00:00
|
|
|
/*
|
|
|
|
* linux/drivers/mmc/host/glamo-mmc.h - GLAMO MCI driver
|
|
|
|
*
|
|
|
|
* Copyright (C) 2007-2008 Openmoko, Inc, Andy Green <andy@openmoko.com>
|
|
|
|
* based on S3C MMC driver -->
|
|
|
|
* Copyright (C) 2004-2006 Thomas Kleffel, All Rights Reserved.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/regulator/consumer.h>
|
|
|
|
|
|
|
|
struct glamo_mci_host {
|
2009-07-11 19:07:15 +00:00
|
|
|
struct platform_device *pdev;
|
|
|
|
struct glamo_mci_pdata *pdata;
|
|
|
|
struct mmc_host *mmc;
|
|
|
|
struct resource *mmio_mem;
|
|
|
|
struct resource *data_mem;
|
|
|
|
void __iomem *mmio_base;
|
|
|
|
u16 __iomem *data_base;
|
2009-05-18 17:55:41 +00:00
|
|
|
|
2009-07-11 19:07:15 +00:00
|
|
|
int suspending;
|
2009-05-18 17:55:41 +00:00
|
|
|
|
2009-07-11 19:07:15 +00:00
|
|
|
int power_mode_current;
|
|
|
|
unsigned int vdd_current;
|
2009-05-18 17:55:41 +00:00
|
|
|
|
2009-07-11 19:07:15 +00:00
|
|
|
unsigned long clk_rate;
|
|
|
|
unsigned long clk_div;
|
|
|
|
unsigned long real_rate;
|
2009-05-18 17:55:41 +00:00
|
|
|
|
2009-07-11 19:07:15 +00:00
|
|
|
int force_slow_during_powerup;
|
2009-05-18 17:55:41 +00:00
|
|
|
|
2009-07-11 19:07:15 +00:00
|
|
|
struct mmc_request *mrq;
|
|
|
|
struct work_struct irq_work;
|
2009-05-18 17:55:41 +00:00
|
|
|
|
2009-07-11 19:07:15 +00:00
|
|
|
spinlock_t lock;
|
2009-05-18 17:55:41 +00:00
|
|
|
|
2009-07-11 19:07:15 +00:00
|
|
|
unsigned int request_counter;
|
2009-05-18 17:55:41 +00:00
|
|
|
|
2009-07-11 19:07:15 +00:00
|
|
|
struct regulator *regulator;
|
2009-05-18 17:55:41 +00:00
|
|
|
};
|