aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndy Green <andy@openmoko.com>2008-11-19 17:09:58 +0000
committerAndy Green <agreen@pads.home.warmcat.com>2008-11-19 17:09:58 +0000
commitcb559a9ddbd67883ec2e328ed69f9ad68768b4de (patch)
treea450747f6af28941c8419563566ab76738eb6bf9 /include
parent3965859d32cbe5e29c1f99b417feeb9e6d02f7d8 (diff)
add-glamo-mci-slower-clocking-dynamic-switching.patch
This patch gives glamo-mci a concept of a platform-defined dynamic clock slowing callback. It means that platform code can associate some completely external state to decide if we run the SD clock at normal rate or a rate divided by a module parameter "sd_slow_ratio", which you can set on kernel commandline like this: glamo_mci.sd_slow_ratio=8 you can also change it at runtime by echo 8 > /sys/module/glamo_mci/parameters/sd_slow_ratio If no platform callback is defined, then no slow mode is used. If it is defined, then the default division action is / 8, eg, 16MHz normal -> 2MHz slow mode. Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/glamofb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/glamofb.h b/include/linux/glamofb.h
index bb1a398adf7..ca63355d43b 100644
--- a/include/linux/glamofb.h
+++ b/include/linux/glamofb.h
@@ -31,6 +31,8 @@ struct glamofb_platform_data {
/* glamo mmc platform specific info */
void (*glamo_set_mci_power)(unsigned char power_mode,
unsigned short vdd);
+ /* glamo-mci asking if it should use the slow clock to card */
+ int (*glamo_mci_use_slow)(void);
int (*glamo_irq_is_wired)(void);
void (*mci_suspending)(struct platform_device *dev);
int (*mci_all_dependencies_resumed)(struct platform_device *dev);